/* Reprts web. Solarized with black text: cream paper, black ink, one blue
   that means "you can click this". Structure from type, space and dashed
   rules, not boxes.

   Colours are HojaDesignSystem's Solarized theme (tokens.css,
   [data-ds-theme="solarized"]), with these departures where a Solarized value
   fails 4.5:1 here: the 8-K yellow is Solarized yellow at its own hue, darker
   in light and lighter in dark; the dark button label is base03, since cream
   on the dark blue measured 2.6:1. Hex values sit alone on their lines:
   SolarizedFidelityTests in HojaDesignSystem reads them.

   Some variables repeat another's value (--ink-body is --ink in light,
   --form-annual is --interactive). They stay literal, not var(--x), on
   purpose: each names its own role, the test reads plain hex, and it pins
   every one of them to the token it takes, so a copy cannot drift alone.

   Sizes and faces come from tokens.css (--space-*, --type-*-size, --radius-*,
   --font-*), in a layer so a name this file also sets (--interactive) keeps
   this file's value. */
@import url("./tokens-e0bdb3ded7ad3c7fbb746183ac6b35d4.css?vsn=d") layer(tokens);

/* light: base3 ground, black ink; rules are divider-primary, since
   divider-secondary (base2) vanishes on the ground */
:root {
  --paper: #FDF6E3;
  --paper-raised: #EEE8D5;
  --ink: #000000;
  --ink-body: #000000;
  --ink-muted: #556B72;
  --rule: #93A1A1;
  --rule-strong: #93A1A1;
  --interactive: #016DA9;
  --interactive-ink: #FDF6E3;
  --interactive-wash: #EEE8D5;
  --form-annual: #016DA9;
  --form-quarterly: #556B72;
  --form-current: #836200;
  --shadow: #00000024;

  --gutter: var(--space-horizontal);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #002B36;
    --paper-raised: #073642;
    --ink: #EEE8D5;
    --ink-body: #93A1A1;
    --ink-muted: #93A1A1;
    --rule: #073642;
    --rule-strong: #586E75;
    --interactive: #469FE7;
    --interactive-ink: #002B36;
    --interactive-wash: #073642;
    --form-annual: #469FE7;
    --form-quarterly: #93A1A1;
    --form-current: #C19314;
    --shadow: #00000080;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
img { display: block; max-width: 100%; height: auto; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: var(--type-body-size)/var(--type-body-line-height) var(--font-ui);
  -webkit-font-smoothing: antialiased;
  /* A native shell draws edge to edge (viewport-fit=cover): keep text off the notch. */
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
a { color: var(--interactive); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--interactive); outline-offset: 2px; border-radius: var(--radius-small); }
h1, h2, h3 { font-family: var(--font-prose); font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; }
h1 { font-size: clamp(var(--type-large-title-size), 4.5vw, var(--type-display-medium-size)); margin: 0 0 var(--space-md); }
h2 { font-size: var(--type-title2-size); margin: 0 0 var(--space-xs-plus); }
h3 { font-size: var(--type-headline-size); margin: 0 0 var(--space-xs); }
p { margin: 0 0 var(--space-sm); }

.wrap { max-width: 64rem; margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--ink-muted); }
.body-copy { color: var(--ink-body); }
.small { font-size: var(--type-footnote-size); }
.mono, .sym, .eyebrow { font-family: var(--font-mono); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--paper-raised); padding: var(--space-xs) var(--space-sm); }

/* ---- nav */
.nav {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px dashed var(--rule);
  padding-top: env(safe-area-inset-top);
}
.nav-row { display: flex; align-items: center; gap: var(--space-md); min-height: 3.5rem; }
.brand { display: inline-flex; align-items: center; gap: var(--space-xs); color: var(--ink); font-family: var(--font-prose); font-weight: 600; font-size: var(--type-headline-size); }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem;
  border: 1.5px solid currentColor; border-radius: var(--radius-small); font-size: var(--type-subheadline-size); line-height: 1;
}
.nav-links { display: flex; gap: var(--space-md); font-size: var(--type-subheadline-size); }
.nav-links a { color: var(--ink-muted); }
.nav-links a:hover { color: var(--ink); }
.nav-search { position: relative; margin-left: auto; display: flex; align-items: center; gap: var(--space-xs); color: var(--ink-muted); }
.nav-search input {
  width: 15rem; min-height: 2.25rem; padding: 0 var(--space-xs);
  border: 1px solid var(--rule); border-radius: var(--radius-medium);
  background: var(--paper-raised); color: var(--ink); font: inherit; font-size: var(--type-subheadline-size);
}
.nav-search svg { position: absolute; left: -1.5rem; }
input::placeholder { color: var(--ink-muted); opacity: 1; }

