/* Tomoid pre-launch teaser — implemented from "Mediray Teaser.dc.html"
   (claude.ai/design). Tokens match the full landing (website/css/site.css);
   the mockup's inline styles are folded into classes. */

:root {
  /* native UA chrome (checkbox, scrollbars, autofill) must render dark too */
  color-scheme: dark;
  --bg-viewport: #08090B;
  --bg-page: #0B0D0F;
  --bg-panel: #111417;
  --bg-raised: #2C333A;
  --border-subtle: #1A1F24;
  --border: #22282E;
  /* form controls only: 3:1 against the page (WCAG 1.4.11) — decorative
     panel borders stay on --border */
  --border-strong: #4A535B;
  --text-dim: #78838D;
  --text-secondary: #8B959E;
  --text-strong: #C3CBD2;
  --text-primary: #E9EDF0;
  --accent: #00C49A;
  --accent-hover: #0ED3A8;
  --accent-ink: #04241C;
  --f-sans: 'IBM Plex Sans', system-ui, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; background: var(--bg-page); }

body {
  color: var(--text-primary);
  font-family: var(--f-sans);
  -webkit-font-smoothing: antialiased;
}

h1, h2, p { text-wrap: pretty; margin: 0; }

a { color: var(--text-strong); }
a:hover { color: var(--accent); }

::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* skip link: first tab stop, visible only while focused */
.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  background: var(--bg-panel);
  color: var(--text-primary);
  border: 1px solid var(--accent);
  border-radius: 3px;
  padding: 10px 16px;
  font-family: var(--f-mono);
  font-size: 12px;
  text-decoration: none;
}
.skip:focus { left: 12px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto !important; }
  /* the flash keyframe is killed above; a static outline (removed by a JS
     timer) still marks where a price-card click landed */
  .cta-block.is-flash { outline: 1px solid var(--accent); outline-offset: 10px; }
}

/* mono microcopy */
.kicker {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}
.kicker.upper { text-transform: uppercase; letter-spacing: 0.07em; }

/* ============ header ============ */
.site-header { border-bottom: 1px solid var(--border-subtle); }
.site-header .bar {
  margin: 0 auto;
  max-width: 1060px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: baseline; gap: 12px; }
.brand .name { font-size: 16px; font-weight: 600; color: var(--text-primary); letter-spacing: 0.01em; }
.brand .tag {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-dim);
}
.soon-chip {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 6px 10px;
}
.header-side { display: flex; align-items: center; gap: 16px; }
.site-nav {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.site-nav a { color: var(--text-dim); text-decoration: none; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.site-nav .on { color: var(--text-primary); }
a.brand { text-decoration: none; }
a.brand:hover .name { color: var(--accent); }
.locale {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  display: flex;
  gap: 8px;
}
.locale .on { color: var(--text-primary); }
.locale .sep { color: var(--text-dim); }
.locale a { color: var(--text-dim); text-decoration: none; }
.locale a:hover, .locale a:focus-visible { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ============ hero ============ */
.hero { margin: 0 auto; max-width: 1060px; padding: 72px 24px 64px; }
.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 56px;
  align-items: center;
}
.hero-copy { max-width: 560px; }
.hero-copy h1 {
  margin-top: 16px;
  font-size: clamp(29px, 4.5vw, 36px);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.lede {
  margin-top: 18px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 46ch;
}
.chips { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 6px 10px;
  line-height: 1.4;
}

.cta-block { margin-top: 32px; }
/* short flash when a price card sends the visitor here */
.cta-block.is-flash { animation: cta-flash 1.6s ease-out; }
@keyframes cta-flash {
  0% { outline: 1px solid var(--accent); outline-offset: 10px; }
  100% { outline: 1px solid transparent; outline-offset: 10px; }
}
.btn-soon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 28px;
  border: 1px solid var(--accent);
  border-radius: 3px;
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
  cursor: default;
  user-select: none;
}
.cta-note {
  margin-top: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-dim);
}

.notify-label {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.deal {
  margin-top: 8px;
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-strong);
  max-width: 46ch;
}
.pay-note {
  margin: -6px 0 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--text-dim);
}
/* --- price cards. Numbers come from Tomoid-Pricing-v1.md and live ONLY here
   on the page (the founder deal above the form describes the offer without
   repeating them). Section 4 of that doc: every card names the three devices,
   and monthly sits behind the Year/Month toggle on the subscription card —
   yearly is the default view, so the showcased figure is never the monthly
   one: it is the single price that loses a head-to-head comparison. --- */
