/* Aether Tools — per-app landing pages.
   Loaded AFTER style.css, which supplies the design tokens, the void
   backdrop (body::before), the starfield, and the header/footer chrome.
   This sheet adds the landing-page layout and the per-app accent themes. */

/* ---- per-app accent themes (set on <body class="app-page theme-x">) ---- */
.theme-parallax  { --accent:#5aa7ff; --accent-dim:#8fb6e8; --accent-bright:#cfe2fa; --accent-border:#2a3547; --accent-glow:rgba(90,167,255,0.14); }
.theme-reptoidar { --accent:#39ff14; --accent-dim:#6fd45a; --accent-bright:#b6f7a8; --accent-border:#234020; --accent-glow:rgba(57,255,20,0.10); }
.theme-goetia    { --accent:#ff3b47; --accent-dim:#f07a82; --accent-bright:#ffc2c6; --accent-border:#47232a; --accent-glow:rgba(255,59,71,0.11); }
.theme-psiframe  { --accent:#b26bff; --accent-dim:#c99bf2; --accent-bright:#e8d4ff; --accent-border:#362a47; --accent-glow:rgba(178,107,255,0.13); }

/* ---- app header (variant of .site-header) ---- */
.app-header .brand-row { gap: 10px; }
.app-header .home-link {
  color: var(--wordmark);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.app-header .home-link:hover { border-bottom-color: var(--chip-border); }
.app-header .brand-sep { color: var(--hairline); }
.app-header .app-name { color: var(--accent); letter-spacing: 0.16em; }
.header-back a {
  color: var(--chrome);
  text-decoration: none;
  border-bottom: 1px solid var(--chip-border);
}
.header-back a:hover { color: var(--text); }
.site-header a:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}

/* ---- generic section frame ---- */
.app-section {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 0 auto;
  padding: 68px 24px;
}
.app-section.narrow { max-width: 760px; }
.section-eyebrow {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.26em;
  color: var(--accent);
  opacity: 0.9;
}
.app-section h2 {
  margin: 0 0 18px;
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 400;
  line-height: 1.18;
  color: var(--heading);
  max-width: 22ch;
}
.section-lede {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--card-body);
  max-width: 62ch;
}
.section-rule {
  border: 0;
  border-top: 1px solid var(--rule);
  max-width: 1040px;
  margin: 0 auto;
}

/* ---- hero ---- */
.app-hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 24px 30px;
}
.app-hero-icon {
  width: 120px;
  height: 120px;
  margin-bottom: 26px;
  position: relative;
}
.app-hero-icon img {
  width: 120px;
  height: 120px;
  display: block;
  border-radius: 26px;
  border: 1px solid var(--chip-border);
  box-shadow: 0 0 60px -12px var(--accent-glow), 0 18px 50px -20px #000;
}
.app-hero .eyebrow {
  margin: 0 0 20px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--accent);
  opacity: 0.85;
}
.app-hero h1 {
  margin: 0 0 22px;
  font-size: clamp(36px, 5.6vw, 58px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--heading);
  max-width: 16ch;
}
.app-hero h1 em { font-style: italic; color: var(--accent-bright); }
.app-hero .hero-sub {
  margin: 0 0 34px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--hero-sub);
  max-width: 54ch;
}

/* ---- CTA buttons ---- */
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.appstore-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border: 1px solid var(--chip-border);
  border-radius: 12px;
  background: #0b0d13;
  font-family: var(--mono);
  color: var(--text);
  cursor: default;
}
.appstore-btn .apple { display: block; color: var(--heading); }
.appstore-btn .apple svg { display: block; }
.appstore-btn .btn-lines { display: flex; flex-direction: column; text-align: left; line-height: 1.25; }
.appstore-btn .btn-small { font-size: 9px; letter-spacing: 0.14em; color: var(--dim-2); }
.appstore-btn .btn-big { font-size: 15px; letter-spacing: 0.02em; color: var(--heading); }
.ghost-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  border: 1px solid var(--accent-border);
  border-radius: 12px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--accent-dim);
  text-decoration: none;
  transition: border-color 0.3s, color 0.3s;
}
.ghost-btn:hover { color: var(--accent-bright); border-color: var(--accent); }
.ghost-btn:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }
.hero-meta {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--eyebrow);
}

