/* 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); }
.theme-manifold  { --accent:#33e6d6; --accent-dim:#6fdccb; --accent-bright:#bdf5ec; --accent-border:#1f4440; --accent-glow:rgba(51,230,214,0.12); }
.theme-centerlane { --accent:#d9d2c2; --accent-dim:#b8b2a2; --accent-bright:#efe9db; --accent-border:#3a382f; --accent-glow:rgba(217,210,194,0.10); }
.theme-eartoeye  { --accent:#ffb454; --accent-dim:#e0a262; --accent-bright:#ffd9a3; --accent-border:#463a2f; --accent-glow:rgba(255,180,84,0.12); }
.theme-mindpin   { --accent:#8affc1; --accent-dim:#7bd8a6; --accent-bright:#c9ffe2; --accent-border:#24462f; --accent-glow:rgba(138,255,193,0.12); }

/* ---- 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 -8px var(--accent-glow),
    0 0 80px -20px 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;
  text-shadow:
    0 2px 28px rgba(0, 0, 0, 0.85),
    0 0 36px var(--accent-glow);
}
.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;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.75);
}

/* ---- 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); }
/* Live App Store link. The SVG is Apple's official badge artwork — never
   recolor, crop, or overlay it; only the link box around it is themed. */
.appstore-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  transition: opacity 0.3s;
}
.appstore-badge img { display: block; width: 132px; height: 44px; }
.appstore-badge:hover { opacity: 0.85; }
.appstore-badge:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }
.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);
  -webkit-backdrop-filter: var(--glass);
  backdrop-filter: var(--glass);
  box-shadow: var(--shadow-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}
@media (hover: hover) and (pointer: fine) {
  .feature:hover {
    border-color: rgba(120, 140, 180, 0.42);
    transform: translateY(-1px);
    box-shadow:
      0 16px 40px -16px rgba(0, 0, 0, 0.85),
      0 0 28px -10px var(--accent-glow);
  }
}
.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: rgba(8, 10, 16, 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card);
  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);
  -webkit-backdrop-filter: var(--glass);
  backdrop-filter: var(--glass);
  box-shadow: var(--shadow-card);
  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: var(--greentext-bg);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  backdrop-filter: blur(10px) saturate(1.1);
  box-shadow: var(--shadow-card);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.8;
  color: var(--accent-dim);
  text-align: left;
  overflow-x: auto;
}

/* ---- honest note / disclaimer callout ---- */
.note {
  margin-top: 30px;
  border: 1px solid var(--card-border);
  border-left: 2px solid var(--accent);
  background: var(--card-bg);
  -webkit-backdrop-filter: var(--glass);
  backdrop-filter: var(--glass);
  box-shadow: var(--shadow-card);
  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: rgba(8, 10, 16, 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card);
  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 ---- */

/* ---- tablet / narrow ---- */
@media (max-width: 820px) {
  .app-header .app-name { letter-spacing: 0.12em; }
  .app-hero { padding: 48px 20px 24px; }
  .app-hero h1 { font-size: clamp(30px, 8vw, 48px); }
  .app-hero .hero-sub { font-size: 16.5px; }
  .app-hero .eyebrow {
    letter-spacing: 0.14em;
    font-size: 10px;
    line-height: 1.55;
  }
  .app-section { padding: 52px 20px; }
  .app-section h2 { max-width: none; }
  .section-lede { font-size: 16px; }
  .cta-band { padding: 56px 20px 64px; }
  .legal-doc { padding: 44px 20px 24px; }
}

/* ---- phone ---- */
@media (max-width: 560px) {
  .app-header .brand-row { gap: 6px; flex-wrap: wrap; }
  .app-header .app-name { font-size: 11px; }
  .header-status { gap: 10px; }
  .header-back a { font-size: 10.5px; letter-spacing: 0.08em; }

  .app-hero { padding: 36px 16px 20px; }
  .app-hero-icon,
  .app-hero-icon img {
    width: 96px;
    height: 96px;
  }
  .app-hero-icon { margin-bottom: 20px; }
  .app-hero-icon img { border-radius: 22px; }
  .app-hero .hero-sub {
    font-size: 16px;
    margin-bottom: 26px;
  }
  .hero-cta {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
    gap: 12px;
  }
  .appstore-btn,
  .ghost-btn {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
  .appstore-badge {
    width: 100%;
    justify-content: center;
  }
  .hero-meta {
    font-size: 10px;
    letter-spacing: 0.1em;
    padding: 0 8px;
    line-height: 1.5;
  }

  .app-section { padding: 40px 16px; }
  .section-eyebrow {
    letter-spacing: 0.16em;
    font-size: 10px;
  }
  .section-lede { font-size: 15.5px; }

  /* Avoid 1-col overflow from auto-fit minmax floors on 320–360px viewports. */
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .feature { padding: 20px 18px; }
  .steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .step { padding: 20px 18px; }
  .stat-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .privacy-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .privacy-list li { padding: 16px 18px; }

  .term-quote {
    padding: 14px 14px;
    font-size: 11.5px;
    line-height: 1.7;
    -webkit-overflow-scrolling: touch;
  }
  .note { padding: 18px 16px; margin-top: 24px; }
  .note p { font-size: 14.5px; }

  .cta-band { padding: 48px 16px 56px; }
  .cta-band p { font-size: 16px; margin-bottom: 24px; }

  .legal-doc { padding: 36px 16px 20px; }
  .legal-nav { gap: 6px; margin-bottom: 28px; padding-bottom: 20px; }
  .legal-nav a {
    font-size: 10.5px;
    padding: 8px 10px; /* slightly larger touch targets */
  }
  .legal-body p,
  .legal-body li { font-size: 15.5px; }
  .legal-body h2 { font-size: 18px; margin-top: 28px; }
  .legal-callout { padding: 16px 16px; }
}

@supports (padding: max(0px)) {
  .app-hero,
  .app-section,
  .cta-band,
  .legal-doc {
    padding-left: max(24px, env(safe-area-inset-left));
    padding-right: max(24px, env(safe-area-inset-right));
  }
}
@media (max-width: 820px) {
  @supports (padding: max(0px)) {
    .app-hero,
    .app-section,
    .cta-band,
    .legal-doc {
      padding-left: max(20px, env(safe-area-inset-left));
      padding-right: max(20px, env(safe-area-inset-right));
    }
  }
}
@media (max-width: 560px) {
  @supports (padding: max(0px)) {
    .app-hero,
    .app-section,
    .cta-band,
    .legal-doc {
      padding-left: max(16px, env(safe-area-inset-left));
      padding-right: max(16px, env(safe-area-inset-right));
    }
  }
}
