/* ==========================================================================
   HstroPulse — "celestial indigo"
   A daily-horoscope subscription product, recolored to the brand's own real
   identity: a periwinkle-to-purple gradient "HstroPulse" wordmark next to a
   crystal-ball mark, glowing on a deep indigo-navy cosmic backdrop, with warm
   gold as the single call-to-action / highlight accent. Palette sampled
   directly from the brand's live landing page CSS and its own logo file:

     gold gradient   #f8e08e -> #f2c94c -> #c99a2e   (CTA, highlights, numbers)
     indigo backdrop #0b0a1d -> #070615               (page background)
     surface panels  #1d1a3d -> #15132e               (cards, panels)
     periwinkle      #8b7ff0 -> #6c60c6                (logo, headings, rings)
     muted lavender  #a49dc0                           (body copy on dark)

   Aesthetic direction: mystical / celestial, not angular-arcade (this repo's
   other gold-accented site, phasercade-id, is deliberately aggressive and
   angular; this one is circular, soft-glowing and quiet). Signature element:
   an original inline-SVG zodiac wheel in the hero, in place of a photograph.

   Shape rule (applied everywhere, no exceptions):
     primary interactive (.btn)      -> full pill radius
     small pills/chips/badges        -> full radius (pill)
     cards / tiles / inputs          -> var(--radius)     16px
     large feature surfaces          -> var(--radius-lg)  26px

   Theme: dark, locked. No section inverts to a light background.
   ========================================================================== */

:root {
  /* brand - sampled directly from HstroPulse's own logo + landing page CSS */
  --gold-1: #f8e08e;
  --gold-2: #f2c94c;
  --gold-3: #c99a2e;
  --gold-rgb: 242, 201, 76;

  --peri-1: #9c94f3;
  --peri-2: #8b7ff0;
  --peri-3: #6c60c6;
  --peri-rgb: 139, 127, 240;

  /* semantic */
  --accent: #f2c94c;          /* gold - CTAs, highlighted words, numbers */
  --accent-2: #c99a2e;        /* deeper gold - hover variety */
  --secondary: #a28cf0;       /* periwinkle - headings, logo-adjacent accents */
  --grad: linear-gradient(135deg, var(--gold-1) 0%, var(--gold-2) 55%, var(--gold-3) 100%);
  --grad-peri: linear-gradient(135deg, var(--peri-1) 0%, var(--peri-2) 55%, var(--peri-3) 100%);

  --bg: #0b0a1d;
  --bg-alt: #070615;
  --surface: #1a1735;
  --surface-2: #15132e;
  --text: #f3f1fb;
  --muted: #a49dc0;
  --border: rgba(139, 127, 240, 0.16);
  --border-strong: rgba(139, 127, 240, 0.32);
  --danger: #e8516b;
  --success: #35d48a;

  --radius: 16px;
  --radius-lg: 26px;
  --radius-sm: 11px;
  --shadow: 0 24px 54px -22px rgba(2, 1, 10, 0.8);
  --shadow-sm: 0 12px 28px -16px rgba(2, 1, 10, 0.7);
  --glow: 0 0 0 1px rgba(var(--gold-rgb), 0.3), 0 18px 40px -16px rgba(var(--gold-rgb), 0.45);

  --card-glow: inset 0 1px 0 rgba(255, 255, 255, 0.04), inset 0 0 30px rgba(var(--peri-rgb), 0.06);
  --card-glow-hover: inset 0 0 0 1px rgba(var(--gold-rgb), 0.4), inset 0 0 36px rgba(var(--peri-rgb), 0.18);

  --mark-h: 3px;
  --header-h: 72px;
  --wrap: 1180px;

  --font-display: 'Taviraj', 'Noto Serif Thai', serif;
  --font-body: 'Sarabun', 'Noto Sans Thai', system-ui, sans-serif;
}

/* ── reset / base ───────────────────────────────────────────────────────── */

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

