/* The landing page (/). Nothing here is the planner's stylesheet: the page loads only fonts.css,
 * tokens.css and this file, so it is quick, and it still looks like the product because the colours,
 * radii and faces all come from the same tokens. No colour is written here. Every colour is a token,
 * so the page follows light and dark and all six accents with no rule of its own, and
 * test/contrast.mjs (which checks the tokens) covers it. test/a11y-static.mjs lints this file too.
 *
 * Pairings used, all of which test/contrast.mjs checks: text and muted on bg, surface and card; the
 * accent-ink on the accent; accent-dark as link text on bg, card, surface and accent-soft.
 */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-family); font-size: 17px; line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -.01em; margin: 0; }
p, ul, ol { margin: 0; }
a { color: var(--accent-dark); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.skip {
  position: absolute; left: 16px; top: -80px; z-index: 20; padding: 12px 18px; border-radius: var(--radius-pill);
  background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 760px; }
@media (max-width: 400px) { .wrap { padding: 0 16px; } }

/* ---- header ---- */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--border); }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; min-width: 44px; color: var(--text); text-decoration: none; font-family: var(--font-display); font-size: 22px; }
.brand-mark { display: inline-flex; width: 30px; height: 30px; color: var(--accent); flex: none; }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.header-nav { display: none; margin-left: auto; gap: 4px; }
.header-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--radius-pill); color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; }
.header-nav a:hover { background: var(--surface); }
.header-actions { display: flex; gap: 8px; margin-left: auto; align-items: center; }
.header-actions [hidden], .hero-actions [hidden] { display: none; }
@media (min-width: 1000px) { .header-nav { display: flex; } .header-actions { margin-left: 8px; } }
.header-nav a[aria-current] { color: var(--accent-dark); font-weight: 700; }
.header-nav a.is-current { background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; }
/* The free tools' own menu, under the main one (owner's feedback, 17 Nov), so the main menu never goes away.
   Underlined words, not pills; on a phone the row scrolls sideways if it has to. */
.sub-nav { border-top: 1px solid var(--border); }
.sub-nav-row { display: flex; gap: 4px 22px; overflow-x: auto; scrollbar-width: none; }
.sub-nav-row::-webkit-scrollbar { display: none; }
.sub-nav a { display: inline-flex; align-items: center; min-height: 44px; flex: none; color: var(--text); font-size: 15px; font-weight: 500; text-decoration: none; border-bottom: 3px solid transparent; }
.sub-nav a:hover { border-bottom-color: var(--border-strong); }
.sub-nav a[aria-current="page"] { color: var(--accent-dark); font-weight: 700; border-bottom-color: var(--accent); }
@media (max-width: 460px) { .brand-name { display: none; } }

