/* junehealth.app — bevel.health's grammar, June's voice.
   Structure borrowed deliberately: inset hero canvas, low-alpha accent washes,
   flat cropped phones with glass chips, one contrast section, single CTA.
   Identity kept deliberately: Celestial night sky, Fraunces, blush, quiet register. */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font: 400 var(--body)/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, video, canvas { display: block; max-width: 100%; }
/* width/height attributes are presentational hints: CSS that overrides only `width`
   leaves the attribute's fixed height in force and stretches the image. Never omit this. */
img { height: auto; }
a { color: var(--blush-rose); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--blush-core); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-weight: 480;
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }
p { margin: 0; }

.eyebrow {
  font: 500 0.8125rem var(--font-mono);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink40);
}
.lede { font-size: var(--lede); line-height: 1.45; color: var(--ink60); }
.caption { font-size: 0.875rem; color: var(--ink40); }

.wrap { max-width: var(--content); margin: 0 auto; padding: 0 var(--margin); }

/* ---------- reveals ---------- */

[data-reveal] { opacity: 0; transform: translateY(12px); }
.revealed {
  opacity: 1; transform: none;
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .chip, .btn { transition: none !important; }
}

/* ---------- nav pill ---------- */

.nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  z-index: 50;
  display: flex; align-items: center; gap: 4px;
  padding: 6px;
  background: rgba(38, 26, 66, 0.6);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--glass-stroke);
  border-radius: 32px;
  box-shadow: 0 3px 18px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}
.nav__brand {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 8px;
  font-family: var(--font-display); font-weight: 500; font-size: 1.0625rem;
  color: var(--ink);
}
.nav__brand:hover { text-decoration: none; }
.nav__brand img { width: 24px; height: 24px; border-radius: 7px; }
.nav a.nav__link {
  padding: 8px 12px; border-radius: 20px;
  color: var(--ink60); font-size: 0.9375rem;
  transition: color 0.15s ease;
}
.nav a.nav__link:hover { color: var(--ink); text-decoration: none; }

/* ---------- App Store badge (greyed until launch) ---------- */

