/* ============================================================================
   MobioSphere360 - "Cosmic viewport"
   A deep-violet observatory where equirectangular panoramas sit inside circular
   apertures, lit lavender to magenta, with wide letterspaced display type and
   thin orbital rules.

   Dials: DESIGN_VARIANCE 7 / MOTION_INTENSITY 5 / VISUAL_DENSITY 3
   Theme lock: dark, whole site. Accent lock: magenta family only.
   Shape lock: panels 18px, media 22px, buttons pill, inputs 12px.
   ========================================================================== */

:root {
  /* Palette - taken from the product's own brand light: violet ground,
     lavender mid, magenta accent. */
  --bg: #0d0620;
  --bg-2: #150a2b;
  --surface: #1c0e31;
  --surface-2: #241340;
  --surface-3: #2d1950;

  --accent: #ed145b;        /* hairlines, glyphs, accent text on dark */
  --accent-strong: #d5104f; /* filled buttons: white text passes AA (5.2:1) */
  --accent-soft: rgba(237, 20, 91, 0.16);
  --lavender: #b2a2c9;
  --violet: #8165a8;

  --text: #efe9fb;
  --muted: #a99cc4;
  --border: rgba(178, 162, 201, 0.2);
  --border-strong: rgba(178, 162, 201, 0.36);

  --ok: #5bd7a0;
  --err: #ff6f6a;

  --radius: 18px;
  --radius-media: 22px;
  --radius-input: 12px;
  --radius-pill: 999px;

  --header-h: 72px;
  --shell: min(1220px, 92vw);
  --shell-narrow: min(820px, 92vw);

  --font-display: 'Sora', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --font-body: 'Manrope', 'IBM Plex Sans Arabic', system-ui, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html[lang='ar'] {
  --font-display: 'IBM Plex Sans Arabic', 'Sora', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans Arabic', 'Manrope', system-ui, sans-serif;
}

*,
*::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;
}

/* The starfield ground: two faint lights, one lavender, one magenta.
   Fixed and pointer-transparent so it never repaints on scroll. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60rem 40rem at 78% -8%, rgba(129, 101, 168, 0.34), transparent 62%),
    radial-gradient(46rem 34rem at 4% 12%, rgba(237, 20, 91, 0.14), transparent 60%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 46%, var(--bg) 100%);
}

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

a { color: var(--lavender); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--text); }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.6rem;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.3rem); }
h4 { font-size: 1rem; }

p { margin: 0 0 1rem; color: var(--muted); }
p:last-child { margin-bottom: 0; }

ul { margin: 0; padding: 0; }

.container { width: var(--shell); margin-inline: auto; }
.container-narrow { width: var(--shell-narrow); margin-inline: auto; }

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-head { margin-bottom: 2.8rem; }
.section-head h2 { margin-bottom: 0.7rem; }
.section-head p { color: var(--muted); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.rule {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
  margin: 0;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.94rem;
  letter-spacing: 0.01em;
  padding: 0.78rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background-color 0.2s var(--ease),
    border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent-strong);
  color: #ffffff;
  box-shadow: 0 10px 30px -14px rgba(237, 20, 91, 0.9);
}
.btn-primary:hover { background: var(--accent); color: #ffffff; }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--lavender); color: var(--text); background: rgba(178, 162, 201, 0.08); }

.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.85rem; }
.btn-lg { padding: 0.95rem 2rem; font-size: 1rem; }

/* -- Header + navigation -------------------------------------------------- */

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  direction: ltr; /* keeps the logo left and nav right in RTL locales */
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(13, 6, 32, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
}
.logo:hover { color: var(--text); }
.logo img { height: 30px; width: auto; flex: none; }
.footer-brand .logo img { height: 34px; }

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

.site-nav-desktop a:not(.btn),
.site-nav a:not(.btn) {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
}
.site-nav-desktop a:not(.btn):hover,
.site-nav a:not(.btn):hover { color: var(--text); }
.site-nav-desktop a.is-active,
.site-nav a.is-active { color: var(--text); }

