/* SeatFlow landing — "a darkened reception hall, warm pools of candlelight".
   Palette and type carried over from the app so the site and product read as
   one thing. Cormorant Garamond sets the editorial display; Manrope does the
   work of body and labels. */

:root {
  --ink: #15101b;
  --ink-soft: #1d1626;
  --ink-center: #241a2e;
  --vignette: #0e0a12;
  --ivory: #f4e8cf;
  --champagne: #dcc089;
  --glow: #e9c57a;
  --gold: #c9a24b;
  --gold-bright: #ebcb85;
  --gold-deep: #9a742c;
  --text-ivory: #efe7d6;
  --text-muted: #9c9088;
  --text-faint: #6e6560;
  --glass: rgba(26, 20, 32, 0.72);
  --glass-border: rgba(201, 162, 75, 0.28);
  --hair: rgba(239, 231, 214, 0.1);

  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --maxw: 1160px;
  --gutter: clamp(20px, 5vw, 56px);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--body);
  color: var(--text-ivory);
  background: var(--ink);
  /* candlelight pooling toward the top, room falling into shadow at the edges */
  background-image:
    radial-gradient(120% 80% at 50% -10%, var(--ink-center) 0%, var(--ink-soft) 38%, var(--ink) 70%),
    radial-gradient(90% 60% at 80% 110%, rgba(201, 162, 75, 0.06), transparent 60%);
  background-attachment: fixed;
  line-height: 1.6;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

a { color: inherit; text-decoration: none; }

/* Hidden off the top (not the side) so it never creates horizontal overflow —
   which in RTL would invert into phantom width and shift the whole page. */
.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  background: var(--gold);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 100;
  font-weight: 600;
  transition: top 0.15s ease;
}
.skip:focus { top: 12px; }

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

/* ---- shared atoms ---- */

.eyebrow {
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.9rem;
}

.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 120px) var(--gutter);
}
.section--alt {
  max-width: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 30%),
    rgba(14, 10, 18, 0.55);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.section--alt > * { max-width: var(--maxw); margin-inline: auto; }

.section-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  max-width: 16ch;
}
.section-sub {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  color: var(--text-muted);
  max-width: 52ch;
  margin: -0.2em 0 0;
}

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

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px var(--gutter);
  backdrop-filter: blur(10px);
}
.site-head::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(14, 10, 18, 0.5);
  border-bottom: 1px solid var(--hair);
  z-index: -1;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  color: var(--text-ivory);
}
.wordmark-mark {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--ivory), var(--gold) 70%);
  box-shadow: 0 0 14px 2px rgba(233, 197, 122, 0.55);
  flex: none;
}

.site-nav {
  display: flex;
  gap: 26px;
  margin-inline-start: auto;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.site-nav a { transition: color 0.2s; }
.site-nav a:hover { color: var(--text-ivory); }

/* Language menu — a no-JS disclosure that scales to any number of locales. */
.langs { position: relative; flex: none; }
.langs-toggle {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--glass);
  color: var(--text-ivory);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.langs-toggle::-webkit-details-marker { display: none; }
.langs-caret { width: 13px; height: 13px; opacity: 0.7; transition: transform 0.2s; }
.langs[open] .langs-caret { transform: rotate(180deg); }
.langs-list {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  min-width: 188px;
  display: grid;
  gap: 2px;
  padding: 6px;
  background: #1a1422;
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  box-shadow: 0 22px 54px -18px rgba(0, 0, 0, 0.85);
  z-index: 60;
}
.langs-list a {
  padding: 9px 13px;
  border-radius: 9px;
  font-size: 0.92rem;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.18s, background 0.18s;
}
.langs-list a:hover { color: var(--text-ivory); background: rgba(255, 255, 255, 0.05); }
.langs-list a[aria-current="true"] {
  color: var(--ink);
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  font-weight: 600;
}

/* ---- hero ---- */

.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(36px, 6vw, 72px) var(--gutter) clamp(20px, 3vw, 36px);
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.hero-copy { animation: rise 0.7s ease both; }
.hero-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.7rem, 7vw, 5.1rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin: 0 0 0.42em;
}
.hero-sub {
  font-size: clamp(1.05rem, 1.9vw, 1.32rem);
  color: var(--text-muted);
  max-width: 42ch;
  margin: 0 0 2rem;
}

