/* Orbari — orbari.app
   Single stylesheet shared by index / manual / support / privacy / terms.
   Design: calm, cosmic, Apple-native. Dark by default. */

:root {
  color-scheme: dark;
  --bg-0: #09090f;
  --bg-1: #101429;
  --bg-2: #161a34;
  --nav-bg: rgba(7, 7, 13, 0.55);
  --input-bg: rgba(0, 0, 0, 0.25);
  --demo-bg: rgba(5, 6, 12, 0.92);
  --demo-frame-bg: radial-gradient(circle at 50% 24%, rgba(139,124,246,0.18), transparent 58%), #05060c;
  --media-bg: #05060c;
  --glow-violet: rgba(139, 124, 246, 0.22);
  --glow-coral: rgba(255, 157, 122, 0.14);
  --glow-teal: rgba(126, 224, 208, 0.10);
  --glow-gold: rgba(255, 210, 122, 0.07);
  --ring: rgba(255, 255, 255, 0.12);
  --planet-shadow: rgba(255, 157, 122, 0.5);
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --text: #eceeffe6;
  --text-strong: #ffffff;
  --muted: #9aa0bd;
  --accent: #8b7cf6;       /* periwinkle */
  --accent-2: #ff9d7a;     /* warm coral */
  --accent-3: #7ee0d0;     /* logo teal */
  --accent-4: #ffd27a;     /* logo gold */
  --accent-soft: #cfc0ff;
  --accent-grad: linear-gradient(120deg, #cfc0ff 0%, #8b7cf6 34%, #7ee0d0 68%, #ff9d7a 100%);
  --primary-text: #09090f;
  --radius: 18px;
  --radius-lg: 28px;
  --maxw: 1080px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
    Inter, Roboto, Helvetica, Arial, sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg-0: #fbfbff;
  --bg-1: #f1f2ff;
  --bg-2: #e7eaff;
  --nav-bg: rgba(251, 251, 255, 0.76);
  --input-bg: rgba(255, 255, 255, 0.78);
  --demo-bg: rgba(255, 255, 255, 0.78);
  --demo-frame-bg: radial-gradient(circle at 50% 24%, rgba(139,124,246,0.11), transparent 58%), #f7f7ff;
  --media-bg: #f7f7ff;
  --glow-violet: rgba(139, 124, 246, 0.18);
  --glow-coral: rgba(255, 157, 122, 0.12);
  --glow-teal: rgba(42, 153, 138, 0.10);
  --glow-gold: rgba(217, 158, 26, 0.08);
  --ring: rgba(18, 22, 43, 0.16);
  --planet-shadow: rgba(139, 124, 246, 0.30);
  --surface: rgba(255, 255, 255, 0.68);
  --surface-2: rgba(255, 255, 255, 0.92);
  --border: rgba(26, 31, 58, 0.13);
  --text: #23283d;
  --text-strong: #080a12;
  --muted: #5d657d;
  --accent: #5747cf;
  --accent-2: #a43f29;
  --accent-3: #126b62;
  --accent-4: #765100;
  --accent-soft: #8b7cf6;
  --accent-grad: linear-gradient(120deg, #5947d6 0%, #126b62 58%, #a43f29 100%);
  --primary-text: #ffffff;
  --shadow: 0 24px 70px -36px rgba(39, 46, 94, 0.38);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    color-scheme: light;
    --bg-0: #fbfbff;
    --bg-1: #f1f2ff;
    --bg-2: #e7eaff;
    --nav-bg: rgba(251, 251, 255, 0.76);
    --input-bg: rgba(255, 255, 255, 0.78);
    --demo-bg: rgba(255, 255, 255, 0.78);
    --demo-frame-bg: radial-gradient(circle at 50% 24%, rgba(139,124,246,0.11), transparent 58%), #f7f7ff;
    --media-bg: #f7f7ff;
    --glow-violet: rgba(139, 124, 246, 0.18);
    --glow-coral: rgba(255, 157, 122, 0.12);
    --glow-teal: rgba(42, 153, 138, 0.10);
    --glow-gold: rgba(217, 158, 26, 0.08);
    --ring: rgba(18, 22, 43, 0.16);
    --planet-shadow: rgba(139, 124, 246, 0.30);
    --surface: rgba(255, 255, 255, 0.68);
    --surface-2: rgba(255, 255, 255, 0.92);
    --border: rgba(26, 31, 58, 0.13);
    --text: #23283d;
    --text-strong: #080a12;
    --muted: #5d657d;
    --accent: #5747cf;
    --accent-2: #a43f29;
    --accent-3: #126b62;
    --accent-4: #765100;
    --accent-soft: #8b7cf6;
    --accent-grad: linear-gradient(120deg, #5947d6 0%, #126b62 58%, #a43f29 100%);
    --primary-text: #ffffff;
    --shadow: 0 24px 70px -36px rgba(39, 46, 94, 0.38);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: 92px; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient cosmic background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1100px 700px at 78% -8%, var(--glow-violet), transparent 60%),
    radial-gradient(880px 560px at 6% 8%, var(--glow-coral), transparent 56%),
    radial-gradient(720px 480px at 88% 36%, var(--glow-teal), transparent 58%),
    radial-gradient(560px 380px at 16% 72%, var(--glow-gold), transparent 60%),
    linear-gradient(180deg, var(--bg-1), var(--bg-0) 70%);
}

a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 100; padding: 10px 14px; border-radius: 999px;
  background: var(--text-strong); color: var(--bg-0); font-weight: 700; transform: translateY(-150%);
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 650; font-size: 1.15rem; color: var(--text-strong); letter-spacing: -0.01em; }
.brand__mark { width: 30px; height: 30px; border-radius: 7px; display: block; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { display: inline-flex; align-items: center; color: var(--muted); min-height: 44px; font-size: 0.94rem; transition: color 0.2s; }
.nav__links a:hover { color: var(--text-strong); }
.nav__cta { padding: 8px 16px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-strong) !important; font-weight: 550; }
.theme-toggle {
  width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2);
  color: var(--text-strong); cursor: pointer; display: grid; place-items: center;
}
/* Sun / moon glyph via a masked SVG so it inherits the button's text colour.
   Default (dark theme) shows the moon; light theme swaps in the sun. */