.lang-switcher { display: inline-flex; align-items: center; gap: 0.35rem; }
.lang-pill {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.24rem 0.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  color: var(--muted);
}
.lang-pill:hover { color: var(--text); border-color: var(--border-strong); }
.lang-active { background: var(--accent-soft); border-color: rgba(237, 20, 91, 0.5); color: var(--text); }

.nav-burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
}

.site-nav { display: none; }

/* -- Mobile nav (checkbox hack; nav is a SIBLING of <header>) -------------- */

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

  .site-nav {
    display: block;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 800;
    padding: 1.2rem 4vw 1.8rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0.25s ease;
  }
  .site-nav a:not(.btn) { display: block; padding: 0.6rem 0; }
  .site-nav .lang-switcher { display: flex; padding: 0.6rem 0; }
  .site-nav .btn { width: 100%; justify-content: center; margin-top: 0.6rem; }
  .nav-toggle:checked ~ .site-nav { transform: translateY(0); visibility: visible; }
}

/* -- Hero (asymmetric split + circular aperture) --------------------------- */

.hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

/* Scaled against the aperture beside it, so the headline holds to two lines. */
.hero-copy h1 { font-size: clamp(1.95rem, 3.5vw, 3rem); margin-bottom: 1.1rem; }
.hero-copy > p { font-size: clamp(1rem, 1.3vw, 1.12rem); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.9rem; }

/* The aperture: a panorama sphere framed by two thin orbital rules. */
.aperture {
  position: relative;
  aspect-ratio: 1 / 1;
  width: min(100%, 460px);
  margin-inline: auto;
  display: grid;
  place-items: center;
}
.aperture-media {
  position: relative;
  width: 84%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 90px -40px rgba(237, 20, 91, 0.75),
    inset 0 0 60px rgba(13, 6, 32, 0.55);
}
.aperture-media img { width: 100%; height: 100%; object-fit: cover; }
.aperture-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(178, 162, 201, 0.42);
}
.aperture-ring::after {
  content: '';
  position: absolute;
  top: 50%;
  inset-inline-start: -5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(237, 20, 91, 0.9);
}
.aperture-ring-2 {
  position: absolute;
  inset: 7%;
  border-radius: 50%;
  border: 1px solid rgba(237, 20, 91, 0.28);
}

html.js .aperture-ring { animation: orbit 46s linear infinite; }

@keyframes orbit {
  to { transform: rotate(360deg); }
}

/* -- Page hero (inner pages) ---------------------------------------------- */

.page-hero {
  padding: clamp(2.8rem, 6vw, 4.6rem) 0 clamp(1.6rem, 3vw, 2.4rem);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { margin-bottom: 0.9rem; }

/* -- Showcase rail (full-bleed horizontal scroll-snap) --------------------- */

.rail {
  display: flex;
  gap: 1.2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  /* Full-bleed rail whose first card still lines up with .container.
     scroll-padding must match the inline padding, otherwise the snapport
     starts at the content edge and the first snap cancels the lead-in. */
  padding-block: 0.4rem 1.6rem;
  padding-inline: max(4vw, calc((100vw - 1220px) / 2));
  scroll-padding-inline: max(4vw, calc((100vw - 1220px) / 2));
  scrollbar-width: thin;
  scrollbar-color: var(--violet) transparent;
}
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: var(--violet); border-radius: 99px; }
.rail::-webkit-scrollbar-track { background: rgba(178, 162, 201, 0.1); border-radius: 99px; }

.pano {
  scroll-snap-align: start;
  flex: 0 0 min(78vw, 520px);
}
.pano-frame {
  position: relative;
  border-radius: var(--radius-media);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 21 / 9;
  background: var(--surface);
}
.pano-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.pano:hover .pano-frame img { transform: scale(1.05); }
.pano-caption { padding: 0.85rem 0.2rem 0; }
.pano-caption h3 { font-size: 1.02rem; margin-bottom: 0.25rem; }
.pano-caption span { font-size: 0.8rem; color: var(--violet); letter-spacing: 0.12em; text-transform: uppercase; }

