/* Say It With Me: the page design for every public page except the landing (privacy, terms, free and cloud, help).
   The tokens, header, buttons and footer are copied from welcome/landing.css; tests/public-pages.test.cjs keeps them equal.
   It lives outside welcome/ because the store apps carry these pages but not welcome/. */
/* Say It With Me landing, round 6. "The conversation": a real person with the board at the top, the
   four steps, then a real ask-and-answer. One spacing scale for the whole page:
   8, 16, 24, 40, 64 and 96 px (--s1 to --s6). Sections are --sec apart: 40 px on a phone, 64 px on a
   desktop. Blocks inside a section are at least 16 px apart. */
@font-face { font-family: Nunito; src: url(Nunito.ttf) format("truetype"); font-weight: 200 1000; font-display: swap; }

:root {
  --ground: #FFFFFF; --tone: #F4F1EA; --tone-2: #E9E4D8;
  --ink: #193E42; --muted: #3A5659; --btn: #193E42; --btn-ink: #FAF7F0;
  --teal: #007F83; --coral: #D04C39; --sun: #B17B00; --sun-fill: #FFD052;
  --me: #E1F0EF; --you: #FBE7E2; --focus: #B17B00;
  --field: #193E42; --field-ink: #FAF7F0; --app: #FAF7F0; --pick: #006569;
  --yes: #176631; --yes-bg: #d9f2e0; --no: #b3261e; --no-bg: #fde3e1;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 40px; --s5: 64px; --s6: 96px;
  --sec: var(--s4);
  --wrap: 1240px;
  --gut: max(clamp(16px, 4vw, 40px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #101517; --tone: #1A2224; --tone-2: #243033;
    --ink: #FAF7F0; --muted: #C9D6D5; --btn: #FAF7F0; --btn-ink: #101517;
    --teal: #53C9C5; --coral: #FF806A; --sun: #FFD052;
    --me: #16393A; --you: #47271F; --focus: #FFD052;
    --field: #193E42; --app: #121A1B; --pick: #53C9C5;
    --yes: #8fe0a8; --yes-bg: #183a24; --no: #ffb4ab; --no-bg: #4a1e1a;
    color-scheme: dark;
  }
}
@media (prefers-contrast: more) { :root { --muted: var(--ink); } .bubble, .atile, .said, .screen, .xshot { outline: 2px solid var(--ink); } }
@media (min-width: 1024px) and (min-height: 501px) { :root { --sec: var(--s5); } }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 1.0625rem/1.55 Nunito, system-ui, -apple-system, "Segoe UI", sans-serif; }
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-weight: 900; letter-spacing: -0.025em; line-height: 1.05; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
:focus-visible { outline: 4px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--sun-fill); color: #193E42; padding: 12px 16px; border-radius: 8px; font-weight: 800; z-index: 9; }
.skip:focus { top: 8px; }

/* Sections: one gap between every pair, from the scale. */
main > section + section { margin-top: var(--sec); }
.foot { margin-top: var(--sec); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; min-width: 48px; padding: 12px 24px; border-radius: 6px; border: 0; font-family: inherit; font-weight: 800; font-size: 1.0625rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: transform .16s ease-out; }
.btn:active { transform: scale(.97); }
.btn-ink { background: var(--btn); color: var(--btn-ink); }
.btn-small { min-height: 48px; padding: 10px 18px; }
@media (hover: hover) { .btn-ink:hover { background: var(--teal); color: var(--btn-ink); } }

