/* Page styles for dozara.app. The design system in _ds/nocturne.css owns the
   tokens and component classes; this file holds only what the landing and
   legal pages add on top — layout, the hero phone, and the shared page
   chrome. Nothing here invents a colour: every value is a token. */

html { background: #161826; scroll-behavior: smooth; }

body.landing {
  min-height: 100%;
  text-wrap: pretty;
  background:
    radial-gradient(1200px 720px at 82% -160px,
      color-mix(in srgb, #2b2741 75%, transparent), transparent 60%),
    radial-gradient(1100px 800px at -10% 100%,
      color-mix(in srgb, black 30%, transparent), transparent 55%),
    #161826;
}

body.landing a { color: #9184d9; text-decoration: none; }
body.landing a:hover { color: #b5abfc; }

/* The gutter matches the design: content is capped at 1200px and the padding
   grows with the viewport, so the nav and the sections share one edge. */
.shell { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 72px); }

.site-nav {
  padding: 14px max(clamp(20px, 5vw, 72px),
    calc((100% - 1200px) / 2 + clamp(20px, 5vw, 72px)));
  gap: 22px;
  flex-wrap: wrap;
  row-gap: 10px;
}

/* Below the tablet break the section links are redundant with the page
   itself — the brand and the download button are what a phone needs. */
@media (max-width: 560px) {
  .site-nav .nav-link { display: none; }
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 56px clamp(24px, 5vw, 96px);
  align-items: center;
  padding: clamp(56px, 8vw, 112px) 0 84px;
}

/* The design sets one clause per line. Each clause stays its own block so the
   two sentences never run together; on a narrow screen a clause simply wraps
   within itself rather than overflowing. */
.hero h1 { overflow-wrap: break-word; }

.phone-glow {
  position: absolute;
  inset: 10% 15%;
  background: radial-gradient(ellipse at 50% 40%,
    rgba(145, 132, 217, 0.22), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}

.phone {
  width: 300px;
  max-width: 100%;
  border-radius: 40px;
  background: var(--color-bg);
  box-shadow:
    0 0 0 1px var(--color-neutral-700),
    0 0 0 9px #0e0f18,
    0 0 0 10px var(--color-neutral-800),
    0 30px 80px rgba(0, 0, 0, 0.6);
  padding: 18px 14px 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* The 10px of bezel rings sit outside the box, so a 300px phone needs 320px
   of room plus the gutter. Shrink it rather than let it overflow. */
@media (max-width: 420px) {
  .phone { width: min(300px, 100vw - 64px); }
}

/* ---------- stat band ---------- */

.stat-band {
  background:
    radial-gradient(900px 420px at 85% -40%,
      color-mix(in srgb, var(--color-section-glow) 70%, transparent),
      transparent 64%),
    var(--color-section);
  padding: 70px 0;
}

.stat-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 72px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 42px 28px;
}

.stat-n {
  font-size: clamp(36px, 3.6vw, 52px);
  line-height: 1;
  margin: 0 0 0 -0.05em;
  font-weight: 500;
}

/* The units stat is words rather than a figure; at the shared size it wraps
   and drops its label out of line with the rest. */
.stat-n.stat-words { font-size: clamp(26px, 2.4vw, 34px); white-space: nowrap; }

.stat-l {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 14px 0 0;
  color: color-mix(in srgb, var(--color-text) 64%, transparent);
}

/* ---------- section furniture ---------- */

.eyebrow {
  display: block;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 14px;
}

/* Numbered feature rows: the number and heading hold their columns while the
   body text takes the wide one. Below 720px they stack. */
.feature {
  display: grid;
  grid-template-columns: minmax(40px, 80px) minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 14px clamp(20px, 4vw, 72px);
  align-items: baseline;
  padding: 42px 0;
  position: relative;
}

/* A fading rule between rows — the Nocturne signature, drawn as a positioned
   strip so it spans the row rather than each cell. */
.feature.bordered::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right,
    transparent, var(--color-neutral-700) 48px,
    var(--color-neutral-700) calc(100% - 48px), transparent);
}

.feature-n {
  font-size: 15px;
  color: var(--color-accent);
  margin: 0;
  font-feature-settings: 'tnum' 1;
}

.feature-h {
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
  font-weight: 500;
}

.feature-p {
  font-size: 15.5px;
  line-height: 1.65;
  margin: 0;
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
  max-width: 52ch;
}

@media (max-width: 720px) {
  .feature { grid-template-columns: minmax(40px, 80px) minmax(0, 1fr); }
  .feature-n { grid-row: span 2; }
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 28px clamp(24px, 5vw, 96px);
  align-items: center;
  padding: 56px 0 84px;
}

/* Stands in for the design's <image-slot>, which is a canvas authoring tool
   rather than something to ship. When there is a real photograph, replace
   this with an <img>. */
.photo-slot {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  background:
    radial-gradient(600px 300px at 70% 20%,
      color-mix(in srgb, var(--color-accent) 16%, transparent), transparent 70%),
    linear-gradient(160deg, var(--color-neutral-900), var(--color-surface));
  box-shadow: var(--shadow-sm);
}

.plan-featured {
  box-shadow:
    inset 0 0 0 1px var(--color-accent),
    0 0 32px rgba(145, 132, 217, 0.14);
}

/* ---------- legal pages ---------- */

.legal { padding: 56px 0 72px; max-width: 74ch; }
.legal h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 10px; }
.legal h2 { font-size: 20px; margin: 34px 0 10px; }
.legal p, .legal li {
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
  font-size: 15.5px;
  line-height: 1.65;
}
.legal ul { padding-left: 20px; margin: 0 0 var(--space-3); }
.legal li { margin-bottom: 8px; }
.legal .updated { font-size: 13px; color: var(--color-neutral-500); }

.legal-footer {
  padding: 42px 0 56px;
  font-size: 13px;
  line-height: 1.7;
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: flex-start;
  justify-content: space-between;
}

.legal-footer a { color: inherit; }