.price-cards { display: flex; flex-direction: column; gap: 10px; }
.price-card {
  position: relative; /* anchors the stretched .pc-link */
  border: 1px solid var(--border);
  background: var(--bg-panel);
  border-radius: 3px;
  padding: 14px 16px;
  transition: border-color 0.12s;
}
.price-card:hover, .price-card:focus-within { border-color: var(--text-dim); }
.price-card.is-founder { border-color: var(--accent); }
.price-card.is-founder:hover, .price-card.is-founder:focus-within { border-color: var(--accent-hover); }
/* the whole card is one link to the founder form; real controls (the
   period toggle) sit above it on z-index */
.pc-link { position: absolute; inset: 0; z-index: 1; border-radius: 3px; }
.pc-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.pc-name {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-dim);
}
.price-card.is-founder .pc-name { color: var(--accent); }
.pc-tag {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--text-dim);
}
/* yearly / monthly switch inside the subscription card */
.pc-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  flex: none;
  position: relative;
  z-index: 2; /* stays clickable above the card's stretched .pc-link */
}
.pt-btn {
  appearance: none;
  border: 0;
  background: transparent;
  /* min-height keeps the hit target at the WCAG AA floor (24px) without
     bloating the card the way a full 44px control would */
  min-height: 24px;
  padding: 4px 10px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.pt-btn + .pt-btn { border-left: 1px solid var(--border); }
.pt-btn:hover { color: var(--text-secondary); }
/* .pc-toggle clips overflow, so the global outward ring would vanish — draw
   the focus ring inside the button instead */
.pt-btn:focus-visible { outline-offset: -2px; }
.pt-btn.is-on {
  background: var(--bg-raised);
  color: var(--text-primary);
}
@media (pointer: coarse) {
  .pt-btn { min-height: 32px; }
}
.pc-amt {
  margin-top: 8px;
  font-family: var(--f-mono);
  font-size: 22px;
  color: var(--text-strong);
}
.price-card.is-founder .pc-amt { color: var(--text-primary); }
.pc-amt .per { font-size: 12px; color: var(--text-dim); letter-spacing: 0.02em; }
.pc-what { margin-top: 8px; font-size: 13px; line-height: 1.45; color: var(--text-secondary); }
.price-scope {
  margin-top: 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-dim);
}

.notify-form { display: flex; flex-direction: column; gap: 12px; max-width: 460px; }
.notify-form .fields { display: flex; flex-wrap: wrap; gap: 10px; }
.notify-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  height: 48px;
  background: var(--bg-panel);
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  color: var(--text-primary);
  font-family: var(--f-mono);
  font-size: 14px;
  padding: 0 14px;
}
/* explicit: the UA-derived placeholder colour is borderline on some engines */
.notify-form input[type="email"]::placeholder { color: var(--text-secondary); }
.notify-form button {
  height: 48px;
  padding: 0 22px;
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  border-radius: 3px;
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.12s;
}
.notify-form button:hover { background: var(--accent-hover); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.beta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  min-height: 24px;
}
.beta-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}
.consent {
  margin-top: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  max-width: 46ch;
}
.notify-done {
  height: 48px;
  display: flex;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--accent);
}
.notify-fail {
  margin-top: 10px;
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--text-strong);
}
[hidden] { display: none !important; }