html, body { overflow-x: hidden; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  /* ambient glow: soft color bleeding in from the corners, so the page reads
     as a night sky, not a flat panel. The actual star dots are the tiled,
     twinkling .stars layer below (ported from the real HstroPulse page). */
  background-image:
    radial-gradient(ellipse 55% 36% at 10% 0%, rgba(var(--peri-rgb), 0.12), transparent 62%),
    radial-gradient(ellipse 48% 34% at 100% 18%, rgba(var(--gold-rgb), 0.07), transparent 65%),
    radial-gradient(ellipse 50% 32% at 2% 80%, rgba(var(--peri-rgb), 0.08), transparent 65%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  background-repeat: no-repeat;
  background-attachment: fixed, fixed, fixed, fixed;
}

/* Tiled, twinkling starfield — ported pixel-for-pixel from the real
   HstroPulse landing page (c1.mouisys.com/xdg26): a small repeating dot
   pattern behind the whole page, not just the first viewport. */
.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  background-image:
    radial-gradient(1px 1px at 20px 30px, #fff, transparent),
    radial-gradient(1px 1px at 120px 80px, var(--gold-1), transparent),
    radial-gradient(1.5px 1.5px at 200px 150px, #fff, transparent),
    radial-gradient(1px 1px at 260px 40px, #cfc6ff, transparent),
    radial-gradient(1px 1px at 330px 210px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 60px 240px, var(--gold-1), transparent);
  background-size: 360px 280px;
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle {
  from { opacity: 0.35; }
  to { opacity: 0.7; }
}

header, main, .site-footer { position: relative; z-index: 1; }

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

figure { margin: 0; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.18;
  margin: 0 0 0.6rem;
  font-weight: 600;
}

h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); font-weight: 600; }
h3 { font-size: 1.12rem; font-weight: 600; }
h4 { font-size: 0.95rem; font-weight: 600; }

p { margin: 0 0 1rem; }

mark.hl {
  background: none;
  color: var(--accent);
  position: relative;
  padding: 0 0.15em;
}
mark.hl::after {
  content: '';
  position: absolute;
  left: -0.05em; right: -0.05em; bottom: 0.08em;
  height: 0.32em;
  background: rgba(var(--gold-rgb), 0.22);
  border-radius: 3px;
  z-index: -1;
}

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

/* ── layout ─────────────────────────────────────────────────────────────── */

.container { width: min(var(--wrap), 92vw); margin-inline: auto; }
.container-narrow { width: min(760px, 92vw); margin-inline: auto; }

.section { position: relative; padding: clamp(4rem, 8vw, 7rem) 0; }
.section-tight { padding: clamp(3rem, 5vw, 4.5rem) 0; }
.section.tight { padding: clamp(2.5rem, 4vw, 3.5rem) 0; }

.section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(ellipse 65% 55% at 88% 0%, rgba(var(--peri-rgb), 0.08), transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 50%, #000 35%, transparent 88%);
  mask-image: radial-gradient(ellipse 85% 75% at 50% 50%, #000 35%, transparent 88%);
}
.section > .container { position: relative; z-index: 1; }

.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.measure-wide { max-width: 80ch; }
.section-head h2 {
  position: relative;
  margin-bottom: 0;
  padding-bottom: 0.85rem;
}
.section-head h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: var(--mark-h);
  border-radius: 2px;
  background: var(--grad);
}
.section-head p { color: var(--muted); margin: 0.6rem 0 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 0.7rem;
}

/* ── buttons ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.8rem;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn::after {
  content: '\2192';
  font-weight: 700;
  transition: transform 0.18s ease;
}
[dir='rtl'] .btn::after { content: '\2190'; }

.btn-primary {
  background: var(--grad);
  color: #1a1206;
  box-shadow: var(--glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(var(--gold-rgb),0.5), 0 24px 48px -16px rgba(var(--gold-rgb),0.55); }
.btn-primary:hover::after { transform: translateX(3px); }
[dir='rtl'] .btn-primary:hover::after { transform: translateX(-3px); }
.btn-primary:active { transform: scale(0.98); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--secondary); color: var(--secondary); }
.btn-ghost:active { transform: scale(0.98); }

.btn-outline {
  background: rgba(139, 127, 240, 0.08);
  color: var(--secondary);
  border-color: var(--border-strong);
}
.btn-outline:hover { transform: translateY(-2px); border-color: var(--secondary); color: var(--text); background: rgba(var(--peri-rgb), 0.16); }
.btn-outline:active { transform: scale(0.98); }

.btn-sm { padding: 0.55rem 1.3rem; font-size: 0.9rem; }
.btn-lg { padding: 1rem 2.2rem; font-size: 1.05rem; }

/* ── header / nav ───────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--header-h);
  direction: ltr;
  background: rgba(11, 10, 29, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo { display: flex; align-items: center; text-decoration: none; }
.logo-img { height: 30px; width: auto; display: block; }

.site-nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.3rem;
}

.site-nav-desktop a:not(.btn),
.site-nav a:not(.btn) {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s ease;
}
.site-nav-desktop a:not(.btn):hover,
.site-nav a:not(.btn):hover { color: var(--secondary); }
.site-nav-desktop a.active,
.site-nav a.active { color: var(--accent); }

.lang-switcher { display: flex; align-items: center; gap: 0.35rem; }

.lang-pill {
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.22rem 0.62rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  text-decoration: none;
}
.lang-pill.lang-active {
  background: var(--accent);
  border-color: transparent;
  color: #1a1206;
}

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
}

.site-nav { display: none; }

@media (max-width: 900px) {
  .site-nav-desktop { display: none; }
  .nav-burger { display: flex; }

  .site-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 800;
    padding: 1rem 4vw 1.6rem;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transform: translateY(-115%);
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0.25s ease;
  }
  .site-nav a:not(.btn) { padding: 0.6rem 0; }
  .site-nav .btn { width: 100%; margin-top: 0.5rem; }
  .site-nav .lang-switcher { padding: 0.8rem 0 0; }
  .nav-toggle:checked ~ .site-nav { transform: translateY(0); visibility: visible; }
}

/* ── scroll reveal (gated: content is always visible without JS) ─────────── */

html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
html.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ── hero (home): copy left, zodiac-wheel art right ────────────────────── */

.hero {
  position: relative;
  padding: 4.5rem 0 4rem;
  background: radial-gradient(ellipse 70% 45% at 85% 0%, rgba(var(--peri-rgb), 0.16), transparent 70%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
  min-height: 440px;
}

.hero-copy h1 { margin-bottom: 1rem; }
.hero-lead { color: var(--muted); font-size: 1.06rem; }
.hero-fine { color: var(--muted); font-size: 0.85rem; margin-top: 0.4rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.6rem 0 0.6rem;
}

/* hero art: dark rounded-square panel, gold border glow, zodiac wheel inside */
.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 380px;
}
/* chart-card / zodiac-wheel: ported pixel-for-pixel from the real HstroPulse
   landing page (c1.mouisys.com/xdg26) at the user's request, so the portfolio
   hero and the real product feel seamless together. Geometry, class names and
   positioning are copied verbatim; colors use our token system, which already
   matches the real page's sampled hex values exactly (--gold-2 = #f2c94c,
   --peri-2 = #8b7ff0), so the render is pixel-identical. */
.chart-card {
  position: relative;
  width: min(420px, 100%);
  padding: 36px 28px 28px;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(29, 26, 61, 0.95), rgba(21, 19, 46, 0.95));
  border: 1px solid rgba(var(--gold-rgb), 0.22);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.8), 0 0 60px -20px rgba(var(--gold-rgb), 0.25);
}
.sticker {
  position: absolute;
  top: -16px;
  right: 18px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid rgba(var(--gold-rgb), 0.22);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  transform: rotate(-4deg);
  white-space: nowrap;
  z-index: 3;
}
.sticker em { font-style: normal; color: var(--accent); }

