/* Self-hosted subsets of OFL fonts, renamed; licenses in /fonts. */
@font-face {
  font-family: "WC Display";
  src: url("/fonts/wc-display.woff2") format("woff2");
  font-weight: 800 900;
  font-display: swap;
}
@font-face {
  font-family: "WC Hand";
  src: url("/fonts/wc-hand.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --green: #0b5a3c;
  --green-deep: #073d29;
  --green-ink: #e9f1e6;
  --green-soft: #bcd3c2;
  --kraft: #d4b07c;
  --ink: #22190e;
  --ink-soft: #4a3a24;
  --carbon: #1b2f6e;
  --red: #b3121f;
  --red-deep: #8d0e18;
  --rule: rgba(34, 25, 14, 0.38);
  --rule-light: rgba(233, 241, 230, 0.32);
  --font-print: "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  --font-display: "WC Display", var(--font-print);
  --font-hand: "WC Hand", "Kaiti SC", "STKaiti", "KaiTi", serif;
  --gutter: clamp(1rem, 4vw, 3rem);
  --slip-pad: clamp(1.25rem, 4vw, 3.5rem);
  --paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .36 0 0 0 0 .25 0 0 0 0 .12 0 0 0 .2 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  color-scheme: light;
  scrollbar-color: var(--kraft) var(--green-deep);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 1rem; }

body {
  margin: 0;
  background: var(--green);
  color: var(--green-ink);
  font: 400 1.0625rem/1.75 var(--font-print);
  caret-color: var(--red);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--red); color: #fff; }

a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

img, svg { display: block; }

[hidden] { display: none !important; }

.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;
}

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  padding: 0.6rem 1rem; background: var(--kraft); color: var(--ink); border-radius: 2px;
}
.skip:focus { top: 1rem; }

.wrap { max-width: 1180px; margin: 0 auto; padding: clamp(3.5rem, 8vw, 6.5rem) var(--gutter); }

/* Masthead */
.masthead {
  display: flex; align-items: center; gap: 1.5rem;
  max-width: calc(1180px + 2 * var(--gutter)); margin: 0 auto;
  padding: 1.1rem var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--kraft); }
