/* timeversary.com, "Cosmic party" design (approved 19 Nov 2026).
   Brand: Celebration palette, Plus Jakarta Sans (self-hosted), Orbit logo,
   Material Symbols Rounded drawn as inline SVG. */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
}
:root {
  --violet: #7c3aed;
  --violet-d: #5b21b6;
  --magenta: #e5397f;
  --rose: #d42a6e;
  --gold: #ffb020;
  --gold-ink: #2b1600;
  --night: #0f0b1f;
  --night-2: #1a1238;
  --ink: #1c1730;
  --muted: #5f5876;
  --paper: #fef7ff;
  --card: #ffffff;
  --soft: #f0e6ff;
  --line: #e7dff7;
  --error: #b42318;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Plus Jakarta Sans", system-ui, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--violet); }
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; line-height: 1.1; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.i { width: 1em; height: 1em; fill: currentColor; flex: none; vertical-align: -0.15em; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.grad { background: linear-gradient(90deg, #b794ff, #ff7ab0 55%, #ffc65a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-ink { background: linear-gradient(90deg, var(--violet), var(--rose)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 20px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: inherit; text-decoration: none; letter-spacing: -0.02em; }
.brand svg { width: 34px; height: 34px; }
.links { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.links a { color: inherit; text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 14px; border-radius: 999px; opacity: .85; }
.links a:hover, .links a[aria-current="page"] { opacity: 1; background: rgba(124, 58, 237, .1); }
.on-dark .links a:hover, .on-dark .links a[aria-current="page"] { background: rgba(255, 255, 255, .12); }
.links .pill { opacity: 1; background: var(--gold); color: var(--gold-ink); }
.links .pill:hover { background: #ffc24d; }
/* On a phone the "Get the app" button stays; it goes where "The app" goes, so that link steps aside. */
@media (max-width: 640px) { .links a { padding: 8px 10px; font-size: 14px; } .links .pill { padding: 8px 14px; } .links .nav-app { display: none; } }

/* ---------- Heroes ---------- */
.hero { position: relative; overflow-x: clip; overflow-y: visible; padding-bottom: 64px; }
.has-result .hero { padding-bottom: 150px; }
.hero-inner { display: flex; flex-direction: column; gap: 20px; padding-top: 32px; max-width: 840px; position: relative; z-index: 2; }
.hero h1 { font-size: clamp(36px, 6vw, 68px); font-weight: 800; }
.hero .lead { font-size: clamp(17px, 2vw, 20px); line-height: 1.55; max-width: 60ch; }
.on-dark { color: #f4f0ff; }
.on-dark .muted, .on-dark .lead { color: #d6cdef; }
.on-dark .lead strong { color: #fff; }
.hero-night, .page-space { background: radial-gradient(1200px 600px at 80% -10%, #3b1a7a 0%, rgba(59, 26, 122, 0) 60%), radial-gradient(900px 500px at 0% 110%, #5a1240 0%, rgba(90, 18, 64, 0) 60%), var(--night); }
.hero-gold { background: var(--gold); color: var(--gold-ink); }
.hero-rose { background: linear-gradient(135deg, #b5145a, #e5397f 60%, #f0609a); }
.hero-mint { background: #c9f5df; color: #053b2d; }
.hero-sky { background: #d6e6ff; color: #12306e; }
.hero-light { background: var(--soft); }
.hero-gold .lead, .hero-mint .lead, .hero-sky .lead { color: inherit; opacity: .9; }
.stars { position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(1.5px 1.5px at 20px 30px, #fff 50%, transparent 51%), radial-gradient(1px 1px at 140px 90px, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 260px 40px, #ffd78a 50%, transparent 51%), radial-gradient(1px 1px at 320px 160px, #fff 50%, transparent 51%), radial-gradient(1.6px 1.6px at 80px 200px, #e9dcff 50%, transparent 51%); background-size: 360px 240px; opacity: .5; animation: twinkle 6s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: .3; } to { opacity: .65; } }
.stars::before, .stars::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.stars::before { background-image: radial-gradient(circle at 70px 110px, #fff 0 1.6px, rgba(255, 255, 255, .45) 2.4px, transparent 4px), radial-gradient(circle at 410px 60px, #fff 0 1.3px, rgba(233, 220, 255, .5) 2.2px, transparent 3.6px), radial-gradient(circle at 300px 330px, #ffe6a8 0 1.8px, rgba(255, 214, 122, .45) 2.8px, transparent 4.5px); background-size: 560px 420px; animation: sparkle 3.6s ease-in-out infinite alternate; }
.stars::after { background-image: radial-gradient(circle at 180px 260px, #fff 0 2.2px, rgba(255, 255, 255, .4) 3.4px, transparent 6px), radial-gradient(circle at 690px 120px, #e9dcff 0 2px, rgba(196, 181, 253, .45) 3.2px, transparent 5.5px), radial-gradient(circle at 540px 470px, #fff 0 1.5px, transparent 3px); background-size: 860px 560px; animation: sparkle 5.2s ease-in-out 1.3s infinite alternate-reverse; }
@keyframes sparkle { from { opacity: .45; } to { opacity: 1; } }
.crumbs { display: flex; gap: 6px; align-items: center; font-size: 14px; font-weight: 600; flex-wrap: wrap; }
.crumbs a { color: inherit; opacity: .75; text-decoration: none; }
.crumbs a:hover { opacity: 1; text-decoration: underline; }
.crumbs .i { opacity: .5; }

/* ---------- Buttons ---------- */
.btn, button { font: inherit; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 999px; font-weight: 700; font-size: 16px; border: 0; cursor: pointer; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--violet); color: #fff; box-shadow: 0 10px 30px -10px rgba(124, 58, 237, .7); }
.btn-gold { background: var(--gold); color: var(--gold-ink); box-shadow: 0 10px 30px -10px rgba(255, 176, 32, .8); }
.btn-ghost { background: rgba(255, 255, 255, .1); color: #fff; border: 1.5px solid rgba(255, 255, 255, .3); }
.btn-line { background: transparent; color: var(--violet); border: 1.5px solid var(--line); }
.store { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 20px; border-radius: 999px; font-weight: 700; line-height: 1.15; text-decoration: none; background: #0b0816; color: #fff; }
.store small { display: block; font-size: 11px; font-weight: 600; opacity: .75; }
.store.soon { background: transparent; color: inherit; border: 1.5px dashed currentColor; opacity: .9; }
.store .i { font-size: 22px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Calculator form ---------- */
.calc-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; padding: 14px; border-radius: 28px; background: #fff; border: 1px solid var(--line); box-shadow: 0 20px 50px -30px rgba(60, 20, 120, .45); max-width: 640px; }
.on-dark .calc-form { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); box-shadow: none; backdrop-filter: blur(12px); }
.calc-form label { display: flex; flex-direction: column; gap: 6px; flex: 1 1 180px; font-size: 13px; font-weight: 700; color: inherit; }
.calc-form label span { padding-left: 6px; opacity: .85; }
.calc-form input, .calc-form select { font: inherit; font-size: 18px; font-weight: 600; min-height: 56px; padding: 0 16px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); width: 100%; }
.on-dark .calc-form input, .on-dark .calc-form select { background: rgba(15, 11, 31, .55); border-color: rgba(255, 255, 255, .25); color: #fff; color-scheme: dark; }
.calc-form button { flex: 0 0 auto; }
.calc-form .field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 180px; font-size: 13px; font-weight: 700; }
.calc-form .field > span { padding-left: 6px; opacity: .85; }
.dmy { display: flex; align-items: center; min-height: 56px; padding: 0 16px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font-size: 18px; font-weight: 600; cursor: text; }
.dmy:focus-within { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(124, 58, 237, .18); }
.dmy-wrap { position: relative; }
.dmy-wrap .dmy { padding-right: 58px; }
.cal-btn { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 14px; display: grid; place-items: center; cursor: pointer; background: rgba(124, 58, 237, .12); color: var(--violet); }
.cal-btn:hover { background: rgba(124, 58, 237, .22); }
.cal-btn:focus-visible { outline: 3px solid rgba(124, 58, 237, .45); outline-offset: 2px; }
.cal-btn .i { width: 22px; height: 22px; fill: currentColor; }
.on-dark .cal-btn { background: rgba(255, 255, 255, .14); color: #fff; }
.on-dark .cal-btn:hover { background: rgba(255, 255, 255, .26); }
.cal-pop { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; right: 0; max-width: 340px; padding: 12px; border-radius: 20px; background: #1c1830; color: #fff; box-shadow: 0 18px 50px rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .14); }
.cal-head { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; }
.cal-head select { flex: 1; min-width: 0; height: 40px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .2); background: #2a2442; color: #fff; font: inherit; font-size: 15px; font-weight: 600; padding: 0 8px; }
.cal-head select.cal-year { flex: 0 0 88px; }
.cal-nav { width: 40px; height: 40px; flex: 0 0 40px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .12); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.cal-nav:hover { background: rgba(255, 255, 255, .24); }
.cal-week, .cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.cal-week span { font-size: 12px; opacity: .6; padding: 4px 0; }
.cal-day { height: 38px; border: 0; border-radius: 12px; background: transparent; color: #fff; font: inherit; font-size: 15px; cursor: pointer; }
.cal-day:hover:not(:disabled) { background: rgba(255, 255, 255, .16); }
.cal-day.now { box-shadow: inset 0 0 0 1.5px #ffb020; }
.cal-day.on { background: #7c3aed; font-weight: 700; }
.cal-day:disabled { opacity: .25; cursor: default; }
.cal-nav:focus-visible, .cal-day:focus-visible, .cal-head select:focus-visible { outline: 3px solid rgba(255, 176, 32, .8); outline-offset: 1px; }
.dmy i { font-style: normal; opacity: .4; padding: 0 6px; }
.calc-form .dmy input, .on-dark .calc-form .dmy input { min-height: 0; height: 40px; padding: 0; border: 0; border-radius: 0; background: transparent; color: inherit; width: 2.6ch; text-align: center; outline: none; box-shadow: none; }
.calc-form .dmy input.y { width: 4.8ch; }
.calc-form .dmy input::placeholder { color: inherit; opacity: .4; }
.on-dark .dmy { background: rgba(15, 11, 31, .55); border-color: rgba(255, 255, 255, .25); color: #fff; }
.on-dark .dmy:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 176, 32, .25); }
.calc-section { margin: 32px 0; }
.calc-section h2 { margin-bottom: 14px; }

/* ---------- Result ---------- */
.result-wrap { position: relative; z-index: 3; }
.has-result .result-wrap { margin-top: -110px; }
#result:empty { display: none; }
.result { position: relative; overflow: hidden; border-radius: 36px; padding: clamp(24px, 4vw, 40px); background: linear-gradient(135deg, var(--violet) 0%, var(--rose) 100%); color: #fff; box-shadow: 0 40px 80px -40px rgba(124, 58, 237, .8); }
.result > *:not(.confetti) { position: relative; }
.result .answer { font-size: clamp(40px, 7vw, 84px); font-weight: 800; letter-spacing: -0.045em; line-height: 1; margin: 6px 0 4px; font-variant-numeric: tabular-nums; color: #fff; }
.result .hint { color: rgba(255, 255, 255, .88); font-size: 16px; margin: 4px 0 0; }
.result .hint:first-child { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #ffe08a; }
.result h2 { font-size: 24px; font-weight: 800; }
.rows { list-style: none; padding: 0; margin: 18px 0 0; }
.rows li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .2); }
.rows li.past { opacity: .6; }
.rows .what { font-weight: 800; }
.rows .when { font-size: 14px; opacity: .85; }
.rows .side { text-align: right; white-space: nowrap; font-weight: 700; }
.bar { height: 8px; width: 7rem; background: rgba(255, 255, 255, .22); border-radius: 999px; overflow: hidden; margin-top: 6px; margin-left: auto; }
.bar > span { display: block; height: 100%; background: linear-gradient(90deg, #ffe08a, #ffb020); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; font-weight: 700; font-size: 15px; background: rgba(255, 255, 255, .16); color: inherit; border: 0; cursor: pointer; text-decoration: none; }
.chip.on, .actions button:first-child { background: #fff; color: var(--violet-d); }
.actions button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; font-weight: 700; font-size: 15px; background: rgba(255, 255, 255, .16); color: #fff; border: 0; cursor: pointer; }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: 0; width: 10px; height: 16px; border-radius: 3px; animation: fall 3.5s ease-in infinite; opacity: 0; }
@keyframes fall { 0% { transform: translateY(-40px) rotate(0); opacity: 0; } 10% { opacity: .9; } 100% { transform: translateY(460px) rotate(540deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .confetti, .stars, .stars::before, .stars::after, .orbit .spin, .ticker .track { animation: none !important; } .confetti { display: none; } }
.weeks { margin: 18px 0 0; }
.weeks-grid { width: 100%; max-width: 26rem; height: auto; display: block; background: rgba(255, 255, 255, .95); border-radius: 16px; padding: 10px; }
.weeks figcaption { color: rgba(255, 255, 255, .85); }
.error { color: var(--error); background: #fff; display: inline-block; padding: 10px 16px; border-radius: 14px; font-weight: 700; margin: 0; }
.on-dark .error { color: #ffd2cc; background: rgba(180, 35, 24, .35); }
#petResult .answer { font-size: clamp(26px, 4vw, 38px); font-weight: 800; letter-spacing: -0.03em; color: var(--violet); margin: 14px 0 0; }

/* Coming up next: the milestone rail */
.coming-up { margin-top: 28px; }
.coming-up h2 { font-size: 26px; font-weight: 800; margin-bottom: 16px; }
.rail { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); padding: 0; margin: 0; list-style: none; }
.stop { position: relative; padding: 20px; border-radius: 24px; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; margin: 0; }
.stop .ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; }
.stop .away { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--rose); }
.stop .what { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.stop .date { font-size: 14px; color: var(--muted); }
.coming-up .hint { margin-top: 14px; color: var(--muted); font-size: 15px; }

/* The app box after a result */
.promo { position: relative; overflow: hidden; border-radius: 36px; background: var(--night); color: #f4f0ff; padding: clamp(26px, 4vw, 48px); margin-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.promo h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; position: relative; }
.promo p { color: #d6cdef; position: relative; max-width: 60ch; }
.promo .stores, .promo .more, .promo .sticker { position: relative; }
.promo .more { color: #ffc65a; font-weight: 700; align-self: flex-start; }
#qr { display: none; margin-top: 8px; position: relative; }
#qr img { width: 9rem; height: 9rem; background: #fff; padding: 0.4rem; border-radius: 0.5rem; }
@media (pointer: fine) and (min-width: 700px) { #qr.has-code { display: block; } }

/* ---------- Stickers ---------- */
.sticker { display: inline-flex; align-items: center; justify-content: center; font-weight: 800; border-radius: 999px; padding: 8px 16px; font-size: 14px; transform: rotate(-6deg); box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .35); align-self: flex-start; }
.sticker.gold { background: var(--gold); color: var(--gold-ink); }
.sticker.pink { background: #ff7ab0; color: #3b0a20; }
.sticker.white { background: #fff; color: var(--violet-d); }

/* ---------- Content with table of contents ---------- */
.content { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-top: 64px; padding-bottom: 32px; }
.toc-wrap { flex: 1 1 220px; max-width: 270px; position: sticky; top: 20px; }
.toc { display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: 24px; background: #fff; border: 1px solid var(--line); font-size: 15px; }
.toc strong { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 4px 12px 8px; }
.toc a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 12px; font-weight: 600; line-height: 1.3; }
.toc a:hover { background: var(--soft); color: var(--violet-d); }
@media (max-width: 900px) { .toc-wrap { position: static; max-width: none; flex-basis: 100%; } }
.prose { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; font-size: 18px; }
.prose > h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; margin-top: 28px; scroll-margin-top: 20px; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { font-size: 21px; font-weight: 800; margin-top: 8px; }
.prose ul, .prose ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.prose li { margin: 0; }
.updated { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); margin-top: 8px; }
.summary { background: var(--soft); border-radius: 24px; padding: 22px 26px; }
.summary ul { margin-top: 10px; }
mark.todo { background: #fff3a8; color: #1c1730; padding: 0 4px; border-radius: 4px; }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: 24px; border: 1px solid var(--line); background: #fff; }
table { border-collapse: collapse; width: 100%; font-size: 16px; }
caption { text-align: left; font-weight: 800; padding: 16px 18px 6px; }
th, td { text-align: left; padding: 12px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--soft); color: var(--violet-d); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 800; }
.table-note { font-size: 14px; color: var(--muted); margin-top: -6px; }

/* Questions */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; margin: 28px 0 6px; scroll-margin-top: 20px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 18px 22px; }
.faq summary { font-weight: 800; font-size: 18px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { font-size: 26px; transition: transform .2s ease; color: var(--violet); }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq details p { margin-top: 10px; color: var(--muted); }
.sources h2 { font-size: 22px; font-weight: 800; margin-top: 12px; }
.sources ul { font-size: 15px; }

/* ---------- Tiles (bento) ---------- */
.sec { padding: 72px 0; }
.sec-h { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.sec-h h2, .h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; }
.bento { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); grid-auto-flow: dense; padding: 0; margin: 0; list-style: none; }
.bento li { margin: 0; display: flex; }
.tile { position: relative; overflow: hidden; flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; min-height: 230px; padding: 26px; border-radius: 30px; text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease; }
.tile:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 30px 60px -30px rgba(40, 10, 90, .55); }
.tile .ti { font-size: 38px; }
.tile h3 { font-size: 24px; font-weight: 800; }
.tile p { font-size: 15px; opacity: .88; margin-top: 6px; }
.tile .go { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 15px; }
.t-violet { background: var(--violet); color: #fff; }
.t-night { background: var(--night-2); color: #fff; }
.t-night .ti { color: #ffc65a; }
.t-gold { background: var(--gold); color: var(--gold-ink); }
.t-rose { background: var(--rose); color: #fff; }
.t-soft { background: var(--soft); color: var(--violet-d); }
.t-white { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.t-white .ti, .t-white .go { color: var(--violet); }
.t-sky { background: #dbeafe; color: #1e3a8a; }
.t-mint { background: #d1fae5; color: #064e3b; }
.cat-h { display: flex; align-items: center; gap: 14px; margin: 48px 0 18px; }
.cat-h .ic { width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center; font-size: 26px; }
.cat-h h2 { font-size: 30px; font-weight: 800; }
.hub-search { max-width: 560px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.on-dark .chips .chip { background: rgba(255, 255, 255, .12); color: #fff; }
.chips .chip.light { background: #fff; color: var(--ink); border: 1px solid var(--line); }

/* ---------- Home ---------- */
.home-hero { padding-bottom: 110px; }
.home-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 40px; align-items: center; padding-top: 40px; position: relative; z-index: 2; }
.home-grid h1 { font-size: clamp(40px, 6.4vw, 78px); font-weight: 800; }
.live { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-end; }
.live[hidden] { display: none; }
.live div { display: flex; flex-direction: column; gap: 2px; }
.live b { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.live span { font-size: 14px; font-weight: 600; color: #d6cdef; }
.space-art { position: relative; height: 520px; }
@media (max-width: 980px) { .space-art { height: 380px; } }
.orbit { position: absolute; left: 50%; top: 50%; border: 1.5px dashed rgba(255, 255, 255, .16); border-radius: 50%; transform: translate(-50%, -50%); }
.orbit .spin { position: absolute; inset: 0; animation: spin linear infinite; }
.orbit .planet { position: absolute; left: 50%; top: -9px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; }
@keyframes spin { to { transform: rotate(360deg); } }
.sun { position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffe3a0, #ffb020 55%, #e5397f); box-shadow: 0 0 80px 20px rgba(255, 176, 32, .35); }
.space-art .sticker { position: absolute; }
.ticker { background: var(--gold); color: var(--gold-ink); overflow: hidden; white-space: nowrap; font-weight: 800; font-size: 18px; padding: 14px 0; transform: rotate(-1.2deg); margin: -26px -20px 0; position: relative; z-index: 4; }
.ticker .track { display: inline-flex; animation: slide 40s linear infinite; }
.ticker .track span { display: inline-flex; align-items: center; gap: 40px; padding-left: 40px; }
.ticker .track span::after { content: "\2726"; opacity: .6; }
@keyframes slide { to { transform: translateX(-50%); } }
.home-result .coming-up { margin-top: 0; }
.home-result .stop { background: #fff; }
.numbers { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }
.number { position: relative; padding: 30px; border-radius: 30px; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.number b { font-size: 56px; font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.number strong { font-size: 19px; }
.number .sticker { position: absolute; right: 16px; top: 16px; }
.app-promo { border-radius: 40px; background: var(--night); color: #f4f0ff; position: relative; overflow: hidden; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 32px; padding: clamp(28px, 5vw, 56px); align-items: center; }
.app-promo > div { position: relative; display: flex; flex-direction: column; gap: 20px; }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: center; margin: 0; }
.ticks .i { color: #ffc65a; font-size: 24px; }
.phone { width: 290px; height: 580px; border-radius: 44px; background: #0b0816; padding: 12px; box-shadow: 0 50px 90px -40px rgba(124, 58, 237, .9), inset 0 0 0 2px #2b2349; margin: 0 auto; position: relative; flex: none; }
.phone .scr { width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: var(--paper); color: var(--ink); display: flex; flex-direction: column; }
.phone.shot { height: auto; }
.phone.shot img { display: block; width: 100%; height: auto; border-radius: 34px; background: #fff; }
.phone .ph-date { padding: 22px 18px 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.phone .ph-title { padding: 0 18px; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.phone .ph-hero { margin: 14px; border-radius: 24px; padding: 18px; color: #fff; background: linear-gradient(135deg, #7c3aed, #d42a6e); }
.phone .ph-hero .today { display: inline-block; background: #ffb020; color: #2b1600; border-radius: 999px; padding: 3px 10px; font-size: 11px; font-weight: 800; }
.phone .ph-hero b { display: block; font-size: 44px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin-top: 6px; }
.phone .ph-row { display: flex; align-items: center; gap: 10px; padding: 10px 16px; font-size: 14px; }
.phone .ph-row small { display: block; font-size: 12px; color: var(--muted); }
.phone .ph-row em { font-style: normal; margin-left: auto; font-size: 11px; font-weight: 800; background: var(--soft); color: var(--violet-d); border-radius: 999px; padding: 4px 10px; }
.av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; }
.facts { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.fact { display: flex; gap: 16px; align-items: flex-start; padding: 24px; border-radius: 26px; background: #fff; border: 1px solid var(--line); }
.fact .i { font-size: 32px; }
.fact strong { font-size: 18px; display: block; }
.fact p { margin-top: 4px; font-size: 15px; }

/* App page */
.feat { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 44px; align-items: center; padding: 48px 0; }
.feat h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; margin: 10px 0 12px; }
.demo { border-radius: 36px; padding: 32px; min-height: 300px; display: flex; flex-direction: column; justify-content: center; gap: 14px; position: relative; overflow: hidden; }
.notif { display: flex; gap: 14px; align-items: center; background: #fff; color: var(--ink); border-radius: 22px; padding: 16px 18px; box-shadow: 0 20px 40px -24px rgba(30, 10, 60, .5); position: relative; }
.notif .ap { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, #7c3aed, #d42a6e); display: grid; place-items: center; color: #fff; flex: none; font-size: 22px; }
.notif small { display: block; color: var(--muted); font-size: 14px; }
.cardfan { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; background: var(--gold); }
.cardfan div { width: 160px; height: 210px; border-radius: 22px; color: #fff; padding: 18px; display: flex; flex-direction: column; justify-content: flex-end; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .5); }
.cardfan b { font-size: 28px; line-height: 1.05; letter-spacing: -0.03em; }

/* 404 */
.lost { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; padding: 56px 0 80px; position: relative; z-index: 2; }
.lost .digits { display: flex; align-items: center; gap: 16px; font-size: clamp(110px, 18vw, 200px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.lost .mars { width: clamp(100px, 15vw, 170px); height: clamp(100px, 15vw, 170px); border-radius: 50%; background: radial-gradient(circle at 32% 30%, #ffb38a, #e2683c 45%, #8a2a0f); box-shadow: 0 0 80px 10px rgba(226, 104, 60, .35), inset -18px -18px 40px rgba(0, 0, 0, .45); animation: drift 7s ease-in-out infinite; }
@keyframes drift { 0% { transform: translate(0, 0) rotate(-12deg); } 50% { transform: translate(14px, -18px) rotate(8deg); } 100% { transform: translate(0, 0) rotate(-12deg); } }

/* About */
.rules { display: flex; flex-direction: column; gap: 12px; }
.rule { display: flex; gap: 18px; align-items: flex-start; padding: 22px; border-radius: 26px; background: #fff; border: 1px solid var(--line); }
.rule .n { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex: none; font-size: 26px; }
.rule p { margin-top: 2px; }
.card-stack { position: relative; height: 360px; }
.card-stack div { position: absolute; width: 200px; height: 260px; border-radius: 28px; padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; }
.card-stack b { font-size: 48px; letter-spacing: -0.05em; line-height: 1; }

/* ---------- Space pages: everything dark ---------- */
.page-space { color: #f4f0ff; }
.page-space .content { position: relative; }
.page-space .muted, .page-space .prose { color: #e6def9; }
.page-space .toc, .page-space .faq details, .page-space .table-wrap, .page-space .stop, .page-space .fact { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); color: #f4f0ff; }
.page-space .toc a, .page-space .updated, .page-space .table-note, .page-space .faq details p, .page-space .stop .date { color: #c9c0e6; }
.page-space .toc a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.page-space thead th { background: rgba(255, 255, 255, .08); color: #ffc65a; }
.page-space th, .page-space td { border-color: rgba(255, 255, 255, .1); }
.page-space a { color: #c4b5fd; }
.page-space .tile { color: inherit; }
.page-space .faq summary .i { color: #ffc65a; }
.page-space .site-footer { background: transparent; border-top: 1px solid rgba(255, 255, 255, .1); }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: #d8d0f2; padding: 64px 0 120px; position: relative; overflow: hidden; margin-top: 72px; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); position: relative; }
.site-footer h2 { margin: 0 0 12px; color: #fff; font-size: 15px; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; font-size: 15px; }
.site-footer a { color: #d8d0f2; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .note { font-size: 14px; color: #b3a9d4; margin-top: 28px; position: relative; }
.site-footer .big { font-size: clamp(48px, 11vw, 150px); font-weight: 800; letter-spacing: -0.05em; line-height: .9; color: rgba(255, 255, 255, .06); margin-top: 40px; white-space: nowrap; position: relative; }

/* ---------- Phone app bar ---------- */
.appbar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 10px 6px 10px 12px; border-radius: 22px; background: rgba(15, 11, 31, .94); color: #fff; box-shadow: 0 20px 40px -16px rgba(15, 11, 31, .6); font-size: 14px; font-weight: 600; }
.appbar[hidden] { display: none; }
.appbar a { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; flex: 1; }
.appbar .logo-sq { width: 36px; height: 36px; border-radius: 12px; background: linear-gradient(135deg, #7c3aed, #d42a6e); display: grid; place-items: center; flex: none; font-size: 20px; }
.appbar-close { background: transparent; color: #fff; border: 0; width: 44px; height: 44px; display: grid; place-items: center; font-size: 22px; cursor: pointer; }
@media (min-width: 700px) { .appbar { display: none; } }

/* Fixes after the first browser check */
.number { padding-top: 64px; }
.page-space .promo { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); }
.page-space .site-header a:not(.pill), .page-space .crumbs a, .page-space .crumbs span { color: #f4f0ff; }
.page-space .tile.t-white, .page-space .tile.t-soft, .page-space .tile.t-sky, .page-space .tile.t-mint { color: var(--ink); }
.hero-gold .grad, .hero-mint .grad, .hero-sky .grad, .hero-light .grad { background-image: linear-gradient(90deg, var(--violet), var(--rose)); }
.hero-gold .links .pill { background: var(--night); color: #fff; }
.hero-gold .links .pill:hover { background: var(--night-2); }
.app-promo > div.stars, .demo > .stars, .promo > .stars { position: absolute; }
.card-stack div { width: 180px; }
.card-stack b { font-size: 42px; }
.home-result:has(#result:empty) { display: none; }

.calc-form label.narrow { flex: 1 1 110px; }

.result .ideas { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 18px 0 8px; position: relative; }
.result .idea { background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .2); border-radius: 22px; padding: 18px 20px; }
.result .idea h3 { font-size: 19px; margin: 0 0 4px; color: #fff; }
.result .idea .when { font-size: 14px; opacity: .85; margin: 0 0 10px; }
.result .idea ul { margin: 0; padding-left: 18px; }
.result .idea li { margin: 7px 0; font-size: 15px; line-height: 1.45; }

.result .answer.long { font-size: clamp(30px, 4.2vw, 50px); line-height: 1.08; }

.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 22px; border-radius: 28px; background: #fff; border: 1px solid var(--line); box-shadow: 0 20px 50px -30px rgba(60, 20, 120, .45); max-width: 760px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; }
.contact-form label span { padding-left: 6px; opacity: .85; }
.contact-form input, .contact-form textarea { font: inherit; font-size: 17px; padding: 14px 16px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); width: 100%; }
.contact-form textarea { resize: vertical; min-height: 160px; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(124, 58, 237, .18); }
.contact-form .wide { grid-column: 1 / -1; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.contact-status { margin: 0; font-weight: 600; }
.contact-status.ok { color: #047857; }
.contact-status.bad { color: #b91c1c; }
@media (max-width: 640px) { .contact-form { grid-template-columns: 1fr; padding: 16px; } }

section.gifts { margin: 28px 0; padding: 26px; border-radius: 28px; background: #fff; border: 1px solid var(--line); box-shadow: 0 20px 50px -34px rgba(60, 20, 120, .45); color: var(--ink); }
section.gifts .kicker { color: var(--rose); }
section.gifts h2 { margin: 6px 0 4px; }
section.gifts .shops { list-style: none; margin: 18px 0 10px; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
section.gifts .shop { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: inherit; height: 100%; transition: transform .15s, border-color .15s; }
section.gifts .shop:hover { transform: translateY(-2px); border-color: var(--violet); }
section.gifts .shop img { width: 48px; height: 48px; border-radius: 12px; object-fit: contain; background: #fff; flex: none; }
section.gifts .shop strong { display: block; font-size: 16px; }
section.gifts .shop small { display: block; font-size: 13px; opacity: .75; line-height: 1.35; margin-top: 2px; }
section.gifts .note { font-size: 12.5px; opacity: .7; margin: 6px 0 0; }
section.gifts .muted { color: var(--ink); opacity: .7; }
section.gifts .shop .letter { width: 48px; height: 48px; border-radius: 12px; flex: none; display: grid; place-items: center; font-weight: 800; font-size: 22px; color: #fff; background: linear-gradient(135deg, var(--violet), var(--rose)); }
.hero-inner:has(.cal-pop), .calc-card:has(.cal-pop), .card:has(.cal-pop) { z-index: 50; }
.cal-pop { z-index: 60; min-width: min(300px, 100%); }
.cal-head select { font-size: 14px; padding: 0 4px; }
.cal-head select.cal-year { flex: 0 0 78px; }