/* ---- buttons: one filled primary per view, the rest outlined */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs);
  min-height: 2.75rem; padding: 0 var(--space-sm);
  border: 1px solid var(--rule-strong); border-radius: var(--radius-medium);
  background: transparent; color: var(--ink); font: 500 var(--type-subheadline-size)/1 var(--font-ui); cursor: pointer;
}
.btn:hover { text-decoration: none; border-color: var(--ink); }
.btn-primary { background: var(--interactive); border-color: var(--interactive); color: var(--interactive-ink); }
.btn-primary:hover { border-color: var(--interactive); filter: brightness(1.08); }
.pager > :last-child { justify-self: end; text-align: right; }
.nav-cta { min-height: 2.25rem; font-size: var(--type-subheadline-size); }

/* ---- hero */
.hero {
  padding-top: clamp(var(--space-xxl), 7vw, var(--space-xxxl)); padding-bottom: var(--space-xxl);
  display: grid; grid-template-columns: minmax(0, 1fr) 17rem; gap: var(--space-xxl); align-items: center;
}
.hero h1 { font-size: clamp(var(--type-extra-large-title2-size), 6vw, var(--type-display-large-size)); max-width: 14ch; }
/* An app screen, drawn as the phone shows it: rounded, raised off the page. */
.screen {
  margin: 0; overflow: hidden; background: var(--paper-raised);
  border: 1px solid var(--rule-strong); border-radius: var(--dev-radius-screen);
  box-shadow: var(--dev-shadow-screen) var(--shadow);
}
.screen img { width: 100%; }
.hero .screen { justify-self: end; width: 100%; }
.eyebrow { font-size: var(--type-caption-size); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: var(--space-sm); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs); }
.lede { font-size: var(--type-title3-size); color: var(--ink-body); max-width: 38rem; }
.hero-search { position: relative; display: flex; gap: var(--space-xs); max-width: 34rem; margin-top: var(--space-lg); }
.hero-search input {
  flex: 1; min-width: 0; min-height: 3rem; padding: 0 var(--space-sm);
  border: 1px solid var(--rule-strong); border-radius: var(--radius-medium);
  background: var(--paper-raised); color: var(--ink); font: inherit; font-size: var(--type-callout-size);
}
.hero-search .btn { min-height: 3rem; }

/* ---- sections */
.section { padding-top: var(--space-xl); padding-bottom: var(--space-xl); border-top: 1px dashed var(--rule); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-sm); flex-wrap: wrap; margin-bottom: var(--space-sm); }
.section-head h2 { margin: 0; }
.section-head a { font-size: var(--type-subheadline-size); }
.page-head { padding-top: var(--space-xl); padding-bottom: var(--space-lg); }

/* ---- popular grid: cells drawn by shared dashed rules */
.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(11.5rem, 45%), 1fr));
  border-top: 1px dashed var(--rule); border-left: 1px dashed var(--rule);
}
.grid li { border-right: 1px dashed var(--rule); border-bottom: 1px dashed var(--rule); min-width: 0; }
.card { display: flex; flex-direction: column; gap: var(--space-xxs); padding: var(--space-sm); color: var(--ink); min-height: 7rem; }
.card:hover { background: var(--paper-raised); text-decoration: none; }
.card .sym { color: var(--interactive); font-weight: 500; }
.card .name { font-family: var(--font-prose); font-size: var(--type-headline-size); line-height: 1.3; }
.card .small { margin-top: auto; }

/* ---- lists: rows separated by rules */
.list { list-style: none; margin: 0 0 var(--space-md); padding: 0; }
.list li { border-bottom: 1px dashed var(--rule); }
.list li:first-child { border-top: 1px dashed var(--rule); }
.row { display: grid; grid-template-columns: 5rem 1fr auto; gap: var(--space-sm); align-items: baseline; padding: var(--space-xs-plus) var(--space-xxs); color: var(--ink); min-height: 2.75rem; }
.row:hover { background: var(--paper-raised); text-decoration: none; }
.row:hover .name { color: var(--interactive); }
.row .sym { font-weight: 500; }
.filing-row { grid-template-columns: 4rem 1fr auto; }
.list .row:not(.filing-row):has(> .name:first-child) { grid-template-columns: 1fr auto; }

.form { display: inline-block; white-space: nowrap; font: 500 var(--type-caption-size)/1.6 var(--font-mono); color: var(--form-current); letter-spacing: 0.02em; }
.form[data-form="10-K"] { color: var(--form-annual); }
.form[data-form="10-Q"] { color: var(--form-quarterly); }

.year { display: grid; grid-template-columns: 5rem 1fr; gap: var(--space-sm); }
.year-label { font-family: var(--font-mono); font-weight: 400; font-size: var(--type-subheadline-size); color: var(--ink-muted); padding-top: var(--space-xs-plus); }

.filters { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-bottom: var(--space-md); }
.filters a {
  display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 2.75rem; padding: 0 var(--space-sm);
  border: 1px solid var(--rule); border-radius: var(--radius-pill); color: var(--ink); font: 500 var(--type-footnote-size) var(--font-mono);
}
.filters a:hover { text-decoration: none; border-color: var(--ink); }
.filters a[aria-current="true"] { border-color: var(--interactive); color: var(--interactive); background: var(--interactive-wash); }

