/* ============================================================
   Schedule Assistant — site-wide design system
   Zero-dependency, dark-mode aware, fluid type.
   ============================================================ */

:root {
  color-scheme: light dark;

  /* Palette — light */
  --bg: #f6f6fa;
  --bg-elevated: #ffffff;
  --bg-soft: #eeeef5;
  --text: #16161d;
  --text-muted: #5c5c6b;
  --text-faint: #8e8e9d;
  --border: rgba(22, 22, 29, 0.10);
  --border-strong: rgba(22, 22, 29, 0.16);

  /* Brand */
  --accent-1: #5e5ce6;   /* iOS indigo */
  --accent-2: #b14deb;   /* violet */
  --accent-grad: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  --accent-soft: rgba(94, 92, 230, 0.10);
  --ok: #30a46c;
  --warn: #b47d00;

  --shadow-card: 0 1px 2px rgba(16, 16, 24, 0.04), 0 12px 32px -16px rgba(16, 16, 24, 0.18);
  --shadow-pop: 0 24px 60px -24px rgba(50, 40, 130, 0.35);

  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;

  --nav-h: 64px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b10;
    --bg-elevated: #16161f;
    --bg-soft: #1d1d29;
    --text: #f2f2f7;
    --text-muted: #a5a5b4;
    --text-faint: #74747f;
    --border: rgba(242, 242, 247, 0.10);
    --border-strong: rgba(242, 242, 247, 0.18);
    --accent-soft: rgba(122, 120, 255, 0.14);
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px -20px rgba(0, 0, 0, 0.6);
    --shadow-pop: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
    --ok: #3dd68c;
    --warn: #f0b90b;
  }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; display: block; }

a { color: var(--accent-1); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 700;
  text-wrap: balance;
}

h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

:focus-visible {
  outline: 2px solid var(--accent-1);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: rgba(94, 92, 230, 0.25); }

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.container--narrow { width: min(780px, 100% - 2.5rem); }

/* ---------- Navigation ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--border);
}

.site-nav .container {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  color: var(--text);
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex: none;
  box-shadow: 0 4px 12px -4px rgba(94, 92, 230, 0.6);
}
.brand-mark img { width: 100%; height: 100%; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--text); background: var(--bg-soft); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--text); font-weight: 650; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 0.5rem;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-elevated) 60%, transparent);
}
.lang-switch a {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
}
.lang-switch a:hover { text-decoration: none; color: var(--text); }
.lang-switch a[aria-current="true"] {
  background: var(--accent-grad);
  color: #fff;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
  cursor: pointer;
}

@media (max-width: 880px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.8rem 1.25rem 1.1rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.35);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.65rem 0.8rem; font-size: 1rem; }
  .lang-switch { margin: 0.6rem 0 0; align-self: flex-start; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 650;
  padding: 0.78rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(94, 92, 230, 0.65);
}
.btn--primary:hover { box-shadow: 0 14px 30px -10px rgba(94, 92, 230, 0.75); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover { background: var(--bg-soft); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(3rem, 7vw, 5.5rem);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 130%;
  background:
    radial-gradient(42% 55% at 18% 30%, rgba(94, 92, 230, 0.20), transparent 70%),
    radial-gradient(38% 50% at 82% 22%, rgba(177, 77, 235, 0.16), transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.8fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

@media (max-width: 880px) {
  .hero .container { grid-template-columns: 1fr; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-1);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent-1) 25%, transparent);
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 34em;
  margin-bottom: 1.8rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.8rem;
}

.appstore-badge img { height: 52px; width: auto; }
.appstore-badge { display: inline-block; border-radius: 10px; }
.appstore-badge:hover { text-decoration: none; }

.badge-note {
  font-size: 0.85rem;
  color: var(--text-faint);
}

/* ---------- Phone frame + placeholder slots ---------- */

.phone-frame {
  width: min(320px, 78vw);
  aspect-ratio: 62 / 128;
  margin-inline: auto;
  border-radius: 46px;
  background: var(--bg-elevated);
  border: 10px solid #191921;
  box-shadow: var(--shadow-pop), inset 0 0 0 2px rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.phone-frame::before {           /* Dynamic Island */
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 32%;
  height: 22px;
  background: #191921;
  border-radius: 999px;
  z-index: 2;
}

.phone-frame > * { position: absolute; inset: 0; }
.phone-frame img, .phone-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-slot {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.2rem;
  background:
    repeating-linear-gradient(45deg,
      color-mix(in srgb, var(--accent-1) 5%, transparent) 0 14px,
      transparent 14px 28px),
    var(--bg-soft);
  border: 2px dashed color-mix(in srgb, var(--accent-1) 45%, transparent);
  border-radius: var(--radius-m);
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  min-height: 180px;
}
.placeholder-slot strong { color: var(--text); display: block; margin-bottom: 0.3rem; }
.placeholder-slot code {
  font-size: 0.78rem;
  background: color-mix(in srgb, var(--text) 8%, transparent);
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  word-break: break-all;
}
.phone-frame .placeholder-slot { border-radius: 36px; border-width: 0; }

/* ---------- Sections ---------- */

.section { padding: clamp(3rem, 8vw, 5.5rem) 0; scroll-margin-top: calc(var(--nav-h) + 12px); }
.section--alt { background: color-mix(in srgb, var(--bg-elevated) 55%, var(--bg)); border-block: 1px solid var(--border); }

.section-head { max-width: 640px; margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.section-head p { color: var(--text-muted); font-size: 1.08rem; margin: 0; }

.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 0.6rem;
}

/* ---------- Screenshot gallery ---------- */

/* A horizontal rail rather than a grid: nine tall portrait shots stacked in a
   grid would push everything below them off the page. Scroll-snap gives it the
   flick-through feel of App Store previews. */
.shots {
  display: flex;
  gap: 1.1rem;
  overflow-x: auto;
  padding-block: 0.4rem 1.4rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.shot {
  flex: 0 0 auto;
  width: 220px;
  scroll-snap-align: center;
}

.shot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-l);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  background: var(--bg-elevated);
}