.zodiac-wheel { position: relative; width: 100%; max-width: 420px; margin: 0 auto; aspect-ratio: 1 / 1; }
.zodiac-wheel .wheel-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; display: block; }
.zodiac-wheel .wheel-line { fill: none; stroke: url(#goldLine); stroke-width: 1.6; }
.zodiac-wheel .wheel-line.thin { stroke-width: 0.8; stroke-dasharray: 2 4; opacity: 0.7; }
.zodiac-wheel .ring-seg,
.zodiac-wheel .house-seg { stroke: rgba(var(--gold-rgb), 0.45); stroke-width: 1; transition: fill 0.25s ease; }
.zodiac-wheel .ring-seg { fill: rgba(var(--gold-rgb), 0.05); }
.zodiac-wheel .ring-seg.active { fill: rgba(var(--gold-rgb), 0.55); }
.zodiac-wheel .house-seg { fill: rgba(21, 19, 46, 0.6); cursor: pointer; }
.zodiac-wheel .house-seg.active { fill: rgba(var(--gold-rgb), 0.2); }
.zodiac-wheel .wheel-glyph,
.zodiac-wheel .house-num,
.zodiac-wheel .house-label {
  position: absolute;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
  transition: color 0.25s ease;
}
.zodiac-wheel .wheel-glyph {
  font-family: "Segoe UI Symbol", "Noto Sans Symbols", "DejaVu Sans", sans-serif;
  font-size: clamp(11px, 3.4vw, 16px);
  color: var(--accent);
}
.zodiac-wheel .wheel-glyph.active { color: #1a1208; }
.zodiac-wheel .house-num { font-size: 9px; color: var(--muted); }
.zodiac-wheel .house-num.active { color: var(--accent); }
.zodiac-wheel .house-label { width: 19%; font-size: clamp(8px, 2.3vw, 11px); font-weight: 600; line-height: 1.15; color: #fff; }
.zodiac-wheel .house-label.active { color: var(--accent); }
.zodiac-wheel .wheel-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  text-align: center;
}
.zodiac-wheel .wheel-hub .hub-num { font-size: clamp(22px, 6vw, 34px); font-weight: 700; line-height: 1; color: var(--accent); }
.zodiac-wheel .wheel-hub .hub-label { margin-top: 2px; font-size: clamp(8px, 2.2vw, 11px); font-weight: 600; line-height: 1.15; color: #fff; }

@media (max-width: 480px) {
  .chart-card { padding: 40px 14px 18px; }
  .sticker { right: 12px; max-width: calc(100% - 24px); padding: 6px 12px; font-size: 11px; line-height: 1.35; white-space: normal; text-align: center; border-radius: 14px; }
  .zodiac-wheel .house-label { font-size: clamp(7px, 2vw, 10px); }
}

@media (max-width: 900px) {
  .hero { padding-top: 1.5rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; min-height: 0; }
  .hero-art { min-height: 300px; }
}

/* ── why-us: bordered card grid ────────────────────────────────────────── */

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.why-item {
  padding: 1.6rem;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--card-glow);
  transition: border-color 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}
.why-item:hover { border-color: rgba(var(--gold-rgb),0.55); transform: translateY(-3px); box-shadow: var(--card-glow-hover); }
.why-item h3 { position: relative; margin-bottom: 0.9rem; padding-bottom: 0.6rem; }
.why-item h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 38px;
  height: var(--mark-h);
  border-radius: 2px;
  background: var(--grad);
}
.why-item p { color: var(--muted); margin: 0; font-size: 0.95rem; }
.why-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(var(--peri-rgb), 0.16);
  color: var(--secondary);
  margin-bottom: 1rem;
}
.why-mark svg { width: 19px; height: 19px; }

@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr 1fr; gap: 1rem; } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

