/* TattwaCalendar website. Tokens mirror the app:
   lib/app/theme/calendar_tokens.dart (Light ivory + peach sun, Dark graphite + orange sun)
   and lib/features/tattwa/presentation/tattwa_palette.dart (the five Tattwa colours).
   Light and dark follow the system unless the visitor picks one (html[data-theme]). */

@font-face {
  font-family: 'DM Sans';
  src: url('/assets/fonts/DMSans-Variable.ttf') format('truetype');
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}
/* DM Sans has no Cyrillic: Manrope (OFL, assets/fonts/OFL-Manrope.txt) fills in for
   Cyrillic code points only, under the same family name. */
@font-face {
  font-family: 'DM Sans';
  src: url('/assets/fonts/Manrope-Variable.ttf') format('truetype');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0400-052F, U+1C80-1C88, U+2116;
}

:root {
  --page: #F4F0EE;
  --surface: #F8F5F3;
  --raised: #FFFFFF;
  --line: #E6DDD7;
  --line-2: #D6CBC3;
  --text: #2B2725;
  --text-2: #5C544F;
  --text-3: #73685F;
  --sun: #FFA552;
  --sun-fill: #F6B47F;
  --sun-glow: rgba(246, 180, 127, 0.55);
  --accent-text: #A84F0A;
  --on-sun: #2B1608;
  --hi: #FFFFFF;
  --lo: #DDD4CE;
  --frame: #2B2725;
  --nav-bg: rgba(244, 240, 238, 0.86);

  --t-akash: #4A4458;
  --t-vayu: #91D49C;
  --t-tejas: #F58D8A;
  --t-prithvi: #F1CD69;
  --t-apas: #D3DADF;
  --on-t: #302D2C;
  --on-akash: #FFFFFF;
  --cat-spirit: #E4DAF2;
  --cat-spirit-bar: #8E78B8;
  --cat-work: #DCE5F0;
  --cat-work-bar: #5F7FA8;

  --page-text: var(--text); --page-text-2: var(--text-2); --page-text-3: var(--text-3); --page-line: var(--line); --page-line-2: var(--line-2); --page-accent: var(--accent-text);
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --pad: clamp(16px, 3vw, 40px);
  --max: 1200px;
  --section: clamp(80px, 10vw, 136px);
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --soft: 8px 8px 18px var(--lo), -8px -8px 18px var(--hi);
  --soft-sm: 4px 4px 10px var(--lo), -4px -4px 10px var(--hi);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #111215; --surface: #1A1B20; --raised: #22242A; --line: #2A2C33; --line-2: #3A3D46;
    --text: #EEEBE8; --text-2: #B0ADAA; --text-3: #8F8C89;
    --sun: #FFA552; --sun-fill: #F9892A; --sun-glow: rgba(249, 137, 42, 0.42); --accent-text: #FFA552; --on-sun: #1A0E05;
    --hi: #272930; --lo: #08090B; --frame: #000000; --nav-bg: rgba(17, 18, 21, 0.86);
    --t-akash: #8A839E; --t-vayu: #8DD198; --t-tejas: #F2908D; --t-prithvi: #EDCB6C; --t-apas: #D7DDE1; --on-t: #1A0E05; --on-akash: #1A0E05;
    --cat-spirit: #2E2A3B; --cat-spirit-bar: #A996D6; --cat-work: #232C38; --cat-work-bar: #86A3C9;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --page: #111215; --surface: #1A1B20; --raised: #22242A; --line: #2A2C33; --line-2: #3A3D46;
  --text: #EEEBE8; --text-2: #B0ADAA; --text-3: #8F8C89;
  --sun: #FFA552; --sun-fill: #F9892A; --sun-glow: rgba(249, 137, 42, 0.42); --accent-text: #FFA552; --on-sun: #1A0E05;
  --hi: #272930; --lo: #08090B; --frame: #000000; --nav-bg: rgba(17, 18, 21, 0.86);
  --t-akash: #8A839E; --t-vayu: #8DD198; --t-tejas: #F2908D; --t-prithvi: #EDCB6C; --t-apas: #D7DDE1; --on-t: #1A0E05; --on-akash: #1A0E05;
  --cat-spirit: #2E2A3B; --cat-spirit-bar: #A996D6; --cat-work: #232C38; --cat-work-bar: #86A3C9;
  color-scheme: dark;
}

