/* Easy Message website — shared styles.
   Layout idea: pages are laid out like an easy read message (picture left, words right,
   numbered pages) on the same pale paper as the app. One calm light look, to match the pictures. */

@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-display: swap; src: url("../fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-display: swap; src: url("../fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --paper: #f5f6fa;      /* same as the picture backgrounds */
  --card: #ffffff;
  --ink: #263046;        /* the navy used for words in messages */
  --ink-soft: #545e75;
  --line: #dfe2ec;
  --accent: #5b2fc4;     /* the purple top bar of the tablet */
  --peach: #f4d3bf; --butter: #f2e5ae; --sky: #c9def0; --lilac: #ddd4ef; --sage: #cde3d0; --rose: #f0ccd6;
  --font: "Atkinson Hyperlegible", "Verdana", "Segoe UI", system-ui, sans-serif;
  --s1: clamp(2.2rem, 4.6vw, 3.5rem);
  --s2: clamp(1.7rem, 3vw, 2.3rem);
  --s3: 1.3rem;
  --wrap: 72rem;
  --r: 18px;
}
* { box-sizing: border-box; }
html { 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(--paper); color: var(--ink); font-family: var(--font); font-size: 1.15rem; line-height: 1.55; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: var(--s1); letter-spacing: -.01em; }
h2 { font-size: var(--s2); }
h3 { font-size: var(--s3); }
p { margin: 0; max-width: 62ch; }
ul, ol { margin: 0; padding: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: max(16px, 4vw); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--card); padding: .5rem 1rem; z-index: 10; }
.eyebrow { font-size: .95rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }

/* Buttons are plain, never styled like the pictures (same rule as in messages) */
.btn { font: inherit; font-weight: 700; font-size: 1.05rem; display: inline-flex; align-items: center; gap: .55rem; padding: .8rem 1.3rem; border-radius: 999px; border: 2px solid var(--ink); background: var(--card); color: var(--ink); cursor: pointer; text-decoration: none; line-height: 1.1; }
.btn:hover { background: var(--paper); }
.btn.main { background: var(--ink); color: var(--card); }
.btn.main:hover { background: #38435f; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Header */
header.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 1.2rem; padding-block: .7rem; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.3rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.tiles { display: grid; grid-template-columns: repeat(3, 9px); gap: 3px; padding: 5px; border-radius: 7px; background: var(--ink); }
.tiles i { width: 9px; height: 9px; border-radius: 2px; }
.top nav { display: flex; gap: .3rem; margin-left: auto; font-size: 1rem; align-items: center; }
.top nav a { color: var(--ink); text-decoration: none; font-weight: 700; padding: .4rem .7rem; border-radius: 999px; white-space: nowrap; }
.top nav a:hover { background: var(--card); }
.top nav a[aria-current="page"] { background: var(--ink); color: var(--card); }
.top nav a.er { border: 2px solid var(--ink); margin-left: .4rem; }
.menu-btn { display: none; margin-left: auto; font: inherit; font-weight: 700; padding: .45rem .9rem; border-radius: 999px; border: 2px solid var(--ink); background: var(--card); color: var(--ink); cursor: pointer; }
@media (max-width: 1000px) {
  .menu-btn { display: inline-flex; }
  .top .wrap { flex-wrap: wrap; }
  .top nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: .6rem; }
  .top nav.open { display: flex; }
  .top nav a { padding: .7rem .9rem; }
  .top nav a.er { margin-left: 0; text-align: center; }
}

/* Page intro on inner pages */
.intro { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem); }
.intro .wrap { display: grid; gap: 1rem; }
.intro p { font-size: 1.3rem; color: var(--ink-soft); }