/* -- Hairline grid (why-us) ----------------------------------------------- */

.hairline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}
.hairline-item {
  padding: 1.8rem 1.6rem 1.8rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 0.95rem;
  align-items: flex-start;
}
.hairline-item + .hairline-item { border-inline-start: 1px solid var(--border); padding-inline-start: 1.6rem; }
.hairline-item:nth-child(3n + 1) { border-inline-start: 0; padding-inline-start: 0; }
.hairline-item h3 { font-size: 1rem; margin-bottom: 0.3rem; }
.hairline-item p { font-size: 0.92rem; }
.hairline-mark { flex: none; width: 26px; height: 26px; color: var(--accent); margin-top: 2px; }
.hairline-mark svg { width: 100%; height: 100%; }

/* -- Bento (features) ----------------------------------------------------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.1rem;
}
.cell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  padding: 1.6rem;
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.cell:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.cell h3 { margin-bottom: 0; }
.cell p { font-size: 0.93rem; }
.cell-icon { width: 34px; height: 34px; color: var(--accent); }
.cell-icon svg { width: 100%; height: 100%; }

.cell-wide { grid-column: span 4; }
.cell-full { grid-column: span 6; }
.cell-media { min-height: 260px; justify-content: flex-end; border-color: transparent; }
.cell-media .cell-bg { position: absolute; inset: 0; z-index: 0; }
.cell-media .cell-bg img { width: 100%; height: 100%; object-fit: cover; }
.cell-media .cell-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(13, 6, 32, 0.97) 20%, rgba(13, 6, 32, 0.6) 62%, rgba(13, 6, 32, 0.25) 100%);
}
.cell-media > *:not(.cell-bg) { position: relative; z-index: 1; }
.cell-media p { color: var(--lavender); }

/* -- Subscribe band ------------------------------------------------------- */

.band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-media);
  border: 1px solid var(--border);
  padding: clamp(2.4rem, 6vw, 4rem);
  text-align: center;
}
.band-bg { position: absolute; inset: 0; z-index: 0; }
.band-bg img { width: 100%; height: 100%; object-fit: cover; }
.band-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 6, 32, 0.82), rgba(13, 6, 32, 0.94));
}
.band-inner { position: relative; z-index: 1; width: var(--shell-narrow); margin-inline: auto; }
.band-inner h2 { margin-bottom: 0.8rem; }
.band-inner .btn { margin-top: 1.4rem; }

/* -- Steps (pricing / unsubscribe) ---------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.step {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.7rem 1.5rem;
}
.step-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(237, 20, 91, 0.5);
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.step-dot svg { width: 17px; height: 17px; }
.step h3 { font-size: 1.05rem; }
.step p { font-size: 0.93rem; margin-bottom: 0; }

/* -- Pricing cards -------------------------------------------------------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}
.pricing-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(170deg, var(--surface-2), var(--surface));
  padding: 1.9rem 1.6rem;
  display: flex;
  flex-direction: column;
}
.pricing-card:hover { border-color: var(--border-strong); }
.price-operator {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lavender);
  margin-bottom: 1.1rem;
}
.price-amount { display: flex; align-items: baseline; gap: 0.45rem; flex-wrap: wrap; }
.price-val {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1;
}
.price-freq { margin: 0; color: var(--muted); font-size: 0.95rem; }
.price-trial { margin-top: 0.7rem; color: var(--lavender); font-size: 0.9rem; }
.price-note { margin-top: 1.1rem; font-size: 0.88rem; }
.price-note strong { color: var(--text); font-family: 'Sora', ui-monospace, monospace; letter-spacing: 0.06em; }
.pricing-card .btn { margin-top: auto; align-self: flex-start; }
.pricing-card .price-list { margin: 1.2rem 0 1.6rem; list-style: none; display: grid; gap: 0.5rem; }
.pricing-card .price-list li {
  position: relative;
  padding-inline-start: 1.3rem;
  font-size: 0.92rem;
  color: var(--muted);
}
.pricing-card .price-list li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid var(--accent);
}

/* -- Opt-out box + refund list -------------------------------------------- */

