/* Worksheets marketing pages (landing, terms, privacy). Builds on the tokens in base.css. */
.landing, .legal {
  --ink: #0d1f16;
  --ink-2: #44544b;
  --page: #ffffff;
  --page-alt: #f4f8f5;
  --line: #e1e8e3;
  --brand: #147a40;
  --brand-2: #0f6133;
  --brand-tint: #e6f3eb;
  --hero-glow: rgba(20, 122, 64, 0.10);
  height: auto;
  min-height: 100%;
  background: var(--page);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}
:root[data-theme="dark"] .landing, :root[data-theme="dark"] .legal {
  --ink: #eef3ef; --ink-2: #b4c2b9; --page: #141a16; --page-alt: #1a221d; --line: #2c3830;
  --brand: #3fb36f; --brand-2: #5cc888; --brand-tint: #1d3a29; --hero-glow: rgba(63, 179, 111, 0.14);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .landing, :root:not([data-theme="light"]) .legal {
    --ink: #eef3ef; --ink-2: #b4c2b9; --page: #141a16; --page-alt: #1a221d; --line: #2c3830;
    --brand: #3fb36f; --brand-2: #5cc888; --brand-tint: #1d3a29; --hero-glow: rgba(63, 179, 111, 0.14);
  }
}
html:has(body.landing), html:has(body.legal) { height: auto; scroll-behavior: smooth; scroll-padding-top: 76px; }
.landing *, .legal * { min-width: 0; }
.landing img { max-width: 100%; height: auto; display: block; }
.landing a, .legal a { color: var(--brand); }
.landing code { font-family: var(--mono); font-size: 0.9em; background: var(--brand-tint); color: var(--brand-2); padding: 1px 6px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--page); padding: 8px 12px; border-radius: 6px; }
.skip:focus { left: 16px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }

