/* Tab Cabinet site — one stylesheet, system fonts, colors shared with the extension (ui.css) */
:root {
  --bg: #f6f5f1; --card: #ffffff; --ink: #1d1d1b; --muted: #5f5e59; --faint: #8d8c86; --line: #e5e3dc; --hover: #f0eee8;
  --accent: #0b5e55; --accent-ink: #ffffff; --accent-soft: #e1efec; --accent-strong: #08463f;
  --pro: #8a5205; --pro-soft: #fdf0d9; --pro-line: #f0d7a8;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 10px 30px rgba(0,0,0,.08);
  --radius: 14px; --wrap: 1120px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171716; --card: #20201e; --ink: #ecebe6; --muted: #b2b1aa; --faint: #8a8983; --line: #33322f; --hover: #2a2a27;
    --accent: #3fb3a3; --accent-ink: #0d1f1c; --accent-soft: #143430; --accent-strong: #63c7b8;
    --pro: #e8b04f; --pro-soft: #3a2d14; --pro-line: #5a4520;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35);
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
code, kbd { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; font-size: .88em; }
code { background: var(--hover); border: 1px solid var(--line); border-radius: 6px; padding: .08em .35em; word-break: break-word; }
kbd { background: var(--card); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: .05em .4em; white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: var(--ink); text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.nav { margin-left: auto; display: flex; gap: 22px; }
.nav a { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav a:hover { color: var(--ink); }
@media (max-width: 640px) { .nav a.opt { display: none; } .nav { gap: 16px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px; border-radius: 12px;
  font-weight: 700; font-size: 1rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-strong); color: var(--accent-ink); }
.btn-pro { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-pro:hover { border-color: var(--pro-line); background: var(--pro-soft); color: var(--ink); }
.btn-pro .price { color: var(--pro); }
.btn.is-disabled { background: var(--hover); color: var(--faint); border-color: var(--line); cursor: not-allowed; pointer-events: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 10px; }
.status { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); margin: 6px 0 0; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #d39b2a; flex: none; }
.fine { font-size: .9rem; color: var(--muted); }

/* Hero */
.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 4px 12px; margin-bottom: 18px; }
.lead { font-size: 1.25rem; line-height: 1.5; color: var(--ink); max-width: 34em; }
.sub { color: var(--muted); max-width: 36em; }
.hero-shot { position: relative; min-height: 520px; }
.shot { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.hero-shot .popup { width: 360px; margin-left: auto; margin-right: 80px; }
.hero-shot .files { position: absolute; width: 300px; right: 0; bottom: -16px; }
.hero-shot figcaption, .feature figcaption, .figure figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .hero-shot { min-height: 0; }
  .hero-shot .popup { margin: 0 auto; width: min(360px, 100%); }
  .hero-shot .files { display: none; }
}

/* Sections */
section { scroll-margin-top: 72px; }
.band { padding: 72px 0; }
.band-alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.kicker { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }

/* Features */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 28px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature.flip .feature-text { order: 2; }
.feature-text h3 { font-size: 1.45rem; }
.feature-text ul { padding-left: 1.1em; margin: 0; color: var(--muted); }
.feature-text li { margin: .3em 0; }
.feature-media { display: grid; gap: 14px; justify-items: center; }
.feature-media .shot { width: min(380px, 100%); }
.feature-media .shot.wide { width: 100%; }
.pro-tag { display: inline-block; vertical-align: middle; font-size: .72rem; font-weight: 700; letter-spacing: .03em; color: var(--pro); background: var(--pro-soft); border: 1px solid var(--pro-line); border-radius: 999px; padding: 1px 8px; margin-left: 8px; }
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; gap: 22px; }
  .feature.flip .feature-text { order: 0; }
}

/* Why files */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.stat { display: flex; gap: 18px; align-items: baseline; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 20px; }
.stat b { font-size: 2.6rem; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); }
.quotes { display: grid; gap: 14px; }
.quote { background: var(--bg); border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 12px; padding: 14px 18px; margin: 0; }
.quote p { margin: 0 0 6px; }
.quote footer { font-size: .85rem; color: var(--muted); }
.stars { color: #c27c0e; letter-spacing: 1px; }
@media (max-width: 820px) { .why { grid-template-columns: 1fr; } }

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table { border-collapse: collapse; width: 100%; min-width: 720px; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
thead th { background: var(--hover); font-size: .9rem; }
tbody th { font-weight: 600; color: var(--muted); width: 18%; }
tr:last-child th, tr:last-child td { border-bottom: 0; }
td.us, th.us { background: var(--accent-soft); }
.yes { color: var(--accent); font-weight: 700; }
.no { color: var(--muted); font-weight: 700; }
.sources { font-size: .85rem; color: var(--muted); margin-top: 12px; }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr 300px; gap: 20px; align-items: start; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.plan.pro { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.plan h3 { display: flex; align-items: center; justify-content: space-between; }
.amount { font-size: 2.6rem; font-weight: 800; line-height: 1; margin: 8px 0 4px; }
.amount small { font-size: 1rem; font-weight: 600; color: var(--muted); margin-left: 6px; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 22px; }
.plan li { padding: 7px 0 7px 28px; position: relative; border-top: 1px solid var(--line); }
.plan li::before { content: ""; position: absolute; left: 4px; top: 14px; width: 12px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.plan .btn { width: 100%; }
.plans .figure .shot { width: 100%; }
.terms-box { margin-top: 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.terms-box div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; font-size: .95rem; }
.terms-box b { display: block; margin-bottom: 4px; }
@media (max-width: 980px) { .plans { grid-template-columns: 1fr 1fr; } .plans .figure { display: none; } }
@media (max-width: 680px) { .plans, .terms-box { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 650; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-size: 1.5rem; color: var(--accent); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 18px; color: var(--muted); }
.faq details > div p:last-child { margin-bottom: 0; }

/* Closing */
.closing { text-align: center; }
.closing .cta-row { justify-content: center; }
.closing .status { justify-content: center; }

/* Articles and legal pages */
.article { max-width: 760px; margin: 0 auto; padding: 48px 24px 72px; }
.article h1 { font-size: clamp(2rem, 4vw, 2.7rem); }
.article h2 { font-size: 1.5rem; margin-top: 2em; }
.article h3 { margin-top: 1.5em; }
.article ul, .article ol { padding-left: 1.3em; }
.article li { margin: .35em 0; }
.meta { color: var(--muted); font-size: .92rem; margin-bottom: 28px; }
.note { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; padding: 14px 18px; margin: 1.4em 0; }
.warn { border-left-color: #c27c0e; }
.figure { margin: 1.6em 0; }
.figure .shot { margin: 0 auto; }
.article .table-wrap table { min-width: 640px; }
.product-box { margin-top: 2.4em; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.product-box h2 { margin-top: 0; }
.legal h2 { font-size: 1.25rem; }
.legal ol, .legal ul { color: var(--ink); }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 20px; margin: 0 0 28px; font-size: .95rem; }
.toc ol { margin: 6px 0 0; }

/* Buy page */
.buy-card { max-width: 560px; margin: 0 auto; background: var(--card); border: 2px solid var(--accent); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--card); padding: 44px 0 32px; font-size: .92rem; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.site-footer h2 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.legal-line { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.legal-line strong { color: var(--ink); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.related { margin-top: 2.4em; border-top: 1px solid var(--line); padding-top: 18px; }
.related h2 { font-size: 1.1rem; margin: 0 0 8px; }
.related ul { margin: 0; }
pre { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; overflow-x: auto; font-size: .85rem; line-height: 1.5; }
pre code { background: none; border: 0; padding: 0; word-break: normal; }
/* Hero with the product open in Chrome */
.hero { padding: 56px 0 24px; }
.hero .wrap.hero-text { display: block; max-width: 820px; text-align: center; }
.hero-text .lead, .hero-text .sub { margin-left: auto; margin-right: auto; }
.hero-text .cta-row, .hero-text .status { justify-content: center; }
.hero-wide { margin: 28px auto 0; max-width: 1072px; }
.hero-wide img { width: 100%; height: auto; }
@media (max-width: 700px) {
  .hero { padding-top: 36px; }
  .hero-wide img { width: min(360px, 100%); margin: 0 auto; }
}
.hero > .wrap { display: block; }
.closing .sub { margin: 0 auto 1em; }
.feature-wide { margin: 0 0 12px; }
.feature-wide img { width: 100%; max-width: 980px; margin: 0 auto; }
.feature-wide figcaption { text-align: center; font-size: .85rem; color: var(--muted); margin-top: 8px; }
@media (max-width: 520px) {
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { width: 100%; }
}
.buy-card { margin: 0 0 8px; max-width: none; }
.buy-card h2 { margin-top: 0; }
.article .terms-box + p { margin-top: 16px; }