/* Cyrillic is set in Manrope, which is wider: ease the tight display tracking. */
:lang(ru) .hero h1 { letter-spacing: -0.025em; }
:lang(ru) h2 { letter-spacing: -0.015em; }

/* Theme-dependent images */
.only-dark { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .only-dark { display: revert !important; }
  :root:not([data-theme="light"]) .only-light { display: none !important; }
}
:root[data-theme="dark"] .only-dark { display: revert !important; }
:root[data-theme="dark"] .only-light { display: none !important; }

/* ── Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; }
a { color: var(--accent-text); text-underline-offset: 3px; }
::selection { background: var(--sun-fill); color: var(--on-sun); }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.js-only { display: none !important; }
.js .js-only { display: flex !important; }
.live .nojs-only { display: none; }

.container { width: 100%; max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: var(--section) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
h2 {
  font-size: clamp(32px, 4.2vw, 54px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
h3 { font-size: 19px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.lead { margin-top: 18px; font-size: clamp(17px, 1.5vw, 20px); color: var(--text-2); max-width: 54ch; text-wrap: pretty; }
time, .tick, .dm-hour, .dm-time, .now-range, .now-sun dd, .w-range { font-variant-numeric: tabular-nums; }

/* Tattwa symbols: filled in their own colour */
.sym { width: 22px; height: 22px; flex: none; }
.sym--xs { width: 14px; height: 14px; vertical-align: -2px; }
.sym--lg { width: 56px; height: 56px; }
.sym--akash { fill: var(--t-akash); }
.sym--vayu { fill: var(--t-vayu); }
.sym--tejas { fill: var(--t-tejas); }
.sym--prithvi { fill: var(--t-prithvi); }
.sym--apas { fill: var(--t-apas); stroke: var(--text-3); stroke-width: 1; }
.seg--akash { background: var(--t-akash); }
.seg--vayu { background: var(--t-vayu); }
.seg--tejas { background: var(--t-tejas); }
.seg--prithvi { background: var(--t-prithvi); }
.seg--apas { background: var(--t-apas); }

