/* Panchangam official website: shared styles for every page. */

:root {
  --saffron: #d97706;
  --saffron-deep: #b45309;
  --saffron-soft: #fdebc8;
  --maroon: #701c32;
  --maroon-deep: #521425;
  --maroon-soft: #f6e4e8;
  --ivory: #fff9ef;
  --ivory-deep: #fbefdc;
  --card: #ffffff;
  --text: #292524;
  --text-soft: #57534e;
  --muted: #78716c;
  --gold: #d4af37;
  --gold-soft: #f4e7bf;
  --line: #eadbc3;
  --success: #166534;

  --font-display: 'Marcellus', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --font-body: 'Mukta', 'Segoe UI', system-ui, -apple-system, 'Noto Sans', sans-serif;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(82, 20, 37, 0.06), 0 2px 8px rgba(82, 20, 37, 0.05);
  --shadow: 0 10px 30px -12px rgba(82, 20, 37, 0.22), 0 4px 12px -6px rgba(82, 20, 37, 0.12);
  --shadow-lg: 0 30px 60px -24px rgba(82, 20, 37, 0.35);
  --container: 1160px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Decorative patterns, drawn inline so the site loads no extra images. */
  --kolam: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23d97706' stroke-opacity='.13' stroke-width='1.2'%3E%3Cpath d='M32 6 58 32 32 58 6 32Z'/%3E%3Ccircle cx='32' cy='32' r='9'/%3E%3Cpath d='M32 23v-8M32 49v-8M23 32h-8M49 32h-8'/%3E%3C/g%3E%3Cg fill='%23701c32' fill-opacity='.10'%3E%3Ccircle cx='32' cy='32' r='2'/%3E%3Ccircle cx='0' cy='0' r='2'/%3E%3Ccircle cx='64' cy='0' r='2'/%3E%3Ccircle cx='0' cy='64' r='2'/%3E%3Ccircle cx='64' cy='64' r='2'/%3E%3C/g%3E%3C/svg%3E");
  --toran: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14'%3E%3Cpath d='M0 0h28L14 13Z' fill='%23d97706'/%3E%3Ccircle cx='14' cy='5' r='2' fill='%23d4af37'/%3E%3C/svg%3E");
  --mandala: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%23d4af37' stroke-width='.8' stroke-opacity='.55'%3E%3Ccircle cx='100' cy='100' r='96'/%3E%3Ccircle cx='100' cy='100' r='78'/%3E%3Ccircle cx='100' cy='100' r='44'/%3E%3Cg id='p'%3E%3Cpath d='M100 4c10 22 10 40 0 52-10-12-10-30 0-52Z'/%3E%3Cpath d='M100 22c18 20 22 40 0 56-22-16-18-36 0-56Z'/%3E%3C/g%3E%3Cuse href='%23p' transform='rotate(30 100 100)'/%3E%3Cuse href='%23p' transform='rotate(60 100 100)'/%3E%3Cuse href='%23p' transform='rotate(90 100 100)'/%3E%3Cuse href='%23p' transform='rotate(120 100 100)'/%3E%3Cuse href='%23p' transform='rotate(150 100 100)'/%3E%3Cuse href='%23p' transform='rotate(180 100 100)'/%3E%3Cuse href='%23p' transform='rotate(210 100 100)'/%3E%3Cuse href='%23p' transform='rotate(240 100 100)'/%3E%3Cuse href='%23p' transform='rotate(270 100 100)'/%3E%3Cuse href='%23p' transform='rotate(300 100 100)'/%3E%3Cuse href='%23p' transform='rotate(330 100 100)'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--maroon);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--saffron-deep);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  color: var(--maroon-deep);
  margin: 0 0 0.6em;
  letter-spacing: 0.005em;
}

h1 {
  font-size: clamp(2.2rem, 5.2vw, 3.7rem);
}

h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
}

h3 {
  font-size: 1.3rem;
}

p {
  margin: 0 0 1em;
}

:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: var(--gold-soft);
  color: var(--maroon-deep);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--maroon);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.icon {
  width: 24px;
  height: 24px;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Header and navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 249, 239, 0.88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.site-header::before {
  content: '';
  display: block;
  height: 5px;
  background: linear-gradient(90deg, var(--maroon), var(--saffron) 35%, var(--gold) 50%, var(--saffron) 65%, var(--maroon));
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(82, 20, 37, 0.45);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--maroon-deep);
  text-decoration: none;
}

