
* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

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

a {
  color: var(--accent-strong);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.shell {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 20px;
}

.shell--wide {
  max-width: var(--wide-width);
}

/* ---------------------------------------------------------------------
   Site header
--------------------------------------------------------------------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  max-width: var(--wide-width);
  margin: 0 auto;
}

.wordmark {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--ink);
  text-decoration: none;
}

.header-links {
  display: flex;
  gap: 20px;
  font-size: 14px;
}

.header-links a {
  color: var(--ink-muted);
  text-decoration: none;
}

.header-links a:hover {
  color: var(--ink);
}

/* ---------------------------------------------------------------------
   Kundali diamond motif -- the one recurring graphic device on this
   page. It is the plain outer-diamond frame every North Indian birth
   chart is drawn on (public, generic geometry, not a rendered
   methodology or a real person's chart), used as a quiet section
   divider rather than decoration with no relation to the subject.
--------------------------------------------------------------------- */

.diamond-divider {
  display: flex;
  justify-content: center;
  margin: 56px 0;
  opacity: 0.5;
}

.diamond-divider svg {
  width: 56px;
  height: 56px;
}

.diamond-divider path,
.diamond-divider line {
  stroke: var(--ink-muted);
  stroke-width: 1;
  fill: none;
}

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

.hero {
  padding: 48px 0 24px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(32px, 6vw, 52px);
  max-width: 14ch;
  margin: 0 auto 16px;
}

.hero .lede {
  font-size: 18px;
  color: var(--ink-muted);
  max-width: 46ch;
  margin: 0 auto 32px;
}

.hero-media {
  position: relative;
  max-width: var(--wide-width);
  margin: 0 auto 8px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  border: 1px dashed var(--border-strong);
  background: var(--bg-raised);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--ink-muted);
}

.hero-media__badge {
  font-size: 13px;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
}

.hero-media__note {
  font-size: 14px;
  max-width: 36ch;
  text-align: center;
  margin: 0;
}

.hero-poster-slot {
  /* Poster image placeholder: swap the background-image on this element
     for a real still once the founder supplies one. Left empty so no
     face or image is fabricated. */
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
}

.cta-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

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

.btn {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  padding: 13px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-strong);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--bg-raised);
}

.btn-text {
  background: none;
  border: none;
  color: var(--ink-muted);
  font-weight: 500;
  padding: 8px 4px;
  text-decoration: underline;
}

.btn-block {
  width: 100%;
}

/* ---------------------------------------------------------------------
   Sections
--------------------------------------------------------------------- */

section {
  padding: 8px 0;
}

.section-title {
  font-size: 26px;
}

.contents-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.contents-list li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}

.contents-list li:last-child {
  border-bottom: none;
}

.contents-list .num {
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
  min-width: 1.6em;
}

.steps-demo {
  display: grid;
  gap: 20px;
}

.step-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
}

.step-card .step-index {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 18px;
}

.screenshot-slot {
  margin-top: 10px;
  aspect-ratio: 16 / 10;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  font-size: 13px;
  text-align: center;
  padding: 12px;
}

/* ---------------------------------------------------------------------
   Price block
--------------------------------------------------------------------- */

.price-block {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--bg-raised);
}

.price-block__country {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.price-block__country label {
  font-size: 14px;
  color: var(--ink-muted);
}

.price-figure {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}

.price-figure .amount {
  font-family: var(--font-serif);
  font-size: 44px;
}

.price-figure .currency {
  font-size: 16px;
  color: var(--ink-muted);
}

.price-lines {
  font-size: 14px;
  color: var(--ink-muted);
  margin-bottom: 16px;
}

.price-lines div {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
}

.price-notices {
  font-size: 13px;
  color: var(--ink-muted);
  border-top: 1px solid var(--border);
  padding-top: 14px;
  display: grid;
  gap: 8px;
}

.price-state {
  font-size: 14px;
  color: var(--ink-muted);
}

/* Founder ruling 2026-09-25: the two-card India/International switch is
   replaced by a single dropdown, built by main.js's renderCurrencySwitch.
   The generic select/label styling (under Forms, below) covers it; this
   is just the field's own spacing, matching the old switch's
   margin-bottom: 20px. */
.price-currency-field {
  margin-bottom: 20px;
}

.price-currency-label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--ink);
}

/* ---------------------------------------------------------------------
   Forms
--------------------------------------------------------------------- */

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--ink);
}

.field .hint {
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 6px;
}

.field .error {
  font-size: 13px;
  color: var(--danger);
  margin-top: 6px;
  display: none;
}

.field.has-error .error {
  display: block;
}

.field.has-error input,
.field.has-error select {
  border-color: var(--danger);
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="tel"],
select {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  min-height: 44px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.radio-card-group {
  display: grid;
  gap: 10px;
}

.radio-card {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 14px;
  cursor: pointer;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.radio-card input {
  margin-top: 3px;
}

.radio-card:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-ink);
}

.radio-card .radio-card__title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 2px;
}

.radio-card .radio-card__note {
  font-size: 13px;
  color: var(--ink-muted);
}

.checkbox-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
}

.checkbox-row input {
  margin-top: 3px;
}

/* ---------------------------------------------------------------------
   Journey overlay (the purchase wizard)
--------------------------------------------------------------------- */

.journey-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 100;
  overflow-y: auto;
}

.journey-overlay[hidden] {
  display: none;
}

.journey-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 2;
}

.journey-topbar__title {
  font-size: 14px;
  color: var(--ink-muted);
}

.journey-body {
  max-width: 520px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.journey-body h2 {
  font-size: 24px;
}

.journey-lede {
  color: var(--ink-muted);
  font-size: 15px;
  margin-bottom: 28px;
}

.journey-actions {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.journey-actions .btn-text {
  align-self: center;
}

.code-input {
  letter-spacing: 0.3em;
  font-size: 22px;
  text-align: center;
  font-family: var(--font-sans);
}

.review-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.review-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.review-list li:last-child {
  border-bottom: none;
}

.review-list dt {
  color: var(--ink-muted);
}

.review-list dd {
  margin: 0;
  text-align: right;
  font-weight: 500;
}

.notice-banner {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 14px;
  margin-bottom: 24px;
}

.notice-banner--danger {
  border-color: var(--danger);
  background: var(--danger-ink);
  color: var(--danger);
}

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

.candidate-list button {
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  cursor: pointer;
}

.candidate-list button:hover {
  background: var(--bg-raised);
}

.state-panel {
  text-align: center;
  padding: 32px 0;
}

.state-panel__icon {
  font-size: 32px;
  margin-bottom: 12px;
}

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

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 20px 48px;
  text-align: center;
  color: var(--ink-muted);
  font-size: 13px;
}

.site-footer a {
  color: var(--ink-muted);
}

/* ---------------------------------------------------------------------
   Mobile (375px floor)
--------------------------------------------------------------------- */

@media (max-width: 480px) {
  .field-row {
    grid-template-columns: 1fr;
  }

  .price-block {
    padding: 20px;
  }

  .journey-body {
    padding: 24px 16px 48px;
  }

  .header-links {
    display: none;
  }
}