/* ── showcase: zodiac sign grid (icon badge + name + date range) ─────────── */

.tile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-radius: var(--radius);
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  box-shadow: var(--card-glow);
  padding: 1.4rem 0.8rem;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm), var(--card-glow-hover); border-color: rgba(var(--gold-rgb),0.6); }
.tile-glyph {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(var(--gold-rgb), 0.22);
  color: var(--accent);
  font-family: "Segoe UI Symbol", "Noto Sans Symbols", "DejaVu Sans", sans-serif;
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}
.tile-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.tile-dates {
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 860px) {
  .tile-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── features: icon cards (distinct from .why-grid) ──────────────────────── */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.feature-card {
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  box-shadow: var(--card-glow);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow), var(--card-glow-hover); border-color: rgba(var(--gold-rgb),0.55); }
.feature-card h3 { position: relative; margin-bottom: 0.9rem; padding-bottom: 0.6rem; }
.feature-card h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 38px;
  height: var(--mark-h);
  border-radius: 2px;
  background: var(--grad);
}
.feature-card p { color: var(--muted); margin: 0; font-size: 0.95rem; }

.card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(var(--gold-rgb), 0.16);
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.card-icon svg { width: 23px; height: 23px; }

@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

/* ── page hero (inner pages) ────────────────────────────────────────────── */

