/*
 * Nasab landing page — layout & components.
 * Consumes css/tokens.css custom properties exclusively; no new hardcoded
 * colors/fonts/spacing here. Archival/heritage direction: warm, editorial,
 * generous whitespace, flat buttons, subtle shadows, slow transitions.
 * No bright gradients, no glassmorphism, no stock "team" imagery.
 */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-secondary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

h1,
h2,
h3 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  font-weight: 600;
  margin: 0;
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

h3 {
  font-size: 1.25rem;
}

em,
.accent-italic {
  font-family: var(--font-caption);
  font-style: italic;
  color: var(--color-secondary);
}

p {
  margin: 0 0 var(--space-md);
}

a {
  color: var(--color-link);
}

.sr-only {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.eyebrow {
  font-family: var(--font-caption);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--color-accent);
  letter-spacing: 0.02em;
  margin: 0 0 var(--space-sm);
}

section {
  padding: var(--space-xxl) 0;
}

.divider {
  width: 48px;
  height: 2px;
  background: var(--color-accent);
  border: none;
  margin: var(--space-md) 0;
}

/* Buttons — flat, per app convention (elevation 0) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-large);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--motion-fast) var(--ease-standard),
    background-color var(--motion-fast) var(--ease-standard),
    opacity var(--motion-fast) var(--ease-standard);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-vintage-white);
}

.btn-primary:hover {
  background: #3c2c1a;
}

.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border: 1.5px solid var(--color-accent);
}

.btn-outline:hover {
  background: rgba(201, 162, 94, 0.1);
}

.btn .btn-spinner {
  display: none;
  width: 1em;
  height: 1em;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  opacity: 0.85;
  animation: btn-spin 0.7s linear infinite;
}

.btn.is-loading .btn-spinner {
  display: inline-block;
}

.btn.is-loading {
  cursor: default;
  opacity: 0.85;
}

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(26, 20, 16, 0.92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--color-divider);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: var(--space-xs);
  padding-top: var(--space-sm);
  padding-bottom: var(--space-sm);
}

.site-header .btn {
  padding: var(--space-xs) var(--space-md);
  font-size: 0.875rem;
}

.site-header-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.site-header-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: var(--space-xs, 0.5rem);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--color-heading);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.wordmark-icon {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.site-nav a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-secondary);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--color-link);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(340px, 53vh, 504px);
  display: flex;
  align-items: center;
  padding-top: 0;
}

.hero .container {
  position: relative;
  z-index: 2;
  padding-top: var(--space-xxl);
  padding-bottom: var(--space-xxl);
}

.hero-copy {
  max-width: 560px;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: var(--space-md);
}

.hero-positioning {
  font-family: var(--font-caption);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--color-secondary);
  margin-bottom: var(--space-lg);
}

.hero-cta-row {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Full-bleed hero image: fills the section's height, touches the right
   edge of the viewport, and dissolves into the page background toward the
   left (behind the copy) via a mask fade rather than a hard crop. */
.hero-media {
  position: absolute;
  z-index: 1;
  inset: 0;
  left: auto;
  width: min(62%, 860px);
  height: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 55%);
  mask-image: linear-gradient(to right, transparent 0%, black 55%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
}

/* ---------- Positioning statement ----------
 * Full-bleed photo background (hand placing a polaroid into the album) with
 * a JS-driven parallax drift — see the "Positioning parallax" block in
 * js/main.js — and a dark scrim so the italic quote stays readable over it.
 * .positioning-media is a sibling of .container, not nested inside it, so
 * it can span edge-to-edge without fighting the container's max-width. */
.positioning {
  position: relative;
  overflow: hidden;
  min-height: clamp(420px, 60vw, 640px);
  background: var(--color-card-surface);
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}

.positioning-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.positioning-media-img {
  position: absolute;
  left: 0;
  top: -15%;
  width: 100%;
  height: 130%;
  object-fit: cover;
  will-change: transform;
}

/* Scrim opacity is a UI necessity, not a brand color — kept as a literal
   rather than a new token per css/tokens.css's "mirror the app repo" rule. */
.positioning-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.positioning-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding-top: var(--space-xxl);
  padding-bottom: var(--space-xxl);
  text-align: center;
}

.positioning p {
  font-family: var(--font-caption);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.7;
  color: var(--color-heading);
}

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

/* ---------- How it works ---------- */
.how-it-works .section-intro {
  max-width: 640px;
  margin: 0 auto var(--space-xxl);
  text-align: center;
}

.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.how-it-works-step {
  text-align: center;
  padding: 0 var(--space-sm);
}

.how-it-works-number {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.25rem, 3.5vw, 2.75rem);
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.how-it-works-step h3 {
  margin-bottom: var(--space-sm);
}

.how-it-works-step p {
  font-size: 1rem;
  margin-bottom: 0;
}

