/* Angel Numbers AI — angelnumbersai.app
   One stylesheet, one token system. Every colour, radius and gap below is a
   token; nothing outside :root may type a raw hex or a one-off pixel value.
   (The sibling Somniar site declared a system and then abandoned it — 7 unused
   tokens, 13 hardcoded radii, 24 ad-hoc spacings. That is the failure this
   file exists to avoid.)
   Palette is lifted from the app's lib/core/theme.dart so the site and the
   product are the same object. No webfonts: the app bundles its typefaces
   specifically so no request carries a user's IP to a font host, and the site
   keeps that promise with a system stack. */

:root {
  /* surfaces */
  --bg:            #04040C;
  --surface:       #08091A;
  --surface-deep:  #05060F;
  --card:          rgba(255, 255, 255, 0.04);
  --card-2:        rgba(255, 255, 255, 0.07);

  /* accents */
  --gold:          #E7C46A;
  --gold-light:    #F6E3B4;
  --gold-dim:      rgba(231, 196, 106, 0.16);
  --violet:        #8F7BFF;
  --on-gold:       #221A05;
  --gold-grad-a:   #F1D492;   /* AnColors.goldButton, top of the 135deg ramp */
  --gold-grad-b:   #D9AE4F;   /* …and the bottom */
  --bezel:         #23233a;   /* the phone frame around a screenshot */

  /* ink */
  --text:          #EFEBF8;
  --text-mid:      #C9C5DE;
  --muted:         #8D89A6;
  --muted-2:       #5E5B78;

  /* lines */
  --line:          rgba(231, 196, 106, 0.14);
  --line-2:        rgba(255, 255, 255, 0.08);

  /* radii — identical to AnRadius in the app */
  --r-card:        20px;
  --r-button:      16px;
  --r-input:       14px;
  --r-sheet:       28px;
  --r-pill:        100px;

  /* spacing scale — 4pt based, no value outside it */
  --s1: 4px;   --s2: 8px;   --s3: 12px;  --s4: 16px;  --s5: 24px;
  --s6: 32px;  --s7: 48px;  --s8: 64px;  --s9: 96px;

  /* type */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia,
           "Times New Roman", serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter,
           "Helvetica Neue", Arial, sans-serif;

  --measure: 68ch;
  --container: 1120px;
  --container-narrow: 760px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--surface-deep);
  background-image:
    radial-gradient(900px 600px at 78% -8%, rgba(143, 123, 255, 0.16), transparent 70%),
    radial-gradient(700px 520px at 10% 4%, rgba(231, 196, 106, 0.09), transparent 68%),
    linear-gradient(180deg, var(--surface) 0%, var(--surface-deep) 46%, var(--bg) 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--s1);
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
}
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.3; }
p  { margin: 0 0 var(--s4); }

.gilt {
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--s5); }
.narrow    { max-width: var(--container-narrow); }

.section { padding: var(--s9) 0; }
@media (max-width: 768px) { .section { padding: var(--s8) 0; } }

.kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 var(--s3);
}
.lede { font-size: 1.06rem; color: var(--text-mid); max-width: var(--measure); }
.fine { font-size: 0.8rem; color: var(--muted); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(5, 6, 15, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line-2);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s5); padding: var(--s4) var(--s5);
  max-width: var(--container); margin: 0 auto;
}
.brand {
  display: inline-flex; align-items: center; gap: var(--s3);
  color: var(--text); font-family: var(--serif); font-weight: 700;
  font-size: 1.06rem; letter-spacing: 0.01em;
}
.brand:hover { color: var(--text); }
.brand svg { flex: none; }
.nav-links { display: flex; align-items: center; gap: var(--s6); }
.nav-links a { color: var(--text-mid); font-size: 0.92rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--s2);
  min-height: 52px; padding: 0 var(--s6);
  border-radius: var(--r-button);
  font-family: var(--sans); font-size: 0.98rem; font-weight: 600;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-grad-a), var(--gold-grad-b));
  color: var(--on-gold);
  border-color: rgba(255, 255, 255, 0.18);
}
.btn-primary:hover { transform: translateY(-2px); color: var(--on-gold); }
.btn-ghost {
  background: var(--card); color: var(--text); border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--text); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

/* a 44pt legal/footer hit target, as the stores require */
.tap { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- status pill ---------- */
.status {
  display: inline-flex; align-items: center; gap: var(--s2);
  padding: var(--s2) var(--s4);
  border: 1px solid var(--gold-dim); border-radius: var(--r-pill);
  background: var(--card);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--gold);
}
.status .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

/* ---------- hero ---------- */
.hero { padding: var(--s9) 0 var(--s8); }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: var(--s8); align-items: center;
}
.hero h1 { margin: var(--s5) 0 var(--s5); }
.hero .lede { font-size: 1.14rem; }
@media (max-width: 900px) {
  .hero { padding: var(--s8) 0 var(--s7); }
  .hero-grid { grid-template-columns: 1fr; gap: var(--s7); }
}

/* ---------- cards ---------- */
.grid { display: grid; gap: var(--s4); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: var(--s5);
}
.card h3 { margin-bottom: var(--s2); color: var(--text); }
.card p  { margin: 0; color: var(--text-mid); font-size: 0.94rem; }
.card .num {
  font-family: var(--serif); font-size: 1.6rem; font-weight: 700;
  color: var(--gold); line-height: 1; margin-bottom: var(--s3);
}

