/* Shade as the app looks (apps/shade/src/assets/main.css, "Mondlicht"): a dusk sky over a near-black night, calm solid
   surfaces, lavender for actions, the moon behind its half-drawn shade. Fraunces (soft) for headings, Inter standing
   in for the system font. */
:root {
  --bg: #0b0915;
  --surface: #17132a;
  --surface-edge: rgba(203, 188, 255, 0.10);
  --hairline: rgba(246, 241, 252, 0.09);
  --ink: #f6f1fc;
  --ink-soft: rgba(246, 241, 252, 0.74);
  --ink-mute: rgba(246, 241, 252, 0.56);
  --tint: #cbbcff;
  --on-tint: #1d1533;
  --serif: 'Fraunces', Georgia, serif;
  --sans: Inter, system-ui, -apple-system, sans-serif;
  --gutter: clamp(20px, 5vw, 56px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink);
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(66, 48, 120, 0.85), rgba(43, 31, 77, 0) 70%),
    var(--bg);
  background-repeat: no-repeat;
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: var(--tint); text-decoration-color: rgba(203, 188, 255, 0.4); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--tint); }
:focus-visible { outline: 2px solid var(--tint); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 500; font-variation-settings: 'SOFT' 100, 'WONK' 0; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 14px 28px; border-radius: 9999px;
  background: var(--tint); color: var(--on-tint); font: 600 16px/1.2 var(--sans); text-decoration: none;
  transition: opacity .15s ease;
}
.btn:hover { opacity: .9; }

.bar, main, .foot { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; max-width: 1120px; margin: 0 auto; padding-top: max(18px, env(safe-area-inset-top)); padding-bottom: 18px; }
.bar .home { font: 500 20px/1 var(--serif); font-variation-settings: 'SOFT' 100; color: var(--ink); text-decoration: none; padding: 12px 0; }
.bar .store { font: 600 14px/1 var(--sans); color: var(--ink); text-decoration: none; padding: 12px 18px; border: 1px solid var(--surface-edge); background: var(--surface); border-radius: 9999px; }
main { max-width: 1120px; margin: 0 auto; }

/* The hero: the moon of the Start button, then the pitch, centred like the app's home screen. */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(36px, 7vw, 88px) 0 clamp(56px, 8vw, 104px); }
.moon {
  position: relative; width: clamp(120px, 16vw, 168px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #fffaf3 0%, #ffe9d4 20%, #f6cdd8 46%, #c9b6ff 74%, #8775de 100%);
  box-shadow: 0 0 0 12px rgba(203, 188, 255, 0.05), 0 0 64px 12px rgba(203, 188, 255, 0.3), 0 0 144px 32px rgba(140, 110, 255, 0.15);
}
.moon::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: repeating-linear-gradient(180deg, transparent 0 6.7%, rgba(17, 13, 31, 0.62) 6.7% 9.3%);
  -webkit-mask-image: linear-gradient(180deg, transparent 38%, #000 64%);
          mask-image: linear-gradient(180deg, transparent 38%, #000 64%);
}
.hero h1 { margin-top: clamp(32px, 5vw, 48px); font-size: clamp(40px, 6vw, 66px); line-height: 1.05; max-width: 15ch; }
.lede { margin-top: 20px; font-size: clamp(18px, 1.8vw, 21px); line-height: 1.5; color: var(--ink-soft); max-width: 40ch; }
.cta { margin-top: 32px; }
.soon { margin-top: 32px; font: 600 15px/1.4 var(--sans); color: var(--tint); }
.fine { margin-top: 14px; font-size: 14px; color: var(--ink-mute); }

.features, .plans, .help { padding: clamp(48px, 7vw, 88px) 0; border-top: 1px solid var(--hairline); }
.features h2, .plans h2, .help h2 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.1; }
.grid { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid > div { background: var(--surface); border: 1px solid var(--surface-edge); border-radius: 22px; padding: 24px 24px 26px; }
.grid h3 { font-size: 22px; line-height: 1.2; }
.grid p { margin-top: 8px; font-size: 16px; line-height: 1.55; color: var(--ink-soft); }

.plan-cols { margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 920px; align-items: start; }
.plan { background: var(--surface); border: 1px solid var(--surface-edge); border-radius: 22px; padding: 26px 26px 28px; }
.plan.pro { border-color: rgba(203, 188, 255, 0.35); }
.plan h3 { font-size: 24px; }
.plan ul { list-style: none; margin: 14px 0 0; padding: 0; }
.plan li { position: relative; padding: 9px 0 9px 22px; border-top: 1px solid var(--hairline); font-size: 16px; line-height: 1.45; color: var(--ink-soft); }
.plan li::before { content: ''; position: absolute; left: 2px; top: 1.05em; width: 8px; height: 8px; border-radius: 50%; background: var(--tint); opacity: .8; }
.plan p { margin-top: 16px; font-size: 14px; line-height: 1.5; color: var(--ink-mute); }

.help-cols { margin-top: 32px; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.faq details { border-top: 1px solid var(--hairline); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--hairline); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font: 500 20px/1.3 var(--serif); font-variation-settings: 'SOFT' 100; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; font: 300 22px/1 var(--sans); color: var(--tint); }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { margin-top: 10px; font-size: 16.5px; line-height: 1.6; color: var(--ink-soft); max-width: 64ch; }
.faq b { color: var(--ink); font-weight: 600; }
.contact { background: var(--surface); border: 1px solid var(--surface-edge); border-radius: 22px; padding: 24px 26px; }
.contact-lede { font-size: 18px; line-height: 1.45; }
.contact .mail { margin-top: 14px; font-weight: 600; overflow-wrap: anywhere; }

.foot { max-width: 1120px; margin: 0 auto; padding-bottom: max(36px, env(safe-area-inset-bottom)); font-size: 14px; color: var(--ink-mute); }
.foot-in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 28px; padding-top: 28px; border-top: 1px solid var(--hairline); }
.foot nav { display: flex; gap: 6px 22px; flex-wrap: wrap; }
.foot a { color: var(--ink-soft); text-decoration: none; padding: 4px 0; }
.foot a:hover { color: var(--ink); }

/* Legal pages: one reading column. */
.legal { padding-top: clamp(24px, 5vw, 64px); padding-bottom: 80px; }
.legal > * { max-width: 720px; }
.legal h1 { font-size: clamp(40px, 6vw, 58px); line-height: 1.05; }
.legal .updated { margin-top: 12px; font-size: 13px; color: var(--ink-mute); }
.legal .intro { margin-top: 26px; font: 400 21px/1.45 var(--serif); font-variation-settings: 'SOFT' 100; max-width: 42ch; }
.legal section { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--hairline); }
.legal h2 { font-size: 24px; line-height: 1.2; }
.legal section p { margin-top: 10px; font-size: 17px; line-height: 1.6; color: var(--ink-soft); max-width: 66ch; }
.legal b { color: var(--ink); font-weight: 600; }

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .help-cols { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .grid, .plan-cols { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}
