/*
 * Aura website. One stylesheet for every page.
 * Colours, typefaces and spacing follow the app (src/theme/tokens.ts and the aura palette).
 * No capitals for emphasis, no borders or blur on panels, always dark.
 */
@font-face { font-family: 'Caslon'; src: url('fonts/LibreCaslonCondensed-Regular.ttf'); font-display: swap; }
@font-face { font-family: 'Geist'; src: url('fonts/Geist_400Regular.ttf'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('fonts/Geist_500Medium.ttf'); font-weight: 500; font-display: swap; }

:root {
  --base: #05012d;
  --sheet: #0b0540;
  --ink: #ffffff;
  --ink-2: rgba(255, 255, 255, 0.74);
  --ink-3: rgba(255, 255, 255, 0.52);
  --panel: rgba(255, 255, 255, 0.07);
  --blue: #2fa0f3;
  --indigo: #1e0685;
  --purple: #8d13b3;
  --pink: #d94ddb;
  --strawberry: #e62662;
  --burgundy: #8e0420;
  --gutter: 24px;
}

* { box-sizing: border-box; }
html { background: var(--base); color-scheme: dark; }
body { margin: 0; background: var(--base); color: var(--ink); font-family: 'Geist', system-ui, sans-serif; font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3, .serif { font-family: 'Caslon', Georgia, serif; font-weight: 400; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(52px, 9vw, 96px); line-height: 1.02; }
h2 { font-size: clamp(36px, 5.2vw, 56px); line-height: 1.08; }
h3 { font-size: 28px; line-height: 1.15; }
p { margin: 0; color: var(--ink-2); }
.lead { font-size: clamp(18px, 2.2vw, 21px); max-width: 30em; }
.quiet { color: var(--ink-3); font-size: 14px; }

/* The name, with its sparkle at the top right of the last letter. */
.name { font-family: 'Caslon', Georgia, serif; font-size: 30px; text-decoration: none; position: relative; padding-right: 12px; }
.name::after { content: '✦'; position: absolute; top: 2px; right: 0; font-size: 10px; }

/* Top bar */
.top { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; position: relative; z-index: 2; }
.top nav { display: flex; gap: 24px; }
.top nav a { text-decoration: none; color: var(--ink-2); font-size: 15px; font-weight: 500; }
.top nav a:hover { color: var(--ink); }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; height: 56px; padding: 0 30px; border-radius: 999px; background: #fff; color: #14101e; font-weight: 500; text-decoration: none; }
.button.ghost { background: var(--panel); color: var(--ink); }

/* The aura behind the hero: separate glows on the dark base, never one wash. */
.hero { position: relative; padding: 40px 0 96px; }
.aura { position: absolute; inset: -160px -20vw auto; height: 980px; pointer-events: none; z-index: 0;
  background:
    radial-gradient(48% 44% at 22% 32%, rgba(47, 160, 243, 0.85), transparent 70%),
    radial-gradient(44% 48% at 74% 28%, rgba(141, 19, 179, 0.9), transparent 72%),
    radial-gradient(40% 40% at 58% 70%, rgba(30, 6, 133, 0.95), transparent 75%);
  filter: saturate(1.05); animation: drift 26s ease-in-out infinite alternate; }
.aura.warm { background:
    radial-gradient(46% 44% at 24% 30%, rgba(230, 38, 98, 0.8), transparent 70%),
    radial-gradient(46% 48% at 76% 34%, rgba(217, 77, 219, 0.7), transparent 72%),
    radial-gradient(40% 40% at 50% 74%, rgba(141, 19, 179, 0.9), transparent 75%); }
@keyframes drift { from { transform: translate3d(-2%, 0, 0) scale(1); } to { transform: translate3d(2%, 2%, 0) scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .aura { animation: none; } }
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding-top: 48px; }
.hero-copy { display: grid; gap: 24px; justify-items: start; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* The phone, drawn here so it stays sharp at any size. */
.phone { width: 300px; aspect-ratio: 402 / 874; margin: 0 auto; border-radius: 46px; padding: 10px; background: #0a0a12; box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5); }
.screen { height: 100%; border-radius: 37px; overflow: hidden; position: relative; background: var(--base); padding: 46px 18px 0; display: flex; flex-direction: column; gap: 14px; }
.screen::before { content: ''; position: absolute; inset: 0; background:
    radial-gradient(70% 42% at 18% 26%, rgba(47, 160, 243, 0.95), transparent 72%),
    radial-gradient(70% 46% at 88% 34%, rgba(141, 19, 179, 0.95), transparent 72%),
    linear-gradient(to bottom, transparent 55%, var(--base) 96%); }
.screen > * { position: relative; }
.s-head { display: flex; justify-content: space-between; align-items: center; }
.s-head b { font-weight: 500; font-size: 14px; display: block; }
.s-head span { font-size: 10px; color: var(--ink-2); }
.s-head .name { font-size: 17px; padding-right: 8px; }
.s-head .name::after { font-size: 6px; top: 1px; }
.days { display: flex; justify-content: space-between; }
.days i { font-style: normal; display: grid; justify-items: center; gap: 5px; font-size: 9px; font-weight: 500; color: rgba(255, 255, 255, 0.92); }
.days i::before { content: attr(data-d); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; background: rgba(5, 1, 45, 0.5); color: #fff; }
.days i.on::before { background: radial-gradient(circle at 32% 26%, #fff, rgba(255, 255, 255, 0.6)); color: #14101e; }
.s-word { font-family: 'Caslon', Georgia, serif; font-size: 46px; line-height: 1.05; margin-top: 14px; }
.s-line { font-size: 12px; color: var(--ink-2); max-width: 16em; }
.moon { position: absolute; right: 14px; top: 150px; width: 76px; height: 76px; border-radius: 50%; background: radial-gradient(circle at 76% 40%, #d9d6cf 0 34%, #3b3550 62%, #1a1630 100%); box-shadow: 0 0 30px rgba(255, 255, 255, 0.12); }
.s-card { margin-top: 6px; border-radius: 26px; background: rgba(5, 1, 45, 0.5); padding: 18px; display: grid; gap: 8px; }
.s-card small { font-size: 10px; font-weight: 500; }
.s-card small span { display: inline-block; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); margin-right: 8px; }
.s-card strong { font-family: 'Caslon', Georgia, serif; font-weight: 400; font-size: 22px; }
.s-card p { font-size: 12px; line-height: 1.5; }
.s-bar { position: absolute; left: 18px; right: 18px; bottom: 18px; height: 52px; border-radius: 999px; background: rgba(5, 2, 30, 0.92); display: flex; align-items: center; padding: 0 8px; gap: 22px; font-size: 11px; font-weight: 500; }
.s-bar b { background: rgba(255, 255, 255, 0.14); border-radius: 999px; padding: 9px 16px; font-weight: 500; }
.s-bar span { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid var(--ink-3); }

/* Sections */
section { padding: 88px 0; position: relative; }
.section-head { display: grid; gap: 16px; margin-bottom: 44px; max-width: 34em; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--panel); border-radius: 28px; padding: 28px; display: grid; gap: 10px; align-content: start; }
.card.wide { grid-column: span 2; }
.card .mark { font-size: 20px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.swatches { display: flex; gap: 10px; margin-top: 6px; }
.swatches i { width: 36px; height: 36px; border-radius: 50%; }
.price { font-family: 'Caslon', Georgia, serif; font-size: 44px; line-height: 1; color: var(--ink); }
ul.plain { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 8px; color: var(--ink-2); }
ul.plain li::before { content: '✦'; font-size: 10px; margin-right: 10px; color: var(--ink); vertical-align: 2px; }
.band { text-align: center; display: grid; gap: 22px; justify-items: center; overflow: hidden; }
.band p { max-width: 32em; }

/* Footer */
footer { padding: 40px 0 56px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
footer a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
footer a:hover { color: var(--ink); }

/* Reading pages: privacy, terms, support */
.doc { max-width: 720px; margin: 0 auto; padding: 40px var(--gutter) 80px; position: relative; z-index: 1; }
.doc h1 { font-size: clamp(44px, 7vw, 64px); margin-bottom: 12px; }
.doc h2 { font-size: 30px; margin: 44px 0 12px; }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 20px; display: grid; gap: 8px; margin: 12px 0 0; }
.doc a { color: var(--ink); }
.doc table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-top: 1px solid rgba(255, 255, 255, 0.14); color: var(--ink-2); }
.doc th { color: var(--ink); font-weight: 500; }
.table-scroll { overflow-x: auto; }
.note { background: var(--panel); border-radius: 20px; padding: 18px 20px; margin: 20px 0; }
/* Blanks still to be filled in before publishing. */
.fill { background: rgba(230, 38, 98, 0.35); border-radius: 6px; padding: 1px 6px; color: #fff; }
details { background: var(--panel); border-radius: 20px; padding: 18px 20px; margin-top: 10px; }
details summary { cursor: pointer; font-weight: 500; color: var(--ink); }
details p { margin-top: 10px; }

@media (max-width: 820px) {
  .hero-grid, .two { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .card.wide { grid-column: auto; }
  section { padding: 64px 0; }
  .hero { padding-bottom: 56px; }
  .top nav { gap: 18px; }
}

/* The logo, from the designer's own drawing (img/logo.svg). */
.logo { display: inline-flex; }
.logo img { height: 34px; width: auto; }

/* Choosing from the menu glides to that part of the page, and stops a little above its heading. */
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