/* ---------- Feature showcase ---------- */
.features {
  background: var(--color-card-surface);
}

.features .section-intro {
  max-width: 640px;
  margin: 0 auto var(--space-xxl);
  text-align: center;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "copy media";
  column-gap: var(--space-xl);
  align-items: center;
  padding: var(--space-sm) 0;
  /* Lighter than --color-divider (#453A2C) — a subtler row separator than the
     divider's usual job (card/table borders); rgba literal per this file's
     "UI necessity, not a brand color" convention rather than a new token. */
  border-bottom: 0.5px solid rgba(69, 58, 44, 0.5);
}

.feature-row:last-child {
  border-bottom: none;
}

.feature-row.reverse {
  grid-template-areas: "media copy";
}

.feature-number {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(4.5rem, 5vw, 5.75rem);
  line-height: 1;
  color: var(--color-secondary);
  opacity: 0.15;
  margin-bottom: var(--space-xs);
}

.feature-copy {
  grid-area: copy;
}

.feature-media {
  grid-area: media;
}

.feature-copy h3 {
  font-size: 1.6rem;
  margin-bottom: var(--space-sm);
}

.feature-copy p {
  font-size: 1.02rem;
}

.feature-media {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
}

.feature-media img {
  height: auto;
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-card);
}

.feature-media.single img {
  max-width: 320px;
}

.feature-media.pair img {
  max-width: 220px;
}

/* ---------- Value props ---------- */
.value-props .section-intro {
  max-width: 640px;
  margin: 0 auto var(--space-xl);
  text-align: center;
}

.value-props-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.value-prop {
  background: var(--color-card-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-large);
  padding: var(--space-xl) var(--space-lg);
  box-shadow: var(--shadow-card);
}

.value-prop-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(201, 162, 94, 0.12);
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.value-prop-icon svg {
  width: 28px;
  height: 28px;
}

.value-prop h3 {
  font-size: 1.3rem;
  margin-bottom: var(--space-sm);
}

.value-prop p {
  font-size: 1rem;
  margin-bottom: 0;
}

/* ---------- Pricing ---------- */
.pricing {
  background: var(--color-card-surface);
}

.pricing .section-intro {
  max-width: 640px;
  margin: 0 auto var(--space-xl);
  text-align: center;
}

/* Each plan is a self-contained card (emblem/name/price, then its own
   label:value feature list) instead of a shared row-header + N value
   columns. Side by side on desktop, stacks cleanly at any width without
   needing to track which column you're reading — see the tablet/phone
   breakpoints below for the stacking rule. */
.pricing-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.plan-card {
  background: var(--color-background);
  border-radius: var(--radius-large);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-divider);
}

.plan-card-head {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  /* Heritage-only darker brown, distinct from --color-primary now that
     Roots reuses --color-primary below; not a design token since tokens.css
     mirrors the app repo's palette 1:1. */
  background: #2F2115;
}

.plan-card-head.roots {
  background: var(--color-primary);
}

.plan-card-head img {
  display: block;
  height: 64px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  object-position: top center;
  margin: 0 auto var(--space-sm);
  /* Flat gold emblem marks, not photographs — no photo-frame border,
     circle crop, or shadow here; just the mark on its own. White marks
     sit on the primary-brown header background above so they read clearly. */
}

.plan-card-head h3 {
  margin-bottom: 4px;
  color: var(--color-vintage-white);
}

.plan-price {
  font-family: var(--font-caption);
  font-style: italic;
  color: var(--color-accent);
  font-size: 0.95rem;
}

.plan-features {
  margin: 0;
}

.plan-feature {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md);
  border-bottom: 1px solid var(--color-divider);
}

.plan-feature:last-child {
  border-bottom: none;
}

.plan-feature dt {
  font-weight: 500;
  color: var(--color-heading);
  font-size: 0.95rem;
}

.plan-feature dd {
  margin: 0;
  font-size: 0.95rem;
  text-align: right;
}

.check {
  color: var(--color-success);
  font-weight: 600;
}

.cross {
  color: var(--color-divider);
  font-weight: 600;
}

.pricing-note {
  text-align: center;
  font-family: var(--font-caption);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--color-secondary);
  margin-top: var(--space-md);
}

/* ---------- Add-ons ---------- */
/* Deliberately lighter-weight than .plan-card — no dark head band, no
   feature checklist — so add-ons read as "more room" bolted onto a plan,
   not a third subscription tier competing with Roots/Heritage above. */
.addon-section {
  margin-top: var(--space-xl);
  text-align: center;
}

.addon-intro {
  max-width: 560px;
  margin: 0 auto var(--space-lg);
  color: var(--color-secondary);
}

.addon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  text-align: left;
}

.addon-card {
  background: var(--color-background);
  border-radius: var(--radius-large);
  border: 1px solid var(--color-divider);
  padding: var(--space-md);
}