.brand:hover {
  color: var(--maroon-deep);
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
}

.brand-tag {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--saffron-deep);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text);
  font-weight: 500;
  font-size: 0.98rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover {
  background: var(--saffron-soft);
  color: var(--maroon-deep);
}

.nav-links a[aria-current='page'] {
  background: var(--maroon);
  color: #fff;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--maroon);
  cursor: pointer;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded='true'] .icon-open {
  display: none;
}

.nav-toggle[aria-expanded='true'] .icon-close {
  display: block;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: fixed;
    inset: calc(var(--header-h) + 5px) 0 auto 0;
    max-height: calc(100vh - var(--header-h) - 5px);
    overflow-y: auto;
    padding: 12px 20px 24px;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(82, 20, 37, 0.4);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }

  .nav-menu.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav-links a {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    font-size: 1.05rem;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--maroon);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(112, 28, 50, 0.7);
}

.btn-primary:hover {
  background: var(--maroon-deep);
  color: #fff;
  box-shadow: 0 16px 30px -14px rgba(112, 28, 50, 0.8);
}

.btn-outline {
  background: transparent;
  border-color: var(--saffron);
  color: var(--maroon-deep);
}

.btn-outline:hover {
  background: var(--saffron-soft);
  color: var(--maroon-deep);
}

.btn-play {
  background: #1c1917;
  color: #fff;
  padding: 10px 22px 10px 18px;
  border-radius: 14px;
  box-shadow: 0 12px 26px -14px rgba(0, 0, 0, 0.7);
}

.btn-play:hover {
  background: #000;
  color: #fff;
}

.btn-play .play-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.btn-play small {
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.85;
}

.btn-play strong {
  font-size: 1.15rem;
  font-weight: 600;
}

.btn-play svg {
  width: 26px;
  height: 26px;
}

/* ---------- Shared sections ---------- */

.section {
  padding: clamp(64px, 9vw, 112px) 0;
  position: relative;
}

.section-alt {
  background: var(--ivory-deep);
}

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(36px, 5vw, 56px);
  text-align: center;
}

.section-head p {
  color: var(--text-soft);
  font-size: 1.1rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--saffron-deep);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before,