.page-hero {
  padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(1.8rem, 3vw, 2.4rem);
  background: linear-gradient(180deg, rgba(var(--peri-rgb),0.14), transparent);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { margin-bottom: 0.5rem; }
.page-hero p { color: var(--muted); margin: 0; }

/* ── steps (pricing / unsubscribe): gradient-number step cards ───────────── */

.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.step-card {
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  box-shadow: var(--card-glow);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm), var(--card-glow-hover); border-color: rgba(var(--gold-rgb),0.55); }
.num {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.7rem;
}
.step-card h3 { position: relative; margin-bottom: 0.9rem; padding-bottom: 0.6rem; }
.step-card h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 38px;
  height: var(--mark-h);
  border-radius: 2px;
  background: var(--grad);
}
.step-card p { color: var(--muted); margin: 0; font-size: 0.95rem; }

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

/* ── pricing cards ──────────────────────────────────────────────────────── */

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
  max-width: 420px;
  margin: 0 auto;
}
.price-card {
  background: var(--surface);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2rem 1.7rem;
  text-align: center;
  box-shadow: var(--card-glow);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}
.price-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow), var(--card-glow-hover); }

.price-op {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.price-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.price-val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.3rem;
  line-height: 1;
  margin: 0;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.price-freq { color: var(--muted); margin: 0; font-size: 0.95rem; }
.price-trial { color: var(--muted); font-size: 0.9rem; margin: 0 0 1rem; }
.plan-features {
  list-style: none;
  margin: 1.2rem 0 1.6rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  text-align: start;
}
.plan-features li {
  position: relative;
  padding-inline-start: 1.5rem;
  font-size: 0.92rem;
  color: var(--muted);
}
.plan-features li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0.6rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad);
}

.price-card .btn { width: 100%; }

.price-note { color: var(--muted); font-size: 0.9rem; margin-top: 1.6rem; }

/* ── CTA banner (pricing-adjacent, mirrors the brand's own gold-bordered panel) ── */

.cta-banner {
  position: relative;
  border: 1.5px solid rgba(var(--gold-rgb), 0.4);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(29,26,61,0.9), rgba(11,10,29,0.95));
  box-shadow: 0 0 0 1px rgba(var(--gold-rgb), 0.1), 0 24px 60px -24px rgba(0,0,0,0.7), 0 0 50px -20px rgba(var(--gold-rgb), 0.25);
  padding: 2.4rem clamp(1.6rem, 4vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
}
.cta-banner h2 { margin-bottom: 0.4rem; }
.cta-banner p { color: var(--muted); margin: 0; }
.cta-banner .btn { flex-shrink: 0; }

/* ── opt-out box (unsubscribe) ──────────────────────────────────────────── */

.optout {
  background: var(--surface);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 1.6rem;
  margin-bottom: 1rem;
  box-shadow: var(--card-glow);
}
.optout h3 { margin-bottom: 0.8rem; }
.optout-sms {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  background: rgba(var(--peri-rgb), 0.1);
  border-radius: 12px;
  padding: 1rem 1.2rem;
}
.optout-kw {
  font-family: 'Courier New', monospace;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  background: var(--bg);
  border: 2px solid transparent;
  border-image: var(--grad) 1;
  border-radius: 10px;
  padding: 0.3rem 0.8rem;
  color: var(--accent);
}
.optout-to { color: var(--muted); font-size: 0.95rem; }
.optout-dest {
  font-family: 'Courier New', monospace;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}