.addon-amount {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

.addon-price {
  font-family: var(--font-caption);
  font-style: italic;
  font-size: 0.95rem;
  margin-bottom: var(--space-xs);
}

.addon-price span {
  color: var(--color-secondary);
}

.addon-desc {
  font-size: 0.9rem;
  color: var(--color-secondary);
  margin: 0;
}

/* ---------- FAQ ---------- */
.faq .section-intro {
  max-width: 640px;
  margin: 0 auto var(--space-xl);
  text-align: center;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.faq-item {
  background: var(--color-card-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-large);
  padding: var(--space-md) var(--space-lg);
}

.faq-group-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: var(--space-lg) 0 0;
}

.faq-group-title:first-child {
  margin-top: 0;
}

/* Native <details>/<summary> — keyboard-operable and works without JS, per
   the same "content never stuck without JS" principle as .reveal above. */
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-heading);
  font-size: 1.05rem;
}

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

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--color-accent);
  transition: transform var(--motion-fast) var(--ease-standard);
}

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

.faq-item p {
  margin: var(--space-md) 0 0;
  font-size: 0.98rem;
}

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

/* ---------- Waitlist ---------- */
.waitlist {
  text-align: center;
}

.waitlist .container {
  max-width: 560px;
}

.waitlist-form {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  flex-wrap: wrap;
  justify-content: center;
}

.waitlist-form input[type="email"] {
  flex: 1 1 260px;
  padding: var(--space-md);
  border-radius: var(--radius-large);
  border: 1px solid var(--color-divider);
  background: var(--color-vintage-white);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-primary);
  outline: none;
  transition: border-color var(--motion-fast) var(--ease-standard);
}

.waitlist-form input[type="email"]:focus {
  border-color: var(--color-accent);
}

/* Honeypot — hidden from real users, present for bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-message {
  margin-top: var(--space-md);
  min-height: 1.2em;
  font-size: 0.95rem;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--motion-medium) var(--ease-entrance),
    transform var(--motion-medium) var(--ease-entrance);
}

.form-message.visible {
  opacity: 1;
  transform: translateY(0);
}

.form-message.success {
  color: var(--color-success);
}

.form-message.error {
  color: var(--color-error);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--color-divider);
  padding: var(--space-xl) 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-secondary);
}

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

.site-footer a:hover {
  text-decoration: underline;
}

.footer-wordmark {
  font-family: var(--font-heading);
  color: var(--color-heading);
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
}

.footer-links {
  margin: var(--space-sm) 0;
}

/* ---------- Legal pages (privacy policy / terms / support) ----------
 * Content is pulled verbatim (converted from Markdown) from the Nasab app's
 * policy docs — see tappstudio-landing (release branch, /nasab) — so this
 * only styles the generic elements Markdown produces (headings, lists,
 * tables, hr), it doesn't hand-author any legal copy. */
.legal {
  padding-top: var(--space-xl);
}

.legal-back {
  display: inline-block;
  margin-bottom: var(--space-lg);
  font-size: 0.9rem;
  color: var(--color-link);
  text-decoration: none;
}

.legal-back:hover {
  text-decoration: underline;
}

.legal-content {
  max-width: 760px;
}

.legal-content h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin-bottom: var(--space-sm);
}

.legal-content h2 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.legal-content h3 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  color: var(--color-heading);
}

.legal-content p,
.legal-content ul,
.legal-content ol {
  margin: 0 0 var(--space-md);
}

.legal-content ul,
.legal-content ol {
  padding-left: 1.25em;
}

.legal-content li {
  margin-bottom: var(--space-sm);
}

.legal-content li > ul,
.legal-content li > ol {
  margin-top: var(--space-sm);
}

.legal-content hr {
  border: none;
  border-top: 1px solid var(--color-divider);
  margin: var(--space-xl) 0;
}

.legal-content strong {
  color: var(--color-heading);
}

.legal-content .table-scroll {
  overflow-x: auto;
  margin: 0 0 var(--space-lg);
}

/* ---------- Founder's note (letter format) ---------- */
.letter-content {
  max-width: 640px;
}

.letter-content p {
  font-size: 1.05rem;
  line-height: 1.8;
}

.letter-salutation,
.letter-signoff {
  font-family: var(--font-caption);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--color-heading);
}

.letter-signoff {
  margin-bottom: var(--space-sm);
}

.letter-signature {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-heading);
  line-height: 1.5;
}

.letter-signature span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-style: normal;
  color: var(--color-secondary);
  margin-top: var(--space-xs);
}

.legal-content table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.legal-content th,
.legal-content td {
  border: 1px solid var(--color-divider);
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  vertical-align: top;
}

.legal-content th {
  color: var(--color-heading);
  font-family: var(--font-heading);
  font-weight: 600;
  background: var(--color-card-surface);
}

