/* Texo lander. Brand tokens come from tokens.css (copied from brand/ by tool/build_legal.mjs).
   Layout: paper ground, one column of calm sections; the hero pairs the copy with a real flyer and
   Texo's reply, joined by the coral thread (over the paper, under the reply). */
:root {
  /* The flyer is a photo of real paper, so it stays paper in both themes. */
  --sheet: #FDFCF8;
  --sheet-ink: #2B2B2B;
  --sheet-soft: #6B6A66;
  --sheet-rule: #CFCBC0;
  --shadow-sheet: 0 18px 40px -18px rgba(27,42,71,0.35), 0 2px 6px rgba(27,42,71,0.08);
  --font-flyer: "Courier Prime", "Courier New", monospace;
  --font-hand: "Patrick Hand", "Comic Sans MS", cursive;
  --measure: 34rem;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
[hidden] { display: none !important; }
body {
  background: var(--background); color: var(--ink);
  font-family: var(--font-sans); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.wrap { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: 20px; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; text-wrap: balance; margin: 0; }
p, li, td, dd { text-wrap: pretty; }
body { font-optical-sizing: auto; font-kerning: normal; font-variant-numeric: proportional-nums; }
.todo .due, .titem .meta, .dlist .d, .saveitem .meta { font-variant-numeric: tabular-nums; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--thread); outline-offset: 3px; border-radius: 6px; }

/* Brand SVG colors (logo + woven icons) */
.i-ink-f { fill: var(--ink); } .i-ink-s { stroke: var(--ink); }
.i-th-f { fill: var(--thread); } .i-th-s { stroke: var(--thread); }
.icon { width: 28px; height: 28px; flex: none; }

/* Header */
.site-head { padding-block: 20px; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark { display: block; width: 104px; height: auto; }
.logo-link { display: block; border-radius: 6px; }
.head-link { font-weight: 700; font-size: 0.9375rem; }
.head-nav { display: flex; gap: 22px; }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 2px;
  min-height: 54px; padding: 0 26px; border-radius: var(--radius-md);
  background: var(--primary); color: var(--on-primary);
  font: 700 1.0625rem/1 var(--font-sans); text-decoration: none; border: 0; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-lifted); }
.btn.sm { min-height: 40px; padding: 0 18px; font-size: 0.9375rem; border-radius: var(--radius-sm); }
.btn.finish { border-radius: 999px; }
.btn.finish .dot { color: var(--thread); }
.thread-link { position: relative; font-weight: 700; text-decoration: none; padding-bottom: 4px; display: inline-block; }
.thread-link::after {
  content: ""; position: absolute; left: 0; right: 12px; bottom: 0; height: 2px;
  background: linear-gradient(90deg, var(--ink) 0 38%, transparent 38% 46%, var(--ink) 46% 100%);
}
.thread-link::before {
  content: ""; position: absolute; right: 2px; bottom: -2px; width: 6px; height: 6px; border-radius: 50%; background: var(--thread);
}

/* Hero */
.hero { padding-block: 32px 72px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.25rem, 10.5vw, 5rem); letter-spacing: -0.04em; line-height: 1; }
.hero h1 .period { color: var(--thread); }
.hero .sub-lead { display: block; color: var(--ink); font-weight: 700; margin-bottom: 4px; }
.hero .sub { margin-top: 24px; font-size: clamp(1.125rem, 1.6vw, 1.25rem); line-height: 1.55; color: var(--ink-soft); max-width: 38rem; }
.hero .ctas { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 20px 28px; align-items: center; }
.hero .fine { margin-top: 16px; font-size: 0.875rem; color: var(--ink-soft); }

