/* ==========================================================================
   taxcount.co — design system (DRAFT)
   Mobile-first: base styles = 390px phone. Grow only with min-width queries.
   Every color / size must come from a token below (docs/02-DESIGN-SYSTEM.md).
   ========================================================================== */

:root {
  /* color — taxcount CI */
  --paper: #F7F4F0;
  --paper-2: #EFEAE3;
  --white: #FFFFFF;
  --ink: #1F1D1B;
  --ink-2: #363636;
  --muted: #6E675F;
  --line: #E4DDD2;
  --red: #B92025;
  --red-deep: #9A1A1F;
  --yellow: #FFBC00;
  --green: #007426;
  --blue: #2025B9;
  --line-green: #06C755; /* LINE brand, used ONLY on the LINE icon/button */

  /* type */
  --font: "Kanit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-display: clamp(2.5rem, 1.6rem + 4.4vw, 5.5rem);
  --fs-h1: clamp(2.125rem, 1.5rem + 3vw, 4rem);
  --fs-h2: clamp(1.75rem, 1.3rem + 2.1vw, 3rem);
  --fs-h3: clamp(1.25rem, 1.1rem + .6vw, 1.625rem);
  --fs-lead: clamp(1.125rem, 1.05rem + .4vw, 1.375rem);
  --fs-body: 1.0625rem;
  --fs-small: .875rem;
  --fs-eyebrow: .8125rem;

  /* space (8pt) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
  --gutter: 20px;
  --section: var(--s-8);

  /* shape */
  --r-1: 12px; --r-2: 20px; --r-3: 32px; --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(31,29,27,.06), 0 4px 16px rgba(31,29,27,.06);
  --shadow-2: 0 2px 4px rgba(31,29,27,.06), 0 18px 48px rgba(31,29,27,.12);

  /* motion */
  --ease: cubic-bezier(.2,.8,.2,1);
  --dur: 700ms;

  --header-h: 60px;
  --bottom-bar-h: 72px;
}

@media (min-width: 900px) {
  :root { --gutter: 32px; --section: var(--s-10); --header-h: 72px; --fs-body: 1.125rem; }
}

@view-transition { navigation: auto; }

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  font-family: var(--font); font-weight: 300; font-size: var(--fs-body); line-height: 1.65;
  color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  padding-bottom: var(--bottom-bar-h); /* room for the mobile CTA bar */
}
@media (min-width: 900px) { body { padding-bottom: 0; } }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
/* no text-wrap: balance/pretty — with Thai .nw spans + <wbr> it crashed Chromium during the webfont swap (found 2026-09-27) */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.18; letter-spacing: -.01em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; }
strong, b { font-weight: 600; }
.nw { white-space: nowrap; } /* keep a Thai phrase on one line */
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: var(--white); padding: 8px 14px; border-radius: var(--r-1); z-index: 100; }
.skip:focus { top: 8px; }

/* ---------- layout ---------- */
/* grid/flex children may shrink below their content width (prevents mobile overflow) */
.grid > *, .split > *, .story > *, .hero__grid > *, .founder > *, .bento > *, .footer-grid > * { min-width: 0; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 820px; }
.section { padding-block: var(--section); }
.section--tight { padding-block: var(--s-8); }
.section--alt { background: var(--paper-2); }
.section--dark { background: var(--ink); color: var(--paper); }
.section--dark .muted, .section--dark .lead { color: #BDB5AB; }
.stack > * + * { margin-top: var(--s-4); }
.stack-lg > * + * { margin-top: var(--s-6); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.grid { display: grid; gap: var(--s-4); }
@media (min-width: 600px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
  .grid { gap: var(--s-5); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: center; }
  .split--reverse > :first-child { order: 2; }
}

/* ---------- type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--red);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.display { font-size: var(--fs-display); line-height: 1.1; }
.lead { font-size: var(--fs-lead); color: var(--ink-2); max-width: 38ch; line-height: 1.6; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-small); }
.num { font-variant-numeric: tabular-nums; font-weight: 700; }
.money { color: var(--green); }
.red { color: var(--red); }
.content a, a.inline { color: var(--blue); text-underline-offset: 3px; }

/* yellow highlighter — draws in when the element enters the viewport */
.hl {
  background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 92%, transparent 92%) no-repeat 0 0 / 0% 100%;
  padding-inline: .06em; transition: background-size .9s var(--ease) .25s;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.is-in .hl, .hl.is-in { background-size: 100% 100%; }

/* red strike over a word (e.g. "ความกลัว") */
.strike { position: relative; display: inline-block; }
.strike svg { position: absolute; left: -4%; top: 42%; width: 108%; height: .5em; overflow: visible; pointer-events: none; }
.strike path { fill: none; stroke: var(--red); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset .7s var(--ease) .6s; }
.is-in .strike path, .strike.is-in path { stroke-dashoffset: 0; }

/* placeholder for unconfirmed facts — never ship to live */
.tbc {
  background: repeating-linear-gradient(-45deg, #FFF4D1 0 6px, #FFEAB0 6px 12px);
  outline: 1px dashed #D9A200; border-radius: 6px; padding: 0 .3em; font-style: normal;
}
.tbc::after { white-space: nowrap; content: " รอยืนยัน"; font-size: max(.4em, 11px); vertical-align: middle; font-weight: 600; color: #8A6A00; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--red); --fg: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 52px; padding: 0 var(--s-5); border-radius: var(--r-pill); border: 0;
  background: var(--bg); color: var(--fg); font-weight: 500; font-size: 1.0625rem; text-decoration: none;
  cursor: pointer; transition: transform .25s var(--ease), background-color .25s, box-shadow .25s;
  box-shadow: 0 6px 18px rgba(185,32,37,.25);
}
.btn:hover { background: var(--red-deep); }
.btn:active { transform: scale(.97); }
.btn--ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--light { --bg: var(--paper); --fg: var(--ink); box-shadow: none; }
.btn--light:hover { background: var(--white); }
.btn--line { --bg: var(--ink); --fg: var(--white); box-shadow: none; }
.btn--line:hover { background: #000; }
.btn--line .ico-line { color: var(--line-green); }
.btn--block { width: 100%; }
.btn--sm { min-height: 44px; padding: 0 var(--s-4); font-size: 1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.btn-row > .btn { flex: 1 1 100%; }
@media (min-width: 600px) { .btn-row > .btn { flex: 0 0 auto; } }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--red); text-decoration: none; }
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- pills / badges ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill); background: var(--white); border: 1px solid var(--line); font-size: var(--fs-small); font-weight: 400; }
.pill--red { background: var(--red); color: var(--white); border-color: var(--red); }
.pill--dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(0,116,38,.15); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__mark { width: 30px; height: 30px; border-radius: 8px; background: var(--red); color: var(--white); display: grid; place-items: center; font-weight: 700; font-size: 15px; letter-spacing: -.02em; }
.logo__word { font-weight: 700; font-size: 1.375rem; color: var(--ink-2); letter-spacing: -.02em; }
.nav { display: none; }
.nav a { text-decoration: none; font-weight: 400; font-size: 1rem; padding: 8px 12px; border-radius: var(--r-pill); transition: background .2s; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--paper-2); }
.header-cta { display: none; }
.menu-btn { width: 44px; height: 44px; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; border-radius: var(--r-1); }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .3s var(--ease); }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
@media (min-width: 900px) {
  .nav { display: flex; gap: 2px; }
  .header-cta { display: inline-flex; }
  .menu-btn { display: none; }
}
/* mobile drawer */
.drawer { position: fixed; inset: var(--header-h) 0 0 0; background: var(--paper); z-index: 49; padding: var(--s-5) var(--gutter); overflow-y: auto; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .3s var(--ease); }
.drawer.is-open { transform: none; opacity: 1; visibility: visible; }
.drawer a { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 1.25rem; font-weight: 500; }
.drawer .sub a { font-size: 1.0625rem; font-weight: 300; padding-left: var(--s-4); }
.drawer .btn { margin-top: var(--s-5); }

/* ---------- mobile bottom CTA bar ---------- */
.cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 48; height: var(--bottom-bar-h);
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--white) 88%, transparent);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 8px;
}
.cta-bar a { display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: var(--r-1); text-decoration: none; font-weight: 500; font-size: .9375rem; background: var(--paper-2); }
.cta-bar a.primary { background: var(--red); color: var(--white); }
.cta-bar .ico-line { color: var(--line-green); }
@media (min-width: 900px) { .cta-bar { display: none; } }

