/*
 * To Be Synced landing.
 * Light only, on purpose: the brand is blush and magenta on white.
 * Every color lives in the tokens below; components never use raw hex.
 */
:root {
  color-scheme: light;

  /* brand */
  --pink: #E28AA7;          /* primary button fill (ink text on it 5.1:1) */
  --pink-hover: #EBA3BB;
  --pink-deep: #C96A8B;     /* decorative only, not for text or focus rings */
  --pink-text: #AD4275;     /* text-safe pink, 4.7:1 on blush */
  --magenta: #A8326A;
  --magenta-light: #B44A7A; /* start of the final CTA gradient */
  --blush: #F8EAF0;
  --blush-2: #FCF5F8;
  --brown: #8F5A36;
  --ink: #3B2F33;
  --muted: #735F68;         /* 5.0:1 on blush, 5.9:1 on white */
  --white: #FFFFFF;
  --device: #2B2226;        /* phone mockup frame */

  /* lines: --line is for dividers only; anything you must find to use gets --field-border */
  --line: #EBD6DF;
  --field-border: #9C7A88;  /* 3.5:1 on blush-2, 3.8:1 on white */

  /* focus ring, re-pointed per surface (white on magenta) */
  --focus: var(--magenta);

  /* text on magenta surfaces */
  --on-magenta: var(--white);
  --on-magenta-soft: rgba(255, 255, 255, .92);

  /* translucent tints */
  --header-bg: rgba(252, 245, 248, .92);
  --shadow: 0 10px 30px rgba(201, 106, 139, .12);
  --shadow-btn: 0 8px 20px rgba(226, 138, 167, .4);
  --shadow-device: 0 30px 60px rgba(120, 40, 80, .25);

  /* phase colors (same as the app), each 5.2:1 or more on white */
  --menstrual: #C2185B;
  --follicular: #1F7A52;
  --ovulation: #9E5C0B;
  --luteal: #7B5EA7;

  --radius: 20px;
  --max: 1080px;
  --serif: "Frank Ruhl Libre", "Times New Roman", serif;
  --sans: "Heebo", "Assistant", Arial, sans-serif;
  --script: "Playfair Display", var(--serif);
}

.ph-menstrual { --c: var(--menstrual); }
.ph-follicular { --c: var(--follicular); }
.ph-ovulation { --c: var(--ovulation); }
.ph-luteal { --c: var(--luteal); }

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--blush-2);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--pink); color: var(--ink); }
img { max-width: 100%; display: block; }
picture { display: block; }
a { color: var(--pink-text); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.25; margin: 0 0 .5em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }

:where(a, button, input, summary, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
[tabindex="-1"]:focus:not(:focus-visible) { outline: none; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; inset-inline-start: 12px; top: -100px; }
.skip:focus { top: 12px; background: var(--white); padding: 8px 12px; z-index: 100; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; padding: 0; margin: -1px; }

/* drawn icons: one stroke style everywhere */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.glyph { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brown); }
.brand img { width: 48px; height: 48px; }
.brand span { font-family: var(--script); font-style: italic; font-size: 1.15rem; letter-spacing: .02em; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--pink-text); }
@media (max-width: 760px) { .nav .nav-link { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 28px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 0; cursor: pointer; font-family: inherit;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--pink); color: var(--ink); box-shadow: var(--shadow-btn); }
.btn-primary:hover { background: var(--pink-hover); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--field-border); }
.btn-ghost:hover { border-color: var(--magenta); }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: .9rem; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.cta-row.center { justify-content: center; }
.store-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.store-badges a { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; background: var(--ink); color: var(--white); border-radius: 12px; padding: 10px 18px; text-decoration: none; font-weight: 600; }

