/* Stratolio landing page — tokens from the Stratolio concept (ivory paper, graphite ink, citron accent, Manrope). */
@font-face { font-family: "Manrope"; src: url("assets/manrope-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --paper: #eeede6; --surface: #fafaf5; --sunken: #e4e3da;
  --ink: #171916; --muted: #63665d; --subtle: #797d70; --line: #d1d3c7;
  --accent: #d6f853; --accent-hover: #c6e93d; --accent-soft: #e8f1c6; --accent-ink: #3f5414;
  --green: #316b4b; --green-soft: #e1ebdf; --amber: #886318; --amber-soft: #f0e6cb;
  --red: #a04436; --red-soft: #f3e1da; --blue: #426b83; --blue-soft: #dfebf0;
  --radius: 14px; --max: 1120px; --gutter: clamp(16px, 4vw, 40px);
  --body: "Manrope", Arial, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; font-variant-numeric: tabular-nums; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; margin: 0 0 0.5em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.15rem; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--accent); padding: 10px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 12px; }

/* Header */
.top { max-width: var(--max); margin: 0 auto; padding: 18px var(--gutter); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.mark { width: 30px; height: 30px; border-radius: 8px; background: var(--ink); padding: 4px; }
.mark path { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.wordmark { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 700; font-size: 0.95rem; padding: 8px 2px; }
.nav a:hover { color: var(--ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 800; text-decoration: none; border: 1.5px solid transparent; transition: background .15s, border-color .15s, transform .15s; }
.btn.primary { background: var(--accent); color: var(--ink); }
.btn.primary:hover { background: var(--accent-hover); }
.btn.ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn.ghost:hover { border-color: var(--ink); }
.btn.small { min-height: 42px; padding: 0 18px; font-size: 0.95rem; }
.btn:active { transform: translateY(1px); }

/* Hero */
.hero { max-width: var(--max); margin: 0 auto; padding: clamp(28px, 6vw, 72px) var(--gutter) 24px; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.eyebrow { margin: 0 0 14px; font-weight: 800; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.hero h1 { font-size: clamp(2.3rem, 5.6vw, 4.3rem); margin-bottom: 0.4em; }
.lead { font-size: clamp(1.1rem, 1.7vw, 1.35rem); color: var(--muted); max-width: 34ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 28px; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--muted); font-weight: 600; font-size: 0.98rem; }
.facts li { padding-left: 22px; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); box-shadow: inset 0 0 0 2px var(--ink); }

.hero-art { position: relative; aspect-ratio: 1; min-height: 280px; }
.atmosphere { position: absolute; inset: 10% 2% 8% 4%; border-radius: 49% 51% 47% 53%; overflow: hidden; transform: rotate(-24deg); background: linear-gradient(150deg, #eeede600 16%, #e5e8df 55%, #d4dfe2 100%); }
.atmosphere::before { content: ""; position: absolute; width: 158%; height: 118%; left: -29%; top: 48%; border-radius: 50%; background: linear-gradient(180deg, #a1bdd43d 0%, #c4d5da20 8%, #e5e8df00 42%); box-shadow: 0 -2px 0 #a9c4d455, 0 -13px 0 #bbd0db32, 0 -26px 0 #cbdade24; }
.atmosphere::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, #eeede600 65%, #eeede6 100%); }
.knot { position: relative; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 24px 40px #17191622); }
@media (prefers-reduced-motion: no-preference) {
  .knot { animation: float 9s ease-in-out infinite; }
  @keyframes float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-10px) rotate(-1.2deg); } }
}

/* Horizon band: one shallow arc, the brand's layered-curve geometry */
.horizon { height: 64px; margin: 0 -2vw 8px; border-top: 1.5px solid #a9c4d4; border-radius: 50% 50% 0 0 / 100% 100% 0 0; box-shadow: 0 -12px 0 -1px #bbd0db55, 0 -24px 0 -2px #cbdade33; }

/* Sections */
.band { max-width: var(--max); margin: 0 auto; padding: clamp(40px, 7vw, 88px) var(--gutter); }
.band.alt { max-width: none; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band.alt > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section-head { max-width: 62ch; margin-bottom: 32px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

.cards { display: grid; gap: 18px; }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.band.alt .card { background: var(--paper); }
.card p { color: var(--muted); margin-bottom: 0.6em; }
.card p:last-child { margin-bottom: 0; }
.num { display: inline-block; font-weight: 800; font-size: 0.85rem; color: var(--subtle); letter-spacing: 0.08em; margin-bottom: 14px; }
.example { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 14px; padding: 10px 14px; border-radius: 10px; background: var(--sunken); color: var(--ink) !important; font-weight: 700; font-size: 0.95rem; }
.arrow { color: var(--subtle); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.steps li { counter-increment: step; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-weight: 800; font-size: 2rem; line-height: 1; color: var(--ink); margin-bottom: 14px; }
.steps p { color: var(--muted); margin: 0; }

.split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.split-copy > p { color: var(--muted); font-size: 1.08rem; max-width: 56ch; }
.checks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.checks li { padding: 14px 16px 14px 44px; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: var(--muted); }
.checks li strong { color: var(--ink); }
.checks li::before { content: ""; position: absolute; left: 16px; top: 18px; width: 14px; height: 14px; border-radius: 4px; background: var(--accent); box-shadow: inset 0 0 0 2px var(--ink); }
.split-art img { width: min(100%, 360px); margin: 0 auto; filter: drop-shadow(0 20px 36px #17191622); }

.states { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; }
.states > div { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.states dt { margin-bottom: 8px; }
.states dd { margin: 0; color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; font-weight: 800; font-size: 0.9rem; border: 1px solid transparent; }
.chip::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.chip.ok { background: var(--green-soft); color: var(--green); }
.chip.warn { background: var(--amber-soft); color: var(--amber); }
.chip.bad { background: var(--red-soft); color: var(--red); }
.chip.muted { background: var(--sunken); color: var(--muted); }
.chip.bad::before { border-radius: 2px; }
.chip.warn::before { clip-path: polygon(50% 0, 100% 100%, 0 100%); border-radius: 0; }
.chip.muted::before { width: 10px; height: 2px; border-radius: 1px; }

/* Contact */
.contact-box { background: var(--ink); color: var(--paper); border-radius: 24px; padding: clamp(28px, 5vw, 56px); text-align: center; }
.contact-box h2 { color: #fff; }
.contact-box p { color: #c9cbbf; max-width: 58ch; margin-left: auto; margin-right: auto; }
.contact-box .btn.primary { margin-top: 6px; }
.fine { font-size: 0.9rem; color: var(--subtle); }
.contact-box .fine { color: #9a9d90; margin: 14px 0 0; }

/* Footer */
.foot { max-width: var(--max); margin: 0 auto; padding: 36px var(--gutter) 48px; color: var(--muted); font-size: 0.95rem; border-top: 1px solid var(--line); }
.foot .brand { margin-bottom: 14px; }
.foot .brand .mark { width: 24px; height: 24px; padding: 3px; }
.foot .brand .wordmark { font-size: 1.05rem; }
.foot p { max-width: 70ch; }

/* Responsive */
@media (max-width: 960px) {
  .cards.three, .steps, .states { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .top { gap: 12px; }
  .top .btn.small { margin-left: auto; }
  .hero { grid-template-columns: 1fr; padding-top: 20px; }
  .hero-art { order: -1; min-height: 0; width: min(72vw, 360px); margin: 0 auto; }
  .lead { max-width: none; }
  .split { grid-template-columns: 1fr; }
  .split-art img { width: min(50vw, 260px); }
  .cards.three, .cards.two, .steps, .states { grid-template-columns: 1fr; }
  .horizon { height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
@media print {
  .atmosphere, .horizon, .hero-art, .split-art { display: none; }
  .contact-box { background: none; color: var(--ink); border: 1px solid var(--line); }
}