/* ---- feature grid ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  margin-top: 8px;
}
.feature {
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature-mark {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent-border);
  border-radius: 8px;
  color: var(--accent);
}
.feature-mark svg { display: block; }
.feature h3 {
  margin: 0;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--heading);
}
.feature p {
  margin: 0;
  font-size: 15px;
  line-height: 1.62;
  color: var(--card-body);
}

/* ---- how-it-works: numbered steps ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 8px;
  counter-reset: step;
}
.step {
  position: relative;
  border: 1px solid var(--card-border);
  background: var(--tile-fill);
  padding: 24px 22px 22px;
}
.step-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
  opacity: 0.8;
}
.step h3 {
  margin: 8px 0 8px;
  font-size: 19px;
  font-weight: 400;
  color: var(--heading);
}
.step p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--card-body);
}

/* ---- stat row (for "the idea") ---- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 26px;
}
.stat {
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  padding: 20px;
  text-align: center;
}
.stat .stat-num {
  font-family: var(--mono);
  font-size: 30px;
  color: var(--accent);
}
.stat .stat-label {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--dim-2);
}

/* ---- greentext / terminal quote (reused idiom from home) ---- */
.term-quote {
  margin: 26px 0 0;
  padding: 18px 22px;
  border: 1px solid var(--accent-border);
  background: #070b08;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.8;
  color: var(--accent-dim);
  text-align: left;
  overflow-x: auto;
}
.theme-parallax .term-quote,
.theme-goetia .term-quote,
.theme-psiframe .term-quote { background: #08090f; }

/* ---- honest note / disclaimer callout ---- */
.note {
  margin-top: 30px;
  border: 1px solid var(--card-border);
  border-left: 2px solid var(--accent);
  background: var(--card-bg);
  padding: 22px 24px;
}
.note strong { color: var(--heading); font-weight: 400; }
.note p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--card-body); }
.note p + p { margin-top: 10px; }
.note a { color: var(--accent-dim); text-decoration: none; border-bottom: 1px solid var(--accent-border); }
.note a:hover { color: var(--accent-bright); }

/* ---- privacy bullets ---- */
.privacy-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.privacy-list li {
  border: 1px solid var(--card-border);
  background: var(--tile-fill);
  padding: 18px 20px;
}
.privacy-list .p-title {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 6px;
}
.privacy-list .p-body {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--card-body);
}

/* ---- final CTA band ---- */
.cta-band {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 74px 24px 84px;
  border-top: 1px solid var(--rule);
}
.cta-band h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  color: var(--heading);
}
.cta-band p {
  margin: 0 auto 30px;
  max-width: 46ch;
  font-size: 17px;
  line-height: 1.65;
  color: var(--hero-sub);
}
.cta-band .hero-cta { margin-bottom: 0; }

/* ---- app footer (variant of .site-footer) ---- */
.app-footer .footer-inner { align-items: flex-start; }
.app-footer .footer-links a.current { color: var(--accent); border-bottom-color: var(--accent-border); }

/* ---- legal documents (privacy / support / terms) ---- */
.legal-doc {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 30px;
}
.legal-eyebrow {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--accent);
  opacity: 0.9;
}
.legal-doc h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4.4vw, 42px);
  font-weight: 400;
  color: var(--heading);
}
.legal-updated {
  margin: 0 0 26px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--dim-2);
}
.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 34px;
  padding: 0 0 26px;
  border-bottom: 1px solid var(--rule);
}
.legal-nav a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--chrome);
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid var(--card-border);
  border-radius: 6px;
}
.legal-nav a:hover { color: var(--text); border-color: var(--chip-border); }
.legal-nav a.current {
  color: var(--accent);
  border-color: var(--accent-border);
  background: var(--card-bg);
}
.legal-nav a:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
.legal-body h2 {
  margin: 34px 0 12px;
  font-size: 20px;
  font-weight: 400;
  color: var(--heading);
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { margin: 0 0 16px; font-size: 16px; line-height: 1.72; color: var(--card-body); }
.legal-body ul { margin: 0 0 16px; padding-left: 22px; }
.legal-body li { margin: 0 0 8px; font-size: 16px; line-height: 1.72; color: var(--card-body); }
.legal-body strong { color: var(--heading); font-weight: 600; }
.legal-body a {
  color: var(--accent-dim);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-border);
}
.legal-body a:hover { color: var(--accent-bright); }
.legal-callout {
  margin: 24px 0;
  border: 1px solid var(--card-border);
  border-left: 2px solid var(--accent);
  background: var(--card-bg);
  padding: 18px 22px;
}
.legal-callout p { margin: 0 0 10px; }
.legal-callout p:last-child { margin-bottom: 0; }
.legal-contact { font-family: var(--mono); font-size: 15px; letter-spacing: 0.02em; }

/* ---- reduced motion handled by style.css; nothing here animates ---- */
@media (max-width: 620px) {
  .app-hero { padding-top: 44px; }
  .app-section { padding: 52px 20px; }
  .legal-doc { padding-top: 40px; }
}
