/*
  Close to Full website.

  Colours come from the Android app's Palette.kt. Dark ("Aurora") is the
  default; [data-theme="light"] on <html> switches to the app's light palette.
  Keep the two in step with the app: if a hex changes there, change it here.
*/

/* ---------- Fonts (self-hosted, so visitors' IPs never reach Google) ---------- */

@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/hanken-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/hanken-grotesk-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;
}
@font-face {
  font-family: "Caprasimo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/caprasimo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Caprasimo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/caprasimo-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;
}

/* ---------- Tokens ---------- */

:root {
  color-scheme: dark;

  --ground:
    radial-gradient(900px 600px at 85% 0%, rgb(255 107 157 / 0.20), transparent 70%),
    radial-gradient(900px 900px at 0% 45%, rgb(124 92 255 / 0.20), transparent 70%),
    radial-gradient(900px 700px at 100% 85%, rgb(255 107 157 / 0.14), transparent 70%),
    linear-gradient(180deg, #150C2E 0%, #2A1458 45%, #1E1240 75%, #130A2A 100%);
  --ground-flat: #150C2E;
  --avatar-edge: #1E1240;

  --text: #F5F3FF;
  --text-2: #C4B8E8;
  --text-3: #B4AADA;

  --ring-a: #FF6B9D;
  --ring-b: #FFA07A;
  --track: rgb(255 255 255 / 0.10);

  --btn: linear-gradient(90deg, #FF6B9D, #FFA07A);
  --btn-text: #2B0716;
  --accent-text: #FF8FB4;
  --accent-2: #5EEAD4;

  --card-bg: rgb(255 255 255 / 0.08);
  --card-border: rgb(255 255 255 / 0.14);
  --card-shadow: none;
  --soft: rgb(255 255 255 / 0.06);
  --hi-bg: linear-gradient(135deg, rgb(255 107 157 / 0.26), rgb(124 92 255 / 0.20));
  --hi-border: rgb(255 143 180 / 0.42);
  --plus-text: #FFB3CC;

  --divider: rgb(245 243 255 / 0.14);
  --outline: rgb(255 255 255 / 0.25);
  --bar-track: rgb(255 255 255 / 0.12);
  --protein: #5EEAD4;
  --carbs: #FFD166;
  --fat: #FF8FA3;

  --cta-bg: linear-gradient(120deg, rgb(255 107 157 / 0.32), rgb(124 92 255 / 0.25));
  --phone-shell: #0B0618;
  --phone-screen: linear-gradient(180deg, #150C2E, #2A1458 60%, #130A2A);
  --focus: #FF8FB4;

  --serif: "Caprasimo", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;

  --ground: none;
  --ground-flat: #FAFAFA;
  --avatar-edge: #FAFAFA;

  --text: #18181B;
  --text-2: #52525B;
  --text-3: #71717A;

  --ring-a: #E8437F;
  --ring-b: #A33CE0;
  --track: rgb(24 24 27 / 0.07);

  --btn: linear-gradient(90deg, #C92B66, #8E2FCC);
  --btn-text: #FFFFFF;
  --accent-text: #A91D58;
  --accent-2: #0D9488;

  --card-bg: #FFFFFF;
  --card-border: #E2E6ED;
  --card-shadow: 0 1px 2px rgb(34 48 74 / 0.05), 0 16px 40px rgb(34 48 74 / 0.07);
  --soft: #F4F4F5;
  --hi-bg: linear-gradient(135deg, #FDE7F0, #F1E6FD);
  --hi-border: rgb(201 43 102 / 0.28);
  --plus-text: #A91D58;

  --divider: rgb(24 24 27 / 0.12);
  --outline: rgb(24 24 27 / 0.20);
  --bar-track: rgb(24 24 27 / 0.08);
  --protein: #0D9488;
  --carbs: #C2740A;
  --fat: #C2415E;

  --cta-bg: linear-gradient(120deg, #FDE7F0, #EFE6FF);
  --phone-shell: #18181B;
  --phone-screen: #FAFAFA;
  --focus: #A91D58;
}

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px; /* clears the sticky header when jumping to a section */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--ground-flat);
  background-image: var(--ground);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

a { color: var(--accent-text); }
a:hover { opacity: 0.8; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.stack { display: flex; flex-direction: column; gap: 12px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--text);
  color: var(--ground-flat);
  font-weight: 600;
  z-index: 10;
}
.skip-link:focus { top: 16px; }

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding-inline: 24px;
}

.section {
  padding-block: 80px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.section--roomy { padding-block: 96px; }

.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  text-wrap: balance;
}
.h2 { font-size: clamp(34px, 4.4vw, 46px); }
.h2--wide { max-width: 640px; }

.lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 620px;
}

/* ---------- Buttons and pills ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  padding: 16px 24px;
  border-radius: 999px;
  background: var(--btn);
  color: var(--btn-text);
  font-weight: 600;
  font-size: 16px;
  text-align: center;
}
.pill--small { padding: 11px 18px; font-size: 15px; }

.button-outline {
  display: inline-flex;
  align-items: center;
  padding: 16px 22px;
  border-radius: 999px;
  border: 1px solid var(--outline);
  color: var(--text);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
}

/* ---------- Header ---------- */

/* Stays at the top while scrolling, so the nav is always one tap away. */
.site-header-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--ground-flat); /* browsers without color-mix (iOS 15 and older) */
  background: color-mix(in srgb, var(--ground-flat) 85%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--card-border);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}
.brand:hover { opacity: 1; }
.brand__name { font-family: var(--serif); font-size: 22px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 15px;
  font-weight: 500;
}
.site-nav__links {
  display: flex;
  gap: 24px;
  list-style: none;
  padding: 0;
}
.site-nav__links a { color: var(--text-2); text-decoration: none; }
.site-nav__links a:hover { color: var(--text); opacity: 1; }

.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--outline);
  background: transparent;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}
