/* Kizing site. Two lanes: teal = Shopify side / in sync, plum = TikTok side / drift. System fonts (covers ja/th/vi). */
:root {
  --paper: #f2f4f1;
  --surface: #ffffff;
  --sunk: #e7ebe6;
  --ink: #18212e;
  --muted: #566170;
  --line: #d3d9d3;
  --teal: #0b6f7a;
  --teal-soft: #dcefef;
  --plum: #a3245e;
  --plum-soft: #f8e1ea;
  --amber: #8f5e00;
  --amber-soft: #f6ebcf;
  --band: #18212e;
  --band-ink: #eef1ec;
  --focus: #0b6f7a;
  --radius: 14px;
  --font: "Avenir Next", Avenir, "Segoe UI Variable Text", "Segoe UI", "Helvetica Neue", "Hiragino Sans", "Noto Sans", "Noto Sans Thai", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f151d; --surface: #17202b; --sunk: #1d2834; --ink: #e6eae4; --muted: #9ba6b1; --line: #2b3744;
    --teal: #57c3cc; --teal-soft: #15343a; --plum: #f07aae; --plum-soft: #3a1a2a; --amber: #e8b54a; --amber-soft: #372b12;
    --band: #e6eae4; --band-ink: #18212e; --focus: #57c3cc; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0f151d; --surface: #17202b; --sunk: #1d2834; --ink: #e6eae4; --muted: #9ba6b1; --line: #2b3744;
  --teal: #57c3cc; --teal-soft: #15343a; --plum: #f07aae; --plum-soft: #3a1a2a; --amber: #e8b54a; --amber-soft: #372b12;
  --band: #e6eae4; --band-ink: #18212e; --focus: #57c3cc; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--font); font-variant-numeric: tabular-nums; }
img, svg { max-width: 100%; }
a { color: var(--teal); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 .5em; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: .88em; background: var(--sunk); padding: .1em .35em; border-radius: 5px; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 50; border-radius: 6px; }
.skip:focus { left: 8px; }
mark.ph { background: var(--amber-soft); color: var(--amber); padding: 0 .2em; border-radius: 4px; font-weight: 600; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 44px; padding: 0 1.15em; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 650; text-decoration: none; border: 2px solid var(--ink); white-space: nowrap; }
.btn:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn-lg { min-height: 52px; padding: 0 1.5em; font-size: 1.05rem; }
.btn-sm { min-height: 38px; padding: 0 .95em; font-size: .92rem; }
.btn-quiet { background: transparent; color: var(--ink); }
.btn-quiet:hover { color: #fff; }
.link { font-weight: 600; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1160px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; }
@media (min-width: 720px) { .top-in { padding: 12px 32px; } }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 750; font-size: 1.15rem; letter-spacing: -0.02em; }
.mark { width: 30px; height: 30px; }
.nav { display: none; gap: 22px; margin-left: 24px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 550; font-size: .97rem; }
.nav a:hover { color: var(--teal); }
@media (min-width: 900px) { .nav { display: flex; } }
.top-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.theme { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .9rem; font-weight: 550; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary span { display: none; }
@media (min-width: 560px) { .lang summary span { display: inline; } }
.lang ul { position: absolute; right: 0; top: 46px; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; min-width: 210px; box-shadow: 0 12px 32px -12px rgb(0 0 0 / .35); }
.lang li a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.lang li a:hover, .lang li a[aria-current] { background: var(--sunk); }
.lang li a[aria-current] { font-weight: 650; }
@media (max-width: 400px) { .top .btn-sm { padding: 0 .7em; font-size: .85rem; } }

/* hero */
.hero { padding: 44px 0 56px; }
.hero-in { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) { .hero { padding: 72px 0 88px; } .hero-in { grid-template-columns: 1.05fr 1fr; gap: 56px; } }
.hero h1 { font-size: clamp(2.35rem, 6.4vw, 4.5rem); font-weight: 750; letter-spacing: -0.035em; line-height: 1.02; margin-bottom: .4em; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.hero .lede { font-size: clamp(1.08rem, 1.6vw, 1.22rem); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 28px; }

/* ledger: the product visual */
.ledger { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 12px; box-shadow: 0 30px 60px -40px rgb(10 30 40 / .45); }
@media (min-width: 720px) { .ledger { padding: 22px; } }
.lg-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.pill { display: inline-flex; align-items: center; gap: 7px; background: var(--teal-soft); color: var(--teal); font-weight: 650; font-size: .88rem; padding: 4px 11px; border-radius: 999px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.lg-meta { color: var(--muted); font-size: .85rem; }
.lg-row { display: grid; grid-template-columns: minmax(0, 1fr) 56px 56px auto; align-items: center; gap: 6px; padding: 10px 8px; border-radius: 10px; }
@media (min-width: 720px) { .lg-row { grid-template-columns: minmax(0, 1fr) 72px 72px 110px; padding: 11px 12px; } }
.lg-row + .lg-row { border-top: 1px solid var(--line); }
.lg-th { color: var(--muted); font-size: .72rem; font-weight: 600; padding-top: 0; }
.lg-th span:nth-child(2), .lg-th span:nth-child(3), .num { text-align: right; }
.lg-row b { display: block; font-weight: 600; font-size: .92rem; line-height: 1.25; }
.lg-th > span { white-space: nowrap; }
@media (min-width: 720px) { .lg-row b { font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }
.lg-row small { display: block; font-family: var(--mono); font-size: .7rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.num { font-weight: 650; font-size: 1.05rem; }
.lg-th span:nth-child(2)::before, .lg-th span:nth-child(3)::before { vertical-align: 1px; }
.lg-th span:nth-child(2)::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--teal); margin-right: 5px; }
.lg-th span:nth-child(3)::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--plum); margin-right: 5px; }
.st { display: inline-flex; font-size: .78rem; font-weight: 650; padding: 3px 8px; border-radius: 999px; justify-self: start; white-space: nowrap; }
.st-ok { background: var(--teal-soft); color: var(--teal); }
.st-note { background: var(--sunk); color: var(--muted); }
.st-drift { position: relative; overflow: hidden; }
.is-drift { background: var(--plum-soft); animation: settle .6s ease 2.2s forwards; }
.tick, .st-drift { display: inline-grid; }
.tick > span, .st-drift > span { grid-area: 1 / 1; }
.tk-b, .st-b { opacity: 0; transform: translateY(70%); }
.tk-a { color: var(--plum); }
.st-drift { background: var(--plum); color: #fff; animation: chip .6s ease 2.2s forwards; }
.tk-a, .st-a { animation: out .45s ease 2s forwards; }
.tk-b, .st-b { animation: in .45s ease 2.2s forwards; }
@keyframes out { to { opacity: 0; transform: translateY(-70%); } }
@keyframes in { to { opacity: 1; transform: none; } }
@keyframes settle { to { background: transparent; } }
@keyframes chip { to { background: var(--teal-soft); color: var(--teal); } }
.lg-foot { margin-top: 12px; padding: 12px 12px 2px; border-top: 1px dashed var(--line); font-size: .88rem; color: var(--muted); }
@media (prefers-reduced-motion: reduce) {
  .is-drift, .st-drift, .tk-a, .tk-b, .st-a, .st-b { animation: none; }
  .is-drift { background: transparent; }
  .tk-a, .st-a { opacity: 0; }
  .tk-b, .st-b { opacity: 1; transform: none; }
  .st-drift { background: var(--teal-soft); color: var(--teal); }
}

/* sections */
section[id] { scroll-margin-top: 80px; }
.how, .features, .langs, .price-teaser, .faq { padding: 64px 0; }
@media (min-width: 980px) { .how, .features, .langs, .price-teaser, .faq { padding: 96px 0; } }
.how { background: var(--surface); border-block: 1px solid var(--line); }
.section-lede { color: var(--muted); font-size: 1.1rem; max-width: 62ch; margin-bottom: 2em; }

.track { list-style: none; padding: 0; margin: 32px 0 0; counter-reset: s; display: grid; gap: 28px; }
.track li { counter-increment: s; position: relative; padding-left: 58px; }
.track li::before { content: counter(s); position: absolute; left: 0; top: -4px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 750; border: 2px solid var(--ink); background: var(--paper); }
.track li:not(:last-child)::after { content: ""; position: absolute; left: 19px; top: 40px; bottom: -28px; border-left: 2px dashed var(--line); }
.track p { color: var(--muted); margin: 0; }
@media (min-width: 980px) {
  .track { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .track li { padding: 58px 0 0; }
  .track li::before { top: 0; }
  .track li:not(:last-child)::after { left: 48px; right: -24px; top: 19px; bottom: auto; border-left: 0; border-top: 2px dashed var(--line); }
}
.diff { margin-top: 48px; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--paper); max-width: 720px; }
.diff-h { font-weight: 700; margin-bottom: 12px; }
.diff dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0 0 12px; }
@media (min-width: 640px) { .diff dl { grid-template-columns: repeat(4, 1fr); } }
.diff dl div { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.diff dt { font-size: .82rem; color: var(--muted); }
.diff dd { margin: 0; font-size: 1.5rem; font-weight: 700; }
.diff p { font-size: .9rem; color: var(--muted); margin: 0; }

.flow { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.flow li { display: grid; gap: 8px 32px; padding: 24px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 820px) { .flow li { grid-template-columns: 200px 1fr; padding: 30px 0; } }
.flow h3 { margin-bottom: .35em; }
.flow p { color: var(--muted); max-width: 70ch; margin: 0; }
.dir { justify-self: start; align-self: start; font-size: .85rem; font-weight: 650; padding: 4px 11px; border-radius: 999px; white-space: nowrap; }
.flow-s2t .dir { background: var(--teal-soft); color: var(--teal); }
.flow-t2s .dir { background: var(--plum-soft); color: var(--plum); }
.flow-both .dir { background: var(--sunk); color: var(--ink); }
.flow-check .dir { background: var(--amber-soft); color: var(--amber); }

.switch { background: var(--band); color: var(--band-ink); padding: 64px 0; }
@media (min-width: 980px) { .switch { padding: 96px 0; } }
.switch-in { display: grid; gap: 32px; }
@media (min-width: 980px) { .switch-in { grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: start; } }
.switch p { max-width: 62ch; opacity: .9; }
.switch .from { font-weight: 650; opacity: 1; }
.mig { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.mig a { display: flex; flex-direction: column; padding: 14px; border: 1px solid color-mix(in srgb, var(--band-ink) 25%, transparent); border-radius: 12px; color: var(--band-ink); text-decoration: none; font-weight: 650; }
.mig a span { font-size: .8rem; font-weight: 450; opacity: .7; }
.mig a:hover { background: color-mix(in srgb, var(--band-ink) 10%, transparent); }

.langs-in p { color: var(--muted); max-width: 62ch; }
.lang-list { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lang-list a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); text-decoration: none; }
.lang-list a:hover { border-color: var(--teal); color: var(--teal); }

.price-teaser { background: var(--surface); border-block: 1px solid var(--line); }
.pt-grid { display: grid; gap: 12px; margin: 28px 0 20px; }
@media (min-width: 820px) { .pt-grid { grid-template-columns: repeat(3, 1fr); } }
.pt { display: grid; gap: 4px; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); color: var(--ink); text-decoration: none; }
.pt:hover { border-color: var(--ink); }
.pt-name { font-weight: 700; }
.pt-price { font-size: 2rem; font-weight: 750; letter-spacing: -0.02em; }
.pt-price small { font-size: .95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.pt-what { color: var(--muted); font-size: .95rem; }
.note { color: var(--muted); }

.faq-in { display: grid; gap: 24px; }
@media (min-width: 980px) { .faq-in { grid-template-columns: 1fr 2fr; gap: 64px; } }
.qa details { border-top: 1px solid var(--line); }
.qa details:last-child { border-bottom: 1px solid var(--line); }
.qa summary { cursor: pointer; padding: 18px 32px 18px 0; font-weight: 650; list-style: none; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.4rem; font-weight: 400; color: var(--muted); }
.qa details[open] summary::after { content: "–"; }
.qa p { color: var(--muted); max-width: 66ch; padding-bottom: 8px; }

.closing { padding: 72px 0 88px; }
.closing-in { max-width: 760px; }
.closing h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
.closing p { color: var(--muted); font-size: 1.1rem; }
.closing .soon { font-size: .9rem; margin-top: 18px; }

/* pricing page */
.page-head { padding-top: 48px; padding-bottom: 24px; }
.page-head h1 { font-size: clamp(2.2rem, 5.4vw, 3.8rem); letter-spacing: -0.03em; font-weight: 750; }
.plans { display: grid; gap: 16px; margin-top: 12px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; }
.plan-pick { border: 2px solid var(--ink); }
.plan header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan h2 { font-size: 1.35rem; margin: 0; }
.tag { font-size: .8rem; font-weight: 650; background: var(--teal-soft); color: var(--teal); padding: 3px 10px; border-radius: 999px; }
.price { font-size: 2.6rem; font-weight: 750; letter-spacing: -0.03em; margin: 12px 0 4px; }
.price small { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.for { color: var(--muted); min-height: 3.2em; }
.plan ul { list-style: none; padding: 0; margin: 4px 0 24px; }
.plan li { padding: 7px 0 7px 26px; position: relative; border-top: 1px solid var(--line); font-size: .97rem; }
.plan li::before { content: ""; position: absolute; left: 3px; top: 15px; width: 11px; height: 6px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
.plan .btn { margin-top: auto; }
.under { list-style: none; padding: 0; margin: 28px 0 8px; display: grid; gap: 10px; max-width: 80ch; }
.under li { padding-left: 18px; border-left: 3px solid var(--teal); }
.draft-note { color: var(--muted); font-size: .9rem; }
.compare { padding-top: 56px; padding-bottom: 32px; }
.table-wrap { overflow-x: auto; margin: 16px 0 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .95rem; }
caption { text-align: left; padding: 12px 14px 0; color: var(--muted); font-size: .85rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: .85rem; color: var(--muted); font-weight: 650; }
tbody tr:last-child > * { border-bottom: 0; }
tbody th { font-weight: 650; }
tr.us { background: var(--teal-soft); }
.faq.wrap { padding-top: 48px; }

/* prose: legal, alternatives */
.prose { max-width: 820px; padding-top: 48px; padding-bottom: 72px; }
.prose h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.03em; }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose li { max-width: 72ch; }
.prose li { margin-bottom: .35em; }
.crumb { color: var(--muted); font-size: .9rem; }
.crumb a { color: var(--muted); }
.callout { border-left: 3px solid var(--amber); background: var(--amber-soft); padding: 12px 16px; border-radius: 0 10px 10px 0; margin: 0 0 1.2em; }
.callout p:last-child { margin: 0; }
.alt-cta { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.nf { padding-bottom: 120px; }
.nf .btn { margin-right: 18px; }

/* docs */
.docs { display: grid; gap: 24px; padding-top: 28px; padding-bottom: 80px; }
.docs-side { display: none; }
@media (min-width: 980px) {
  .docs { grid-template-columns: 250px minmax(0, 1fr); gap: 56px; padding-top: 40px; }
  .docs-side { display: block; position: sticky; top: 76px; align-self: start; max-height: calc(100vh - 92px); overflow-y: auto; padding-right: 8px; }
  .docs-menu { display: none; }
}
.docs-menu { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.docs-menu summary { padding: 12px 14px; font-weight: 650; cursor: pointer; }
.docs-menu .docs-nav { padding: 0 14px 14px; }
.grp { margin-top: 18px; }
.grp-h { font-size: .82rem; font-weight: 700; color: var(--muted); margin: 0 0 4px; }
.grp ul { list-style: none; margin: 0; padding: 0; }
.grp a { display: block; padding: 5px 10px; margin-left: -10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .95rem; }
.grp a:hover { background: var(--sunk); }
.grp a[aria-current] { background: var(--teal-soft); color: var(--teal); font-weight: 650; }
.docs-lang { font-size: .82rem; color: var(--muted); margin-top: 20px; }
.search { position: relative; }
.search input { width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; background: var(--surface); color: var(--ink); font: inherit; font-size: .95rem; }
.results { position: absolute; z-index: 10; left: 0; right: 0; top: 46px; list-style: none; margin: 0; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px -16px rgb(0 0 0 / .4); max-height: 60vh; overflow: auto; }
.results a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.results a:hover, .results a[aria-selected="true"] { background: var(--sunk); }
.results small { display: block; color: var(--muted); font-size: .8rem; }
.results .none { padding: 8px 10px; color: var(--muted); font-size: .9rem; }
@media (min-width: 980px) { .docs-main .results, .docs-side .results { width: 420px; } }
.doc { max-width: 760px; }
.doc h1 { font-size: clamp(2rem, 4.6vw, 2.9rem); letter-spacing: -0.03em; }
.doc h2 { font-size: 1.45rem; margin-top: 1.9em; }
.doc h3 { margin-top: 1.4em; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: .4em; }
.toc { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 8px 0 24px; background: var(--surface); }
.toc p { font-weight: 650; font-size: .9rem; margin: 0 0 4px; }
.toc ul { margin: 0; padding-left: 1.1em; columns: 2 200px; font-size: .93rem; }
.steps { position: relative; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 14px 16px 6px; margin: 0 0 1.2em; }
.steps ol { margin: 0; padding-left: 1.4em; }
.steps li { padding-right: 4px; }
.steps li::marker { font-weight: 700; color: var(--teal); }
.copy { float: right; margin: -4px -6px 6px 12px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; }
.copy:hover { border-color: var(--teal); color: var(--teal); }
.copy[data-done] { background: var(--teal-soft); color: var(--teal); border-color: var(--teal); }
.doc-groups { display: grid; gap: 8px 40px; }
@media (min-width: 760px) { .doc-groups { grid-template-columns: 1fr 1fr; } }
.doc-groups ul { list-style: none; padding: 0; }
.doc-groups li { margin-bottom: 14px; }
.doc-groups li a { font-weight: 650; }
.doc-groups li p { margin: 2px 0 0; color: var(--muted); font-size: .93rem; }
.pn { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); }
.pn a { display: flex; flex-direction: column; text-decoration: none; font-weight: 650; max-width: 48%; }
.pn small { color: var(--muted); font-weight: 450; }
.pn .nx { text-align: right; margin-left: auto; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 40px 0 28px; background: var(--surface); }
.foot-in { max-width: 1160px; margin: 0 auto; padding: 0 16px; display: grid; gap: 24px; }
@media (min-width: 720px) { .foot-in { padding: 0 32px; grid-template-columns: 1fr 1.4fr; } }
.foot-brand p { color: var(--muted); font-size: .9rem; max-width: 42ch; margin-top: 10px; }
.foot nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 20px; align-content: start; }
.foot nav a { color: var(--ink); text-decoration: none; font-size: .93rem; }
.foot nav a:hover { color: var(--teal); }
.fine { max-width: 1160px; margin: 28px auto 0; padding: 0 16px; color: var(--muted); font-size: .8rem; }
@media (min-width: 720px) { .fine { padding: 0 32px; } }

/* ---------------- family site ---------------- */
.nav a[aria-current] { color: var(--teal); }
.nav small { font-size: .72rem; font-weight: 650; color: var(--plum); background: var(--plum-soft); padding: 1px 7px; border-radius: 999px; margin-left: 4px; vertical-align: 1px; }
.kicker { font-size: .9rem; font-weight: 700; color: var(--teal); letter-spacing: .01em; margin-bottom: .8em; }
.btn-soon { background: var(--plum-soft); color: var(--plum); border-color: transparent; cursor: default; }
.btn-soon:hover { background: var(--plum-soft); color: var(--plum); border-color: transparent; }

/* app bar: second header row */
.appbar { border-top: 1px solid var(--line); }
.appbar-in { max-width: 1160px; margin: 0 auto; padding: 6px 16px; display: flex; align-items: center; gap: 6px 16px; flex-wrap: wrap; }
@media (min-width: 720px) { .appbar-in { padding: 6px 32px; } }
.appbar-name { font-weight: 750; color: var(--ink); text-decoration: none; font-size: .95rem; }
.appbar nav { display: flex; gap: 2px; overflow-x: auto; max-width: 100%; }
.appbar nav a { color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 550; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.appbar nav a:hover { color: var(--ink); background: var(--sunk); }
.appbar nav a[aria-current] { color: var(--ink); background: var(--sunk); font-weight: 650; }
.soon-chip { font-size: .75rem; font-weight: 700; color: var(--plum); background: var(--plum-soft); padding: 2px 9px; border-radius: 999px; }
.soon-bar { margin: 0; padding: 8px 16px; background: var(--plum-soft); color: var(--ink); font-size: .88rem; text-align: center; }

/* family home */
.fam-hero .lede { max-width: 58ch; }
.fam-hero h1 { max-width: 18ch; }
.apps { padding: 64px 0; }
@media (min-width: 980px) { .apps { padding: 88px 0; } }
.app-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 720px) { .app-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .app-grid { grid-template-columns: repeat(3, 1fr); } }
.app-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.app-card:not(.is-soon):not(.is-later) { border: 2px solid var(--ink); }
.app-card .job { font-size: 1.05rem; font-weight: 650; color: var(--muted); margin-bottom: .6em; }
.app-card h3 { font-size: 1.35rem; }
.app-card h3 a { color: var(--ink); text-decoration: none; }
.app-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 18px; }
.app-card h3 a:hover { color: var(--teal); }
.app-card p { color: var(--muted); }
.app-price { font-weight: 650; color: var(--ink) !important; font-size: .95rem; }
.app-status { margin-top: auto; align-self: start; font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--teal-soft); color: var(--teal); }
.is-soon .app-status { background: var(--plum-soft); color: var(--plum); }
.is-later { background: transparent; border-style: dashed; }
.is-later .app-status { background: var(--sunk); color: var(--muted); }
.fit-in { display: grid; gap: 24px; align-items: center; }
@media (min-width: 980px) { .fit-in { grid-template-columns: 1fr 1.5fr; gap: 48px; } }
.eco { margin: 0; }
.eco svg { width: 100%; height: auto; display: block; color: var(--muted); }
.eco rect { stroke-width: 1.5; }
.eco .t1 { font: 650 15px var(--font); fill: var(--ink); }
.eco .t2 { font: 400 13px var(--font); fill: var(--muted); }
.eco-src rect, .eco-ch rect { fill: var(--paper); stroke: var(--line); }
.eco-app rect { fill: var(--teal-soft); stroke: var(--teal); }
.eco-core > rect { fill: var(--paper); stroke: var(--ink); stroke-width: 2; }
.eco-ring rect { fill: var(--teal-soft); stroke: var(--teal); }
.eco-led rect { fill: var(--amber-soft); stroke: var(--amber); }
.eco-soon rect { fill: var(--plum-soft); stroke: var(--plum); stroke-dasharray: 5 4; }
.eco-ln { stroke: currentColor; stroke-width: 2; fill: none; }
.eco-dash { stroke-dasharray: 5 4; }
.eco figcaption { color: var(--muted); font-size: .92rem; margin-top: 10px; }

/* app landing */
.problem { padding: 56px 0; }
@media (min-width: 980px) { .problem { padding: 80px 0; } }
.problem-in { display: grid; gap: 8px 48px; }
@media (min-width: 980px) { .problem-in { grid-template-columns: 1fr 1.6fr; } }
.problem p { font-size: 1.1rem; color: var(--muted); max-width: 62ch; }
.fgrid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
@media (min-width: 720px) { .fgrid { grid-template-columns: repeat(2, 1fr); } }
.fgrid li { background: var(--paper); padding: 22px; }
.fgrid p { color: var(--muted); margin-bottom: .5em; }
.fgrid a { font-weight: 600; font-size: .93rem; }
.fgrid-short h3 { margin: 0; font-weight: 600; }
.trust-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.trust-list h3 { margin-bottom: .3em; }
.trust-list p { margin: 0; opacity: .85; }
.trust .diff { background: color-mix(in srgb, var(--band-ink) 8%, transparent); border-color: color-mix(in srgb, var(--band-ink) 25%, transparent); color: var(--band-ink); }
.trust .diff dl div { background: transparent; border-color: color-mix(in srgb, var(--band-ink) 25%, transparent); }
.trust .diff dt, .trust .diff p { color: var(--band-ink); opacity: .75; }
.held { margin-top: 28px; background: var(--paper); color: var(--ink); border-radius: 14px; padding: 16px; border-left: 5px solid var(--amber); max-width: 520px; }
.held-h { font-weight: 650; display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.st-held { background: var(--amber-soft); color: var(--amber); }
.held-msg { color: var(--muted); margin-bottom: 12px; }
.held-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.held-btns .btn { cursor: default; }
.held-btns .btn:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.held-btns .btn-quiet:hover { background: transparent; color: var(--ink); }
.captions { margin: 24px 0 0; padding-left: 1.3em; display: grid; gap: 12px; max-width: 72ch; }
.captions li::marker { font-weight: 700; color: var(--teal); }
.captions b { font-weight: 650; }
.shot { margin: 0; }
.shot img { width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgb(10 30 40 / .45); }
.alt-page .soon { color: var(--muted); font-size: .9rem; margin-top: 12px; }
.doc-apps h2 a { color: var(--ink); text-decoration: none; }
.docs-app { margin: 16px 0 0; font-weight: 750; }
.docs-app a { color: var(--ink); text-decoration: none; }

/* bundle editor visual */
.bx, .fx { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; box-shadow: 0 30px 60px -40px rgb(10 30 40 / .45); min-width: 0; }
@media (min-width: 720px) { .bx, .fx { padding: 22px; } }
.bx-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.bx-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bx-icon { width: 40px; height: 40px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); }
.bx-title b, .fx-head b { display: block; font-size: 1.05rem; }
.bx-title small, .fx-head small { display: block; color: var(--muted); font-size: .82rem; }
.bx-can { text-align: right; flex: none; }
.bx-can small { display: block; color: var(--muted); font-size: .78rem; }
.bx-can strong { font-size: 2.1rem; font-weight: 750; letter-spacing: -0.03em; line-height: 1; }
.bx-row { display: grid; grid-template-columns: minmax(0, 1fr) 52px 52px 52px; gap: 6px; align-items: center; padding: 10px 8px; border-radius: 10px; }
@media (min-width: 720px) { .bx-row { grid-template-columns: minmax(0, 1fr) 76px 70px 70px; padding: 11px 12px; } }
.bx-row + .bx-row { border-top: 1px solid var(--line); }
.bx-th { color: var(--muted); font-size: .72rem; font-weight: 600; padding-top: 0; }
.bx-th span:not(:first-child) { text-align: right; }
.bx-row b { display: block; font-weight: 600; font-size: .92rem; line-height: 1.25; }
.bx-row small { display: block; font-family: var(--mono); font-size: .7rem; color: var(--muted); }
.bx-row small em { font-family: var(--font); font-style: normal; font-weight: 650; color: var(--plum); }
.bx-row .bar { display: block; height: 5px; margin-top: 7px; border-radius: 3px; background: var(--sunk); position: relative; }
.bx-row .bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 3px; background: var(--teal); }
.is-limit { background: var(--plum-soft); }
.is-limit .bar::after { background: var(--plum); }
.bx-foot, .fx-verdict { margin-top: 12px; padding: 12px 12px 2px; border-top: 1px dashed var(--line); font-size: .88rem; color: var(--muted); display: flex; gap: 8px; align-items: baseline; }
.bx-foot .dot { background: var(--teal); flex: none; }

/* feed mapping visual */
.fx-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.fx-file { flex: none; width: 44px; height: 52px; border-radius: 6px 14px 6px 6px; background: var(--teal-soft); color: var(--teal); display: grid; place-items: end center; padding-bottom: 8px; font: 700 .68rem var(--mono); }
.fx-h { font-size: .78rem; font-weight: 700; color: var(--muted); margin: 14px 0 6px; text-transform: uppercase; letter-spacing: .04em; }
.fx-grid { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: .82rem; }
.fx-row { display: grid; grid-template-columns: 1.25fr 1fr .9fr; }
@media (min-width: 560px) { .fx-row { grid-template-columns: 1.15fr 1.4fr 1fr .8fr; } }
.fx-row > span { padding: 7px 9px; border-top: 1px solid var(--line); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-row > span:nth-child(2) { display: none; }
@media (min-width: 560px) { .fx-row > span:nth-child(2) { display: block; } }
.fx-map > span { border-top: 0; white-space: normal; }
.fx-map code { display: block; background: none; padding: 0; font-size: .78rem; }
.fx-map em { display: inline-block; margin-top: 4px; font-style: normal; font-size: .7rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--sunk); color: var(--muted); }
.fx-map .on em { background: var(--teal); color: #fff; }
.fx-row .on { background: var(--teal-soft); }
.fx-row .off { color: var(--muted); }
.fx-row .to { color: var(--teal); font-weight: 700; }
.fx-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fx-checks li { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 2px 8px; align-items: baseline; font-size: .86rem; }
.fx-checks b { text-align: right; font-weight: 650; }
.fx-checks small { grid-column: 2 / 4; color: var(--muted); font-size: .74rem; margin-top: -2px; }
.fx-checks .ok { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); font-size: .72rem; font-weight: 800; }
.fx-verdict { color: var(--teal); font-weight: 650; }
.fx-verdict .dot { flex: none; }
.fx-row > span:nth-child(3) { white-space: normal; }
.fgrid + .note { margin-top: 16px; }