.shot figcaption {
  margin-top: 0.7rem;
  text-align: center;
  font-size: 0.92rem;
  color: var(--text-muted);
}

@media (max-width: 720px) {
  .shot { width: 180px; }
}

/* ---------- Cards / grids ---------- */

.grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 1.6rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-pop); }

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent-1) 22%, transparent);
  margin-bottom: 1rem;
}

.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

/* ---------- Tutorial steps ---------- */

.steps { display: grid; gap: 1.1rem; counter-reset: step; }

.step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 1.5rem;
  align-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 1.6rem 1.8rem;
  box-shadow: var(--shadow-card);
}
.step:nth-child(even) { grid-template-columns: 220px minmax(0, 1fr); }
.step:nth-child(even) .step-copy { order: 2; }
.step:nth-child(even) .step-media { order: 1; }

@media (max-width: 720px) {
  .step, .step:nth-child(even) { grid-template-columns: 1fr; }
  .step:nth-child(even) .step-copy { order: 1; }
  .step:nth-child(even) .step-media { order: 2; }
  /* Keep portrait screenshots hand-sized when stacked; strips stay full width */
  .step:not(.step--stack) .step-media img { max-width: 250px; margin-inline: auto; }
}

.step-num {
  counter-increment: step;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--accent-grad);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}
.step-num::before { content: counter(step); }

.step h3 { font-size: 1.25rem; }
.step p { color: var(--text-muted); margin: 0 0 0.6rem; }
.step p:last-child { margin-bottom: 0; }
.step-media .placeholder-slot { min-height: 150px; }

.step-media img {
  width: 100%;
  border-radius: var(--radius-m);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

/* Wide annotated strips (input-bar callouts) span the card instead of the side column */
.step--stack, .step:nth-child(even).step--stack { grid-template-columns: 1fr; }
.step--stack .step-copy { order: 1; }
.step--stack .step-media { order: 2; }
.step-strip { display: grid; gap: 0.75rem; max-width: 640px; }
.step-strip img { border-radius: 16px; }

.say {
  display: inline-block;
  font-style: normal;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent-1) 25%, transparent);
  color: var(--text);
  border-radius: 14px 14px 14px 4px;
  padding: 0.4rem 0.85rem;
  font-size: 0.95rem;
  margin: 0.35rem 0.35rem 0 0;
}

/* ---------- Use cases (chat mock) ---------- */

.usecase {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.uc-quote {
  align-self: flex-end;
  max-width: 92%;
  background: var(--accent-grad);
  color: #fff;
  padding: 0.65rem 1rem;
  border-radius: 18px 18px 4px 18px;
  font-size: 0.97rem;
  line-height: 1.45;
  box-shadow: 0 8px 20px -10px rgba(94, 92, 230, 0.7);
}

.uc-result {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  color: var(--text-muted);
  font-size: 0.93rem;
}
.uc-result .ico { flex: none; font-size: 1.15rem; line-height: 1.4; }
.uc-result strong { color: var(--text); }

/* ---------- Pricing ---------- */

.pricing {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: stretch;
}

.price-card {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 1.8rem 1.7rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.price-card--featured {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--bg-elevated), var(--bg-elevated)) padding-box,
    var(--accent-grad) border-box;
  box-shadow: var(--shadow-pop);
}

.price-flag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-grad);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.28rem 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
}

.price-tier { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.2rem; }
.price-amount { font-size: 2.3rem; font-weight: 800; letter-spacing: -0.03em; }
.price-amount small { font-size: 0.95rem; font-weight: 600; color: var(--text-muted); letter-spacing: 0; }
.price-note { color: var(--text-faint); font-size: 0.85rem; margin: 0.15rem 0 1.1rem; }

.price-list { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: 0.55rem; flex: 1; }
.price-list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.94rem;
  color: var(--text-muted);
}
.price-list li::before {
  content: "✓";
  flex: none;
  font-weight: 800;
  color: var(--ok);
}
.price-list li.lim::before { content: "•"; color: var(--text-faint); }