.theme-toggle:hover { background: var(--soft); }
.theme-toggle[hidden] { display: none; }
/* Dark shows the sun (go light); light shows the moon (go dark). */
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* On phones the hero carries the "Coming soon" pill, so the header keeps just the logo and the toggle. */
@media (max-width: 720px) {
  .site-nav__links,
  .site-nav .pill { display: none; }
}

/* ---------- Ring mark ---------- */

.ring-grad-a { stop-color: var(--ring-a); }
.ring-grad-b { stop-color: var(--ring-b); }
.ring-track { stroke: var(--track); }

/* ---------- Hero ---------- */

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 64px;
  padding-block: 64px;
}
.hero__copy {
  flex: 1 1 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.hero__title {
  font-size: clamp(46px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.hero__lead {
  font-size: 20px;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 520px;
}
.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.hero__note {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-3);
  max-width: 520px;
}
.hero__phone {
  flex: 0 1 320px;
  min-width: 0;
  display: flex;
  justify-content: center;
  margin: 0 auto;
}

/* ---------- Phone mockup ---------- */

.phone {
  width: 310px;
  max-width: 100%;
  border-radius: 46px;
  padding: 10px;
  background: var(--phone-shell);
  box-shadow: 0 50px 100px rgb(20 10 40 / 0.35), inset 0 0 0 1px rgb(255 255 255 / 0.14);
}
.phone__screen {
  border-radius: 37px;
  overflow: hidden;
  background: var(--phone-screen);
  padding: 34px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.phone__greeting { font-size: 14px; color: var(--text-2); font-weight: 500; }
.phone__ring-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.phone__ring { position: relative; width: 168px; height: 168px; }
.phone__face { position: absolute; left: 58px; top: 58px; }
.phone__left { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.phone__of { font-size: 13px; color: var(--text-2); }
.phone__pane {
  padding: 14px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.phone__pane--row {
  padding: 12px 14px;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}
.phone__label { font-size: 11px; font-weight: 600; color: var(--text-3); }
.macros { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.macro { display: flex; flex-direction: column; gap: 5px; }
.macro__value { font-size: 18px; font-weight: 600; }
.macro__name { font-size: 11px; color: var(--text-2); }
.macro__bar {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--c) var(--p), var(--bar-track) var(--p));
}
.phone__water-title { font-size: 14px; font-weight: 600; }
.phone__water-value { font-size: 13px; color: var(--text-2); }
.phone__nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-top: 6px;
  font-size: 11px;
  color: var(--text-3);
}
.phone__nav-current { color: var(--accent-text); font-weight: 600; }
.phone__add {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--btn);
  color: var(--btn-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 600;
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  list-style: none;
  padding: 0;
}
.step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 22px;
  border-top: 2px solid var(--text);
}
.step__title {
  font-size: 22px;
  font-weight: 600;
  display: flex;
  gap: 12px;
  align-items: baseline;
}
.step__number { color: var(--accent-text); font-weight: 700; }
.step p { font-size: 16px; line-height: 1.6; color: var(--text-2); }

/* ---------- Faces ---------- */

.faces {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  list-style: none;
  padding: 0;
}
.face-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 12px;
  border-radius: 24px;
  background: var(--soft);
  font-size: 14px;
  color: var(--text-2);
}
.face-card--full {
  background: var(--hi-bg);
  border: 1px solid var(--hi-border);
  color: var(--text);
  font-weight: 600;
}
.face-card svg { color: var(--text); }
.face-card .mouth--level { stroke: var(--accent-2); }

/* ---------- Features ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
}
.feature {
  padding: 28px;
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature h3 { font-size: 20px; font-weight: 600; }
.feature p { font-size: 16px; line-height: 1.55; color: var(--text-2); }

/* ---------- Promises ---------- */

.promises {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  column-gap: 56px;
  list-style: none;
  padding: 0;
}
.promise {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-block: 18px;
  border-bottom: 1px solid var(--divider);
  font-size: 18px;
  line-height: 1.45;
}
.promise svg { flex: 0 0 auto; margin-top: 4px; color: var(--accent-2); }
.promise strong { font-weight: 600; }
.promise span { color: var(--text-2); }

/* ---------- Friends ---------- */

.split {
  display: flex;
  flex-wrap: wrap;
  gap: 64px;
  align-items: center;
}
.split__text {
  flex: 1 1 460px;
  min-width: 0;
  max-width: 580px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.split__text p { font-size: 18px; line-height: 1.65; color: var(--text-2); }
.split__visual {
  flex: 1 1 360px;
  min-width: 0;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.group { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.avatars { display: inline-flex; list-style: none; padding: 0; }
.avatar {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  border: 4px solid var(--avatar-edge);
  color: var(--btn-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
}
.avatar + .avatar { margin-left: -14px; }
.avatar--1 { background: var(--btn); }
.avatar--2 { background: linear-gradient(135deg, var(--accent-2), var(--ring-b)); }
.avatar--3 { background: linear-gradient(135deg, var(--ring-b), var(--ring-a)); }
.avatar--4 { background: linear-gradient(135deg, var(--accent-text), var(--accent-2)); }
.group__caption { font-size: 15px; color: var(--text-2); line-height: 1.4; }

.chip-group { display: flex; flex-direction: column; gap: 12px; }
.chip-group__label { font-size: 14px; font-weight: 600; color: var(--text-3); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 15px;
}
.chip--on { border: 1.5px solid var(--accent-2); color: var(--text); font-weight: 600; }
.chip--on svg { color: var(--accent-2); }
.chip--off { border: 1.5px dashed var(--outline); color: var(--text-2); }
.chip--never { background: var(--soft); color: var(--text-2); }

/* ---------- Privacy ---------- */

.privacy-intro { display: flex; flex-direction: column; gap: 18px; max-width: 680px; }
.privacy-intro p { font-size: 19px; line-height: 1.6; color: var(--text-2); }
.points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  column-gap: 48px;
  row-gap: 36px;
  list-style: none;
  padding: 0;
}
.point {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--divider);
}
.point h3 { font-size: 19px; font-weight: 600; }
.point p { font-size: 16px; line-height: 1.6; color: var(--text-2); }

/* ---------- Pricing ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 20px;
}
.plan {
  padding: 32px;
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.plan--plus { background: var(--hi-bg); border: 1px solid var(--hi-border); }
.plan__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.plan__name { font-size: 22px; font-weight: 600; }
.plan__price { font-size: 15px; color: var(--text-2); }
.plan--plus .plan__price { color: var(--plus-text); font-weight: 600; }
.plan ul {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 16px;
  line-height: 1.45;
}
.plan--free ul { color: var(--text-2); }

/* ---------- Closing ---------- */

.closing {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  padding: clamp(32px, 6vw, 56px);
  border-radius: 40px;
  background: var(--cta-bg);
}
.closing .display { font-size: clamp(36px, 5vw, 52px); }

/* ---------- Footer ---------- */

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text-3);
  padding-block: 24px 32px;
  border-top: 1px solid var(--divider);
}
.site-footer__links { display: flex; gap: 22px; flex-wrap: wrap; list-style: none; padding: 0; }


/* ---------- Motion ---------- */

@keyframes ring-draw { from { stroke-dasharray: 0 267.04; } }
@keyframes face-pop {
  0% { opacity: 0; transform: scale(0.6); }
  70% { opacity: 1; transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.ring-draw { animation: ring-draw 1.4s cubic-bezier(0.22, 0.8, 0.24, 1) 0.2s both; }
.face-pop { animation: face-pop 0.5s ease-out 1.3s both; }

/*
  The faces rise in when they scroll into view. main.js adds .will-rise only
  when it can watch for that, so without JavaScript they are simply there.
*/
.will-rise .face-card { opacity: 0; }
.will-rise.in-view .face-card { animation: rise 0.6s ease-out both; }
.will-rise.in-view .face-card:nth-child(2) { animation-delay: 0.12s; }
.will-rise.in-view .face-card:nth-child(3) { animation-delay: 0.24s; }
.will-rise.in-view .face-card:nth-child(4) { animation-delay: 0.36s; }
.will-rise.in-view .face-card:nth-child(5) { animation-delay: 0.48s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ring-draw,
  .face-pop,
  .will-rise.in-view .face-card { animation: none; }
  .will-rise .face-card { opacity: 1; }
}
