/* Orbiitl landing page. Plain, warm and readable: Figtree, one accent colour,
   light by default with a dark mode that follows the OS setting. */
:root {
  --bg: #FBFAF7;
  --bg-alt: #F3F1EC;
  --fg: #1F2328;
  --muted: #5A6068;
  --border: #E2DED6;
  --accent: #2F6F4F;
  --accent-fg: #FFFFFF;
  --code-bg: #1F2328;
  --code-fg: #E9E7E1;
  --code-dim: #9AA0A6;
  --ok: #7BC59A;
  --sans: Figtree, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16181D;
    --bg-alt: #1C1F25;
    --fg: #E6E4DF;
    --muted: #A2A6AD;
    --border: #2C3038;
    --accent: #7BC59A;
    --accent-fg: #12261B;
    --code-bg: #0F1114;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.65 var(--sans);
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
code, pre { font-family: var(--mono); }
p code, li code { font-size: .88em; background: var(--bg-alt); border: 1px solid var(--border); padding: 1px 5px; border-radius: 4px; }
/* Keyboard users get a visible focus ring. */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.1rem); font-weight: 700; letter-spacing: -0.02em; max-width: 18ch; }
h2 { font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1em; }

/* Content runs the full width of the screen, with a gutter that grows on wider screens. */
.container { width: 100%; padding: 0 clamp(16px, 5vw, 96px); }
.narrow { max-width: 760px; margin: 0 auto; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
}
section[id] { scroll-margin-top: 64px; }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--fg); text-decoration: none; }
.logo { display: block; }
.nav-links { display: flex; gap: 24px; margin-left: auto; font-size: .95rem; }
.nav-links a, .nav-cta { color: var(--muted); text-decoration: none; }
.nav-links a:hover, .nav-cta:hover { color: var(--fg); }
.nav-cta { font-size: .95rem; font-weight: 500; color: var(--fg); }

/* Buttons */
.btn {
  display: inline-block; padding: 11px 18px; border-radius: 6px; font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { color: var(--fg); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-alt); }

/* Hero */
.hero { padding: 80px 0 72px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; margin-bottom: 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.note { font-size: .92rem; color: var(--muted); margin: 0; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.hero h1 { max-width: 16ch; }
.log { margin: 0; min-width: 0; }
.log figcaption { font-size: .9rem; color: var(--muted); margin-bottom: 8px; }
.log pre {
  margin: 0; padding: 18px 20px; background: var(--code-bg); color: var(--code-fg);
  border-radius: 8px; font-size: .88rem; line-height: 1.8; overflow-x: auto;
}
.t-dim { color: var(--code-dim); }
.t-ok { color: var(--ok); }

/* Hero: dashboard card under the deploy log */
.live-card {
  margin-top: 16px; padding: 16px; border-radius: 8px;
  background: var(--bg); border: 1px solid var(--border);
  display: grid; gap: 10px; font-size: .9rem;
}
.live-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; }
.live-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-weight: 600;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.live-dot-lg { width: 12px; height: 12px; }
.live-meta { color: var(--muted); }
.live-url {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px 14px; padding: 14px 16px; border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
  background: color-mix(in srgb, var(--accent) 7%, var(--bg));
}
.live-url-text { display: grid; flex: 1 1 230px; min-width: 0; }
.live-label { font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.live-link { font-size: 1rem; font-weight: 500; overflow-wrap: anywhere; }
.live-actions { display: flex; gap: 8px; }
.live-btn {
  padding: 6px 12px; border-radius: 6px; font-weight: 600; font-size: .85rem; white-space: nowrap;
  border: 1px solid var(--border); background: var(--bg-alt);
}
.live-btn-primary { background: var(--accent); color: var(--accent-fg); border-color: transparent; }
.live-row {
  display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; border-radius: 8px;
  background: var(--bg-alt); color: var(--muted);
}
.live-row-url { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; text-align: right; }

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-intro { color: var(--muted); max-width: 60ch; }

.steps { padding-left: 1.3em; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px clamp(32px, 4vw, 64px); }
.steps li { padding-left: 6px; }
.steps li::marker { font-weight: 700; color: var(--accent); }
.steps h3 { margin-bottom: 4px; }
.steps p { color: var(--muted); margin: 0; }

.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px clamp(28px, 3vw, 56px); margin-top: 36px; }
.features h3 { margin-bottom: 4px; }
.features p { color: var(--muted); margin: 0; }
.features-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.two-col p { max-width: 62ch; }
.install-cmd .codeblock { margin-top: 0; }
.snippet {
  margin: 0; padding: 14px 16px; background: var(--code-bg); color: var(--code-fg);
  border-radius: 8px; font-size: .85rem; line-height: 1.6; overflow-x: auto;
}
/* Never let a long line (like the install command) widen a column; it scrolls inside its box instead. */
.hero-grid > *, .two-col > * { min-width: 0; }
.codeblock { max-width: 100%; }
.two-col p { color: var(--muted); }
.plain-list { margin: 0; padding-left: 1.2em; }
.plain-list li { margin-bottom: 14px; color: var(--muted); }
.plain-list strong { color: var(--fg); }

.install-steps { padding-left: 1.3em; margin: 20px 0 0; }
.install-steps li { margin-bottom: 6px; }
.codeblock {
  display: flex; align-items: center; gap: 12px; margin: 18px 0 12px; padding: 12px 12px 12px 16px;
  background: var(--code-bg); color: var(--code-fg); border-radius: 8px;
}
.codeblock code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font-size: .85rem; }
.copy {
  flex-shrink: 0; font: 500 .85rem var(--sans); padding: 6px 12px; border-radius: 5px; cursor: pointer;
  border: 1px solid #444A52; background: transparent; color: var(--code-fg);
}
.copy:hover { background: #2B3036; }

/* About */
.founder { display: flex; gap: 24px; align-items: flex-start; }
.avatar {
  width: 88px; height: 88px; flex-shrink: 0; border-radius: 50%; object-fit: cover;
  display: grid; place-items: center; font-size: 1.6rem; font-weight: 700; color: var(--accent);
  background: var(--bg-alt); border: 1px solid var(--border);
}
.founder-hello { font-size: 1.1rem; }
.founder-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; font-weight: 500; }

