/* =========================================================================
   HemJyotish — the landing page

   The workbench's own Night Sky Indigo, with the gold of the mark's centre
   as the one warm note: the opening is the sky, deep indigo with a scatter
   of stars, and the gold is kept for the button that takes you in. System
   fonts only, as in the app — the CSP serves nothing from outside.
   ========================================================================= */
:root {
  --bg:        #f4f5fa;
  --panel:     #ffffff;
  --sunken:    #eaecf4;
  --ink:       #1c1f33;
  --ink-soft:  #4a4f6a;
  --ink-faint: #636884;
  --line:      #d5d8e6;
  --accent:    #3f4aa8;
  --accent-ink:#2f3886;
  --accent-soft:#e3e5f7;
  --gold:      #d9a05f;
  --gold-ink:  #1d1409;
  --sky-1:     #12153a;
  --sky-2:     #23296b;
  --sky-ink:   #eef0ff;
  --sky-soft:  #b9bfe8;
  --shadow:    0 1px 2px rgba(28,31,51,.08), 0 12px 32px rgba(28,31,51,.12);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --r: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #13141d; --panel: #1b1d29; --sunken: #0f1018;
    --ink: #e7e8f1; --ink-soft: #a9acc2; --ink-faint: #8e92ad; --line: #303349;
    --accent: #9ba6f5; --accent-ink: #bcc4ff; --accent-soft: #262a4a;
    --sky-1: #0b0d24; --sky-2: #1a1f55;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px rgba(0,0,0,.45);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { text-wrap: balance; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--panel); color: var(--ink); padding: 8px 14px; border-radius: 8px;
}
.skip:focus { top: 12px; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  min-height: 46px;
}
.btn:hover { transform: translateY(-1px); }
.btn .g { width: 18px; height: 18px; }
.btn-gold { background: var(--gold); color: var(--gold-ink); box-shadow: 0 6px 20px rgba(217,160,95,.35); }
.btn-gold:hover { box-shadow: 0 10px 28px rgba(217,160,95,.45); }
.btn-ghost { color: var(--sky-ink); border-color: rgba(238,240,255,.35); background: rgba(255,255,255,.06); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-signin { background: var(--accent); color: #fff; padding: 10px 18px; min-height: 40px; font-size: 14px; }
@media (prefers-color-scheme: dark) { .btn-signin { color: #12142a; } }

/* ---------------- top bar ---------------- */
.top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 24px;
  padding: 12px max(16px, calc((100% - 1200px) / 2));
  padding-top: calc(12px + env(safe-area-inset-top, 0px));
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-mark { width: 30px; height: 30px; }
.brand-hi { font: 600 20px/1 var(--sans); color: var(--accent-ink); }
.brand-en { font: 600 17px/1 var(--serif); letter-spacing: .02em; }
.top-nav { display: flex; gap: 22px; }
.top-nav a { color: var(--ink-soft); text-decoration: none; font-size: 15px; }
.top-nav a:hover { color: var(--ink); }

/* ---------------- the opening ---------------- */
.hero {
  position: relative; overflow: hidden; color: var(--sky-ink);
  background: radial-gradient(120% 90% at 80% 0%, var(--sky-2) 0%, var(--sky-1) 60%);
}
/* A scatter of stars, drawn with gradients so nothing is downloaded. */
.hero-sky {
  position: absolute; inset: 0; pointer-events: none; opacity: .8;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 27% 62%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 41% 30%, #f6dcb2 50%, transparent 51%),
    radial-gradient(1px 1px at 55% 80%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 12%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 74% 44%, #f6dcb2 50%, transparent 51%),
    radial-gradient(1px 1px at 86% 70%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 93% 22%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 84%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 35% 92%, #fff 50%, transparent 51%);
}
.hero-inner {
  position: relative; max-width: 1200px; margin: 0 auto;
  padding: 72px 16px 80px;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center;
}
/* The name and what its two words mean: हेम, gold, and ज्योतिष, the
   science of the lights. Each pair stays together when the line wraps. */
.eyebrow {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;
  margin: 0 0 14px; color: var(--sky-soft); font-size: 15px; letter-spacing: .01em;
}
.eyebrow .word { white-space: nowrap; }
.eyebrow [lang="hi"] { color: var(--gold); font-size: 17px; }
.eyebrow b { color: var(--gold); font-weight: 600; }
.eyebrow .dot { color: var(--gold); opacity: .7; }
h1 { font: 600 clamp(34px, 4.6vw, 54px)/1.08 var(--serif); margin: 0 0 18px; letter-spacing: -.01em; }
.lede { font-size: 18px; color: var(--sky-soft); margin: 0 0 28px; max-width: 34em; }
.lede strong { color: var(--sky-ink); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin: 18px 0 0; font-size: 14px; color: var(--sky-soft); opacity: .85; }
.hero-shot { margin: 0; }
/* The frame sits flat: a perspective tilt skewed the box and read as a defect. */
.hero-shot figcaption { margin-top: 14px; font-size: 13px; color: var(--sky-soft); text-align: center; }

/* ---------------- a browser frame round a screenshot ---------------- */
.frame {
  background: var(--panel); border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.hero .frame { border-color: rgba(255,255,255,.14); box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.frame-bar {
  display: flex; align-items: center; gap: 7px; padding: 10px 14px;
  background: var(--sunken); border-bottom: 1px solid var(--line);
  font-size: 12px; color: var(--ink-faint);
}
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.frame-bar span { margin-left: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------------- the theme gallery in the opening frame ---------------- */
/* The box takes the screenshots' own shape (1500x816) so nothing is cropped. */
.theme-gallery { position: relative; aspect-ratio: 1500 / 816; background: var(--sunken); }
.theme-shot {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top left;
  opacity: 0; transition: opacity .6s ease;
}
.theme-shot.is-on { opacity: 1; }
.theme-dots { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin-top: 14px; }
.theme-dot {
  font: 500 12.5px/1 var(--sans); padding: 5px 13px; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .06); color: var(--sky-soft);
  border: 1px solid rgba(255, 255, 255, .16); transition: background .15s, color .15s, border-color .15s;
}
.theme-dot:hover { color: #fff; border-color: rgba(255, 255, 255, .34); }
.theme-dot.is-on { background: var(--gold); color: var(--gold-ink); border-color: transparent; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .theme-shot { transition: none; } }

/* ---------------- the strip of figures ---------------- */
.strip { border-bottom: 1px solid var(--line); background: var(--panel); }
.strip ul {
  list-style: none; margin: 0 auto; max-width: 1200px; padding: 22px 16px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
}
.strip li { display: flex; align-items: baseline; gap: 10px; justify-content: center; }
.strip b { font: 600 30px/1 var(--serif); color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.strip span { color: var(--ink-soft); font-size: 14px; }

/* ---------------- section heads ---------------- */
section { scroll-margin-top: 70px; }
.sec-head { max-width: 1200px; margin: 0 auto 32px; padding: 0 16px; }
.sec-head h2 { font: 600 clamp(28px, 3.4vw, 38px)/1.15 var(--serif); margin: 0 0 8px; }
.sec-head p { margin: 0; color: var(--ink-soft); max-width: 46em; font-size: 17px; }

/* ---------------- the demo player ---------------- */
.demos { padding: 84px 0 72px; }
.player {
  max-width: 1200px; margin: 0 auto; padding: 0 16px;
  display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 28px; align-items: start;
}
.player-list { display: flex; flex-direction: column; gap: 2px; }
.demo-tab {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 2px 12px; align-items: center;
  text-align: left; font: inherit; color: var(--ink); cursor: pointer;
  background: transparent; border: 1px solid transparent; border-radius: 12px; padding: 7px 12px 9px;
  transition: background .15s, border-color .15s;
}
.demo-tab:hover { background: var(--panel); border-color: var(--line); }
.demo-tab .ic {
  grid-row: span 2; width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink);
}
.demo-tab .ic svg { width: 20px; height: 20px; }
.demo-tab .t { font-weight: 600; font-size: 15px; }
.demo-tab .s { font-size: 13px; color: var(--ink-faint); line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-tab[aria-selected="true"] { background: var(--panel); border-color: var(--line); box-shadow: var(--shadow); }
.demo-tab[aria-selected="true"] .ic { background: var(--accent); color: #fff; }
@media (prefers-color-scheme: dark) { .demo-tab[aria-selected="true"] .ic { color: #12142a; } }
/* how far through this feature's frames the player has got */
.demo-tab .bar {
  position: absolute; left: 12px; right: 12px; bottom: 5px; height: 2px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; opacity: 0;
}
.demo-tab[aria-selected="true"] .bar { opacity: .9; }

/* The list of features is taller than the player, so the player stays in
   view while the list is scrolled past it. */
.player-stage { min-width: 0; position: sticky; top: 92px; }
/* The frame takes the shape of the pictures (welcome.js sets it from the
   first one that loads; this is the shape tools/make-landing-shots.js
   writes). If the two differed, the picture would be cropped to fit and the
   ring, placed as a share of the picture, would land beside its target. */
.screen { position: relative; aspect-ratio: 1600 / 850; overflow: hidden; background: var(--sunken); }
/* The pictures and the ring move together, so a slow push in towards the
   thing being described keeps the ring on it. */
.zoom { position: absolute; inset: 0; transform-origin: 0 0; transition: transform 4.2s ease-out; }
.zoom.is-reset { transition: none; }
.shot {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill;
  opacity: 0; transition: opacity .5s ease;
}
.shot.is-on { opacity: 1; }
/* The highlight: a ring round the thing the caption is about, the rest of
   the screen dimmed a little so the eye goes to it. */
.mark {
  position: absolute; border-radius: 10px; pointer-events: none;
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 9999px rgba(18,21,58,.28), 0 0 0 6px rgba(217,160,95,.25);
  opacity: 0; transition: opacity .35s ease, left .5s ease, top .5s ease, width .5s ease, height .5s ease;
}
.mark.is-on { opacity: 1; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 9999px rgba(18,21,58,.28), 0 0 0 6px rgba(217,160,95,.25); }
  50% { box-shadow: 0 0 0 9999px rgba(18,21,58,.28), 0 0 0 11px rgba(217,160,95,.12); }
}
/* On a phone: the workbench's phone layout, in a phone-shaped frame. */
.player.is-phone .player-stage > .frame {
  max-width: 320px; margin: 0 auto; border-radius: 30px; border: 8px solid var(--ink);
  box-shadow: var(--shadow);
}
.player.is-phone .frame-bar { display: none; }
.player.is-phone .screen { aspect-ratio: 412 / 780; border-radius: 22px; }
.player-foot { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.caption { margin: 0; flex: 1 1 auto; min-width: 0; font-size: 16px; color: var(--ink); min-height: 3.2em; }
.caption b { color: var(--accent-ink); }
.controls { display: flex; gap: 6px; flex: 0 0 auto; }
.ctl {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--panel); color: var(--ink); border: 1px solid var(--line);
}
.ctl:hover { border-color: var(--accent); color: var(--accent-ink); }
.ctl svg { width: 20px; height: 20px; }
.ctl .i-play { display: none; }
.player.paused .ctl .i-play { display: block; }
.player.paused .ctl .i-pause { display: none; }
.steps { display: flex; gap: 6px; margin-top: 12px; }
.steps i { flex: 1 1 0; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; position: relative; }
.steps i.done { background: var(--accent); }
.steps i b { position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; }

/* ---------------- feature cards ---------------- */
.features, .privacy, .how { padding: 72px 0; }
.features { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid {
  max-width: 1200px; margin: 0 auto; padding: 0 16px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
.feat { padding: 22px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg); }
.features .feat { background: var(--bg); }
.privacy .feat { background: var(--panel); }
.feat h3 { margin: 0 0 6px; font: 600 19px/1.25 var(--serif); }
.feat p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.feat-accent { background: var(--accent-soft) !important; border-color: transparent; }
.feat-accent h3 { color: var(--accent-ink); }
/* Uttara closes the features on a row of its own, the width of the grid. */
.features .feat-accent { grid-column: 1 / -1; }

/* ---------------- how ---------------- */
.how-steps {
  list-style: none; max-width: 1200px; margin: 0 auto; padding: 0 16px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px;
}
.how-steps .n {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: #fff; font: 600 18px/1 var(--serif); margin-bottom: 14px;
}
@media (prefers-color-scheme: dark) { .how-steps .n { color: #12142a; } }
.how-steps h3 { margin: 0 0 6px; font: 600 20px/1.25 var(--serif); }
.how-steps p { margin: 0; color: var(--ink-soft); }

/* ---------------- the door ---------------- */
.closing { padding: 0 16px 80px; }
.closing-inner {
  max-width: 1200px; margin: 0 auto; text-align: center; color: var(--sky-ink);
  padding: 56px 24px; border-radius: 22px;
  background: radial-gradient(120% 140% at 50% 0%, var(--sky-2) 0%, var(--sky-1) 70%);
}
.closing h2 { font: 600 clamp(28px, 3.4vw, 38px)/1.15 var(--serif); margin: 0 0 10px; }
.closing p { margin: 0 auto 26px; max-width: 36em; color: var(--sky-soft); }
.closing .closing-help { margin: 24px auto 0; font-size: 15px; }
/* The support address on the dark sky: gold, so it reads as a link there. */
.hero .mail, .closing .mail { color: var(--gold); text-underline-offset: 3px; }
.mail { overflow-wrap: anywhere; }

/* ---------------- foot ---------------- */
.foot {
  display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; justify-content: center;
  padding: 24px 16px calc(24px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line); color: var(--ink-faint); font-size: 14px;
}
.foot-brand { color: var(--accent-ink); font-weight: 600; }

/* ---------------- narrower screens ---------------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 48px 16px 56px; }
  .player { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .player-stage { position: static; }
  /* the features become a row of chips that scrolls sideways */
  .player-list {
    flex-direction: row; overflow-x: auto; gap: 8px; padding-bottom: 6px;
    scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .player-list::-webkit-scrollbar { display: none; }
  .demo-tab { flex: 0 0 auto; grid-template-columns: 28px auto; padding: 8px 14px 10px 8px; scroll-snap-align: start; }
  .demo-tab .ic { width: 28px; height: 28px; grid-row: auto; border-radius: 8px; }
  .demo-tab .ic svg { width: 16px; height: 16px; }
  .demo-tab .s { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how-steps { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}
@media (max-width: 640px) {
  .top { gap: 12px; }
  .top-nav { display: none; }
  .brand-en { display: none; }
  .strip ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip li { flex-direction: column; align-items: center; gap: 4px; text-align: center; }
  .grid, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .player-foot { flex-direction: column; align-items: stretch; }
  .controls { justify-content: center; }
  .lede { font-size: 17px; }
  .eyebrow .dot { display: none; } /* the pair wraps onto two lines here */
  .demos, .features, .privacy, .how { padding: 56px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .shot { transition: opacity .2s; }
  .zoom { transition: none; }
  .mark.is-on { animation: none; }
  .btn, .btn:hover { transition: none; transform: none; }
}

/* ---------------- why it helps a prediction ---------------- */
.why, .views, .practice { padding: 72px 0; }
.why { background: var(--panel); border-bottom: 1px solid var(--line); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.why-card { background: var(--bg); border-top: 3px solid var(--gold); }
.why-card h3 { color: var(--accent-ink); }
.strip ul { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* ---------------- three views ---------------- */
.views { border-top: 1px solid var(--line); }
.view-card { background: var(--panel); }
.view-tag {
  display: inline-block; margin-bottom: 10px; padding: 3px 10px; border-radius: 999px;
  font: 600 11.5px/1.4 var(--sans); letter-spacing: .05em; text-transform: uppercase;
  background: var(--accent-soft); color: var(--accent-ink);
}

/* ---------------- the practice ---------------- */
.practice { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.practice .feat { background: var(--bg); }
.practice em { font-style: italic; color: var(--accent-ink); }

/* four steps, not three */
.how-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------------- plans ---------------- */
.plans { padding: 72px 0 64px; background: var(--bg); }
.plan-grid {
  max-width: 1200px; margin: 0 auto; padding: 0 16px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch;
}
.plan {
  position: relative; display: flex; flex-direction: column;
  padding: 26px 24px 24px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel);
}
.plan h3 { margin: 0 0 4px; font: 600 24px/1.2 var(--serif); }
.plan-for { margin: 0 0 18px; color: var(--ink-faint); font-size: 14px; }
.plan-price { margin: 0; display: flex; align-items: baseline; gap: 6px; }
.plan-price b { font: 600 38px/1 var(--serif); color: var(--accent-ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.plan-price span { color: var(--ink-soft); font-size: 15px; }
.plan-year { margin: 6px 0 18px; color: var(--ink-faint); font-size: 14px; }
.plan-list { list-style: none; margin: 0 0 22px; padding: 18px 0 0; border-top: 1px solid var(--line); flex: 1 1 auto; }
.plan-list li {
  position: relative; padding-left: 24px; margin-bottom: 9px; color: var(--ink-soft); font-size: 15px; line-height: 1.45;
}
.plan-list li::before {
  content: ""; position: absolute; left: 2px; top: .55em; width: 11px; height: 6px;
  border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg);
}
.plan-list b { color: var(--ink); font-weight: 600; }
.plan .btn { width: 100%; }
.btn-plan { background: var(--accent-soft); color: var(--accent-ink); }
.btn-plan:hover { background: var(--accent); color: #fff; }
@media (prefers-color-scheme: dark) { .btn-plan:hover { color: #12142a; } }
.plan-featured { border-color: var(--gold); box-shadow: var(--shadow); }
.plan-badge {
  position: absolute; top: -13px; left: 24px; padding: 4px 12px; border-radius: 999px;
  background: var(--gold); color: var(--gold-ink); font: 600 11.5px/1.4 var(--sans);
  letter-spacing: .05em; text-transform: uppercase;
}
.plan-note { max-width: 1200px; margin: 22px auto 0; padding: 0 16px; color: var(--ink-faint); font-size: 14px; }

@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plan-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .plan-featured { order: -1; }
}
@media (max-width: 640px) {
  .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .how-steps { grid-template-columns: minmax(0, 1fr); }
  .strip ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why, .views, .practice, .plans { padding: 56px 0; }
  .plan-price b { font-size: 34px; }
}

/* A section that is built but not yet open to readers. */
.soon {
  display: inline-block; vertical-align: 3px; margin-left: 6px;
  padding: 2px 9px; border-radius: 999px; font: 600 11px/1.4 var(--sans);
  letter-spacing: .04em; text-transform: uppercase;
  background: var(--accent-soft); color: var(--accent-ink);
}



/* ---------------- the panchang by email ---------------- */
.pmail { padding: 56px 0 72px; }
.pmail-wrap {
  max-width: 1200px; margin: 0 auto; padding: 0 16px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 40px; align-items: start;
}
.pmail-form {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 24px;
  box-shadow: var(--shadow); display: grid; gap: 14px;
}
.pf { display: grid; gap: 6px; position: relative; }
.pf > span { font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.pf input, .pf select {
  font: inherit; font-size: 15px; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; width: 100%; box-sizing: border-box;
}
.pf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pm-suggest {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 5; margin-top: 4px; max-height: 260px; overflow-y: auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow);
}
.pm-suggest button {
  display: block; width: 100%; text-align: left; font: inherit; font-size: 14px; color: var(--ink);
  background: transparent; border: 0; padding: 9px 12px; cursor: pointer;
}
.pm-suggest button:hover, .pm-suggest button:focus { background: var(--accent-soft); }
.pm-suggest small { color: var(--ink-faint); margin-left: 6px; }
.pmail-form .btn { justify-self: start; }
.pm-msg { margin: 0; min-height: 1.4em; font-size: 15px; }
.pm-msg.good { color: #2f7a4f; }
.pm-msg.bad { color: #b23b2e; }
.pm-fine { margin: 0; font-size: 13px; color: var(--ink-faint); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pmail-shot { margin: 0; }
.pmail-shot img {
  display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.pmail-shot figcaption { margin-top: 10px; font-size: 13px; color: var(--ink-faint); text-align: center; }
@media (max-width: 860px) {
  .pmail-wrap { grid-template-columns: minmax(0, 1fr); }
  .pmail-shot { max-width: 420px; margin: 0 auto; }
}
@media (max-width: 520px) {
  .pf-row { grid-template-columns: 1fr; }
}
