/* taxprotecc website. Brand guide: docs/brand/README.md.
   Mobile first: the base rules are for a phone; wider screens add to them with min-width queries. */
:root {
  color-scheme: light dark;
  --bg: #F5F7FA;
  --surface: #FFFFFF;
  --ink: #0A2540;          /* brand navy: text, logo shield */
  --ink-2: #2B3A52;
  --muted: #5A667A;
  --line: #E1E6EE;
  --accent: #047857;       /* protect green: links, primary button (5.5:1 on white) */
  --accent-hover: #065F46;
  --accent-soft: #E6F6EF;
  --on-accent: #FFFFFF;
  --band: #0A2540;         /* dark trust band */
  --band-ink: #E8EEF6;
  --band-muted: #B8C4D6;
  --warn-bg: #FFF4E0;
  --warn-fg: #6B4100;
  --info-bg: #EEF3FB;
  --info-fg: #1E3A6B;
  --focus: #1F6FEB;
  --radius: 14px;
  --radius-sm: 10px;
  --wrap: 68rem;
  --shadow: 0 10px 32px rgba(10, 37, 64, .10);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07111F;
    --surface: #0E1B2E;
    --ink: #E8EEF6;
    --ink-2: #C5D0DF;
    --muted: #93A0B4;
    --line: #1F2E45;
    --accent: #34D399;
    --accent-hover: #6EE7B7;
    --accent-soft: #0F2E26;
    --on-accent: #04241A;
    --band: #0F2E26;
    --band-ink: #E8EEF6;
    --band-muted: #B7D7CB;
    --warn-bg: #2E2410;
    --warn-fg: #F2CF8E;
    --info-bg: #142238;
    --info-fg: #B9CDEE;
    --focus: #6EA8FF;
    --shadow: 0 10px 32px rgba(0, 0, 0, .35);
  }
}

/* base (phone) */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
h1 { font-size: clamp(1.9rem, 7vw, 3rem); line-height: 1.15; margin: 0 0 16px; letter-spacing: -.015em; }
h2 { font-size: clamp(1.4rem, 5vw, 2rem); line-height: 1.25; margin: 0 0 12px; letter-spacing: -.01em; }
h3 { font-size: 1.1rem; margin: 0 0 8px; }
section { padding: 32px 0; }

/* header: logo and a menu button on phones, the full row from 760px */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; padding-top: 6px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); text-decoration: none; font-size: 1.15rem; letter-spacing: -.01em; min-height: 44px; }
.brand img { width: 32px; height: 32px; }
.brand picture { display: flex; }
.brand .brand-wordmark img { width: auto; height: 28px; }
/* Phones: a menu button (a hidden checkbox and its label, so it works without any script). */
.nav-toggle { position: absolute; opacity: 0; width: 44px; height: 44px; margin: 0; right: 16px; top: 8px; cursor: pointer; }
.nav-button { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-weight: 700; color: var(--ink); cursor: pointer; }
.nav-toggle:focus-visible + .nav-button { outline: 3px solid var(--focus); outline-offset: 2px; }
.bars, .bars::before, .bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; }
.bars::after { top: 6px; }
.nav-toggle:checked + .nav-button .bars { background: transparent; }
.nav-toggle:checked + .nav-button .bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle:checked + .nav-button .bars::after { top: 0; transform: rotate(-45deg); }
.site-nav { display: none; flex-direction: column; align-items: stretch; width: 100%; padding: 4px 0 12px; }
.nav-toggle:checked ~ .site-nav { display: flex; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 1rem; padding: 12px 4px; min-height: 44px; border-bottom: 1px solid var(--line); }
.site-nav a:hover { color: var(--accent); }
.site-nav .lang { border-bottom: 0; }
.site-footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 28px 0 40px; color: var(--muted); font-size: .9rem; }
.site-footer p { margin: 0 0 8px; }

/* landing */
.hero { padding: 32px 0 24px; }
.hero .wrap { display: grid; gap: 32px; align-items: start; }
.eyebrow { color: var(--accent); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; font-size: .78rem; margin: 0 0 12px; }
.lead { font-size: 1.08rem; color: var(--ink-2); margin: 0 0 20px; }
.actions { display: flex; flex-direction: column; gap: 10px; }
.btn { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 12px 20px; border-radius: var(--radius-sm); font-weight: 700; text-decoration: none; border: 1px solid var(--line); color: var(--ink); background: var(--surface); text-align: center; }
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: 0 6px 18px rgba(4, 120, 87, .25); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.note { color: var(--muted); font-size: .9rem; margin-top: 12px; }
.shot { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; box-shadow: var(--shadow); max-width: 380px; justify-self: center; margin: 0; }
.shot.wide { max-width: none; }
.shot img { border-radius: 8px; }
/* The app screenshot is tall: show its top part, so the hero text stays next to it. */
.hero .shot img { max-height: 560px; object-fit: cover; object-position: top; }
.mock { max-width: 420px; }
.result { background: var(--bg); border-radius: 8px; padding: 18px 16px; }
.result-h { margin: 0 0 10px; font-weight: 800; color: var(--ink); }
.result dl { margin: 0; }
.result dl div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.result dt { color: var(--ink-2); }
.result dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); }
.result .total { border-bottom: 0; margin-top: 6px; padding: 12px; background: var(--accent-soft); border-radius: var(--radius-sm); }
.result .total dt, .result .total dd { font-weight: 800; color: var(--ink); }
.result-f { margin: 12px 0 0; color: var(--muted); font-size: .9rem; }
.shot figcaption { color: var(--muted); font-size: .85rem; padding: 8px 4px 2px; }

