/* tariffbell.shop: calm paper, deep red accent, tabular figures for tariff items and rates. */
:root {
  --accent: #8f2d2d;
  --accent-ink: #7a2525;
  --accent-soft: #f6eaea;
  --ink: #1d1b19;
  --ink-2: #4a4541;
  --muted: #6b645e;
  --line: #e6e0d9;
  --line-2: #d6cfc6;
  --paper: #faf8f5;
  --card: #ffffff;
  --ok: #2f6b45;
  --ok-soft: #e8f2ec;
  --warn: #8a5a12;
  --warn-soft: #fbf1df;
  --radius: 12px;
  --font: system-ui, -apple-system, "Segoe UI", "Noto Sans", "Noto Sans JP", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.65; font-size: 16px; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -0.01em; margin: 0 0 .5em; text-wrap: balance; }
p, li, summary { text-wrap: pretty; }
h1 { font-size: clamp(2rem, 5.2vw, 3.1rem); font-weight: 750; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); font-weight: 720; }
h3 { font-size: 1.08rem; font-weight: 680; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); margin-inline: auto; }
.mono, .item { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.eyebrow { font-size: .95rem; font-weight: 650; color: var(--accent); margin-bottom: .6rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: .7em 1.3em; border-radius: 999px; border: 1px solid transparent; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-small { min-height: 44px; padding: .45em 1.1em; font-size: .92rem; }
.btn[disabled] { opacity: .6; cursor: default; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; }

/* nav */
.site-nav { position: sticky; top: 0; z-index: 10; background: rgba(250, 248, 245, .92); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--line); }
.site-nav .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--ink); font-weight: 750; font-size: 1.12rem; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-size: .95rem; padding: 10px 0; }
.nav-links a:hover { color: var(--ink); }
.nav-links .btn { color: #fff; padding: .45em 1.1em; }
.nav-hide { display: none; }
@media (min-width: 760px) { .nav-hide { display: inline; } }

/* header */
.hero { padding: 64px 0 40px; }
.hero-grid { display: grid; gap: 44px; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1fr 1.12fr; align-items: center; gap: 56px; } .hero { padding: 88px 0 72px; } }
.hero .sub { font-size: 1.12rem; color: var(--ink-2); max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 26px; }
.cta-note { color: var(--muted); font-size: .92rem; }