/* ---- buttons: the planner's own shapes ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px;
  border-radius: var(--radius-pill); border: 1px solid var(--control); background: transparent; color: var(--text);
  font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--surface); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn.big { min-height: 56px; padding: 0 32px; font-size: 18px; }
@media (max-width: 400px) { .btn { padding: 0 14px; } }

/* ---- sections ---- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section.tint { background: var(--surface); }
.section h2, .band h2, .cta h2 { font-size: clamp(30px, 4.4vw, 44px); line-height: 1.12; margin-bottom: 16px; }
.section-lead { color: var(--muted); font-size: 19px; margin-bottom: 8px; max-width: 62ch; }
.section p + p { margin-top: 14px; }
.section .narrow > p, .band p { max-width: 64ch; }

/* ---- hero ---- */
.hero { padding: clamp(36px, 6vw, 84px) 0 clamp(36px, 5vw, 64px); }
.hero-grid { display: grid; gap: clamp(32px, 5vw, 56px); align-items: center; }
.hero h1 { font-size: clamp(38px, 5.2vw, 56px); line-height: 1.06; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); margin-top: 20px; max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 16px; color: var(--muted); font-size: 16px; }
/* The sample wedding playground (/demo), under the buttons. */
.hero-demo { margin: 10px 0 0; font-size: 16px; }
.hero-demo a { color: var(--accent-dark); font-weight: 600; text-underline-offset: 3px; display: inline-block; padding: 11px 0; line-height: 1.4; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
@media (min-width: 1200px) { .hero-grid { grid-template-columns: minmax(0, 9fr) minmax(0, 11fr); } }

.hero-visual { position: relative; padding-bottom: 36px; }
.hero-visual .frame-phone { position: absolute; right: -4px; bottom: 0; width: 25%; min-width: 96px; }

/* ---- picture frames ---- */
.frame { margin: 0; border: 1px solid var(--border-strong); border-radius: var(--radius-card); overflow: hidden; background: var(--card); box-shadow: var(--shadow-lg); }
.frame img { width: 100%; height: auto; }
.frame-phone { border-radius: 22px; border-width: 2px; }
.frame-solo { width: min(300px, 78%); margin-inline: auto; }

/* ---- the problem ---- */
.band { background: var(--accent-soft); padding: clamp(44px, 6vw, 80px) 0; }
.band h2 { color: var(--text); }
.band p { color: var(--text); font-size: 19px; }
.band p + p { margin-top: 14px; }

/* ---- how it works: a path of steps joined by a dotted line (owner's feedback, 17 Nov) ----
   On a phone the steps stack, with a short dotted line down between each. From 860px they zigzag, and each
   step reaches the next with a curved dotted line: the top and one side of a box with a rounded corner,
   running from the middle of this card's side to the middle of the next card's top. Decoration only. */
.journey { list-style: none; padding: 0; margin: 36px 0 0; counter-reset: step; display: grid; gap: 40px; }
.journey li { position: relative; counter-increment: step; padding: 26px 24px; border-radius: var(--radius-card); background: var(--card); border: 1px solid var(--border-strong); }
.journey li::before {
  content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: var(--radius-pill); background: var(--accent); color: var(--accent-ink); font-family: var(--font-display); font-size: 22px; margin-bottom: 14px;
}
.journey li:not(:last-child)::after { content: ''; position: absolute; left: 50%; top: 100%; height: 40px; border-left: 3px dashed var(--accent); pointer-events: none; }
.journey h3 { font-size: 24px; margin-bottom: 8px; }
.journey p { color: var(--text); }
@media (min-width: 860px) {
  .journey { gap: 36px; }
  .journey li { width: 58%; }
  .journey li:nth-child(even) { margin-left: auto; }
  .journey li:not(:last-child)::after { top: 50%; height: calc(50% + 36px); width: 22.4%; border-left: 0; border-top: 3px dashed var(--accent); }
  .journey li:nth-child(odd):not(:last-child)::after { left: 100%; border-right: 3px dashed var(--accent); border-top-right-radius: 64px; }
  .journey li:nth-child(even):not(:last-child)::after { left: auto; right: 100%; border-left: 3px dashed var(--accent); border-top-left-radius: 64px; }
}

/* ---- inside the planner ---- */
.tab-map { list-style: none; padding: 0; display: grid; gap: 12px; margin: 28px 0 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.tab-group { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px 18px; border-radius: var(--radius-card); background: var(--card); border: 1px solid var(--border-strong); color: var(--text); text-decoration: none; }
.tab-group:hover { background: var(--surface); border-color: var(--accent); }
.tab-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 6px; border-radius: var(--radius-card); background: var(--accent-soft); color: var(--accent-dark); }
.tab-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tab-name { font-family: var(--font-display); font-size: 20px; color: var(--accent-dark); }
.tab-items { font-size: 15px; color: var(--text); }
.feature-group, .hero-visual { scroll-margin-top: 88px; }
.feature-group { margin-top: clamp(48px, 7vw, 88px); padding-bottom: 10px; border-bottom: 2px solid var(--accent); font-size: clamp(28px, 3.4vw, 36px); color: var(--accent-dark); }
.feature-group + .feature { margin-top: 32px; }
.feature { display: grid; gap: 24px; align-items: center; margin-top: clamp(40px, 6vw, 72px); }
.feature-text h3, .feature-text h4 { font-family: var(--font-display); font-weight: 500; font-size: clamp(24px, 3vw, 30px); line-height: 1.2; margin: 0 0 10px; }
.feature-text p { color: var(--text); }
.feature-text ul { margin-top: 14px; padding-left: 1.2em; color: var(--text); }
.feature-text li { margin-top: 6px; }
@media (min-width: 900px) {
  .feature { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px; }
  .feature:nth-of-type(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
  .feature:nth-of-type(even) .feature-text { order: 2; }
  .feature .frame-solo { width: min(320px, 100%); }
}

/* ---- the working reply page example (landing/reply-demo.js keeps its dates ahead of today) ---- */
.reply-demo { background: var(--bg); }
.rd { padding: 26px 20px 22px; text-align: center; }
.rd-names { font-family: var(--font-display); font-size: 28px; line-height: 1.15; color: var(--text); }
.rd-when { margin-top: 6px; color: var(--text); font-size: 15px; }
.rd-by { margin-top: 2px; color: var(--muted); font-size: 14px; }
.rd-form { margin-top: 16px; text-align: left; display: grid; gap: 10px; }
.rd-person { border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 8px 12px 10px; margin: 0; background: var(--card); }
.rd-person legend { font-weight: 700; font-size: 15px; padding: 0 4px; }
.rd-person label { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; cursor: pointer; }
.rd-person input { width: 20px; height: 20px; accent-color: var(--accent); margin: 0; }
.rd-send { min-height: 48px; border: 0; border-radius: var(--radius-pill); background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; }
.rd-send:hover { background: var(--accent-dark); }
.rd-done { font-size: 14px; color: var(--text); text-align: center; }
.rd-done:empty { display: none; }

/* ---- free tools: three cards, each one a whole link ---- */
.tool-cards { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.tool-card { display: block; height: 100%; padding: 22px 22px 18px; border-radius: var(--radius-card); background: var(--card); border: 1px solid var(--border-strong); color: var(--text); text-decoration: none; }
.tool-card:hover { background: var(--surface); }
.tool-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 14px; border-radius: var(--radius-card); background: var(--accent-soft); color: var(--accent-dark); }
.tool-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tool-card h3 { font-size: 22px; line-height: 1.2; margin-bottom: 8px; }
.tool-card p { color: var(--muted); }
.tool-card .go { display: block; margin-top: 12px; font-weight: 700; color: var(--accent-dark); }
.tool-card:hover .go { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
@media (min-width: 860px) { .tool-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---- make it yours ---- */
.pickers { display: grid; gap: 28px; margin-top: 28px; }
.pick { border: 0; padding: 0; margin: 0; min-width: 0; }
.pick legend { padding: 0; margin-bottom: 12px; font-weight: 700; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice {
  position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px 0 12px;
  border: 1px solid var(--control); border-radius: var(--radius-pill); background: var(--card); color: var(--text); font-weight: 500; cursor: pointer;
}
.choice:hover { background: var(--surface); }
.choice:has(.choice-input:checked) { border-color: var(--accent-dark); background: var(--accent-soft); color: var(--text); font-weight: 700; box-shadow: 0 0 0 2px var(--accent-dark); }
.choice:has(.choice-input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.choice-input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pick:not(:has(.swatch-dot)) .choice { padding-left: 18px; }
.swatch-dot { flex: none; width: 24px; height: 24px; border-radius: var(--radius-pill); border: 2px solid var(--card); box-shadow: 0 0 0 1px var(--control); }

/* ---- your data ---- */
.facts { list-style: none; padding: 0; margin: 28px 0 24px; display: grid; gap: 14px; }
.facts li { padding: 18px 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); }
.facts strong { display: block; font-weight: 700; }

.text-link { display: inline-flex; align-items: center; min-height: 44px; }

/* ---- questions ---- */
.faq { margin-top: 24px; border-top: 1px solid var(--border-strong); }
.faq details { border-bottom: 1px solid var(--border-strong); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 12px 4px;
  cursor: pointer; list-style: none; font-weight: 600; font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 26px; font-weight: 400; line-height: 1; color: var(--accent-dark); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 4px 20px; color: var(--muted); max-width: 62ch; }

/* ---- the last call to action ---- */
.cta { background: var(--accent-soft); padding: clamp(56px, 8vw, 96px) 0; text-align: center; }
.cta .lead { margin-inline: auto; color: var(--text); }
.cta .hero-actions { justify-content: center; }

/* ---- footer ---- */

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

/* ---- paper ---- */
@media print {
  :root, :root[data-theme="dark"] { color-scheme: light; }
  body { background: Canvas; color: CanvasText; font-size: 11pt; }
  .site-header, .skip, #pickers, .hero-actions, .cta { display: none; }
  .section, .band, .hero { padding: 16pt 0; background: none; }
  .band, .steps li, .facts li { border: 1px solid CanvasText; }
  a { color: CanvasText; }
  .frame { box-shadow: none; border-color: CanvasText; break-inside: avoid; }
  .feature, .steps li, .facts li { break-inside: avoid; }
  .faq details { break-inside: avoid; }
  .faq details > p { display: block; }
}

/* "No adverts, no emails from suppliers…" right under the price (owner's choice from the competitor research, 18 Nov). */
.hero-note.hero-trust { margin-top: 4px; font-size: 15px; }
/* The price line, highlighted (owner's feedback, 20 Nov: "highlight the free for two weeks"). A marker-pen band in the
   accent, behind the words, so it stands out without looking like a button. */
.hero-note.hero-price { display: inline; color: var(--text); font-weight: 700; background: linear-gradient(transparent 55%, var(--accent-soft) 55%); padding: 0 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero-note.hero-price + .hero-trust { margin-top: 14px; }

/* The phone header (owner's request, 20 Nov): the mark, Get started and a menu button; the menu holds the page's
   sections and Log in. From 1000px the sections sit in the header as before and the button goes. */
.menu-toggle { display: none; }
.header-nav .menu-only { display: none; }
@media (max-width: 999px) {
  .header-actions > .btn[data-track="log-in"] { display: none; }
  .menu-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1.5px solid var(--control); border-radius: 50%; background: var(--card); color: var(--text); cursor: pointer; }
  .menu-toggle svg { width: 22px; height: 22px; }
  .header-nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
  .site-header.menu-open .header-nav { display: flex; }
  .header-nav a { min-height: 48px; border-radius: 12px; font-size: 16px; }
  .header-nav .menu-only:not([hidden]) { display: inline-flex; border-top: 1px solid var(--border); border-radius: 0; margin-top: 6px; padding-top: 6px; }
}
@media (min-width: 1000px) { .header-nav .menu-only { display: none !important; } }
/* The sample wedding in "Wedding plans should not live in five places" (owner's feedback, 24 Nov 2026). */
.band-demo { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 22px; }
.band-demo span { color: var(--muted); font-size: 15px; line-height: 1.5; flex: 1 1 240px; }

/* Inside the planner, Overview (owner's request, 20 Nov 2026): a drawing of the Overview's parts in HTML, from
   the sample wedding's own numbers. The words are hidden from screen readers here; the figure's caption says it all. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ov-mock { background: var(--bg); }
.ov-mock-in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: clamp(14px, 3vw, 24px); }
.ov-mock-in p { margin: 0; }
.ov-count { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 2px 12px; padding: 16px 18px; border-radius: 16px; background: var(--accent-soft); color: var(--accent-dark); }
.ov-count b { font-family: var(--font-display); font-weight: 500; font-size: clamp(36px, 5vw, 48px); line-height: 1; }
.ov-count span { font-weight: 700; }
.ov-count em { grid-column: 1 / -1; font-style: normal; font-size: 13px; color: var(--text); }
.ov-tiles { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ov-tile, .ov-card { padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--border); min-width: 0; }
.ov-tile b { display: block; font-family: var(--font-display); font-weight: 500; font-size: clamp(20px, 2.6vw, 28px); line-height: 1.1; }
.ov-tile span, .ov-key, .ov-todo i { font-size: 12.5px; color: var(--muted); }
.ov-card-title { font-weight: 700; font-size: 13.5px; margin-bottom: 8px !important; }
.ov-bar { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: var(--sand); }
.ov-yes { flex: 23; background: var(--good); }
.ov-wait { flex: 5; background: var(--warning); }
.ov-no { flex: 2; background: var(--muted); }
.ov-paid { flex: 11575; background: var(--good); }
.ov-owed { flex: 19021; background: var(--warning); }
.ov-key { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 8px !important; }
.ov-key span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; background: var(--muted); }
.ov-key .k-yes::before, .ov-key .k-paid::before { background: var(--good); }
.ov-key .k-wait::before { background: var(--warning); }
.ov-key .k-owed::before { background: var(--warning); }
.ov-todo p:not(.ov-card-title), .ov-next p:not(.ov-card-title) { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; padding: 6px 0; border-top: 1px solid var(--border); font-size: 13.5px; }
.ov-todo p:not(.ov-card-title)::before { content: ""; flex: none; width: 13px; height: 13px; border: 1.5px solid var(--control); border-radius: 4px; transform: translateY(2px); }
.ov-todo p.done { color: var(--muted); text-decoration: line-through; }
.ov-todo p.done::before { background: var(--accent); border-color: var(--accent); }
.ov-todo i { font-style: normal; margin-left: auto; }
.ov-next b { min-width: 46px; }
@media (max-width: 560px) {
  .ov-mock-in { grid-template-columns: minmax(0, 1fr); }
  .ov-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .ov-tile { padding: 10px; }
  .ov-tile b { font-size: 18px; }
}

/* "Maple is for you if" (3 Dec 2026): a short ticked list, then one honest line. */
.for-you-list { list-style: none; margin: var(--space-24) 0 0; padding: 0; display: grid; gap: var(--space-16); }
.for-you-list li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: var(--space-16); align-items: start; font-size: 18px; line-height: 1.5; }
.for-you-list li::before { content: ""; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23843F2B' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.for-you-not { margin: var(--space-24) 0 0; color: var(--muted); }
@media (max-width: 640px) { .for-you-list li { font-size: 16px; } }