/* header */
/* header */
.bar { display: flex; align-items: center; gap: var(--s3); min-height: 76px; }
.brand { display: inline-flex; align-items: center; min-height: 48px; }
.brand img { width: 196px; height: auto; }
.bar nav { display: flex; gap: 4px; margin-left: auto; }
.bar nav a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 14px; text-decoration: none; font-weight: 700; }
.bar nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Free vs Cloud table */
.plans { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: var(--s2) var(--s5); align-items: start; }
.plans-head p { margin-top: var(--s2); max-width: 36ch; font-weight: 600; }
.pt { width: 100%; border-collapse: collapse; line-height: 1.35; }
.pt th, .pt td { padding: 6px 12px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--tone-2); }
.pt thead th { padding-top: 0; font-size: 1.25rem; font-weight: 900; border-bottom: 3px solid var(--ink); vertical-align: bottom; white-space: nowrap; }
.pt thead th span { display: inline; margin-left: 8px; font-size: .9375rem; font-weight: 700; color: var(--muted); }
.pt td { width: 8.6em; }
.pt td:last-child { width: 12.4em; }
.pt tbody th { padding-left: 0; font-weight: 700; font-size: 1rem; }
.pt thead th:first-child { padding-left: 0; }
.pt-yes { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; }
.pt-yes::before { content: ""; width: 20px; height: 20px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.8 10.4l2.7 2.7 5.7-6' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.pt-soon { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--sun-fill); color: #193E42; font-weight: 800; font-size: .9375rem; }
.pt-no { color: var(--muted); font-weight: 800; }
.plans-foot { grid-column: 2; color: var(--muted); font-weight: 600; font-size: .9375rem; }

/* footer */
.foot { margin-top: var(--sec); padding-top: calc(6px + var(--s2)); padding-bottom: var(--s4); background: linear-gradient(var(--tone), var(--tone)) center top / calc(100% - 2 * var(--gut)) 6px no-repeat; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 var(--s3); }
.foot nav a { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; min-width: 48px; font-weight: 800; text-underline-offset: 4px; }
.credit { margin-top: var(--s1); color: var(--muted); font-size: .9375rem; max-width: 120ch; }
@media (max-width: 599px) { .credit { font-size: .875rem; } }
@media (min-width: 1800px) and (min-height: 501px) { :root { --wrap: 1400px; } }

/* Pages inside the site: one title block, then sections or prose. Same scale and colours as the landing. */
.page-head { padding-top: var(--s4); }
.page-head h1 { font-size: clamp(2.25rem, 5.2vw, 3.75rem); max-width: 18ch; }
.page-head .lede { max-width: 52ch; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--s2) var(--s5); padding-top: calc(6px + var(--s4)); background: linear-gradient(var(--tone), var(--tone)) center top / calc(100% - 2 * var(--gut)) 6px no-repeat; align-items: start; }
.row + .row { margin-top: var(--s4); }
.row h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); max-width: 18ch; overflow-wrap: anywhere; }
.row h2 small { display: block; margin-top: var(--s1); font-size: 1rem; font-weight: 800; letter-spacing: 0; color: var(--muted); }
.row-body > * + * { margin-top: var(--s2); }
.row-body p, .prose p, .prose li { max-width: 68ch; }
.row-body ul, .prose ul { padding-left: 1.4rem; margin-block: 0; }
.row-body li + li, .prose li + li { margin-top: var(--s1); }
/* FM-142: the text column starts at the logo edge (it was a centred column away from the logo); lines stay about 68ch. */
.prose { padding-top: var(--s3); }
.prose > * { max-width: 68ch; }
.prose > * + * { margin-top: var(--s2); }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-top: var(--s4); }
.prose h3 { font-size: 1.25rem; margin-top: var(--s3); }
.prose a, .row-body a:not(.btn) { text-underline-offset: 4px; font-weight: 700; }
.prose code { font-size: .95em; background: var(--tone); padding: 0 .25em; border-radius: 4px; }
.prose mark.blank { background: var(--sun-fill); color: #193E42; padding: 0 .2em; border-radius: 4px; outline: 1px dashed #8a5f00; }
.legal-draft { border: 3px solid var(--coral); background: var(--you); color: var(--ink); padding: var(--s2); border-radius: 8px; }
.note-box { background: var(--tone); border-radius: 8px; padding: var(--s3); max-width: 68ch; }
.faq details { border-top: 1px solid var(--tone-2); }
.faq details:last-child { border-bottom: 1px solid var(--tone-2); }
.faq summary { display: flex; align-items: center; min-height: 56px; padding-block: var(--s1); font-weight: 800; cursor: pointer; }
.faq details > p { padding: 0 0 var(--s2); max-width: 68ch; }
.legal-links { display: flex; flex-wrap: wrap; gap: 0 var(--s3); margin-top: var(--s4); }
.legal-links a { display: inline-flex; align-items: center; min-height: 48px; font-weight: 800; text-underline-offset: 4px; }
@media (max-width: 899px) { .row { grid-template-columns: minmax(0, 1fr); } .plans { grid-template-columns: minmax(0, 1fr); } .plans-foot { grid-column: 1; } }
@media (max-width: 1023px) { .bar nav { display: none; } .bar .btn-small { margin-left: auto; } }
@media (max-width: 599px) { .pt tbody th { font-size: .9375rem; line-height: 1.3; } .pt td { width: 4.2em; } .pt td:last-child { width: 6.6em; } .pt th, .pt td { padding-inline: 4px; } }
.prose h1 { font-size: clamp(2.25rem, 5.2vw, 3.75rem); max-width: 18ch; }
@media (max-width: 599px), (max-height: 500px) and (orientation: landscape) { .bar { min-height: 64px; gap: var(--s2); } .brand img { width: 158px; } }
.lede { margin-top: var(--s3); font-size: clamp(1.0625rem, 1.5vw, 1.25rem); font-weight: 600; max-width: 40ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); margin-top: var(--s3); }
.page-head .actions { margin-top: var(--s3); }
.page-head .lede + .actions { margin-top: var(--s3); }
.page-head .facts { margin-top: var(--s2); font-weight: 600; max-width: 60ch; color: var(--muted); }

