/* THNK prototype store, "Soft tint" design.
   One pale sage tint for the whole page, dark green for all text, flat rounded shapes,
   no cards, no shadows, no orange. One short centred column on every screen size. System fonts only. */
:root {
  --tint: #E8F1EC;         /* the page */
  --green: #12403A;        /* all text: 10:1 on the tint */
  --green-2: #35594F;      /* quieter text: 6.8:1 on the tint, 5.9:1 on --shape */
  --shape: #D3E5DB;        /* flat shapes, a deeper step of the same tint */
  --field: #F4F9F6;        /* the email field */
  --edge: #6F8E85;         /* outlines of pills, field and steppers: 3.1:1 */
  --line: rgba(18, 64, 58, .14);
  --round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--green);
  background: var(--tint);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html:has(dialog[open]) { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--round); font-weight: 600; }
h1, h2 { text-wrap: balance; }
button { font: inherit; color: inherit; }
a { color: inherit; }

:focus-visible { outline: 2.5px solid var(--green); outline-offset: 3px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 50;
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  background: var(--green); color: var(--tint); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 8px; }

.col { width: 100%; max-width: calc(540px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.i { width: 18px; height: 18px; flex: none; }

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 26px;
  border: 0; border-radius: 999px;
  font-family: var(--round); font-size: 16px; font-weight: 600; line-height: 1.1;
  text-decoration: none; white-space: nowrap;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color .15s ease;
}
.btn .i { width: 16px; height: 16px; }
.btn-fill { background: var(--green); color: var(--tint); }
.btn-fill:hover { background: #1B4E46; }
.btn-line { background: transparent; color: var(--green); border: 1.5px solid var(--green); }
.btn-line:hover { background: var(--shape); }
.btn-block { width: 100%; }

.link {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px;
  color: var(--green); font-weight: 500;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px;
  text-decoration-color: rgba(18, 64, 58, .45);
}
.link:hover { text-decoration-color: var(--green); }
.link .i { width: 16px; height: 16px; }
/* links inside a sentence: the hit area grows to 44px without moving the text */
.inline {
  display: inline-block; padding: 12px 0; margin: -12px 0;
  font-weight: 500; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px;
  text-decoration-color: rgba(18, 64, 58, .45);
}
.inline:hover { text-decoration-color: var(--green); }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: var(--tint);
  border-bottom: 1px solid var(--line);
}
.topbar-in { display: flex; align-items: center; gap: 12px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; color: var(--green); text-decoration: none; }
.brand-mark { width: 32px; height: 17px; }
.brand-word { font-family: var(--round); font-size: 19px; font-weight: 600; letter-spacing: .1em; }
.tag { padding: 3px 10px; border-radius: 999px; background: var(--shape); color: var(--green-2); font-size: 12px; font-weight: 500; line-height: 1.4; white-space: nowrap; }
.cart-btn {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 2px 0 12px;
  border: 0; border-radius: 999px; background: transparent; color: var(--green);
  font-family: var(--round); font-size: 16px; font-weight: 600;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.cart-btn:hover .cart-word { text-decoration: underline; text-underline-offset: 4px; }
.cart-count {
  min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px;
  display: inline-grid; place-items: center;
  background: var(--green); color: var(--tint);
  font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.cart-count.bump { animation: bump .35s ease; }
@keyframes bump { 40% { transform: scale(1.25); } }

/* ---------- hero ---------- */
.hero { padding: 22px 0 22px; text-align: center; }
.hero-in { display: flex; flex-direction: column; align-items: center; }
.hero-art { width: 112px; height: auto; }
.hero h1 { margin-top: 14px; font-size: clamp(34px, 9.6vw, 48px); line-height: 1.06; letter-spacing: -.02em; }
.hero h1 span { display: block; }
.lede { margin-top: 8px; font-size: 16.5px; color: var(--green-2); }
.price { margin-top: 10px; font-family: var(--round); font-size: 20px; font-weight: 600; }
.price span { font-family: var(--font); font-size: 15.5px; font-weight: 400; color: var(--green-2); }
.hero-btn { margin-top: 14px; width: 100%; max-width: 300px; }
.hero .link { margin-top: 8px; }

/* ---------- sections ---------- */
.section { padding: 24px 0; }
.section h2 { font-size: clamp(24px, 6.6vw, 28px); line-height: 1.15; letter-spacing: -.01em; text-align: center; }
.section h2:focus { outline: none; }
.note { margin-top: 4px; text-align: center; color: var(--green-2); }

/* ---------- shop: two compact rows; quantities are changed in the cart ---------- */
.products { list-style: none; margin: 12px 0 0; padding: 0; }
.product {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto auto;
  gap: 12px; align-items: center;
  padding: 10px 0; border-top: 1px solid var(--line);
}
.product:last-child { border-bottom: 1px solid var(--line); }
.p-art { width: 52px; height: auto; }
.p-info { min-width: 0; }
.p-name { font-size: 17px; line-height: 1.25; }
.p-sub { font-size: 14.5px; line-height: 1.4; color: var(--green-2); }
.p-price { font-family: var(--round); font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.p-add { min-height: 44px; padding: 0 20px; font-size: 15px; }

/* ---------- preorder list ---------- */
#waitlist { scroll-margin-top: -12px; }
.waitlist { text-align: center; }
.wl-line { margin: 6px auto 0; max-width: 26em; color: var(--green-2); text-wrap: pretty; }
.wl-count {
  margin-top: 8px; min-height: 22px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 600; line-height: 1.45; font-variant-numeric: tabular-nums;
}
/* while the number is not known the line is empty but keeps its height, so nothing below it moves when it arrives */
.wl-count[hidden] { display: flex !important; visibility: hidden; }
.wl-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.wl-panel { margin-top: 14px; }

.wl-pick { margin: 0 0 14px; padding: 0; border: 0; min-width: 0; }
.wl-pick legend { width: 100%; margin-bottom: 8px; padding: 0; font-size: 15px; font-weight: 600; text-align: center; }
.wl-opt { font-weight: 400; color: var(--green-2); }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pill { position: relative; display: inline-flex; border-radius: 999px; -webkit-tap-highlight-color: transparent; }
.pill input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pill span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border: 1.5px solid var(--edge); border-radius: 999px;
  font-size: 15px; font-weight: 500; line-height: 1.1; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.pill:hover span { border-color: var(--green); }
.pill input:checked + span { background: var(--green); border-color: var(--green); color: var(--tint); }
.pill input:focus-visible + span { outline: 2.5px solid var(--green); outline-offset: 3px; }

.wl-row { display: grid; gap: 10px; }
.wl-input {
  width: 100%; min-width: 0; height: 52px; margin: 0; padding: 0 22px;
  border: 1.5px solid var(--edge); border-radius: 999px;
  background: var(--field); color: var(--green); caret-color: var(--green);
  font: inherit; font-size: 17px; line-height: 1.2;
  -webkit-appearance: none; appearance: none;
}
.wl-input::placeholder { color: var(--green-2); opacity: 1; }
.wl-input:hover { border-color: var(--green); }
.wl-input:focus { border-color: var(--green); outline: 2.5px solid var(--green); outline-offset: 1px; }
.wl-input[aria-invalid="true"] { border: 2.5px solid var(--green); padding: 0 21px; }
.wl-btn { min-height: 52px; }
.wl-btn[aria-disabled="true"] { cursor: progress; }
.wl-btn.is-busy::before {
  content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%;
  border: 2.5px solid currentColor; border-right-color: transparent;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.wl-error:not(:empty) {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 12px; padding: 8px 16px; border-radius: 999px;
  background: var(--shape); font-size: 15px; font-weight: 600; line-height: 1.35; text-wrap: pretty;
}
.wl-note { margin-top: 10px; font-size: 13px; line-height: 1.55; color: var(--green-2); text-wrap: pretty; }
.wl-note .inline { color: var(--green); }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.wl-done-title { font-size: 24px; line-height: 1.2; }
.wl-done-title:focus { outline: none; }
.wl-done-text { margin-top: 6px; color: var(--green-2); }
.wl-again { margin-top: 16px; }

/* ---------- follower counter and the Reel link ---------- */
.follow { padding: 20px 0 8px; text-align: center; }
.follow-title { font-family: var(--font); font-size: 14px; font-weight: 500; line-height: 1.5; color: var(--green-2); }
.counts { margin-top: 4px; }
.count-row { display: flex; justify-content: center; gap: 28px; }
.count {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 96px; min-height: 52px; padding: 0 6px; border-radius: 14px;
  color: var(--green); text-decoration: none; -webkit-tap-highlight-color: transparent;
}
.count-n { font-family: var(--round); font-size: 24px; font-weight: 600; line-height: 1.15; font-variant-numeric: tabular-nums; }
.count-label {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 14px; font-weight: 500; line-height: 1.45;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px;
  text-decoration-color: rgba(18, 64, 58, .45);
}
.count:hover .count-label { text-decoration-color: var(--green); }
.count-label .i { width: 14px; height: 14px; }
.count-when { margin-top: 2px; font-size: 13px; line-height: 1.5; color: var(--green-2); }
.reel-link { margin-top: 4px; gap: 6px; }
.reel-link .i { width: 15px; height: 15px; }

/* ---------- fine print: the FDA line and the class note, as small as allowed, at the very bottom ---------- */
.fine-print {
  max-width: calc(540px + 2 * var(--gutter)); margin: 0 auto; padding: 14px var(--gutter) 26px;
  font-size: 11.5px; line-height: 1.5; color: var(--green-2); text-align: center; text-wrap: pretty;
}

/* ---------- cart drawer ---------- */
.drawer {
  position: fixed; inset: 0 0 0 auto;
  width: min(420px, 100%); max-width: 100%;
  height: 100%; max-height: 100%;
  margin: 0; padding: 0; border: 0; border-left: 1px solid var(--line);
  background: var(--tint); color: var(--green);
  overflow: hidden;
}
.drawer[open] { display: flex; flex-direction: column; animation: drawer-in .28s cubic-bezier(.2, .8, .2, 1); }
.drawer::backdrop { background: rgba(18, 64, 58, .35); }
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: none; } }

.drawer-head { display: flex; align-items: center; gap: 4px; min-height: 62px; padding: 8px 8px 8px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { flex: 1; font-size: 20px; }
.drawer-head h2:focus { outline: none; }
#cart-back:not([hidden]) + h2 { margin-left: -6px; }
.drawer-head .icon-btn:first-child { margin-left: -10px; }
.icon-btn {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  border: 0; border-radius: 50%; background: transparent; color: var(--green); cursor: pointer;
}
.icon-btn:hover { background: var(--shape); }
.icon-btn .i { width: 22px; height: 22px; }

.drawer-body { flex: 1; overflow-y: auto; padding: 18px 20px 24px; -webkit-overflow-scrolling: touch; }
.added {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 16px; padding: 10px 16px; border-radius: 999px;
  background: var(--shape); font-size: 14.5px; font-weight: 500;
}
.added .i { width: 18px; height: 18px; }
#drawer-added-text { text-wrap: pretty; }

.lines { list-style: none; margin: 0; padding: 0; }
.line {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: start;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.line:first-child { padding-top: 0; }
.thumb { width: 64px; display: block; }
.thumb svg { width: 100%; height: auto; }
.line-name { font-family: var(--round); font-size: 17px; font-weight: 600; line-height: 1.25; }
.line-sub { margin-top: 1px; font-size: 14px; color: var(--green-2); }
.line-row { margin-top: 10px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; }
.line-total { font-family: var(--round); font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }

.stepper {
  display: flex; align-items: center; justify-content: space-between;
  width: 140px; height: 50px; border: 1.5px solid var(--edge); border-radius: 999px;
}
.step {
  width: 46px; height: 46px; flex: none;
  display: grid; place-items: center;
  border: 0; border-radius: 50%; background: transparent; color: var(--green);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.step:hover { background: var(--shape); }
.step[aria-disabled="true"] { cursor: default; }
.step[aria-disabled="true"] .i { opacity: .3; }
.step[aria-disabled="true"]:hover { background: transparent; }
.step-n { min-width: 2ch; text-align: center; font-family: var(--round); font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.remove {
  min-height: 44px; padding: 0 2px; border: 0; background: none; cursor: pointer;
  color: var(--green-2); font-size: 14px; text-decoration: underline; text-underline-offset: 3px;
}
.remove:hover { color: var(--green); }

.empty { padding: 40px 0 12px; text-align: center; }
.empty p { margin-bottom: 18px; color: var(--green-2); }

.drawer-foot { padding: 16px 20px max(20px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--tint); }
.subtotal { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; font-size: 16px; font-weight: 500; }
.subtotal span:last-child, .sum-total span:last-child { font-family: var(--round); font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.fine { margin-top: 10px; font-size: 13px; color: var(--green-2); text-align: center; }

.demo-pill { display: inline-block; margin-bottom: 12px; padding: 3px 12px; border-radius: 999px; background: var(--shape); font-size: 12px; font-weight: 600; }
.sum-title { font-size: 18px; margin-bottom: 6px; }
.summary { list-style: none; margin: 0; padding: 0; }
.summary li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.summary li span:last-child { font-weight: 600; font-variant-numeric: tabular-nums; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 4px; font-size: 16px; font-weight: 500; }
#view-checkout .fine { text-align: left; }

.view-done { padding-top: 28px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.done-mark { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: var(--tint); margin-bottom: 18px; }
.done-mark svg { width: 30px; height: 30px; }
.done-title { font-size: 22px; line-height: 1.2; max-width: 320px; }
.done-title .nw { white-space: nowrap; }   /* keeps "no order placed," and "no payment taken." each in one piece */
.done-title:focus { outline: none; }
.done-text { margin-top: 10px; color: var(--green-2); max-width: 320px; }
.view-done .btn { width: 100%; max-width: 320px; margin-top: 22px; }
.view-done .btn + .btn { margin-top: 10px; }
.done-back {
  margin-top: 8px; min-height: 44px; padding: 0 12px;
  border: 0; border-radius: 999px; background: none; cursor: pointer;
  color: var(--green-2); font-size: 15px; text-decoration: underline; text-underline-offset: 3px;
}
.done-back:hover { color: var(--green); }

/* ---------- the Reel: a small window over the page with the browser's own video controls ---------- */
.reel-box {
  /* as wide as the 9:16 video can be: at most 360px, the screen's width, or what the screen's height allows */
  --reel-w: min(360px, calc(100vw - 24px), calc((100vh - 92px) * .5625));
  width: var(--reel-w); max-width: calc(100% - 24px); max-height: calc(100% - 24px);
  margin: auto; padding: 0; border: 0; border-radius: 22px; overflow: hidden;
  background: var(--tint); color: var(--green);
}
@supports (height: 100dvh) {
  .reel-box { --reel-w: min(360px, calc(100vw - 24px), calc((100dvh - 92px) * .5625)); }
}
.reel-box[open] { display: flex; flex-direction: column; }
.reel-box::backdrop { background: rgba(18, 64, 58, .6); }
.reel-head { display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 6px 6px 6px 18px; }
.reel-head h2 { flex: 1; font-size: 16px; line-height: 1.25; }
.reel-head h2:focus { outline: none; }
.reel { width: 100%; height: auto; aspect-ratio: 9 / 16; background: var(--shape); }
/* the window cuts off anything outside the video, so the video's keyboard ring is drawn just inside its edge */
.reel:focus-visible { outline-offset: -4px; }

/* ---------- small phones ---------- */
@media (max-width: 379px) {
  :root { --gutter: 16px; }
  .topbar-in { gap: 9px; }
  .product { grid-template-columns: 44px minmax(0, 1fr) auto auto; gap: 10px; }
  .p-art { width: 44px; }
  .p-add { padding: 0 16px; }
  .pill span { padding: 0 14px; font-size: 14.5px; }
  .count-row { gap: 16px; }
}

/* ---------- wider screens: the same single column, a little more air ---------- */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .hero { padding: 36px 0 28px; }
  .hero-art { width: 124px; }
  .section { padding: 28px 0; }
  .wl-line { max-width: 34em; }
  .wl-row { grid-template-columns: minmax(0, 1fr) auto; }
  .wl-btn { padding: 0 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