.optout-dest a { color: var(--accent); }

.optout-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.6rem;
  padding: 0;
  list-style: none;
}
.optout-notes li {
  color: var(--muted);
  font-size: 0.9rem;
  padding-top: 0.7rem;
  border-top: 2px solid var(--border);
}
@media (max-width: 700px) { .optout-notes { grid-template-columns: 1fr; } }

/* ── generic bullet list (refund policy) ────────────────────────────────── */

.bullets { list-style: none; padding: 0; margin: 0; }
.bullets li {
  position: relative;
  padding-left: 1.7rem;
  margin-bottom: 0.75rem;
  color: var(--muted);
}
[dir='rtl'] .bullets li { padding-left: 0; padding-right: 1.7rem; }
.bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--grad);
}
[dir='rtl'] .bullets li::before { left: auto; right: 0; }

/* ── about ──────────────────────────────────────────────────────────────── */

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.value-card {
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--card-glow);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm), var(--card-glow-hover); border-color: rgba(var(--gold-rgb),0.55); }
.value-card h3 { position: relative; margin-bottom: 0.9rem; padding-bottom: 0.6rem; }
.value-card h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 38px;
  height: var(--mark-h);
  border-radius: 2px;
  background: var(--grad);
}
.value-card p { color: var(--muted); margin: 0; font-size: 0.95rem; }
@media (max-width: 860px) { .values-grid { grid-template-columns: 1fr; } }

.vision-panel {
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 3rem 2.4rem;
  box-shadow: var(--card-glow);
}
.vision-panel p { color: var(--muted); margin-bottom: 1rem; }
.vision-panel p:last-child { margin-bottom: 0; }
@media (max-width: 640px) { .vision-panel { padding: 2rem 1.5rem; } }

.about-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.about-split .hero-art {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-card {
  position: relative;
  width: min(380px, 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-hero-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8), 0 0 60px -20px rgba(var(--gold-rgb), 0.28);
  border: 1px solid rgba(var(--gold-rgb), 0.22);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}
.about-card:hover .about-hero-img {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 36px 70px -30px rgba(0, 0, 0, 0.9), 0 0 70px -15px rgba(var(--gold-rgb), 0.4);
}

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

/* ── FAQ ────────────────────────────────────────────────────────────────── */

.faq-list { display: grid; gap: 0.7rem; }

.faq-item {
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 0 1.4rem;
  box-shadow: var(--card-glow);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-item:hover { border-color: rgba(var(--gold-rgb),0.45); }
.faq-item[open] { border-color: var(--accent); box-shadow: var(--card-glow-hover); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 2rem 1.1rem 0;
  position: relative;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
}
[dir='rtl'] .faq-item summary { padding: 1.1rem 0 1.1rem 2rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  position: absolute;
  right: 0.2rem;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
[dir='rtl'] .faq-item summary::after { right: auto; left: 0.2rem; }
.faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }

.faq-body {
  padding: 0 0 1.2rem;
  color: var(--muted);
  font-size: 0.96rem;
}

/* ── contact / sign-in forms ────────────────────────────────────────────── */

.contact-form,
.form-card {
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-sm), var(--card-glow);
}
.form-card.narrow { width: min(520px, 100%); margin-inline: auto; }

.contact-form h3,
.form-card h3 { margin-bottom: 1.5rem; }

.form-group { margin-bottom: 1.1rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .contact-form, .form-card { padding: 1.5rem; }
}

.form-group label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.86rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: rgba(139, 127, 240, 0.06);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}
.form-group textarea { resize: vertical; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: #8d84ab; }
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(139, 127, 240, 0.1);
}

.phone-row {
  display: flex;
  align-items: stretch;
  background: rgba(139, 127, 240, 0.06);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}
