/* ============================================
   Astrology Widgets — Stylesheet
   Palette = the app: bg #0D0E1A · gold #E8C26A · violet #C9A7FF
   Theme packs = catalog.json (Midnight, Nebula, Rose Rx, Daybreak, Noir, Ember)
   ============================================ */

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

:root {
    --bg: #0D0E1A;
    --bg-2: #13142A;
    --surface: rgba(255,255,255,0.04);
    --surface-2: rgba(255,255,255,0.07);
    --border: rgba(245,241,230,0.10);
    --border-strong: rgba(245,241,230,0.18);
    --ink: #F5F1E6;
    --ink-2: #B9B6C9;
    --ink-3: #7F7C93;
    --gold: #E8C26A;
    --gold-2: #F3D98F;
    --violet: #C9A7FF;
    --violet-2: #7850C8;

    --p-sun: #E8C26A; --p-moon: #D9D6E8; --p-mars: #FF6B4A; --p-mercury: #7FD3C9;
    --p-jupiter: #C9A7FF; --p-venus: #FF9EB3; --p-saturn: #B8A98C;

    --serif: 'Fraunces', 'Iowan Old Style', 'Palatino', Georgia, serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --rounded: 'Nunito', 'Inter', -apple-system, sans-serif;
    --max: 1160px;
    --r: 22px;
    --gutter: 16px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; } }

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
}
body::before { /* violet dawn behind the hero */
    content: ""; position: fixed; inset: -20% -10% auto -10%; height: 90vh; z-index: -2; pointer-events: none;
    background: radial-gradient(60% 55% at 65% 15%, rgba(120,80,200,0.32), transparent 70%),
                radial-gradient(40% 40% at 15% 60%, rgba(232,194,106,0.08), transparent 70%);
}
.stars { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.stars canvas { width: 100%; height: 100%; display: block; }

img, svg { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-2); }
ul { list-style: none; }
strong { font-weight: 600; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.25rem; }
h1 em, h2 em { font-style: italic; color: var(--gold); }
.lead { font-size: 1.08rem; color: var(--ink-2); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.muted { color: var(--ink-3); }
.note { margin-top: 14px; font-size: .85rem; color: var(--ink-3); border-left: 2px solid rgba(232,194,106,.45); padding-left: 12px; }
.eyebrow { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.9rem; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #000; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 820px; }
.page-section { padding: 88px 0; }
.section-head { max-width: 720px; margin-bottom: 44px; }

/* --- Buttons --- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 14px; font-weight: 600; font-size: 0.95rem; border: 1px solid transparent; transition: transform .15s ease, background .15s ease, border-color .15s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: #17130A; }
.btn-gold:hover { background: var(--gold-2); color: #17130A; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-small { padding: 9px 16px; font-size: 0.85rem; border-radius: 11px; }
.link-arrow::after { content: " →"; }

.store-badge { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; position: relative; }
.store-badge img { height: 53px; width: auto; border-radius: 9px; }
.store-badge-soon img { opacity: .45; filter: grayscale(1); }
.soon-tag { font-size: 0.72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 600; }

/* QR: only useful on a desktop screen — hidden on phones */
.qr { display: none; align-items: center; gap: 12px; color: var(--ink-3); font-size: .78rem; line-height: 1.3; }
.qr img { border-radius: 10px; background: #F5F1E6; padding: 4px; box-shadow: 0 0 0 1px var(--border-strong); }
.qr:hover { color: var(--ink-2); }
.qr-big { flex-direction: column; gap: 10px; font-size: .82rem; }
.qr-big img { border-radius: 14px; padding: 8px; }
.download-row { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; margin-bottom: 12px; }
.section-download .download-row .store-badge { margin: 0; }
@media (min-width: 768px) and (hover: hover) { .qr { display: inline-flex; } }
.footer-badge { margin-top: 16px; }
.footer-badge img { height: 45px; }

/* --- Header --- */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); background: rgba(13,14,26,0.72); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--serif); font-size: 1.15rem; }
.logo img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 0 0 1px rgba(245,241,230,.1); }
.logo:hover { color: var(--ink); }
.main-nav { display: flex; gap: 26px; }
.main-nav a { color: var(--ink-2); font-size: 0.92rem; font-weight: 500; }
.main-nav a:hover { color: var(--ink); }
@media (max-width: 720px) { .main-nav { display: none; } .logo-text { font-size: 1.05rem; } }