.eyebrow::after {
  content: '';
  width: 22px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.eyebrow::after {
  transform: scaleX(-1);
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 18px auto 0;
  color: var(--gold);
}

.divider::before,
.divider::after {
  content: '';
  width: min(120px, 22vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.divider::after {
  transform: scaleX(-1);
}

.divider svg {
  width: 22px;
  height: 22px;
}

.toran {
  height: 14px;
  background: var(--toran) repeat-x center top / 28px 14px;
  opacity: 0.9;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--maroon-deep);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-sample {
  background: #fff;
  border: 1px dashed var(--saffron);
  color: var(--saffron-deep);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(40px, 7vw, 88px) 0 clamp(64px, 8vw, 104px);
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 70% at 85% 30%, rgba(217, 119, 6, 0.16), transparent 70%),
    radial-gradient(50% 60% at 5% 90%, rgba(112, 28, 50, 0.1), transparent 70%),
    var(--kolam) repeat 0 0 / 64px 64px;
}

.hero-mandala {
  position: absolute;
  z-index: -1;
  right: -160px;
  top: 50%;
  width: 640px;
  height: 640px;
  transform: translateY(-50%);
  background: var(--mandala) no-repeat center / contain;
  opacity: 0.7;
  animation: spin 160s linear infinite;
}

@keyframes spin {
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}

.hero h1 span {
  color: var(--saffron-deep);
}

.hero-lead {
  max-width: 560px;
  color: var(--text-soft);
  font-size: clamp(1.08rem, 1.6vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 28px 0 22px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-points .icon {
  width: 18px;
  height: 18px;
  color: var(--success);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-visual::before {
  content: '';
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  top: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.35), rgba(217, 119, 6, 0.12) 55%, transparent 70%);
  filter: blur(6px);
}

/* Phone frame used for screenshots */
.phone {
  position: relative;
  width: min(300px, 78vw);
  aspect-ratio: 9 / 19.5;
  padding: 10px;
  border-radius: 44px;
  background: linear-gradient(160deg, #3b1a24, #1c1917 45%, #2a1118);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(212, 175, 55, 0.45);
}

.phone::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 50%;
  width: 84px;
  height: 22px;
  border-radius: 20px;
  background: #0c0a09;
  transform: translateX(-50%);
  z-index: 2;
}

.phone img,
.phone .screen-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 34px;
  object-fit: cover;
  object-position: top;
  background: var(--ivory);
}

/* App screenshots have no status bar: leave room for the notch above the app's own header. */
.phone img {
  padding-top: 30px;
}

.screen-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  color: var(--muted);
  text-align: center;
  font-size: 0.95rem;
}

.float {
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  50% {
    transform: translateY(-12px);
  }
}

/* ---------- Feature cards ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.feature {
  position: relative;
  padding: 28px 26px 26px;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}

.feature::after {
  content: '';
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 120px;
  height: 120px;
  background: var(--mandala) no-repeat center / contain;
  opacity: 0;
  transition: opacity 0.4s;
}

.feature:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}

.feature:hover::after {
  opacity: 0.6;
}

.feature h3 {
  margin-bottom: 0.4em;
}

.feature p {
  margin: 0;
  color: var(--text-soft);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--saffron-soft), #fff);
  border: 1px solid var(--gold-soft);
  color: var(--saffron-deep);
}

.feature-icon .icon {
  width: 28px;
  height: 28px;
}

/* ---------- Panchang elements ---------- */

.angas {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.anga {
  padding: 24px 18px;
  text-align: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.anga:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.anga-symbol {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, var(--saffron-soft));
  border: 1.5px solid var(--gold);
  color: var(--maroon);
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.anga h3 {
  margin-bottom: 0.2em;
  font-size: 1.2rem;
}

.anga .sanskrit {
  display: block;
  margin-bottom: 8px;
  color: var(--saffron-deep);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

.anga p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Sample daily panchang card */
.preview-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: stretch;
}

.today-card {
  position: relative;
  padding: clamp(22px, 3vw, 34px);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(255, 249, 239, 0.95)),
    var(--kolam) repeat 0 0 / 48px 48px;
  border: 1px solid var(--gold);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.today-card::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid var(--gold-soft);
  border-radius: calc(var(--radius-lg) - 8px);
  pointer-events: none;
}

.today-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 20px;
}

.today-head h3 {
  margin: 0;
}

.today-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0;
}

.today-list div {
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
}

.today-list dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.today-list dd {
  margin: 2px 0 0;
  color: var(--maroon-deep);
  font-family: var(--font-display);
  font-size: 1.12rem;
}

.today-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.sun-card {
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 3vw, 30px);
  border-radius: var(--radius-lg);
  color: #fff;
  background: linear-gradient(165deg, #f59e0b 0%, var(--saffron) 38%, var(--maroon) 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.sun-card h3 {
  color: #fff;
}

