/* Tern Files website, light content (Thomas, 18.11.2026): the dark app screenshots stand out on a light page.
   Header, mobile menu and footer stay dark (ut-core.css, site.css); everything inside <main> takes these tokens.
   Hallmark rules applied by hand: no italic accent word in a heading, no tracked-capital labels, colours as tokens,
   one reveal at most. Loaded after site.css. */

:root {
  --lt-bg: #f4f4ef;
  --lt-band: #e7f3ec;
  --lt-panel: #ffffff;
  --lt-stage: #e8eae1;
  --lt-line: #dcdcd3;
  --lt-line-2: #c6c6bd;
  --lt-text: #16161a;
  --lt-text-2: #45454c;
  --lt-text-3: #66666d;
  --lt-accent-text: #4a6410;
  --lt-accent-soft: rgba(110, 150, 20, 0.12);
  --lt-accent-line: rgba(74, 100, 16, 0.38);
  --lt-shadow: 0 30px 80px -40px rgba(22, 22, 26, 0.45), 0 8px 24px -12px rgba(22, 22, 26, 0.25);
}

/* The header is solid from the start: on a light page a transparent header would lose its white links. */
.ut-header { background: var(--ut-header-scrolled); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
:root { --ut-header-scrolled: rgba(11, 11, 13, 0.92); }
html { background: var(--lt-bg); }
body { overflow-x: clip; }
html { overflow-x: clip; }

main {
  color-scheme: light;
  --bg: var(--lt-bg); --bg-2: var(--lt-band); --panel: var(--lt-panel); --panel-2: var(--lt-panel);
  --stage: var(--lt-stage); --stage-line: var(--lt-line); --line: var(--lt-line); --line-2: var(--lt-line-2);
  --text: var(--lt-text); --text-2: var(--lt-text-2); --text-3: var(--lt-text-3);
  --accent-soft: var(--lt-accent-soft); --accent-line: var(--lt-accent-line);
  --ut-text: var(--lt-text); --ut-text-soft: var(--lt-text-2); --ut-text-mute: var(--lt-text-3);
  --ut-line: var(--lt-line); --ut-line-strong: var(--lt-line-2); --ut-bg-raise: var(--lt-panel);
  --ut-glass: rgba(22, 22, 26, 0.05); --ut-glass-line: rgba(22, 22, 26, 0.14);
  display: block; background: var(--lt-bg); color: var(--lt-text);
}

/* Text in the accent colour needs the dark lime on a light page; buttons keep the bright lime with dark text. */
main p a, main li a, main td a, main .prose a, main .link-more, main .cap-text .more { color: var(--lt-accent-text); }
main .pro-card .label, main .steps .n, main .section-head .n { color: var(--lt-accent-text); }

/* Every text in the accent colour: the dark lime on a light page (contrast). */
main :where(p a, li a, td a, .prose a) { color: var(--lt-accent-text); }
main :is(.label .n, .link-more, .offer li::before, .how .n, .cap-text .more, .cap-points li::before, .promise .icon, .yes::before, .steps .when, .pro-card .label, .pro-card .badge.launch-badge, .pro-card .launch-note, .pro-card .free-line::before, .pro-list li::before, .free-plan li::before, .plan li::before, .faq summary::after, .release h3, .guide-results span, .guide-nav .guide-home:hover, .guide-nav li ul a:hover, .pro-badge, .guide-card .n) { color: var(--lt-accent-text); }

/* One face, one style per heading. */
main em.accent, main h1 em, main h2 em, main h3 em {
  font-family: inherit; font-style: normal; font-weight: inherit; letter-spacing: inherit;
  padding: 0; margin: 0; background: none; -webkit-background-clip: border-box; background-clip: border-box;
  color: inherit; animation: none;
}

/* Labels in the body face, sentence case, untracked. */
main :is(.label, .link-more, .hero .eyebrow, .news-link .tag, .reel figcaption, .factbar, .facts dt, .cta .offer-note,
  .cap-text .more, table.compare thead th, .steps .when, .pro-card .badge, .pro-card .launch-note, .prose th, .option .badge,
  .specs dt, .release-meta .date, .release-meta .tag, .release h3, .guide-results span, .guide-nav .guide-home, .pro-badge,
  .guide-pager a span, table.compare td[data-label]::before) {
  font-family: var(--ut-sans); text-transform: none; letter-spacing: 0; font-size: 15px;
}
main .hero .eyebrow::before { content: none; }

/* No gradient mesh and no dark vignette on light pages. */
main .mesh, main .hero::after, main .page-head::after { display: none; }

/* Screenshots: the dark app on a light stage. */
main .shot { border-color: var(--lt-line-2); box-shadow: var(--lt-shadow); }
main .shot:hover { border-color: var(--lt-text-3); }
main .chapter-shot, main .chapter.flip .chapter-shot, main .news-card { background: var(--lt-band); }
main .chapter-shot .shot, main .news-card .shot { box-shadow: var(--lt-shadow); border-color: var(--lt-line-2); }

/* Surfaces that were dark glass become paper. */
main .pro-card, main .cta, main .promise, main .more-grid, main .option, main .subnav {
  background: var(--lt-panel); border-color: var(--lt-line); box-shadow: none;
}
main .cta { background: var(--lt-band); }
/* FAQ: plain rows on the page, hairlines between them, no boxes. */
main .faq { border-top-color: var(--lt-line-2); }
main .faq details { background: none; border-bottom-color: var(--lt-line-2); }
main .faq summary { padding-block: 22px; }
main .faq summary:hover { color: var(--lt-accent-text); }
main .link-more { font-size: 16px; font-weight: 500; text-decoration: underline; text-decoration-color: var(--lt-accent-line); text-underline-offset: 4px; }
main .faq summary::after { color: var(--lt-accent-text); }
main .subnav { background: rgba(244, 244, 239, 0.92); }
main table.compare tbody tr:hover { background: rgba(22, 22, 26, 0.03); }
main table.compare.alternatives td.ours { background: var(--lt-accent-soft); }
/* Bars are drawn at their measured length from the start (no animated width). */
main .meter .track { background: var(--lt-stage); }
main .meter .fill, .js main .reveal:not(.in) .meter .fill { width: var(--w) !important; transition: none; background: var(--lt-line-2); }
main .meter .tern .fill { background: var(--lt-accent-text); box-shadow: none; }

/* The scroll reveals become still: content is simply there. */
main .reveal, .js main .reveal, .js main .steps li, .js main [data-words] .w, .js main .hero h1 .w { opacity: 1; transform: none; filter: none; transition: none; }

/* Section heads: the headline from the first column (the numbered label is gone). */
main .section-head h2 { grid-column: 1 / span 10; }
main .section-head .section-intro { grid-column: 1 / span 7; }

/* ---------- Home page (A: the app is the star) ---------- */
.home-hero { padding: calc(var(--ut-header-h) + clamp(48px, 7vw, 96px)) 0 0; }
.home-hero h1 { font-size: clamp(44px, 6.6vw, 92px); line-height: 1; letter-spacing: -0.04em; font-weight: 600; margin: 0; max-width: 13ch; overflow-wrap: break-word; min-width: 0; }
.home-hero .lead { margin-top: 22px; max-width: 34rem; }
.home-hero .actions { margin-top: 32px; }
.home-hero .terms { margin: 18px 0 0; font-size: 15px; color: var(--lt-text-3); }
.home-hero .stage { margin-top: clamp(40px, 6vw, 64px); }
.home-hero .stage .shot { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; }
.home-row { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.home-row.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); }
.home-row h2, .home-wide h2, .home-close h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 600; margin: 0; overflow-wrap: break-word; min-width: 0; }
.home-row p, .home-close p { margin: 16px 0 0; color: var(--lt-text-2); font-size: 18px; }
.home-section { padding-block: clamp(64px, 9vw, 120px); border-top: 1px solid var(--lt-line); }
.home-section.band { background: var(--lt-band); border-top: 0; }
.home-wide h2 { max-width: 22ch; margin-bottom: 36px; }
.home-new { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); }
.home-new h3 { font-size: 24px; letter-spacing: -0.02em; margin: 0 0 10px; }
.home-new p { margin: 0; color: var(--lt-text-2); }
.home-row .home-price { font-size: clamp(64px, 9vw, 120px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; color: var(--lt-text); margin: 0 0 12px; font-variant-numeric: tabular-nums; }
.home-close .actions { margin-top: 28px; }
@media (max-width: 52rem) {
  .home-row, .home-row.flip, .home-new { grid-template-columns: minmax(0, 1fr); }
  .home-row.flip .home-text { order: 2; }
}
@media (prefers-reduced-motion: reduce) { main *, main *::before, main *::after { animation: none !important; transition: none !important; } }

/* Subpage heads: no label above the headline, and the content follows right below it. */
main .page-head .label { display: none; }
main .page-head .inner { padding-bottom: clamp(24px, 3vw, 40px); }
main .page-head + .section, main .page-head + section { padding-top: clamp(16px, 3vw, 40px); }
main .page-head + .section .faq, main .page-head + section .faq { margin-top: 0; }
main .label:has(+ h1), main .label:has(+ h2), main .label:has(+ h3) { display: none; }

/* Guide: no empty result box, chapters as a calm grid of rows instead of white boxes. */
main .guide-results:empty, main .guide-results[hidden] { display: none; }
main .guide-search-wide { margin-bottom: 24px; }
main .guide-search input { background: var(--lt-panel); border-color: var(--lt-line-2); }
main .guide-cards { gap: 0 clamp(24px, 3vw, 48px); }
main .guide-card { background: none; border: 0; border-top: 1px solid var(--lt-line-2); border-radius: 0; padding: 22px 0 28px; box-shadow: none; }
main .guide-card:hover { background: none; }
main .guide-card:hover h2, main .guide-card:hover h3 { color: var(--lt-accent-text); }
main .guide-card .n { font-family: var(--ut-sans); font-size: 15px; letter-spacing: 0; }
main .guide-card::before { content: none; }
main .guide-results a { color: var(--lt-text-2); text-decoration: none; }
main .guide-results a:hover, main .guide-results a:focus { background: var(--lt-band); color: var(--lt-text); }
main .guide-results strong { color: var(--lt-text); }
main .guide-results { background: var(--lt-panel); border-color: var(--lt-line-2); box-shadow: var(--lt-shadow); }

/* Margins of the first and last section stay inside the light area (they used to show the dark page behind). */
body { background: var(--lt-bg); }
main { display: flow-root; }