/* Hero composition: flyer, thread, reply */
.scene { position: relative; min-height: 600px; }
.flyer {
  position: absolute; left: 0; top: 0; width: 64%; z-index: 1;
  background: var(--sheet); color: var(--sheet-ink); font-family: var(--font-flyer);
  padding: 26px 24px 22px; border-radius: 4px; box-shadow: var(--shadow-sheet);
  transform: rotate(-3deg); font-size: 0.8125rem; line-height: 1.45;
}
.flyer .school { font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sheet-soft); }
.flyer h3 { font-family: var(--font-flyer); font-weight: 700; font-size: 1.375rem; letter-spacing: 0; margin-top: 6px; line-height: 1.15; }
.flyer dl { margin: 14px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; }
.flyer dt { font-weight: 700; }
.flyer dd { margin: 0; }
.flyer .small { margin-top: 12px; font-size: 0.625rem; color: var(--sheet-soft); line-height: 1.35; }
.flyer .hand { font-family: var(--font-hand); font-size: 1.0625rem; color: #2347A8; transform: rotate(2deg); margin-top: 10px; }
.flyer .tear { margin-top: 16px; border-top: 2px dashed var(--sheet-rule); padding-top: 10px; font-size: 0.6875rem; }
.flyer .tear .line { margin-top: 12px; border-bottom: 1px solid var(--sheet-rule); height: 14px; }
.flyer .tear .lbl { font-size: 0.5625rem; color: var(--sheet-soft); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 3px; }

.thread-svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; overflow: visible; }
.thread-svg path { fill: none; stroke: var(--thread); stroke-width: 7; stroke-linecap: butt; vector-effect: non-scaling-stroke; }