/* ── Nav ──────────────────────────────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); height: 64px; display: flex; align-items: center; gap: 12px; }
.nav-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.nav-brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav-menu { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.locale-switcher { display: flex; gap: 2px; }
.locale-switcher a { display: inline-grid; place-items: center; min-width: 34px; height: 32px; padding: 0 6px; border-radius: 8px; color: var(--text-3); text-decoration: none; font-size: 13px; font-weight: 600; }
.locale-switcher a:hover { color: var(--text); }
.locale-switcher a[aria-current="page"] { background: var(--sun-fill); color: var(--on-sun); }
.theme-toggle, .nav-menu-toggle {
  display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none;
  border: 1px solid var(--line-2); border-radius: 12px; background: transparent; color: var(--text-2); cursor: pointer;
}
.theme-toggle:hover, .nav-menu-toggle:hover { color: var(--text); border-color: var(--text-3); }
.theme-toggle svg, .nav-menu-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.nav-menu-toggle { display: none; }
.nav-menu-toggle .icon-close { display: none; }

/* ── Hero: the day from sunrise ──────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 104px) 0 clamp(56px, 7vw, 96px); isolation: isolate; }
.sun {
  position: absolute; z-index: -1; pointer-events: none;
  width: clamp(420px, 52vw, 760px); aspect-ratio: 1; border-radius: 50%;
  right: max(-180px, -12vw); top: clamp(-120px, -6vw, -40px);
  background: radial-gradient(circle at 50% 50%, var(--sun-fill) 0 34%, var(--sun-glow) 35%, transparent 68%);
  opacity: 0.9;
  animation: rise 2.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes rise { from { transform: translateY(38%); opacity: 0; } to { transform: none; opacity: 0.9; } }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(300px, 4fr); gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero h1 {
  font-size: clamp(44px, 6.6vw, 96px); font-weight: 700; line-height: 0.98; letter-spacing: -0.04em; max-width: 11ch; text-wrap: balance;
}
.hero .lead { margin-top: 26px; max-width: 46ch; }

.store { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 34px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 22px 8px 16px;
  border-radius: 14px; border: 1.5px dashed var(--line-2); background: transparent; color: var(--text-2);
  line-height: 1.25; font-weight: 700; font-size: 17px; cursor: default; user-select: none;
}
.store-badge svg { width: 24px; height: 24px; }
.store-badge small { display: block; font-size: 12px; font-weight: 500; color: var(--text-3); }
.store-ask { font-weight: 600; font-size: 16px; }

/* Now card: the app's soft, raised surface */
.now { background: var(--surface); border-radius: var(--r-lg); padding: 26px 26px 22px; box-shadow: var(--soft); }
.now-in { font-size: 14px; font-weight: 600; color: var(--text-3); }
.now-main { display: flex; align-items: center; gap: 16px; margin-top: 14px; }
.now-name b { display: block; font-size: 40px; font-weight: 700; line-height: 1; letter-spacing: -0.035em; }
.now-name span { display: block; margin-top: 4px; color: var(--text-2); font-size: 16px; }
.now-range { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 14px; margin-top: 18px; font-size: 17px; font-weight: 600; }
.now-left { color: var(--accent-text); }
.now-next { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--text-2); font-size: 15px; }
.now-sun { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: 14px; color: var(--text-3); }
.now-sun div { display: flex; gap: 6px; }
.now-sun dd { color: var(--text-2); font-weight: 600; }
.now-sun div:last-child { margin-left: auto; }
.now.is-switching .now-main, .now.is-switching .now-range { animation: swap 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes swap { from { opacity: 0; transform: translateY(6px); } }

/* The band: 60 periods, sunrise at the left edge */
.band-wrap { grid-column: 1 / -1; }
.band { position: relative; padding-bottom: 30px; }
.band-segs { display: flex; gap: 2px; height: 64px; align-items: stretch; }
.seg { flex: 1 1 0; border-radius: 3px; transition: opacity 0.4s; }
.seg.is-past { opacity: 0.32; }
.seg.is-now { box-shadow: 0 0 0 2px var(--page), 0 0 0 4px var(--accent-text); transform: scaleY(1.14); position: relative; z-index: 1; border-radius: 4px; }
.band-now { position: absolute; top: -10px; bottom: 22px; left: calc(var(--at) * 100%); width: 2px; margin-left: -1px; background: var(--accent-text); border-radius: 2px; z-index: 2; }
.band-now::before { content: ''; position: absolute; top: -5px; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent-text); }
.band-ticks { position: absolute; left: 0; right: 0; bottom: 0; height: 22px; }
.tick { position: absolute; left: calc(var(--at) * 100%); transform: translateX(-50%); font-size: 13px; font-weight: 600; color: var(--text-3); }
.tick:first-child { transform: none; color: var(--accent-text); }
.tick:last-child { transform: translateX(-100%); }
.band-wrap .places { flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-2); background: transparent; color: var(--text-2); font: 600 15px/1 var(--font); cursor: pointer;
}
.chip:hover { color: var(--text); border-color: var(--text-3); }
.chip[aria-pressed="true"] { background: var(--sun-fill); border-color: var(--sun-fill); color: var(--on-sun); }
.chip svg { width: 18px; height: 18px; }
.chip[aria-busy="true"] { cursor: progress; opacity: 0.7; }
.calc-note { margin-top: 14px; font-size: 14px; color: var(--text-3); max-width: 70ch; }

/* ── Real app screens ─────────────────────────────────────────────── */
.rhythm { border-top: 1px solid var(--line); }
.private { background: var(--surface); border-top: 1px solid var(--line); }
.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: 260px; gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  margin: 0 calc(var(--pad) * -1); padding: 4px var(--pad) 18px; scroll-padding: 0 var(--pad);
  scrollbar-color: var(--line-2) transparent;
}
.shot { scroll-snap-align: start; }
.shot figcaption { margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--text-2); text-align: center; }
.shot-frame { border-radius: clamp(18px, 2.2vw, 28px); padding: 5px; background: var(--frame); box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.55); }
.shot-frame img { display: block; width: 100%; height: auto; border-radius: clamp(14px, 1.8vw, 23px); aspect-ratio: 440 / 956; object-fit: cover; background: var(--page); }