.optout-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 1.6rem; align-items: start; }

.optout-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.8rem 1.6rem;
}
.optout-op {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lavender);
  margin: 1.5rem 0 0.6rem;
}
.optout-op:first-of-type { margin-top: 0.8rem; }
.sms-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  border: 1px dashed rgba(237, 20, 91, 0.45);
  background: var(--accent-soft);
  border-radius: var(--radius-input);
  padding: 0.9rem 1.1rem;
}
.sms-label { font-size: 0.85rem; color: var(--muted); }
.sms-keyword {
  font-family: 'Sora', ui-monospace, monospace;
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 1.1rem;
  color: var(--text);
}
/* The arrow follows the reading direction, so the Arabic box reads keyword
   then short code from right to left like the sentence around it. */
.sms-arrow { color: var(--accent); }
.sms-arrow::before { content: '\2192'; }
[dir='rtl'] .sms-arrow::before { content: '\2190'; }
.sms-dest {
  font-family: 'Sora', ui-monospace, monospace;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.sms-notes { display: grid; gap: 0.4rem; margin-top: 1.2rem; list-style: none; }
.sms-notes li { font-size: 0.88rem; color: var(--muted); padding-inline-start: 1.2rem; position: relative; }
.sms-notes li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0.7em;
  width: 8px;
  height: 1px;
  background: var(--violet);
}

.refund-list { list-style: none; display: grid; gap: 0.85rem; }
.refund-list li {
  position: relative;
  padding-inline-start: 1.5rem;
  color: var(--muted);
  font-size: 0.94rem;
}
.refund-list li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.75;
}

/* -- About page ----------------------------------------------------------- */

.vision {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-media);
  border: 1px solid var(--border);
  padding: clamp(2.2rem, 5vw, 3.6rem);
}
.vision-bg { position: absolute; inset: 0; z-index: 0; }
.vision-bg img { width: 100%; height: 100%; object-fit: cover; }
.vision-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(13, 6, 32, 0.95) 30%, rgba(13, 6, 32, 0.6) 100%);
}
.vision-inner { position: relative; z-index: 1; width: min(680px, 100%); }
.vision-inner p { color: var(--lavender); font-size: 1.02rem; }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.value {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.7rem 1.5rem;
}
.value-icon { width: 32px; height: 32px; color: var(--accent); margin-bottom: 0.9rem; }
.value-icon svg { width: 100%; height: 100%; }
.value p { font-size: 0.93rem; margin-bottom: 0; }

.about-lede { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.about-lede p { font-size: 1rem; }

/* -- FAQ ------------------------------------------------------------------ */

.faq-list { display: grid; gap: 0.7rem; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 3rem 1.15rem 1.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  position: absolute;
  inset-inline-end: 1.3rem;
  top: 1.5rem;
  width: 10px;
  height: 10px;
  border-inline-end: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(-135deg); top: 1.8rem; }
.faq-item[open] { border-color: var(--border-strong); }
.faq-body { padding: 0 1.4rem 1.35rem; color: var(--muted); font-size: 0.95rem; }

[dir='rtl'] .faq-item summary { padding: 1.15rem 1.4rem 1.15rem 3rem; }

/* -- Forms (contact + sign-in) -------------------------------------------- */

.form-card,
.contact-form {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(1.6rem, 4vw, 2.4rem);
}
.form-card.narrow { width: min(520px, 100%); margin-inline: auto; }

.form-group { margin-bottom: 1.1rem; }
.contact-form h3,
.form-card h3 { margin-bottom: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.signin-card button,
.form-card button { margin-top: 0.5rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-group label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-input);
  padding: 0.75rem 0.9rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted); opacity: 1; }
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(237, 20, 91, 0.18);
}

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

.care-block { margin-bottom: 2.2rem; }
.care-block a { color: var(--accent); }

/* -- 404 ------------------------------------------------------------------ */