.reply {
  position: absolute; right: 0; top: 150px; width: 62%; z-index: 3;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lifted); padding: 20px; font-size: 0.9375rem; line-height: 1.5;
}
.reply-head { display: flex; align-items: center; gap: 10px; }
.reply-head .mark { width: 30px; height: 30px; }
.reply-head .who { font-weight: 800; }
.reply-head .when { color: var(--ink-soft); font-size: 0.8125rem; margin-left: auto; }
.reply .lead { margin-top: 12px; font-weight: 700; }
.facts { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; color: var(--ink-soft); }
.steps-label { margin-top: 16px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.todo { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.todo li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; }
.todo .box { width: 16px; height: 16px; border: 2px solid var(--ink-faint); border-radius: 5px; transform: translateY(3px); }
.todo .due { font-size: 0.8125rem; color: var(--ink-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.todo .due.soon { color: var(--thread-strong); font-weight: 700; }
.todo .from { display: block; font-size: 0.75rem; color: var(--ink-soft); }
.offer { margin-top: 14px; padding: 10px 12px; background: var(--surface-muted); border-radius: var(--radius-sm); font-size: 0.875rem; }
.reply-foot { margin-top: 14px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.reply-foot .hint { font-size: 0.8125rem; color: var(--ink-soft); }
.sample-tag { position: absolute; left: 4px; bottom: 6px; font-size: 0.75rem; color: var(--ink-soft); z-index: 3; }

/* Sections */
section.block { padding-block: 72px; }
.eyebrow { font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.block h2 { font-size: clamp(1.875rem, 4.2vw, 3rem); letter-spacing: -0.03em; margin-top: 12px; max-width: 22ch; }
.block .intro { margin-top: 16px; line-height: 1.6; color: var(--ink-soft); font-size: 1.125rem; max-width: var(--measure); }
.rule { border: 0; border-top: 1px solid var(--border); margin: 0; }

/* What lands on you */
.lands { margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.pile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.pile h3 { font-size: 1.25rem; display: flex; align-items: center; gap: 12px; }
.pile ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; }
.pile li { padding: 12px 0; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; }
.pile li span:last-child { color: var(--ink-soft); font-size: 0.9375rem; text-align: right; }

/* How it works */
.how { margin-top: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; counter-reset: step; }
.how li { list-style: none; counter-increment: step; }
.how ol { display: contents; }
.how .n { display: inline-flex; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--ink); align-items: center; justify-content: center; font-weight: 800; }
.how h3 { font-size: 1.5rem; letter-spacing: -0.02em; margin-top: 16px; }
.how p { margin-top: 8px; color: var(--ink-soft); }

/* In charge */
.charge { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.rules { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; }
.rules li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 16px; padding: 20px 0; border-top: 1px solid var(--border); }
.rules li:last-child { border-bottom: 1px solid var(--border); }
.rules strong { display: block; font-size: 1.125rem; }
.rules span { color: var(--ink-soft); }

/* Today preview */
.today-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.phone {
  justify-self: center; width: min(100%, 340px); background: var(--background);
  border: 10px solid var(--surface-muted); border-radius: 40px; box-shadow: var(--shadow-lifted); padding: 22px 18px 26px;
}
.phone .title { font-size: 1.625rem; font-weight: 800; }
.phone .date { color: var(--ink-soft); font-size: 0.875rem; }
.tsec { margin-top: 18px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.tsec.late { color: var(--thread-strong); }
.titem { margin-top: 8px; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 12px; align-items: center; background: var(--surface); border-radius: var(--radius-sm); padding: 12px; box-shadow: var(--shadow-soft); font-size: 0.9375rem; }
.titem .icon { width: 24px; height: 24px; }
.titem .meta { font-size: 0.8125rem; color: var(--ink-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.titem .name { font-weight: 700; line-height: 1.3; }
.badge-ready { display: inline-block; font-size: 0.6875rem; font-weight: 700; color: var(--positive); background: var(--positive-soft); padding: 2px 8px; border-radius: 999px; margin-top: 2px; }

/* Coming next */
.next { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; }
.next li { border: 1.5px dashed var(--border); border-radius: 999px; padding: 8px 16px; font-weight: 600; color: var(--ink-soft); font-size: 0.9375rem; }

/* Weave story */
.story { text-align: left; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.story-mark { width: min(100%, 300px); justify-self: center; }
.story p { margin-top: 16px; color: var(--ink-soft); font-size: 1.125rem; max-width: var(--measure); }
.story em { color: var(--ink); font-style: italic; }

/* Final CTA */
.final { background: var(--primary); color: var(--on-primary); border-radius: var(--radius-xl); padding: 56px 40px; display: grid; gap: 24px; justify-items: start; }
.final h2 { color: var(--on-primary); max-width: 34rem; }
.final .btn { background: var(--on-primary); color: var(--primary); }
.final p { opacity: 0.8; }

footer { padding-block: 40px 56px; color: var(--ink-soft); font-size: 0.875rem; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
footer nav { display: flex; gap: 20px; }
footer .fm { display: flex; align-items: center; gap: 10px; }
footer .fm svg { width: 26px; height: 26px; }

.trust { margin: 24px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.trust li { display: flex; align-items: center; gap: 8px; font-size: 0.9375rem; font-weight: 700; color: var(--ink-soft); }
.trust .icon { width: 22px; height: 22px; }
.bubble { margin: 0; padding: 12px 16px; border-radius: 20px; font-size: 0.9375rem; line-height: 1.45; }
.bubble.me { justify-self: end; background: var(--primary); color: var(--on-primary); border-bottom-right-radius: 6px; font-weight: 600; }
.bubble.texo { background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lifted); border-bottom-left-radius: 6px; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; }
.bubble.texo svg { width: 26px; height: 26px; }
.bubble.texo.plain { display: block; box-shadow: none; background: var(--surface-muted); border: 0; }
/* Variant B */
.hero-b { grid-template-columns: minmax(0, 1fr) !important; gap: 48px !important; }
.b-copy { max-width: 48rem; }
.trio { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.trio-thread { z-index: 0; }
.tcard { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-soft); display: grid; gap: 12px; align-content: start; }
.tcard.over { z-index: 1; }
.tcard.under { z-index: 3; box-shadow: var(--shadow-lifted); }
.tword { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.miniflyer { position: relative; background: var(--sheet); color: var(--sheet-ink); font-family: var(--font-flyer); font-size: 0.8125rem; line-height: 1.45; padding: 16px; display: grid; gap: 2px; border-radius: 4px; transform: rotate(-1.5deg); box-shadow: var(--shadow-sheet); margin: 6px; }
.miniflyer b { font-size: 0.9375rem; }
.miniflyer .tiny { font-size: 0.6875rem; color: var(--sheet-soft); margin-top: 6px; }
.corner { position: absolute; width: 16px; height: 16px; border-color: var(--thread); border-style: solid; border-width: 0; }
.corner.tl { top: -6px; left: -6px; border-top-width: 3px; border-left-width: 3px; }
.corner.tr { top: -6px; right: -6px; border-top-width: 3px; border-right-width: 3px; }
.corner.bl { bottom: -6px; left: -6px; border-bottom-width: 3px; border-left-width: 3px; }
.corner.br { bottom: -6px; right: -6px; border-bottom-width: 3px; border-right-width: 3px; }
.saveitem { background: var(--surface-muted); border-radius: var(--radius-sm); padding: 10px 12px; display: grid; }
.saveitem .name { font-weight: 700; }
.saveitem .meta { font-size: 0.8125rem; color: var(--ink-soft); }
.tcard .btn.sm { justify-self: start; }

.scene-wide { max-width: 760px; margin-top: 40px; }

@media (max-width: 900px) {
  .trio { grid-template-columns: minmax(0, 1fr); }
  .trio-thread { display: none; }
  .hero .wrap, .charge, .today-wrap, .story { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .scene { min-height: 0; display: grid; }
  .flyer, .reply { position: relative; left: auto; right: auto; top: auto; width: 88%; }
  .reply { justify-self: end; margin-top: -48px; }
  .sample-tag { position: static; margin-top: 12px; }
  .how { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 640px) {
  .lands { grid-template-columns: minmax(0, 1fr); }
  .flyer, .reply { width: 100%; }
  .flyer { transform: rotate(-1.5deg); }
  .reply { margin-top: -32px; }
  .final { padding: 40px 24px; }
  section.block { padding-block: 56px; }
  .story-mark { width: 180px; justify-self: start; }
}

.final-block { padding-top: 24px; }
footer .contact { flex-basis: 100%; margin: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--surface); color: var(--ink); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700; }
.skip:focus { top: 12px; }

/* Motion: subtle, CSS only, and only when the reader hasn't asked for less.
   The thread draws in like the logo; sections and cards rise in as they scroll into view
   (scroll-driven where supported; elsewhere everything simply shows). */
@media (prefers-reduced-motion: no-preference) {
  @keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  @keyframes glow { 0%, 100% { background: transparent; } 50% { background: var(--thread-soft); } }
  .thread-svg path { stroke-dasharray: 1; animation: draw 1.6s cubic-bezier(.6,0,.3,1) .5s both; }
  .hero .tcard { animation: rise .7s ease both; }
  .hero .tcard:nth-child(3) { animation-delay: .25s; }
  .hero .tcard:nth-child(4) { animation-delay: .5s; }
}

/* Hero film: a calm loop of the week's paper, woven together. Sits in the paper space behind the copy. */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; top: 0; right: 0; left: 36%; height: min(600px, 44vw); z-index: -1; pointer-events: none;
  background: url(/hero-poster.jpg) right top / cover no-repeat; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; object-position: right top; display: block; }
.hero-media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--background) 0, transparent 30%),
              linear-gradient(0deg, var(--background) 0, transparent 30%); }
.hero .trio { margin-top: min(72px, 4vw); }
.hero .b-copy { max-width: 36rem; }
.hero .sub { max-width: 34rem; }
@media (max-width: 900px) {
  .hero .b-copy { max-width: none; }
  .hero-media { position: relative; left: auto; height: auto; aspect-ratio: 16 / 9; margin: 0 0 8px; }
  .hero-media::after { background: linear-gradient(0deg, var(--background) 0, transparent 35%); }
}
@media (prefers-reduced-motion: reduce) { .hero-media video { display: none; } }

/* Say card: Texo "types", then answers. */
.typing { display: none; }
.flyer { transition: transform .4s ease, box-shadow .4s ease; }
.flyer:hover { transform: rotate(-1deg) translateY(-6px); box-shadow: var(--shadow-lifted), var(--shadow-sheet); }
@media (prefers-reduced-motion: no-preference) {
  .hero h1 .w { display: inline-block; animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
  .hero h1 .w:nth-child(2) { animation-delay: .12s; }
  .hero h1 .w:nth-child(3) { animation-delay: .24s; }
  .hero .sub, .hero .ctas, .hero .trust { animation: rise .7s ease .35s both; }
  @keyframes typing-life { 0%, 99% { opacity: 1; } 100% { opacity: 0; height: 0; padding: 0; margin: 0; } }
  @keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
  .typing { display: inline-flex; gap: 5px; justify-self: start; padding: 12px 16px; margin: 0; border-radius: 20px; background: var(--surface-muted);
    animation: typing-life 0s linear 2.6s forwards; }
  .typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-soft); animation: blink 1s infinite; }
  .typing span:nth-child(2) { animation-delay: .15s; } .typing span:nth-child(3) { animation-delay: .3s; }
  .answer { animation: rise .5s ease 2.6s both; }
}

/* Say: the app on a phone */
.sym { position: absolute; }
.ask-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.ask-steps { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.ask-steps li { padding-left: 18px; border-left: 3px solid var(--border); color: var(--ink-soft); transition: border-color .4s ease, color .4s ease; }
.ask-steps li strong { color: var(--ink); }
.ask-steps li.now { border-color: var(--thread); color: var(--ink); }
.iphone { justify-self: center; width: min(100%, 330px); aspect-ratio: 9 / 19.5; border-radius: 52px; padding: 11px;
  background: linear-gradient(145deg, #2a3550, #10172a 60%); box-shadow: var(--shadow-lifted), 0 40px 80px -30px rgba(27,42,71,.45), inset 0 0 0 2px rgba(255,255,255,.08); }
.iphone-screen { position: relative; height: 100%; border-radius: 42px; overflow: hidden; background: var(--background); display: flex; flex-direction: column; }
.iphone-island { position: absolute; top: 10px; left: 50%; width: 96px; height: 28px; margin-left: -48px; border-radius: 20px; background: #0b0f1a; z-index: 2; }
.ph-status { display: flex; justify-content: space-between; padding: 14px 26px 0; font: 700 0.8125rem/1 var(--font-sans); color: var(--ink); }
.ph-bars { width: 26px; height: 11px; border-radius: 3px; border: 1.5px solid var(--ink); position: relative; }
.ph-bars::after { content: ""; position: absolute; inset: 1.5px 6px 1.5px 1.5px; background: var(--ink); border-radius: 1px; }
.ph-head { display: flex; align-items: center; gap: 8px; padding: 22px 18px 10px; border-bottom: 1px solid var(--border); font-weight: 800; }
.ph-mark { width: 22px; height: 22px; }
.ph-house { margin-left: auto; font-size: 0.75rem; font-weight: 700; color: var(--ink-soft); background: var(--surface-muted); padding: 4px 10px; border-radius: 999px; }
.ph-chat { flex: 1; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 12px 12px 8px; font-size: 0.8125rem; line-height: 1.4; }
.ph-step { max-width: 86%; }
.ph-me { align-self: flex-end; background: var(--primary); color: var(--on-primary); padding: 9px 12px; border-radius: 16px 16px 4px 16px; font-weight: 600; }
.ph-texo { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); padding: 9px 12px; border-radius: 16px 16px 16px 4px; }
.ph-photo { padding: 6px; }
.ph-flyer { display: grid; gap: 4px; width: 128px; padding: 10px; background: var(--sheet); color: var(--sheet-ink); border-radius: 6px; font: 700 0.6875rem/1.2 var(--font-flyer); transform: rotate(-2deg); }
.ph-flyer i { display: block; height: 4px; border-radius: 2px; background: var(--sheet-rule); }
.ph-flyer i.s { width: 60%; }
.ph-card { align-self: flex-start; display: grid; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 10px; width: 86%; }
.ph-item { display: grid; background: var(--surface-muted); border-radius: 10px; padding: 7px 10px; font-weight: 700; }
.ph-item small { font-weight: 400; color: var(--ink-soft); }
.ph-save { justify-self: start; background: var(--primary); color: var(--on-primary); font-weight: 700; padding: 6px 14px; border-radius: 10px; transition: transform .15s ease; }
.ph-saved { align-self: center; font-size: 0.75rem; font-weight: 700; color: var(--positive); background: var(--positive-soft); padding: 4px 12px; border-radius: 999px; }
.ph-day { align-self: center; font-size: 0.6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.ph-typing { align-self: flex-start; display: none; gap: 4px; padding: 11px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px 16px 16px 4px; }
.ph-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-soft); animation: blink 1s infinite; }
.ph-typing span:nth-child(2) { animation-delay: .15s; } .ph-typing span:nth-child(3) { animation-delay: .3s; }
.ph-src { display: inline-block; margin-top: 6px; font-size: 0.6875rem; font-weight: 700; color: var(--positive); background: var(--positive-soft); padding: 2px 8px; border-radius: 999px; }
.ph-texo .ph-src { display: table; }
.ph-input { margin: 4px 12px 22px; padding: 11px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--ink-soft); font-size: 0.8125rem; }
/* Animated by site.js: steps appear in order, the typing dots show only while Texo "thinks". */
.js .ph-step { display: none; }
.js .ph-step.on { display: block; animation: rise .45s cubic-bezier(.2,.7,.2,1) both; }
.js .ph-card.on { display: grid; }
.js .ph-typing.on { display: inline-flex; }
.ph-save.tap { transform: scale(.92); }
@media (max-width: 900px) { .ask-wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; } }

/* Coming next: connections */
.connect { margin-top: 36px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: center; }
.connect-hub { width: 88px; height: 88px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-soft); display: grid; place-items: center; }
.connect-hub svg { width: 52px; height: 52px; }
.connect-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.connect-list .digest-tile { border-color: color-mix(in srgb, var(--thread) 45%, var(--border)); }
.connect-list li { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 4px 12px; align-items: start; padding: 18px; border: 1.5px dashed var(--border); border-radius: var(--radius-lg); background: color-mix(in srgb, var(--surface) 60%, transparent); color: var(--ink-soft); font-size: 0.875rem; }
.connect-list .cmark { width: 26px; height: 26px; }
.connect-list strong { display: block; color: var(--ink); font-size: 1rem; }
.connect-list em { grid-column: 2; justify-self: start; font-style: normal; font-size: 0.6875rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
@media (max-width: 900px) { .connect { grid-template-columns: minmax(0, 1fr); } .connect-list { grid-template-columns: minmax(0, 1fr); } }

/* Comparison */
.compare-wrap { margin-top: 40px; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; font-size: 0.9375rem; min-width: 680px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 16px 18px; border-top: 1px solid var(--border); }
.compare thead th { border-top: 0; font-weight: 800; font-size: 1rem; }
.compare tbody th { font-weight: 700; width: 18%; }
.compare td { color: var(--ink-soft); }
.compare .us { background: var(--primary-soft); color: var(--ink); font-weight: 700; }
.compare thead .us { color: var(--ink); }
.cmarks { display: flex; gap: 10px; margin-top: 8px; }
.cmark { width: 20px; height: 20px; fill: var(--ink-soft); }
.cnote { display: block; margin-top: 4px; font-size: 0.75rem; font-weight: 600; color: var(--ink-soft); }
.compare thead .us::after { content: "."; color: var(--thread); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.will { margin-top: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.will-col { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px 28px; }
.will-col h3 { font-size: 1.25rem; }
.will-col ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.will-col li { position: relative; padding-left: 26px; }
.will-col li::before { content: ""; position: absolute; left: 2px; top: 0.45em; width: 12px; height: 7px; border-left: 2px solid var(--positive); border-bottom: 2px solid var(--positive); transform: rotate(-45deg); }
.wont li::before { width: 12px; height: 2px; border: 0; background: var(--thread-strong); top: 0.75em; transform: none; }
@media (max-width: 640px) { .will { grid-template-columns: minmax(0, 1fr); } }

/* Scroll progress: the coral thread grows along the top as you read. */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; background: var(--thread); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); z-index: 20; pointer-events: none; }

/* Motion driven by site.js. Without JS (or with reduced motion) everything simply shows. */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv-x { opacity: 0; transform: translateX(-24px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--d, 0s); }
.js .rv-x.in { opacity: 1; transform: none; }
.js .draw path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: none; transition: stroke-dashoffset 1.6s cubic-bezier(.6,0,.3,1) .2s; }
.js .draw.in path { stroke-dashoffset: 0; }
.hero-media { will-change: transform; }

/* Sample: Texo reads the flyer. */
.scan-bar { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--thread); box-shadow: 0 0 18px 4px color-mix(in srgb, var(--thread) 45%, transparent); opacity: 0; pointer-events: none; }
.reading .scan-bar { animation: scan 1.5s ease-in-out both; }
@keyframes scan { 0% { top: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.js .scene .reply { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.js .scene.done .reply { opacity: 1; transform: none; }
.js .scene .todo li, .js .scene .facts li, .js .scene .offer { opacity: 0; transform: translateX(-8px); transition: opacity .4s ease, transform .4s ease; transition-delay: var(--d, 0s); }
.js .scene.done .todo li, .js .scene.done .facts li, .js .scene.done .offer { opacity: 1; transform: none; }
.scene.done .todo li:nth-child(3) { animation: glow 1.4s ease 1.6s; border-radius: 6px; }
.replay { position: absolute; right: 0; bottom: -56px; z-index: 4; }
@media (max-width: 900px) { .replay { position: static; justify-self: start; margin-top: 16px; } }

/* Legal pages (privacy.html, terms.html) */
.legal { max-width: 68ch; margin-inline: auto; padding: 24px 20px 72px; }
.legal h1 { font-size: clamp(2rem, 6vw, 2.75rem); }
.legal h2 { font-size: 1.5rem; margin-top: 48px; }
.legal h3 { font-size: 1.1875rem; margin-top: 28px; }
.legal p, .legal ul, .legal ol, .legal table, .legal blockquote { margin: 16px 0 0; }
.legal ul, .legal ol { padding-left: 1.4em; }
.legal li + li { margin-top: 6px; }
.legal blockquote { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 24px; }
.legal blockquote > :first-child { margin-top: 0; }
.legal hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }
.legal a { color: var(--primary); }
.legal .table-wrap { overflow-x: auto; margin-top: 16px; }
.legal table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-top: 1px solid var(--border); }
.legal th { font-weight: 800; }

@media (prefers-reduced-motion: reduce) {
  .js .ph-step { display: block; } .js .ph-card { display: grid; } .js .ph-typing { display: none !important; }
  .js .rv, .js .rv-x, .js .scene .reply, .js .scene .todo li, .js .scene .facts li, .js .scene .offer { opacity: 1 !important; transform: none !important; }
  .js .draw path { stroke-dashoffset: 0; }
  .progress { display: none; }
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .btn:hover { transform: none; }
}
