/* Layout: a phase slider. The hero is one inset frame that floods with the current phase's
   pastel; a giant italic phase word sits behind a centred phone, and a 28-day ruler along the
   bottom drives everything. Below it the page stays quiet: ink on off-white, hairlines, one
   dark frame for the intensity curve. Single light theme, matching the app. */
@property --flood { syntax: '<color>'; inherits: true; initial-value: #ECC5CC; }
@property --phase { syntax: '<color>'; inherits: true; initial-value: #7BA88C; }
:root {
  color-scheme: light;
  --bg: #FCF4F2;
  --pink: #F1CBD2;
  --pink-soft: #FBE7EA;
  --surface: #FFFAF9;
  --ink: #2A1A20;
  --mid: #745C62;
  --muted: #A08D92;
  --line: rgba(74, 32, 46, .15);
  --accent: #B0475F;
  --night: #3A1C28;
  --night-fg: #F3ECE4;
  --night-mid: rgba(243, 236, 228, .62);
  --night-line: rgba(243, 236, 228, .15);
  --mens: #C0526C;  --mens-flood: #ECC5CC;
  --sage: #7BA88C;  --sage-flood: #CBDCCD;
  --sand: #C69B6D;  --sand-flood: #EAD6B8;
  --lav:  #9887C0;  --lav-flood:  #D4CCE8;
  --app-bg: #FBF7F3; --app-line: #ECE4DC; --app-rose: #B34F63; --app-rose-soft: #FBEAEF;
  --flood: #CBDCCD; --phase: #7BA88C;
  --display: 'Cormorant Garamond', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --maxw: 1200px;
  transition: --flood 1.1s cubic-bezier(.4, 0, .2, 1), --phase 1.1s cubic-bezier(.4, 0, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::after { /* film grain: unifies the flat colour planes */
  content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: var(--accent); color: #fff; }
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.wrap {
  max-width: var(--maxw); margin-inline: auto;
  padding-left: max(22px, env(safe-area-inset-left, 0px));
  padding-right: max(22px, env(safe-area-inset-right, 0px));
}
.label { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--mid); font-weight: 500; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: .98; margin: 0; text-wrap: balance; letter-spacing: -.02em; }
h2 { font-size: clamp(2.6rem, 5.6vw, 4.8rem); }
h1 em, h2 em { font-style: italic; color: var(--accent); }
p { margin: 0; }
.lede { font-size: clamp(1rem, 1.25vw, 1.125rem); color: var(--mid); max-width: 32em; font-weight: 300; }

.btn {
  display: inline-flex; align-items: center; gap: 14px; text-decoration: none; cursor: pointer; white-space: nowrap;
  font: 500 14px/1 var(--body); letter-spacing: .01em; color: #fff; background: var(--accent);
  padding: 7px 7px 7px 24px; border-radius: 999px; transition: transform .3s var(--ease);
}
.btn i {
  width: 38px; height: 38px; border-radius: 50%; background: var(--pink-soft); color: var(--accent); font-style: normal;
  display: grid; place-items: center; font-size: 16px; transition: transform .35s var(--ease);
}
.btn:hover i { transform: rotate(-45deg); }
.btn:active { transform: scale(.97); }
.btn.small { padding: 12px 20px; }
.link { font-size: 14px; font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; transition: opacity .2s; }
.link:hover { opacity: .6; }

/* ---------- hero frame ---------- */
.hero-pad { padding: 12px max(12px, env(safe-area-inset-right, 0px)) 0 max(12px, env(safe-area-inset-left, 0px)); }
.hero {
  position: relative; overflow: hidden; border-radius: 36px; background: var(--pink);
  display: grid; grid-template-rows: auto 1fr auto; min-height: 820px; padding: 0 clamp(18px, 3.4vw, 48px);
  --px: 0; --py: 0;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; position: relative; z-index: 3; animation: enter .9s var(--ease) both; }
.logo { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 32px; letter-spacing: -.02em; text-decoration: none; line-height: 1; }
.nav-links { display: flex; align-items: center; gap: 34px; font-size: 14px; }
.nav-links a:not(.btn) { text-decoration: none; opacity: .72; transition: opacity .2s; }
.nav-links a:not(.btn):hover { opacity: 1; }

.ghost {
  --len: 4; position: absolute; left: 50%; top: 15%; z-index: -1; pointer-events: none; user-select: none;
  --gk: 132;
  font: italic 500 min(23rem, calc(var(--gk) * 1vw / var(--len)))/.8 var(--display); letter-spacing: -.04em;
  color: rgba(255, 253, 250, .62); white-space: nowrap;
  transform: translate(calc(-50% + var(--px) * -18px), calc(-50% + var(--py) * -10px));
}
.ghost span { display: inline-block; animation: enter 1.4s .2s var(--ease) both; }

.hero-main { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: clamp(16px, 3vw, 48px); align-items: end; position: relative; z-index: 1; padding-block: 8px 34px; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; padding-bottom: 6px; }
.hero-copy .label { animation: enter .9s .15s var(--ease) both; color: var(--ink); opacity: .7; }
h1 { font-size: clamp(2.7rem, 4.9vw, 4.6rem); }
h1 em { color: var(--accent); }
h1 .ln { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
h1 .ln > span { display: inline-block; animation: rise 1.1s var(--ease) both; }
h1 .ln:nth-child(1) > span { animation-delay: .25s; }
h1 .ln:nth-child(2) > span { animation-delay: .35s; }
h1 .ln:nth-child(3) > span { animation-delay: .45s; }
.hero-copy .lede { color: var(--ink); opacity: .78; max-width: 24em; animation: enter .9s .65s var(--ease) both; }
.hero-copy .lede { --o: .78; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; animation: enter .9s .8s var(--ease) both; }
@keyframes rise { from { transform: translateY(110%); } to { transform: none; } }
@keyframes enter { from { opacity: 0; transform: translateY(22px); } }

/* phase side block */
.side { justify-self: end; width: min(300px, 100%); display: flex; flex-direction: column; gap: 14px; padding-bottom: 6px; animation: enter .9s .95s var(--ease) both; }
.side .label { color: var(--ink); opacity: .7; font-variant-numeric: tabular-nums; }
.side h3 { font-size: clamp(1.9rem, 2.6vw, 2.4rem); font-style: italic; }
.side p { font-size: 14.5px; font-weight: 300; opacity: .82; min-height: 4.6em; }
.side-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid rgba(30, 25, 23, .22); padding-top: 14px; }
.side-row .num { font: 400 2.6rem/.9 var(--display); font-variant-numeric: tabular-nums; }
.side-row .num small { font: 500 11px var(--body); letter-spacing: .2em; text-transform: uppercase; opacity: .7; margin-left: 8px; }
.arrows { display: flex; gap: 8px; }
.arrows button {
  appearance: none; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font: 400 17px/1 var(--body);
  background: transparent; border: 1px solid rgba(30, 25, 23, .35); color: var(--ink); transition: background .25s, color .25s;
}
.arrows button:hover { background: var(--ink); color: var(--bg); }

/* ---------- phone ---------- */
.phone-wrap { position: relative; perspective: 1400px; animation: phone-in 1.4s .3s var(--ease) both; }
@keyframes phone-in { from { opacity: 0; transform: translateY(48px) scale(.96); } }
.phone {
  position: relative; width: 292px; aspect-ratio: 292 / 604; border-radius: 54px; padding: 9px;
  background: #0D0C0B;
  box-shadow: 0 0 0 1.5px #6E6661, 0 0 0 4px #24201E, 0 0 0 5px #8C847E,
              0 60px 80px -40px rgba(30, 25, 23, .55), 0 30px 40px -30px rgba(30, 25, 23, .45);
  transform: rotateY(calc(var(--px) * 7deg)) rotateX(calc(var(--py) * -5deg));
}
.phone::before, .phone::after { content: ""; position: absolute; width: 4px; border-radius: 2px; background: #3A3432; }
.phone::before { left: -8px; top: 118px; height: 26px; box-shadow: 0 46px 0 #3A3432, 0 52px 0 #3A3432, 0 58px 0 #3A3432, 0 64px 0 #3A3432, 0 106px 0 #3A3432, 0 112px 0 #3A3432, 0 118px 0 #3A3432, 0 124px 0 #3A3432; }
.phone::after { right: -8px; top: 176px; height: 78px; }
.screen { position: relative; height: 100%; border-radius: 45px; overflow: hidden; background: var(--app-bg); display: flex; flex-direction: column; font-size: 10px; line-height: 1.35; color: #2B2320; }
.island { position: absolute; top: 9px; left: 50%; translate: -50% 0; width: 82px; height: 24px; border-radius: 20px; background: #0D0C0B; z-index: 2; }
.status { display: flex; justify-content: space-between; align-items: center; padding: 13px 24px 0 28px; height: 40px; font: 600 12px var(--body); flex: none; }
.status svg { height: 9px; width: auto; display: block; }
.app { flex: 1; min-height: 0; padding: 8px 13px 0; display: flex; flex-direction: column; gap: 9px; }
.ph-top { display: flex; justify-content: space-between; align-items: flex-end; padding-bottom: 7px; border-bottom: 1px solid var(--app-line); }
.ph-top .logo { font-size: 21px; color: var(--app-rose); }
.ph-kcal { text-align: right; font-size: 6.5px; letter-spacing: .24em; color: #6E5F58; }
.ph-kcal b { display: block; font: 500 12px var(--display); letter-spacing: 0; color: var(--app-rose); font-variant-numeric: tabular-nums; }
.ph-hello { font: italic 500 22px/1 var(--display); }
.ph-goal { font-size: 6.5px; letter-spacing: .26em; color: #9887C0; margin-top: 4px; }
.ph-card { background: #fff; border: 1px solid var(--app-line); border-radius: 15px; padding: 10px 11px; }
.ph-eyebrow { font-size: 6.5px; letter-spacing: .24em; text-transform: uppercase; color: #6E5F58; }
.ph-phase { background: color-mix(in srgb, var(--flood) 45%, #fff); border-color: color-mix(in srgb, var(--phase) 45%, transparent); }
.ph-lead { font: 500 15px/1.1 var(--display); margin-top: 4px; min-height: 2.2em; }
.meter { height: 4px; border-radius: 9px; background: rgba(43, 35, 32, .1); overflow: hidden; margin-top: 7px; }
.meter i { display: block; height: 100%; border-radius: 9px; background: var(--phase); transform-origin: left; transition: transform 1s var(--ease); }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin-top: 7px; }
.week span { border: 1px solid var(--app-line); border-radius: 8px; padding: 5px 0 6px; text-align: center; font-size: 6.5px; color: #A79A92; background: #F6F1EC; }
.week span b { display: block; font-weight: 500; color: #2B2320; font-size: 7px; margin-bottom: 7px; }
.week span.w { background: var(--app-rose-soft); color: var(--app-rose); }
.week span.now { border-color: #2B2320; }
.ph-daily { background: var(--app-rose-soft); border-color: #F3D3DB; display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; row-gap: 8px; }
.ph-daily .big { font: 500 32px/.9 var(--display); color: var(--app-rose); font-variant-numeric: tabular-nums; }
.ph-daily .left { text-align: right; color: #6E5F58; font-size: 9px; }
.ph-daily .meter { flex-basis: 100%; margin-top: 0; }
.ph-daily .meter i { background: #D2687B; transform: scaleX(.54); }
.ph-macros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.ph-macros div { border-radius: 11px; padding: 7px 8px; font-size: 7.5px; color: #6E5F58; }
.ph-macros b { display: block; font: 500 13px var(--display); }
.m-p { background: #F1EEF8; } .m-p b { color: #9887C0; }
.m-k { background: #F9F1E8; } .m-k b { color: #C69B6D; }
.m-f { background: #EDF4EF; } .m-f b { color: #7BA88C; }
.ph-water .ph-eyebrow { display: flex; justify-content: space-between; }
.ph-water .ph-eyebrow span { letter-spacing: .04em; text-transform: none; font-size: 8px; }
.ph-glasses { display: grid; grid-template-columns: repeat(11, 1fr); gap: 3px; margin-top: 7px; }
.ph-glasses i { height: 15px; border-radius: 4px; border: 1px solid var(--app-line); }
.ph-glasses i.f { background: #BCD9EE; border-color: #A6CBE5; }
.tabbar { flex: none; display: grid; grid-template-columns: repeat(7, 1fr); padding: 7px 6px 20px; border-top: 1px solid var(--app-line); background: #fff; font-size: 6px; color: #A79A92; text-align: center; position: relative; }
.tabbar svg { display: block; width: 14px; height: 14px; margin: 0 auto 3px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tabbar > * { appearance: none; background: none; border: 0; padding: 0; font: inherit; color: inherit; }
.tabbar button { cursor: pointer; }
.tabbar .on { color: var(--app-rose); font-weight: 600; }
.tabbar::after { content: ""; position: absolute; bottom: 6px; left: 50%; translate: -50% 0; width: 96px; height: 4px; border-radius: 4px; background: #1E1917; }

/* 28-day ruler */
.ruler { position: relative; z-index: 1; padding-block: 16px 22px; border-top: 1px solid rgba(30, 25, 23, .22); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center; animation: enter .9s 1.1s var(--ease) both; }
.ruler .label { color: var(--ink); opacity: .75; font-variant-numeric: tabular-nums; }
.ticks { position: relative; display: grid; grid-template-columns: repeat(28, 1fr); align-items: end; height: 22px; }
.ticks i { justify-self: start; width: 1.5px; height: 9px; background: var(--ink); opacity: .28; transition: height .5s var(--ease), opacity .5s; }
.ticks i.cur { height: 18px; opacity: 1; }
.mark { position: absolute; top: -3px; left: 0; width: 9px; height: 9px; margin-left: -4px; border-radius: 50%; background: var(--ink); }

@media (max-width: 980px) {
  .hero { min-height: 0; border-radius: 28px; }
  .hero-main { grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 36px; padding-block: 10px 30px; }
  .phone-wrap { justify-self: center; }
  .side { justify-self: stretch; width: 100%; }
  .side p { min-height: 3.2em; }
  .ghost { top: -1%; --gk: 205; }
  .hero-main { gap: 64px 36px; }
  .ruler { grid-template-columns: minmax(0, 1fr) auto; }
  .ruler .ticks { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 420px) { .phone { width: 262px; } }

/* ---------- manifesto ---------- */
.manifesto { padding-block: clamp(80px, 12vw, 170px); }
.manifesto p { font: 400 clamp(2rem, 4.6vw, 4rem)/1.08 var(--display); letter-spacing: -.02em; max-width: 19em; }
.manifesto .w { transition: opacity .25s linear; }
.manifesto .label { display: block; margin-bottom: 28px; }

/* ---------- sections ---------- */
section { padding-block: clamp(70px, 9vw, 130px); }
.sec-head { display: flex; flex-direction: column; gap: 20px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 780px; }

/* phases: one dark frame */
.night-pad { padding-inline: max(12px, env(safe-area-inset-left, 0px)) max(12px, env(safe-area-inset-right, 0px)); }
.night { background: var(--night); color: var(--night-fg); border-radius: 36px; padding-block: clamp(56px, 8vw, 110px); }
.night .label { color: var(--night-mid); }
.night h2 em { color: var(--flood); }
.night .lede { color: var(--night-mid); }
.curve { width: 100%; height: auto; display: block; overflow: visible; }
.curve .grid { stroke: var(--night-line); stroke-width: 1; }
.curve .line { fill: none; stroke: url(#cg); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.curve .area { fill: url(#ca); }
.curve .ax { font: 500 11px var(--body); letter-spacing: .14em; fill: var(--night-mid); text-transform: uppercase; }
.curve .rider { fill: var(--night); stroke: var(--flood); stroke-width: 3.5; }
.curve .rule { stroke: var(--flood); stroke-width: 1; stroke-dasharray: 2 6; opacity: .7; }
.phase-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 26px; border-top: 1px solid var(--night-line); }
.phase-tab {
  --c: var(--sage);
  appearance: none; font: inherit; color: var(--night-mid); text-align: left; cursor: pointer; background: none; border: 0;
  border-top: 2px solid transparent; margin-top: -1px; padding: 18px 12px 18px 0; display: flex; flex-direction: column; gap: 4px; min-width: 0;
  transition: color .3s, border-color .3s;
}
.phase-tab:hover { color: var(--night-fg); }
.phase-tab[aria-pressed="true"] { color: var(--night-fg); border-top-color: var(--c); }
.phase-tab b { font: 400 clamp(1.15rem, 2.2vw, 1.7rem)/1.1 var(--display); overflow-wrap: anywhere; }
.phase-tab[aria-pressed="true"] b { font-style: italic; }
.phase-tab small { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.phase-panel { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: end; margin-top: clamp(28px, 4vw, 52px); }
.phase-panel h3 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); font-style: italic; color: var(--flood); }
.phase-panel p { color: var(--night-mid); margin-top: 16px; max-width: 32em; font-weight: 300; }
.intensity { display: flex; flex-direction: column; gap: 10px; }
.intensity .num { font: 400 clamp(4rem, 8vw, 6.6rem)/.8 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.intensity .num sup { font-size: .3em; color: var(--night-mid); margin-left: 4px; }
.night .meter { height: 3px; background: var(--night-line); }
.fine { font-size: 12.5px; color: var(--night-mid); margin-top: clamp(32px, 4vw, 52px); max-width: 62em; font-weight: 300; }
@media (max-width: 700px) {
  .night { border-radius: 28px; }
  .phase-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phase-panel { grid-template-columns: minmax(0, 1fr); }
}

/* bento */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.cell { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 2.8vw, 38px); display: flex; flex-direction: column; gap: 12px; min-width: 0; transition: border-color .3s; }
.cell:hover { border-color: rgba(30, 25, 23, .4); }
.cell h3 { font-size: clamp(1.7rem, 2.5vw, 2.2rem); line-height: 1.05; }
.cell > p { color: var(--mid); font-size: 15px; font-weight: 300; max-width: 30em; }
.cell .demo { margin-top: auto; padding-top: 22px; }
.c-train { grid-column: span 7; }
.c-food  { grid-column: span 5; }
.c-water, .c-recipe, .c-stats { grid-column: span 4; }
@media (max-width: 900px) { .c-train, .c-food, .c-water, .c-recipe, .c-stats { grid-column: span 12; } }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; border-top: 1px solid var(--line); }
.steps li { counter-increment: s; display: flex; gap: 18px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--muted); transition: color .5s, padding-left .5s var(--ease); }
.steps li::before { content: "0" counter(s); font: 500 11px var(--body); letter-spacing: .14em; }
.steps li.on { color: var(--ink); padding-left: 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 11px; letter-spacing: .08em; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); color: var(--mid); }
.tip { font: italic 400 1.15rem/1.3 var(--display); color: var(--mid); }

.bars { display: grid; gap: 16px; }
.bar-row { display: grid; grid-template-columns: 5.5em minmax(0, 1fr) 3.4em; gap: 12px; align-items: center; font-size: 13.5px; }
.bar-row .track { height: 3px; border-radius: 9px; background: var(--line); }
.bar-row .track i { display: block; height: 100%; border-radius: 9px; transform: scaleX(var(--v)); transform-origin: left; transition: transform 1.4s var(--ease); }
.pre .bar-row .track i, .pre .col i { transform: scale(0); }
.bar-row span:last-child { text-align: right; font-variant-numeric: tabular-nums; color: var(--mid); }
.kcal-line { font: 400 clamp(3.2rem, 5.4vw, 4.6rem)/.9 var(--display); letter-spacing: -.03em; }
.kcal-line small { font: 500 11px var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--mid); margin-left: 6px; }

.glasses { display: flex; flex-wrap: wrap; gap: 6px; }
.glasses i { width: 22px; height: 32px; border-radius: 4px 4px 8px 8px; border: 1px solid rgba(30, 25, 23, .3); background: linear-gradient(#A9C6DA, #A9C6DA) bottom / 100% 0% no-repeat; transition: background-size .6s var(--ease), border-color .6s; }
.glasses i.full { background-size: 100% 100%; border-color: #7FA7C2; }
.big-num { font: 400 clamp(3.2rem, 5.4vw, 4.6rem)/.9 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.big-num small { font: 500 11px var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--mid); margin-left: 6px; }

.recipe { border-top: 1px solid var(--line); padding-top: 18px; display: grid; gap: 10px; }
.recipe b { font: italic 400 1.9rem/1.05 var(--display); }
.recipe .meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--mid); font-variant-numeric: tabular-nums; }

.cols { display: flex; align-items: flex-end; gap: 8px; height: 130px; }
.col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; height: 100%; font-size: 11.5px; color: var(--mid); font-variant-numeric: tabular-nums; }
.col i { display: block; width: 100%; height: calc(var(--v) * 1%); background: rgba(30, 25, 23, .14); border-radius: 6px 6px 0 0; transform-origin: bottom; transition: transform 1.3s var(--ease); }
.col:last-child i { background: var(--accent); }
.col:last-child { color: var(--ink); font-weight: 500; }
.example { font-size: 12px; color: var(--muted); }

/* goals */
.goals { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.goals li { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); gap: 6px 28px; align-items: baseline; padding-block: 26px; border-bottom: 1px solid var(--line); transition: padding-left .45s var(--ease); }
.goals li:hover { padding-left: 18px; }
.goals b { font: 400 clamp(2.1rem, 4.2vw, 3.6rem)/1 var(--display); letter-spacing: -.02em; transition: color .3s; }
.goals li:hover b { font-style: italic; color: var(--accent); }
.goals span { font-size: 15px; }
.goals small { color: var(--mid); font-size: 14px; font-weight: 300; }
@media (max-width: 760px) { .goals li { grid-template-columns: minmax(0, 1fr); } }

/* about, final, footer */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 7vw, 110px); align-items: start; }
.about p + p { margin-top: 1.1em; }
.about .txt { color: var(--mid); max-width: 36em; font-weight: 300; }
.about .txt p:first-child { font: 400 clamp(1.6rem, 2.6vw, 2.2rem)/1.2 var(--display); color: var(--ink); letter-spacing: -.01em; }
.about .sign { font: italic 400 1.5rem var(--display); color: var(--ink); }
@media (max-width: 800px) { .about { grid-template-columns: minmax(0, 1fr); } }

.final { background: var(--pink); border-radius: 36px; padding: clamp(64px, 10vw, 150px) 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 26px; }
.final h2 { font-size: clamp(3.4rem, 10vw, 9rem); line-height: .86; letter-spacing: -.04em; }
.final h2 em { color: var(--accent); }
.final .lede { color: var(--ink); opacity: .78; }
.final .label { color: var(--ink); opacity: .7; }

/* scroll reveal: only applied by JS to things below the fold */
.pre { opacity: 0; transform: translateY(30px); }
.rv { transition: opacity 1s ease, transform 1s var(--ease); }

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

/* ================= multi-page additions ================= */
:root { --px: 0; --py: 0; }

/* nav: menu button + overlay on small screens */
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-links a[aria-current="page"] { opacity: 1; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.menu-btn {
  display: none; appearance: none; cursor: pointer; font: 500 14px/1 var(--body); color: var(--ink);
  background: transparent; border: 1px solid rgba(30, 25, 23, .4); border-radius: 999px; padding: 12px 18px;
}
@media (max-width: 980px) {
  .menu-btn { display: inline-block; }
  .nav-links {
    display: none; position: absolute; top: 74px; left: 0; right: 0; z-index: 6;
    flex-direction: column; align-items: flex-start; gap: 0; padding: 10px 22px 16px;
    background: var(--bg); border-radius: 22px; box-shadow: 0 30px 50px -30px rgba(30, 25, 23, .5);
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a:not(.btn) { display: block; width: 100%; padding: 14px 0; font: 400 1.7rem/1 var(--display); opacity: 1; border-bottom: 1px solid var(--line); }
  .nav-links a:not(.btn):last-child { border-bottom: 0; }
}

/* sub-page hero */
.hero.sub { min-height: 0; grid-template-rows: auto auto auto; }
.sub-head { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; padding-block: clamp(40px, 7vw, 96px) clamp(40px, 6vw, 72px); max-width: 900px; }
.sub-head .label { color: var(--ink); opacity: .7; animation: enter .9s .1s var(--ease) both; }
.sub-head h1 { font-size: clamp(3rem, 7.2vw, 6.4rem); line-height: .92; letter-spacing: -.03em; animation: enter 1s .2s var(--ease) both; }
.sub-head .lede { color: var(--ink); opacity: .8; font-size: clamp(1.05rem, 1.4vw, 1.25rem); max-width: 34em; animation: enter .9s .35s var(--ease) both; }
.hero.plain { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }

/* generic text link with arrow */
.more { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 4px; transition: gap .3s var(--ease); }
.more:hover { gap: 16px; }
.sec-foot { margin-top: clamp(28px, 4vw, 48px); }

/* three phones */
.trio { display: grid; grid-template-columns: repeat(3, auto); justify-content: center; align-items: center; gap: clamp(10px, 4vw, 64px); perspective: 1800px; --sp: 0; padding-block: 30px 10px; }
.trio .phone { transform: none; }
.trio-item:nth-child(1) .phone { transform: translateY(calc(40px + var(--sp) * -46px)) rotateY(22deg) scale(.88); transform-origin: right center; }
.trio-item:nth-child(2) .phone { transform: translateY(calc(var(--sp) * 22px)); }
.trio-item:nth-child(3) .phone { transform: translateY(calc(40px + var(--sp) * -46px)) rotateY(-22deg) scale(.88); transform-origin: left center; }
.trio-item { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.trio-item figcaption { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--mid); }
figure { margin: 0; }
@media (max-width: 980px) {
  .trio { grid-template-columns: repeat(3, 262px); justify-content: start; overflow-x: auto; scroll-snap-type: x mandatory; gap: 22px; padding: 30px 22px 26px; margin-inline: -22px; scrollbar-width: none; }
  .trio::-webkit-scrollbar { display: none; }
  .trio-item { scroll-snap-align: center; }
  .trio .trio-item .phone { transform: none; width: 262px; }
}

/* extra phone screens */
.ph-title { font: italic 500 24px/1 var(--display); }
.ph-back { font-size: 8px; color: #6E5F58; letter-spacing: .06em; }
.ph-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.ph-tags span { font-size: 7px; padding: 3px 7px; border-radius: 99px; background: #F1EEF8; color: #6E5F58; }
.ph-steps { list-style: none; margin: 6px 0 0; padding: 0; counter-reset: p; display: grid; gap: 5px; }
.ph-steps li { counter-increment: p; display: flex; gap: 7px; font-size: 8.5px; line-height: 1.3; }
.ph-steps li::before { content: counter(p); font: 500 11px/1 var(--display); color: #9887C0; }
.ph-tip { background: #F9F1E8; border-color: #EFE0CC; font: italic 500 11.5px/1.25 var(--display); }
.ph-sets { display: grid; gap: 4px; margin-top: 7px; font-variant-numeric: tabular-nums; }
.ph-sets div { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; font-size: 8.5px; padding: 6px 8px; border-radius: 8px; background: #F6F1EC; }
.ph-sets b { font-weight: 500; }
.ph-btn { text-align: center; background: var(--app-rose); color: #fff; font-size: 9px; font-weight: 500; padding: 9px; border-radius: 99px; }
.ph-btn.alt { background: #fff; color: #2B2320; border: 1px solid var(--app-line); }
.ph-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ph-meals { display: grid; }
.ph-meals div { display: flex; justify-content: space-between; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--app-line); font-size: 9px; }
.ph-meals div:last-child { border-bottom: 0; padding-bottom: 0; }
.ph-meals small { display: block; font-size: 7px; letter-spacing: .2em; text-transform: uppercase; color: #A79A92; }
.ph-meals span { color: #6E5F58; font-variant-numeric: tabular-nums; }
.ph-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 8px; }
.ph-cal i { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font: normal 500 7.5px var(--body); color: #2B2320; }
.ph-cal i[data-p="menstruation"] { background: #F3CDD5; }
.ph-cal i[data-p="follikel"] { background: #D5E6D9; }
.ph-cal i[data-p="agglossning"] { background: #F0DDC2; }
.ph-cal i[data-p="luteal"] { background: #DDD6EE; }
.ph-cal i.today { outline: 1.5px solid #2B2320; outline-offset: 1.5px; font-weight: 700; }
.ph-legend { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 7px; color: #6E5F58; }
.ph-legend span::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--c); margin-right: 4px; }

/* stats strip */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); margin-top: clamp(36px, 5vw, 64px); }
.stats div { padding: 26px 16px 0 0; display: flex; flex-direction: column; gap: 16px; }
.stats b { font: 400 clamp(3rem, 6vw, 5.2rem)/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stats span { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--mid); }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 10px; } }

/* numbered steps (a real sequence) */
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.how li { list-style: none; border-top: 1px solid var(--ink); padding-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.how { margin: 0; padding: 0; }
.how .n { font-size: 11px; letter-spacing: .26em; color: var(--mid); }
.how h3 { font-size: clamp(1.8rem, 2.8vw, 2.4rem); }
.how p { color: var(--mid); font-weight: 300; font-size: 15px; max-width: 26em; }
@media (max-width: 800px) { .how { grid-template-columns: minmax(0, 1fr); gap: 34px; } }

/* FAQ */
.faq { border-top: 1px solid var(--line); max-width: 900px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding-block: 24px; font: 400 clamp(1.5rem, 2.6vw, 2.1rem)/1.1 var(--display); letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 300 1.6rem/1 var(--body); color: var(--mid); transition: transform .35s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] summary { font-style: italic; }
.faq .a { padding: 0 0 28px; color: var(--mid); font-weight: 300; max-width: 38em; display: grid; gap: .8em; }
.faq .a a { color: var(--ink); }
.faq-group { margin-top: clamp(48px, 6vw, 80px); }
.faq-group > .label { display: block; margin-bottom: 18px; }

/* long phase rows (cykeln) */
.phase-rows { border-top: 1px solid var(--line); }
.phase-row { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr) minmax(0, .7fr); gap: 16px clamp(20px, 4vw, 60px); padding-block: clamp(32px, 5vw, 60px); border-bottom: 1px solid var(--line); align-items: start; }
.phase-row .dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--c); margin-right: 10px; }
.phase-row h3 { font-size: clamp(2.4rem, 4.6vw, 4rem); font-style: italic; letter-spacing: -.02em; margin-top: 14px; }
.phase-row .lead { font: 400 clamp(1.4rem, 2.2vw, 1.8rem)/1.2 var(--display); }
.phase-row p + p { margin-top: .8em; }
.phase-row .body { color: var(--mid); font-weight: 300; max-width: 34em; }
.phase-row .body .lead { color: var(--ink); }
.phase-row .int b { display: block; font: 400 clamp(3rem, 5vw, 4.4rem)/.85 var(--display); font-variant-numeric: tabular-nums; margin-block: 10px 12px; }
.phase-row .bar { height: 3px; background: var(--line); border-radius: 3px; }
.phase-row .bar i { display: block; height: 100%; width: calc(var(--v) * 1%); background: var(--c); border-radius: 3px; }
@media (max-width: 820px) { .phase-row { grid-template-columns: minmax(0, 1fr); } }

/* fact list (definition style) */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 5vw, 72px); border-top: 1px solid var(--line); }
.facts div { padding-block: 26px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.facts h3 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); line-height: 1.1; }
.facts p { color: var(--mid); font-weight: 300; font-size: 15px; max-width: 32em; }
@media (max-width: 760px) { .facts { grid-template-columns: minmax(0, 1fr); } }
.note { margin-top: 28px; padding: 22px 26px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); color: var(--mid); font-size: 14.5px; font-weight: 300; max-width: 60em; }
.note b { color: var(--ink); font-weight: 500; }

/* tables */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.tbl th { text-align: left; font: 500 11px var(--body); letter-spacing: .22em; text-transform: uppercase; color: var(--mid); padding: 0 16px 14px 0; border-bottom: 1px solid var(--ink); }
.tbl td { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; font-variant-numeric: tabular-nums; }
.tbl td:first-child { font: 400 1.5rem/1.1 var(--display); }
.tbl td.num, .tbl th.num { text-align: right; padding-right: 0; }
.tbl small { display: block; color: var(--mid); font: 300 13.5px var(--body); margin-top: 4px; }

/* goal rows with numbers (mal) */
.goal-rows { border-top: 1px solid var(--line); }
.goal-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) minmax(0, .8fr); gap: 14px clamp(20px, 4vw, 60px); padding-block: clamp(30px, 4.4vw, 52px); border-bottom: 1px solid var(--line); align-items: start; }
.goal-row h3 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); letter-spacing: -.02em; }
.goal-row .tagline { font: italic 400 1.4rem/1.2 var(--display); color: var(--accent); margin-top: 10px; }
.goal-row .body { color: var(--mid); font-weight: 300; }
.goal-row .body b { color: var(--ink); font-weight: 500; }
.goal-row dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; font-size: 14px; }
.goal-row dt { color: var(--mid); }
.goal-row dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 500; text-align: right; }
@media (max-width: 820px) { .goal-row { grid-template-columns: minmax(0, 1fr); } }

/* contact */
.contact { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; }
.contact .mail { font: 400 clamp(1.6rem, 3.6vw, 3rem)/1.1 var(--display); letter-spacing: -.01em; user-select: all; overflow-wrap: anywhere; }
.copy { appearance: none; cursor: pointer; font: 500 13px/1 var(--body); background: transparent; color: var(--ink); border: 1px solid rgba(30, 25, 23, .4); border-radius: 999px; padding: 11px 18px; transition: background .25s, color .25s; }
.copy:hover { background: var(--ink); color: var(--bg); }

/* legal pages */
.legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 6vw, 90px); align-items: start; }
.toc { position: sticky; top: calc(24px + env(safe-area-inset-top, 0px)); display: grid; gap: 9px; font-size: 13.5px; }
.toc .label { margin-bottom: 8px; }
.toc a { text-decoration: none; color: var(--mid); }
.toc a:hover { color: var(--ink); }
.prose { max-width: 68ch; }
.prose .intro { font: 400 clamp(1.3rem, 2vw, 1.6rem)/1.3 var(--display); color: var(--ink); margin-bottom: 1.6em; }
.prose h2 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); line-height: 1.1; letter-spacing: -.01em; margin: 2em 0 .6em; padding-top: 1.1em; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.prose p, .prose li { color: var(--mid); font-weight: 300; }
.prose p + p { margin-top: .9em; }
.prose strong { color: var(--ink); font-weight: 500; }
.prose ul { padding-left: 1.2em; display: grid; gap: .4em; }
.prose a { color: var(--ink); }
.prose .mail { user-select: all; color: var(--ink); font-weight: 400; }
@media (max-width: 860px) { .legal { grid-template-columns: minmax(0, 1fr); } .toc { position: static; grid-template-columns: 1fr; padding-bottom: 20px; border-bottom: 1px solid var(--line); } }

/* footer */
footer { padding-block: clamp(48px, 6vw, 80px) 44px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 36px 28px; }
.foot-grid .logo { color: var(--ink); font-size: 44px; }
.foot-grid p { margin-top: 12px; max-width: 22em; font-weight: 300; }
.foot-col { display: grid; gap: 10px; align-content: start; }
.foot-col .label { margin-bottom: 6px; }
.foot-col a { text-decoration: none; color: var(--ink); }
.foot-col a:hover { text-decoration: underline; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: clamp(36px, 5vw, 64px); padding-top: 20px; border-top: 1px solid var(--line); font-size: 12.5px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-grid > div:first-child { grid-column: 1 / -1; } }

.pt0 { padding-top: 0; }

/* ---------- clickable phone in the hero ---------- */
.pdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--phase); margin-right: 9px; }
.phone.live .app { animation: screen .55s var(--ease) both; }
@keyframes screen { from { opacity: 0; transform: translateY(8px); } }
.phone-hint { display: block; text-align: center; margin-top: 18px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink); opacity: .65; }
.ph-sub { font-size: 8px; color: #A79A92; margin-top: 3px; }
.ph-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.ph-tiles div { border-radius: 11px; padding: 8px; font-size: 7px; color: #6E5F58; background: #fff; border: 1px solid var(--app-line); }
.ph-tiles b { display: block; font: 500 16px/1 var(--display); color: #2B2320; margin-bottom: 3px; font-variant-numeric: tabular-nums; }
.ph-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 7px; }
.ph-photos i { aspect-ratio: 3 / 4; border-radius: 8px; background: linear-gradient(160deg, #F6DDE2, #EBC3CC); }
.ph-photos i:nth-child(2) { background: linear-gradient(160deg, #F3E3D2, #E8CDB0); }
.ph-photos i:nth-child(3) { background: linear-gradient(160deg, #E6E0F3, #CFC5E6); }
.ph-photos i:nth-child(4) { background: #F6F1EC; border: 1px dashed #D9CCC2; }
.ph-goals { display: grid; gap: 4px; margin-top: 7px; }
.ph-goals div { display: flex; justify-content: space-between; font-size: 8.5px; padding: 6px 9px; border-radius: 9px; border: 1px solid var(--app-line); }
.ph-goals div.sel { border-color: #9887C0; background: #F1EEF8; font-weight: 500; }
.ph-wbars { display: flex; align-items: flex-end; gap: 4px; height: 34px; margin-top: 8px; }
.ph-wbars i { flex: 1; background: #EBC3CC; border-radius: 3px 3px 0 0; height: calc(var(--h) * 1%); }
.ph-wbars i:last-child { background: var(--app-rose); }

/* ---------- home hero drifts through the phase pastels ---------- */
.hero.home { background: var(--flood); }
.hero.home h1 em { color: var(--ink); }

/* ---------- scroll progress + floating call to action ---------- */
.progress { position: fixed; inset: env(safe-area-inset-top, 0px) 0 auto 0; height: 2px; z-index: 70; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.float-cta {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 65;
  display: inline-flex; align-items: center; gap: 12px; padding: 6px 6px 6px 22px; border-radius: 999px; text-decoration: none; white-space: nowrap;
  font: 500 14px/1 var(--body); color: #fff; background: color-mix(in srgb, var(--accent) 92%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 18px 40px -18px rgba(74, 32, 46, .7);
  transform: translate(-50%, 90px); opacity: 0; pointer-events: none; transition: transform .6s var(--ease), opacity .4s;
}
.float-cta.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.float-cta i { width: 34px; height: 34px; border-radius: 50%; background: var(--pink-soft); color: var(--accent); font-style: normal; display: grid; place-items: center; transition: transform .35s var(--ease); }
.float-cta:hover i { transform: rotate(-45deg); }

/* ---------- scroll story: the phone stays, the screens change ---------- */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 6vw, 100px); align-items: start; }
.story-phone { position: sticky; top: max(40px, calc(50vh - 302px)); display: grid; place-items: center; padding-block: 20px; }
.story-phone::before { content: ""; position: absolute; width: min(460px, 100%); aspect-ratio: 1; border-radius: 50%; background: var(--pink-soft); z-index: -1; }
.story-phone .phone { transform: none; }
.story-phone .app { animation: screen .55s var(--ease) both; }
.story-phone .tabbar .on { color: var(--app-rose); font-weight: 600; }
.story-steps { list-style: none; margin: 0; padding: 0; }
.story-step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px; opacity: .28; transition: opacity .6s; }
.story-step.on { opacity: 1; }
.story-step h3 { font-size: clamp(2.4rem, 4.6vw, 4rem); letter-spacing: -.02em; }
.story-step p { color: var(--mid); font-weight: 300; font-size: clamp(1rem, 1.3vw, 1.15rem); max-width: 26em; }
.step-phone { display: none; }
@media (max-width: 980px) {
  .story { grid-template-columns: minmax(0, 1fr); }
  .story-phone { display: none; }
  .story-step { min-height: 0; opacity: 1; padding-block: 34px; border-top: 1px solid var(--line); }
  .step-phone { display: grid; place-items: center; width: 100%; padding-top: 14px; }
  .step-phone .phone { transform: none; width: 262px; }
}

/* ---------- closing frame with the phone rising out of it ---------- */
.final.has-phone { padding-bottom: 0; overflow: hidden; }
.final-phone { margin-top: 26px; margin-bottom: -330px; text-align: left; }
.final-phone .phone { transform: none; }

/* ---------- knowledge bank ---------- */
.sub-head .label a { text-decoration: none; border-bottom: 1px solid currentColor; }
.sub-head .meta { font-size: 13px; color: var(--ink); opacity: .7; animation: enter .9s .45s var(--ease) both; }
.art-list { border-top: 1px solid var(--line); }
.art-row { display: grid; grid-template-columns: minmax(0, .5fr) minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 10px clamp(16px, 3vw, 44px); align-items: baseline; padding-block: 30px; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding-left .45s var(--ease); }
.art-row:hover { padding-left: 16px; }
.art-row .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); margin-right: 9px; }
.art-row b { font: 400 clamp(1.7rem, 3vw, 2.5rem)/1.05 var(--display); letter-spacing: -.01em; }
.art-row:hover b { font-style: italic; color: var(--accent); }
.art-row .desc { color: var(--mid); font-weight: 300; font-size: 15px; }
.art-row .go { font-size: 20px; color: var(--accent); }
@media (max-width: 860px) { .art-row { grid-template-columns: minmax(0, 1fr) auto; } .art-row .label, .art-row b, .art-row .desc { grid-column: 1; } .art-row .go { grid-column: 2; grid-row: 2; } }
.answer { background: var(--pink-soft); border-radius: 24px; padding: clamp(22px, 3vw, 34px); margin-bottom: 2.4em; border-left: 0; }
.answer .label { display: block; margin-bottom: 12px; color: var(--accent); }
.prose .answer p { font: 400 clamp(1.25rem, 1.9vw, 1.5rem)/1.35 var(--display); color: var(--ink); }
.prose sup { font-size: .7em; line-height: 0; }
.prose sup a { text-decoration: none; color: var(--accent); font-weight: 500; padding: 0 1px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 15px; }
.prose th { text-align: left; font: 500 11px var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--mid); padding: 0 14px 12px 0; border-bottom: 1px solid var(--ink); }
.prose td { padding: 14px 14px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--mid); font-weight: 300; }
.prose td:first-child { color: var(--ink); font-weight: 400; }
.prose .faq summary { font-size: clamp(1.3rem, 2vw, 1.6rem); padding-block: 18px; }
.prose .faq .a { padding-bottom: 20px; }
.refs { padding-left: 1.3em; display: grid; gap: .7em; font-size: 14px; }
.refs li { color: var(--mid); font-weight: 300; }
.review { margin-top: 2.4em; padding-top: 1.4em; border-top: 1px solid var(--line); font-size: 13.5px; }
.toc-app { margin-top: 14px; color: var(--accent) !important; font-weight: 500; }
.art-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.art-nav a { display: grid; gap: 12px; padding: 26px 28px; border: 1px solid var(--line); border-radius: 24px; text-decoration: none; background: var(--surface); transition: border-color .3s; }
.art-nav a:hover { border-color: var(--accent); }
.art-nav a:last-child { text-align: right; }
.art-nav b { font: 400 clamp(1.3rem, 2.2vw, 1.8rem)/1.1 var(--display); }
@media (max-width: 700px) { .art-nav { grid-template-columns: minmax(0, 1fr); } .art-nav a:last-child { text-align: left; } }

/* ---------- pricing ---------- */
.price { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); border: 1px solid var(--line); border-radius: 36px; overflow: hidden; background: var(--surface); }
.price-head { background: var(--pink); padding: clamp(30px, 5vw, 64px); display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.price-head .label { color: var(--ink); opacity: .7; }
.price-num { font: 400 clamp(7rem, 16vw, 13rem)/.8 var(--display); font-variant-numeric: lining-nums; letter-spacing: -.05em; color: var(--accent); }
.price-num small { font: italic 400 .3em var(--display); letter-spacing: 0; color: var(--ink); }
.price-sub { color: var(--ink); opacity: .8; font-weight: 300; max-width: 22em; margin-bottom: 8px; }
.price-list { list-style: none; margin: 0; padding: clamp(18px, 3vw, 40px) clamp(24px, 4vw, 56px); }
.price-list li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 20px; align-items: baseline; padding-block: 16px; border-bottom: 1px solid var(--line); }
.price-list li:last-child { border-bottom: 0; }
.price-list b { font: 400 clamp(1.25rem, 1.9vw, 1.55rem)/1.1 var(--display); }
.price-list span { color: var(--mid); font-weight: 300; font-size: 14.5px; }
@media (max-width: 860px) { .price { grid-template-columns: minmax(0, 1fr); border-radius: 28px; } .price-list li { grid-template-columns: minmax(0, 1fr); } }
.tbl td:nth-child(2) { color: var(--mid); font-weight: 300; }

/* ---------- real app screens inside the phones ---------- */
.phone .status { display: none; }
.phone .app { padding: 0; gap: 0; position: relative; }
.phone .app .shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.phone .tabbar { display: none; }
.phone.live .tabbar { display: flex; position: absolute; left: 3.56%; right: 3.56%; bottom: 1.7%; height: 7.7%; padding: 0 1.8%; gap: 1%; background: none; border: 0; z-index: 3; }
.phone.live .tabbar::after { display: none; }
.phone.live .tabbar button { flex: 1 1 0; min-width: 0; opacity: 0; font-size: 0; cursor: pointer; border-radius: 30px; }
.phone.live .tabbar button.on { flex: 2.3 1 0; }
.phone.live .tabbar button:focus-visible { opacity: 1; outline: 2px solid var(--app-rose); outline-offset: -2px; }
.gallery { display: flex; gap: clamp(22px, 3vw, 40px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: clamp(28px, 4vw, 48px) max(24px, calc(50vw - 600px)) 34px; }
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { flex: none; margin: 0; scroll-snap-align: center; display: grid; gap: 22px; justify-items: center; }
.gallery .phone { transform: none; width: 250px; border-radius: 46px; padding: 8px; } .gallery .phone .screen { border-radius: 39px; } .gallery .phone .island { width: 70px; height: 20px; top: 8px; }
.gallery .phone::before, .gallery .phone::after { display: none; }
.gallery figcaption { display: grid; gap: 4px; text-align: center; max-width: 250px; } .gallery figcaption b { font: 500 1.35rem/1.1 var(--display); } .gallery figcaption span { font-size: .9rem; color: var(--mid); line-height: 1.4; }

/* ---------- the cycle curve, richer ---------- */
.curve .bands rect { opacity: .075; }
.curve .line { stroke-width: 5; filter: drop-shadow(0 0 10px rgba(255, 190, 210, .45)); }
.curve .rider { stroke-width: 4.5; filter: drop-shadow(0 0 12px var(--flood)); }
.curve .grid { opacity: .5; }
.night .curve { background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015)); border: 1px solid rgba(255, 255, 255, .09); border-radius: clamp(22px, 3vw, 36px); padding: clamp(10px, 2vw, 22px) clamp(6px, 1.5vw, 18px) 4px; box-sizing: border-box; }
.phase-tabs { border-top: 0; gap: 10px; margin-top: 18px; }
.phase-tab { position: relative; margin-top: 0; padding: 16px 18px 17px 34px; border: 1px solid var(--night-line); border-radius: 22px; background: rgba(255, 255, 255, .03); transition: color .3s, border-color .3s, background .3s, transform .3s; }
.phase-tab::before { content: ""; position: absolute; left: 16px; top: 21px; width: 9px; height: 9px; border-radius: 50%; background: var(--c); opacity: .55; }
.phase-tab:hover { transform: translateY(-2px); }
.phase-tab[aria-pressed="true"] { border-color: var(--c); border-top-color: var(--c); background: color-mix(in srgb, var(--c) 20%, transparent); }
.phase-tab[aria-pressed="true"]::before { opacity: 1; box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 30%, transparent); }
.phase-panel { align-items: center; padding: clamp(22px, 3.4vw, 40px); border-radius: clamp(22px, 3vw, 36px); background: linear-gradient(140deg, color-mix(in srgb, var(--flood) 16%, transparent), rgba(255, 255, 255, .02)); border: 1px solid rgba(255, 255, 255, .08); margin-top: 18px; }

/* ---------- the cycle curve, second pass ---------- */
.curve .bands rect { transition: opacity .6s; }
[data-phase="menstruation"] .curve .bands rect:nth-child(1), [data-phase="follikel"] .curve .bands rect:nth-child(2), [data-phase="agglossning"] .curve .bands rect:nth-child(3), [data-phase="luteal"] .curve .bands rect:nth-child(4) { opacity: .22; }
.curve .blabels text { font: 500 10px var(--body); letter-spacing: .16em; text-transform: uppercase; fill: var(--night-mid); opacity: .55; transition: opacity .6s, fill .6s; }
[data-phase="menstruation"] .curve .blabels text:nth-child(1), [data-phase="follikel"] .curve .blabels text:nth-child(2), [data-phase="agglossning"] .curve .blabels text:nth-child(3), [data-phase="luteal"] .curve .blabels text:nth-child(4) { opacity: 1; fill: var(--flood); }
.curve .days .dd { fill: var(--night-mid); opacity: .35; }
.curve .area { fill: url(#cg); opacity: .17; }
.curve .line { stroke-width: 5.5; filter: drop-shadow(0 0 7px rgba(255, 200, 215, .55)) drop-shadow(0 10px 18px rgba(0, 0, 0, .35)); }
.curve .rider { fill: #fff; stroke: var(--flood); stroke-width: 5; animation: riderglow 2.6s ease-in-out infinite; }
@keyframes riderglow { 0%, 100% { filter: drop-shadow(0 0 6px var(--flood)); } 50% { filter: drop-shadow(0 0 18px var(--flood)); } }
.curve .rule { stroke-dasharray: 1 7; stroke-linecap: round; stroke-width: 2; opacity: .5; }
.curve .ax { opacity: .7; }
.night .curve { background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--flood) 12%, transparent), transparent 70%), linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 40px 60px -40px rgba(0, 0, 0, .6); transition: background .8s; }
.phase-panel { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); transition: background .8s; }
.phase-panel h3 { text-wrap: balance; }
@media (prefers-reduced-motion: reduce) { .curve .rider { animation: none; } }
@media (max-width: 700px) { .curve .blabels { display: none; } }

/* ---------- the cycle curve, third pass: no boxes, light instead ---------- */
.night .curve { background: none; border: 0; box-shadow: none; padding: 0; border-radius: 0; }
.curve .grid { opacity: 0; } .curve .grid:first-of-type { opacity: .35; }
.curve .bands rect { opacity: 0; rx: 0; }
[data-phase="menstruation"] .curve .bands rect:nth-child(1), [data-phase="follikel"] .curve .bands rect:nth-child(2), [data-phase="agglossning"] .curve .bands rect:nth-child(3), [data-phase="luteal"] .curve .bands rect:nth-child(4) { opacity: .34; }
.curve .seps line { stroke: var(--night-mid); stroke-width: 1; stroke-dasharray: 1 6; stroke-linecap: round; opacity: .4; }
.curve .area { opacity: .5; }
.curve .line { stroke-width: 6; filter: drop-shadow(0 0 5px rgba(255, 215, 225, .7)) drop-shadow(0 0 22px rgba(255, 170, 195, .35)); }
.curve .rider { r: 11px; stroke-width: 6; }
.curve .blabels text { font-size: 11px; letter-spacing: .2em; }
.curve .days .dd { opacity: .28; }
.phase-tabs { margin-top: 8px; }

/* language link in the navigation */
.nav .lang { font-size: 13px; letter-spacing: .02em; color: inherit; opacity: .75; text-decoration: none; padding: 6px 4px; margin-right: 6px; border-bottom: 1px solid transparent; }
.nav .lang:hover, .nav .lang:focus-visible { opacity: 1; border-bottom-color: currentColor; }
.foot-base .lang { color: inherit; }

/* men's version: phone beside the facts */
.man-sec { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.man-sec .phone { margin: 0 auto; max-width: 100%; }
.man-sec .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) { .man-sec { grid-template-columns: minmax(0, 1fr); } .man-sec .phone { max-width: 280px; } }
@media (max-width: 520px) { .man-sec .facts { grid-template-columns: minmax(0, 1fr); } }

/* social channels in the footer */
footer .social { display: flex; gap: 10px; margin-top: 16px; }
footer .social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid currentColor; color: inherit; opacity: .8; transition: opacity .2s, background .2s, color .2s; }
footer .social svg { width: 19px; height: 19px; }
footer .social a:hover, footer .social a:focus-visible { opacity: 1; background: var(--rose, #B0475F); border-color: var(--rose, #B0475F); color: #fff; }

/* the heart mark before the wordmark, in the menu and the footer */
.nav .logo::before, .foot-grid .logo::before { content: ""; display: inline-block; width: .62em; height: .58em; margin-right: .24em; translate: 0 -.04em; background: #8F2D4A;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='3.5 5.5 17 16'%3E%3Cmask id='m'%3E%3Crect x='0' y='0' width='24' height='24' fill='%23fff'/%3E%3Cpath d='M6.6 12.4h3l1.3-2.6 2 4.8 1.3-2.2h3.2' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/mask%3E%3Cpath mask='url(%23m)' d='M12 20.3s-7.6-4.5-7.6-10.1A4.3 4.3 0 0 1 12 7.6a4.3 4.3 0 0 1 7.6 2.6c0 5.6-7.6 10.1-7.6 10.1z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='3.5 5.5 17 16'%3E%3Cmask id='m'%3E%3Crect x='0' y='0' width='24' height='24' fill='%23fff'/%3E%3Cpath d='M6.6 12.4h3l1.3-2.6 2 4.8 1.3-2.2h3.2' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/mask%3E%3Cpath mask='url(%23m)' d='M12 20.3s-7.6-4.5-7.6-10.1A4.3 4.3 0 0 1 12 7.6a4.3 4.3 0 0 1 7.6 2.6c0 5.6-7.6 10.1-7.6 10.1z'/%3E%3C/svg%3E") center / contain no-repeat; }
.nav .logo, .foot-grid .logo { white-space: nowrap; flex: none; }
@media (max-width: 420px) { .nav .logo::before { width: .54em; height: .5em; margin-right: .18em; } .nav .lang { margin-right: 0; padding-inline: 2px; } }
/* phone: the menu row has the wordmark with its heart, the language link, the app button and the menu button */
@media (max-width: 480px) { .nav { gap: 8px; } .nav-cta { gap: 6px; } .nav-cta .btn.small { padding: 10px 13px; font-size: 13.5px; } .nav .menu-btn { padding-inline: 12px; font-size: 13.5px; } .nav .lang { font-size: 12.5px; } .nav .logo { font-size: 27px; } }
@media (max-width: 350px) { .nav .lang { display: none; } }

/* cookie choice */
.kakor { position: fixed; z-index: 1000; left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); max-width: 620px; margin-inline: auto; display: flex; align-items: center; gap: 16px 20px; flex-wrap: wrap; justify-content: space-between;
  background: #fff; color: #2E1921; border-radius: 22px; padding: 16px 18px; box-shadow: 0 24px 50px -22px rgba(46, 25, 33, .55), 0 0 0 1px rgba(46, 25, 33, .06); }
.kakor p { margin: 0; flex: 1 1 260px; font-size: 14px; line-height: 1.5; } .kakor p a { color: inherit; }
.kakor div { display: flex; gap: 8px; flex: none; } .kakor .btn.small { padding: 10px 16px; font-size: 14px; }
.kakor .btn.nej { background: transparent; color: inherit; border: 1px solid rgba(46, 25, 33, .3); box-shadow: none; }
.foot-btn { appearance: none; background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.foot-col .foot-btn:hover, .foot-col .foot-btn:focus-visible { text-decoration: underline; }
.kakor ~ .float-cta, body:has(.kakor) .float-cta { display: none; }
