/* Andagio website: one calm page, the app's dark palette (docs/DESIGN.md), system fonts only. */

:root {
  --surface: #1F2422;
  --raised: #2A302D;
  --ink: #ECE8E1;
  --muted: #A7ADA8;
  --line: rgba(236, 232, 225, 0.12);
  --disc: #C4CBBD;
  --glow: rgba(255, 196, 150, 0.16);
  --radius: 28px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration-color: rgba(236, 232, 225, 0.35); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Header */

.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0;
}
.wordmark {
  font-weight: 300; font-size: 26px; letter-spacing: 0.14em; text-decoration: none;
}
.lang { font-size: 14px; color: var(--muted); text-decoration: none; letter-spacing: 0.04em; }
.lang:hover { color: var(--ink); }

/* Hero */

.hero {
  display: grid; gap: 48px; align-items: center;
  grid-template-columns: 1fr;
  padding: 16px 0 72px;
  position: relative;
}
.hero::before {
  /* A low morning sun behind the preview. */
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 900px; height: 900px; right: -220px; top: -160px;
  background: radial-gradient(closest-side, var(--glow), transparent);
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.1fr 0.9fr; gap: 72px; padding: 40px 0 96px; }
}

.eyebrow {
  margin: 0 0 18px; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
h1 {
  margin: 0 0 22px; font-weight: 300; letter-spacing: -0.01em;
  font-size: clamp(42px, 7vw, 76px); line-height: 1.04;
}
.lead { margin: 0 0 32px; max-width: 34em; font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); }
.lead strong { color: var(--ink); font-weight: 500; }

.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
/* Until the app is live: plain text, no Apple badge (the badge is only for apps that are available). */
.soon {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px;
  background: var(--ink); color: var(--surface); font-weight: 600; font-size: 16px;
}
.soon::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #7FA37E; box-shadow: 0 0 0 4px rgba(127, 163, 126, 0.25); }
.follow { font-size: 16px; color: var(--muted); }
.follow:hover { color: var(--ink); }

/* Live preview: the session screen, breathing */

.preview { justify-self: center; width: min(100%, 380px); }
.window {
  position: relative; aspect-ratio: 9 / 16; border-radius: 40px; overflow: hidden;
  background: #121614; isolation: isolate;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--line);
}
.window video, .window img.poster {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
}
.window::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.30) 55%, rgba(0, 0, 0, 0.55));
}
.circles { position: absolute; left: 50%; top: 44%; width: 74%; aspect-ratio: 1; transform: translate(-50%, -50%); }
.circles > * { position: absolute; inset: 0; border-radius: 50%; will-change: transform, opacity; }
.ring { border: 3px solid rgba(236, 232, 225, 0.9); transform: scale(0.61); }
.disc { background: radial-gradient(closest-side, var(--disc) 96%, rgba(196, 203, 189, 0)); opacity: 0.95; inset: 4%; transform: scale(0.61); }
.wave { border: 2px solid rgba(236, 232, 225, 0.5); opacity: 0; }
.phase {
  position: absolute; left: 0; right: 0; top: 74%; text-align: center;
  font-size: 15px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  transition: opacity 0.5s ease;
}
.caption { margin: 14px 0 0; text-align: center; font-size: 14px; color: var(--muted); }

/* Features */

.features {
  display: grid; gap: 16px; grid-template-columns: 1fr; padding-bottom: 72px;
}
@media (min-width: 760px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { padding: 28px; border-radius: var(--radius); background: var(--raised); }
.feature h2 { margin: 0 0 8px; font-size: 19px; font-weight: 600; }
.feature p { margin: 0; color: var(--muted); }
.pro {
  display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; vertical-align: 1px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink); border: 1px solid rgba(236, 232, 225, 0.35);
}
.mini { display: block; width: 34px; height: 34px; margin-bottom: 18px; }

.closing { padding: 24px 0 96px; text-align: center; }
.closing p { margin: 0 auto 10px; max-width: 36em; color: var(--muted); }
.closing .price { color: var(--ink); font-size: clamp(20px, 2.6vw, 26px); font-weight: 300; margin-bottom: 18px; }

/* Footer */

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 14px; }
footer nav a { text-decoration: none; }
footer nav a:hover { color: var(--ink); }
footer p { margin: 6px 0; }
.fine { font-size: 12px; opacity: 0.8; }

/* Text pages: privacy, support, imprint */

.doc { max-width: 720px; padding: 24px 0 80px; }
.doc h1 { font-size: clamp(36px, 6vw, 52px); }
.doc h2 { margin: 40px 0 10px; font-size: 21px; font-weight: 600; }
.doc p, .doc li { color: var(--muted); }
.doc strong { color: var(--ink); font-weight: 500; }
.doc ul { padding-left: 20px; }
.doc .stand { font-size: 14px; }
.placeholder { background: rgba(224, 154, 124, 0.18); color: #F2C2AE; padding: 0 6px; border-radius: 6px; }
details { border-top: 1px solid var(--line); padding: 16px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 500; color: var(--ink); list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--muted); }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 0; }

@media (prefers-reduced-motion: reduce) {
  .phase { transition: none; }
}
