/* Outfit (SIL Open Font License), self-hosted latin subset, variable 400–800 */
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Brand */
  --sense-cream: #FFF3E3;
  --sense-sand: #F3E4D2;
  --sense-paper: #FBF1E4;
  --sense-ink: #1C1A17;
  --sense-ink-soft: #4A453E;
  --sense-pre: #FF5838;
  --sense-focus: #8860F5;
  --sense-focus-text: #9470F6; /* focus tint that keeps ink text at 4.9:1 */
  --sense-hydrate: #B8E62E;
  --sense-recover: #FF4D78;
  --sense-creatine: #FFB627;
  --font: "Outfit", Arial, Helvetica, sans-serif;

  /* Type scale */
  --fs-display: clamp(3rem, 6vw, 6rem);
  --fs-h2: clamp(2.3rem, 4.6vw, 4rem);
  --fs-h3: 1.5rem;
  --fs-lede: 1.15rem;
  --fs-body: 1.05rem;
  --fs-small: .875rem;
  --fs-label: .78rem;

  /* Spacing, radius */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-section: clamp(72px, 9vw, 120px);
  --radius-s: 12px;
  --radius-m: 22px;
  --radius-pill: 999px;
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
/* Components set their own display (e.g. .form is flex), which would otherwise beat the hidden attribute */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--sense-cream);
  color: var(--sense-ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.dot { color: var(--sense-pre); }

h1, h2, h3 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.95;
  text-transform: lowercase;
}
h1 { font-size: var(--fs-display); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.02em; line-height: 1.1; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--sense-ink); color: var(--sense-cream); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--sense-focus); outline-offset: 3px; }

/* Buttons: dark with cream text, per the brand's contrast rule */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  border-radius: var(--radius-pill); border: 2px solid var(--sense-ink);
  font: 700 1rem/1 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover, .btn:focus-visible { transform: translateY(-2px); }
.btn-ink { background: var(--sense-ink); color: var(--sense-cream); }
.btn-ghost { background: transparent; color: var(--sense-ink); }
.btn-ghost:hover, .btn-ghost:focus-visible { background: var(--sense-ink); color: var(--sense-cream); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: .95rem; }
.btn:disabled { opacity: .7; cursor: progress; transform: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 243, 227, .9);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(28, 26, 23, .08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: var(--space-2); }
.wordmark { font-weight: 800; font-size: 2.1rem; letter-spacing: -0.06em; text-decoration: none; line-height: 1; }
.wordmark-light { color: var(--sense-cream); }
.site-header nav { display: flex; align-items: center; gap: 26px; }
.site-header nav a:not(.btn) { text-decoration: none; font-weight: 500; }
.site-header nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 4px; }