.brand-mark { width: 2.25rem; height: 2.25rem; }
.brand-mark text { font-family: var(--font-print); }
.brand-zh { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; letter-spacing: 0.06em; color: var(--green-ink); }
.brand-en { font-size: 0.85rem; letter-spacing: 0.14em; color: var(--green-soft); }
.masthead-nav { margin-left: auto; }
.masthead-nav ul { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.masthead-nav a { text-decoration: none; color: var(--green-soft); padding: 0.4rem 0; }
.masthead-nav a:hover { color: var(--green-ink); text-decoration: underline; }
.masthead-cta {
  --cta: #e2c595; /* Lighter kraft: small text on the green field needs 4.5:1. */
  text-decoration: none; color: var(--cta); border: 1.5px solid var(--cta);
  padding: 0.45rem 1rem; border-radius: 2px; white-space: nowrap;
}
.masthead-cta:hover { background: var(--cta); color: var(--ink); }
/* Existing customers sign in to their console; kraft text on the green field, like the CTA. */
.masthead-login { color: #e2c595; text-decoration: none; padding: 0.4rem 0; white-space: nowrap; }
.masthead-login:hover { text-decoration: underline; text-underline-offset: 0.25em; }

/* Slips */
.slip {
  position: relative;
  max-width: 1180px; margin: 0 auto;
  padding: clamp(1.5rem, 3.5vw, 2.75rem) var(--slip-pad) 0;
  background: var(--paper), var(--kraft);
  color: var(--ink);
  border-radius: 3px;
  box-shadow: 0 22px 44px -22px rgba(0, 0, 0, 0.6), 0 3px 8px rgba(0, 0, 0, 0.22);
}
.slip::before {
  content: ""; position: absolute; left: 0; right: 0; top: -7px; height: 14px;
  background: radial-gradient(circle at 9px 7px, var(--green) 4px, transparent 4.6px) 0 0 / 18px 14px repeat-x;
}
.slip-head {
  display: grid; grid-template-columns: 1fr auto; gap: 1rem 2.5rem; align-items: start;
  padding-bottom: 1.4rem; border-bottom: 2px solid var(--ink);
}
.slip h1, .slip h2 {
  margin: 0; font-family: var(--font-display); font-weight: 900; color: var(--ink);
  letter-spacing: -0.02em; text-wrap: balance;
}
.slip h1 { font-size: clamp(2.4rem, 6.2vw, 5.25rem); line-height: 1.06; }
.slip-lede { grid-column: 1; margin: 0; max-width: 36em; color: var(--ink-soft); font-size: clamp(1rem, 1.4vw, 1.15rem); }
.slip-no {
  grid-column: 2; grid-row: 1 / 3; margin: 0;
  border: 2px solid var(--ink); padding: 0.55rem 0.95rem; text-align: right; min-width: 11.5rem;
}
.slip-no .label { display: block; font-size: 0.8rem; letter-spacing: 0.1em; color: var(--ink-soft); }
.stamp-num {
  display: block; font-size: 1.55rem; font-weight: 800; color: var(--red);
  font-variant-numeric: tabular-nums; letter-spacing: 0.04em; line-height: 1.3;
}
.slip-rows { margin: 0; }
.row {
  display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; align-items: baseline;
  padding: 0.75rem 0; border-bottom: 1px solid var(--rule);
}
.row dt { font-size: 0.85rem; letter-spacing: 0.12em; color: var(--ink-soft); }
.row dd { margin: 0; }
.hand { font-family: var(--font-hand); color: var(--carbon); font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.6; }
.row-reply dd { min-height: 5.6em; max-width: 34em; padding-right: min(12rem, 22vw); }
.demo-tag {
  display: inline-block; margin-left: 0.45em; padding: 0 0.35em;
  border: 1px solid currentColor; font-size: 0.7rem; letter-spacing: 0.1em; line-height: 1.5;
}
.is-printing .reply-print::after {
  content: ""; display: inline-block; width: 0.55em; height: 1em; margin-left: 0.1em;
  border-bottom: 2px solid var(--carbon); vertical-align: -0.1em;
}
.slip-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; padding: 1.1rem 0 1.6rem; min-height: 4.5rem; }
.resend {
  font: inherit; font-size: 0.95rem; color: var(--ink); background: transparent;
  border: 1.5px solid var(--ink); border-radius: 2px; padding: 0.55rem 1.15rem; min-height: 44px; cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.resend:hover { background: var(--ink); color: var(--kraft); }
.resend-note { margin: 0; max-width: 34em; color: var(--ink-soft); font-size: 0.95rem; }

.postmark {
  --rot: -14deg;
  position: absolute; right: clamp(1rem, 5vw, 4rem); bottom: clamp(7rem, 11vw, 8.5rem);
  width: clamp(7rem, 13vw, 10.5rem); height: auto;
  color: var(--red); opacity: 0.86; transform: rotate(var(--rot)); mix-blend-mode: multiply;
  pointer-events: none;
}
.postmark text { font-family: var(--font-print); fill: currentColor; font-weight: 700; }
.pm-ring { font-size: 13px; letter-spacing: 2px; }
.pm-date { font-size: 15px; font-variant-numeric: tabular-nums; }
.pm-dup { font-size: 28px; letter-spacing: 4px; }
.postmark-dup { --rot: 7deg; right: clamp(9rem, 24vw, 17rem); bottom: clamp(5.5rem, 8vw, 6.5rem); width: clamp(8rem, 14vw, 11rem); }
.postmark.is-waiting { opacity: 0; }
.postmark.is-landing { animation: stamp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes stamp {
  from { opacity: 0; transform: rotate(var(--rot)) scale(1.6); filter: blur(2px); }
  to { opacity: 0.86; transform: rotate(var(--rot)) scale(1); filter: blur(0); }
}

.stub {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.25rem;
  margin: 0 calc(-1 * var(--slip-pad)); padding: 1.15rem var(--slip-pad) 1.35rem;
  border-top: 2px dashed var(--ink); border-radius: 0 0 3px 3px;
  background: var(--red); color: #fff; text-decoration: none;
  transition: background-color 0.2s;
}
.stub:hover { background: var(--red-deep); }
.stub:focus-visible { outline-color: var(--ink); }
.stub-label { font-size: 0.85rem; letter-spacing: 0.22em; opacity: 0.9; }
.stub strong { font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 800; }
.stub-arrow { width: 1.75rem; height: auto; margin-left: auto; transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1); }
.stub:hover .stub-arrow { transform: translateX(0.35rem); }

/* Hero */
.hero { padding: clamp(1rem, 3vw, 2.25rem) var(--gutter) clamp(2.5rem, 6vw, 4.5rem); }

/* Fields */
.field h2 {
  margin: 0 0 1rem; font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1.9rem, 4vw, 3.25rem); line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance;
}
.field-lede { margin: 0 0 2.5rem; max-width: 40em; color: var(--green-soft); }
.field-kraft { background: var(--paper), var(--kraft); color: var(--ink); }
.field-kraft h2 { color: var(--ink); }
.field-kraft .field-lede { color: var(--ink-soft); }

.steps {
  list-style: none; counter-reset: step; margin: 0 0 2.75rem; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); column-gap: 2rem;
  border-top: 1px solid var(--rule-light);
}
.steps li { counter-increment: step; padding: 1.3rem 0; border-bottom: 1px solid var(--rule-light); }
.steps li::before { content: counter(step); display: block; font-family: var(--font-hand); font-size: 2.25rem; line-height: 1; color: var(--kraft); }
.steps strong { display: block; margin: 0.5rem 0 0.25rem; font-size: 1.15rem; }
.steps span { color: var(--green-soft); }

