/* STEINS HORIZON SOLUTION — site styles. No framework, no build step. */
:root {
  color-scheme: light;
  --paper: #f7f5f0;
  --paper-2: #efebe2;
  --card: #ffffff;
  --ink: #142136;
  --ink-2: #3c4658;
  --muted: #545e6e;
  --line: #d9d4c8;
  --teal: #0e4c5c;
  --teal-2: #0a3a46;
  --amber: #a85a0f;
  --sun: #f0a03c;
  --sample: #b33a0a;
  --real: #0e4c5c;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  --r: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (min-width: 720px) { html { scroll-padding-top: 72px; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 2px; }
a:hover { color: var(--teal-2); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); line-height: 1.15; letter-spacing: -0.01em; margin: 0; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 6vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 5;
  background: rgba(247, 245, 240, 0.94);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(6px)) { .top { backdrop-filter: blur(6px); background: rgba(247, 245, 240, 0.85); } }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; min-height: 60px; padding-top: 6px; padding-bottom: 6px; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--ink); font-weight: 600; letter-spacing: 0.04em; font-size: 0.92rem; }
.brand img { width: 30px; height: 30px; }
.brand span { white-space: nowrap; }
/* Nav works without JS: plain links that wrap onto a second row on small screens. */
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; font-size: 0.95rem; width: 100%; margin-left: -10px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--ink-2); text-decoration: none; border-radius: 6px; }
.nav a:hover { color: var(--teal); text-decoration: underline; }
.nav a[aria-current="page"] { color: var(--teal); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav a.nav-cta { margin-left: auto; color: #fff; background: var(--teal); font-weight: 600; padding: 0 16px; }
.nav a.nav-cta:hover { background: var(--teal-2); color: #fff; text-decoration: none; }
.top { position: static; }
@media (min-width: 720px) {
  .top { position: sticky; }
  .nav { width: auto; margin-left: auto; gap: 0 8px; }
  .nav a.nav-cta { margin-left: 8px; }
}
@media (max-width: 400px) { .brand span { font-size: 0.85rem; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px;
  border-radius: 8px; border: 2px solid var(--teal);
  background: var(--teal); color: #fff;
  font: 600 1rem/1.2 var(--sans); text-decoration: none;
}
.btn:hover { background: var(--teal-2); border-color: var(--teal-2); color: #fff; }
.btn.ghost { background: transparent; color: var(--teal); }
.btn.ghost:hover { background: var(--teal); color: #fff; }
.btn.sm { min-height: 44px; padding: 8px 14px; font-size: 0.92rem; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Hero */
.hero { padding: 48px 0 56px; border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; gap: 40px; }
.eyebrow { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber); margin: 0 0 14px; }
.hero h1 em { font-style: normal; color: var(--teal); }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 36em; margin: 18px 0 26px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin: 18px 0 0; font-size: 0.95rem; color: var(--muted); }
.hero-note strong { color: var(--ink); }
.hero-shot { margin: 0; align-self: center; }
.hero-shot .frame { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--card); box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(20, 33, 54, 0.45); }
@media (min-width: 960px) {
  .hero { padding: 72px 0 80px; }
  .hero .wrap { grid-template-columns: 1fr 1.08fr; gap: 56px; }
}

/* Sections */
section.band { padding: 64px 0; border-bottom: 1px solid var(--line); }
section.band.alt { background: var(--paper-2); }
.head { max-width: 46em; margin-bottom: 32px; }
.head p { color: var(--ink-2); margin: 12px 0 0; }
.head.sub { margin-top: 56px; }

/* Problems strip */
.pains { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.pains li { border-left: 3px solid var(--sun); padding: 4px 0 4px 16px; }
.pains strong { display: block; font-family: var(--serif); font-size: 1.15rem; }
.pains span { color: var(--muted); font-size: 0.97rem; }
@media (min-width: 760px) { .pains { grid-template-columns: repeat(3, 1fr); gap: 28px; } }

/* Pilot */
.pilot {
  display: grid; gap: 20px; align-items: center;
  background: var(--ink); color: #f2efe8;
  border-radius: 14px; padding: 28px 24px; margin-bottom: 40px;
}
.pilot h3 { color: #fff; font-size: 1.6rem; }
.pilot p { color: #d6d2c8; margin: 8px 0 0; }
.pilot .price { font-family: var(--serif); font-size: 2.6rem; color: var(--sun); line-height: 1; white-space: nowrap; }
.pilot .price small { display: block; font: 0.95rem/1.4 var(--sans); color: #d6d2c8; margin-top: 8px; white-space: normal; }
.pilot .btn { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.pilot .btn:hover { background: #fff; border-color: #fff; color: var(--ink); }
@media (min-width: 860px) { .pilot { grid-template-columns: 1.6fr auto auto; padding: 32px 36px; gap: 36px; } }

/* Packs */
.packs { display: grid; gap: 20px; }
@media (min-width: 980px) { .packs { grid-template-columns: repeat(3, 1fr); } }
.pack { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; }
.pack .for { font-size: 0.9rem; color: var(--muted); margin: 6px 0 18px; }
.tiers { list-style: none; margin: 0 0 18px; padding: 0; }
.tiers li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.tiers li:last-child { border-bottom: 1px solid var(--line); }
.tiers b { display: block; font-weight: 600; }
.tiers small { display: block; color: var(--muted); font-size: 0.88rem; line-height: 1.4; }
.amt { font-family: var(--serif); font-size: 1.3rem; white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; }
.pack .inc { font-size: 0.95rem; color: var(--ink-2); margin: 0 0 14px; }
.care { margin-top: auto; background: var(--paper); border-radius: 8px; padding: 12px 14px; font-size: 0.93rem; }
.care b { color: var(--teal); }

.terms { display: grid; gap: 20px; margin-top: 32px; }
@media (min-width: 860px) { .terms { grid-template-columns: 1fr 1.4fr; } }
.term { border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; background: var(--card); }
.term h3 { font-size: 1.15rem; margin-bottom: 8px; }
.term p { margin: 0; color: var(--ink-2); }
.term.founding { border-color: var(--sun); border-width: 2px; }
.term .deadline { display: inline-block; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--amber); margin-bottom: 6px; }

/* Demos */
.demo { margin-top: 44px; }
.demo:first-of-type { margin-top: 0; }
.demo-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 6px; }
.tag { font-size: 0.85rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1.5px solid currentColor; white-space: nowrap; }
.tag.real { color: var(--real); }
.tag.sample { color: var(--sample); }
.demo .desc { color: var(--ink-2); max-width: 46em; }
.shots { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .shots { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .shots { grid-template-columns: repeat(3, 1fr); } }
.shots figure { margin: 0; }
.shots a { display: block; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--card); }
.shots a:hover { border-color: var(--teal); }
.shots img { aspect-ratio: 1881 / 1050; width: 100%; }
figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 8px; line-height: 1.45; }
figcaption .lbl { display: block; font-weight: 600; }
figcaption .lbl.real { color: var(--real); }
figcaption .lbl.sample { color: var(--sample); }
.src { font-size: 0.88rem; color: var(--muted); margin: 14px 0 0; overflow-wrap: anywhere; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 28px 64px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--card); border: 2px solid var(--teal); color: var(--teal);
  font: 700 1.1rem/1 var(--serif);
}
.steps li::after { content: ""; position: absolute; left: 21px; top: 48px; bottom: 4px; width: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.2rem; margin: 8px 0 4px; }
.steps p { margin: 0; color: var(--ink-2); }
@media (min-width: 980px) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: 24px; }
  .steps li { padding: 64px 0 0; }
  .steps li::after { left: 52px; right: -20px; top: 21px; bottom: auto; width: auto; height: 2px; }
}

/* About */
.about { display: grid; gap: 32px; }
@media (min-width: 900px) { .about { grid-template-columns: 1.2fr 1fr; gap: 56px; } }
.about p { color: var(--ink-2); }
.about h2 { margin-bottom: 16px; }
.certs { margin-top: 12px !important; }
.skills { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.skills li { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 0.9rem; }
.certs { list-style: none; margin: 0; padding: 0; }
.certs li { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.certs li:last-child { border-bottom: 1px solid var(--line); }
.certs svg { width: 26px; height: 26px; flex: none; color: var(--teal); margin-top: 2px; }
.certs b { display: block; }
.certs small { color: var(--muted); }

/* FAQ */
.faq { max-width: 52em; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font: 400 1.6rem/1 var(--sans); color: var(--teal); }
.faq details[open] summary::after { content: "\2212"; }
.faq .a { padding: 0 0 18px; color: var(--ink-2); }
.faq .a ul { margin: 0; padding-left: 1.2em; }
.faq .a li { margin-bottom: 4px; }

/* Contact */
.contact { background: var(--teal); color: #e9f1f2; }
.contact h2 { color: #fff; }
.contact p { color: #d3e3e5; }
.contact .intro { margin: 12px 0 20px; }
.contact .intro.note { margin: -8px 0 20px; font-size: 0.92rem; }
.contact .wrap { display: grid; gap: 28px; }
@media (min-width: 860px) { .contact .wrap { grid-template-columns: 1.3fr 1fr; align-items: center; } }
.contact .btn { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.contact .btn:hover { background: #fff; border-color: #fff; }
.contact .btn.ghost { background: transparent; border-color: #fff; color: #fff; }
.contact .btn.ghost:hover { background: #fff; color: var(--ink); }
.contact dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; }
.contact dt { color: #b9d0d3; font-size: 0.92rem; }
.contact dd { margin: 0; color: #fff; overflow-wrap: anywhere; }
.contact a:not(.btn) { color: #fff; }

/* Footer */
.foot { padding: 28px 0 40px; font-size: 0.9rem; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.foot p { margin: 0; }
.foot .tm { flex-basis: 100%; font-size: 0.8rem; line-height: 1.5; }

/* Home: services */
.services { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 680px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .services { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.svc { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--teal); border-radius: 12px; padding: 22px 22px 18px; display: flex; flex-direction: column; }
.svc h3 { font-size: 1.2rem; margin-bottom: 8px; }
.svc p { color: var(--ink-2); font-size: 0.97rem; }
.svc a { margin-top: auto; font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }

/* Home: packs feature */
.feature { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .feature { grid-template-columns: 1.6fr auto; gap: 48px; } }
.feature h2 { margin-bottom: 12px; }
.feature p { color: var(--ink-2); max-width: 40em; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 24px; }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(2, 1fr); } }
.facts li { padding: 10px 0; border-top: 1px solid var(--line); }
.facts b { display: block; }
.facts span { color: var(--muted); font-size: 0.93rem; }

/* Demo thumbnails */
.thumbs { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 640px) { .thumbs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .thumbs { grid-template-columns: repeat(3, 1fr); } }
.thumb { display: block; text-decoration: none; color: var(--ink); }
.thumb img { aspect-ratio: 1881 / 1050; width: 100%; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.thumb:hover img { border-color: var(--teal); }
.thumb .t-title { display: block; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; margin-top: 10px; color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.thumb .lbl, .lbl { display: block; font-size: 0.88rem; font-weight: 600; }
.lbl.real { color: var(--real); }
.lbl.sample { color: var(--sample); }
.more { margin: 24px 0 0; font-weight: 600; }

/* Demos overview and demo pages */
.page-head { padding: 40px 0 36px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 12px; }
.page-head .lede { margin: 16px 0 0; }
.crumbs { font-size: 0.92rem; color: var(--muted); margin: 0 0 10px; }
.question { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--sun); border-radius: 10px; padding: 16px 20px; max-width: 46em; margin-top: 18px; }
.question h2 { font: 700 0.82rem/1.3 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber); margin-bottom: 6px; }
.question p { margin: 0; font-family: var(--serif); font-size: 1.25rem; line-height: 1.4; }
.demo-list { display: grid; gap: 40px; }
.demo-card { display: grid; gap: 20px; align-items: center; }
@media (min-width: 860px) { .demo-card { grid-template-columns: 1.1fr 1fr; gap: 40px; } }
.demo-card .thumb-img { display: block; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--card); }
.demo-card .thumb-img img { aspect-ratio: 1881 / 1050; width: 100%; }
.demo-card h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin: 8px 0 10px; }
.demo-card h2 a { color: var(--ink); text-decoration: none; }
.demo-card h2 a:hover { color: var(--teal); text-decoration: underline; }
.demo-card .q { font-family: var(--serif); font-size: 1.12rem; color: var(--ink); }
.demo-card p { color: var(--ink-2); }
.shots.large { grid-template-columns: 1fr !important; gap: 36px; }
.shots.large a { box-shadow: 0 1px 0 var(--line), 0 18px 40px -28px rgba(20, 33, 54, 0.45); }
.pilot .btn.ghost-light { background: transparent; border-color: #f2efe8; color: #f2efe8; }
.pilot .btn.ghost-light:hover { background: #fff; border-color: #fff; color: var(--ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Plain document pages (privacy, 404) */
.doc { padding: 48px 0 64px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.6rem); margin-bottom: 8px; }
.doc h2 { font-size: 1.35rem; margin: 32px 0 8px; }
.doc h3 { font-size: 1.25rem; margin: 28px 0 8px; }
.doc h2.lang-title { font-size: clamp(1.6rem, 4vw, 2rem); margin: 24px 0 6px; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul { padding-left: 1.2em; }
.doc .meta { color: var(--muted); font-size: 0.95rem; }
.doc .lang-switch { margin: 0 0 24px; }
.doc section + section { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }

.todo { background: #fff3c4; color: #5a3d00; padding: 0 4px; border-radius: 3px; font-weight: 600; }

@media print {
  .top, .cta, .contact .btn, .nav { display: none; }
  body { background: #fff; }
}