/* ---------- Hero entrance ---------- */
/* CSS-only fade-in on load — no JS/IntersectionObserver dependency, so
   content is never stuck invisible if JS is slow, blocked, or absent. */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* The hero photo fades and settles in from a slight scale, rather than
   sliding — reads like a photo materializing, not a UI panel. */
@keyframes fade-in-scale {
  from {
    opacity: 0;
    transform: scale(0.92);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-copy {
  animation: fade-up var(--motion-slow) var(--ease-entrance) both;
}

.hero-media {
  animation: fade-in-scale var(--motion-slow) var(--ease-entrance) both;
  animation-delay: var(--motion-stagger-step);
}

/* ---------- Scroll reveal ---------- */
/* Applied to each feature row; JS toggles .is-visible as a row enters the
   viewport (see js/main.js). Starts visible, and only switches to
   hidden-until-scrolled-into-view once .js-reveal-ready is added, so
   content never gets stuck hidden without JS or if the observer script
   fails to run. */
.reveal {
  opacity: 1;
  transform: none;
}

.js-reveal-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--motion-slow) var(--ease-entrance),
    transform var(--motion-slow) var(--ease-entrance);
  transition-delay: 100ms;
}

.js-reveal-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  /* Stack: full-width image on top, fading upward into the copy below it,
     rather than a side panel fading to the left. */
  .hero {
    flex-direction: column;
    align-items: stretch;
    min-height: auto;
  }

  .hero-media {
    position: relative;
    inset: auto;
    width: 100%;
    height: clamp(170px, 35vw, 264px);
    -webkit-mask-image: linear-gradient(to top, transparent 0%, black 60%);
    mask-image: linear-gradient(to top, transparent 0%, black 60%);
  }

  .hero-copy {
    max-width: none;
  }

  .hero .container {
    padding-top: var(--space-lg);
  }

  .positioning {
    min-height: clamp(320px, 70vw, 480px);
  }

  .positioning-content {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
  }

  .feature-row,
  .feature-row.reverse {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "media";
    row-gap: var(--space-sm);
    text-align: center;
  }

  .pricing-table,
  .addon-grid {
    grid-template-columns: 1fr;
  }

  .value-props-grid {
    grid-template-columns: 1fr;
  }

  .how-it-works-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

@media (max-width: 640px) {
  section {
    padding: var(--space-xl) 0;
  }

  .plan-feature {
    padding: var(--space-sm) var(--space-md);
  }

  .plan-feature dt,
  .plan-feature dd {
    font-size: 0.9rem;
  }

  .positioning p {
    font-size: clamp(1.05rem, 4.5vw, 1.3rem);
  }

  .site-header .btn {
    padding: var(--space-sm) var(--space-md);
  }
}

@media (max-width: 480px) {

  .hero-cta-row .btn,
  .waitlist-form .btn {
    width: 100%;
  }

  .hero-cta-row {
    flex-direction: column;
  }

  .waitlist-form {
    flex-direction: column;
  }

  .waitlist-form input[type="email"] {
    flex: 1 1 auto;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .btn,
  .form-message {
    transition: none;
  }

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

  .positioning-media-img {
    transform: none !important;
  }
}

/* ---------- Invite fallback page (/f/) ----------
 * Shown when a ChottuLink invite short link (nasab.chottu.link/f/<code>)
 * falls back to the browser because the app isn't installed. See
 * js/invite.js — it swaps #invite-title/#invite-body's text in once the
 * family name loads (or on error/expired/missing-code), everything below
 * is just the static shell + loading state. */
.invite-page {
  padding-top: var(--space-xxl);
  padding-bottom: var(--space-xxl);
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
}

.invite-card {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.invite-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-large);
  margin-bottom: var(--space-lg);
}

.invite-card h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: var(--space-sm);
}

.invite-card p {
  color: var(--color-secondary);
  margin-bottom: var(--space-xl);
}

.invite-card.is-loading .invite-body-loaded,
.invite-card:not(.is-loading) .invite-spinner {
  display: none;
}

.invite-spinner {
  width: 28px;
  height: 28px;
  margin: 0 auto var(--space-lg);
  border: 3px solid var(--color-divider);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
}

.invite-stores {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.store-btn {
  width: 100%;
}

.store-btn .store-btn-icon {
  width: 20px;
  height: 20px;
  flex: none;
}

.store-btn-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.store-btn-label small {
  font-size: 0.7rem;
  opacity: 0.85;
}

/* Placeholder state: buttons render but do nothing meaningful yet (no
 * href target — see js/invite.js) until real App Store / Play Store URLs
 * are wired in post-launch. Visually distinct so it's obvious in review. */
.store-btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: default;
}

.invite-open-app {
  font-size: 0.9rem;
}

@media (min-width: 480px) {
  .invite-stores {
    flex-direction: row;
  }
}