/* CoatTally website: the page's own CSS, linked after the kit's stylesheets.
   Palette white-mint-tiles and type instrument exactly as start.mjs printed them (web-taste).
   Fonts are bundled locally (SIL OFL, assets/fonts): no font request leaves the site. */
@font-face { font-family: "Instrument Sans"; src: url("assets/fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-stretch: 75% 100%; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("assets/fonts/dm-mono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("assets/fonts/dm-mono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --p-bg: #ffffff; --p-surface: #f3f3f3; --p-ink: #232323; --p-muted: #686868;
  --p-accent: #a1ffcb; --p-accent-ink: #232323; --p-action: #232323; --p-action-ink: #ffffff;
  --p-inv-bg: #232323; --p-inv-surface: #303030; --p-inv-ink: #ffffff; --p-inv-muted: #a4a4a4;
  --p-inv-accent: #a1ffcb; --p-inv-accent-ink: #232323; --p-inv-action: #a1ffcb; --p-inv-action-ink: #232323;
  --font-display: "Instrument Sans", system-ui, sans-serif;
  --font-text: "Instrument Sans", system-ui, sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display-weight: 500;
  --display-tracking: -0.028em;
  --display-tracking-xl: -0.036em;
  --display-stretch: 96%;
  --ly-scale: 1.04;
}

/* ---------------------------------------------------------------- the drawn app UI (illustrative until T-0009)
   One look for every phone screen and card on the page: white, the ink, 13px and up, the mint as state. */
.ct { --ct-ink: #232323; --ct-muted: #626262; --ct-line: rgb(0 0 0 / .08); --ct-mint: #a1ffcb; --ct-mint-ink: #0f5132;
      font: 400 14px/1.4 var(--font-text); color: var(--ct-ink); text-align: left; }
.ct b { font-weight: 500; }
.ct .num { font-variant-numeric: tabular-nums; }
.phone { position: relative; width: 300px; background: #fff; border-radius: 34px; overflow: hidden;
         box-shadow: 0 0 0 1px rgb(0 0 0 / .08), 0 0 0 7px #1f1f1f, 0 32px 64px -28px rgb(0 0 0 / .55); }
.ph-status { display: flex; justify-content: space-between; align-items: center; height: 40px; padding: 0 22px; font-size: 13px; font-weight: 500; }
.ph-status svg { width: 34px; height: 12px; fill: currentColor; }
.ph-head { display: grid; gap: 2px; padding: 4px 18px 12px; border-bottom: 1px solid var(--ct-line); }
.ph-back { font-size: 13px; color: var(--ct-muted); }
.ph-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.ph-body { display: grid; gap: 0; padding: 0 18px 18px; }
.ph-label { padding: 14px 0 6px; font-size: 13px; color: var(--ct-muted); }
.ph-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--ct-line); }
.ph-row small { grid-column: 1 / -1; font-size: 13px; color: var(--ct-muted); }
.ph-row .yours { font-size: 13px; color: var(--ct-mint-ink); }
.ph-add { padding: 12px 0; font-size: 14px; font-weight: 500; }
.chip { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 99px; font-size: 13px; font-weight: 500; background: #efefef; color: var(--ct-ink); white-space: nowrap; }
.chip--mint { background: var(--ct-mint); color: #14382a; }
.ph-total { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 14px 0 4px; padding: 12px 12px 10px; border-radius: 16px; background: #232323; color: #fff; }
.ph-total div { display: grid; gap: 2px; }
.ph-total span { font-size: 13px; color: #c9c9c9; }
.ph-total { grid-template-columns: 1.35fr 1fr 1fr 1.1fr; }
.ph-total b { font-size: 14px; font-weight: 500; white-space: nowrap; }
.ph-total .is-price b { color: var(--ct-mint); }
.ct-card { background: #fff; border-radius: 14px; padding: 14px 16px; box-shadow: 0 0 0 1px rgb(0 0 0 / .07), 0 18px 44px -20px rgb(0 0 0 / .45); }
.ct-card__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ct-card h4 { margin: 0; font: 500 15px/1.3 var(--font-text); letter-spacing: -0.005em; }
.ct-line { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 13px; color: #3f3f3f; border-top: 1px solid var(--ct-line); }
.ct-line:first-of-type { margin-top: 8px; }
.ct-line i { width: 18px; height: 18px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #e3fbee; color: #14532d; font-style: normal; font-size: 13px; font-weight: 500; }
.ct-line b { color: var(--ct-ink); }

/* ---------------------------------------------------------------- hero: the collage on the lit sage ground */
.hero__art { background:
    radial-gradient(70% 60% at 18% 12%, color-mix(in oklab, var(--ground-surface) 80%, white), transparent 70%),
    radial-gradient(60% 50% at 90% 100%, color-mix(in oklab, var(--ground-bg) 80%, var(--ground-accent)), transparent 70%),
    var(--ground-bg); }
.hero__art > .ly-piece--main.phone { left: auto; right: var(--s-8); width: 316px; }
.hero__art > .ly-piece--note { left: var(--s-6); bottom: var(--s-6); width: 300px; z-index: 2; }
.hero__proof { font-size: var(--t-small); color: var(--muted); }
@media (max-width: 1279px) { .hero__art > .ly-piece--main.phone { right: var(--s-6); } }
@media (max-width: 1023px) {
  .hero__art > .ly-piece--note { left: var(--s-4); bottom: var(--s-4); width: 270px; }
  .hero__art > .ly-piece--main.phone { right: auto; left: 50%; transform: translateX(-24%); }
}
@media (max-width: 639px) {
  .hero__art > .ly-piece--main.phone { left: 50%; right: auto; top: var(--s-4); width: 286px; transform: translateX(-50%); }
}

/* ---------------------------------------------------------------- the numbers: three phones in one lit frame across the .wrap */
.phones { position: relative; overflow: hidden; border-radius: var(--r-lg); margin-top: var(--s-7);
          background: radial-gradient(60% 80% at 20% 0%, color-mix(in oklab, var(--ground-surface) 80%, white), transparent 70%), var(--ground-bg);
          display: flex; justify-content: center; align-items: flex-start; gap: var(--s-8); padding: var(--s-8) var(--s-6) 0; }
.phones > .phone { flex: none; }
.phones::after { content: ""; position: absolute; inset: auto 0 0 0; height: 72px; background: linear-gradient(transparent, var(--ground-bg)); pointer-events: none; }
@media (max-width: 1279px) { .phones { gap: var(--s-6); } }
@media (max-width: 1023px) { .phones > .phone:nth-child(3) { display: none; } }
@media (max-width: 639px) { .phones { padding-top: var(--s-6); } .phones > .phone:nth-child(2) { display: none; } .phones > .phone { width: 286px; } }

/* ---------------------------------------------------------------- the quote steps (pinned-chapters): each visual is a lit panel holding one card */
#quote .mo-pc__visual--lit { overflow: hidden; }
#quote .mo-pc__visual .ct-card { width: min(100%, 400px); }
#quote:not(.is-live) .mo-pc__visual--lit { aspect-ratio: auto; height: 30svh; min-height: 220px; padding: var(--s-5); }
#quote:not(.is-live) .mo-pc__visual .ct-card { transform: scale(.86); transform-origin: center; }
@media (max-width: 639px) { #quote:not(.is-live) .mo-pc__visual--lit { height: auto; min-height: 0; padding: var(--s-4); } #quote:not(.is-live) .mo-pc__visual .ct-card { transform: none; } }
.pdf { display: grid; gap: 10px; }
.pdf__top { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--ct-line); }
.pdf__logo { width: 34px; height: 34px; border-radius: 8px; background: #232323; color: var(--ct-mint); display: grid; place-items: center; font-weight: 500; font-size: 14px; }
.pdf__top small, .pdf small { display: block; font-size: 13px; color: var(--ct-muted); }
.opt { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 9px 0; border-top: 1px solid var(--ct-line); font-size: 14px; }
.opt:first-of-type { border-top: 0; }
.opt small { grid-column: 1; font-size: 13px; color: var(--ct-muted); }
.opt .num { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-weight: 500; }
.share { display: flex; gap: 8px; padding-top: 4px; }
.share span { flex: 1; display: grid; place-items: center; height: 34px; border-radius: 10px; background: #f1f1f1; font-size: 13px; font-weight: 500; }
.share span.is-on { background: #232323; color: #fff; }
.fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.fields > div { display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; background: #f4f4f4; }
.fields span { font-size: 13px; color: var(--ct-muted); }
.fields b { font-size: 17px; }

/* ---------------------------------------------------------------- offline: one phone in a split frame */
.frame--phone { position: relative; overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 5 / 4;
                background: radial-gradient(70% 60% at 80% 10%, color-mix(in oklab, var(--ground-surface) 80%, white), transparent 70%), var(--ground-bg);
                display: flex; justify-content: center; padding-top: var(--s-7); }
.frame--phone::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(transparent, var(--ground-bg)); pointer-events: none; }
@media (max-width: 1023px) { .frame--phone { aspect-ratio: auto; height: 420px; margin-top: var(--s-7); } }
@media (max-width: 639px) { .frame--phone { height: 340px; } .frame--phone > .phone { width: 286px; } }

/* ---------------------------------------------------------------- pricing cards */
.plan__price { display: flex; align-items: baseline; gap: var(--s-2); flex-wrap: wrap; }
.plan__price .t-stat { font-size: var(--t-stat); }
.plan__list { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s-3); }
.plan__list li { padding-top: var(--s-3); border-top: 1px solid var(--line); }

/* ---------------------------------------------------------------- the analytics banner (shown only once a GA4 id is set) */
.text-button { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.consent-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 20; max-width: 720px; margin-inline: auto;
                  display: flex; gap: var(--s-6); align-items: center; padding: var(--s-5) var(--s-6);
                  background: #ffffff; color: #232323; border-radius: var(--r-md); box-shadow: 0 0 0 1px rgb(0 0 0 / .1), 0 24px 48px -24px rgb(0 0 0 / .5); }
.consent-banner[hidden] { display: none; }
.consent-banner h2 { font: 500 18px/1.4 var(--font-text); letter-spacing: 0; color: #232323; }
.consent-banner p { margin-top: var(--s-2); font-size: 16px; line-height: 1.5; color: #232323; }
.consent-banner a { color: #232323; }
.consent-actions { display: flex; gap: var(--s-3); flex: none; }
body.consent-open { padding-bottom: var(--consent-space, 200px); }
@media (max-width: 639px) { .consent-banner { flex-direction: column; align-items: stretch; } .consent-actions .btn { flex: 1; } }

/* ---------------------------------------------------------------- privacy and terms */
.legal-main { padding: calc(var(--nav) + var(--s-8)) 0 var(--s-9); }
.legal-copy { max-width: 760px; }
.legal-copy h1 { font: var(--display-weight) clamp(38px, 2.2vw + 28px, 60px)/1.05 var(--font-display); letter-spacing: var(--display-tracking); }
.legal-copy h2 { margin-top: var(--s-8); font: var(--display-weight) clamp(24px, .8vw + 20px, 32px)/1.2 var(--font-display); letter-spacing: var(--display-tracking); }
.legal-copy h3 { margin-top: var(--s-7); font: 500 var(--t-lead)/1.35 var(--font-text); }
.legal-copy p, .legal-copy ul { margin-top: var(--s-4); }
.legal-copy ul { padding-left: var(--s-5); }
.legal-copy li + li { margin-top: var(--s-3); }
.legal-copy a { overflow-wrap: anywhere; }
.legal-footer { padding: var(--s-7) 0; background: var(--p-inv-bg); color: var(--p-inv-ink); }
.legal-footer a, .legal-footer .text-button { color: var(--p-inv-ink); }
.legal-footer .footer__legal { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-6); margin: 0; }
.legal-footer .footer__legal a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------------------------------------------------------------- round 2: equal phones, the Pro screen, the legal row */
.hero__proof { color: var(--ink); }
.phones > .phone { height: 600px; }
.ph-nosvc { display: inline-flex; align-items: center; gap: 6px; }
.plan-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.plan-pick > span { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--ct-line); }
.plan-pick > span.is-on { border: 2px solid #232323; }
.plan-pick small { font-size: 13px; color: var(--ct-muted); }
.ph-cta { display: grid; place-items: center; height: 44px; margin-top: 14px; border-radius: 12px; background: #232323; color: #fff; font-weight: 500; }
.ph-centre { text-align: center; }
.rows > li > p { grid-column: 1 / -1; }
.footer__legal-links { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s-6); }
.footer__legal-links a { display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 1024px) { .frame--phone { aspect-ratio: auto; height: min(660px, calc(100svh - 240px)); } }
#quote.is-live .mo-pc__visual .ct-card { transform: scale(1.22); }

/* ---------------------------------------------------------------- round 3: the phones as three equal slots from line to line */
.phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding: 0; }
.phone-slot { position: relative; min-height: 0; overflow: hidden; display: flex; justify-content: center; padding-top: var(--s-8); }
.phones > .phone-slot > .phone { height: 600px; flex: none; }
@media (max-width: 1023px) { .phones { grid-template-columns: repeat(2, minmax(0, 1fr)); } .phones > .phone-slot:nth-child(3) { display: none; } }
@media (max-width: 639px) { .phones { grid-template-columns: minmax(0, 1fr); } .phones > .phone-slot:nth-child(2) { display: none; } .phone-slot { padding-top: var(--s-6); } .phones > .phone-slot > .phone { width: 286px; } }
/* the FAQ's worked example: one card on the lit ground under the questions' intro */
.calc-frame { margin-top: var(--s-6); padding: var(--s-6); border-radius: var(--r-lg); background: radial-gradient(70% 60% at 20% 0%, color-mix(in oklab, var(--ground-surface) 80%, white), transparent 70%), var(--ground-bg); }
.calc-frame .ct-card { max-width: 400px; }
.calc-frame .ct-line { font-size: 14px; }
.phones { grid-template-rows: minmax(0, 1fr); }
.phone-slot { height: 100%; align-items: flex-start; }
.phone-slot::after { content: ""; position: absolute; inset: auto 0 0 0; height: 72px; background: linear-gradient(transparent, var(--ground-bg)); pointer-events: none; }
.phones::after { display: none; }

/* ---------------------------------------------------------------- screens at the tablet and the phone */
@media (min-width: 640px) and (max-width: 1023px) {
  .frame--phone { height: 340px; }
  #faq .calc-frame { display: none; }
  main > #quote[data-moment]:not(.is-live) { min-height: 200svh; }
}
@media (max-width: 639px) {
  #offline .frame--phone { height: 220px; }
  #pricing .frame--phone { display: none; }
  #faq { --hm: 2; }
  main > #quote[data-moment]:not(.is-live) { min-height: 200lvh; }
}
/* legal pages: real bullets; the effective-date line is the legal text's own placeholder note (README: set the
   launch date in docs/legal, then rebuild), so the kit's red draft outline is not drawn on it */
.legal-copy ul { list-style: disc; }
.legal-copy li::marker { color: var(--muted); }
.legal-copy [data-placeholder] { outline: 0; }

/* ---------------------------------------------------------------- round 4: tablet steps and form, FAQ at the tablet */
@media (min-width: 640px) and (max-width: 1023px) {
  #quote:not(.is-live) .mo-pc__visual--lit { height: 40svh; }
  #quote:not(.is-live) .mo-pc__visual .ct-card { transform: none; }
  #faq .calc-frame { display: block; }
}

/* ---------------------------------------------------------------- Codex review fixes (2026-11-28)
   S2: three whole phones (300 + the 7px bezel each side) need a 346px slot: two columns below 1200px */
@media (max-width: 1199px) { .phones { grid-template-columns: repeat(2, minmax(0, 1fr)); } .phones > .phone-slot:nth-child(3) { display: none; } }
@media (max-width: 639px) { .phones { grid-template-columns: minmax(0, 1fr); } }
/* the waitlist button's line under it */
.closing__cta .section-head p { max-width: 62ch; }
/* N1: on a tablet the questions take one screen; the worked example shows from 1024px and on a phone */
@media (min-width: 640px) and (max-width: 1023px) { #faq .calc-frame { display: none; } }
/* the tablet hero (640-1023): the quote phone shows two rooms, so it ends whole inside its frame */
@media (min-width: 640px) and (max-width: 1023px) {
  .hero__art > .ly-piece--main.phone .ph-row:nth-of-type(n+3), .hero__art > .ly-piece--main.phone .ph-add { display: none; }
}
@media (max-width: 639px) { #offline .frame--phone { height: 196px; } }