.promo-slip { margin: 0 0 2.5rem; max-width: 46rem; padding: 1.1rem 1.4rem; border: 1px dashed rgba(212, 176, 124, 0.55); border-radius: 3px; }
.promo-slip h3 { margin: 0 0 0.35rem; font-size: 1.15rem; color: var(--green-ink); }
.promo-slip p { margin: 0; color: var(--green-soft); }
.promo-slip ul { list-style: none; margin: 0.9rem 0; padding: 0; display: grid; gap: 0.55rem; }
.promo-slip li { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: baseline; }
.promo-slip a { color: #e2c595; font-weight: 700; text-underline-offset: 0.25em; }
.promo-slip li span { color: var(--green-soft); }
.promo-slip .promo-note { font-size: 0.85rem; }
.code-slip { margin: 0; max-width: 46rem; background: var(--green-deep); border: 1px solid rgba(212, 176, 124, 0.45); border-radius: 3px; }
.code-slip figcaption { padding: 0.5rem 1.1rem; border-bottom: 1px solid rgba(212, 176, 124, 0.35); font-size: 0.8rem; letter-spacing: 0.14em; color: var(--kraft); }
.code-slip pre { margin: 0; padding: 1.1rem 1.25rem; overflow-x: auto; font: 400 0.95rem/1.75 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--green-ink); }

.ledger { margin: 0; border-top: 2px solid var(--ink); }
.ledger > div { display: grid; grid-template-columns: minmax(9rem, 15rem) 1fr; gap: 0.4rem 2rem; padding: 1.2rem 0; border-bottom: 1px solid var(--rule); }
.ledger dt { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; }
.ledger dd { margin: 0; max-width: 42em; color: var(--ink-soft); }

.recipients { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); column-gap: 3rem; border-top: 1px solid var(--rule-light); }
.recipients li { display: grid; grid-template-columns: 1.6rem 1fr; gap: 0.2rem 0.9rem; padding: 1.2rem 0; border-bottom: 1px solid var(--rule-light); }
.recipients li::before { content: ""; grid-row: 1 / 3; width: 1.1rem; height: 1.1rem; margin-top: 0.5rem; border: 2px solid var(--kraft); }
.recipients.recipients-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.recipients h3 { margin: 0; font-size: 1.2rem; font-weight: 800; }
.recipients p { margin: 0; color: var(--green-soft); }