/* Long words (an email address) wrap instead of widening the page at 200% text. */
main p, main li, main td, main th, main dd { overflow-wrap: anywhere; }
.single-link a { display: inline-flex; align-items: center; min-height: 48px; }

/* FM-345 feedback form: plain, large targets (48 px or more), visible labels, works at 200% text and in dark mode. */
.fb { padding-top: var(--s3); }
.fb-form, .fb-done { max-width: 44rem; }
.fb-q { margin: 0 0 var(--s4); padding: 0; border: 0; min-width: 0; }
.fb-q legend, .fb-label { display: block; padding: 0; margin-bottom: var(--s1); font-size: 1.25rem; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
.fb-choice { display: flex; align-items: center; gap: var(--s2); min-height: 56px; padding: 8px var(--s2); margin-bottom: var(--s1); border: 2px solid var(--tone-2); border-radius: 8px; background: var(--tone); font-weight: 700; cursor: pointer; overflow-wrap: anywhere; }
.fb-choice:has(input:checked) { border-color: var(--ink); }
.fb-choice input { flex: 0 0 auto; width: 28px; height: 28px; margin: 0; accent-color: var(--teal); }
.fb-choice span { min-width: 0; }
.fb-q .fb-label + .fb-input, .fb-choice + .fb-label { margin-top: var(--s2); }
.fb-input { display: block; width: 100%; min-height: 52px; padding: 12px; border: 2px solid var(--muted); border-radius: 8px; background: var(--ground); color: var(--ink); font: inherit; }
textarea.fb-input { min-height: 120px; resize: vertical; }
.fb-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.fb-note { margin-bottom: var(--s2); color: var(--muted); font-weight: 600; overflow-wrap: anywhere; }
.fb-note a { display: inline-flex; align-items: center; min-height: 48px; font-weight: 800; text-underline-offset: 4px; color: var(--ink); }
.fb-status { margin-bottom: var(--s2); font-weight: 800; color: var(--no); overflow-wrap: anywhere; }
.fb-status:empty { display: none; }
.fb-form .btn { min-width: min(12rem, 100%); max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.fb-form .btn:disabled { opacity: .6; cursor: default; }
.fb-done h2 { margin-bottom: var(--s2); }
.fb-done h2:focus { outline: none; }
.fb-done p + p { margin-top: var(--s2); }
/* FM-345 sweep (195 px wide, 200% text): footer links shrink and wrap instead of pushing the page sideways; the symbol link and the logo keep 48 px targets. */
.foot nav a { flex-shrink: 1; overflow-wrap: anywhere; }
.credit a { display: inline-flex; align-items: center; min-height: 48px; }
.bar .brand { min-width: 48px; }
.page-head h1 { overflow-wrap: anywhere; hyphens: auto; }