/* ---------- hero ---------- */
.hero { padding-top: var(--s-6); padding-bottom: var(--s-8); overflow: clip; }
.hero__grid { display: grid; gap: var(--s-6); }
.hero h1 { font-size: var(--fs-display); line-height: 1.12; }
.hero .lead { margin-top: var(--s-4); }
.hero .btn-row { margin-top: var(--s-6); }
.hero__media { position: relative; border-radius: var(--r-3); overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper-2); box-shadow: var(--shadow-2); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero--page { padding-top: var(--s-7); padding-bottom: var(--s-7); }
.hero--page h1 { font-size: var(--fs-h1); }
@media (min-width: 900px) {
  .hero { padding-top: var(--s-8); padding-bottom: var(--s-9); }
  .hero__grid { grid-template-columns: 1.1fr .9fr; align-items: center; gap: var(--s-8); }
}
.float-card {
  position: absolute; background: var(--white); border-radius: var(--r-2); padding: 12px 16px; box-shadow: var(--shadow-2);
  display: flex; align-items: center; gap: 10px; font-size: var(--fs-small); line-height: 1.35;
}
.float-card b { display: block; font-size: 1rem; }
.float-card .dot { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #E6F2EA; color: var(--green); flex: none; }

/* ---------- breadcrumb ---------- */
.crumbs { font-size: var(--fs-small); color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs li { list-style: none; display: inline-flex; gap: 6px; }
.crumbs li + li::before { content: "/"; opacity: .5; }
.crumbs ol { display: contents; }
ol.crumbs, .crumbs ol { padding: 0; margin: 0; list-style: none; }

/* ---------- cards ---------- */
.card { background: var(--white); border-radius: var(--r-2); padding: var(--s-5); box-shadow: var(--shadow-1); border: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.card--flat { box-shadow: none; }
.card h3 + p { margin-top: var(--s-2); }
a.card { display: block; text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
@media (hover: hover) { a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); } }
.icon-tile { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--paper-2); color: var(--red); margin-bottom: var(--s-4); }
.icon-tile svg { width: 26px; height: 26px; }

/* bento */
.bento { display: grid; gap: var(--s-3); grid-template-columns: 1fr; }
.bento > * { border-radius: var(--r-3); padding: var(--s-6) var(--s-5); position: relative; overflow: hidden; min-height: 220px; display: flex; flex-direction: column; text-decoration: none; transition: transform .45s var(--ease); background: var(--white); }
.bento .tile--dark { background: var(--ink); color: var(--paper); }
.bento .tile--red { background: var(--red); color: var(--white); }
.bento .tile--paper { background: var(--paper-2); }
.bento .tile__foot { margin-top: auto; padding-top: var(--s-5); display: flex; justify-content: space-between; align-items: end; gap: var(--s-3); }
.bento .price { font-size: var(--fs-small); opacity: .8; }
.bento .price b { font-size: 1.5rem; display: block; opacity: 1; }
@media (hover: hover) { .bento > a:hover { transform: scale(1.015); } }
@media (min-width: 600px) { .bento { grid-template-columns: repeat(2, 1fr); } .bento .span-2 { grid-column: span 2; } }
@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(6, 1fr); gap: var(--s-4); }
  .bento > * { grid-column: span 2; min-height: 300px; padding: var(--s-7) var(--s-6); }
  .bento .span-3 { grid-column: span 3; } .bento .span-4 { grid-column: span 4; }
  .bento .row-2 { grid-row: span 2; }
}

/* checklist */
.checks { list-style: none; padding: 0; display: grid; gap: var(--s-3); }
.checks li { position: relative; padding-left: 36px; min-height: 26px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: #E6F2EA url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23007426' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }
.checks--x li::before { background: #F6E4E4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B92025' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* steps */
.steps { list-style: none; padding: 0; display: grid; gap: var(--s-4); counter-reset: step; }
.steps > li { counter-increment: step; background: var(--white); border-radius: var(--r-2); padding: var(--s-5); box-shadow: var(--shadow-1); }
.steps > li::before { content: counter(step, decimal-leading-zero); display: block; font-weight: 700; font-size: 2.25rem; line-height: 1; color: var(--red); margin-bottom: var(--s-3); font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .steps--row { grid-template-columns: repeat(var(--n, 3), 1fr); } }

/* sticky story (Apple-style: media pinned, text scrolls) */
.story { display: grid; gap: var(--s-6); }
.story__media { position: sticky; top: calc(var(--header-h) + 12px); z-index: 1; border-radius: var(--r-3); overflow: hidden; aspect-ratio: 16 / 11; background: var(--ink); box-shadow: var(--shadow-2); }
.story__media > * { position: absolute; inset: 0; opacity: 0; transition: opacity .6s var(--ease), transform .8s var(--ease); transform: scale(1.04); }
.story__media > .is-active { opacity: 1; transform: none; }
.story__steps { display: grid; gap: 40vh; padding-block: 10vh 30vh; position: relative; z-index: 2; }
.story__step { background: var(--white); border-radius: var(--r-2); padding: var(--s-5); box-shadow: var(--shadow-2); opacity: .45; transition: opacity .4s; }
.story__step.is-active { opacity: 1; }
@media (min-width: 900px) {
  .story { grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: start; }
  .story__media { aspect-ratio: 4 / 5; top: calc(var(--header-h) + 48px); }
  .story__steps { gap: 50vh; padding-block: 20vh 40vh; }
  .story__step { background: transparent; box-shadow: none; padding: 0; }
}

/* stats */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-5) var(--s-4); }
.stat b { display: block; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.5rem); line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat > span { display: block; margin-top: 6px; font-size: var(--fs-small); color: var(--muted); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }

/* horizontal snap carousel (reviews, tools) */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: var(--s-4); overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) var(--s-5); margin-inline: calc(var(--gutter) * -1); scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: center; }
@media (min-width: 900px) { .rail { grid-auto-columns: calc((100% - 2 * var(--s-4)) / 3); margin-inline: 0; padding-inline: 0; } .rail > * { scroll-snap-align: start; } }
.quote { display: flex; flex-direction: column; gap: var(--s-4); height: 100%; }
.quote blockquote { font-size: 1.125rem; font-weight: 400; line-height: 1.6; }
.quote figcaption { margin-top: auto; display: flex; align-items: center; gap: var(--s-3); font-size: var(--fs-small); }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--paper-2); display: grid; place-items: center; font-weight: 600; color: var(--red); flex: none; }
.stars { color: var(--yellow); letter-spacing: 2px; }