/* ---------- the working / method proof ---------- */
.working {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-input);
  padding: var(--s5);
  color: var(--text-mid);
  overflow-x: auto;
  line-height: 1.9;
  /* arithmetic notation reads left-to-right in every locale we ship */
  direction: ltr;
  text-align: left;
}
.working b { color: var(--gold); font-weight: 600; }

/* ---------- screenshot slots ---------- */
.shots {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--s5); align-items: start;
}
@media (max-width: 940px) { .shots { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .shots { grid-template-columns: 1fr; max-width: 300px; margin: 0 auto; } }

.shot {
  border-radius: var(--r-sheet);
  border: 3px solid var(--bezel);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 70px rgba(231, 196, 106, 0.07);
  overflow: hidden;
  background: var(--surface);
}
.shot img { width: 100%; display: block; }

/* Placeholder until real captures exist. Delete .shot-empty and drop an <img>
   in — the frame, shadow and aspect ratio stay identical. */
.shot-empty {
  aspect-ratio: 1179 / 2556;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--s2); padding: var(--s5);
  background:
    repeating-linear-gradient(135deg,
      rgba(255,255,255,0.02) 0 12px, transparent 12px 24px),
    var(--surface);
  color: var(--muted-2); text-align: center;
}
.shot-empty .label {
  font-size: 0.82rem; font-weight: 600; color: var(--muted); letter-spacing: 0.02em;
}
.shot-empty .dim { font-size: 0.7rem; color: var(--muted-2); }
.shot-caption {
  margin: var(--s3) 0 0; font-size: 0.82rem; color: var(--muted); text-align: center;
}

/* ---------- pricing ---------- */
.tier {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: var(--s6);
  display: flex; flex-direction: column;
}
.tier.featured { border-color: var(--gold); background: var(--card-2); }
.tier .price {
  font-family: var(--serif); font-size: 2rem; font-weight: 700;
  color: var(--text); margin: var(--s2) 0 var(--s1);
}
.tier .price small { font-size: 0.9rem; font-weight: 400; color: var(--muted); }
.tier ul { list-style: none; margin: var(--s4) 0 0; padding: 0; }
.tier li {
  position: relative; padding-left: var(--s5); margin-bottom: var(--s3);
  color: var(--text-mid); font-size: 0.94rem;
}
.tier li::before {
  content: "◆"; position: absolute; left: 0; top: 0;
  color: var(--gold); font-size: 0.68rem; line-height: 1.9;
}
.badge {
  align-self: flex-start;
  padding: var(--s1) var(--s3); border-radius: var(--r-pill);
  background: var(--gold); color: var(--on-gold);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: var(--s3);
}

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: var(--s5) 0; font-weight: 600; font-size: 1.02rem;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; color: var(--gold); font-size: 1.4rem; font-weight: 400;
  line-height: 1; flex: none;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details p { color: var(--text-mid); max-width: var(--measure); padding-bottom: var(--s5); }

/* ---------- disclaimer refrain ---------- */
.disclaimer {
  border: 1px solid var(--gold-dim); border-radius: var(--r-card);
  background: var(--card); padding: var(--s5);
  color: var(--muted); font-size: 0.86rem;
}
.disclaimer strong { color: var(--text-mid); font-weight: 600; }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line-2);
  padding: var(--s8) 0 var(--s7);
  color: var(--muted); font-size: 0.88rem;
}
.footer-grid {
  display: flex; flex-wrap: wrap; gap: var(--s7);
  justify-content: space-between; margin-bottom: var(--s6);
}
.footer h4 {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted-2); margin: 0 0 var(--s3);
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: var(--s1); }
.footer a { color: var(--text-mid); }
.footer a:hover { color: var(--gold); }
.footer-base {
  border-top: 1px solid var(--line-2); padding-top: var(--s5);
  display: flex; flex-wrap: wrap; gap: var(--s4);
  justify-content: space-between; align-items: center;
}

/* ---------- legal pages ---------- */
.legal { padding: var(--s8) 0 var(--s9); }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: var(--s3); }
.legal .effective {
  display: inline-block; color: var(--muted); font-size: 0.86rem;
  margin-bottom: var(--s6);
}
.legal .intro {
  border-left: 2px solid var(--gold-dim); padding-left: var(--s5);
  color: var(--text-mid); margin-bottom: var(--s7);
}
.legal section { margin-bottom: var(--s7); }
.legal h2 {
  font-size: 1.28rem; margin-bottom: var(--s4);
  padding-bottom: var(--s3); border-bottom: 1px solid var(--line-2);
}
.legal h3 { margin: var(--s5) 0 var(--s2); color: var(--gold); font-size: 1rem; }
.legal p, .legal li { color: var(--text-mid); max-width: var(--measure); }
.legal ul { padding-left: var(--s5); margin: 0 0 var(--s4); }
.legal li { margin-bottom: var(--s2); }
.legal table {
  width: 100%; border-collapse: collapse; margin: var(--s4) 0 var(--s5);
  font-size: 0.9rem; display: block; overflow-x: auto;
}
.legal th, .legal td {
  border: 1px solid var(--line-2); padding: var(--s3) var(--s4);
  text-align: left; vertical-align: top; color: var(--text-mid);
}
.legal th { color: var(--text); font-weight: 600; background: var(--card); }
.fill {
  background: rgba(143, 123, 255, 0.14);
  border: 1px dashed var(--violet); border-radius: var(--s1);
  padding: 0 var(--s2); color: var(--text); font-size: 0.9em;
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