/* ---------- sections ---------- */
section { padding: 72px 0; }
.alt { background: var(--white); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.hl { color: var(--magenta); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; }
.disclaimer { font-size: .85rem; color: var(--muted); }
.disclaimer.center { text-align: center; margin-top: 28px; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 56px; background: radial-gradient(1000px 500px at 85% -10%, var(--blush) 0%, transparent 70%); }
.hero .container { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.hero-facts { margin: 14px 0 0; font-size: .92rem; font-weight: 600; color: var(--pink-text); }

/* phone mockup */
.phone {
  width: 100%; max-width: 290px; margin-inline: auto;
  border-radius: 38px; padding: 10px; background: var(--device);
  box-shadow: var(--shadow-device);
}
.phone img { border-radius: 30px; width: 100%; height: auto; }
.hero .phone { transform: rotate(-3deg); }

/* ---------- pain: chat ---------- */
.chat { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.bubble { background: var(--white); border: 1px solid var(--line); border-radius: 22px 22px 22px 6px; padding: 14px 20px; max-width: 85%; align-self: flex-start; box-shadow: var(--shadow); }
.bubble.me { align-self: flex-end; border-radius: 22px 22px 6px 22px; background: var(--magenta); color: var(--on-magenta); border-color: var(--magenta); }
.bubble small { display: block; color: var(--muted); font-size: .8rem; margin-bottom: 2px; }
.bubble.me small { color: var(--on-magenta-soft); }
.punch { text-align: center; max-width: 680px; margin: 48px auto 0; font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.45; font-weight: 700; text-wrap: balance; }

/* ---------- 24h vs 28d ---------- */
.clocks { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 760px; margin: 0 auto; }
.clock { text-align: center; }
.clock .num { font-family: var(--serif); font-size: 3rem; font-weight: 700; color: var(--magenta); line-height: 1; margin: 8px 0; }
.clock.him .num { color: var(--muted); }

/* ---------- phases: one 28-day cycle, four columns ---------- */
.cycle-band { max-width: 880px; margin: 0 auto 36px; }
.band { display: flex; gap: 3px; margin: 0; padding: 0; list-style: none; }
.band li { flex: 1 1 0; height: 14px; border-radius: 4px; background: var(--c); }
.band-scale { display: flex; justify-content: space-between; margin-top: 6px; font-size: .8rem; font-weight: 600; color: var(--muted); }
.phases { display: grid; grid-template-columns: repeat(4, 1fr); }
.phase { padding: 6px 24px 8px; border-inline-start: 1px solid var(--line); }
.phase:first-child { border-inline-start: 0; padding-inline-start: 0; }
.phase:last-child { padding-inline-end: 0; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 700; color: var(--c); margin: 0 0 6px; }
.phase h3 { margin-top: 2px; font-size: 1.35rem; }
.phase .tag { color: var(--c); }
.phase p { color: var(--muted); margin: 0; }
.hormones { font-size: .9rem; color: var(--muted); }
.phase .hormones { margin-bottom: 8px; }
.phase .good, .phase-result .good { margin-top: 12px; font-weight: 600; color: var(--ink); }
.phases + .disclaimer { text-align: center; margin-top: 32px; }

/* ---------- google calendar: an annotated broken calendar ---------- */
.gcal { display: grid; gap: 40px; max-width: 900px; margin: 0 auto; }
.gcal-row { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: center; }
.gcal-row p { color: var(--muted); margin: 0; }
.wk {
  display: grid; grid-template-columns: repeat(7, 1fr); grid-auto-rows: minmax(26px, auto); gap: 4px;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 10px;
  font-size: .78rem; line-height: 1.2;
}
.wk .d { text-align: center; font-weight: 600; color: var(--muted); padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.wk .ev {
  grid-row: 2; display: flex; align-items: center; justify-content: center; min-height: 26px; padding: 2px 6px;
  border-radius: 6px; font-weight: 700; color: var(--white); background: var(--c); white-space: nowrap; overflow: hidden;
}
.wk .ev.r3 { grid-row: 3; }
.wk .ev.ghost { background: transparent; color: var(--c); border: 1.5px dashed var(--c); text-decoration: line-through; }
.wk .ev.task { background: var(--line); }
.wk .s1 { grid-column-start: 1; } .wk .s2 { grid-column-start: 2; } .wk .s3 { grid-column-start: 3; } .wk .s4 { grid-column-start: 4; }
.wk .s5 { grid-column-start: 5; } .wk .s6 { grid-column-start: 6; } .wk .s7 { grid-column-start: 7; }
.wk .w1 { grid-column-end: span 1; } .wk .w2 { grid-column-end: span 2; } .wk .w3 { grid-column-end: span 3; } .wk .w4 { grid-column-end: span 4; }

/* ---------- app tour ---------- */
.tour { display: grid; gap: 40px; }
.tour-item { display: grid; grid-template-columns: 250px 1fr; gap: 48px; align-items: center; }
.tour-item:nth-child(even) { grid-template-columns: 1fr 250px; }
.tour-item:nth-child(even) .phone { order: 2; }
.tour .phone { max-width: 250px; }
.tour .phone img { aspect-ratio: 9 / 15; object-fit: cover; object-position: top; }
.tour-item .label { display: inline-block; font-weight: 700; color: var(--magenta); font-size: .95rem; margin-bottom: 6px; }
.tour-item h3 { font-size: clamp(1.4rem, 3vw, 1.8rem); }
.tour-item p { color: var(--muted); font-size: 1.08rem; }

/* ---------- rest quote, founder ---------- */
.rest-quote { text-align: center; max-width: 760px; margin: 0 auto; }
.rest-quote p.q { font-family: var(--serif); font-size: clamp(1.5rem, 3.4vw, 2.2rem); line-height: 1.4; font-weight: 700; text-wrap: balance; }
.founder { display: grid; grid-template-columns: 360px 1fr; gap: 48px; align-items: center; }
.founder img { border-radius: 28px; width: 100%; height: auto; box-shadow: var(--shadow); }
.founder blockquote { margin: 0; font-size: 1.1rem; }
.founder blockquote p { margin-bottom: .8em; }
.founder .sign { font-family: var(--script); font-style: italic; color: var(--brown); font-size: 1.3rem; }

/* ---------- privacy promise ---------- */
.promise { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; background: var(--blush); border-radius: 28px; padding: 40px; }
.promise .lock { width: 64px; height: 64px; color: var(--magenta); stroke-width: 1.6; }
.promise ul { margin: 0 0 1em; padding-inline-start: 1.2em; color: var(--ink); }
.promise p { margin: 0; }

/* ---------- faq ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 4px 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-radius: 8px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 20px; height: 20px; background: var(--pink-text);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details p { color: var(--muted); }
.faq details p a { color: var(--pink-text); font-weight: 700; }

/* ---------- final cta (magenta surface) ---------- */
.final {
  --focus: var(--white);
  text-align: center; background: linear-gradient(135deg, var(--magenta-light) 0%, var(--magenta) 100%);
  color: var(--on-magenta); border-radius: 32px; padding: 56px 24px;
}
.final h2 { color: var(--on-magenta); }
.final p { color: var(--on-magenta-soft); }
.final .btn-primary { background: var(--white); color: var(--magenta); box-shadow: none; }
.final .btn-primary:hover { background: var(--blush); }
.final .sign-off { margin: 18px 0 0; font-size: .95rem; }

/* ---------- waitlist form ---------- */
.join-lead { font-size: 1.05rem; margin: 24px 0 12px; }
.join-form { max-width: 560px; }
.join-form .fields { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.join-form .field { flex: 1 1 160px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.join-form .field label { font-size: .9rem; font-weight: 600; color: var(--ink); padding-inline: 18px; }
.join-form input[type=text], .join-form input[type=email] {
  width: 100%; min-width: 0; min-height: 50px; padding: 12px 18px; border-radius: 999px;
  border: 1.5px solid var(--field-border); background: var(--white); font: inherit; font-size: 16px; color: var(--ink);
}
.join-form input[aria-invalid="true"] { border: 2px solid var(--magenta); }
.join-form button { flex: 1 1 100%; }
.join-form .consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); margin-top: 14px; line-height: 1.5; }
.join-form .consent input { margin: 2px 0 0; width: 20px; height: 20px; accent-color: var(--magenta); flex: none; }
.join-form .consent input[aria-invalid="true"] { outline: 2px solid var(--magenta); outline-offset: 2px; }
.join-form .req { font-weight: 700; color: var(--ink); }
.join-form .status { min-height: 1.5em; margin: 10px 0 0; font-weight: 600; color: var(--magenta); }
.join-form.done .fields, .join-form.done .consent { display: none; }
.hp, .join-form input.hp { position: absolute; width: 1px; min-width: 0; height: 1px; min-height: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); border: 0; padding: 0; opacity: 0; }
@media (min-width: 561px) { .join-form button { flex: 0 0 auto; } }

.final .join-form { margin: 18px auto 0; text-align: start; }
.final .join-form .field label, .final .join-form .req { color: var(--on-magenta); }
.final .join-form .consent, .final .join-form .consent a { color: var(--on-magenta-soft); }
.final .join-form .consent input { accent-color: var(--ink); }
.final .join-form .status { color: var(--on-magenta); }
/* white fields read against magenta on their own (6.3:1) */
.final .join-form input[type=text], .final .join-form input[type=email] { border-color: var(--white); }
.final .join-form input[aria-invalid="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.final .join-form .consent input[aria-invalid="true"] { outline-color: var(--white); }

/* ---------- footer ---------- */
.site-footer { padding: 40px 0; border-top: 1px solid var(--line); font-size: .95rem; color: var(--muted); }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--pink-text); }
.site-footer .container > div a { display: inline-block; unicode-bidi: isolate; margin-inline-start: 14px; overflow-wrap: anywhere; }
.site-footer nav .foot-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; margin: -6px; }

/* ---------- legal / content pages ---------- */
.page { padding: 56px 0 80px; }
.page .container { max-width: 780px; }
.page article { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 5vw, 48px); }
.page h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); }
.page h2 { font-size: 1.35rem; margin-top: 1.8em; }
.page .updated { color: var(--muted); font-size: .9rem; }
.page ul, .page ol { padding-inline-start: 1.3em; }
.page li { margin-bottom: .4em; }
.note { background: var(--blush); border-radius: 14px; padding: 16px 20px; margin: 1.2em 0; }
.note p:last-child { margin-bottom: 0; }
.table-wrap { overflow-x: auto; margin: 1em 0; }
.page table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.page th, .page td { border: 1px solid var(--line); padding: 10px 12px; text-align: start; vertical-align: top; }
.page th { background: var(--blush-2); }