/* FAQ */
.faq-list { margin-top: 20px; }
.faq-list details p { max-width: 75ch; }
details { border-top: 1px solid var(--border); padding: 16px 0; }
details:last-of-type { border-bottom: 1px solid var(--border); }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 10px 0 0; }

.closing-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.closing p { color: var(--muted); margin: 0; }

.footer { border-top: 1px solid var(--border); padding: 24px 0; font-size: .9rem; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--fg); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 28px; align-items: stretch; }
.plan {
  display: flex; flex-direction: column; padding: 28px 24px 24px; border-radius: 8px;
  background: var(--bg-alt); border: 1px solid var(--border);
}
.plan-popular { border: 2px solid var(--accent); padding: 27px 23px 23px; }
.plan-badge {
  align-self: flex-start; margin: 0 0 12px; padding: 2px 10px; border-radius: 999px;
  background: var(--accent); color: var(--accent-fg); font-size: .8rem; font-weight: 600;
}
.plan h3 { font-size: 1.25rem; margin-bottom: 2px; }
.plan-for { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.plan-price { font-size: 2rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; margin: 0; }
.plan-price span { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan-usd { font-size: .85rem; color: var(--muted); margin: 4px 0 20px; overflow-wrap: anywhere; }
.plan-list { list-style: none; margin: 0 0 24px; padding: 20px 0 0; border-top: 1px solid var(--border); flex: 1; }
.plan-list li { position: relative; padding-left: 24px; margin-bottom: 10px; }
.plan-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.plan .btn { text-align: center; }
.plans-note { margin: 20px 0 0; max-width: 75ch; }
.pricing-faq { margin-top: 40px; }

/* Responsive */
@media (max-width: 1100px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero-grid, .two-col { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hero-grid { gap: 40px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 480px; }
}
@media (max-width: 680px) {
  .container { padding: 0 16px; }
  /* Keep the section links on phones as a second, scrollable row. */
  .nav-inner { flex-wrap: wrap; height: auto; padding-top: 12px; row-gap: 6px; }
  .nav-cta { margin-left: auto; }
  .nav-links { order: 3; width: 100%; margin: 0; padding-bottom: 10px; overflow-x: auto; gap: 20px; white-space: nowrap; font-size: .9rem; }
  section[id] { scroll-margin-top: 96px; }
  .hero { padding: 48px 0; }
  .section { padding: 56px 0; }
  .features { grid-template-columns: minmax(0, 1fr); }
  .founder { flex-direction: column; }
  .log pre, .codeblock code { font-size: .78rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* 404 page */
.page-404 { min-height: 100vh; display: flex; flex-direction: column; }
.not-found { flex: 1; display: flex; align-items: center; padding: 64px 0; }
.not-found-code { font: 600 .95rem var(--mono); color: var(--accent); margin-bottom: 12px; }
.not-found-links { color: var(--muted); font-size: .95rem; max-width: 52ch; margin: 8px 0 0; }
.t-err { color: #F08A7E; }
