/* Daivarka site. Brand: cream and indigo grounds, saffron and gold. */
:root {
  --cream: #f6eee0;
  --cream-2: #efe3cf;
  --paper: #fbf7ef;
  --ink: #1b1d45;
  --ink-soft: #4a4868;
  --indigo: #14163a;
  --indigo-2: #1d2052;
  --on-indigo: #f3ecdf;
  --on-indigo-soft: #b9b5d4;
  --saffron: #e2672a;
  --saffron-deep: #b8501c;
  --gold: #d6a548;
  --gold-soft: #ecd29a;
  --line: rgba(27, 29, 69, 0.14);
  --line-dark: rgba(243, 236, 223, 0.16);

  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --text: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --s1: 0.25rem; --s2: 0.5rem; --s3: 0.75rem; --s4: 1rem; --s5: 1.5rem;
  --s6: 2rem; --s7: 3rem; --s8: 4.5rem; --s9: 7rem;
  --radius: 10px;
  --wrap: 1160px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--saffron-deep); text-underline-offset: 3px; }
a:hover { color: var(--saffron); }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); padding: var(--s2) var(--s3); z-index: 10; }

/* Type */
h1, h2, h3 { font-family: var(--display); line-height: 1.02; margin: 0; letter-spacing: -0.01em; }
h1 { font-weight: 800; font-size: clamp(2.6rem, 7.2vw, 5.6rem); text-transform: uppercase; }
h2 { font-weight: 800; font-size: clamp(2rem, 4.6vw, 3.4rem); text-transform: uppercase; }
h3 { font-weight: 700; font-size: 1.35rem; line-height: 1.2; }
.kicker {
  display: block;
  font-style: italic;
  font-weight: 600;
  color: var(--saffron-deep);
  font-size: 1.1rem;
  margin-bottom: var(--s3);
}
.dark .kicker { color: var(--gold); }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 34rem; }
.dark .lede { color: var(--on-indigo-soft); }
.gold { color: var(--gold); }
.saffron { color: var(--saffron); }

/* Sticker: the tilted label from the reels */
.sticker {
  display: inline-block;
  font: 800 0.95rem/1 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--saffron);
  color: #fff;
  padding: 0.55rem 0.8rem;
  transform: rotate(-3deg);
  border-radius: 3px;
}
.sticker.navy { background: var(--ink); }

/* Header */
.site-head {
  position: sticky; top: 0; z-index: 5;
  background: rgba(246, 238, 224, 0.92);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 64px; }