.pricing-foot { color: var(--text-faint); font-size: 0.85rem; margin-top: 1.4rem; }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 0.7rem; }

.faq details {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 0;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.3rem;
  font-weight: 650;
  font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-faint);
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div {
  padding: 0 1.3rem 1.15rem;
  color: var(--text-muted);
  font-size: 0.96rem;
}
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- Legal / article pages ---------- */

.page-hero {
  padding: clamp(2.8rem, 7vw, 4.5rem) 0 clamp(1.6rem, 4vw, 2.6rem);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(50% 90% at 50% -20%, rgba(94, 92, 230, 0.14), transparent 70%);
}
.page-hero p { color: var(--text-muted); max-width: 44em; margin: 0; font-size: 1.05rem; }
.page-hero .meta { margin-top: 0.9rem; font-size: 0.88rem; color: var(--text-faint); }

.legal { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 7vw, 5rem); }
.legal h2 {
  font-size: 1.45rem;
  margin-top: 2.4em;
  scroll-margin-top: calc(var(--nav-h) + 16px);
}
.legal h2:first-of-type { margin-top: 0.6em; }
.legal h3 { font-size: 1.08rem; margin-top: 1.6em; }
.legal ul { padding-left: 1.3em; color: var(--text); }
.legal li { margin-bottom: 0.45em; }
.legal li, .legal p { color: color-mix(in srgb, var(--text) 88%, var(--text-muted)); }

.summary-box {
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent-1) 25%, transparent);
  border-radius: var(--radius-m);
  padding: 1.2rem 1.4rem;
  margin: 1.4rem 0 0.6rem;
}
.summary-box h3 { margin-top: 0 !important; }
.summary-box ul { margin-bottom: 0; }

.legal table, .perm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  margin: 1.2rem 0;
}
.legal th, .legal td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
}
.legal th { background: var(--bg-soft); font-weight: 700; white-space: nowrap; }
.legal td { color: color-mix(in srgb, var(--text) 88%, var(--text-muted)); }

.todo-note {
  display: inline-block;
  background: color-mix(in srgb, var(--warn) 14%, transparent);
  border: 1px dashed color-mix(in srgb, var(--warn) 55%, transparent);
  color: var(--warn);
  font-weight: 650;
  border-radius: 8px;
  padding: 0.1rem 0.5rem;
}

.toc {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 1.1rem 1.4rem;
  margin: 1.6rem 0 0;
  font-size: 0.92rem;
}
.toc strong { display: block; margin-bottom: 0.5rem; }
.toc ol { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 2.5rem; }
.toc li { margin-bottom: 0.3em; }
@media (max-width: 640px) { .toc ol { columns: 1; } }

/* ---------- Support extras ---------- */

.contact-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.1rem;
  margin-bottom: 2.5rem;
}

.kbd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; font-size: 0.93rem; color: var(--text-muted); }
.kbd-list li::before { content: "→ "; color: var(--accent-1); font-weight: 700; }

/* ---------- Changelog timeline ---------- */

.timeline { position: relative; margin: 0; padding: 0 0 0 1.6rem; list-style: none; }
.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--accent-1), color-mix(in srgb, var(--accent-2) 40%, transparent));
  border-radius: 2px;
}
.timeline > li { position: relative; padding-bottom: 1.8rem; }
.timeline > li::before {
  content: "";
  position: absolute;
  left: calc(-1.6rem + 1px);
  top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent-grad);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-1) 18%, transparent);
}
.timeline .ver {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-weight: 750;
  font-size: 1.05rem;
}
.timeline .ver .tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ok);
  background: color-mix(in srgb, var(--ok) 14%, transparent);
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
}
.timeline .date { color: var(--text-faint); font-size: 0.85rem; font-weight: 500; }
.timeline ul { margin: 0.5rem 0 0; padding-left: 1.2em; color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Download band ---------- */

.download-band {
  text-align: center;
  padding: clamp(3.2rem, 8vw, 5.5rem) 0;
  position: relative;
  overflow: hidden;
}
.download-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(55% 80% at 50% 110%, rgba(94, 92, 230, 0.22), transparent 70%);
  pointer-events: none;
}
.download-band .container { position: relative; }
.download-band .hero-ctas { justify-content: center; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2.2rem;
  background: color-mix(in srgb, var(--bg-elevated) 45%, var(--bg));
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.2rem;
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-grid h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 0.8rem;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.footer-grid a { color: var(--text-muted); }
.footer-grid a:hover { color: var(--text); }
.footer-tagline { color: var(--text-muted); max-width: 26em; margin-top: 0.7rem; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  color: var(--text-faint);
  font-size: 0.84rem;
}
.footer-bottom a { color: var(--text-faint); text-decoration: underline; }

/* ---------- 404 / simple pages ---------- */

.simple-center {
  min-height: calc(100svh - var(--nav-h));
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1.5rem;
}
.simple-center .big { font-size: clamp(4rem, 14vw, 7rem); font-weight: 800; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }

/* ---------- Reveal animation ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover, .btn:hover { transform: none; }
}