.not-found { padding: clamp(4rem, 12vw, 8rem) 0; text-align: center; }
.big-num {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 16vw, 9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.06em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--violet);
  margin: 0 0 0.6rem;
}
.not-found .btn { margin-top: 1.6rem; }

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

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(21, 10, 43, 0.6);
  padding: 3.4rem 0 2rem;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2.4rem;
}
.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand p { font-size: 0.93rem; }
.footer-entity {
  margin-top: 1.2rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
}
.footer-care { margin-top: 0.9rem; font-size: 0.88rem; color: var(--muted); }
.footer-care a { color: var(--accent); }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lavender);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: grid; gap: 0.55rem; }
.footer-col a { font-size: 0.9rem; color: var(--muted); }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 2.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p { margin: 0; font-size: 0.82rem; }
.footer-version { color: var(--violet); font-size: 0.78rem; letter-spacing: 0.08em; }

/* -- Legal pages (shared partials) ---------------------------------------- */

.legals-wrap { padding: 3.5rem 0; }
.legals { padding-top: calc(var(--header-h) + 3rem); padding-bottom: 5rem; }
/* Our legal pages carry their own page-hero, so the partial does not also need
   to clear the sticky header. Keeps the block above intact for a bare mount. */
.legals-wrap .legals { padding-top: 0; }
.legals .container { width: min(840px, 92vw); margin-inline: auto; }
.legals h1 { display: none; }
.legals h6 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin: 2rem 0 0.5rem;
  font-family: var(--font-display);
}
.legals p { margin-bottom: 0.85rem; line-height: 1.75; }
.legals ul { margin: 0.5rem 0 1rem; padding-inline-start: 1.2rem; }
.legals li { margin-bottom: 0.4rem; line-height: 1.7; }
.legals a { color: var(--accent); word-break: break-word; }
.legals table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.legals td, .legals th { border: 1px solid var(--border); padding: 0.5rem 0.7rem; font-size: 0.9rem; }

/* -- Scroll reveal (gated on html.js so no-JS visitors see everything) ----- */

html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
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; }
  html.js .aperture-ring { animation: none; }
  .pano-frame img,
  .cell,
  .btn { transition: none; }
}

/* -- RTL ------------------------------------------------------------------ */

[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'] .phone-row { direction: ltr; }
[dir='rtl'] .form-card.narrow .form-group label { text-align: center; }
[dir='rtl'] .price-amount { direction: ltr; justify-content: flex-end; }
[dir='rtl'] .footer-version { direction: ltr; }
[dir='rtl'] .aperture-ring::after { inset-inline-start: auto; inset-inline-end: -5px; }

/* -- Responsive ----------------------------------------------------------- */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .aperture { order: -1; width: min(100%, 380px); }
  .hairline-grid { grid-template-columns: repeat(2, 1fr); }
  .hairline-item:nth-child(3n + 1) { border-inline-start: 1px solid var(--border); padding-inline-start: 1.6rem; }
  .hairline-item:nth-child(2n + 1) { border-inline-start: 0; padding-inline-start: 0; }
  .bento { grid-template-columns: repeat(4, 1fr); }
  .cell-wide,
  .cell-full { grid-column: span 4; }
  .optout-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .about-lede { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .rail { padding-inline: 4vw; scroll-padding-inline: 4vw; }
}

@media (max-width: 640px) {
  /* Single column: no item is a second column, so every vertical rule goes.
     Selectors are specific enough to beat the `+ .hairline-item` base rule. */
  .hairline-grid { grid-template-columns: 1fr; }
  .hairline-grid .hairline-item,
  .hairline-grid .hairline-item + .hairline-item,
  .hairline-grid .hairline-item:nth-child(3n + 1),
  .hairline-grid .hairline-item:nth-child(2n + 1) { border-inline-start: 0; padding-inline-start: 0; }
  .bento { grid-template-columns: 1fr; }
  .cell,
  .cell-wide,
  .cell-full { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .pano { flex: 0 0 86vw; }
}