.fineprint {
  margin-top: 24px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--text-dim);
}

/* ============ hero prices (right column; replaced the hero mini-viewer,
   which duplicated the demo section — the demo is the page's only viewer) ============ */
.hero-prices { width: 100%; max-width: 460px; justify-self: center; }

/* ============ hero feature list (right column; price cards moved down to
   #pricing 2026-08-02 — the first screen promises, the price comes after
   the demo has proven it) ============ */
.hero-features {
  border: 1px solid var(--border);
  background: var(--bg-panel);
  border-radius: 3px;
  padding: 18px 20px;
}
.hf-title {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.hero-features ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hero-features li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
}
/* localizer-style tick instead of a bullet */
.hero-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 1px;
  background: var(--accent);
}

/* ============ landing bands: #pricing and .trust ============ */
.band-head { margin-bottom: 22px; }
.band-head h2 {
  margin: 10px 0 0;
  font-size: clamp(22px, 3.4vw, 28px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.band-head .sub {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 52ch;
}
.pricing-band { margin: 0 auto; max-width: 1060px; padding: 0 24px 64px; }
.pricing-band .price-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 12px;
  align-items: stretch;
}
.pricing-band .price-scope { margin-top: 14px; }
.pricing-band .hero-links { margin-top: 16px; }

.trust { margin: 0 auto; max-width: 1060px; padding: 0 24px 64px; }
.trust-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}

/* ============ hero links row (demo scroll + pricing page) ============ */
.hero-links { margin-top: 14px; display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.hero-links .hero-demolink { margin-top: 0; }

/* ============ pricing page ============ */
.pricing { margin: 0 auto; max-width: 720px; padding: 56px 24px 72px; }
.pricing h1 {
  margin-top: 16px;
  font-size: clamp(26px, 4vw, 32px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.pricing .pay-note { margin: 16px 0 0; }
.pricing .price-cards { margin-top: 30px; }
.pricing-details { margin-top: 40px; display: grid; gap: 16px; }
.pricing .cta-block { margin-top: 44px; }

/* ============ scenarios: A files → C ownership → B archive ============ */
.scenarios {
  margin: 0 auto;
  max-width: 1060px;
  padding: 0 24px 64px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}
.panel {
  border: 1px solid var(--border);
  background: var(--bg-panel);
  border-radius: 2px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.panel h2 {
  margin: 2px 0 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.panel p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ============ localizer ============ */
.localizer { margin: 0 auto; max-width: 1060px; padding: 0 24px; }
.localizer > div { height: 1px; background: var(--accent); }

/* ============ about ============ */
.about { margin: 0 auto; max-width: 1060px; padding: 64px 24px 80px; }
.about h2 { margin-top: 14px; font-size: 24px; font-weight: 600; color: var(--text-primary); }
.about p {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 72ch;
}
.about-sig {
  margin-top: 20px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--text-dim);
}

/* ============ footer ============ */
.site-footer { border-top: 1px solid var(--border-subtle); }
.site-footer .inner {
  margin: 0 auto;
  max-width: 1060px;
  padding: 36px 24px 44px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.site-footer .brand .name { font-size: 15px; }
.disclaimer {
  font-family: var(--f-mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 72ch;
}
.site-footer .links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-family: var(--f-mono);
  font-size: 12px;
}
.site-footer .copyright { color: var(--text-dim); }

/* ============ legal pages (privacy) ============ */
/* A page of body copy is the one place links are surrounded by text rather
   than standing alone, so colour alone would be doing all the work (1.4.1). */
.legal .panel a { text-decoration: underline; text-underline-offset: 2px; }
.legal .panel h2 { margin-bottom: 2px; }
/* Followed a footer link to one section of a long page: mark where it landed,
   or the jump reads as "the page moved" rather than "here is the answer". */
.legal .panel:target { border-color: var(--accent); }
.legal .panel[tabindex]:focus { outline: none; }