.badge-appstore {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 20px 10px 16px;
  border: 1px solid var(--shell);
  border-radius: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  opacity: 0.6;
  cursor: default;
  user-select: none;
}
.badge-appstore svg { width: 22px; height: 26px; fill: currentColor; flex: none; }
.badge-appstore .lines { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.badge-appstore .small { font-size: 0.6875rem; color: var(--ink60); }
.badge-appstore .big { font-size: 1.0625rem; font-weight: 600; letter-spacing: 0.01em; }
.nav .badge-appstore { padding: 6px 14px 6px 12px; border-radius: 20px; }
.nav .badge-appstore svg { width: 15px; height: 18px; }
.nav .badge-appstore .small { display: none; }
.nav .badge-appstore .big { font-size: 0.875rem; }

/* ---------- hero: the inset canvas ---------- */

.hero {
  position: relative;
  margin: 8px;
  min-height: calc(100svh - 16px);
  border-radius: var(--radius-canvas);
  overflow: hidden;
  background: var(--flood);
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: clamp(7rem, 16vh, 10rem) var(--margin) 0;
}
.hero__stars { position: absolute; inset: 0; width: 100%; height: 100%; }

.moon {
  position: absolute; border-radius: 50%; pointer-events: none;
}
.moon::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 30% 24%, rgba(255,255,255,0.55) 0%,
              rgba(255,255,255,0.18) 22%, rgba(255,255,255,0) 48%);
}
.moon::after {
  content: ""; position: absolute; inset: -18%; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, var(--halo) 55%, transparent 75%);
  opacity: 0.3;
}
.moon--pearl {
  --halo: #F98E58;
  width: clamp(180px, 26vw, 340px); height: clamp(180px, 26vw, 340px);
  top: -60px; right: -70px;
  background: radial-gradient(circle at 34% 30%, #FFE8D6 0%, #FFCFAC 30%, #FF9E80 62%, #F0776B 100%);
}
.moon--violet {
  --halo: #7C5CE8;
  width: clamp(70px, 9vw, 120px); height: clamp(70px, 9vw, 120px);
  bottom: 26%; left: 6%;
  background: radial-gradient(circle at 34% 30%, #B79AF5 0%, #9A6BF0 55%, #6E4ED0 100%);
}

.hero__content { position: relative; z-index: 2; max-width: 56rem; }
.hero h1 { margin: 18px 0 20px; }
.hero .lede { max-width: 40rem; margin: 0 auto; }
.hero__cta { margin-top: 34px; display: flex; flex-direction: column; align-items: center; gap: 10px; }

.hero__badges {
  display: flex; gap: clamp(2rem, 6vw, 4rem); justify-content: center;
  margin-top: clamp(2.2rem, 5vh, 3.5rem);
}
.stat { text-align: center; }
.stat .val {
  font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.6rem, 3.4vw, 2.25rem); color: var(--ink);
}
.stat .lbl { font-size: 0.8125rem; color: var(--ink60); margin-top: 2px; }

/* the hero phone — fully visible, never cropped by the canvas */
.hero__phone {
  position: relative; z-index: 2;
  margin-top: clamp(2.5rem, 6vh, 4.5rem);
  margin-bottom: clamp(2.5rem, 6vh, 4rem);
  width: min(400px, 78vw);
}

/* ---------- phone: a real iPhone, bevel-style ----------
   Black screen bezel, titanium band, side buttons. The screenshot supplies its own
   status bar and Dynamic Island, so inside a true dark bezel it reads as the device
   itself — not artwork in a frame. */

.phone {
  position: relative;
  background: #0B0B0F;                    /* the black bezel around the panel */
  border-radius: 55px;
  padding: 11px;
  box-shadow:
    0 0 0 2.5px #4B4B52,                  /* titanium band */
    0 0 0 3.5px rgba(255, 255, 255, 0.22),/* edge catch-light */
    0 30px 70px rgba(0, 0, 0, 0.55);
}
.phone img { border-radius: 44px; width: 100%; }
/* side buttons, poking out past the band */
.phone::before {                          /* power, right side */
  content: ""; position: absolute; right: -5.5px; top: 25%;
  width: 3px; height: 68px; border-radius: 2px; background: #4B4B52;
}
.phone::after {                           /* volume pair, left side */
  content: ""; position: absolute; left: -5.5px; top: 20%;
  width: 3px; height: 44px; border-radius: 2px; background: #4B4B52;
  box-shadow: 0 60px 0 #4B4B52;
}

/* ---------- the live Today screen (hero) ----------
   Recreates the app screen so the onboarding reveal can play for real: master timeline
   2.4s ease-in-out (Pearl.Motion.revealDuration), dots sweep in from day 1, the
   ovulation orb blooms at 55-75%, markers settle at 75-100%, centre text after 85%,
   then the hormone curves draw. Colours are the app's WheelPalette anchors verbatim. */

.screen {
  position: relative;
  aspect-ratio: 440 / 956;
  border-radius: 44px;
  overflow: hidden;
  background:
    radial-gradient(120% 60% at 50% 100%, rgba(63, 217, 192, 0.06), transparent 60%),
    linear-gradient(160deg, #2A1B4E 0%, #241743 45%, #180F2B 100%);
  display: flex; flex-direction: column;
  font-family: var(--font-body);
  user-select: none;
}
.screen__stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.screen__island {
  position: relative; z-index: 2;
  width: 27%; height: 3.1%;
  margin: 3% auto 0;
  background: #000; border-radius: 100px;
}
.screen__header {
  position: relative; z-index: 2;
  text-align: center;
  margin-top: 4.5%;
  font-size: clamp(0.7rem, 4cqw, 1rem);
  font-weight: 600; color: var(--ink);
}
.screen { container-type: inline-size; }

.screen__wheel { position: relative; z-index: 2; margin: 2% 4% 0; }
.screen__wheel svg { width: 100%; height: auto; display: block; }

.screen__centre {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.5cqw;
  text-align: center;
  opacity: 0; transform: translateY(4px);
  transition: opacity 0.24s var(--ease-out), transform 0.24s var(--ease-out);
}
.screen__centre.on { opacity: 1; transform: none; }
.screen__eyebrow {
  font: 500 2.9cqw var(--font-mono); letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink40);
}
.screen__days {
  font-family: var(--font-display); font-weight: 480;
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: 10.5cqw; line-height: 1; color: var(--ink);
}
.screen__meta { font-size: 3.2cqw; color: var(--ink60); }
.screen__cta {
  margin-top: 2.5cqw;
  padding: 2.6cqw 6cqw;
  border-radius: 100px;
  background: linear-gradient(90deg, #7C5CE8, #9A6BF0);
  color: #FFFFFF; font-size: 3.6cqw; font-weight: 600;
}

.screen__strip { position: relative; z-index: 2; margin: 5% 5% 0; }
.screen__strip svg { width: 100%; height: auto; display: block; }
.screen__band {
  display: flex; gap: 1.5cqw; margin-top: 2cqw;
  opacity: 0; transition: opacity 0.4s var(--ease-out);
}
.screen__band.on { opacity: 1; }
.pill {
  flex: 1; text-align: center;
  font: 500 2.4cqw var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink60);
  padding: 1.6cqw 0; border-radius: 100px;
  background: rgba(50, 36, 83, 0.8);
}
.pill--follicular {
  background: linear-gradient(90deg, #F2A98E, #F08FA0);
  color: #1C1130; font-weight: 600;
}
.screen__note {
  margin-top: 2.5cqw;
  text-align: center;
  font-size: 2.5cqw; color: var(--ink40);
  opacity: 0; transition: opacity 0.4s var(--ease-out);
}
.screen__note.on { opacity: 1; }

/* glass chips floated over phones */
.chip {
  position: absolute;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(38, 26, 66, 0.55);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--glass-stroke);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
  font-size: 0.8125rem; color: var(--ink);
  white-space: nowrap;
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.chip small { color: var(--ink60); font-size: 0.75rem; }
/* in-flow variant for chip stacks inside cards */
.chip--static { position: static; width: fit-content; }
.chip-stack { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.chip-stack .chip--static:nth-child(2) { margin-left: 28px; }
.chip-stack .chip--static:nth-child(3) { margin-left: 8px; }

/* floated chip positions (hero + Ask June phones) */
.chip--tl { top: 14%; left: -34%; }
.chip--tr { top: 34%; right: -30%; }
.chip--ql { top: 18%; left: -38%; }
.chip--qr { top: 32%; right: -34%; }
@media (max-width: 640px) {
  /* keep chips inside the viewport — they may overlap the bezel, which reads as intended */
  .chip--tl, .chip--ql { left: -16px; }
  .chip--tr, .chip--qr { right: -16px; }
  .chip--qr { max-width: 76vw; white-space: normal; }
}

/* ---------- sections ---------- */

.section { padding: var(--chapter) 0 0; }
.section__head { max-width: 46rem; margin: 0 auto; text-align: center; }
.section__head h2 { margin: 14px 0 16px; }

/* claim bar */
.claims {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  padding-top: calc(var(--chapter) * 0.6);
}
.claims .item { display: flex; align-items: center; gap: 10px; color: var(--ink60); font-size: 0.9375rem; }
.claims .item::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--blush-core); opacity: 0.7;
}

/* bento */
.bento {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: clamp(2.5rem, 6vw, 4rem);
}
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--glass-stroke);
  border-radius: var(--radius-sheet);
  overflow: hidden;
  padding: 28px 28px 0;
  display: flex; flex-direction: column;
}
.card--luteal     { background-image: linear-gradient(rgba(0,0,0,0) 40%, rgba(159,123,232,0.20) 90%, rgba(159,123,232,0.40)); }
.card--follicular { background-image: linear-gradient(rgba(0,0,0,0) 40%, rgba(240,143,160,0.18) 90%, rgba(240,143,160,0.36)); }
.card--fertile    { background-image: linear-gradient(rgba(0,0,0,0) 40%, rgba(83,227,155,0.16) 90%, rgba(83,227,155,0.33)); }
.card h3 { margin: 10px 0 8px; }
.card .lede { font-size: 1rem; }
.card__art { margin-top: 24px; }
.card__art img { width: 100%; border-radius: 16px 16px 0 0; border: 1px solid var(--glass-stroke); border-bottom: 0; }
.card__art--strip { margin-top: auto; padding-top: 32px; }
.card__art--strip img { border: 0; border-radius: 0; }