.theme-toggle__icon {
  width: 20px; height: 20px; display: block; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27black%27%3E%3Cpath%20d%3D%27M21%2012.79A9%209%200%201%201%2011.21%203%207%207%200%200%200%2021%2012.79z%27%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27black%27%3E%3Cpath%20d%3D%27M21%2012.79A9%209%200%201%201%2011.21%203%207%207%200%200%200%2021%2012.79z%27%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
}
:root[data-resolved-theme="light"] .theme-toggle__icon {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712%27%20r%3D%274.2%27%2F%3E%3Cpath%20d%3D%27M12%202v2M12%2020v2M4.2%204.2l1.4%201.4M18.4%2018.4l1.4%201.4M2%2012h2M20%2012h2M4.2%2019.8l1.4-1.4M18.4%205.6l1.4-1.4%27%2F%3E%3C%2Fsvg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712%27%20r%3D%274.2%27%2F%3E%3Cpath%20d%3D%27M12%202v2M12%2020v2M4.2%204.2l1.4%201.4M18.4%2018.4l1.4%201.4M2%2012h2M20%2012h2M4.2%2019.8l1.4-1.4M18.4%205.6l1.4-1.4%27%2F%3E%3C%2Fsvg%3E");
}
@media (max-width: 720px) {
  .nav__links { gap: 10px; }
  .nav__links a:not(.nav__cta) { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.2s;
}
.btn--primary { background: var(--accent-grad); color: var(--primary-text); box-shadow: 0 10px 30px -8px rgba(139, 124, 246, 0.6); }
.btn--primary:hover { transform: translateY(-2px); }
.btn--ghost { background: var(--surface); border-color: var(--border); color: var(--text-strong); }
.btn--ghost:hover { background: var(--surface-2); }
.soon { font-size: 0.82rem; color: var(--muted); margin-top: 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 40px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-block; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; font-weight: 600; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); line-height: 1.04; letter-spacing: -0.03em; color: var(--text-strong); margin-bottom: 20px; }
.hero h1 .grad { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 30ch; margin-bottom: 30px; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

/* Orbit illustration */
.orbit-wrap { display: flex; justify-content: center; }
.orbit { width: min(440px, 90%); height: auto; }
.orbit .ring { fill: none; stroke: var(--ring); stroke-width: 1; }
.orbit .sun { filter: drop-shadow(0 0 18px rgba(139,124,246,0.7)); }
.orbit .spin { transform-origin: 200px 200px; transform-box: view-box; }
.orbit .align {
  transform: rotate(var(--align-rotation, 0deg)); transform-origin: 200px 200px; transform-box: view-box;
  transition: transform 0.85s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.orbit .s1 { animation: orbit 16s linear infinite; }
.orbit .s2 { animation: orbit 26s linear infinite reverse; }
.orbit .s3 { animation: orbit 40s linear infinite; }
.orbit .planet { filter: drop-shadow(0 0 8px var(--planet-shadow)); }
.orbit .alignment-guide { stroke: var(--accent-3); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 5 11; opacity: 0; transition: opacity 0.25s ease; }
.orbit-wrap.is-paused .spin { animation-play-state: paused; }
.orbit-wrap.is-aligned .alignment-guide { opacity: 0.48; }
@keyframes orbit { to { transform: rotate(360deg); } }

@media (max-width: 860px) {
  .hero { padding: 28px 0 12px; }
  .hero__grid { grid-template-columns: 1fr; gap: 18px; text-align: center; }
  .eyebrow { margin-bottom: 12px; }
  .hero h1 { font-size: clamp(2.05rem, 8.8vw, 2.7rem); margin-bottom: 16px; }
  .hero p.lead { font-size: 1.05rem; margin-bottom: 24px; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero__cta { justify-content: center; }
  .orbit-wrap { order: -1; margin-bottom: 8px; }
  .orbit { width: min(260px, 70vw); }
  .story { padding-top: 20px; }
}

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-head { text-align: center; max-width: 42ch; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -0.02em; color: var(--text-strong); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* Story band */
.story { text-align: center; }
.story p { font-size: clamp(1.3rem, 2.6vw, 1.8rem); line-height: 1.4; max-width: 24ch; margin: 0 auto; color: var(--text); letter-spacing: -0.01em; }
.story .em { color: var(--accent-2); }

/* Features */
.feature-head { margin-bottom: 34px; }
.feature-head .eyebrow { margin-bottom: 10px; }
.feature-timeline {
  --timeline-progress: 0;
  position: relative;
  display: grid;
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}
.feature-timeline__rail {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 50%;
  width: 2px;
  border-radius: 999px;
  overflow: hidden;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, var(--border) 7%, var(--border) 93%, transparent);
}
.feature-timeline__progress {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transform: scaleY(var(--timeline-progress));
  transform-origin: 50% 0;
  background: linear-gradient(180deg, var(--accent), var(--accent-3), var(--accent-2));
  box-shadow: 0 0 26px rgba(126, 224, 208, 0.42);
  transition: transform 0.18s ease-out;
}
.feature-step {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  min-height: 226px;
}
.feature-step__content,
.feature-step__visual {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow);
}
.feature-step__content {
  grid-column: 1;
  padding: 28px;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.feature-step__visual {
  grid-column: 3;
  min-height: 196px;
  padding: 22px;
  display: grid;
  gap: 12px;
  align-content: center;
  color: var(--text);
}
.feature-step--flip .feature-step__content { grid-column: 3; }
.feature-step--flip .feature-step__visual { grid-column: 1; grid-row: 1; }
.feature-step__marker {
  position: relative;
  z-index: 2;
  grid-column: 2;
  grid-row: 1;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-0);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 0 0 8px var(--bg-0);
  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.feature-step.is-active .feature-step__marker {
  color: var(--text-strong);
  border-color: rgba(126, 224, 208, 0.5);
  background: radial-gradient(circle at 35% 28%, rgba(126, 224, 208, 0.28), transparent 48%), var(--bg-0);
  transform: scale(1.04);
}
.feature-step.is-active .feature-step__content {
  border-color: rgba(126, 224, 208, 0.28);
  transform: translateY(-2px);
}
.feature-step__kicker {
  display: block;
  color: var(--accent-3);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.feature-step h3 {
  color: var(--text-strong);
  font-size: clamp(1.32rem, 2.4vw, 1.8rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.feature-step p { color: var(--muted); font-size: 1rem; margin-bottom: 18px; }
.feature-step__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.feature-step__list li {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(126, 224, 208, 0.07);
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.2;
}
.feature-shot {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  min-height: 0;
  padding: 0;
  background: #f3f4fa;
}
.feature-shot img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--shot-position, 50% 30%);
}
.feature-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
}
.feature-shot--person { --shot-position: 50% 0%; }
.feature-shot--review { --shot-position: 50% 16%; }
.feature-shot--tree { --shot-position: 50% 46%; }
.feature-shot--settings { --shot-position: 50% 28%; }
.feature-shot--privacy { --shot-position: 50% 100%; }
.feature-preview {
  display: grid;
  place-items: center;
  padding: 26px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(238, 242, 255, 0.78));
}
.preview-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 320px);
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(26, 31, 58, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  color: #11131f;
  box-shadow: 0 24px 52px -36px rgba(31, 39, 92, 0.45);
}
.preview-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}
.preview-row {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  align-items: start;
  padding-top: 12px;
  border-top: 1px solid rgba(26, 31, 58, 0.10);
}
.preview-icon {
  width: 40px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(87, 71, 207, 0.10);
  color: #5747cf;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.preview-row strong { display: block; font-size: 0.95rem; }
.preview-row span:last-child { display: block; color: #62687b; font-size: 0.82rem; line-height: 1.35; }
@media (max-width: 860px) {
  .feature-timeline {
    gap: 24px;
    padding-left: 52px;
  }
  .feature-timeline__rail {
    left: 24px;
    transform: none;
  }
  .feature-step,
  .feature-step--flip {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: auto;
  }
  .feature-step__content,
  .feature-step__visual,
  .feature-step--flip .feature-step__content,
  .feature-step--flip .feature-step__visual {
    grid-column: 1;
    grid-row: auto;
  }
  .feature-step__content { padding: 22px; }
  .feature-step__visual { min-height: 156px; padding: 18px; }
  .feature-step__marker {
    position: absolute;
    grid-column: auto;
    grid-row: auto;
    left: -48px;
    top: 18px;
    width: 40px;
    height: 40px;
    font-size: 0.68rem;
    box-shadow: 0 0 0 6px var(--bg-0);
  }
}

/* Feature demo video */
.demo { max-width: 1000px; margin: 0 auto 56px; border-radius: 22px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); background: var(--demo-bg); }
.demo__frame { border-bottom: 1px solid var(--border); background: var(--demo-frame-bg); }
.demo video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: contain; background: var(--media-bg); }
.demo__chapters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); gap: 8px; padding: 12px; }
.chapter {
  position: relative; min-height: 68px; padding: 12px 12px 10px; border: 1px solid transparent; border-radius: 12px;
  background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer;
}
.chapter::before {
  content: ""; position: absolute; left: 12px; right: 12px; top: 8px; height: 2px; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-3), var(--accent-2)); opacity: 0; transition: opacity 0.2s;
}
.chapter:hover, .chapter:focus-visible, .chapter.is-active { border-color: rgba(126,224,208,0.34); background: rgba(126,224,208,0.08); color: var(--text-strong); }
.chapter:hover::before, .chapter:focus-visible::before, .chapter.is-active::before { opacity: 1; }
.chapter__time { display: block; color: var(--accent-3); font-size: 0.76rem; font-weight: 700; margin: 8px 0 3px; }