/* --- Hero --- */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; position: relative; }
.hero-copy h1 { margin-bottom: 20px; }
.hero-copy .lead { margin-bottom: 30px; }
.hero-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-bottom: 30px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 26px; color: var(--ink-3); font-size: 0.9rem; }
.hero-proof strong { color: var(--ink); font-family: var(--serif); font-size: 1.35rem; font-weight: 500; margin-right: 6px; }
.hero-orrery { position: absolute; right: -180px; top: -140px; width: 820px; opacity: .55; pointer-events: none; -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 40%, transparent 72%); mask-image: radial-gradient(circle at 50% 50%, #000 40%, transparent 72%); }
.hero-widgets { position: relative; display: grid; grid-template-columns: repeat(2, auto); justify-content: start; gap: 18px; align-items: start; padding: 20px 0; }
.hero-widgets .float:has(.wf-m) { grid-column: span 2; }
.float { animation: float 7s ease-in-out infinite; }
.f1 { animation-delay: 0s; } .f2 { animation-delay: -2s; } .f3 { animation-delay: -4s; } .f4 { animation-delay: -5.5s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (max-width: 900px) {
    .hero { padding-top: 48px; }
    .hero-inner { grid-template-columns: 1fr; gap: 36px; }
    .hero-orrery { right: -300px; top: -220px; width: 720px; opacity: .35; }
    .hero-widgets { max-width: 420px; }
}

/* --- Orrery (hero + widget) --- */
.orrery .orbits circle { fill: none; stroke: var(--violet); stroke-opacity: .28; stroke-width: 1; }
.orrery-widget .orbits circle { stroke: var(--w-ink); stroke-opacity: .16; stroke-width: .8; }
.orrery .planet { transform-origin: 50% 50%; transform-box: view-box; animation: orbit var(--d) linear infinite; animation-delay: calc(var(--o) * var(--d) * -1); }
.orrery .planet > * { transform: translateX(var(--r)); }
.orrery-hero .planet { transform-origin: 300px 300px; }
.orrery-widget .planet { transform-origin: 100px 100px; }
@keyframes orbit { to { transform: rotate(1turn); } }

/* ============================================
   WIDGET MOCKUPS — HTML ports of the app templates
   real sizes: 170 · 364×170 · 364×382, radius 24, padding 16
   ============================================ */
.wf { --s: 1; position: relative; flex: 0 0 auto; }
.wf-s { width: calc(170px * var(--s)); height: calc(170px * var(--s)); }
.wf-m { width: calc(364px * var(--s)); height: calc(170px * var(--s)); }
.wf-l { width: calc(364px * var(--s)); height: calc(382px * var(--s)); }
.w {
    --w-bg1: #1C2040; --w-bg2: #0D0E20; --w-ink: #F5F1E6; --w-accent: #E8C26A; --w-font: var(--serif);
    position: absolute; inset: 0 auto auto 0; transform: scale(var(--s)); transform-origin: 0 0;
    border-radius: 24px; padding: 16px; overflow: hidden; box-sizing: border-box;
    background: linear-gradient(135deg, var(--w-bg1), var(--w-bg2));
    color: var(--w-ink); font-family: var(--w-font); font-size: 13px; line-height: 1.2;
    display: flex; flex-direction: column; align-items: stretch;
    box-shadow: 0 4px 10px rgba(0,0,0,.28), inset 0 0 0 .5px rgba(255,255,255,.08);
}
.w-s { width: 170px; height: 170px; }
.w-m { width: 364px; height: 170px; }
.w-l { width: 364px; height: 382px; }
.t-midnight { --w-bg1: #1C2040; --w-bg2: #0D0E20; --w-ink: #F5F1E6; --w-accent: #E8C26A; --w-font: var(--serif); }
.t-nebula   { --w-bg1: #3D1E5E; --w-bg2: #190F2E; --w-ink: #F7ECFF; --w-accent: #D9A7FF; --w-font: var(--serif); }
.t-rose     { --w-bg1: #4A1F33; --w-bg2: #1F0F1B; --w-ink: #FFE9EF; --w-accent: #FF9EB3; --w-font: var(--sans); }
.t-daybreak { --w-bg1: #F7F1E3; --w-bg2: #EEE0C6; --w-ink: #33270F; --w-accent: #A97E2F; --w-font: var(--serif); }
.t-noir     { --w-bg1: #191919; --w-bg2: #000000; --w-ink: #FFFFFF; --w-accent: #C9C9C9; --w-font: var(--sans); }
.t-ember    { --w-bg1: #3A1C0D; --w-bg2: #150803; --w-ink: #FFE9D6; --w-accent: #FF8A3D; --w-font: var(--rounded); }
.w > * { min-width: 0; }
.w .tx { display: block; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.w .tx.nowrap { white-space: nowrap; }
.w .k { display: block; font-family: var(--sans); font-size: 9px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; opacity: .62; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.w .g { color: var(--w-accent); display: block; line-height: 1.05; }
.w .acc, .w .acc .tx, .w .acc .g { color: var(--w-accent); }
.w .mono { font-variant-numeric: tabular-nums; }
.w .sp { flex: 1 1 0; min-height: 0; }
.w .col { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; flex: 1 1 auto; min-width: 0; min-height: 0; }
.w .col.center { align-items: center; text-align: center; }
.w .col.right { align-items: flex-end; text-align: right; flex: 0 0 auto; }
.w .col.fill, .w .row.fill { width: 100%; height: 100%; }
.w .row { display: flex; align-items: center; min-width: 0; }
.w .row.top { align-items: flex-start; }
.w .row.spread { justify-content: space-between; width: 100%; }
.w .col > .row { width: 100%; }
.w .row > .col { flex: 1 1 auto; }
.w .g0 { gap: 0 } .w .g1 { gap: 1px } .w .g2 { gap: 2px } .w .g3 { gap: 3px } .w .g4 { gap: 4px } .w .g5 { gap: 5px } .w .g6 { gap: 6px }
.w .g8 { gap: 8px } .w .g10 { gap: 10px } .w .g12 { gap: 12px } .w .g14 { gap: 14px } .w .g16 { gap: 16px }
.w .ccol { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; min-width: 0; }
.w .divh { display: block; width: 100%; height: 1px; background: var(--w-ink); opacity: .14; flex: 0 0 1px; }
.w .divv { display: block; width: 1px; align-self: stretch; background: var(--w-ink); opacity: .14; flex: 0 0 1px; }
.w .pl { display: block; width: 100%; height: 4px; border-radius: 99px; background: color-mix(in srgb, var(--w-ink) 16%, transparent); overflow: hidden; flex: 0 0 4px; }
.w .pl i { display: block; height: 100%; border-radius: 99px; background: var(--w-accent); }
.w .moon { display: block; flex: 0 0 auto; }
.w .chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 9px; background: color-mix(in srgb, var(--w-ink) 8%, transparent); }
.w .wbtn { display: inline-flex; align-items: center; gap: 3px; padding: 4px 8px; border-radius: 99px; background: color-mix(in srgb, var(--w-ink) 12%, transparent); font-size: 9.5px; font-weight: 700; white-space: nowrap; }
.w .wbtn.sq { border-radius: 8px; flex: 1 1 0; justify-content: center; padding: 5px 4px; background: color-mix(in srgb, var(--w-ink) 10%, transparent); }
.w .wbtn.is-fill { background: var(--w-accent); color: rgba(0,0,0,.85); }
.w .daychip { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 4px 0; border-radius: 8px; background: color-mix(in srgb, var(--w-ink) 7%, transparent); }
.w .daychip.is-sel { background: var(--w-accent); color: rgba(0,0,0,.85); }
.w .hrow { height: 17px; padding: 0 4px; border-radius: 5px; width: 100%; }
.w .hrow.is-act { background: color-mix(in srgb, var(--w-accent) 16%, transparent); }
.w .cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px 2px; width: 100%; flex: 1; margin: 10px 0 8px; align-content: stretch; }
.w .cal-h { font-size: 8.5px; font-weight: 700; opacity: .45; text-align: center; height: 11px; line-height: 11px; }
.w .cal-d { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border-radius: 6px; }
.w .cal-d.is-today { background: color-mix(in srgb, var(--w-ink) 12%, transparent); }
.w .dial { position: relative; flex: 0 0 auto; }
.w .dial-svg { position: absolute; inset: 0; font-family: var(--w-font); }
.w .dial-c { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; justify-content: center; }
.w .mixgrid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; flex: 1; margin-top: 10px; min-height: 0; }
.w .mixgrid.mix-custom { display: flex; flex-direction: column; }
.w .mixgrid.mix-custom .cell-m { flex: 1; }
.w .cell { display: flex; flex-direction: column; align-items: stretch; padding: 12px; border-radius: 14px; background: color-mix(in srgb, var(--w-ink) 8%, transparent); overflow: hidden; min-width: 0; min-height: 0; flex: 1 1 0; }
.w .cell > .col, .w .cell > .row { height: 100%; width: 100%; }
.wf-m, .wf-l { --s: var(--s-m, 1); }
.wf-s { --s: var(--s-s, 1); }

/* gallery grid */
.group-title { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; color: var(--ink-2); margin: 44px 0 18px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.group-title .glyph { color: var(--gold); font-size: 1.2rem; }
.w-grid { display: flex; flex-wrap: wrap; gap: 26px 22px; align-items: flex-start; }
.w-card { display: flex; flex-direction: column; gap: 10px; }
.w-card figcaption { display: flex; flex-direction: column; font-size: .86rem; padding-left: 4px; }
.w-card figcaption strong { color: var(--ink); }
.w-card figcaption span { color: var(--ink-3); font-size: .78rem; }
@media (max-width: 480px) { .w-grid { gap: 22px 14px; } }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* --- App screenshots --- */
.section-shots { background: linear-gradient(180deg, transparent, rgba(232,194,106,.04) 50%, transparent); }
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.shot { display: flex; flex-direction: column; gap: 10px; }
.shot img { width: 100%; height: auto; border-radius: 28px; border: 1px solid var(--border-strong); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); background: #0D0E1A; }
.shot figcaption { font-size: .82rem; color: var(--ink-3); padding: 0 4px; }
@media (max-width: 860px) { .shots { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .shots { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; } }

/* --- Themes --- */
.section-themes { background: linear-gradient(180deg, transparent, rgba(120,80,200,0.07) 40%, transparent); }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 20px; }
.theme-card { display: flex; flex-direction: column; gap: 12px; }
.theme-meta { display: flex; flex-direction: column; gap: 4px; padding-left: 4px; }
.theme-meta strong { font-family: var(--serif); font-size: 1.05rem; font-weight: 500; }
.theme-font { font-size: .75rem; color: var(--ink-3); }
.swatches { display: flex; gap: 5px; }
.swatches i { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }

/* --- Steps --- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 24px 22px; }
.steps h3 { margin: 12px 0 8px; font-size: 1.15rem; }
.steps p { font-size: .92rem; color: var(--ink-2); }
.step-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(232,194,106,.15); color: var(--gold); font-weight: 700; font-size: .85rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* --- Pro --- */
.plans { display: grid; grid-template-columns: 1fr 1.25fr; gap: 22px; align-items: stretch; }
.plan { border-radius: 24px; padding: 30px 28px; background: var(--surface); border: 1px solid var(--border); }
.plan h3 { font-size: 1.6rem; }
.plan-price { font-family: var(--serif); font-size: 1.35rem; margin: 6px 0 18px; }
.plan-price small { display: block; font-family: var(--sans); font-size: .82rem; color: var(--ink-3); }
.plan ul li { position: relative; padding-left: 26px; margin-bottom: 10px; color: var(--ink-2); }
.plan ul li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); font-size: .85rem; top: 2px; }
.plan-pro { background: linear-gradient(135deg, #2A2352, #151633); border-color: rgba(232,194,106,.28); box-shadow: 0 40px 80px -40px rgba(120,80,200,.6); }
.plan-pro ul li { color: var(--ink); }
.plan-badge { color: var(--gold); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; margin-bottom: 8px; }
.plan-note { margin-top: 18px; font-size: .8rem; color: var(--ink-3); }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* --- Privacy --- */
.section-privacy { background: linear-gradient(180deg, transparent, rgba(232,194,106,.05) 50%, transparent); }
.privacy-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.privacy-inner .lead { margin-bottom: 18px; }
.privacy-list li { padding: 14px 0; border-bottom: 1px solid var(--border); color: var(--ink-2); }
.privacy-list li:first-child { border-top: 1px solid var(--border); }
.privacy-list b { color: var(--gold); font-weight: 600; margin-right: 6px; }
@media (max-width: 760px) { .privacy-inner { grid-template-columns: 1fr; gap: 28px; } }

/* --- FAQ --- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: 1.1rem; font-weight: 500; }
.faq-icon { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border-strong); position: relative; transition: transform .25s ease; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; background: var(--gold); left: 50%; top: 50%; transform: translate(-50%, -50%); }
.faq-icon::before { width: 10px; height: 1.5px; }
.faq-icon::after { width: 1.5px; height: 10px; }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-a { padding: 0 0 22px; color: var(--ink-2); max-width: 68ch; }

/* --- Download --- */
.section-download { padding-bottom: 100px; }
.section-download .lead { margin-bottom: 26px; }
.section-download .store-badge { margin: 0 auto 12px; }
.section-download .store-badge img { height: 60px; }

/* --- Footer --- */
.site-footer { border-top: 1px solid var(--border); background: rgba(0,0,0,.35); padding: 56px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 44px; }
.footer-brand p { color: var(--ink-2); font-size: .92rem; margin-top: 14px; max-width: 42ch; }
.footer-contact strong { color: var(--ink); }
.footer-links h4 { font-family: var(--sans); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; font-weight: 600; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: var(--ink-2); font-size: .92rem; }
.footer-links a:hover { color: var(--ink); }
.social-links { display: flex; gap: 12px; flex-wrap: wrap; }
.social-links a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); color: var(--ink-2); }
.social-links a:hover { color: var(--gold); border-color: rgba(232,194,106,.4); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 26px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.footer-bottom p { font-size: .78rem; color: var(--ink-3); max-width: 60ch; }
.by-planetaro { display: inline-flex; align-items: baseline; gap: 8px; color: var(--ink); }
.by-planetaro-app { font-family: var(--serif); font-size: 1.1rem; }
.by-planetaro-by { color: var(--ink-3); font-size: .85rem; font-style: italic; }
.by-planetaro-brand { font-weight: 700; letter-spacing: .22em; font-size: .95rem; color: var(--gold); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* --- Legal pages --- */
.section-legal { padding-top: 56px; }
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 10px; }
.legal .legal-dates { color: var(--ink-3); font-size: .9rem; margin-bottom: 30px; }
.legal h2 { font-size: 1.45rem; margin: 40px 0 12px; }
.legal h3 { font-size: 1.1rem; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--ink-2); margin-bottom: 12px; }
.legal ul { list-style: disc; padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal strong { color: var(--ink); }
.legal-toc { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px 22px; margin-bottom: 20px; }
.legal-toc ol { padding-left: 20px; color: var(--ink-2); font-size: .92rem; columns: 2; column-gap: 24px; }
.legal-toc li { margin-bottom: 4px; }
@media (max-width: 560px) { .legal-toc ol { columns: 1; } }
.legal-summary { border-left: 3px solid var(--gold); padding: 6px 0 6px 18px; margin: 0 0 24px; color: var(--ink); }