/* ---------- free tool: /tool ---------- */
.narrow { max-width: 700px; }
.tool-hero { padding: 56px 0 40px; text-align: center; background: radial-gradient(900px 420px at 50% -20%, var(--blush) 0%, transparent 70%); }
.tool-hero .lead { margin: 0 auto; }
.tool-hero .byline { margin: 14px 0 0; font-size: .92rem; font-weight: 600; color: var(--pink-text); }
.tool-main { padding: 0 0 72px; }
.tool-main > .container > * + * { margin-top: 22px; }
#result > * + * { margin-top: 22px; }
.tool-form h2, .month h2 { text-align: center; }
.tool-form label { display: block; font-weight: 600; margin: 16px 0 6px; }
.tool-form input {
  display: block; width: 100%; min-width: 0; max-width: 100%;
  font: inherit; color: var(--ink); background: var(--blush-2);
  padding: 12px 14px; min-height: 52px;
  border: 1.5px solid var(--field-border); border-radius: 14px;
}
.tool-form input[aria-invalid="true"] { border: 2px solid var(--magenta); }
/* iOS Safari gives date inputs an intrinsic width that overflows the card */
.tool-form input[type=date] { -webkit-appearance: none; appearance: none; text-align: start; }
.tool-form input[type=date]::-webkit-date-and-time-value { text-align: start; }
.tool-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tool-row > div { min-width: 0; }
.tool-form .hint { font-size: .92rem; color: var(--muted); margin: 12px 0 18px; }
.tool-form .btn { width: 100%; }
.tool-form .status { min-height: 1.5em; margin: 10px 0 0; font-weight: 600; color: var(--magenta); text-align: center; }