.hero-cta { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.hero-cta--center { align-items: center; margin-top: 2.2rem; }
.cta-note { font-size: 0.86rem; color: var(--text-faint); margin: 0; }

/* App Store badge */
.appstore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-radius: 14px;
  background: linear-gradient(180deg, #1a1422, #120d18);
  border: 1px solid var(--glass-border);
  color: var(--text-ivory);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s;
}
.appstore--lg { padding: 14px 26px; }
a.appstore:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: 0 18px 40px -14px rgba(201, 162, 75, 0.4);
}
.appstore--soon { cursor: default; opacity: 0.96; }
.appstore-glyph { width: 26px; height: 26px; color: var(--text-ivory); flex: none; }
.appstore-glyph svg { width: 100%; height: 100%; display: block; }
.appstore-text { display: flex; flex-direction: column; line-height: 1.15; text-align: start; }
.appstore-line1 {
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.appstore-line2 { font-size: 1.02rem; font-weight: 600; }

/* hero artwork — the hall plan */
.hero-stage { animation: rise 0.9s 0.1s ease both; }
.hall {
  position: relative;
  border-radius: 28px;
  padding: 10px;
  background: linear-gradient(180deg, rgba(201, 162, 75, 0.16), rgba(201, 162, 75, 0.02));
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--hair);
}
.hall::before {
  content: "";
  position: absolute;
  inset: -40px -30px 20px;
  background: radial-gradient(60% 50% at 50% 35%, rgba(233, 197, 122, 0.16), transparent 70%);
  z-index: -1;
  filter: blur(6px);
}
.hall svg { display: block; width: 100%; height: auto; border-radius: 22px; }

/* keyword chips */
.chips {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 6px var(--gutter) 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 7px 14px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.014);
}

/* ---- steps ---- */

.steps {
  list-style: none;
  margin: 2.4rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
  counter-reset: none;
}
.step {
  position: relative;
  padding-top: 22px;
  border-top: 1px solid var(--glass-border);
}
.step-n {
  font-family: var(--display);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
  display: block;
  margin-bottom: 0.7rem;
}
.step .eyebrow { margin-bottom: 0.5rem; }
.step-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.6rem;
  margin: 0 0 0.5rem;
}
.step-body { color: var(--text-muted); margin: 0; font-size: 0.98rem; }

/* ---- features ---- */

.features {
  margin-top: 2.4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
  border-radius: 18px;
  overflow: hidden;
}
.feature {
  padding: clamp(24px, 3vw, 34px);
  background: rgba(20, 15, 26, 0.9);
  transition: background 0.25s;
}
.feature:hover { background: rgba(36, 26, 46, 0.9); }
.feature-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.42rem;
  margin: 0 0 0.5rem;
  color: var(--text-ivory);
}
.feature-body { color: var(--text-muted); margin: 0; font-size: 0.95rem; }

/* ---- who ---- */

.who-tags { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.who-tag {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text-ivory);
  padding: 8px 20px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--glass);
}

/* ---- faq ---- */

.faq { margin-top: 2.2rem; max-width: 760px; }
.faq-item {
  border-top: 1px solid var(--hair);
  padding: 6px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--hair); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding-block: 18px;
  padding-inline: 0 36px;
  position: relative;
  font-family: var(--display);
  font-size: 1.34rem;
  font-weight: 600;
  color: var(--text-ivory);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  inset-inline-end: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--body);
  font-size: 1.5rem;
  color: var(--gold);
  transition: transform 0.2s;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 0 0 18px; color: var(--text-muted); max-width: 60ch; }

/* ---- final cta ---- */

.final { text-align: center; }
.final-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.04;
  margin: 0 auto 0.5em;
  max-width: 18ch;
}
.final-sub {
  color: var(--text-muted);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  max-width: 50ch;
  margin: 0 auto;
}

/* ---- footer ---- */

.site-foot {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) 56px;
  border-top: 1px solid var(--hair);
  display: grid;
  gap: 22px;
}
.foot-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 22px; }
.foot-tag { color: var(--text-muted); margin: 0; font-size: 0.95rem; max-width: 44ch; }
.foot-langs { display: flex; flex-wrap: wrap; gap: 18px; font-size: 0.9rem; color: var(--text-muted); }
.foot-langs a { transition: color 0.2s; }
.foot-langs a:hover { color: var(--text-ivory); }
.foot-legal { color: var(--text-faint); font-size: 0.82rem; margin: 0; }

/* ---- motion ---- */

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- right-to-left (Arabic) ---- */

/* Arabic isn't covered by Cormorant/Manrope — swap in Amiri + Cairo, and drop
   letter-spacing/uppercase everywhere (both break or do nothing in Arabic). */
[lang="ar"] {
  --display: "Amiri", "Cormorant Garamond", Georgia, serif;
  --body: "Cairo", system-ui, sans-serif;
}
[lang="ar"] .eyebrow,
[lang="ar"] .appstore-line1,
[lang="ar"] .langs-toggle {
  letter-spacing: normal;
  text-transform: none;
}
/* The hero title sits a touch tighter in Latin; Arabic needs normal tracking
   and a little more line height for its taller glyphs. */
[lang="ar"] .hero-title { letter-spacing: normal; line-height: 1.12; }

/* ---- responsive ---- */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: start; }
  .hero-stage { order: -1; max-width: 520px; }
  .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .site-nav { display: none; }
}

@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .hero-cta { align-items: stretch; }
  .appstore { justify-content: center; }
  .wordmark { font-size: 1.2rem; }
}
