/* Ars Volandi marketing site. Colours are the app's Horizon tokens
   (app/src/styles/tokens.css) so the site and the app read as one thing. */
:root {
  --bg: #0B131C;
  --bg2: #0F1923;
  --surface: #141E2A;
  --line: #223040;
  --accent: #2E9BFF;
  --accent-soft: color-mix(in srgb, var(--accent) 16%, transparent);
  --text: #E8EEF7;
  --muted: #8CA3C3;
  --dim: #5C7396;
  --amber: #F5B451;
  --radius: 18px;
  --wrap: 1120px;
  color-scheme: dark;
}

/* Big-screen zoom (same steps as every other app). Full-height boxes
   divide by --zf, because zoom also multiplies vh/vw units. */
:root{--zf:1}
@media(min-width:1800px) and (min-height:1000px){:root{--zf:1.12}}
@media(min-width:2200px) and (min-height:1200px){:root{--zf:1.25}}
@media(min-width:2500px) and (min-height:1350px){:root{--zf:1.4}}
@media(min-width:3000px) and (min-height:1650px){:root{--zf:1.65}}
@media(min-width:3500px) and (min-height:1900px){:root{--zf:1.9}}
html{zoom:var(--zf)}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 600; }
p { margin: 0; }

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

.eyebrow, .section-label {
  font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 14px;
}
.fine { font-size: 14px; color: var(--dim); }
.sub { color: var(--muted); margin-top: 10px; max-width: 620px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; font-weight: 600;
  border-radius: 12px; padding: 12px 20px; border: 1px solid var(--accent);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 8px 28px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn-sm { padding: 7px 14px; font-size: 15px; border-radius: 10px; }
.btn-lg { padding: 15px 26px; font-size: 18px; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); box-shadow: none; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(150%) blur(14px); -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  padding-top: env(safe-area-inset-top);
}
.top-in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 18px; letter-spacing: 0.01em; }
.brand:hover { text-decoration: none; }
.brand img { display: block; }
.top-nav { display: flex; align-items: center; gap: 24px; }
.top-nav a:not(.btn) { color: var(--muted); font-size: 15px; }
.top-nav a:not(.btn):hover { color: var(--text); text-decoration: none; }
@media (max-width: 720px) { .top-nav a:not(.btn) { display: none; } }

/* Phones */
.phone {
  /* Screen corners scale with the phone, like an iPhone 15 Pro (55 pt on a 393 pt screen). */
  --w: 300px; --pad: 10px; --r: calc((var(--w) - 2 * var(--pad)) * 0.14);
  position: relative;
  border-radius: calc(var(--r) + var(--pad)); padding: var(--pad); background: #05090E;
  box-shadow: 0 0 0 1px #2A3A4D, 0 30px 80px rgba(0,0,0,.55), 0 0 60px color-mix(in srgb, var(--accent) 14%, transparent);
  width: var(--w); flex: none;
}
.phone img { border-radius: var(--r); width: 100%; }

/* The app's "on shift" border (app/src/styles/base.css .autolog-frame):
   a crisp accent edge plus two inward glows, all on the same slow 5 s
   pulse, drawn over the screenshot so it follows the screen's corners. */
.glow, .glow::before, .glow::after {
  position: absolute; pointer-events: none; border-radius: var(--r);
}
.glow { inset: var(--pad); border: 2px solid var(--accent); animation: glow-edge 5s ease-in-out infinite; }
.glow::before, .glow::after { content: ""; inset: -2px; }
.glow::before {
  box-shadow: inset 0 0 14px 2px color-mix(in srgb, var(--accent) 75%, transparent);
  animation: glow-tight 5s ease-in-out infinite;
}
.glow::after {
  box-shadow: inset 0 0 70px 14px color-mix(in srgb, var(--accent) 30%, transparent);
  animation: glow-bleed 5s ease-in-out infinite;
}
@keyframes glow-edge { 0%, 100% { opacity: 0.7; } 35% { opacity: 1; } }
@keyframes glow-tight { 0%, 100% { opacity: 0.35; } 35% { opacity: 1; } }
@keyframes glow-bleed { 0%, 100% { opacity: 0.1; } 40% { opacity: 0.85; } }