/* pricing */
.price-card { display: flex; flex-direction: column; gap: var(--s-4); }
.price-card .amount { font-size: 2.5rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.price-card .amount small { font-size: 1rem; font-weight: 300; color: var(--muted); }
.price-card--featured { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.price-card--featured .muted { color: #BDB5AB; }
.price-card .btn { margin-top: auto; }

/* FAQ */
.faq { display: grid; gap: var(--s-3); }
.faq details { background: var(--white); border-radius: var(--r-2); border: 1px solid var(--line); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 18px var(--s-5); font-weight: 500; font-size: 1.0625rem; display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 300; color: var(--red); transition: transform .3s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 var(--s-5) var(--s-5); color: var(--ink-2); }
.faq details::details-content { block-size: 0; overflow: clip; transition: block-size .35s var(--ease), content-visibility .35s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
@supports (interpolate-size: allow-keywords) { :root { interpolate-size: allow-keywords; } }

/* forms */
.field { display: grid; gap: 6px; }
.field label { font-weight: 500; font-size: .9375rem; }
.input, .select, .textarea { width: 100%; min-height: 52px; padding: 12px 16px; border-radius: var(--r-1); border: 1.5px solid var(--line); background: var(--white); font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
.textarea { min-height: 120px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(31,29,27,.08); }
.choice { display: grid; gap: var(--s-2); }
.choice label { display: flex; align-items: center; gap: var(--s-3); padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--r-1); background: var(--white); cursor: pointer; transition: border-color .2s, background .2s; min-height: 56px; }
.choice input { accent-color: var(--red); width: 20px; height: 20px; }
.choice label:has(input:checked) { border-color: var(--red); background: #FCF3F3; }

/* founder */
.founder { display: grid; gap: var(--s-5); align-items: center; }
.founder__photo { aspect-ratio: 1; border-radius: var(--r-3); background: linear-gradient(160deg, var(--paper-2), #E2D9CD); display: grid; place-items: center; overflow: hidden; position: relative; }
@media (min-width: 900px) { .founder { grid-template-columns: .8fr 1.2fr; gap: var(--s-8); } }

/* media placeholder (video / real photo not shot yet) */
.ph { position: relative; display: grid; place-items: center; text-align: center; gap: 8px; color: var(--muted); font-size: var(--fs-small); background: repeating-linear-gradient(45deg, var(--paper-2) 0 14px, #EAE3DA 14px 28px); border-radius: var(--r-3); padding: var(--s-5); }
.ph b { color: var(--ink); font-weight: 600; font-size: 1rem; }
.play { width: 64px; height: 64px; border-radius: 50%; background: var(--red); display: grid; place-items: center; color: var(--white); box-shadow: 0 10px 30px rgba(185,32,37,.35); }

/* CTA band */
.cta-band { border-radius: var(--r-3); background: var(--ink); color: var(--paper); padding: var(--s-7) var(--s-5); position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; width: 420px; height: 420px; right: -140px; bottom: -220px; border-radius: 50%; background: radial-gradient(closest-side, rgba(185,32,37,.55), transparent); pointer-events: none; }
.cta-band .lead { color: #D8D0C6; }
@media (min-width: 900px) { .cta-band { padding: var(--s-9) var(--s-8); } }

/* table → cards on mobile */
.table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.table th, .table td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-weight: 600; }
@media (max-width: 599px) {
  .table--stack thead { display: none; }
  .table--stack tr { display: block; background: var(--white); border-radius: var(--r-2); padding: var(--s-3) var(--s-4); margin-bottom: var(--s-3); box-shadow: var(--shadow-1); }
  .table--stack td { display: flex; justify-content: space-between; gap: var(--s-4); border: 0; padding: 8px 0; }
  .table--stack td::before { content: attr(data-label); color: var(--muted); font-size: var(--fs-small); }
}

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #CFC7BC; padding-block: var(--s-8) var(--s-6); font-size: .9375rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer .logo__word { color: var(--paper); }
.footer-grid { display: grid; gap: var(--s-6); grid-template-columns: 1fr 1fr; }
.footer-grid .brand { grid-column: 1 / -1; }
.footer-grid .fh { color: var(--paper); font-size: 1rem; font-weight: 600; margin-bottom: var(--s-3); }
.footer-grid ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer-bottom { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid #3A3632; display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); font-size: var(--fs-small); color: #9B9389; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr repeat(4, 1fr); } .footer-grid .brand { grid-column: auto; } }

/* ---------- scroll reveal (progressive) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(28px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
  .reveal.is-in { opacity: 1; transform: none; }
  /* above-the-fold: transform-only, pure CSS, never hides text (protects LCP) */
  .rise { animation: tc-rise .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 80ms); }
  @keyframes tc-rise { from { transform: translateY(22px); } to { transform: none; } }
  .zoom-in { transform: scale(.92); opacity: .6; transition: transform 1s var(--ease), opacity 1s var(--ease); }
  .zoom-in.is-in { transform: none; opacity: 1; }
  /* pure-CSS parallax where supported */
  @supports (animation-timeline: view()) {
    .parallax { animation: tc-parallax linear both; animation-timeline: view(); }
    @keyframes tc-parallax { from { transform: translateY(6%) scale(1.06); } to { transform: translateY(-6%) scale(1.06); } }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hl { background-size: 100% 100%; } .strike path { stroke-dashoffset: 0; }
}

/* draft-only: label under each page on the canvas */
.draft-note { position: fixed; right: 12px; top: calc(var(--header-h) + 8px); z-index: 60; background: var(--yellow); color: var(--ink); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: var(--r-pill); box-shadow: var(--shadow-1); }

/* static mode (canvas thumbnails): no motion, everything visible */
.is-static .reveal, .is-static .zoom-in, .is-static .rise { opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; }
.is-static .hl { background-size: 100% 100% !important; transition: none !important; }
.is-static .strike path { stroke-dashoffset: 0 !important; transition: none !important; }

/* ---------- PDPA cookie consent (bottom sheet, not a blocking popup) ---------- */
.consent {
  position: fixed; z-index: 70; left: 12px; right: 12px; bottom: calc(var(--bottom-bar-h) + 10px);
  background: var(--white); color: var(--ink); border-radius: var(--r-2);
  box-shadow: 0 0 0 1px var(--line), 0 18px 48px rgba(31,29,27,.18);
  padding: var(--s-5) var(--s-5) var(--s-4); max-width: 560px;
  transform: translateY(16px); opacity: 0; transition: transform .45s var(--ease), opacity .45s var(--ease);
}
.consent.is-open { transform: none; opacity: 1; }
.consent h2 { font-size: 1.0625rem; font-weight: 600; }
.consent p { font-size: .9375rem; color: var(--ink-2); margin-top: 6px; line-height: 1.6; }
.consent p a { color: var(--blue); text-underline-offset: 3px; }
.consent__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: var(--s-4); }
.consent__btns button { min-height: 46px; border-radius: 10px; font: inherit; font-weight: 500; font-size: .9375rem; cursor: pointer; border: 1.5px solid var(--ink); background: var(--white); color: var(--ink); }
.consent__btns button.all { background: var(--ink); color: var(--paper); }
.consent__btns .more { grid-column: 1 / -1; border: 0; min-height: 40px; text-decoration: underline; text-underline-offset: 4px; background: transparent; }
.consent__opts { display: none; margin-top: var(--s-4); border-top: 1px dashed var(--line); }
.consent.is-detail .consent__opts { display: block; }
.consent__opt { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.consent__opt b { font-weight: 500; font-size: .9375rem; }
.consent__opt small { grid-column: 1; color: var(--muted); font-size: .8125rem; line-height: 1.5; }
.consent__opt .sw { grid-row: 1 / span 2; grid-column: 2; }
.sw { position: relative; width: 48px; height: 28px; }
.sw input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.sw span { position: absolute; inset: 0; border-radius: 999px; background: var(--line); transition: background .25s; }
.sw span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .25s var(--ease); }
.sw input:checked + span { background: var(--green); }
.sw input:checked + span::after { transform: translateX(20px); }
.sw input:disabled { cursor: not-allowed; }
.sw input:disabled + span { opacity: .55; }
.sw input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.consent__save { display: none; width: 100%; margin-top: var(--s-4); min-height: 46px; border-radius: 10px; border: 0; background: var(--ink); color: var(--paper); font: inherit; font-weight: 500; cursor: pointer; }
.consent.is-detail .consent__save { display: block; }
.consent.is-detail .consent__btns { display: none; }
.cookie-link { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 900px) { .consent { left: 24px; right: auto; bottom: 24px; } }
.is-static .consent { display: none !important; }
/* ==========================================================================
   taxcount DESIGN LANGUAGE — shared layer (docs/07-DESIGN-LANGUAGE.md)
   Load AFTER tc.css (tokens/base) and phone.css (device, chat, มิวทัก, live-app).
   Base = Apple-like product page (direction A) + signature moves from B, C, D and v2.
   ========================================================================== */

/* ==========================================================================
   Direction A: สว่าง สะอาด น่าเชื่อถือ
   Product-page rhythm: one idea per section, a very large short headline,
   one line of copy, then one big visual. Light backgrounds only.
   ========================================================================== */
:root {
  --grey: color-mix(in srgb, var(--ink) 4%, white);   /* very light grey tint */
  --stage: #F3EEE8;                                    /* matches the portrait backdrop */
  --tint: color-mix(in srgb, var(--yellow) 13%, white);
  --hair: color-mix(in srgb, var(--ink) 12%, transparent);
  --wide: 1240px;
}
body { background: var(--white); }
.wrap { max-width: var(--wide); }

/* header: quiet, white */
.site-header { background: color-mix(in srgb, var(--white) 86%, transparent); border-bottom: 1px solid var(--hair); }
.nav a { border-radius: 0; font-size: .9375rem; color: var(--ink-2); background: none !important; }
.nav a:hover { color: var(--red); }
.drawer { background: var(--white); }
.btn { border-radius: var(--r-pill); box-shadow: none; }
.btn--ghost { box-shadow: inset 0 0 0 1px var(--red); color: var(--red); }
.btn--ghost:hover { background: var(--red); color: var(--white); }

/* a product-page "more" link */
.go { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; color: var(--red); text-decoration: none; font-weight: 400; font-size: 1.0625rem; }
.go::after { content: "\203A"; font-size: 1.35em; line-height: 1; transform: translateY(-1px); transition: transform .3s var(--ease); }
.go:hover { text-decoration: underline; text-underline-offset: 4px; }
.go:hover::after { transform: translate(3px, -1px); }

/* section anatomy */
.blk { padding-block: 72px 0; text-align: center; overflow: clip; }
.blk--pad { padding-bottom: 72px; }
.hd { font-size: clamp(2.375rem, 1.35rem + 5.2vw, 5rem); font-weight: 600; line-height: 1.14; letter-spacing: -.025em; }
.sub { margin: 16px auto 0; max-width: 30em; font-size: clamp(1.125rem, 1rem + .7vw, 1.625rem); font-weight: 300; line-height: 1.5; color: var(--ink-2); }
.links { margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 28px; }
.visual { margin-top: 48px; }
@media (min-width: 900px) {
  .blk { padding-top: 136px; }
  .blk--pad { padding-bottom: 136px; }
  .visual { margin-top: 72px; }
}

/* scroll-driven growth on the big visuals only */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    html:not(.is-static) .grow { animation: grow linear both; animation-timeline: view(); animation-range: entry 0% cover 42%; }
  }
}
@keyframes grow { from { transform: scale(.9); opacity: .4; } to { transform: none; opacity: 1; } }

/* ---------- 1. hero: portrait on a stage ---------- */
.hero-a { background: var(--stage); padding-top: 44px; text-align: center; overflow: clip; }
.hero-a .by { font-size: 1.0625rem; font-weight: 500; color: var(--red); }
.hero-a .hd { margin-top: 10px; }
.hero-a .btn-row { justify-content: center; margin-top: 28px; }
.hero-a .btn { min-width: 200px; }
.stage { position: relative; margin: 40px auto 0; width: min(100%, 620px); }
.stage img { width: 100%; height: auto; aspect-ratio: 1289 / 1600;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 24%, #000 76%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 24%, #000 76%, transparent 100%); }
.stage figcaption { position: absolute; left: 0; right: 0; bottom: 20px; font-size: .875rem; color: var(--ink-2); }
.stage figcaption b { display: block; font-weight: 500; font-size: 1rem; color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .stage img { animation: settle 1.8s var(--ease) both; }
}
@keyframes settle { from { opacity: 0; transform: translateY(40px) scale(.97); } to { opacity: 1; transform: none; } }
@media (min-width: 900px) {
  .hero-a { padding-top: 88px; }
  .stage { margin-top: 56px; width: 600px; }
}

/* ---------- 2. principles: two giant words ---------- */
.pair { display: grid; gap: 12px; text-align: left; }
.pair > div { background: var(--grey); border-radius: 28px; padding: 36px 28px 40px; min-height: 300px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.pair .big { font-size: clamp(3rem, 2rem + 5vw, 6.25rem); font-weight: 600; line-height: 1.05; letter-spacing: -.035em; }
.pair .big.red { color: var(--red); }
.pair p { font-size: 1.125rem; color: var(--ink-2); max-width: 22em; }
.pair small { display: block; font-size: .9375rem; color: var(--muted); margin-bottom: 8px; }
.after { margin-top: 36px; font-size: clamp(1.25rem, 1.05rem + 1vw, 2rem); font-weight: 500; }
.after span { color: var(--red); }
@media (min-width: 700px) {
  .pair { grid-template-columns: 1fr 1fr; gap: 20px; }
  .pair > div { padding: 48px 44px 52px; min-height: 420px; }
}

/* ---------- 3. month: the Payslip as a product shot ---------- */
.month { background: var(--paper); }
.slip { margin-inline: auto; width: min(100%, 460px); background: var(--white); border-radius: 18px; text-align: left;
  box-shadow: 0 1px 1px rgba(31,29,27,.04), 0 30px 80px -20px rgba(31,29,27,.18); padding: 28px 24px 24px; }
.slip__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.slip__top b { font-size: 1.25rem; font-weight: 600; display: block; }
.slip__top span { font-size: .875rem; color: var(--muted); }
.slip__tag { font-size: .75rem; color: var(--muted); border: 1px solid var(--hair); border-radius: 6px; padding: 2px 8px; white-space: nowrap; }
.slip ul { list-style: none; padding: 0; margin-top: 20px; border-top: 1px solid var(--hair); }
.slip li { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--hair); }
.slip li svg { color: var(--green); transform: translateY(3px); }
.slip li b { font-weight: 500; }
.slip li small { display: block; font-size: .8125rem; color: var(--muted); }
.slip li em { font-style: normal; font-variant-numeric: tabular-nums; }
.slip__sum { display: flex; justify-content: space-between; align-items: baseline; padding-top: 18px; }
.slip__sum span { font-weight: 500; }
.slip__sum b { font-size: 1.75rem; font-weight: 600; color: var(--green); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.slip__pay { margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: color-mix(in srgb, var(--green) 7%, white); color: var(--green); font-size: .875rem; }
.flow { list-style: none; padding: 0; margin: 56px auto 0; max-width: 1000px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; text-align: left; }
.flow li { border-top: 1px solid var(--hair); padding-top: 14px; font-size: 1rem; color: var(--ink-2); line-height: 1.5; }
.flow li b { display: block; font-weight: 500; color: var(--ink); font-size: .875rem; margin-bottom: 2px; }
.flow li.pay b { color: var(--green); }
@media (min-width: 900px) {
  .slip { padding: 36px 36px 32px; }
  .flow { grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 80px; }
}

/* ---------- 4. studio: device mock (the one yellow-tinted area) ---------- */
.studio { background: var(--tint); }
.studio .hd { font-weight: 600; }
.device { margin-inline: auto; width: min(100%, 980px); border-radius: 16px; background: var(--white); overflow: hidden; text-align: left;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent), 0 40px 90px -30px rgba(31,29,27,.22); }
.device__bar { height: 34px; display: flex; align-items: center; gap: 6px; padding-inline: 14px; background: var(--grey); border-bottom: 1px solid var(--hair); }
.device__bar i { width: 9px; height: 9px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 16%, white); }
.device__bar span { margin-left: auto; margin-right: auto; font-size: .75rem; color: var(--muted); transform: translateX(-20px); }
.app { padding: 18px 16px 22px; }
.app__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.app__top b { font-size: 1.125rem; font-weight: 600; }
.app__new { font-size: .8125rem; background: var(--red); color: var(--white); border-radius: 8px; padding: 6px 12px; white-space: nowrap; }
.app__tabs { display: flex; gap: 18px; margin-top: 14px; border-bottom: 1px solid var(--hair); font-size: .875rem; color: var(--muted); overflow: hidden; white-space: nowrap; }
.app__tabs span { padding-bottom: 8px; }
.app__tabs .on { color: var(--ink); box-shadow: inset 0 -2px 0 var(--red); font-weight: 500; }
.app table { width: 100%; border-collapse: collapse; font-size: .875rem; margin-top: 4px; }
.app td { padding: 12px 0; border-bottom: 1px solid var(--hair); vertical-align: baseline; }
.app td:last-child { text-align: right; }
.app .no { color: var(--muted); font-variant-numeric: tabular-nums; width: 38%; }
.app .amt { font-variant-numeric: tabular-nums; }
.app .st { display: none; }
.app .st span { font-size: .75rem; padding: 2px 8px; border-radius: 6px; background: var(--grey); color: var(--ink-2); }
.app .st span.ok { background: color-mix(in srgb, var(--green) 9%, white); color: var(--green); }
.app .who { display: none; }
.mock-label { margin-top: 16px; font-size: .8125rem; color: var(--muted); }
@media (min-width: 700px) {
  .app { padding: 28px 32px 32px; }
  .app__top b { font-size: 1.375rem; }
  .app table { font-size: .9375rem; }
  .app .no { width: auto; }
  .app .who, .app .st { display: table-cell; }
}

/* ---------- 5. services: flat product tiles ---------- */
.tiles { list-style: none; padding: 0; display: grid; gap: 12px; text-align: left; }
.tiles a { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 220px; padding: 28px 26px 18px; border-radius: 24px; background: var(--grey); text-decoration: none; transition: background-color .3s var(--ease); }
.tiles li:nth-child(even) a { background: var(--paper); }
.tiles h3 { font-size: clamp(1.5rem, 1.3rem + .8vw, 1.875rem); font-weight: 600; line-height: 1.25; letter-spacing: -.015em; }
.tiles h3 small { display: block; font-size: .9375rem; font-weight: 300; color: var(--muted); margin-top: 8px; letter-spacing: 0; line-height: 1.5; }
.tiles .p { font-size: 1.0625rem; color: var(--ink-2); }
.tiles .p b { font-size: 1.5rem; letter-spacing: -.02em; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; margin: 0 2px; vertical-align: -2px; }
.tiles .go { margin-top: 2px; }
@media (hover: hover) { .tiles a:hover { background: color-mix(in srgb, var(--ink) 7%, white); } }
@media (min-width: 600px) { .tiles { grid-template-columns: 1fr 1fr; } .tiles li:first-child { grid-column: 1 / -1; } }
@media (min-width: 1100px) {
  .tiles { grid-template-columns: repeat(5, 1fr); gap: 14px; }
  .tiles li:first-child { grid-column: auto; }
  .tiles a { min-height: 380px; padding: 32px 26px 20px; }
}

/* ---------- 6. tools: a quiet line ---------- */
.tools-a { padding-block: 56px; border-top: 1px solid var(--hair); text-align: center; }
.tools-a h2 { font-size: 1.375rem; font-weight: 500; }
.tools-a .links { gap: 0 24px; }
.tools-a .links .go { font-size: 1rem; }

/* ---------- 7. มิว ---------- */
.mew { background: #EEE9E3; }
.mew .hd { font-size: clamp(2rem, 1.2rem + 4vw, 4.25rem); }
.mew .hd q { quotes: "\201C" "\201D"; }
.mew .tbc { font-size: .9375rem; display: inline-block; margin-top: 16px; }
.mew__photo { margin: 40px auto 0; width: min(100%, 560px); }
.mew__photo img { width: 100%; height: auto; aspect-ratio: 1289 / 1600;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 20%, #000 80%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 20%, #000 80%, transparent 100%); }

/* ---------- 8. closing ---------- */
.closing .btn-row { justify-content: center; margin-top: 28px; }
.closing .btn { min-width: 200px; }
.closing .contact { margin-top: 28px; font-size: 1rem; color: var(--muted); }
.closing .contact a { color: var(--ink); text-decoration: none; font-weight: 500; font-variant-numeric: tabular-nums; }
@media (max-width: 599px) { .hero-a .btn, .closing .btn { flex: 1 1 100%; } }

/* ---------- footer: light ---------- */
.site-footer { background: var(--paper); color: var(--ink-2); }
.site-footer .logo__word { color: var(--ink-2); }
.site-footer a:hover { color: var(--red); }
.footer-grid .fh { color: var(--ink); }
.footer-bottom { border-top-color: var(--hair); color: var(--muted); }
.site-footer .btn--line { background: var(--white) !important; color: var(--ink); }
.cta-bar a { background: var(--grey); }
.cta-bar a.primary { background: var(--red); }

/* ================= home-e additions: A base + flavours ================= */
/* hero: tagline, red pen (v2), rotating fears */
.hero-e { background: var(--white); padding: 56px 0 72px; text-align: center; overflow: clip; }
.hero-e .by { font-size: 1rem; color: var(--muted); }
.hero-e .hd { margin-top: 14px; font-size: clamp(2.6rem, 1.3rem + 6.4vw, 6.25rem); line-height: 1.12; }
.hero-e .btn-row { justify-content: center; margin-top: 32px; }
.hero-e .btn { min-width: 200px; }
.pen { position: relative; display: inline-block; }
.pen svg { position: absolute; left: -7%; top: -12%; width: 114%; height: 128%; max-width: none; overflow: visible; pointer-events: none; }
.pen path { fill: none; stroke: var(--red); stroke-width: 3.5; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-dasharray: 900; stroke-dashoffset: 900; transition: stroke-dashoffset 1.2s cubic-bezier(.6,.1,.3,1) .9s; }
.pen.is-in path, .is-static .pen path { stroke-dashoffset: 0; }
.fears { margin-top: 26px; font-size: clamp(1.25rem, 1rem + 1.2vw, 1.875rem); color: var(--ink-2); display: flex; flex-wrap: wrap; justify-content: center; gap: 0 .35em; }
.rot { display: inline-grid; font-weight: 600; color: var(--ink); }
.rot > span { grid-area: 1 / 1; position: relative; opacity: 0; white-space: nowrap; }
.rot > span::after { content: ""; position: absolute; left: -2%; right: -2%; top: 55%; height: 3px; border-radius: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; }
@media (prefers-reduced-motion: no-preference) {
  html:not(.is-static) .rot > span { animation: rot 12s infinite; }
  html:not(.is-static) .rot > span::after { animation: strike 12s infinite; }
  .rot > span:nth-child(2), .rot > span:nth-child(2)::after { animation-delay: 3s !important; }
  .rot > span:nth-child(3), .rot > span:nth-child(3)::after { animation-delay: 6s !important; }
  .rot > span:nth-child(4), .rot > span:nth-child(4)::after { animation-delay: 9s !important; }
}
@keyframes rot { 0% { opacity: 0; transform: translateY(.4em); } 4%, 20% { opacity: 1; transform: none; } 25%, 100% { opacity: 0; transform: translateY(-.4em); } }
@keyframes strike { 0%, 9% { transform: scaleX(0); } 15%, 22% { transform: scaleX(1); } 25%, 100% { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .rot > span:first-child { opacity: 1; } .rot > span:first-child::after { transform: none; } }
.is-static .rot > span:first-child { opacity: 1; }
@media (min-width: 900px) { .hero-e { padding: 96px 0 120px; } }

/* what we fix: bright CI tiles of different sizes */
.fix { background: var(--paper); }
.pains { list-style: none; padding: 0; display: grid; gap: 12px; text-align: left; }
.pains li { border-radius: 28px; padding: 30px 26px 26px; display: flex; flex-direction: column; gap: 14px; background: var(--white); }
.pains q { quotes: "\201C" "\201D"; font-size: clamp(1.375rem, 1.1rem + 1.2vw, 2.125rem); font-weight: 600; line-height: 1.3; letter-spacing: -.015em; }
.pains p { font-size: 1.0625rem; color: var(--ink-2); max-width: 30em; }
.pains .p1 { background: var(--yellow); }
.pains .p1 p { color: var(--ink); }
.pains .p1 .go { color: var(--ink); margin-top: auto; }
.pains .p3 { background: var(--red); color: var(--white); }
.pains .p3 p { color: color-mix(in srgb, var(--white) 88%, var(--red)); }
@media (min-width: 900px) {
  .pains { grid-template-columns: 1.15fr 1fr 1fr; grid-template-rows: auto auto; gap: 16px; }
  .pains .p1 { grid-row: span 2; padding: 44px 40px; justify-content: flex-start; }
  .pains .p1 q { font-size: clamp(2rem, 1.4rem + 1.6vw, 3rem); }
  .pains .p4 { grid-column: 2 / span 2; }
  .pains li { padding: 36px 34px 32px; min-height: 240px; }
}

/* month: sticky realistic phone + steps with tc.-shaped number badges (D) */
.month-e { background: var(--white); padding-bottom: 72px; }
.pstory { display: grid; gap: 20px; margin-top: 24px; text-align: left; }
.pstory .pin { position: sticky; top: calc(var(--header-h) - 30px); z-index: 1; }
.pstory .dev { --dev-w: 214px; }
.pstory .pin { z-index: 3; }
.pstory .steps { z-index: 1 !important; }
.pstory .phone-stage { padding-bottom: 36px; }
.pstory .steps { display: grid; gap: 55vh; padding: 8vh 0 40vh; position: relative; z-index: 2; }
.story__step { background: color-mix(in srgb, var(--white) 94%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-radius: 22px; padding: 22px 22px 24px; box-shadow: 0 0 0 1px var(--hair); opacity: .45; transition: opacity .4s; }
.story__step.is-active { opacity: 1; }
.story__step h3 { font-size: clamp(1.375rem, 1.15rem + 1vw, 2rem); font-weight: 600; margin-top: 12px; }
.story__step p { margin-top: 6px; color: var(--ink-2); font-size: 1.0625rem; max-width: 26em; }
.sq { width: 40px; height: 40px; border-radius: 12px; background: var(--red); color: var(--white); display: grid; place-items: center; font-weight: 700; position: relative; }
.sq::after { content: ""; position: absolute; right: -9px; bottom: 2px; width: 7px; height: 7px; border-radius: 2px; background: var(--red); } /* the tc. full stop */
.story__step:nth-child(2) .sq, .story__step:nth-child(2) .sq::after { background: var(--yellow); color: var(--ink); }
.pstory .mock-label { text-align: center; }
.pstamp { position: absolute; right: 8px; bottom: 26px; transform: rotate(-12deg); border: 2px solid #B92025; outline: 1px solid #B92025; outline-offset: 2px; border-radius: 4px; color: #B92025; font-weight: 700; font-size: .9em; padding: .15em .45em; opacity: 0; mix-blend-mode: multiply; transition: opacity .2s .9s, transform .35s cubic-bezier(.3,1.6,.5,1) .9s; }
.msg.show .pstamp { opacity: .9; transform: rotate(-12deg) scale(1); }
.msg:not(.show) .pstamp { transform: rotate(-12deg) scale(1.6); }
@media (min-width: 900px) {
  .pstory { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; margin-top: 48px; }
  .pstory .pin { top: calc(50vh - 360px); }
  .pstory .dev { --dev-w: 340px; }
  .pstory .pin { z-index: 1; }
  .pstory .phone-stage { padding-bottom: 56px; }
  .pstory .steps { gap: 60vh; padding: 28vh 0 72vh; }
  .story__step { background: transparent; box-shadow: none; backdrop-filter: none; padding: 0; }
  .month-e { padding-bottom: 120px; }
}
.ask { background: var(--white); }
.ask #mew-chat { min-height: 320px; }
.device .live-app { border-top: 0; }

/* direct-payment pillar (D-031) */
.direct { background: var(--white); }
.money { position: relative; display: grid; gap: 14px; max-width: 980px; margin-inline: auto; text-align: left; }
.money .node { border-radius: 24px; padding: 24px 24px 22px; display: grid; gap: 4px; }
.money .node b { font-size: clamp(1.375rem, 1.1rem + 1.2vw, 2rem); font-weight: 600; }
.money .node span { color: var(--ink-2); font-size: 1rem; }
.money .you { background: var(--paper); }
.money .rd { background: color-mix(in srgb, var(--green) 9%, white); }
.money .rd b { color: var(--green); }
.money .tc { background: var(--white); border: 1.5px dashed color-mix(in srgb, var(--ink) 25%, transparent); }
.money .arrow { display: flex; align-items: center; gap: 10px; color: var(--green); font-weight: 600; padding-left: 24px; }
.money .arrow::before { content: ""; width: 2px; height: 34px; background: var(--green); }
.money .arrow::after { content: ""; border: 7px solid transparent; border-top-color: var(--green); transform: translate(-19px, 18px); }
.promise { margin: 48px auto 0; max-width: 40em; }
.promise h3 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.5rem); font-weight: 600; }
.promise p { margin-top: 10px; font-size: clamp(1.0625rem, 1rem + .4vw, 1.375rem); color: var(--ink-2); }
.hero-note { margin-top: 18px; font-size: .9375rem; color: var(--green); display: inline-flex; align-items: center; gap: 8px; }
.hero-note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 18%, transparent); }
@media (min-width: 900px) {
  .money { grid-template-columns: 1fr auto 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 20px; row-gap: 20px; }
  .money .you { grid-column: 1; grid-row: 1; } .money .arrow { grid-column: 2; grid-row: 1; flex-direction: column; padding: 0; }
  .money .rd { grid-column: 3; grid-row: 1; }
  .money .arrow::before { width: 90px; height: 2px; } .money .arrow::after { border-top-color: transparent; border-left-color: var(--green); transform: translate(48px, -23px); }
  .money .tc { grid-column: 1 / -1; grid-row: 2; justify-self: center; text-align: center; min-width: 50%; }
  .money .node { padding: 32px 32px 30px; }
}

/* during-the-month LINE group (autoplay phone) */
.group { background: var(--paper); }
.group__grid { display: grid; gap: 8px; align-items: center; }
.group .dev { --dev-w: 250px; }
@media (min-width: 900px) {
  .group__grid { grid-template-columns: 1fr 1fr; gap: 64px; text-align: left; }
  .group__text .sub { margin-left: 0; }
  .group .dev { --dev-w: 320px; }
}

/* service tiles: small living visuals (not emoji) + มิว peeking */
.tiles a { position: relative; overflow: hidden; }
.tv { display: block; height: 92px; position: relative; margin-bottom: -8px; }
.tv-acc i { position: absolute; left: 0; top: 4px; width: 58px; height: 82px; background: var(--white); border-radius: 6px; box-shadow: 0 0 0 1px var(--hair), 0 6px 14px rgba(31,29,27,.08);
  background-image: repeating-linear-gradient(transparent 0 9px, color-mix(in srgb, var(--ink) 12%, transparent) 9px 10px); background-size: 70% 60%; background-position: 50% 70%; background-repeat: no-repeat;
  transition: transform .6s var(--ease); }
.tv-acc i:nth-child(1) { transform: rotate(-4deg); }
.tv-acc i:nth-child(2) { transform: rotate(2deg) translateX(6px); }
.tv-acc i:nth-child(3) { transform: rotate(-1deg) translateX(12px); }
.tiles a:hover .tv-acc i:nth-child(1), .is-in .tv-acc i:nth-child(1) { transform: rotate(-10deg) translateX(-2px); }
.tiles a:hover .tv-acc i:nth-child(2), .is-in .tv-acc i:nth-child(2) { transform: rotate(3deg) translateX(34px); }
.tiles a:hover .tv-acc i:nth-child(3), .is-in .tv-acc i:nth-child(3) { transform: rotate(12deg) translateX(68px) translateY(4px); }
.tv-co .doc { position: absolute; left: 0; top: 4px; width: 60px; height: 85px; background: var(--white); border-radius: 6px; box-shadow: 0 0 0 1px var(--hair); }
.tv-co .st { position: absolute; left: 14px; top: 34px; font-style: normal; font-weight: 700; font-size: .8125rem; color: var(--red); border: 2px solid var(--red); border-radius: 4px; padding: 1px 6px; transform: rotate(-10deg) scale(1.6); opacity: 0; transition: transform .35s cubic-bezier(.3,1.6,.5,1) .5s, opacity .15s .5s; }
.tv-co .hd { position: absolute; left: 30px; top: -44px; width: 34px; height: 44px; border-radius: 9px 9px 6px 6px; background: var(--red); transition: transform .5s var(--ease); }
.tv-co .hd::after { content: ""; position: absolute; left: -6px; right: -6px; bottom: -6px; height: 8px; border-radius: 3px; background: color-mix(in srgb, var(--red) 70%, var(--ink)); }
.is-in .tv-co .hd, .tiles a:hover .tv-co .hd { animation: stampdown 1.3s var(--ease) .1s both; }
.is-in .tv-co .st, .tiles a:hover .tv-co .st { opacity: .9; transform: rotate(-10deg) scale(1); }
@keyframes stampdown { 0% { transform: none; } 40% { transform: translateY(66px); } 55% { transform: translateY(62px); } 100% { transform: translateY(-6px); } }
.tv-vat { font-size: 4.25rem; font-weight: 700; line-height: 1; color: var(--yellow); letter-spacing: -.04em; padding-top: 6px; transition: transform .5s var(--ease); }
.tv-vat small { font-size: .5em; }
.tiles a:hover .tv-vat { transform: scale(1.08) rotate(-3deg); }
.tv-pit { width: 62px; height: 88px; background: var(--white); border-radius: 6px; box-shadow: 0 0 0 1px var(--hair); padding: 12px 8px 9px; display: flex; flex-direction: column; gap: 6px; } /* A4 1:1.414 */
.tv-pit i { display: block; height: 3px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 14%, transparent); }
.tv-pit i:nth-child(2) { width: 70%; } .tv-pit i:nth-child(3) { width: 85%; }
.tv-pit b { margin-top: auto; white-space: nowrap; font-size: .75rem; color: var(--green); font-weight: 600; opacity: 0; transform: translateY(4px); transition: .4s var(--ease) .4s; }
.is-in .tv-pit b, .tiles a:hover .tv-pit b { opacity: 1; transform: none; }
.tv-mew { height: 92px; }
.tv-mew img { position: absolute; right: -8px; bottom: -120px; width: 104px; height: 104px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; box-shadow: 0 0 0 4px var(--white); transition: bottom .7s cubic-bezier(.3,1.4,.5,1) .3s; }
.tv-mew em { position: absolute; right: 88px; top: 18px; font-style: normal; font-size: .8125rem; background: var(--white); border-radius: 12px 12px 2px 12px; padding: 5px 10px; box-shadow: 0 0 0 1px var(--hair); opacity: 0; transition: opacity .3s 1s; white-space: nowrap; }
.is-in .tv-mew img, .tiles a:hover .tv-mew img { bottom: -18px; }
.is-in .tv-mew em, .tiles a:hover .tv-mew em { opacity: 1; }
.tiles li:last-child a { background: color-mix(in srgb, var(--yellow) 16%, white); }
/* มิว peeking in with a pointing gesture under the tiles */
.peek { margin: 36px auto 0; max-width: 820px; display: flex; align-items: flex-end; gap: 18px; justify-content: center; }
.peek img { width: 140px; height: 170px; object-fit: cover; object-position: 50% 0; border-radius: 26px; flex: none; transform: translateX(-24px) rotate(-3deg); opacity: 0; transition: transform .8s cubic-bezier(.3,1.3,.5,1) .15s, opacity .5s .15s; }
.peek.is-in img { transform: none; opacity: 1; }
.peek .say { position: relative; text-align: left; background: var(--white); border-radius: 22px 22px 22px 6px; padding: 16px 20px; box-shadow: 0 0 0 1px var(--hair), 0 14px 30px -12px rgba(31,29,27,.2); font-size: clamp(1.0625rem, 1rem + .4vw, 1.375rem); font-weight: 500; margin-bottom: 28px; opacity: 0; transform: scale(.9); transform-origin: 0 100%; transition: .45s cubic-bezier(.3,1.4,.5,1) .7s; }
.peek.is-in .say { opacity: 1; transform: none; }
.peek .say .go { display: flex; font-size: 1rem; margin-top: 2px; min-height: 36px; }
@media (min-width: 900px) { .peek img { width: 180px; height: 220px; } }
@media (prefers-reduced-motion: reduce) { .peek img, .peek .say, .tv * { transition: none !important; animation: none !important; opacity: 1 !important; transform: none !important; } .tv-mew img { bottom: -18px; } }
.money .tc b { color: var(--ink); }

/* animated money-flow scene (tools/build-moneyflow.py) */
.mf { width: 100%; height: auto; display: block; overflow: visible; font-family: Kanit, sans-serif; }
.mf--w { display: none; }
@media (min-width: 700px) { .mf--w { display: block; } .mf--t { display: none; } }
.mf .t { font-weight: 600; fill: #1F1D1B; } .mf .s { fill: #6E675F; }
.mf .p { fill: none; stroke-width: 2.2; stroke-linecap: round; }
.mf .p--file, .mf .p--slip { stroke: #B8B0A6; stroke-dasharray: 5 7; }
.mf .p--pay { stroke: #007426; stroke-width: 3.2; }
.mf .p--no { stroke: #B92025; stroke-dasharray: 3 8; opacity: .45; }
.mf .lab--pay { fill: #007426; font-weight: 600; }
.mf .lab--step { fill: #1F1D1B; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .mf animateMotion, .mf set { display: none; } }
.money-anim { max-width: 980px; margin-inline: auto; }

/* ---------- Year bill: "สิ้นปีไม่มีบิลปิดงบ" (core selling point, 28 ก.ย. 2569) ----------
   Two rows of 12 month bars, illustrative only (no numbers): elsewhere = low monthly + a year-end spike;
   taxcount = the same bar every month, only a small auditor (CPA) cap in December. */
.yearbill { max-width: 860px; margin-inline: auto; text-align: left; display: grid; gap: 22px; }
.yb-row { display: grid; gap: 10px; }
.yb-lab { display: grid; gap: 2px; font-weight: 600; font-size: 1.125rem; }
.yb-lab small { font-weight: 400; font-size: .9375rem; color: var(--muted); }
.yb-bars { height: 120px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; align-items: end; }
.yb-bars i { position: relative; display: block; height: var(--h, 40%); border-radius: 6px 6px 3px 3px; background: color-mix(in srgb, var(--ink) 14%, white);
  transform-origin: bottom; transform: scaleY(.08); transition: transform .6s var(--ease); transition-delay: calc(var(--n, 0) * 45ms); }
.is-in .yb-bars i, .yearbill.is-in .yb-bars i { transform: none; }
.yb-row.other i { --h: 34%; }
.yb-row.other i.spike { --h: 100%; background: var(--red); }
.yb-row.us i { --h: 52%; background: color-mix(in srgb, var(--green) 55%, white); }
.yb-row.us i.dec { background: color-mix(in srgb, var(--green) 55%, white); }
.yb-bars em, .yb-bars b { position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); white-space: nowrap; font-style: normal; font-size: .8125rem; font-weight: 600; }
.yb-bars em { color: var(--red); }
.yb-row.us .cap { position: absolute; left: 0; right: 0; bottom: 100%; height: 34%; border-radius: 6px 6px 0 0; background: var(--yellow); }
.yb-row.us .cap b { color: var(--ink); bottom: calc(100% + 6px); left: auto; right: 0; transform: none; }
.yb-months { display: flex; justify-content: space-between; font-size: .8125rem; color: var(--muted); margin-top: -12px; }
.yb-note { font-size: .875rem; color: var(--muted); }
@media (min-width: 700px) { .yb-bars { height: 150px; gap: 6px; } .yearbill { grid-template-columns: 220px 1fr; column-gap: 28px; row-gap: 26px; align-items: end; } .yb-row { display: contents; } .yb-months, .yb-note { grid-column: 2; } }
@media (prefers-reduced-motion: reduce) { .yb-bars i { transform: none; transition: none; } }

/* ---------- tactile-flat paper + "3 papers → 1 bundle" (document counting, D-042) ----------
   Used by pages/document-counting.html (hero) and pages/accounting-service.html (.count section).
   <div class="bundle" data-in> .bundle__desk > .pp×3 (--k:0..2) + .clip + .bstamp · .bundle__n > .c3 .c2 .c1
   The .is-in rules hold the FINAL state; keyframes only add the journey (so reduced-motion/?static = final state). */
.pp { position: relative; display: block; width: var(--w, 104px); height: calc(var(--w, 104px) * 1.414); padding: 16px 10px 0; /* A4 portrait 210×297 (owner rule) */ border-radius: 6px; background: var(--white); text-align: left;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 15%, transparent), 0 12px 24px -14px rgba(31,29,27,.3); }
.pp::before { content: ""; position: absolute; left: 10px; top: 8px; width: 34%; height: 4px; border-radius: 2px; background: var(--red); }
.pp::after { content: ""; position: absolute; left: 10px; right: 12px; top: 54px; bottom: 12px;
  background: repeating-linear-gradient(transparent 0 9px, color-mix(in srgb, var(--ink) 15%, transparent) 9px 10.5px); }
.pp b { display: block; font-size: .8125rem; font-weight: 600; line-height: 1.3; }
.bundle { --w: 104px; display: grid; justify-items: center; gap: 18px; }
.bundle__desk { position: relative; width: calc(var(--w) * 3 + 24px); max-width: 100%; height: calc(var(--w) * 1.414 + 76px); }
.bundle .pp { position: absolute; left: 50%; top: 68px; margin-left: calc(var(--w) / -2); width: var(--w);
  --spread: translateX(calc((var(--k) - 1) * (var(--w) + 12px))) rotate(calc((var(--k) - 1) * 2deg));
  --stacked: translate(calc((var(--k) - 1) * 4px), calc((var(--k) - 2) * 30px)) rotate(calc((var(--k) - 1) * -1deg));
  transform: var(--spread); }
.bundle .pp:nth-of-type(1) { --from: translate(-60vw, 40px) rotate(-28deg); }
.bundle .pp:nth-of-type(2) { --from: translate(0, -70vh) rotate(14deg); }
.bundle .pp:nth-of-type(3) { --from: translate(60vw, 30px) rotate(24deg); }
.bundle.is-in .pp { transform: var(--stacked); animation: bnd-fly 2.1s cubic-bezier(.3,.9,.3,1) both; animation-delay: calc(var(--k) * 90ms); }
@keyframes bnd-fly {
  0% { transform: var(--from); opacity: 0; }
  8% { opacity: 1; }
  38% { transform: var(--spread); }
  58% { transform: var(--spread); }
  84% { transform: var(--stacked); }
  90% { transform: var(--stacked) translateY(-3px); }
  100% { transform: var(--stacked); }
}
.bundle .clip { position: absolute; left: 50%; top: 0; width: 46px; height: 40px; margin-left: calc(var(--w) / 2 - 40px); color: var(--ink-2); z-index: 3; opacity: 0; transform-origin: 50% 100%; }
.bundle.is-in .clip { opacity: 1; animation: bnd-clip .5s cubic-bezier(.3,1.6,.5,1) 2.05s both; }
@keyframes bnd-clip { 0% { opacity: 0; transform: translateY(-26px) scaleY(1.1); } 60% { opacity: 1; transform: translateY(2px) scaleY(.86); } 100% { opacity: 1; transform: none; } }
.bstamp { position: absolute; left: 50%; bottom: 4px; z-index: 4; margin-left: calc(var(--w) / 2 - 64px); rotate: -9deg; border: 2px solid var(--red); outline: 1px solid var(--red); outline-offset: 2px; border-radius: 4px;
  color: var(--red); font-weight: 700; font-size: .875rem; line-height: 1.35; padding: 0 .45em; white-space: nowrap; background: color-mix(in srgb, var(--white) 55%, transparent); mix-blend-mode: multiply; opacity: 0; }
.bundle.is-in .bstamp { opacity: .92; animation: stamp-slam .45s cubic-bezier(.2,.9,.3,1.2) 2.55s both; }
@keyframes stamp-slam { 0% { opacity: 0; transform: scale(2.2); } 55% { opacity: .92; transform: scale(.94); } 70% { transform: scale(1.02) translateX(-2px); } 85% { transform: translateX(2px); } 100% { opacity: .92; transform: none; } }
.bundle__n { display: grid; justify-items: center; line-height: 1.1; }
.bundle__n > span { grid-area: 1 / 1; display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.bundle__n b { font-size: clamp(2.75rem, 2.2rem + 2.4vw, 4.25rem); font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.bundle__n small { font-size: 1.0625rem; color: var(--ink-2); }
.bundle__n .c1 b { color: var(--red); }
.bundle__n .c2, .bundle__n .c1 { opacity: 0; }
.bundle.is-in .c3 { opacity: 0; animation: tick-out .3s var(--ease) 1.35s both; }
.bundle.is-in .c2 { opacity: 0; animation: tick-mid .75s var(--ease) 1.5s both; }
.bundle.is-in .c1 { opacity: 1; animation: tick-in .4s cubic-bezier(.3,1.5,.5,1) 2.05s both; }
@keyframes tick-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-16px); } }
@keyframes tick-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes tick-mid { 0% { opacity: 0; transform: translateY(16px); } 25%, 70% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-16px); } }
@media (min-width: 900px) { .bundle--lg { --w: 150px; } .bundle--lg .pp b { font-size: .9375rem; } }
.is-static .bundle *, .is-static .bundle { transition: none !important; animation: none !important; }

/* ---------- Service lead card + life-stage tiles (services + home, 28 ก.ย.) ---------- */
/* hero product: monthly accounting leads the list (owner 28 ก.ย.) */
.lead-card { display: grid; gap: 24px; margin: 40px auto 12px; max-width: 1180px; padding: 28px 24px 24px; border-radius: 28px; background: var(--white); box-shadow: inset 0 0 0 1.5px var(--red); text-decoration: none; color: inherit; text-align: left; overflow: hidden; }
.lc-tag { display: inline-block; font-size: .8125rem; font-weight: 600; color: var(--red); padding: 3px 10px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--red) 8%, white); }
.lead-card h3 { margin-top: 12px; font-size: clamp(2rem, 1.5rem + 2vw, 3.25rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.lc-sub { margin-top: 8px; font-size: 1.125rem; color: var(--ink-2); }
.lc-pts { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 6px; }
.lc-pts li { position: relative; padding-left: 22px; font-size: .9375rem; color: var(--ink-2); }
.lc-pts li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 10px; height: 6px; border: solid var(--green); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.lead-card .p { margin-top: 18px; font-size: 1.0625rem; color: var(--ink-2); }
.lead-card .p b { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); font-weight: 600; letter-spacing: -.02em; color: var(--red); margin: 0 3px; vertical-align: -3px; }
.lead-card .p small { display: block; font-size: .875rem; color: var(--muted); }
.lead-card .go { margin-top: 8px; }
.lc-vis { position: relative; display: grid; place-items: center; min-height: 190px; border-radius: 22px; background: var(--paper); }
.lc-pile { position: relative; width: 150px; height: 170px; }
.lc-pile i { position: absolute; left: 30px; bottom: 6px; width: 92px; height: 130px; border-radius: 6px; background: var(--white); box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 14%, transparent), 0 2px 6px rgba(0,0,0,.06); transform-origin: 30% 100%; --spread: 60deg;
  transition: transform 1s cubic-bezier(.25,1.35,.45,1); transition-delay: calc(var(--k) * 70ms + 250ms); }
.lc-pile i:last-child { background: #fff repeating-linear-gradient(transparent 0 14px, color-mix(in srgb, var(--ink) 16%, transparent) 14px 15.5px) 14px 26px / 64px 76px no-repeat; }
.lc-pile i:last-child::after { content: ""; position: absolute; left: 14px; top: 12px; width: 34px; height: 5px; border-radius: 3px; background: var(--red); }
.is-in .lc-pile i, .lead-card.is-in .lc-pile i { transform: translate(calc(var(--k) * 3px), calc(var(--k) * -3px)) rotate(calc((var(--k) - (var(--n) - 1) / 2) * var(--spread) / var(--n))); }
.lead-card:hover .lc-pile i { --spread: 90deg; transition-delay: calc(var(--k) * 25ms); transition-duration: .5s; }
@media (min-width: 860px) { .lead-card { grid-template-columns: 1.3fr 1fr; align-items: stretch; padding: 40px 40px 36px 44px; gap: 40px; } .lc-vis { min-height: 100%; } .lc-pile { transform: scale(1.35); } }
@media (prefers-reduced-motion: reduce) { .lc-pile i { transition: none; transform: translate(calc(var(--k) * 3px), calc(var(--k) * -3px)) rotate(calc((var(--k) - 3) * 8.5deg)); } }
.tiles--4 { max-width: 1180px; margin-inline: auto; } .tiles--4 li { display: grid; } .tiles--4 a { height: 100%; }
@media (min-width: 900px) { .tiles--4 { grid-template-columns: repeat(4, 1fr); } }
.tiles .when { display: block; font-size: .8125rem; color: var(--muted); margin-bottom: -28px; }
@media (min-width: 600px) { .tiles--4 li:first-child { grid-column: auto; } }
.tiles--4 li:last-child a { background: var(--grey); } .tiles--4 li:first-child a { background: color-mix(in srgb, var(--yellow) 16%, white); }
.tiles .when { display: block; font-size: .8125rem; color: var(--muted); margin-bottom: -28px; }
@media (min-width: 600px) { .tiles--4 li:first-child { grid-column: auto; } }
.tiles--4 li:last-child a { background: var(--grey); } .tiles--4 li:first-child a { background: color-mix(in srgb, var(--yellow) 16%, white); }