.phase-result .now { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--c); margin-bottom: 4px; font-size: 1.05rem; }
.phase-result .now .glyph { width: 1.4em; height: 1.4em; }
.phase-result h2 { margin: 2px 0 4px; }
.phase-result .day-line { color: var(--ink); font-weight: 600; margin-bottom: 8px; }
.phase-result .hormones { margin-top: 0; }
.phase-result .feel { margin-top: 8px; }
.phase-result .next { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink); }
.mini-band { display: flex; align-items: center; gap: 2px; margin: 4px 0 14px; padding: 0; list-style: none; }
.mini-band li { flex: 1 1 0; height: 10px; border-radius: 3px; background: color-mix(in srgb, var(--c) 35%, var(--white)); }
.mini-band li.here { background: var(--c); height: 20px; border-radius: 4px; }

.month .hint { text-align: center; font-size: .92rem; }
.month-nav { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 10px; }
.month-nav h3 { margin: 0; }
.month-nav button { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--field-border); background: var(--white); color: var(--ink); cursor: pointer; padding: 0; }
.month-nav button:hover { border-color: var(--magenta); color: var(--magenta); }
.month-nav .glyph { width: 20px; height: 20px; }
.month-nav #next-month .glyph { transform: scaleX(-1); }
.weekdays, .month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.weekdays { margin-bottom: 6px; text-align: center; font-size: .85rem; font-weight: 600; color: var(--muted); }
.month-grid .day {
  aspect-ratio: 1; min-width: 0; min-height: 44px; border-radius: 12px; padding: 0;
  font: inherit; font-weight: 600; font-size: .95rem; color: var(--ink);
  border: 1.5px solid transparent; background: var(--blush-2); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; line-height: 1.1;
}
.month-grid .day .glyph { width: 14px; height: 14px; color: var(--c); }
.month-grid .day[disabled] { cursor: default; color: var(--muted); background: transparent; border-color: var(--line); }
.month-grid .day.ph { background: color-mix(in srgb, var(--c) 14%, var(--white)); }
.month-grid .day.ph:hover { border-color: var(--c); }
.month-grid .day.today b { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.month-grid .day[aria-pressed="true"] { background: var(--c); color: var(--white); }
.month-grid .day[aria-pressed="true"] .glyph { color: var(--white); }
.month-grid .day:focus-visible { outline-offset: 2px; }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin: 16px 0 0; padding: 0; list-style: none; font-size: .9rem; font-weight: 600; color: var(--ink); }
.legend li { display: flex; align-items: center; gap: 6px; }
.legend .glyph { color: var(--c); }
.learns { text-align: center; color: var(--muted); font-size: .95rem; margin: 16px auto 0; max-width: 32em; }
.tool-follow { text-align: center; }
.tool-follow p { color: var(--muted); }
.social-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.social-icon { width: 56px; height: 56px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--white); border: 1.5px solid var(--field-border); color: var(--magenta); }
.social-icon:hover { border-color: var(--magenta); background: var(--blush); }
.social-icon svg { width: 26px; height: 26px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero .phone { max-width: 240px; margin-top: 8px; }
  .phases { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .phase:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
  .phase:nth-child(2) { padding-inline-end: 0; }
  .gcal-row { grid-template-columns: 1fr; gap: 16px; }
  .tour-item, .tour-item:nth-child(even), .founder { grid-template-columns: 1fr; gap: 28px; }
  .tour-item { text-align: center; }
  .tour-item:nth-child(even) .phone { order: 0; }
  .tour .phone { max-width: 230px; }
  .tour-item p { font-size: 1.02rem; }
  .founder img { max-width: 320px; margin-inline: auto; }
  .bubble { max-width: 92%; }
  .punch { font-size: 1.35rem; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  section { padding: 56px 0; }
  .phases { grid-template-columns: 1fr; row-gap: 0; }
  .phase, .phase:nth-child(n) { border-inline-start: 0; padding: 20px 0; border-top: 1px solid var(--line); }
  .phase:first-child { border-top: 0; padding-top: 0; }
  .band { gap: 2px; }
  .band li { height: 12px; border-radius: 3px; }
  .clocks { grid-template-columns: 1fr; }
  .promise { grid-template-columns: 1fr; padding: 28px; text-align: center; }
  .promise .lock { margin-inline: auto; width: 52px; height: 52px; }
  .promise ul { text-align: start; }
  .cta-row .btn { width: 100%; }
  .tool-hero { padding: 40px 0 28px; }
  .tool-row { grid-template-columns: 1fr; gap: 0; }
  .tool-main .card { padding: 22px 16px; }
  /* the calendar uses nearly the full screen width so day cells stay close to 44px */
  .tool-main .card.month { margin-inline: -12px; padding-inline: 8px; }
  .weekdays, .month-grid { gap: 3px; }
  .month-grid .day { border-radius: 9px; font-size: .9rem; }
}
@media (max-width: 380px) {
  /* below 380px seven 44px columns do not fit; keep the 44px height and let width share the row */
  .month-grid .day { aspect-ratio: auto; min-height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .btn-primary:hover { transform: none; }
}
