/* AuraPath web — night-sky palette shared with the app. */
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/Fraunces.woff2") format("woff2"); font-weight: 300 600; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/assets/fonts/Figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
  --bg: #0b0b1e;
  --bg-2: #14112c;
  --card: rgba(30, 27, 58, 0.62);
  --card-solid: #191830;
  --line: rgba(169, 155, 224, 0.16);
  --line-strong: rgba(240, 199, 94, 0.38);
  --gold: #f0c75e;
  --gold-2: #d69a3d;
  --lav: #a99be0;
  --text: #f4f1ea;
  --muted: #a8a3b8;
  --green: #5dbb8a;
  --red: #d96a6a;
  --amber: #e5a54b;
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1120px;
  --read: 700px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 17px/1.65 var(--sans);
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.55) 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 9%, rgba(255,255,255,.4) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 88% 34%, rgba(240,199,94,.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 34% 62%, rgba(255,255,255,.3) 50%, transparent 51%),
    radial-gradient(1px 1px at 57% 41%, rgba(255,255,255,.35) 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 84%, rgba(255,255,255,.3) 50%, transparent 51%),
    radial-gradient(1200px 700px at 85% -10%, rgba(112, 78, 190, .28), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(60, 40, 130, .22), transparent 60%),
    linear-gradient(180deg, #0b0b1e 0%, #120f2a 55%, #1c1038 100%);
  background-attachment: fixed;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--gold); text-decoration-color: rgba(240,199,94,.35); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--gold); }