/* the product screen */
.screen { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 1px 0 rgba(0,0,0,.02), 0 18px 40px -24px rgba(60, 30, 20, .28); overflow: hidden; }
.screen-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fcfbf9; font-size: .82rem; color: var(--muted); }
.screen-bar strong { color: var(--ink); font-weight: 650; }
.sample-tag { font-size: .8rem; font-weight: 650; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row .item { font-size: .98rem; font-weight: 600; }
.row .origin { color: var(--muted); font-size: .85rem; margin-left: 6px; font-family: var(--font); font-weight: 400; }
.row .where { grid-column: 1 / -1; font-size: .84rem; color: var(--ink-2); }
.row .relief { grid-column: 1 / -1; font-size: .84rem; color: var(--warn); background: var(--warn-soft); border-radius: 8px; padding: 6px 10px; margin-top: 4px; }
.rate { font-variant-numeric: tabular-nums; font-weight: 750; font-size: 1.02rem; text-align: right; white-space: nowrap; }
.rate small { display: block; font-weight: 500; font-size: .78rem; color: var(--muted); }
.pill { display: inline-block; border-radius: 999px; padding: 1px 10px; font-size: .8rem; font-weight: 650; }
.pill-red { background: var(--accent-soft); color: var(--accent-ink); }
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.screen-foot { padding: 12px 16px; font-size: .8rem; color: var(--muted); background: #fcfbf9; border-top: 1px solid var(--line); }
.demo { display: grid; gap: 8px; grid-template-columns: 1fr auto auto; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fff; }
.demo input, .demo select { min-height: 40px; }
@media (max-width: 520px) { .demo { grid-template-columns: 1fr 1fr; } .demo input { grid-column: 1 / -1; } }

/* sections */
section { padding: 52px 0; }
@media (min-width: 820px) { section { padding: 72px 0; } }
.section-head { max-width: 44em; margin-bottom: 36px; }
.section-head p { color: var(--ink-2); font-size: 1.05rem; }
.alt { background: #f4f0eb; border-block: 1px solid var(--line); }
.steps { display: grid; gap: 18px; counter-reset: step; list-style: none; margin: 0; padding: 0; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 18px; }
.steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: .9rem; margin-bottom: 12px; }
.steps p { color: var(--ink-2); margin: 0; font-size: .96rem; }
.stats { display: grid; gap: 14px; margin-top: 32px; }
@media (min-width: 820px) { .stats { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.stat { border-top: 2px solid var(--accent); padding-top: 12px; }
.stat b { display: block; font-size: 1.6rem; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.stat span { color: var(--ink-2); font-size: .92rem; }
.stat a { font-size: .82rem; }

.features { display: grid; gap: 20px; }
@media (min-width: 860px) { .features { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature p { color: var(--ink-2); font-size: .97rem; }
.feature h3 { display: flex; align-items: center; gap: 10px; }
.feature h3 svg { flex: none; }
.mail { border-left: 3px solid var(--accent); padding: 2px 0 2px 14px; font-size: .9rem; color: var(--ink-2); }
.mail .mail-h { font-weight: 650; color: var(--ink); margin-bottom: 6px; }
.mail ul { margin: 6px 0 0; padding-left: 18px; }
.changes { list-style: none; margin: 0; padding: 0; }
.changes li { display: grid; grid-template-columns: 7.2em 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.changes li:last-child { border-bottom: 0; }
.changes time { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .86rem; padding-top: 1px; }
.who { display: grid; gap: 12px; margin-top: 36px; list-style: none; padding: 0; }
@media (min-width: 820px) { .who { grid-template-columns: repeat(2, 1fr); gap: 14px 32px; } }
.who li { padding-left: 18px; position: relative; color: var(--ink-2); }
.who li::before { content: ""; position: absolute; left: 0; top: .68em; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
.who b { color: var(--ink); }

.price-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 32px; max-width: 520px; }
.price { font-size: 3rem; font-weight: 780; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.price small { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.ticks { list-style: none; padding: 0; margin: 22px 0 26px; }
.ticks li { padding: 7px 0 7px 28px; position: relative; color: var(--ink-2); border-bottom: 1px dashed var(--line); }
.ticks li:last-child { border-bottom: 0; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-weight: 650; position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 13px; font-size: 1.3rem; color: var(--accent); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); margin: 0 0 18px; }
.sources { list-style: none; padding: 0; margin: 0 0 18px; }
.sources li { padding: 6px 0; color: var(--ink-2); }

.band { background: var(--accent); color: #fff; text-align: center; padding: 72px 0; }
.band h2 { color: #fff; }
.band p { color: rgba(255,255,255,.86); }
.band .btn-primary { background: #fff; color: var(--accent); }
.band .btn-primary:hover { background: #f6eaea; color: var(--accent-ink); }

.site-foot { padding: 40px 0 56px; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); }
.site-foot .wrap { display: grid; gap: 14px; }
.site-foot a { color: var(--ink-2); }
.syng-legal-links a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding: 0 4px; }

/* forms and app */
label { display: block; font-weight: 600; font-size: .93rem; margin: 0 0 6px; }
input, select, textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; min-height: 44px; }
textarea { min-height: 140px; font-family: var(--mono); font-size: .93rem; line-height: 1.6; resize: vertical; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible, summary:focus-visible, .link-btn:focus-visible { outline: 3px solid rgba(143, 45, 45, .3); outline-offset: 2px; border-color: var(--accent); }
.field { margin-bottom: 18px; }
.hint { color: var(--muted); font-size: .86rem; margin-top: 6px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.auth { min-height: calc(100vh - 64px); display: grid; place-items: start center; padding: 56px 20px; }
.auth .card { width: min(440px, 100%); }
.msg { border-radius: 10px; padding: 10px 14px; font-size: .93rem; margin: 0 0 16px; }
.msg-err { background: var(--accent-soft); color: var(--accent-ink); }
.msg-ok { background: var(--ok-soft); color: var(--ok); }
.msg-info { background: #f2efe9; color: var(--ink-2); }
.msg:empty { display: none; }
.app-main { padding: 36px 0 72px; }
.app-grid { display: grid; gap: 24px; }
.app-grid > * { min-width: 0; }
@media (min-width: 1000px) { .app-grid { grid-template-columns: 360px minmax(0, 1fr); align-items: start; } }
.app-main p.small { max-width: 70ch; }
.table-wrap { overflow-x: auto; }
.results { width: 100%; border-collapse: collapse; font-size: .93rem; }
.results th { text-align: left; font-size: .85rem; color: var(--muted); font-weight: 650; padding: 10px 12px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.results td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.results td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.results .sub-row td { padding-top: 0; border-bottom: 1px solid var(--line); }
@media (max-width: 700px) {
  .results thead { display: none; }
  .results, .results tbody { display: block; }
  .results tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .results td { display: block; padding: 2px 0; border: 0; }
  .results tr > td:nth-child(1) { grid-column: 1; grid-row: 1; }
  .results tr > td:nth-child(2) { grid-column: 1; grid-row: 2; color: var(--muted); font-size: .88rem; }
  .results tr > td:nth-child(3) { grid-column: 2; grid-row: 1 / span 2; }
  .results tr > td:nth-child(4) { grid-column: 1 / -1; padding-top: 6px; }
  .results tr > td:nth-child(5) { grid-column: 1 / -1; text-align: left; }
  .results tr.sub-row { display: block; padding: 0 0 12px; }
  .results tr.sub-row td { padding: 0; border: 0; }
  .results tr:has(+ .sub-row) { border-bottom: 0; }
}
.totals { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 6px 0 18px; }
.totals div b { display: block; font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.totals div span { color: var(--muted); font-size: .85rem; }
.banner { border-radius: 12px; padding: 14px 18px; margin-bottom: 20px; display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; }
.banner-info { background: #f2efe9; }
.banner-warn { background: var(--warn-soft); color: var(--warn); }
.relief-box { background: var(--warn-soft); border-radius: 10px; padding: 12px 14px; margin-top: 8px; font-size: .9rem; color: #5d3d0c; }
.relief-box pre { white-space: pre-wrap; font-family: var(--font); font-size: .86rem; background: #fff; border: 1px solid #efdcb8; border-radius: 8px; padding: 10px 12px; max-height: 260px; overflow: auto; }
.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.list-plain li:last-child { border-bottom: 0; }
.kv { display: grid; grid-template-columns: minmax(4.5em, 8em) minmax(0, 1fr); gap: 8px 16px; }
.kv > * { overflow-wrap: anywhere; min-width: 0; }
#plan-state { max-width: 65ch; }
.danger { color: var(--accent-ink); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