.callout {
  display: flex; align-items: center; gap: var(--space-xs-plus); margin-top: var(--space-md); padding: var(--space-sm); max-width: 34rem;
  border: 1px solid var(--rule-strong); border-radius: var(--radius-medium); color: var(--ink);
}
.callout:hover { border-color: var(--interactive); text-decoration: none; }
.callout > span:last-child { margin-left: auto; color: var(--interactive); }

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-xs); margin: 0 0 var(--space-md); padding: 0; font-size: var(--type-footnote-size); color: var(--ink-muted); }
.crumbs li + li::before { content: "/"; margin-right: var(--space-xs); color: var(--rule-strong); }
.crumbs a { color: var(--ink-muted); }

.split { display: grid; grid-template-columns: 1fr 1.6fr; gap: var(--space-xxl); align-items: start; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); margin: 0; }
/* Each feature: its app screen beside its name and line. */
.feature { display: grid; grid-template-columns: 4.5rem 1fr; grid-template-rows: auto 1fr; column-gap: var(--space-sm); align-items: start; }
.features dt { grid-column: 2; font-family: var(--font-prose); font-weight: 500; margin-bottom: var(--space-xxs); }
.features dd { grid-column: 2; margin: 0; color: var(--ink-body); font-size: var(--type-subheadline-size); line-height: 1.5; }
.features .thumb { grid-column: 1; grid-row: 1 / span 2; border-radius: var(--radius-medium); box-shadow: var(--dev-shadow-thumb) var(--shadow); }
.get { margin-top: var(--space-lg); display: grid; justify-items: start; gap: var(--space-xs); }
.price { font-size: var(--type-subheadline-size); margin: 0; }

.actions { display: flex; flex-wrap: wrap; gap: var(--space-xs-plus); margin-top: var(--space-md); }
.items { list-style: none; padding: 0; margin: 0 0 var(--space-lg); }
.items li { padding: var(--space-xs) 0; border-bottom: 1px dashed var(--rule); }
.items .mono { color: var(--ink-muted); font-size: var(--type-footnote-size); margin-right: var(--space-xs); }
.meta { margin: 0; border-top: 1px dashed var(--rule); }
.meta div { display: grid; grid-template-columns: 8.5rem 1fr; gap: var(--space-sm); padding: var(--space-xs-plus) 0; border-bottom: 1px dashed var(--rule); font-size: var(--type-subheadline-size); }
.meta dt { color: var(--ink-muted); }
.meta dd { margin: 0; font-family: var(--font-mono); font-size: var(--type-footnote-size); overflow-wrap: anywhere; }

.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: var(--space-sm); padding-top: var(--space-md); padding-bottom: var(--space-xxl); font-size: var(--type-subheadline-size); }

.empty { padding: var(--space-xxl) 0; border-top: 1px dashed var(--rule); border-bottom: 1px dashed var(--rule); text-align: center; }
.empty p { max-width: 30rem; margin-left: auto; margin-right: auto; }
.empty-page { padding-top: var(--space-xxxxl); padding-bottom: var(--space-xxxxl); }

/* ---- long-form text: privacy */
.prose { max-width: 42rem; padding-top: var(--space-xl); padding-bottom: var(--space-lg); }
.prose h2 { margin-top: var(--space-lg); }
.prose ul, .prose ol { padding-left: var(--space-md); margin: 0 0 var(--space-sm); }

/* ---- footer */
.footer { border-top: 1px dashed var(--rule); padding: var(--space-xl) 0 calc(var(--space-lg) + env(safe-area-inset-bottom)); margin-top: var(--space-lg); }
.footer-row { display: flex; justify-content: space-between; gap: var(--space-lg); flex-wrap: wrap; }
.footer-row p { margin-top: var(--space-xs-plus); max-width: 22rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-md); font-size: var(--type-subheadline-size); }
.footer-links a { color: var(--ink-muted); }
.footer-base { margin-top: var(--space-lg); }

/* ---- phone */
@media (max-width: 760px) {
  :root { --gutter: var(--space-sm); }
  .nav-links { display: none; }
  .nav-row { gap: var(--space-xs-plus); }
  .nav-search { flex: 1; min-width: 0; }
  .nav-search svg { display: none; }
  .nav-search input { width: 100%; }
  .nav-cta { padding: 0 var(--space-xs-plus); }
  .hero { grid-template-columns: 1fr; gap: var(--space-xl); }
  .hero .screen { justify-self: start; max-width: 15rem; }
  .split, .features { grid-template-columns: 1fr; gap: var(--space-md); }
  .row { grid-template-columns: 4rem 1fr; }
  .row > :last-child:not(:nth-child(2)) { grid-column: 2; margin-top: calc(-1 * var(--space-xs-plus)); }
  .filing-row { grid-template-columns: 3.25rem 1fr; }
  .year { grid-template-columns: 1fr; gap: 0; }
  .year-label { padding-top: var(--space-md); padding-bottom: var(--space-xxs); }
  .meta div { grid-template-columns: 7rem 1fr; }
  .pager { grid-template-columns: 1fr 1fr; }
  .pager > :nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
}