::selection { background: rgba(240,199,94,.3); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 350; }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); margin-top: 1.8em; }
h3 { font-size: 1.25rem; font-weight: 500; }
p { margin: 0 0 1em; text-wrap: pretty; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: #d9d4e6; max-width: 46em; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.eyebrow { font: 600 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--lav); margin-bottom: 1rem; display: block; }
.gold { color: var(--gold); }

.wrap { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.read { max-width: var(--read); }
main { padding: 28px 0 80px; min-height: 60vh; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 30; backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); background: rgba(11, 11, 30, .72); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 22px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 500 1.28rem/1 var(--serif); letter-spacing: .01em; }
.brand svg { width: 30px; height: 30px; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: #d6d1e3; text-decoration: none; font-size: .95rem; padding: 8px 12px; border-radius: 999px; transition: background .15s, color .15s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: rgba(169,155,224,.1); }
.nav .cta { color: #1a1206; background: linear-gradient(135deg, var(--gold), var(--gold-2)); font-weight: 600; margin-left: 6px; }
.nav .cta:hover { color: #1a1206; background: linear-gradient(135deg, #f6d57b, var(--gold)); }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; color: var(--muted); font-size: .88rem; padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; }
.lang summary::-webkit-details-marker { display: none; }
.lang[open] summary { color: var(--text); border-color: var(--line-strong); }
.lang ul { position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 8px; list-style: none; background: var(--card-solid); border: 1px solid var(--line); border-radius: var(--radius-sm); min-width: 180px; box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.lang li a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: .95rem; }
.lang li a:hover { background: rgba(169,155,224,.12); }
.lang li a[aria-current="true"] { color: var(--gold); }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 999px; padding: 8px 14px; font: 500 .9rem var(--sans); }

@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 66px; flex-direction: column; align-items: stretch; padding: 12px 20px 20px; background: rgba(11,11,30,.97); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .nav .cta { margin: 8px 0 0; text-align: center; }
  .lang ul { position: static; margin-top: 8px; box-shadow: none; }
}

/* ---------- breadcrumbs ---------- */
.crumbs { font-size: .86rem; color: var(--muted); margin: 6px 0 26px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs span[aria-hidden] { opacity: .5; }

/* ---------- hero ---------- */
.hero { padding: 40px 0 30px; position: relative; }
.hero h1 { max-width: 15ch; }
.hero .lead { margin-bottom: 28px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 28px; } }
.page-head { padding: 10px 0 8px; }
.page-head h1 { max-width: 20ch; }
.glyph-big { font-family: var(--serif); font-size: clamp(4rem, 10vw, 7rem); line-height: 1; color: var(--gold); text-shadow: 0 0 40px rgba(240,199,94,.35); }
.num-big { font-family: var(--serif); font-weight: 300; font-size: clamp(5rem, 14vw, 9rem); line-height: .9; background: linear-gradient(160deg, #fff3cf, var(--gold) 45%, var(--gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 600 1rem/1 var(--sans); padding: 16px 26px; border-radius: 999px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s; }
.btn:active { transform: translateY(1px); }
.btn-gold { color: #1a1206; background: linear-gradient(135deg, var(--gold), var(--gold-2)); box-shadow: 0 10px 30px rgba(214,154,61,.28), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-gold:hover { box-shadow: 0 14px 40px rgba(214,154,61,.4), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-ghost { color: var(--text); border-color: var(--line); background: rgba(255,255,255,.03); }
.btn-ghost:hover { border-color: var(--line-strong); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- cards & grids ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; backdrop-filter: blur(6px); }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
a.card { display: block; color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s, background .2s; }
a.card:hover { border-color: var(--line-strong); transform: translateY(-2px); background: rgba(38, 33, 72, .7); }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } .g6 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .g2, .g3 { grid-template-columns: 1fr; } .g4 { grid-template-columns: repeat(2, 1fr); } }

.tile { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(25,24,48,.55); color: var(--text); text-decoration: none; transition: border-color .2s, background .2s; }
.tile:hover { border-color: var(--line-strong); background: rgba(38,33,72,.7); }
.tile .sym { font-family: var(--serif); font-size: 1.9rem; color: var(--gold); line-height: 1.1; }
.tile .t { font-weight: 600; }
.tile .s { color: var(--muted); font-size: .86rem; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips a, .chips span { display: inline-block; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: .92rem; background: rgba(255,255,255,.02); }
.chips a:hover { border-color: var(--line-strong); color: var(--gold); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 22px 0; }
.fact { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; background: rgba(25,24,48,.5); }
.fact .k { display: block; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.fact .v { font-family: var(--serif); font-size: 1.3rem; }

.lists { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
@media (max-width: 640px) { .lists { grid-template-columns: 1fr; } }
.lists ul, .ticks { margin: 0; padding: 0; list-style: none; }
.lists li, .ticks li { padding: 7px 0 7px 26px; position: relative; border-bottom: 1px dashed rgba(169,155,224,.12); }
.lists li:last-child, .ticks li:last-child { border-bottom: 0; }
.lists .plus li::before, .ticks li::before { content: "✦"; position: absolute; left: 2px; color: var(--gold); font-size: .8rem; top: 11px; }
.lists .minus li::before { content: "—"; position: absolute; left: 2px; color: var(--muted); }

.section { margin-top: 56px; }
.prose h2 { margin-top: 1.6em; }
.prose > p, .prose li { color: #e4e0ee; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
@media (max-width: 980px) { .split { grid-template-columns: 1fr; } }
.aside { position: sticky; top: 90px; display: grid; gap: 16px; }

/* ---------- forms / calculators ---------- */
.calc { background: linear-gradient(160deg, rgba(48,38,98,.65), rgba(25,24,48,.75)); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 26px; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.calc h2, .calc h3 { margin-top: 0; }
.row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.row.two { grid-template-columns: 1fr 1fr; }
label { display: block; font-size: .82rem; color: var(--muted); margin: 0 0 6px; letter-spacing: .02em; }
.field { margin-bottom: 14px; }
input, select { width: 100%; font: 500 1rem var(--sans); color: var(--text); background: rgba(11,11,30,.65); border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px; appearance: none; -webkit-appearance: none; }
select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 54%, calc(100% - 13px) 54%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
input:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(240,199,94,.15); }
.calc .btn { width: 100%; margin-top: 4px; }
.result { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); display: none; }
.result.show { display: block; animation: rise .35s ease-out; }
.err { color: var(--red); font-size: .9rem; min-height: 1.2em; margin: 8px 0 0; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- score meter ---------- */
.meter { height: 10px; border-radius: 99px; background: rgba(169,155,224,.14); overflow: hidden; margin: 10px 0 4px; }
.meter i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--lav), var(--gold)); }
.score { font-family: var(--serif); font-size: 2.6rem; color: var(--gold); line-height: 1; }

/* ---------- tables ---------- */
.table { width: 100%; border-collapse: collapse; font-size: .96rem; margin: 18px 0; }
.table th, .table td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-weight: 600; color: var(--muted); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.table tr:hover td { background: rgba(169,155,224,.04); }
.table .d { white-space: nowrap; font-variant-numeric: tabular-nums; }
.scroll-x { overflow-x: auto; }

/* ---------- plan promo ---------- */
.promo { position: relative; overflow: hidden; border-radius: 24px; padding: 38px; border: 1px solid var(--line-strong); background: radial-gradient(600px 300px at 100% 0%, rgba(240,199,94,.16), transparent 60%), linear-gradient(150deg, #2a1f55, #171431 70%); }
.promo h2 { margin-top: 0; }
.promo .price { font-family: var(--serif); font-size: 2.2rem; color: var(--gold); }
.promo-mini { padding: 22px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: linear-gradient(160deg, #2a1f55, #171431); }
.promo-mini h3 { margin-top: 0; }

.month-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 16px 0; }
@media (max-width: 640px) { .month-grid { grid-template-columns: repeat(4, 1fr); } }
.month-grid div { text-align: center; padding: 12px 4px; border-radius: 10px; border: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.month-grid div b { display: block; font: 400 1.4rem var(--serif); color: var(--text); }
.month-grid .hi { border-color: var(--line-strong); background: rgba(240,199,94,.08); }
.month-grid .hi b { color: var(--gold); }
.locked { filter: blur(5px); user-select: none; pointer-events: none; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin: 10px 0 0; color: #d9d4e6; }

/* ---------- report ---------- */
.report-month { break-inside: avoid; margin: 0 0 18px; }
.report-month header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 14px; }
.report-month h3 { margin: 0; font-size: 1.6rem; }
.pill { display: inline-block; font-size: .8rem; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.pill.warn { border-color: rgba(229,165,75,.5); color: var(--amber); }
.days { font-variant-numeric: tabular-nums; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 6px 16px; margin: 12px 0; font-size: .95rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
@media (max-width: 560px) { .kv { grid-template-columns: 1fr; } .kv dd { margin-bottom: 8px; } }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 46px 0 60px; color: var(--muted); font-size: .92rem; background: rgba(8,8,22,.5); }
.foot .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px; }
@media (max-width: 760px) { .foot .cols { grid-template-columns: 1fr 1fr; } }
.foot h4 { color: var(--text); font: 600 .78rem var(--sans); letter-spacing: .14em; text-transform: uppercase; margin: 0 0 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 6px 0; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot .disc { margin-top: 30px; font-size: .84rem; max-width: 70ch; }

.center { text-align: center; }
.mt0 { margin-top: 0; }
.hide { display: none !important; }

@media print {
  body { background: #fff; color: #111; font-size: 12pt; }
  .top, .foot, .no-print, .crumbs { display: none !important; }
  .card, .calc, .promo, .fact { background: #fff; border-color: #ccc; backdrop-filter: none; }
  h1, h2, h3, .gold, .num-big, .score { color: #6b4a00 !important; -webkit-text-fill-color: #6b4a00; }
  .muted, .pill, .kv dt { color: #555; }
  a { color: #111; }
  main { padding: 0; }
  .report-month { page-break-inside: avoid; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- consent banner ---------- */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 620px; margin: 0 auto; padding: 16px 18px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; background: rgba(25,24,48,.97); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,.5); font-size: .92rem; }
.consent[hidden] { display: none; }
.consent p { margin: 0; flex: 1 1 260px; color: #d9d4e6; }
.consent .btn { padding: 10px 18px; font-size: .9rem; }
@media (max-width: 560px) {
  .fact .v { font-size: 1.1rem; }
  .facts { grid-template-columns: 1fr 1fr; }
  .calc, .card, .promo { padding: 20px; }
  .promo { border-radius: 18px; }
}