/* split cards */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  margin-top: var(--chapter);
}
.split__copy h2 { margin: 14px 0 16px; }
.split__copy .lede { max-width: 30rem; }
.split--flip .split__copy { order: 2; }
.split--flip .split__art { order: 1; }
.split__art { position: relative; }
.split__art .ring { width: min(480px, 90%); margin: 0 auto; }

/* editorial (arc motif behind text) */
.editorial { position: relative; }
.editorial .arc {
  position: absolute; right: -8%; top: 50%; transform: translateY(-50%);
  width: min(420px, 60vw); opacity: 0.5; pointer-events: none;
}

/* ---------- light contrast section ---------- */

.section--light {
  margin-top: var(--chapter);
  background: var(--bone-light);
  color: var(--ink-light);
  border-radius: var(--radius-canvas);
  margin-left: 8px; margin-right: 8px;
  padding: var(--chapter) 0;
  overflow: hidden;
}
.section--light .eyebrow { color: #6F695E; }
.section--light .lede { color: var(--ink60-light); }
.section--light .caption { color: #6F695E; }
.section--light .split { margin-top: clamp(2.5rem, 6vw, 4rem); }
.section--light .chip {
  background: rgba(255, 254, 251, 0.75);
  border-color: rgba(31, 28, 24, 0.08);
  color: var(--ink-light);
  box-shadow: 0 2px 16px rgba(31, 28, 24, 0.12);
}
.section--light .chip small { color: var(--ink60-light); }
.phone-stage { position: relative; width: min(400px, 84vw); margin: 0 auto; }
.phone-stage .phone { margin-bottom: -34%; }
.section--light .phone {
  box-shadow:
    0 0 0 2.5px #4B4B52,
    0 0 0 3.5px rgba(255, 255, 255, 0.5),
    0 24px 56px rgba(31, 28, 24, 0.28);
}

/* ---------- privacy card ---------- */

.privacy-card {
  position: relative;
  margin-top: var(--chapter);
  border-radius: var(--radius-canvas);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(63, 217, 192, 0.16) 0%, rgba(63, 217, 192, 0.05) 45%, rgba(0,0,0,0) 70%),
    #150C26;
  border: 1px solid var(--glass-stroke);
  padding: var(--chapter) var(--margin);
  text-align: center;
}
.privacy-card .crescent {
  position: absolute; right: -120px; bottom: -160px;
  width: 480px; height: 480px; opacity: 0.06; pointer-events: none;
}
.privacy-card h2 { margin: 14px 0 16px; }
.privacy-card .lede { max-width: 38rem; margin: 0 auto; }
.privacy-rows {
  margin: clamp(2rem, 5vw, 3rem) auto 0; max-width: 30rem;
  text-align: left; border-top: 1px solid var(--oyster);
}
.privacy-rows .row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 14px 4px; border-bottom: 1px solid var(--oyster);
  font-size: 0.9375rem;
}
.privacy-rows .row span:first-child { color: var(--ink60); }
.privacy-rows .row span:last-child { color: var(--ink); font-weight: 500; }
.privacy-card .more { display: inline-block; margin-top: 24px; font-size: 0.9375rem; }