/* Hero: copy over the wide shot's empty wall on large screens */
.hero { position: relative; overflow: hidden; background: #EDDBC6; }
.hero-img { width: 100%; height: clamp(560px, 40vw, 720px); object-fit: cover; object-position: 72% center; }
.hero-copy { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; }
.hero-copy > * { max-width: 34vw; }
.hero-copy h1 { max-width: none; }
.eyebrow { margin: 0 0 18px; font-size: var(--fs-small); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.lede { margin: 22px 0 30px; font-size: 1.2rem; color: var(--sense-ink-soft); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Range index: one static row, the circle motif doing real work */
.index { background: var(--sense-ink); }
.index-list { list-style: none; margin: 0 auto; display: flex; justify-content: space-between; gap: var(--space-1); padding-top: 14px; padding-bottom: 14px; }
.index-item {
  display: inline-flex; align-items: center; gap: 12px;
  background: none; border: 0; padding: 8px 10px; border-radius: var(--radius-pill);
  color: var(--sense-cream); font-size: 1.45rem; font-weight: 800; letter-spacing: -0.03em; cursor: pointer;
}
.index-item i { width: 18px; height: 18px; border-radius: 50%; background: var(--c); flex: none; transition: transform .2s ease; }
.index-item:hover i, .index-item:focus-visible i { transform: scale(1.35); }
.index-item:focus-visible { outline-color: var(--sense-cream); }
/* Brand moment: the circles settle in once on load */
/* Transform only, so a paused or skipped animation still leaves the circles visible */
@keyframes settle { from { transform: translateY(-14px) scale(.4); } to { transform: none; } }
.index-item i { animation: settle .6s cubic-bezier(.3, 1.4, .5, 1); }
.index li:nth-child(2) .index-item i { animation-delay: .08s; }
.index li:nth-child(3) .index-item i { animation-delay: .16s; }
.index li:nth-child(4) .index-item i { animation-delay: .24s; }
.index li:nth-child(5) .index-item i { animation-delay: .32s; }

.c-pre { background: var(--sense-pre); }
.c-focus { background: var(--sense-focus); }
.c-hydrate { background: var(--sense-hydrate); }
.c-recover { background: var(--sense-recover); }
.c-creatine { background: var(--sense-creatine); }

/* Range */
.range { padding: var(--space-section) 0 calc(var(--space-section) * .75); }
.section-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-4); align-items: end; margin-bottom: 48px; }
.section-head p { margin: 0; font-size: var(--fs-lede); color: var(--sense-ink-soft); max-width: 460px; }

.products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-2); }
.product {
  background: var(--sense-paper); border-radius: var(--radius-m); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.product:hover, .product:focus-within { transform: translateY(-6px); box-shadow: 0 18px 40px -18px rgba(28, 26, 23, .35); }
.product-img {
  position: relative; aspect-ratio: 4 / 4.4;
  background: radial-gradient(circle at 50% 70%, color-mix(in srgb, var(--c) 22%, #fff) 0%, var(--sense-paper) 65%);
}
/* Tubs are cropped to their visible bounds and staged at one shared height, standing on the colour band */
.product-img img {
  position: absolute; left: 50%; bottom: -2px; translate: -50% 0;
  height: 86%; width: auto; max-width: 78%; object-fit: contain; object-position: bottom;
  transform-origin: 50% 100%; transition: transform .35s ease;
}
.product:hover .product-img img, .product:focus-within .product-img img { transform: scale(1.04) rotate(-2deg); }
.product-body { background: var(--c-text, var(--c)); padding: 20px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.product-body .num { font-size: var(--fs-label); font-weight: 700; letter-spacing: .12em; }
.product-body h3 { margin-top: 6px; font-size: 2rem; }
.product-body .flavour { margin: 6px 0 10px; font-size: var(--fs-label); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.product-body p { margin: 0; font-size: 1rem; line-height: 1.4; }
.product-body p:last-of-type { margin-bottom: 18px; }
.explore {
  margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  background: var(--sense-ink); color: var(--sense-cream); border: 0; border-radius: var(--radius-pill);
  font-weight: 700; font-size: .95rem; cursor: pointer;
}
.explore::after { content: "→"; transition: transform .2s ease; }
.explore:hover::after, .explore:focus-visible::after { transform: translateX(3px); }
.explore:focus-visible { outline-color: var(--sense-ink); }
.packaging-note { margin: var(--space-3) 0 0; font-size: var(--fs-small); color: var(--sense-ink-soft); }

/* Flavour story */
.feature {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center;
  max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter);
}
.feature img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-m); }
.feature-card { max-width: 460px; }
.feature-card p { margin: 22px 0 0; font-size: var(--fs-lede); color: var(--sense-ink-soft); }

/* Commitments */
.why { padding: var(--space-section) 0; }
.pillars { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillars li { border-top: 2px solid var(--sense-ink); padding-top: 28px; }
.pillars i { display: block; width: 40px; height: 40px; border-radius: 50%; margin-bottom: 22px; }
.pillars p { margin: 12px 0 0; color: var(--sense-ink-soft); max-width: 36ch; }

/* FAQ, with the track shot as its photo */
.faq { background: var(--sense-sand); padding: var(--space-section) 0; }
.faq-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start;
  max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter);
}
.faq-photo { margin: 0; position: sticky; top: 104px; }
.faq-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-m); }
.faq-photo figcaption { margin-top: 12px; font-size: var(--fs-small); color: var(--sense-ink-soft); }
.faq-list h2 { margin-bottom: 28px; }
.faq details { border-top: 2px solid var(--sense-ink); }
.faq details:last-of-type { border-bottom: 2px solid var(--sense-ink); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-2);
  padding: 20px 2px; font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--sense-ink) no-repeat center / 12px 12px;
  background-image: linear-gradient(var(--sense-cream), var(--sense-cream)), linear-gradient(var(--sense-cream), var(--sense-cream));
  background-size: 10px 2px, 2px 10px;
  transition: transform .2s ease;
}
.faq details[open] summary::after { background-size: 10px 2px, 0 0; }
.faq details p { margin: 0 0 22px; color: var(--sense-ink-soft); max-width: 52ch; }