/* ── Rhythm ───────────────────────────────────────────────────────── */
.cycle-fig { margin-bottom: clamp(40px, 5vw, 64px); }
.cycle { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.cyc {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 12px; align-items: center;
  align-content: start; padding: 20px 18px 22px; border-radius: var(--r); color: var(--on-t);
}
.cyc--akash { background: var(--t-akash); color: var(--on-akash); }
.cyc--vayu { background: var(--t-vayu); }
.cyc--tejas { background: var(--t-tejas); }
.cyc--prithvi { background: var(--t-prithvi); }
.cyc--apas { background: var(--t-apas); }
.cyc .sym { grid-row: 1 / 3; width: 30px; height: 30px; fill: currentColor; stroke: none; opacity: 0.85; }
.cyc b { font-size: 20px; letter-spacing: -0.02em; }
.cyc span { font-size: 14px; }
.cyc time { grid-column: 1 / -1; margin-top: 14px; font-size: 15px; font-weight: 700; }
.cyc p { grid-column: 1 / -1; text-wrap: pretty; margin-top: 14px; padding-top: 14px; border-top: 1px solid currentColor; border-top-color: color-mix(in srgb, currentColor 22%, transparent); font-size: 15px; line-height: 1.5; }
.cyc.is-now { box-shadow: 0 0 0 2px var(--page), 0 0 0 4px var(--accent-text); }
.cycle-fig figcaption { margin-top: 14px; font-size: 14px; color: var(--text-3); }
.cycle-fig figcaption span { font-weight: 600; color: var(--text-2); }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); margin-top: clamp(48px, 6vw, 80px); }
.fact { padding-top: 18px; border-top: 2px solid var(--sun-fill); }
.fact p { margin-top: 8px; color: var(--text-2); font-size: 16px; }