.brand { display: flex; align-items: center; gap: var(--s3); color: var(--ink); text-decoration: none; font: 800 1.3rem var(--display); }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav { display: flex; align-items: center; gap: var(--s5); }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.nav a:hover { color: var(--saffron-deep); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: var(--paper); }
@media (max-width: 760px) { .nav .hide-sm { display: none; } }
@media (max-width: 480px) { .doc-page .brand-name { display: none; } .doc-page .nav { gap: var(--s4); } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: var(--s2);
  font: 700 1rem/1 var(--text);
  padding: 0.95rem 1.3rem;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #2a2d66; color: var(--paper); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.dark .btn-primary { background: var(--gold); color: var(--indigo); }
.dark .btn-primary:hover { background: var(--gold-soft); color: var(--indigo); }
.btn-sm { padding: 0.6rem 1rem; font-size: 0.95rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; margin-top: var(--s6); }
.cta-note { font-size: 0.95rem; color: var(--ink-soft); margin-top: var(--s3); }

/* Sections */
section { padding-block: var(--s9); }
.dark { background: var(--indigo); color: var(--on-indigo); }
.dark a { color: var(--gold-soft); }
.section-head { max-width: 46rem; margin-bottom: var(--s7); }
.section-head .lede { margin-top: var(--s4); }

/* Hero */
.hero { padding-top: var(--s8); padding-bottom: var(--s8); overflow: hidden;
  background: radial-gradient(120% 90% at 85% 20%, #f9e3cc 0%, var(--cream) 55%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--s7); align-items: center; }
.hero h1 .line2 { display: block; color: var(--saffron); font-style: italic; text-transform: none; font-weight: 700; font-size: 0.62em; margin-top: var(--s3); }
.hero .lede { margin-top: var(--s5); }
.hero .say { margin: var(--s4) 0 0; font-size: 1rem; color: var(--ink-soft); }
.hero .say em { font-style: normal; font-weight: 700; color: var(--ink); }
.hero-art { position: relative; height: 620px; }
.hero-art .phone { position: absolute; right: 0; top: 0; width: 300px; }
.hero-art .person { position: absolute; left: -110px; bottom: -8px; height: 540px; width: auto; filter: drop-shadow(0 10px 18px rgba(27, 29, 69, 0.18)); }
.hero-art .sticker { position: absolute; right: 190px; top: 440px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { height: 520px; max-width: 440px; margin-inline: auto; width: 100%; }
  .hero-art .phone { width: 250px; }
  .hero-art .person { height: 340px; left: -50px; }
  .hero-art .sticker { right: 150px; top: 370px; }
}

/* Phone frame around real screenshots */
.phone {
  border-radius: 34px;
  padding: 10px;
  background: #121330;
  box-shadow: 0 24px 50px -18px rgba(20, 22, 58, 0.45);
}
.phone img { border-radius: 25px; width: 100%; height: auto; }

/* Live Panchang */
.live-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s5); margin-bottom: var(--s6); }
.city-pick { display: flex; flex-direction: column; gap: var(--s2); }
.city-pick label { font-weight: 600; color: var(--on-indigo-soft); font-size: 0.95rem; }
.city-pick select {
  font: 600 1.05rem var(--text);
  color: var(--on-indigo);
  background: var(--indigo-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 0.7rem 2.4rem 0.7rem 0.9rem;
  min-width: 15rem;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 12px) 55%;
  background-size: 6px 6px; background-repeat: no-repeat;
}
.today-date { font: 700 1.2rem var(--display); color: var(--gold-soft); margin-top: var(--s2); }
.live-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: 14px; overflow: hidden; }
.cell { background: var(--indigo); padding: var(--s5); grid-column: span 3; min-height: 8.5rem; }
.cell.wide { grid-column: span 6; }
.cell .label { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-indigo-soft); font-weight: 700; }
.cell .value { font: 700 1.5rem/1.15 var(--display); margin-top: var(--s2); color: var(--on-indigo); }
.cell .sub { margin-top: var(--s2); color: var(--on-indigo-soft); font-size: 0.95rem; }
.cell.hora .value { font-size: 2.1rem; }
.cell.hora .glyph { color: var(--gold); margin-right: 0.4rem; font-family: "Segoe UI Symbol", "Noto Sans Symbols", "DejaVu Sans", sans-serif; }
.cell.caution .value { color: #f2a679; }
.cell.good .value { color: #a9d79a; }
.bar { height: 6px; border-radius: 3px; background: rgba(243, 236, 223, 0.14); margin-top: var(--s3); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--gold); width: 0; }
.live-foot { margin-top: var(--s5); color: var(--on-indigo-soft); font-size: 0.95rem; }
.loading { color: var(--on-indigo-soft); }
@media (max-width: 900px) {
  .cell, .cell.wide { grid-column: span 6; }
}
@media (max-width: 520px) {
  .cell, .cell.wide { grid-column: span 12; min-height: 0; }
}

/* Sunrise across India */
.sun-chart { position: relative; margin-top: var(--s6); }
.sun-row { display: grid; grid-template-columns: 9rem 1fr 4.5rem; align-items: center; gap: var(--s4); padding-block: 0.55rem; border-bottom: 1px solid var(--line); }
.sun-row .name { font-weight: 700; }
.sun-row .time { font-variant-numeric: tabular-nums; text-align: right; font-weight: 700; }
.sun-row .track { position: relative; height: 2px; background: var(--line); }
.sun-row .dot { position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--saffron); transform: translate(-50%, -50%); box-shadow: 0 0 0 4px rgba(226, 103, 42, 0.18); }
.sun-big { font: 800 clamp(3rem, 9vw, 6rem)/1 var(--display); color: var(--saffron); }
.sun-caption { margin-top: var(--s3); font-size: 1.15rem; max-width: 36rem; }
@media (max-width: 520px) { .sun-row { grid-template-columns: 6.8rem 1fr 4rem; gap: var(--s3); } }

/* Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s8); align-items: center; padding-block: var(--s7); border-top: 1px solid var(--line); }
.feature:first-of-type { border-top: 0; }
.feature .phone { width: min(320px, 100%); margin-inline: auto; }
.feature.flip .shot { order: 2; }
.feature p { color: var(--ink-soft); font-size: 1.1rem; }
.feature h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-block: var(--s3) var(--s4); }
.feature .tag { font: 800 0.8rem var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--saffron-deep); }
.feature ul { padding-left: 1.1rem; color: var(--ink-soft); }
.feature li { margin-bottom: var(--s2); }
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; gap: var(--s6); }
  .feature.flip .shot { order: 0; }
}

/* Screen strip */
.strip { display: flex; gap: var(--s5); overflow-x: auto; padding-bottom: var(--s4); scroll-snap-type: x mandatory; }
.strip figure { margin: 0; flex: 0 0 230px; scroll-snap-align: start; }
.strip figcaption { margin-top: var(--s3); font-weight: 600; text-align: center; }

/* Private */
.points { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s6) var(--s7); }
.point h3 { color: var(--gold-soft); margin-bottom: var(--s2); }
.point p { margin: 0; color: var(--on-indigo-soft); }
@media (max-width: 700px) { .points { grid-template-columns: 1fr; } }

/* Pricing */
.plans { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--s5); align-items: stretch; }
.plan { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: var(--s6); }
.plan.paid { background: var(--indigo); color: var(--on-indigo); border-color: var(--indigo); }
.plan .price { font: 800 3rem/1 var(--display); margin-block: var(--s3); }
.plan .price small { font: 600 1rem var(--text); color: var(--ink-soft); }
.plan.paid .price small { color: var(--on-indigo-soft); }
.plan ul { padding-left: 1.1rem; margin: var(--s4) 0 0; }
.plan li { margin-bottom: var(--s2); }
.plan.paid li::marker { color: var(--gold); }
.plan .note { margin-top: var(--s5); font-size: 0.95rem; color: var(--ink-soft); }
.plan.paid .note { color: var(--on-indigo-soft); }
@media (max-width: 820px) { .plans { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line); padding-block: var(--s4); }
.faq summary { cursor: pointer; font: 700 1.2rem var(--display); list-style: none; display: flex; justify-content: space-between; gap: var(--s4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--saffron); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-soft); margin: var(--s3) 0 0; }

/* Closing band */
.closing { text-align: center; }
.closing h2 { max-width: 16ch; margin-inline: auto; }
.closing .cta-row { justify-content: center; }
.closing img { width: 88px; height: 88px; border-radius: 20px; margin: 0 auto var(--s5); }

/* Footer */
.site-foot { background: var(--indigo); color: var(--on-indigo-soft); padding-block: var(--s7); font-size: 0.95rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s5); }
.site-foot a { color: var(--on-indigo); text-decoration: none; margin-right: var(--s5); }
.site-foot a:hover { color: var(--gold-soft); }

/* Legal and support pages */
.doc { padding-block: var(--s8); }
.doc .wrap { max-width: 46rem; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.doc h2 { font-size: 1.5rem; text-transform: none; margin-top: var(--s7); margin-bottom: var(--s3); }
.doc p, .doc li { color: #34324f; }
.doc .updated { color: var(--ink-soft); margin-top: var(--s3); }

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .reveal.in { opacity: 1; transform: none; }
  .btn { transition: background-color 0.15s ease, color 0.15s ease; }
}

/* Feedback form */
.fb { margin-top: var(--s6); }
.fb fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s4) var(--s5); margin: 0 0 var(--s5); background: var(--paper); }
.fb legend { font: 700 1.1rem var(--display); padding: 0 var(--s2); }
.fb fieldset label { display: flex; align-items: center; gap: var(--s3); padding: var(--s2) 0; cursor: pointer; }
.fb input[type=radio], .fb input[type=checkbox] { width: 1.15rem; height: 1.15rem; accent-color: var(--saffron-deep); }
.fb .field { display: flex; flex-direction: column; gap: var(--s2); font-weight: 600; margin-bottom: var(--s5); cursor: auto; }
.fb input[type=text], .fb input[type=email], .fb textarea { font: 400 1rem var(--text); color: var(--ink); background: #fff; border: 1px solid rgba(27, 29, 69, 0.28); border-radius: 8px; padding: 0.7rem 0.8rem; width: 100%; }
.fb input:focus-visible, .fb textarea:focus-visible { outline: 3px solid var(--saffron); outline-offset: 1px; }
.fb .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fb-note { font-size: 0.95rem; color: var(--ink-soft); }
.fb-status { margin-top: var(--s4); font-weight: 600; min-height: 1.5em; }
.fb button[disabled] { opacity: 0.6; cursor: wait; }