/* ---------- final CTA + footer ---------- */

.finale { text-align: center; padding: var(--chapter) var(--margin); }
.finale h2 { font-size: clamp(2.5rem, 6vw, 4.25rem); }
.finale .hero__cta { margin-top: 30px; }
.finale .legal { margin-top: 40px; }

.footer {
  border-top: 1px solid var(--oyster);
  margin-top: var(--chapter);
  padding: 48px var(--margin) 56px;
}
.footer .cols {
  max-width: var(--content); margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center;
}
.footer .brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.0625rem; }
.footer .brand img { width: 22px; height: 22px; border-radius: 6px; }
.footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer nav a { color: var(--ink60); font-size: 0.9375rem; }
.footer .fine { max-width: var(--content); margin: 26px auto 0; color: var(--ink40); font-size: 0.8125rem; line-height: 1.6; }

/* ---------- legal pages (privacy / terms / support / 404) ---------- */

.page { max-width: 42.5rem; margin: 0 auto; padding: 120px var(--margin) 96px; }
.page h1 { font-size: clamp(2.25rem, 5vw, 2.75rem); margin-bottom: 8px; }
.page .updated { color: var(--ink40); font-size: 0.875rem; margin-bottom: 40px; }
.page h2 { font-size: 1.5rem; margin: 44px 0 12px; }
.page p, .page li { color: var(--ink60); margin-bottom: 12px; }
.page strong { color: var(--ink); font-weight: 600; }
.page .card-block {
  background: var(--card); border: 1px solid var(--glass-stroke);
  border-radius: var(--radius-card); padding: 22px 26px; margin: 18px 0;
}
.page ul, .page ol { padding-left: 22px; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split--flip .split__copy { order: 1; }
  .split--flip .split__art { order: 2; }
  .editorial .arc { position: static; transform: none; margin: 24px auto 0; opacity: 0.4; }
  .nav a.nav__link { display: none; }
}
@media (max-width: 480px) {
  .hero { padding-top: 6.5rem; }
  .hero__badges { gap: 1.6rem; }
  .privacy-card .crescent { width: 300px; right: -100px; bottom: -120px; }
}