.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 1.15rem 2.75rem 1.15rem 0; font-weight: 700; font-size: 1.1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 0.3rem; top: 50%; width: 0.95rem; height: 0.95rem; transform: translateY(-50%);
  background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
}
.faq summary::after { transition: background-size 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
.faq details[open] summary::after { background-size: 100% 2px, 2px 0; transform: translateY(-50%) rotate(180deg); }
.faq details p { margin: 0 0 1.3rem; max-width: 44em; color: var(--ink-soft); }

/* Mailing slip (contact form) */
.mailing { max-width: 58rem; padding-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.mailing .slip-head { grid-template-columns: 1fr; }
.mailing h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); line-height: 1.1; }
.field-row {
  display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.35rem 1rem; align-items: baseline;
  margin: 0; padding: 0.85rem 0; border: 0; border-bottom: 1px solid var(--rule);
}
.field-row > label, .field-row > legend { font-size: 0.9rem; letter-spacing: 0.08em; color: var(--ink-soft); }
fieldset.field-row { display: block; }
fieldset.field-row > legend { float: left; width: 7.5rem; padding: 0.45rem 0 0; }
.choices { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-left: 8.5rem; }
.choice {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 40px;
  padding: 0.3rem 0.8rem; border: 1.5px solid rgba(34, 25, 14, 0.5); border-radius: 2px;
  color: var(--ink); font-size: 0.95rem; cursor: pointer;
}
.choice input { accent-color: var(--red); margin: 0; }
.choice:has(input:checked) { border-color: var(--red); color: var(--red-deep); }
.mailing input[type="text"], .mailing select, .mailing textarea {
  width: 100%; min-height: 44px; padding: 0.35rem 0.1rem;
  font: inherit; font-family: var(--font-hand); font-size: 1.2rem; color: var(--carbon);
  background: transparent; border: 0; border-bottom: 1.5px solid rgba(34, 25, 14, 0.55); border-radius: 0;
}
.mailing textarea { resize: vertical; line-height: 1.6; }
.mailing textarea::placeholder { color: rgba(74, 58, 36, 0.75); }
.mailing input:focus, .mailing select:focus, .mailing textarea:focus { border-bottom-color: var(--carbon); }
.mailing [aria-invalid="true"] { border-bottom-color: var(--red); }
.pair { display: flex; gap: 0.75rem; align-items: baseline; }
.mailing .pair select { width: auto; flex: 0 0 auto; font-family: var(--font-print); font-size: 1rem; color: var(--ink); }
.err { grid-column: 2; margin: 0.15rem 0 0; color: var(--red-deep); font-size: 0.9rem; }
.consent { grid-template-columns: auto 1fr; align-items: center; }
.consent input { width: 1.2rem; height: 1.2rem; margin: 0; accent-color: var(--red); }
.consent label { color: var(--ink); letter-spacing: 0; font-size: 0.95rem; }
.consent .err { grid-column: 1 / -1; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.mailing-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; padding-top: 1.6rem; }
.send {
  font: inherit; font-weight: 800; font-size: 1.1rem; color: #fff; background: var(--red);
  border: 0; border-radius: 2px; padding: 0.85rem 1.8rem; min-height: 48px; cursor: pointer;
  box-shadow: 0 8px 16px -8px rgba(141, 14, 24, 0.75); transition: background-color 0.2s;
}
.send:hover { background: var(--red-deep); }
.send:focus-visible { outline-color: var(--ink); }
.send:disabled { opacity: 0.6; cursor: progress; }
.form-status { margin: 0; max-width: 32em; color: var(--ink); }
.is-sent .form-status { font-family: var(--font-hand); font-size: 1.2rem; color: var(--carbon); }

/* Footer */
.colophon { background: var(--green-deep); color: var(--green-soft); font-size: 0.9rem; }
.colophon .wrap { padding-top: 2.25rem; padding-bottom: 2.25rem; display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; }
.colophon p { margin: 0; }

@media (max-width: 760px) {
  .masthead-nav { display: none; }
  .masthead-login { margin-left: auto; }
  .masthead-cta { margin-left: 0; }
  .brand-en { display: none; }
  .slip-head { grid-template-columns: 1fr; }
  .slip-no { grid-column: 1; grid-row: auto; justify-self: start; text-align: left; }
  .row, .field-row, .ledger > div { grid-template-columns: 1fr; gap: 0.15rem; }
  .row-reply dd { padding-right: 5.5rem; }
  .postmark { width: 6.25rem; right: 0.75rem; bottom: 7.5rem; }
  .postmark-dup { width: 7.5rem; right: 6rem; bottom: 5.25rem; }
  .err { grid-column: 1; }
  fieldset.field-row > legend { float: none; width: auto; padding: 0 0 0.4rem; }
  .choices { margin-left: 0; }
  .consent { grid-template-columns: auto 1fr; gap: 0.75rem; }
}

/* Motion around the receipt. Hidden states apply only under .motion (set by app.js without reduced motion). */
:root { --ease: cubic-bezier(0.16, 1, 0.3, 1); }

/* Headings are rolled on left to right like ink; ledes follow. */
.motion .field h2 { clip-path: inset(-0.2em calc(100% - 1px) -0.2em 0); transition: clip-path 0.9s var(--ease); }
.motion .field h2.is-in { clip-path: inset(-0.2em -0.2em -0.2em 0); }
.motion .field-lede { opacity: 0; transform: translateY(12px); transition: opacity 0.6s var(--ease) 0.15s, transform 0.7s var(--ease) 0.15s; }
.motion .field-lede.is-in { opacity: 1; transform: none; }