/* Privacy band */
.privacy-band { background: linear-gradient(140deg, rgba(139,124,246,0.12), rgba(126,224,208,0.055)), var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 48px; text-align: center; box-shadow: var(--shadow); }
.privacy-band h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--text-strong); margin-bottom: 14px; letter-spacing: -0.02em; }
.privacy-band p { color: var(--muted); max-width: 52ch; margin: 0 auto 26px; }
.pill-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.pill { padding: 8px 16px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: 0.9rem; color: var(--text); }

/* Pricing */
.price-card { max-width: 760px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow); }
.price-purchase { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; margin-bottom: 28px; }
.price-copy { text-align: left; }
.price-card .tag { display: inline-block; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 14px; }
.price-card .amount { font-size: 3.2rem; font-weight: 700; color: var(--text-strong); letter-spacing: -0.03em; }
.price-card .was { color: var(--muted); text-decoration: line-through; font-size: 1.2rem; margin-left: 8px; }
.price-card .note { color: var(--muted); margin: 6px 0 0; }
.store-callout { display: grid; gap: 8px; justify-items: start; color: var(--text); }
.store-callout > span { font-size: 0.9rem; color: var(--text-strong); font-weight: 650; }
.store-callout p { color: var(--muted); font-size: 0.86rem; }
.store-badge-link { display: inline-block; min-height: 40px; }
.store-badge { display: block; width: 160px; height: auto; }
.price-list { text-align: left; max-width: 520px; margin: 0 auto 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
.price-list li { list-style: none; display: flex; gap: 10px; color: var(--text); }
.price-list li::before { content: "✓"; color: var(--accent); font-weight: 700; }
.free-note { text-align: center; margin-top: 18px; font-size: 0.9rem; color: var(--muted); }
@media (max-width: 720px) {
  .price-card { padding: 28px; }
  .price-purchase { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .price-copy, .store-callout { text-align: center; justify-items: center; }
  .price-list { grid-template-columns: 1fr; max-width: 320px; }
}

/* Contact form */
.contact-card { max-width: 620px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.9rem; color: var(--muted); margin-bottom: 8px; }
.field-hint { color: var(--muted); font-weight: 400; }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; border-radius: 12px; background: var(--input-bg);
  border: 1px solid var(--border); color: var(--text); font-family: inherit; font-size: 1rem; transition: border 0.2s;
}
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 130px; }
.hp,
.hp-label { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-status { margin-top: 14px; font-size: 0.95rem; min-height: 1.2em; }
.form-status.ok { color: #7ee0a8; }
.form-status.err { color: #ff9d9d; }
.cf-turnstile { margin-bottom: 18px; }
.turnstile-status { margin: -6px 0 16px; color: var(--muted); font-size: 0.9rem; min-height: 1.2em; }
.turnstile-status.err { color: #ff9d9d; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 40px 0; color: var(--muted); font-size: 0.92rem; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.footer__credit a { color: var(--text); font-weight: 650; }
.footer__credit a:hover { color: var(--text-strong); text-decoration: underline; }
.footer__links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__links a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.footer__links a:hover { color: var(--text-strong); }

/* ---------- Prose (support / privacy) ---------- */
.prose { max-width: 760px; margin: 0 auto; padding: 56px 0; }
.prose h1 { font-size: clamp(2rem, 4vw, 2.8rem); color: var(--text-strong); letter-spacing: -0.02em; margin-bottom: 10px; }
.prose .meta { color: var(--muted); margin-bottom: 32px; }
.prose h2 { font-size: 1.5rem; color: var(--text-strong); margin: 36px 0 12px; letter-spacing: -0.01em; }
.prose h3 { font-size: 1.12rem; color: var(--text-strong); margin: 24px 0 6px; }
.prose p, .prose li { color: var(--text); margin-bottom: 12px; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 12px; }
.prose a { color: var(--accent); }
.prose a:hover { text-decoration: underline; }
.prose .callout { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 12px; padding: 16px 20px; margin: 20px 0; color: var(--muted); }
.back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--muted); margin-bottom: 24px; }
.back-link:hover { color: var(--text-strong); }

/* ---------- Manual ---------- */
.manual-page { padding-bottom: 72px; }
.manual-hero { padding: 56px 0 28px; }
.manual-hero h1 {
  max-width: 9ch;
  color: var(--text-strong);
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}
.manual-lead {
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.14rem;
  margin-bottom: 26px;
}
.manual-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.manual-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}
.manual-toc {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.manual-toc strong {
  color: var(--text-strong);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 10px 6px;
}
.manual-toc a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.94rem;
}
.manual-toc a:hover,
.manual-toc a:focus-visible {
  background: var(--surface-2);
  color: var(--text-strong);
}
.manual-toc a.is-active,
.manual-toc a[aria-current="location"] {
  background: rgba(126, 224, 208, 0.12);
  box-shadow: inset 3px 0 0 var(--accent);
  color: var(--text-strong);
  font-weight: 650;
}
.manual-content { display: grid; gap: 36px; min-width: 0; }
.manual-section {
  padding-top: 6px;
  border-top: 1px solid var(--border);
}
.manual-section h2 {
  color: var(--text-strong);
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}
.manual-section-lead {
  max-width: 58ch;
  color: var(--muted);
  margin: -6px 0 18px;
}
.manual-cards,
.manual-log-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.manual-card,
.manual-log-grid > div,
.manual-detail,
.manual-note {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow);
}
.manual-card,
.manual-log-grid > div,
.manual-note {
  padding: 22px;
}
.manual-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(126, 224, 208, 0.10);
  color: var(--accent-3);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.manual-card h3,