/* trust strip: the security promise, in four short lines */
.trust { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 8px; }
.trust li { position: relative; padding-left: 28px; font-weight: 600; color: var(--ink-2); font-size: .95rem; }
.trust li::before { content: ""; position: absolute; left: 2px; top: .3em; width: 16px; height: 16px; border-radius: 50%; background: var(--accent-soft); }
.trust li::after { content: ""; position: absolute; left: 7px; top: .48em; width: 5px; height: 9px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }

.section-lead { color: var(--ink-2); max-width: 46rem; margin: 0 0 24px; }
.grid { display: grid; gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card p { margin: 0; color: var(--ink-2); }
.card .num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); font-size: 1.1rem; font-weight: 800; color: var(--accent); margin-bottom: 12px; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); margin-left: 6px; vertical-align: middle; }
.tag.soon { background: var(--warn-bg); color: var(--warn-fg); }
.privacy { background: var(--band); color: var(--band-ink); border-radius: var(--radius); padding: 24px 20px; position: relative; overflow: hidden; }
.privacy h2 { color: inherit; padding-right: 56px; }
.privacy::after { content: ""; position: absolute; right: 16px; top: 18px; width: 44px; height: 44px; background: url("/assets/logo/shield-dark.svg") center / contain no-repeat; }
.privacy p, .privacy li { color: var(--band-muted); }
.privacy strong { color: var(--band-ink); }
.privacy ul { padding-left: 20px; margin: 0; }
.privacy li { margin-bottom: 6px; }

/* reviews and partners: kept hidden until there is real content (see site/README.md) */
.reviews { display: grid; gap: 14px; }
.review { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.review p { margin: 0 0 10px; color: var(--ink-2); }
.review footer { color: var(--muted); font-size: .9rem; font-weight: 600; }
.partners { display: grid; gap: 14px; }
.partner { display: block; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 16px 18px; }
.ad-label { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; margin-bottom: 8px; }

/* guides */
.article { max-width: 46rem; margin: 0 auto; padding: 28px 16px 0; }
.article h1 { font-size: clamp(1.7rem, 6vw, 2.5rem); }
.article h2 { margin-top: 32px; font-size: 1.35rem; }
.article li { margin-bottom: 6px; }
.meta { color: var(--muted); font-size: .9rem; margin: 0 0 24px; }
.disclaimer, .callout { border-radius: var(--radius-sm); padding: 14px 16px; margin: 20px 0; font-size: .95rem; }
.disclaimer { background: var(--warn-bg); color: var(--warn-fg); }
.callout { background: var(--info-bg); color: var(--info-fg); }
.callout.privacy { background: var(--band); color: var(--band-muted); padding: 16px 64px 16px 16px; }
.callout.privacy::after { right: 14px; top: 14px; width: 36px; height: 36px; }
.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.total td { font-weight: 800; background: var(--accent-soft); }
.guide-list { list-style: none; padding: 0; margin: 0; }
.guide-list a { display: block; text-decoration: none; color: var(--ink); }
.guide-list a:hover h3 { color: var(--accent); }
.cta-box { margin: 36px 0 0; padding: 20px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid var(--line); }
.cta-box p { margin: 0 0 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 10px; }
.faq summary { font-weight: 700; cursor: pointer; min-height: 24px; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); }

/* quick check: file picker as a big tap target, results revealed row by row */
input[type="file"] { width: 100%; max-width: 32rem; padding: 14px; border: 2px dashed var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink-2); font: inherit; }
.ack { display: flex; gap: 12px; align-items: flex-start; padding: 14px; background: var(--warn-bg); color: var(--warn-fg); border-radius: var(--radius-sm); }
.ack input { width: 24px; height: 24px; flex: none; margin: 2px 0 0; accent-color: var(--accent); }
.ack label { cursor: pointer; }
input[type="file"]:disabled { opacity: .5; cursor: not-allowed; }
input[type="file"]:hover { border-color: var(--accent); }
.reveal { animation: tp-rise .42s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes tp-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reveal { animation: none; } }

/* wider screens */
@media (min-width: 560px) {
  .actions { flex-direction: row; flex-wrap: wrap; }
  .grid, .reviews, .partners { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .trust { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 760px) {
  body { font-size: 17px; }
  .site-header .wrap { flex-wrap: nowrap; min-height: 68px; padding-top: 0; }
  .nav-toggle, .nav-button { display: none; }
  .site-nav, .nav-toggle:checked ~ .site-nav { display: flex; flex-direction: row; align-items: center; width: auto; margin-left: auto; gap: 0 18px; padding: 0; }
  .site-nav a { border-bottom: 0; padding: 10px 0; min-height: 0; font-size: .95rem; }
  .site-nav .lang { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
  section { padding: 44px 0; }
  .card { padding: 22px; }
  .privacy { padding: 32px 120px 32px 32px; }
  .privacy::after { width: 72px; height: 72px; right: 32px; top: 32px; }
  .article { padding-top: 40px; }
}
@media (min-width: 960px) {
  .hero { padding: 64px 0 40px; }
  .hero .wrap { grid-template-columns: 1.1fr .9fr; gap: 48px; }
  .lead { font-size: 1.18rem; }
}