/* Waitlist */
.waitlist { padding: var(--space-section) 0; }
.waitlist-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center;
}
.waitlist-copy > p { font-size: var(--fs-lede); color: var(--sense-ink-soft); max-width: 440px; margin: 22px 0 0; }
.circles { display: flex; margin-top: 34px; }
.circles i { width: 56px; height: 56px; border-radius: 50%; margin-right: -14px; mix-blend-mode: multiply; opacity: .92; }
.circles-sm { margin: 0 0 20px; }
.circles-sm i { width: 30px; height: 30px; margin-right: -8px; }

.form-card { background: #fff; border-radius: var(--radius-m); padding: clamp(24px, 4vw, 44px); }
.form { display: flex; flex-direction: column; }
.form label, .form legend { font-weight: 700; font-size: .95rem; margin: 0 0 8px; padding: 0; }
.optional { font-weight: 400; color: var(--sense-ink-soft); }
.form input[type="email"], .form input[type="text"] {
  font: 400 1rem var(--font); color: var(--sense-ink);
  min-height: 52px; padding: 0 16px; margin-bottom: 20px;
  border: 2px solid rgba(28, 26, 23, .18); border-radius: 14px; background: var(--sense-cream);
  width: 100%;
}
.form input:focus { border-color: var(--sense-ink); outline: none; }
.form input:focus-visible { outline: 3px solid var(--sense-focus); outline-offset: 2px; }
.form input[aria-invalid="true"] { border-color: #C2261F; margin-bottom: 6px; }
.field-error { margin: 0 0 16px; font-size: var(--fs-small); color: #B3211B; font-weight: 500; }

.chips { border: 0; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.chips legend { margin-bottom: 10px; }
.chip { position: relative; margin: 0 !important; font-weight: 500 !important; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 42px; padding: 0 16px 0 10px;
  border: 2px solid rgba(28, 26, 23, .18); border-radius: var(--radius-pill); background: var(--sense-cream);
  transition: border-color .15s ease, background-color .15s ease;
}
.chip i { width: 18px; height: 18px; border-radius: 50%; background: var(--c); flex: none; }
.chip i.chip-all {
  background: conic-gradient(var(--sense-pre) 0 20%, var(--sense-focus) 0 40%, var(--sense-hydrate) 0 60%, var(--sense-recover) 0 80%, var(--sense-creatine) 0);
}
.chip:hover span { border-color: var(--sense-ink); }
.chip input:checked + span { border-color: var(--sense-ink); background: #fff; font-weight: 700; box-shadow: inset 0 0 0 1px var(--sense-ink); }
.chip input:checked + span i { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--sense-ink); }
.chip input:focus-visible + span { outline: 3px solid var(--sense-focus); outline-offset: 2px; }

.form button[type="submit"] { margin-top: 4px; }
.form.is-loading button[type="submit"] { position: relative; }
.form-status { margin: 12px 0 0; font-size: .95rem; min-height: 0; }
.form-status:empty { display: none; }
.form-status.is-error { color: #B3211B; font-weight: 500; }
.form .fine { font-size: var(--fs-small); color: var(--sense-ink-soft); margin: 14px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-done { outline: none; }
.form-done h3 { font-size: 2.2rem; }
.form-done p { color: var(--sense-ink-soft); margin: 14px 0 22px; }

/* Product dialog */
.product-dialog {
  width: min(920px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
  padding: 0; border: 0; border-radius: var(--radius-m); overflow: auto;
  background: var(--sense-cream); color: var(--sense-ink);
}
.product-dialog::backdrop { background: rgba(28, 26, 23, .55); backdrop-filter: blur(3px); }
.product-dialog[open] { animation: pop .25s ease both; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.pd-inner { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; }
.pd-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  display: grid; place-items: center; background: var(--sense-ink); color: var(--sense-cream); cursor: pointer;
}
.pd-media {
  position: relative; min-height: 420px;
  background: radial-gradient(circle at 50% 75%, color-mix(in srgb, var(--c) 35%, #fff) 0%, var(--sense-paper) 70%);
}
.pd-media img { position: absolute; left: 50%; bottom: 0; translate: -50% 0; height: 82%; width: auto; max-width: 80%; object-fit: contain; }
.pd-body { padding: clamp(28px, 4vw, 48px); padding-right: clamp(28px, 6vw, 64px); }
.pd-num { margin: 0; font-size: var(--fs-label); font-weight: 700; letter-spacing: .12em; }
.pd-body h2 { font-size: clamp(2.6rem, 5vw, 3.6rem); margin-top: 8px; }
.pd-flavour {
  display: inline-block; margin: 14px 0 0; padding: 6px 12px; border-radius: var(--radius-pill);
  background: var(--c-text); font-size: var(--fs-label); font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.pd-what { font-size: var(--fs-lede); margin: 20px 0; }
.pd-label { background: #fff; border-radius: var(--radius-s); padding: 18px 20px; border-left: 6px solid var(--c); }
.pd-label h3 { font-size: 1.1rem; letter-spacing: -0.01em; }
.pd-label p { margin: 8px 0 0; font-size: .95rem; color: var(--sense-ink-soft); }
.pd-note { margin: 14px 0 22px; font-size: var(--fs-small); color: var(--sense-ink-soft); }

/* Footer */
.site-footer { background: var(--sense-ink); color: var(--sense-cream); padding: 64px 0 28px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.footer-inner p { margin: 8px 0 0; opacity: .8; }
.footer-links { display: flex; flex-direction: column; gap: 8px; text-align: right; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-fine { margin-top: 48px; border-top: 1px solid rgba(255, 243, 227, .15); padding-top: 20px; }
.footer-fine p { margin: 0; font-size: .82rem; opacity: .7; }

/* Simple pages (thanks / 404) */
.simple { min-height: 70vh; display: flex; align-items: center; padding: 80px 0; }
.simple p { font-size: var(--fs-lede); color: var(--sense-ink-soft); max-width: 480px; margin: 22px 0 30px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .products { grid-template-columns: repeat(3, 1fr); }
}

/* Tablet: copy gets its own band, the wide shot sits below cropped to the tubs */
@media (max-width: 1099px) {
  .hero { display: flex; flex-direction: column-reverse; background: var(--sense-sand); }
  .hero-copy { position: relative; inset: auto; padding-top: 48px; padding-bottom: 36px; }
  .hero-copy > * { max-width: 620px; }
  .hero-img { height: auto; aspect-ratio: 2 / 1; object-position: 100% 45%; }
  .index-item { font-size: 1.2rem; }
}

@media (max-width: 860px) {
  .section-head, .waitlist-inner, .faq-inner { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; gap: 36px; }
  .faq-photo { position: static; }
  .site-header nav a[href="#faq"] { display: none; }
  .pd-inner { grid-template-columns: 1fr; }
  .pd-media { min-height: 300px; }
}

@media (max-width: 760px) {
  body { font-size: 17px; }
  .site-header nav a:not(.btn) { display: none; }
  .header-inner { height: 64px; }
  .wordmark { font-size: 1.8rem; }

  /* Phone: copy in the wall space above the tubs in the portrait shot */
  .hero-copy { padding-top: 36px; padding-bottom: 0; z-index: 1; }
  .hero-copy > * { max-width: none; }
  .hero-img {
    aspect-ratio: 1122 / 1402; object-position: center; margin-top: -18%;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 24%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 24%);
  }
  .lede { font-size: 1.08rem; margin: 16px 0 24px; }

  .index-list { display: grid; grid-template-columns: repeat(3, auto); justify-content: center; gap: 2px 6px; }
  .index-item { font-size: 1.1rem; gap: 8px; padding: 8px; min-height: 44px; }
  .index-item i { width: 14px; height: 14px; }

  .products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-body { padding: 16px 14px 18px; }
  .product-body h3 { font-size: 1.6rem; }
  .explore { padding: 0 14px; font-size: .9rem; }

  .feature { grid-template-columns: 1fr; }
  .feature img { aspect-ratio: 4 / 3; }

  .footer-links { text-align: left; }
  .pd-media { min-height: 260px; }
}

@media (max-width: 400px) {
  .products { grid-template-columns: 1fr 1fr; gap: 10px; }
  .product-body { padding: 14px 12px 16px; }
  .explore { padding: 0 12px; font-size: .85rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