/* Hero */
.hero {
  position: relative; padding: 72px 0 88px; overflow: hidden;
  background:
    radial-gradient(900px 500px at 78% 30%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    radial-gradient(700px 400px at 10% 0%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 70%);
}
.hero-in { display: grid; grid-template-columns: 1fr 1.12fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6.2vw, 68px); font-weight: 800; letter-spacing: -0.025em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lede { font-size: 19px; color: var(--muted); margin-top: 22px; max-width: 560px; }
.lede strong { color: var(--text); font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .fine { margin-top: 16px; }
/* Laptop, iPad and iPhone, all sized in container units so the group
   scales as one picture. Each screen carries the on-shift pulse (.glow). */
.hero-art { width: 100%; }
.devices { position: relative; container-type: inline-size; aspect-ratio: 1 / 0.84; }
.laptop { position: absolute; top: 0; right: 0; width: 92cqw; }
.lap-screen {
  --pad: 1.4cqw; --r: 0.8cqw;
  position: relative; padding: var(--pad); background: #05090E;
  border-radius: 2.2cqw 2.2cqw 0 0;
  box-shadow: 0 0 0 1px #2A3A4D, 0 30px 80px rgba(0,0,0,.5);
}
.lap-screen img { width: 100%; border-radius: var(--r); }
.lap-base {
  height: 2.2cqw; width: 108%; margin-left: -4%;
  background: linear-gradient(#3A4656, #1A222D 60%, #10161E);
  border-radius: 0 0 2cqw 2cqw; box-shadow: 0 18px 40px rgba(0,0,0,.5);
}
.lap-base::before { content: ""; display: block; width: 16%; height: 40%; margin: 0 auto; background: #0D131A; border-radius: 0 0 1cqw 1cqw; }
.tablet {
  --pad: 1.9cqw; --r: 1.6cqw;
  position: absolute; left: 0; top: 41cqw; width: 54cqw;
  padding: var(--pad); background: #05090E; border-radius: calc(var(--r) + var(--pad));
  box-shadow: 0 0 0 1px #2A3A4D, 0 30px 80px rgba(0,0,0,.55), 0 0 50px color-mix(in srgb, var(--accent) 12%, transparent);
}
.tablet img { width: 100%; border-radius: var(--r); }
.devices .phone { position: absolute; right: 2cqw; top: 29cqw; --w: 25cqw; --pad: 1.1cqw; }
.devices .tablet .glow, .devices .tablet .glow::before, .devices .tablet .glow::after { animation-delay: -1.6s; }
.devices .lap-screen .glow, .devices .lap-screen .glow::before, .devices .lap-screen .glow::after { animation-delay: -3.2s; }
@media (max-width: 900px) {
  .hero { padding: 40px 0 56px; }
  .hero-in { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { max-width: 560px; margin: 0 auto; }
}
@media (max-width: 420px) {
  .btn-lg { width: 100%; }
}

/* Chip strip */
.fills { padding: 36px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg2); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 14px; font-size: 15px; font-weight: 500;
}
.chips li span { color: var(--dim); font-size: 13px; margin-left: 4px; }

/* How it works */
.how { padding: 96px 0; }
.how-grid { display: grid; grid-template-columns: 1fr auto; gap: 64px; align-items: center; margin-top: 48px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 30px; }
.steps li, .install-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 18px; align-items: start; }
.n {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--muted); }
.steps strong { color: var(--text); font-weight: 600; }
@media (max-width: 860px) {
  .how { padding: 64px 0; }
  .how-grid { grid-template-columns: 1fr; gap: 44px; }
  .how-grid .phone { margin: 0 auto; --w: 260px; }
}

/* Feature rows */
.feature { padding: 96px 0; border-top: 1px solid var(--line); }
.feature-alt { background: var(--bg2); }
.feature-in { display: grid; grid-template-columns: auto 1fr; gap: 72px; align-items: center; }
.feature-alt .feature-in { grid-template-columns: 1fr auto; }
.feature-copy p:not(.eyebrow) { color: var(--muted); margin-top: 18px; max-width: 540px; }
@media (max-width: 860px) {
  .feature { padding: 64px 0; }
  .feature-in, .feature-alt .feature-in { grid-template-columns: 1fr; gap: 40px; }
  .feature-in .phone { margin: 0 auto; --w: 260px; order: 2; }
}

/* Cards */
.more { padding: 96px 0; border-top: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p { color: var(--muted); margin-top: 8px; font-size: 16px; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .more { padding: 64px 0; } .cards { grid-template-columns: 1fr; } }

/* Honest notes */
.honest { padding: 0 0 96px; }
.honest-in {
  border: 1px solid color-mix(in srgb, var(--amber) 45%, var(--line)); border-radius: var(--radius);
  background: color-mix(in srgb, var(--amber) 5%, var(--surface)); padding: 36px 40px;
}
.honest h2 { font-size: clamp(24px, 3vw, 30px); }
.honest ul { margin: 20px 0 14px; padding-left: 20px; display: grid; gap: 12px; color: var(--muted); }
.honest li strong { color: var(--text); }
.honest em { color: var(--amber); font-style: normal; font-weight: 600; }
@media (max-width: 600px) { .honest { padding-bottom: 64px; } .honest-in { padding: 26px 22px; } }

/* Install */
.install { padding: 96px 0; border-top: 1px solid var(--line); background: var(--bg2); }
.install-steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.install-steps p { color: var(--muted); padding-top: 9px; }
.install-steps strong { color: var(--text); font-weight: 600; }
@media (max-width: 860px) { .install { padding: 64px 0; } .install-steps { grid-template-columns: 1fr; } }

/* FAQ */
.faq { padding: 96px 0; border-top: 1px solid var(--line); }
.faq h2 { margin-bottom: 28px; }
.faq details { border-bottom: 1px solid var(--line); max-width: 800px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 36px 20px 0; font-weight: 600; font-size: 18px; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  color: var(--accent); font-size: 24px; font-weight: 400; transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 22px; max-width: 720px; }
.faq details strong { color: var(--text); }
@media (max-width: 600px) { .faq { padding: 64px 0; } .faq summary { font-size: 17px; } }

/* Final CTA */
.final {
  padding: 96px 0; text-align: center; border-top: 1px solid var(--line);
  background: radial-gradient(700px 300px at 50% 100%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%);
}
.final-in { display: grid; justify-items: center; gap: 28px; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 40px 0 calc(32px + env(safe-area-inset-bottom)); }
.foot-in { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.foot .fine { margin-top: 8px; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; font-size: 15px; }
.foot-links a { color: var(--muted); }
.disclaimer { margin-top: 28px; font-size: 13px; color: var(--dim); }
.nowrap { white-space: nowrap; }

/* Plain text pages (privacy) */
.doc { padding: 64px 0 96px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(34px, 5vw, 46px); margin-bottom: 8px; }
.doc h2 { font-size: 22px; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--muted); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 20px; display: grid; gap: 8px; }
.doc strong { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .faq summary::after { transition: none; }
  .glow, .glow::before, .glow::after { animation: none; }
  .glow::after { opacity: 0.4; }
}