.sun-card .badge-sample {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.sun-arc {
  margin: 18px 0 8px;
}

.sun-arc path {
  stroke: rgba(255, 255, 255, 0.65);
}

.sun-times {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.sun-times div {
  display: flex;
  flex-direction: column;
}

.sun-times span {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

.sun-times strong {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 400;
}

.sun-card p {
  margin: 14px 0 0;
  font-size: 0.92rem;
  opacity: 0.92;
}

/* Festivals */
.festivals {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.festival {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border-top: 4px solid var(--saffron);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.festival:nth-child(2n) {
  border-top-color: var(--maroon);
}

.festival:nth-child(3n) {
  border-top-color: var(--gold);
}

.festival:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.festival h3 {
  margin: 0;
  font-size: 1.15rem;
}

.festival p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* Screenshots */
.shots {
  display: flex;
  gap: 26px;
  padding: 10px 20px 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}

.shot {
  flex: none;
  scroll-snap-align: center;
  margin: 0;
  text-align: center;
}

.shot .phone {
  width: 250px;
  transition: transform 0.4s var(--ease);
}

.shot:hover .phone {
  transform: translateY(-8px) rotate(-1deg);
}

.shot figcaption {
  margin-top: 16px;
  color: var(--text-soft);
  font-weight: 500;
}

/* Centre the row when it fits, without clipping its start when it does not. */
.shot:first-child {
  margin-left: auto;
}

.shot:last-child {
  margin-right: auto;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.about-art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  max-width: 420px;
  margin: 0 auto;
  width: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 38%, var(--saffron-soft) 39% 60%, transparent 61%);
}

.about-art::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--mandala) no-repeat center / contain;
  animation: spin-plain 120s linear infinite;
}

@keyframes spin-plain {
  to {
    transform: rotate(360deg);
  }
}

.about-art img {
  position: relative;
  width: 42%;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.check-list .icon {
  width: 22px;
  height: 22px;
  margin-top: 3px;
  color: var(--saffron-deep);
}

/* Call to action band */
.cta-band {
  position: relative;
  padding: clamp(36px, 5vw, 56px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(212, 175, 55, 0.35), transparent 60%),
    linear-gradient(135deg, var(--maroon-deep), var(--maroon) 55%, #8a2a3f);
  color: #fff;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.cta-band::after {
  content: '';
  position: absolute;
  right: -90px;
  bottom: -120px;
  width: 340px;
  height: 340px;
  background: var(--mandala) no-repeat center / contain;
  opacity: 0.5;
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 0.3em;
}

.cta-band p {
  margin: 0;
  opacity: 0.9;
}

.cta-band .btn-play {
  position: relative;
  z-index: 1;
  background: #fff;
  color: var(--text);
}

.cta-band .btn-play:hover {
  background: var(--ivory);
  color: var(--text);
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  position: relative;
  padding: clamp(48px, 7vw, 84px) 0 clamp(40px, 5vw, 60px);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(50% 80% at 50% 0%, rgba(217, 119, 6, 0.16), transparent 70%),
    var(--kolam) repeat 0 0 / 64px 64px;
}

.page-hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.1rem);
}

.page-hero p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--text-soft);
  font-size: 1.1rem;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.crumbs {
  margin-bottom: 14px;
  font-size: 0.9rem;
  color: var(--muted);
}

.crumbs a {
  color: var(--muted);
}

/* ---------- Legal documents ---------- */

.doc-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 22px;
}

.toc h2 {
  font-size: 1.05rem;
  margin-bottom: 12px;
  color: var(--maroon);
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
  font-size: 0.93rem;
}

.toc li {
  counter-increment: toc;
}

.toc a {
  display: flex;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  color: var(--text-soft);
  text-decoration: none;
  line-height: 1.4;
  transition: background 0.2s, color 0.2s;
}

.toc a::before {
  content: counter(toc) '.';
  color: var(--saffron-deep);
  font-weight: 600;
  min-width: 1.4em;
}

.toc a:hover,
.toc a.is-active {
  background: var(--saffron-soft);
  color: var(--maroon-deep);
}

.doc {
  padding: clamp(24px, 4vw, 48px);
}

.doc section + section {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px dashed var(--line);
}

.doc h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: clamp(1.4rem, 2.6vw, 1.75rem);
}

.doc h2 .num {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--maroon);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  transform: translateY(-3px);
}

.doc h3 {
  margin-top: 1.4em;
  font-size: 1.15rem;
  color: var(--maroon);
}

.doc ul,
.doc ol {
  padding-left: 1.3em;
}

.doc li {
  margin-bottom: 0.45em;
}

.doc li::marker {
  color: var(--saffron-deep);
}

.doc table {
  width: 100%;
  margin: 1em 0 1.4em;
  border-collapse: collapse;
  font-size: 0.97rem;
}

.doc th,
.doc td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.doc th {
  background: var(--ivory-deep);
  color: var(--maroon-deep);
  font-weight: 600;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.callout {
  display: flex;
  gap: 14px;
  margin: 1.2em 0;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--ivory-deep);
  border-left: 4px solid var(--saffron);
}