/* buttons */
.landing .btn, .legal .btn { height: auto; padding: 10px 18px; font-weight: 600; font-size: 15px; border-radius: 10px; text-decoration: none; color: var(--ink); border: 1px solid var(--line); background: var(--page); display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.landing .btn:hover { background: var(--page-alt); }
.landing .btn.primary, .legal .btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
:root[data-theme="dark"] .landing .btn.primary { color: #08140d; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .landing .btn.primary { color: #08140d; } }
.landing .btn.primary:hover { background: var(--brand-2); border-color: var(--brand-2); }
.landing .btn.ghost { border-color: transparent; background: transparent; }
.landing .btn.ghost:hover { background: var(--page-alt); }
.landing .btn.lg { padding: 14px 24px; font-size: 16px; }
.landing .btn.light { background: #fff; color: #0f6133; border-color: #fff; }
.landing .btn.light:hover { background: #eaf6ef; }
.landing [hidden] { display: none !important; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--page) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--ink) !important; text-decoration: none; letter-spacing: -0.01em; }
.logo small { font-weight: 500; font-size: 13px; color: var(--ink-2); margin-left: 2px; }
.nav-links { display: flex; gap: 4px; margin-left: 12px; }
.nav-links a { color: var(--ink-2) !important; text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 8px; }
.nav-links a:hover { color: var(--ink) !important; background: var(--page-alt); }
.nav-cta { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.menu-btn { display: none; width: 40px; height: 40px; color: var(--ink); }

/* hero */
.hero { position: relative; padding: 72px 0 32px; overflow: hidden; background: radial-gradient(1100px 520px at 50% -80px, var(--hero-glow), transparent 70%); }
.hero-copy { text-align: center; max-width: 900px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); margin: 0 0 14px; }
.hero h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1.06; letter-spacing: -0.03em; margin: 0 0 22px; font-weight: 800; }
.hero h1 span { color: var(--brand); }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); margin: 0 auto 30px; max-width: 720px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-points { list-style: none; padding: 0; margin: 22px 0 48px; display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; color: var(--ink-2); font-size: 15px; }
.hero-points li { display: inline-flex; align-items: center; gap: 6px; }
.hero-points svg, .ticks li::before { width: 18px; height: 18px; stroke: var(--brand); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.browser { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: 0 30px 80px -20px rgba(13, 31, 22, 0.28), 0 8px 20px -8px rgba(13, 31, 22, 0.12); }
.browser-bar { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; background: #eef1ef; border-bottom: 1px solid #dde3df; }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #f26b5b; }
.browser-bar i:nth-child(2) { background: #f6bd3b; }
.browser-bar i:nth-child(3) { background: #3fc14f; }
.browser-bar span { margin: 0 auto; transform: translateX(-24px); font-size: 12px; color: #5d6b63; background: #fff; border-radius: 6px; padding: 3px 14px; max-width: 60%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dark-frame { background: #1f1f1f; }
.dark-frame .browser-bar { background: #2a2a2a; border-bottom-color: #3a3a3a; }
.dark-frame .browser-bar span { background: #1f1f1f; color: #b8b8b8; }
.hero-shot { max-width: 1120px; margin: 0 auto; }
.caption { text-align: center; color: var(--ink-2); font-size: 14px; margin: 14px 0 0; }

/* strip */
.strip { padding: 40px 0; }
.strip-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-top: 28px; padding-bottom: 28px; }
.strip-in div { text-align: center; display: flex; flex-direction: column; gap: 2px; }
.strip-in b { font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.strip-in span { color: var(--ink-2); font-size: 14px; }

/* sections */
.section { padding: 96px 0; }
.section.alt { background: var(--page-alt); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section h2, .cta h2 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 16px; font-weight: 800; }
.section-head .lead { margin-bottom: 0; }

.feature { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; margin-bottom: 104px; }
.feature:last-child { margin-bottom: 0; }
.feature.flip { grid-template-columns: 7fr 5fr; }
.feature.flip .feature-copy { order: 2; }
.feature h3 { font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 14px; }
.feature p { color: var(--ink-2); margin: 0 0 18px; font-size: 17px; }
.ticks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--brand-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8' fill='none' stroke='%23147a40' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* devices */
.devices { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.device-stage { position: relative; display: flex; justify-content: center; align-items: flex-end; padding: 0 0 0 24px; }
.tablet, .phone { margin: 0; background: #111; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.45); }
.tablet { width: min(400px, 78%); border-radius: 26px; padding: 14px; }
.tablet img { border-radius: 14px; }
.phone { position: absolute; right: 0; bottom: -24px; width: min(200px, 38%); border-radius: 34px; padding: 9px; border: 1px solid #333; }
.phone img { border-radius: 26px; }

/* calculator */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 0; max-width: 960px; margin: 0 auto; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--page); box-shadow: 0 20px 50px -24px rgba(13, 31, 22, 0.25); }
.calc-in { padding: 36px; display: grid; gap: 18px; align-content: start; }
.field { display: grid; gap: 6px; }
.field > span { font-weight: 600; font-size: 14px; }
.landing .input { height: 46px; font-size: 17px; border-radius: 10px; padding: 0 14px; background: var(--page); border: 1px solid var(--line); color: var(--ink); width: 100%; }
.landing .input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.calc-in .small { margin: 0; font-size: 13px; }
.calc-out { background: linear-gradient(160deg, #147a40, #0c5530); color: #fff; padding: 36px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.calc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.18); font-size: 16px; }
.calc-row b { font-size: 24px; font-variant-numeric: tabular-nums; }
.calc-row b.zero { color: #b8f2cf; }
.calc-save { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.calc-save span { opacity: 0.85; font-size: 15px; }
.calc-save strong { font-size: clamp(40px, 6vw, 60px); line-height: 1.05; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }

/* compare */
.table-wrap { max-width: 960px; margin: 0 auto; overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); background: var(--page); }
.compare { width: 100%; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: none; }
.compare thead th { font-size: 14px; color: var(--ink-2); font-weight: 600; }
.compare thead th.us { color: var(--brand); font-size: 16px; font-weight: 800; }
.compare tbody th { font-weight: 600; white-space: nowrap; }
.compare td { color: var(--ink-2); }
.compare td.us { background: var(--brand-tint); color: var(--ink); }
.compare thead th.us { background: var(--brand-tint); }

/* trust */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.trust-card { border: 1px solid var(--line); border-radius: 16px; padding: 28px; background: var(--page); }
.trust-card svg { width: 40px; height: 40px; padding: 8px; border-radius: 10px; background: var(--brand-tint); stroke: var(--brand); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.trust-card h3 { margin: 16px 0 8px; font-size: 19px; }
.trust-card p { margin: 0; color: var(--ink-2); }

/* faq */
details { border-bottom: 1px solid var(--line); }
details summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-weight: 600; font-size: 18px; position: relative; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s; }
details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details p { margin: 0 0 22px; color: var(--ink-2); }

/* cta */
.cta { padding: 88px 0; background: linear-gradient(135deg, #0f6133, #147a40 55%, #1b9450); color: #fff; text-align: center; }
.cta-in p { font-size: 19px; opacity: 0.9; margin: 0 0 28px; }

/* footer */
.foot { padding: 64px 0 32px; border-top: 1px solid var(--line); background: var(--page); }
.foot-in { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.1fr 1fr 1.4fr; gap: 32px; }
.foot-brand p { color: var(--ink-2); font-size: 14px; margin: 12px 0 0; max-width: 300px; }
.foot h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); margin: 4px 0 12px; }
.foot-in > div:not(.foot-brand) { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.foot-in a:not(.logo) { color: var(--ink) !important; text-decoration: none; }
.foot-in a:not(.logo):hover { color: var(--brand) !important; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 13px; }

/* legal pages */
.legal-hero { padding: 72px 0 40px; background: radial-gradient(900px 400px at 50% -80px, var(--hero-glow), transparent 70%); text-align: center; }
.legal-hero h1 { font-size: clamp(32px, 5vw, 48px); letter-spacing: -0.025em; margin: 0 0 10px; }
.legal-hero p { color: var(--ink-2); margin: 0; }
.legal-body { padding: 16px 0 88px; }
.legal-body h2 { font-size: 22px; margin: 44px 0 12px; letter-spacing: -0.01em; scroll-margin-top: 84px; }
.legal-body h3 { font-size: 17px; margin: 24px 0 8px; }
.legal-body p, .legal-body li { color: var(--ink-2); }
.legal-body ul { padding-left: 22px; }
.legal-body li { margin-bottom: 6px; }
.legal-body strong { color: var(--ink); }
.toc { background: var(--page-alt); border: 1px solid var(--line); border-radius: 14px; padding: 22px 28px; margin: 32px 0 8px; }
.toc h4 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.toc li { margin-bottom: 4px; break-inside: avoid; }
.contact-box { background: var(--page-alt); border: 1px solid var(--line); border-radius: 14px; padding: 22px 28px; }
.contact-box p { margin: 0 0 4px; }
.legal .caps { text-transform: uppercase; font-size: 14px; letter-spacing: 0.01em; }

/* responsive */
@media (max-width: 980px) {
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 32px; margin-bottom: 72px; }
  .feature.flip .feature-copy { order: 0; }
  .devices { grid-template-columns: 1fr; }
  .device-stage { padding: 0 0 32px; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; background: var(--page); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; margin: 0; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; font-size: 16px; }
  .menu-btn { display: inline-flex; }
  .nav-cta .btn.ghost { display: none; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .nav-in { gap: 12px; }
  .logo small { display: none; }
  .nav-cta .btn { padding: 8px 12px; font-size: 14px; }
  .hero { padding-top: 44px; }
  .hero-points { gap: 10px 18px; margin-bottom: 32px; }
  .browser { border-radius: 10px; }
  .browser-bar { height: 26px; padding: 0 10px; gap: 5px; }
  .browser-bar i { width: 8px; height: 8px; }
  .browser-bar span { font-size: 10px; padding: 1px 10px; transform: translateX(-12px); }
  .strip-in { grid-template-columns: 1fr 1fr; gap: 24px 12px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }
  .calc { grid-template-columns: 1fr; }
  .calc-in, .calc-out { padding: 24px; }
  .trust { grid-template-columns: 1fr; }
  .compare th, .compare td { padding: 12px 14px; font-size: 14px; }
  .compare tbody th { white-space: normal; }
  .toc ol { columns: 1; }
  .cta { padding: 64px 0; }
}
@media (max-width: 420px) {
  .nav-cta [data-signed-out].btn.primary { padding: 8px 10px; }
  .foot-in { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html:has(body.landing) { scroll-behavior: auto; }
}