section.block { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
section.alt { background: var(--card); border-block: 1px solid var(--line); }
.head { display: grid; gap: .8rem; margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.head p { color: var(--ink-soft); font-size: 1.2rem; }

/* The tablet player (used on Home and in Easy read) */
.tablet { background: var(--ink); border-radius: 28px; padding: 14px 34px 14px 14px; position: relative; box-shadow: 0 18px 40px -22px rgba(38,48,70,.55); }
.tablet::after { content: ""; position: absolute; right: 12px; top: 50%; width: 11px; height: 11px; margin-top: -6px; border-radius: 50%; background: #c8ccd8; }
.screen { background: var(--paper); border-radius: 14px; overflow: hidden; }
.bar { height: 26px; background: var(--accent); display: flex; align-items: center; justify-content: center; }
.bar i { width: 34px; height: 4px; border-radius: 3px; background: rgba(255,255,255,.85); }
.stage { aspect-ratio: 16 / 9; max-width: 100%; display: grid; grid-template-columns: 1fr 1fr; align-items: center; position: relative; padding: 4% 5%; gap: 4%; }
.stage img { width: 100%; max-width: 260px; justify-self: center; transition: opacity .35s, transform .35s; }
.stage .words { font-weight: 700; font-size: clamp(1rem, 2.2vw, 1.7rem); line-height: 1.25; transition: opacity .35s; overflow-wrap: anywhere; }
.stage.swap img { opacity: 0; transform: scale(.94); }
.stage.swap .words { opacity: 0; }
.pg { position: absolute; top: 10px; right: 12px; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; font-size: .9rem; font-weight: 700; background: var(--card); font-variant-numeric: tabular-nums; }
.controls { display: flex; flex-direction: column; align-items: center; gap: .6rem; padding: .2rem 1rem 1rem; }
.dots { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.dots i.on { background: var(--ink); }
.pbtns { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; }
.pbtn { font: inherit; font-weight: 700; font-size: .9rem; min-width: 4.8rem; padding: .4rem .7rem; border-radius: 10px; border: 2px solid var(--ink); background: var(--card); color: var(--ink); cursor: pointer; display: grid; justify-items: center; line-height: 1.2; }
.pbtn.main { background: var(--ink); color: var(--card); }
.pbtn svg { width: 14px; height: 14px; }
.player-note { font-size: .95rem; color: var(--ink-soft); text-align: center; margin: .7rem auto 0; }
@media (max-width: 520px) { .tablet { padding: 10px 26px 10px 10px; border-radius: 22px; } .tablet::after { right: 8px; width: 9px; height: 9px; } .stage { grid-template-columns: 1fr 1.1fr; } }

/* Home hero */
.hero { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.hero .copy { display: grid; gap: 1.3rem; min-width: 0; }
.lead { font-size: 1.3rem; color: var(--ink-soft); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Three formats */
.formats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.fmt { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 1rem; align-items: start; }
.fmt img { border-radius: 14px; }
.fmt .txt { display: grid; gap: .3rem; min-width: 0; }
.fmt p { color: var(--ink-soft); font-size: 1.05rem; }
@media (max-width: 900px) { .formats { grid-template-columns: 1fr; } }

/* Example cards */
.examples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.ex { display: grid; grid-template-rows: auto 1fr; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; min-width: 0; }
.ex .still { aspect-ratio: 16 / 9; max-width: 100%; width: 100%; object-fit: cover; border-bottom: 1px solid var(--line); background: var(--paper); }
.ex .body { display: grid; gap: .6rem; padding: 1.2rem 1.3rem 1.4rem; align-content: start; }
.ex .meta { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { font-size: .85rem; font-weight: 700; padding: .15rem .65rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.ex p { color: var(--ink-soft); font-size: 1.05rem; }
.ex .actions { margin-top: .4rem; }
.ex .soon { font-size: .95rem; color: var(--ink-soft); font-weight: 700; }
@media (max-width: 760px) { .examples { grid-template-columns: 1fr; } }

/* Two-up strip (teaser + contact) */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.panel { border-radius: 24px; padding: clamp(1.4rem, 4vw, 2.2rem); display: grid; gap: 1rem; align-content: start; min-width: 0; }
.panel.soft { background: var(--card); border: 1px solid var(--line); }
.panel.dark { background: var(--ink); color: var(--card); }
.panel.dark h2 { color: var(--card); }
.panel.dark p { color: #d5d9e6; }
.panel.dark .btn { border-color: var(--card); }
.thumbs { display: flex; gap: .6rem; }
.thumbs img { width: 84px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); }
@media (max-width: 760px) { .pair { grid-template-columns: 1fr; } }

/* Looks page */
.choice { display: grid; gap: .7rem; }
.choice + .choice { margin-top: 1.4rem; }
.choice .label { font-weight: 700; font-size: 1.15rem; }
.choice .label > span:last-child { color: var(--ink-soft); font-weight: 400; }
.seg { display: flex; flex-wrap: wrap; gap: .5rem; }
.seg button { font: inherit; font-weight: 700; font-size: 1.05rem; padding: .6rem 1.1rem; border-radius: 999px; border: 2px solid var(--ink); background: var(--card); color: var(--ink); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--card); }
.seg .more { font-size: 1rem; padding: .6rem 1rem; border-radius: 999px; border: 2px dashed var(--line); color: var(--ink-soft); font-weight: 700; }
.compare { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1.5rem; margin-top: 2rem; align-items: start; }
.frame { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem; display: grid; gap: .8rem; min-width: 0; }
.frame .cap { font-size: .95rem; color: var(--ink-soft); }
.frame .cap strong { color: var(--ink); }
.scene { aspect-ratio: 16 / 9; max-width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 12px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding: 4%; gap: 4%; position: relative; overflow: hidden; }
.scene .pic { height: 100%; display: grid; place-items: center; min-height: 0; }
.scene .pic img, .scene .pic video { max-height: 100%; max-width: 100%; object-fit: contain; }
.scene .words { font-weight: 700; font-size: clamp(1rem, 2vw, 1.5rem); line-height: 1.3; }
.placeholder { width: 100%; height: 100%; border: 2px dashed var(--line); border-radius: 12px; display: grid; place-items: center; text-align: center; color: var(--ink-soft); font-weight: 700; font-size: 1rem; padding: 1rem; }
.page-pic { aspect-ratio: 210 / 297; max-width: 100%; width: 100%; max-height: 420px; object-fit: contain; background: var(--paper); border-radius: 8px; }
.page-wrap { display: grid; place-items: center; background: var(--paper); border-radius: 12px; padding: 1rem; min-height: 0; }
.note-line { font-size: 1rem; color: var(--ink-soft); }
@media (max-width: 820px) { .compare { grid-template-columns: 1fr; } .page-pic { max-height: 360px; } }
.mix { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 1.2rem; align-items: center; margin-top: 1.6rem; }
.mix .side { display: grid; gap: .6rem; justify-items: center; text-align: center; }
.mix .side img { width: 100%; max-width: 220px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); }
.mix .plus { font-size: 2.2rem; font-weight: 700; justify-self: center; }
@media (max-width: 640px) { .mix { grid-template-columns: 1fr; } }
.advice { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 1.2rem; align-items: center; }
.advice img { border-radius: 14px; }

/* Steps: an easy read page */
.steps { border-top: 2px solid var(--ink); list-style: none; }
.step { display: grid; grid-template-columns: 3rem minmax(0, 150px) minmax(0, 1fr); gap: clamp(1rem, 3vw, 2.2rem); align-items: center; padding-block: 1.3rem; border-bottom: 1px solid var(--line); }
.num { width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; font-weight: 700; font-size: 1.1rem; background: var(--card); font-variant-numeric: tabular-nums; }
.step img { border-radius: var(--r); width: 100%; }
.step .txt { display: grid; gap: .3rem; min-width: 0; }
.step .txt p { color: var(--ink-soft); }
.tag { justify-self: start; font-size: .85rem; font-weight: 700; padding: .15rem .65rem; border-radius: 999px; background: var(--sage); }
@media (max-width: 560px) { .step { grid-template-columns: 2.6rem 92px minmax(0, 1fr); gap: .9rem; } }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 2.4rem; }
.feat { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 1.1rem; align-items: start; }
.feat img { border-radius: 14px; }
.feat .txt { display: grid; gap: .35rem; min-width: 0; }
.feat p { color: var(--ink-soft); font-size: 1.05rem; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }

/* Picture-and-sentence list (safety, who it is for) */
.plist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem 2.4rem; list-style: none; }
.plist li { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 1rem; align-items: center; font-size: 1.15rem; }
.plist img { border-radius: 12px; }
@media (max-width: 700px) { .plist { grid-template-columns: 1fr; } }
.small-note { margin-top: 1.8rem; color: var(--ink-soft); font-size: 1rem; }

/* Partner */
.partner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.partner img { width: 100%; max-width: 420px; justify-self: center; }
.partner .txt { display: grid; gap: 1rem; }
.partner .txt p { color: var(--ink-soft); font-size: 1.15rem; }
@media (max-width: 780px) { .partner { grid-template-columns: 1fr; } .partner img { max-width: 300px; } }

/* FAQ */
.faq { display: grid; gap: .7rem; max-width: 52rem; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 1.2rem; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.15rem; padding-block: 1rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 1.1rem; color: var(--ink-soft); }

/* Contact box */
.mailbox { display: grid; gap: .8rem; background: var(--paper); color: var(--ink); border-radius: var(--r); padding: 1.3rem; min-width: 0; }
.mailbox .addr { font-size: 1.2rem; font-weight: 700; overflow-wrap: anywhere; user-select: all; }
.mailbox .ok { font-size: .95rem; color: var(--ink-soft); min-height: 1.4em; }
.mailbox .btn { border-color: var(--ink); }

/* Easy read page */
.er-tools { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; justify-content: space-between; margin-bottom: 1.4rem; }
.er-player { max-width: 60rem; }
.easy-list { list-style: none; border-top: 2px solid var(--ink); max-width: 56rem; }
.easy-row { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: clamp(1rem, 4vw, 2.5rem); align-items: center; padding-block: 1.2rem; border-bottom: 1px solid var(--line); position: relative; }
.easy-row img { border-radius: var(--r); width: 100%; }
.easy-row .txt { display: grid; gap: .8rem; justify-items: start; padding-right: 3rem; }
.easy-row .words { font-size: clamp(1.35rem, 3vw, 1.75rem); font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.easy-row .pg { top: 1.2rem; right: 0; }
.easy-row.playing { background: color-mix(in srgb, var(--butter) 45%, transparent); }
.listen { font: inherit; font-weight: 700; font-size: 1rem; display: inline-flex; gap: .45rem; align-items: center; padding: .45rem .95rem; border-radius: 999px; border: 2px solid var(--ink); background: var(--card); color: var(--ink); cursor: pointer; }
.listen svg { width: 1em; height: 1em; }
@media (max-width: 520px) { .easy-row { grid-template-columns: 110px minmax(0, 1fr); } .easy-row .txt { padding-right: 2.4rem; } }

/* Footer */
footer.site { padding-block: 3rem; border-top: 1px solid var(--line); margin-top: 2rem; }
footer.site .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.5rem 3rem; align-items: center; }
footer.site img { width: 230px; }
footer.site .links { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: 1rem; font-weight: 700; }
footer.site .links a { color: var(--ink); }
footer.site p { color: var(--ink-soft); font-size: .95rem; margin-top: .6rem; }
@media (max-width: 700px) { footer.site .wrap { grid-template-columns: 1fr; } }

/* Looks page: step switched off, and the boil switch */
.choice.off { opacity: .45; }
.boil-row { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: center; }
.boil-row p { flex: 1 1 22rem; font-size: 1.05rem; }
.switch { font: inherit; font-weight: 700; font-size: 1.05rem; display: inline-flex; align-items: center; gap: .7rem; padding: .45rem 1rem .45rem .45rem; border-radius: 999px; border: 2px solid var(--ink); background: var(--card); color: var(--ink); cursor: pointer; min-width: 6.5rem; }
.switch .knob { width: 2.6rem; height: 1.5rem; border-radius: 999px; background: var(--line); position: relative; flex: none; }
.switch .knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: calc(1.5rem - 6px); height: calc(1.5rem - 6px); border-radius: 50%; background: var(--ink); transition: transform .2s; }
.switch[aria-checked="true"] .knob { background: var(--sage); }
.switch[aria-checked="true"] .knob::after { transform: translateX(1.1rem); }
.switch:disabled { cursor: default; }
.note-line:empty { display: none; }

/* Interactive page */
.ia-demo { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 860px) { .ia-demo { grid-template-columns: 1fr; } }
.ask-card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: clamp(1rem, 3vw, 1.6rem); display: grid; gap: 1.2rem; min-width: 0; }
.ask-top { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: 1.2rem; align-items: center; position: relative; padding-right: 2.5rem; }
.ask-top img { border-radius: 14px; }
.ask-top .pg { top: 0; right: 0; }
.ask-q { font-weight: 700; font-size: clamp(1.2rem, 2.4vw, 1.55rem); line-height: 1.3; }
.rate { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .6rem; }
.rbtn { font: inherit; font-weight: 700; font-size: 1.5rem; padding: .8rem 0; border-radius: 14px; border: 2px solid var(--ink); background: var(--card); color: var(--ink); cursor: pointer; }
.rbtn:hover { background: var(--paper); }
.rate-ends { display: flex; justify-content: space-between; gap: 1rem; font-size: 1rem; color: var(--ink-soft); font-weight: 700; margin-top: .5rem; }
.wiggle { animation: wiggle .5s ease-in-out; }
@keyframes wiggle { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-6deg) scale(1.06); } 75% { transform: rotate(6deg) scale(1.06); } }
.ask-done { display: grid; gap: .9rem; justify-items: start; }
.chose { font-size: 1.4rem; }
.ask-foot { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: center; border-top: 1px solid var(--line); padding-top: 1rem; }
.how-plays { list-style: none; display: grid; gap: 1.3rem; }
.how-plays li { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 1rem; align-items: start; }
.how-plays strong { font-size: 1.2rem; }
.how-plays p { font-size: 1.05rem; }
.types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
@media (max-width: 960px) { .types { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .types { grid-template-columns: 1fr; } }
.type { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem 1.2rem 1.3rem; display: grid; gap: .45rem; align-content: start; min-width: 0; }
.type p { color: var(--ink-soft); font-size: 1.02rem; }
.mini { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .4rem; }
.mini > span { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; font-size: .92rem; padding: .35rem .7rem; border-radius: 10px; border: 2px solid var(--ink); background: var(--card); }
.mini svg { width: 1.2em; height: 1.2em; }
.uses { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; }
.uses li { font-weight: 700; padding: .55rem 1rem; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }

/* Home: interactive strip */
.ia-strip { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.ia-strip .txt { display: grid; gap: 1rem; }
.ia-strip .ask-card { pointer-events: none; }
@media (max-width: 820px) { .ia-strip { grid-template-columns: 1fr; } }

/* keep buttons their natural height wherever they sit */
.actions { align-items: center; }
.mailbox { align-content: start; }

/* animated pictures (short looping clips made with the Easy Message app) */
.anim { display: block; width: 100%; max-width: 100%; aspect-ratio: 8 / 9; object-fit: cover; border-radius: var(--r); background: #fff; }
img.anim { object-fit: contain; }
video.anim::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }   /* (no play button on iPhones while a clip loads) */
.plist.big { gap: 1.6rem 2.4rem; }
.plist.big li { grid-template-columns: minmax(0, 150px) minmax(0, 1fr); font-size: 1.25rem; font-weight: 700; line-height: 1.35; }
@media (max-width: 520px) { .plist.big li { grid-template-columns: 110px minmax(0, 1fr); font-size: 1.1rem; } }
.pair > .mailbox { align-self: start; }

/* Home: the real message inside the page. Its player needs the 16:9 picture plus room for the dots and buttons. */
.msg-frame { position: relative; width: 100%; height: 0; padding-bottom: calc(56.25% + 150px); border-radius: 18px; overflow: hidden; background: #f5f6fa; border: 1px solid var(--line); box-shadow: 0 18px 40px -26px rgba(38,48,70,.5); }
.msg-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 520px) { .msg-frame { padding-bottom: calc(56.25% + 230px); } }
/* Home on a phone held upright: the first picture, which opens the full message */
.msg-poster { position: relative; display: block; border-radius: 18px; overflow: hidden; background: #f5f6fa; border: 1px solid var(--line); box-shadow: 0 18px 40px -26px rgba(38,48,70,.5); }
.msg-poster img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.msg-poster span { position: absolute; left: 52%; bottom: 7%; background: var(--ink); color: #fff; border-radius: 999px; padding: .65rem 1.4rem; font-size: 1.15rem; font-weight: 700; white-space: nowrap; box-shadow: 0 6px 24px rgba(40,50,80,.25); }
.msg-poster:focus-visible { outline: 4px solid #6b5fd6; outline-offset: 3px; }
@media (max-width: 360px) { .msg-poster span { font-size: 1rem; padding: .55rem 1.1rem; } }

/* Looks page: all the choices on one line, with dividers (wraps on narrow screens) */
.picker { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.pgroup { display: flex; align-items: center; gap: .5rem; padding: .35rem .35rem .35rem .9rem; background: var(--card); border: 1px solid var(--line); border-radius: 999px; }
.plabel { font-weight: 700; font-size: .9rem; color: var(--ink-soft); }
.picker .seg { gap: .3rem; flex-wrap: nowrap; align-items: center; }
.picker .seg button { font-size: .95rem; padding: .38rem .8rem; border-width: 2px; }
.picker .seg .more { font-size: .8rem; line-height: 1.15; padding: 0 0 0 .3rem; border: 0; max-width: 4.6rem; font-weight: 700; color: var(--ink-soft); }
.picker .switch { font-size: .95rem; padding: .3rem .85rem .3rem .35rem; min-width: 0; }
.pgroup.off { opacity: .45; }
.picker + .compare { margin-top: 1.2rem; }
.boil-about { margin-top: 1rem; max-width: 48rem; display: grid; gap: .3rem; color: var(--ink-soft); }
.boil-about strong { color: var(--ink); }
@media (max-width: 960px) and (min-width: 761px) {
  .pgroup:not(#boilChoice) .plabel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pgroup { padding: .35rem; }
  #boilChoice { padding-left: .8rem; }
  .picker .seg button { padding: .38rem .7rem; }
}
@media (max-width: 760px) {
  .picker { flex-direction: column; align-items: stretch; gap: .5rem; }
  .pgroup { justify-content: space-between; border-radius: 18px; }
  .picker .seg { flex-wrap: wrap; justify-content: flex-end; }
  .picker .seg .more { display: none; }
}
@media (max-width: 800px) { .picker .seg .more { display: none; } }

/* Looks page: "let each person choose" (a picture of the message's choice screen) */
.choose-card { text-align: center; }
.choose-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.choose-tile { display: grid; gap: .6rem; padding: .7rem; border: 2px solid var(--ink); border-radius: 18px; background: var(--card); }
.choose-tile img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: center 30%; border-radius: 12px; background: #fff; }
.choose-tile strong { font-size: 1.05rem; line-height: 1.25; }
.ia-strip .small-note { margin-top: 0; font-size: .95rem; }

/* Worked example pages (e.g. flu-jab-example.html) */
.we-txt { display: grid; gap: 1rem; align-content: start; min-width: 0; }
.we-txt p { color: var(--ink-soft); }
.we-changes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.we-change { grid-template-columns: 150px minmax(0, 1fr); align-items: start; gap: 1.1rem; }
.we-change img { width: 100%; aspect-ratio: 8 / 9; object-fit: cover; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.we-change h3 { margin-bottom: .35rem; }
.we-change p { color: var(--ink-soft); font-size: 1.05rem; }
.we-video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
@media (max-width: 860px) { .we-changes { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .we-change { grid-template-columns: 110px minmax(0, 1fr); } }
.we-vpick { display: flex; flex-wrap: wrap; gap: .8rem 1.6rem; margin-bottom: 1rem; }
.we-vbox { display: grid; justify-items: center; }
.we-video.tall { width: auto; max-width: 100%; height: min(80vh, 760px); aspect-ratio: 9 / 16; }

/* Home: "You don't need to read it" */
.reach { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.reach-stat { text-align: center; justify-items: center; }
.reach-num { font-size: clamp(3.4rem, 9vw, 5.5rem); font-weight: 700; line-height: 1; color: var(--accent); margin: 0; }
.reach-what { font-size: 1.35rem; font-weight: 700; margin: 0; }
.reach-src { font-size: .9rem; color: var(--ink-soft); margin: 0; }
.reach-txt { display: grid; gap: 1rem; min-width: 0; }
.reach-txt p { color: var(--ink-soft); font-size: 1.2rem; }
@media (max-width: 820px) { .reach { grid-template-columns: 1fr; } }
.we-change.wide { grid-column: 1 / -1; }
.reach-people { width: 100%; max-width: 280px; height: auto; display: block; margin: 0 auto .4rem; overflow: visible; }
.reach-people .wave-arm { transform-box: fill-box; transform-origin: 0% 100%; animation: wave 5s ease-in-out infinite; }   /* pivots at the shoulder */
@keyframes wave { 0%, 12% { transform: rotate(198deg) scale(0.6); } 24% { transform: rotate(0deg); } 32% { transform: rotate(18deg); } 40% { transform: rotate(-6deg); } 48% { transform: rotate(18deg); } 56% { transform: rotate(-6deg); } 64% { transform: rotate(0deg); } 78%, 100% { transform: rotate(198deg) scale(0.6); } }

/* Contact: the pilot offer "Start with one document" */
.offer { gap: 1.4rem; }
.offer-head { display: grid; gap: .5rem; }
.offer-head p { color: var(--ink-soft); font-size: 1.2rem; }
.offer-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
.offer-steps li { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: .8rem; align-items: start; }
.offer-steps h3 { font-size: 1.1rem; margin-bottom: .25rem; }
.offer-steps p { color: var(--ink-soft); font-size: 1rem; }
@media (max-width: 960px) { .offer-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .offer-steps { grid-template-columns: 1fr; } }