.callout .icon {
  margin-top: 3px;
  color: var(--saffron-deep);
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout-maroon {
  background: var(--maroon-soft);
  border-left-color: var(--maroon);
}

.callout-maroon .icon {
  color: var(--maroon);
}

/* Placeholder values that the site owner still has to fill in */
.placeholder {
  padding: 1px 6px;
  border-radius: 6px;
  background: #fff3cd;
  border: 1px dashed var(--saffron);
  color: #7c2d12;
  font-weight: 600;
  white-space: normal;
}

/* ---------- Contact and delete account ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.contact-card {
  padding: 26px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.contact-card h3 {
  margin-bottom: 0.3em;
}

.contact-card p {
  margin: 0;
  color: var(--text-soft);
}

.contact-card a {
  word-break: break-word;
  font-weight: 600;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq details[open] {
  border-color: var(--gold);
  box-shadow: var(--shadow-sm);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 600;
  color: var(--maroon-deep);
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--saffron-soft);
  color: var(--saffron-deep);
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 0.25s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq .answer {
  padding: 0 20px 18px;
  color: var(--text-soft);
}

.faq .answer p:last-child {
  margin-bottom: 0;
}

.form {
  padding: clamp(22px, 3vw, 32px);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.field label {
  font-weight: 600;
  color: var(--maroon-deep);
}

.field .hint {
  color: var(--muted);
  font-size: 0.88rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--saffron);
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.18);
}

.field [aria-invalid='true'] {
  border-color: #b91c1c;
}

.field .error {
  display: none;
  color: #b91c1c;
  font-size: 0.88rem;
}

.field .error.is-visible {
  display: block;
}

.form-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 500;
}

.form-status:empty {
  display: none;
}

.form-status.is-success {
  background: #dcfce7;
  color: var(--success);
}

.form-status.is-error {
  background: #fee2e2;
  color: #991b1b;
}

.steps {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 22px 22px 22px 84px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 22px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--saffron), var(--maroon));
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.steps h3 {
  margin-bottom: 0.25em;
  font-size: 1.15rem;
}

.steps p {
  margin: 0;
  color: var(--text-soft);
}

.data-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.data-col {
  padding: 24px;
}

.data-col h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.data-col ul {
  margin: 0;
  padding-left: 1.2em;
  color: var(--text-soft);
}

.data-col li {
  margin-bottom: 0.4em;
}

.data-col.deleted h3 {
  color: var(--success);
}

.data-col.kept h3 {
  color: var(--maroon);
}

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  margin-top: 0;
  padding: 64px 0 28px;
  background:
    radial-gradient(60% 100% at 100% 0%, rgba(212, 175, 55, 0.18), transparent 60%),
    linear-gradient(180deg, var(--maroon-deep), #3a0e1b);
  color: #f5e9da;
}

.site-footer::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 14px;
  background: var(--toran) repeat-x center top / 28px 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 32px;
}

.site-footer .brand {
  color: #fff;
}

.site-footer .brand-tag {
  color: var(--gold);
}

.footer-about {
  margin-top: 16px;
  color: #e7d6c3;
  font-size: 0.97rem;
  max-width: 340px;
}

.site-footer h2 {
  margin-bottom: 16px;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: #f5e9da;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--gold);
  text-decoration: underline;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  word-break: break-word;
}

.footer-contact .icon {
  width: 20px;
  height: 20px;
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(212, 175, 55, 0.25);
  color: #d6c1ab;
  font-size: 0.9rem;
}

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.no-js .reveal {
  opacity: 1;
  transform: none;
}

@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;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1060px) {
  .angas {
    grid-template-columns: repeat(3, 1fr);
  }

  .festivals {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .preview-grid,
  .split,
  .doc-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    text-align: center;
  }

  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions,
  .hero-points {
    justify-content: center;
  }

  .hero-mandala {
    right: 50%;
    top: auto;
    bottom: -320px;
    transform: translateX(50%);
    animation: none;
  }

  .grid-3,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .toc {
    position: static;
  }

  .cta-band {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }

  .grid-3,
  .grid-2,
  .contact-grid,
  .data-cols,
  .festivals {
    grid-template-columns: 1fr;
  }

  .angas {
    grid-template-columns: repeat(2, 1fr);
  }

  .anga:last-child {
    grid-column: 1 / -1;
  }

  .today-list {
    grid-template-columns: 1fr 1fr;
  }

  .brand-tag {
    display: none;
  }

  .steps li {
    padding: 74px 20px 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media print {
  .site-header,
  .site-footer,
  .toc,
  .skip-link,
  .nav-toggle {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .doc {
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