.manual-log-grid h3 {
  color: var(--text-strong);
  font-size: 1.08rem;
  line-height: 1.2;
  margin-bottom: 8px;
}
.manual-card p,
.manual-log-grid p,
.manual-detail p,
.manual-detail li,
.manual-note p {
  color: var(--text);
}
.manual-detail {
  margin-top: 12px;
  overflow: hidden;
}
.manual-detail summary {
  min-height: 56px;
  padding: 16px 18px;
  color: var(--text-strong);
  cursor: pointer;
  font-weight: 700;
}
.manual-detail summary::marker { color: var(--accent-3); }
.manual-detail p,
.manual-detail ol,
.manual-detail ul {
  padding: 0 18px 18px 38px;
}
.manual-detail p { padding-left: 18px; }
.manual-detail li { margin-bottom: 8px; }
.manual-note {
  display: grid;
  gap: 14px;
}
.manual-note a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent);
  font-weight: 700;
}
.manual-detail a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.manual-note a:hover { text-decoration: underline; }
.manual-shortcuts {
  display: grid;
  gap: 8px;
}
.manual-shortcut-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(96px, auto) minmax(0, 1.6fr);
  gap: 14px;
  align-items: center;
  min-height: 56px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(145deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow);
}
.manual-shortcut-row span:first-child {
  color: var(--text-strong);
  font-weight: 700;
}
.manual-shortcut-row span:last-child {
  color: var(--muted);
}
kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 4px 10px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-strong);
  font-family: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

@media (max-width: 860px) {
  .manual-hero { padding-top: 34px; }
  .manual-layout { grid-template-columns: 1fr; gap: 28px; }
  .manual-toc {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .manual-toc strong { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .manual-hero h1 { max-width: none; }
  .manual-actions .btn { width: 100%; justify-content: center; }
  .manual-toc,
  .manual-cards,
  .manual-log-grid {
    grid-template-columns: 1fr;
  }
  .manual-shortcut-row {
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: start;
  }
  .manual-shortcut-row kbd {
    justify-content: flex-start;
    width: max-content;
  }
}

/* ---------- Motion / a11y ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