.phone-row:focus-within {
  border-color: var(--accent);
  background: rgba(139, 127, 240, 0.1);
}
.phone-prefix {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 0.7rem 0.75rem 1rem;
  font-size: 1rem;
  color: var(--text);
  border-right: 1px solid var(--border-strong);
  flex-shrink: 0;
  white-space: nowrap;
}
.phone-row input {
  flex: 1;
  min-width: 0;
  width: auto;
  background: transparent;
  border: none;
  border-radius: 0;
}
.phone-row input:focus {
  border: none;
  background: transparent;
}

.signin-card button,
.form-card button { margin-top: 0.5rem; }

.error-msg,
.errorMsg {
  display: none;
  color: var(--danger);
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 0.3rem;
}
.form-success,
.successMsg {
  display: none;
  color: var(--success);
  font-weight: 700;
  margin-top: 1rem;
}
.form-disclaimer {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 1rem;
}

.care-card {
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
  margin-bottom: 1.6rem;
  box-shadow: var(--card-glow);
}
.care-card h2 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.care-card p { margin-bottom: 0.5rem; color: var(--muted); }
.care-card p:last-child { margin-bottom: 0; }
.care-card a { color: var(--accent); word-break: break-word; }

/* ── 404 ────────────────────────────────────────────────────────────────── */

.not-found {
  padding: 6rem 0 7rem;
  text-align: center;
}
.big-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(5rem, 18vw, 10rem);
  line-height: 1;
  margin: 0 0 0.5rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.not-found p { color: var(--muted); }

/* ── Legal pages (shared partials render inside .legals) ────────────────── */

.legals-wrap { padding: 0 0 3.5rem; }

.legals { padding-top: 0.5rem; padding-bottom: 5rem; }
.legals .container { width: min(840px, 92vw); margin-inline: auto; }
.legals h1 { display: none; } /* terms-dcb.html injects a hardcoded <h1> */
.legals h2, .legals h3, .legals h4, .legals h5 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 2rem 0 0.5rem;
}
.legals h6 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin: 2rem 0 0.5rem;
}
.legals p { margin-bottom: 0.85rem; line-height: 1.75; color: var(--muted); }
.legals ul, .legals ol { margin: 0.5rem 0 1rem; padding-inline-start: 1.2rem; }
.legals li { margin-bottom: 0.4rem; line-height: 1.7; color: var(--muted); }
.legals a { color: var(--accent); }
.legals table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.92rem; }
.legals th, .legals td { border: 1px solid var(--border); padding: 0.55rem 0.7rem; text-align: left; }
.legals th { background: var(--surface-2); font-weight: 700; }

/* ── footer ─────────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2.4rem;
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; } }

.footer-brand { display: flex; flex-direction: column; align-items: flex-start; }
.footer-brand .logo-img { margin-bottom: 0.6rem; }
.footer-brand p { color: var(--muted); font-size: 0.92rem; }

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.9rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.93rem;
}
.footer-col a:hover { color: var(--accent); }

.footer-entity {
  margin-top: 1rem;
  font-size: 0.84rem;
  line-height: 1.8;
}
.footer-entity p { color: var(--muted); margin: 0; }
.footer-entity a { color: var(--accent); word-break: break-word; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
}
.footer-bottom p { color: var(--muted); font-size: 0.84rem; margin: 0; }
.footer-version { opacity: 0.7; }

/* ── RTL safety (no RTL locale ships today, kept for parity) ────────────── */

[dir='rtl'] .form-group input[type='text'],
[dir='rtl'] .form-group textarea { direction: rtl; text-align: right; }
[dir='rtl'] .form-group input[type='email'],
[dir='rtl'] .form-group input[type='tel'] { direction: ltr; text-align: left; }
[dir='rtl'] .form-group label { text-align: right; }
[dir='rtl'] .form-card.narrow .form-group label { text-align: center; }
[dir='rtl'] .phone-row { direction: ltr; }
[dir='rtl'] .signin-card .form-group label { text-align: center; }

[dir='rtl'] .section-head h2::after,
[dir='rtl'] .why-item h3::after,
[dir='rtl'] .feature-card h3::after,
[dir='rtl'] .value-card h3::after,
[dir='rtl'] .step-card h3::after {
  left: auto;
  right: 0;
}