/* ── Calendar + day mock ─────────────────────────────────────────── */
.calendar { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.split-copy { position: sticky; top: 104px; }
.ticks { margin-top: 30px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: var(--text-2); }
.ticks li::before {
  content: ''; position: absolute; left: 4px; top: 0.42em; width: 12px; height: 12px; border-radius: 50%;
  background: var(--sun-fill);
}
.daymock { background: var(--page); border-radius: var(--r-lg); padding: 18px 18px 22px; box-shadow: var(--soft); }
.dm-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; padding: 4px 4px 16px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.dm-head b { font-size: 19px; letter-spacing: -0.01em; }
.dm-head span { color: var(--text-3); font-size: 14px; }
.dm-head em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 600; color: var(--text-3); border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 10px; }
.dm-body { position: relative; height: 760px; margin: 22px 0 14px; }
.dm-hour { position: absolute; left: 0; right: 0; top: var(--y); transform: translateY(-50%); font-size: 12px; font-weight: 600; color: var(--text-3); line-height: 1; }
.dm-hour::after { content: ''; position: absolute; left: 82px; right: 0; top: 50%; border-top: 1px solid var(--line); }
.dm-seg { position: absolute; left: 52px; width: 18px; top: var(--y); height: var(--h); border-radius: 3px; border: 1px solid var(--page); }
.dm-act {
  position: absolute; left: 82px; right: 4px; top: var(--y); height: var(--h); min-height: 54px; z-index: 1;
  display: flex; flex-wrap: wrap; align-content: flex-start; gap: 2px 10px; padding: 8px 12px; border-radius: 10px;
  border-left: 4px solid; font-size: 14px; line-height: 1.35;
}
.dm-act--spirit { background: var(--cat-spirit); border-color: var(--cat-spirit-bar); }
.dm-act--work { background: var(--cat-work); border-color: var(--cat-work-bar); }
.dm-act b { font-weight: 700; }
.dm-time { color: var(--text-2); }
.dm-chip { flex-basis: 100%; display: flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 13px; font-weight: 600; }
.dm-chip em { font-style: normal; color: var(--text-2); }
.dm-now { position: absolute; left: 44px; right: 0; top: var(--y); height: 2px; background: var(--accent-text); z-index: 2; }
.dm-now span { position: absolute; left: -44px; top: -10px; padding: 2px 6px; border-radius: 6px; background: var(--accent-text); color: var(--page); font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ── Other calendars ─────────────────────────────────────────────── */
.feeds { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.feed { padding: 26px 24px; border-radius: var(--r); border: 1px solid var(--line-2); }
.feed p { margin-top: 8px; color: var(--text-2); font-size: 16px; }

/* ── Sky + watch ──────────────────────────────────────────────────── */
.sky { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split--sky { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: center; }
.sky-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 36px; }
.sky-list dt { font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.sky-list dd { margin-top: 6px; color: var(--text-2); font-size: 16px; }
.watch-block { text-align: center; }
.watch-block h3 { margin-top: 32px; font-size: 22px; }
.watch-block p { margin: 10px auto 0; max-width: 36ch; color: var(--text-2); font-size: 16px; }
.watch {
  width: 200px; height: 240px; margin: 0 auto; padding: 12px; border-radius: 52px; background: #000;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7), inset 0 0 0 2px #2A2C33; position: relative;
}
.watch::after { content: ''; position: absolute; right: -7px; top: 66px; width: 8px; height: 40px; border-radius: 4px; background: #2A2C33; }
.watch-screen {
  /* The watch is always black: the dark Tattwa palette, whatever the page theme. */
  --t-akash: #8A839E; --t-vayu: #8DD198; --t-tejas: #F2908D; --t-prithvi: #EDCB6C; --t-apas: #D7DDE1; --text-3: #8F8C89;
  height: 100%; border-radius: 40px; background: #000; color: #EEEBE8; display: grid; justify-items: center; align-content: center; gap: 4px; text-align: center;
  font-size: 13px;
}
.w-label { color: #FFA552; font-weight: 700; font-size: 13px; }
.w-sym .sym { width: 40px; height: 40px; }
.w-name { font-size: 28px; letter-spacing: -0.03em; line-height: 1.1; }
.w-range { color: #B0ADAA; }
.w-next { margin-top: 6px; display: inline-flex; align-items: center; gap: 5px; color: #8F8C89; font-size: 12px; }

/* ── Private ─────────────────────────────────────────────────────── */
.privacy-points { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.privacy-points li { padding-top: 18px; border-top: 1px solid var(--line-2); }
.privacy-points p { margin-top: 8px; color: var(--text-2); font-size: 16px; }

/* ── FAQ ─────────────────────────────────────────────────────────── */
.faq { border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); }
.faq-item { border-bottom: 1px solid var(--line-2); }
.faq-item:first-child { border-top: 1px solid var(--line-2); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; padding: 14px 0;
  font-size: 19px; font-weight: 700; letter-spacing: -0.01em; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ''; flex: none; width: 10px; height: 10px; margin-right: 6px; border-right: 2px solid var(--accent-text); border-bottom: 2px solid var(--accent-text);
  transform: translateY(-3px) rotate(45deg); transition: transform 0.25s;
}
.faq-item[open] summary::after { transform: translateY(2px) rotate(225deg); }
.faq-item summary:hover { color: var(--accent-text); }
.faq-item p { padding: 0 0 22px; color: var(--text-2); max-width: 62ch; text-wrap: pretty; }

/* ── Close: the sun sets ─────────────────────────────────────────── */
.close { position: relative; overflow: hidden; isolation: isolate; padding: var(--section) 0 calc(var(--section) + 60px); border-top: 1px solid var(--line); }
.sun--set { top: auto; bottom: calc(clamp(420px, 52vw, 760px) * -0.62); right: auto; left: 50%; margin-left: calc(clamp(420px, 52vw, 760px) / -2); animation: none; opacity: 0.75; }
.close-inner { text-align: center; display: grid; justify-items: center; }
.close h2 { max-width: 18ch; }
.close .lead { margin-left: auto; margin-right: auto; }
.close .store { justify-content: center; }


/* ── Coloured sections: each in one Tattwa, in cycle order ───────── */
.tw {
  --text: var(--on-t); --text-2: color-mix(in srgb, var(--on-t) 86%, transparent); --text-3: color-mix(in srgb, var(--on-t) 76%, transparent);
  --line: color-mix(in srgb, var(--on-t) 20%, transparent); --line-2: color-mix(in srgb, var(--on-t) 30%, transparent);
  --accent-text: var(--on-t);
  color: var(--text); border: 0 !important;
}
.tw--akash { background: var(--t-akash); --on-t: var(--on-akash); --tw-bg: var(--t-akash); }
.tw--vayu { background: var(--t-vayu); --tw-bg: var(--t-vayu); }
.tw--tejas { background: var(--t-tejas); --tw-bg: var(--t-tejas); }
.tw--prithvi { background: var(--t-prithvi); --tw-bg: var(--t-prithvi); }
.tw--apas { background: var(--t-apas); --tw-bg: var(--t-apas); }
.tw--tejas.sky, .tw--apas.faq { padding-top: 0; }
.tw .lead { color: var(--text-2); }
.tw a { color: var(--text); }
/* Inside a coloured section the inner Tattwa colours keep their own hue, but rings and gaps take the section's. */
.tw .cyc.is-now { box-shadow: 0 0 0 3px var(--tw-bg), 0 0 0 5px var(--on-t); }
.tw--akash .cyc--akash { background: transparent; color: var(--on-akash); box-shadow: inset 0 0 0 1.5px currentColor; }
.tw--akash .cyc--akash.is-now { box-shadow: inset 0 0 0 1.5px currentColor, 0 0 0 3px var(--tw-bg), 0 0 0 5px var(--on-t); }
.tw .fact { border-top: 1px solid var(--line-2); }
.tw .ticks li::before { background: var(--on-t); width: 8px; height: 8px; left: 6px; top: 0.6em; }
.tw .daymock { box-shadow: 0 34px 70px -34px rgba(0, 0, 0, 0.45); }
/* The day mock is the app: it keeps the page's own colours. */
.tw .daymock { --text: var(--page-text); --text-2: var(--page-text-2); --text-3: var(--page-text-3); --line: var(--page-line); --line-2: var(--page-line-2); --accent-text: var(--page-accent); color: var(--text); }
.tw .feed { border-color: var(--line-2); }
.tw .shot figcaption { color: var(--text); }
.tw .faq-item summary:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }

/* ── Footer ──────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 28px; background: var(--page); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-brand p { margin-top: 12px; color: var(--text-3); font-size: 15px; }
.footer-col h2 { font-size: 14px; font-weight: 700; letter-spacing: 0; color: var(--text); }
.footer-col ul { margin-top: 12px; display: grid; gap: 8px; }
.footer-col a { color: var(--text-2); text-decoration: none; font-size: 15px; }
.footer-col a:hover { color: var(--accent-text); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-3); }

/* ── Legal ───────────────────────────────────────────────────────── */
.legal-page { padding: clamp(40px, 6vw, 80px) 0 var(--section); }
.legal-page .container { max-width: calc(760px + 2 * var(--pad)); }
.legal-back { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; min-height: 44px; }
.legal-back svg { width: 18px; height: 18px; }
.legal-header { margin: 24px 0 32px; }
.legal-header h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.035em; line-height: 1.05; }
.legal-date { margin-top: 10px; color: var(--text-3); font-size: 15px; }
.legal-toc { background: var(--surface); border-radius: var(--r); padding: 22px 26px; margin-bottom: 40px; }
.legal-toc h2 { font-size: 15px; letter-spacing: 0; }
.legal-toc ol { list-style: decimal; padding-left: 20px; margin-top: 10px; display: grid; gap: 4px; font-size: 15px; }
.legal-section { margin-top: 40px; }
.legal-section h2 { font-size: 24px; letter-spacing: -0.02em; }
.legal-section p, .legal-section ul { margin-top: 12px; color: var(--text-2); max-width: 68ch; }
.legal-section ul { list-style: disc; padding-left: 22px; display: grid; gap: 8px; }
.legal-section strong { color: var(--text); }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .cycle { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .cyc { grid-column: span 2; }
  .cyc:nth-child(n+4) { grid-column: span 3; }
  .privacy-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .nav-menu-toggle { display: inline-grid; }
  .theme-toggle { margin-left: auto; }
  .nav-menu {
    display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--page); border-bottom: 1px solid var(--line); padding: 8px var(--pad) 20px; box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.4);
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu-toggle[aria-expanded="true"] .icon-open { display: none; }
  .nav-menu-toggle[aria-expanded="true"] .icon-close { display: block; }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .locale-switcher { margin-top: 16px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
  .locale-switcher a { height: 44px; border: 1px solid var(--line-2); }
  .theme-toggle, .nav-menu-toggle { width: 44px; height: 44px; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero .sun:not(.sun--set) { width: 300px; right: -120px; top: -90px; }
  .band-segs { height: 52px; gap: 1px; }
  .tick:nth-child(even) { display: none; }
  .chip { min-height: 44px; }
  .split, .split--sky, .faq-grid { grid-template-columns: 1fr; }
  .split-copy { position: static; }
  .cycle { grid-template-columns: 1fr; }
  .cyc { grid-template-columns: auto 1fr auto; padding: 14px 16px 16px; }
  .cyc .sym { grid-row: 1 / 3; }
  .cyc time { grid-column: 3; grid-row: 1 / 3; margin: 0; }
  .cyc p { margin-top: 12px; padding-top: 12px; }
  .facts, .feeds { grid-template-columns: 1fr; }
  .dm-body { height: 680px; }
  .sky-list { grid-template-columns: 1fr; }
  .watch-block { margin-top: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .faq-item summary { font-size: 17px; }
}

@media (max-width: 520px) {
  .privacy-points { grid-template-columns: 1fr; }
  .shots { grid-auto-columns: 72%; }
  .now { padding: 22px 20px 18px; }
  .now-name b { font-size: 34px; }
  .store-badge { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