/* Ruled rows are written in: each rule draws left to right, then its line of text arrives. */
.motion .steps li, .motion .ledger > div, .motion .recipients li, .motion .faq details { position: relative; border-bottom-color: transparent; }
.motion .steps > li, .motion .ledger > div, .motion .recipients > li, .motion .faq > details {
  opacity: 0; transform: translateY(10px); transition: opacity 0.55s var(--ease) var(--d, 0s), transform 0.65s var(--ease) var(--d, 0s);
}
.motion .steps li::after, .motion .ledger > div::after, .motion .recipients li::after, .motion .faq details::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--rule-light);
  transform: scaleX(0); transform-origin: left; transition: transform 0.8s var(--ease) var(--d, 0s);
}
.motion .ledger > div::after, .motion .faq details::after { background: var(--rule); }
.motion .steps.is-in > *, .motion .ledger.is-in > *, .motion .recipients.is-in > *, .motion .faq.is-in > * { opacity: 1; transform: none; }
.motion .steps.is-in > *::after, .motion .ledger.is-in > *::after, .motion .recipients.is-in > *::after, .motion .faq.is-in > *::after { transform: scaleX(1); }
.motion .steps li::before { clip-path: inset(0 100% 0 0); transition: clip-path 0.6s var(--ease) calc(var(--d, 0s) + 0.2s); }
.motion .steps.is-in li::before { clip-path: inset(0 -0.2em 0 0); }
.motion .is-in > :nth-child(2) { --d: 0.08s; }
.motion .is-in > :nth-child(3) { --d: 0.16s; }
.motion .is-in > :nth-child(4) { --d: 0.24s; }
.motion .is-in > :nth-child(5) { --d: 0.32s; }
.motion .is-in > :nth-child(6) { --d: 0.4s; }
.motion .is-in > :nth-child(n+7) { --d: 0.48s; }

/* Slips feed out top to bottom; the margin of the clip keeps their shadow and perforation. Hidden states keep a
   1px edge: a fully clipped element has no visible area and IntersectionObserver would never report it. */
.motion .mailing, .motion .code-slip, .motion .promo-slip {
  clip-path: inset(-80px -80px calc(100% - 1px) -80px); transform: translateY(-10px);
  transition: clip-path 1s var(--ease), transform 1s var(--ease);
}
.motion .mailing.is-in, .motion .code-slip.is-in, .motion .promo-slip.is-in { clip-path: inset(-80px); transform: none; }

/* The postmark lands with weight: the receipt sinks a little under it. */
.receipt.is-stamped { animation: thud 0.34s var(--ease) 0.16s; }
@keyframes thud { 35% { transform: translateY(3px) scale(0.997); } }

/* A sent mailing slip is stamped. */
.mailing::after {
  content: "已寄出"; position: absolute; right: clamp(1rem, 5vw, 3.5rem); bottom: clamp(1.25rem, 3vw, 2rem);
  width: 7.5rem; height: 7.5rem; display: grid; place-items: center; border: 4px double var(--red); border-radius: 50%;
  color: var(--red); font: 900 1.35rem/1 var(--font-display); letter-spacing: 0.15em;
  transform: rotate(-12deg); opacity: 0; mix-blend-mode: multiply; pointer-events: none;
}
.mailing.is-sent::after, .is-sent .mailing::after { opacity: 0.85; animation: stamp-sent 0.6s var(--ease) both; }
@keyframes stamp-sent { from { opacity: 0; transform: rotate(-12deg) scale(1.6); filter: blur(2px); } }

/* FAQ answers open and close smoothly where the browser can interpolate to auto. */
.faq { interpolate-size: allow-keywords; }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size 0.4s var(--ease), content-visibility 0.4s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }

/* Pressed controls give a little. */
.choice { transition: border-color 0.2s, color 0.2s, background-color 0.2s, transform 0.15s var(--ease); }
.choice:has(input:checked) { background: rgba(179, 18, 31, 0.06); }
.choice:active, .resend:active { transform: scale(0.97); }
.send { transition: background-color 0.2s, transform 0.15s var(--ease), box-shadow 0.15s var(--ease); }
.send:active:not(:disabled) { transform: translateY(1px); box-shadow: 0 4px 8px -6px rgba(141, 14, 24, 0.75); }
.stub:active .stub-arrow { transform: translateX(0.7rem); }
.mailing input[type="text"], .mailing select, .mailing textarea { transition: border-color 0.2s; }

@media print { .motion * { opacity: 1 !important; transform: none !important; clip-path: none !important; } }

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