/* ============================================================
   DebateDrive — Marketing site styles
   Brand identity palette (navy + orange on cream), RTL.
   Distinct from the dark in-app theme.
   ============================================================ */

.site {
  --ink:        #14233a;
  --ink-soft:   #46586f;
  --ink-faint:  #7a8aa0;
  --cream:      #FBFAF7;
  --cream-2:    #F4F0E9;
  --line:       #e7e2d8;
  --navy:       var(--brand-navy);
  --navy-deep:  var(--brand-navy-deep);
  --orange:     var(--brand-orange);
  --orange-deep:var(--brand-orange-deep);

  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  flex-direction: row-reverse;
  font-family: var(--font-sans); font-weight: var(--weight-bold); font-size: 17px;
  padding: 15px 28px; border-radius: var(--radius-pill); border: 2px solid transparent;
  cursor: pointer; transition: transform .18s var(--ease-spring), box-shadow .2s, background .2s, color .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(.96); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(243,156,18,.32); }
.btn-primary:hover { background: var(--orange-deep); box-shadow: 0 10px 26px rgba(243,156,18,.4); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); }
.btn-ghost { background: transparent; color: var(--navy); border-color: rgba(27,79,114,.25); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--cream-2); }

/* ---------- Store buttons ---------- */
.stores { display: flex; gap: 14px; flex-wrap: wrap; }
.store {
  display: inline-flex; align-items: center; gap: 12px; flex-direction: row-reverse;
  padding: 12px 20px 12px 22px; border-radius: 16px; cursor: pointer;
  background: #111827; color: #fff; border: 1px solid rgba(255,255,255,.12);
  transition: transform .18s var(--ease-spring), box-shadow .2s, opacity .2s;
  min-width: 200px;
}
.store:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.28); }
.store:active { transform: scale(.97); }
.store .ico { width: 30px; height: 30px; flex-shrink: 0; }
.store .txt { text-align: right; line-height: 1.15; }
.store .txt small { display: block; font-size: 11px; opacity: .72; font-weight: 500; }
.store .txt strong { display: block; font-size: 18px; font-weight: var(--weight-bold); }
.store.soon { background: #fff; color: var(--navy); border-color: var(--line); }
.store.soon .badge { font-size: 10px; font-weight: 800; color: var(--orange-deep); background: rgba(243,156,18,.14); padding: 3px 8px; border-radius: 999px; }

/* ---------- Header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px; transition: background .25s, box-shadow .25s, padding .25s;
}
.hdr.scrolled { background: rgba(251,250,247,.9); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); padding: 10px 32px; }
.hdr .brand { display: flex; align-items: center; gap: 12px; }
.hdr .brand img { height: 46px; width: 46px; border-radius: 12px; }
.hdr .brand b { font-size: 21px; font-weight: var(--weight-black); letter-spacing: -.5px; color: var(--navy); }
.hdr .brand b span { color: var(--orange); }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-size: 15px; font-weight: var(--weight-medium); color: var(--ink-soft); transition: color .15s; }
.nav a:hover { color: var(--navy); }
.hdr .right { display: flex; align-items: center; gap: 16px; }
.menu-btn { display: none; background: none; border: none; cursor: pointer; color: var(--navy); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff; padding: 70px 0 90px;
}
.hero::before { content:''; position: absolute; top: -160px; inset-inline-start: -120px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(243,156,18,.22), transparent 65%); pointer-events: none; }
.hero::after { content:''; position: absolute; bottom: -200px; inset-inline-end: -160px; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(96,165,250,.16), transparent 68%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-copy .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: var(--weight-bold); color: var(--orange); background: rgba(243,156,18,.12); border: 1px solid rgba(243,156,18,.3); padding: 7px 16px; border-radius: 999px; margin-bottom: 22px; }
.hero-copy h1 { margin: 0 0 20px; font-size: 58px; line-height: 1.05; font-weight: var(--weight-black); letter-spacing: -1.5px; }
.hero-copy h1 .hl { color: var(--orange); }
.hero-copy p.lead { margin: 0 0 30px; font-size: 20px; line-height: 1.6; color: rgba(255,255,255,.82); max-width: 520px; }
.hero .trust { display: flex; gap: 22px; margin-top: 26px; flex-wrap: wrap; }
.hero .trust span { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255,255,255,.7); font-weight: var(--weight-medium); }
.hero .trust svg { color: var(--orange); }

/* ---------- Phone mockup ---------- */
.phone-stage { display: flex; justify-content: center; }
.phone {
  position: relative; width: 300px; height: 620px; border-radius: 46px;
  background: #060912; padding: 12px; box-shadow: 0 40px 80px rgba(0,0,0,.45), 0 0 0 2px rgba(255,255,255,.06);
}
.phone .notch { position: absolute; top: 12px; inset-inline: 0; margin: 0 auto; width: 130px; height: 26px; background: #060912; border-radius: 0 0 18px 18px; z-index: 5; }
.screen { position: relative; height: 100%; border-radius: 36px; overflow: hidden; background: linear-gradient(180deg, var(--slate-900), var(--slate-950)); display: flex; flex-direction: column; }
.screen .s-top { padding: 40px 20px 12px; }
.screen .s-top .greet { font-size: 14px; color: var(--slate-400); margin-bottom: 4px; }
.screen .s-top .q { font-size: 28px; font-weight: var(--weight-black); color: #fff; letter-spacing: -.5px; }
.screen .s-sec { font-size: 15px; font-weight: var(--weight-bold); color: #fff; padding: 6px 22px 12px; }
.t-card { position: relative; margin: 0 16px; border-radius: 22px; overflow: hidden; height: 340px; box-shadow: var(--shadow-card); }
.t-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.t-card .scrim { position: absolute; inset: 0; background: var(--grad-scrim); }
.t-card .pill { position: absolute; top: 14px; inset-inline-start: 14px; font-size: 11px; font-weight: var(--weight-bold); color: #fff; background: rgba(37,99,235,.5); border: 1px solid rgba(96,165,250,.7); padding: 5px 11px; border-radius: 999px; }
.t-card .body { position: absolute; inset-inline: 0; bottom: 0; padding: 18px; text-align: right; }
.t-card .body h4 { margin: 0 0 6px; font-size: 24px; font-weight: var(--weight-black); color: #fff; letter-spacing: -.5px; text-shadow: 0 2px 8px rgba(0,0,0,.7); }
.t-card .body p { margin: 0 0 16px; font-size: 13px; line-height: 1.5; color: rgba(255,255,255,.88); text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.t-card .acts { display: flex; gap: 10px; }
.t-btn { flex: 1; text-align: center; padding: 12px 0; border-radius: 14px; font-size: 14px; font-weight: var(--weight-bold); color: #fff; }
.t-btn.for { background: linear-gradient(135deg, #2563eb, #1e40af); }
.t-btn.against { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.screen .tabbar { margin-top: auto; height: 60px; display: flex; align-items: center; justify-content: space-around; background: rgba(15,23,42,.85); border-top: 1px solid rgba(255,255,255,.06); }
.screen .tabbar .tab { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10px; font-weight: var(--weight-bold); color: var(--slate-500); }
.screen .tabbar .tab.on { color: var(--blue-400); }

/* ---------- Section scaffolding ---------- */
section { padding: 96px 0; }
.section-label { display: inline-block; font-size: 14px; font-weight: var(--weight-bold); color: var(--orange-deep); letter-spacing: .5px; margin-bottom: 14px; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { margin: 0 0 16px; font-size: 42px; line-height: 1.12; font-weight: var(--weight-black); letter-spacing: -1px; color: var(--navy); }
.section-head p { margin: 0; font-size: 19px; line-height: 1.6; color: var(--ink-soft); }

/* ---------- Vision ---------- */
.vision { background: var(--cream); }
.vision .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.vision h2 { font-size: 40px; line-height: 1.15; font-weight: var(--weight-black); letter-spacing: -1px; color: var(--navy); margin: 14px 0 22px; }
.vision p { font-size: 18px; line-height: 1.7; color: var(--ink-soft); margin: 0 0 18px; }
.vision .pillars { display: flex; flex-direction: column; gap: 16px; }
.pillar { display: flex; flex-direction: row-reverse; align-items: flex-start; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: 0 6px 18px rgba(20,35,58,.05); }
.pillar .pico { flex-shrink: 0; width: 50px; height: 50px; border-radius: 14px; background: rgba(243,156,18,.12); color: var(--orange-deep); display: flex; align-items: center; justify-content: center; }
.pillar h4 { margin: 2px 0 6px; font-size: 19px; font-weight: var(--weight-bold); color: var(--navy); }
.pillar p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-soft); }

/* ---------- How it works ---------- */
.how { background: #fff; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { position: relative; text-align: center; padding: 36px 28px; border-radius: 24px; background: var(--cream); border: 1px solid var(--line); }
.step .num { position: absolute; top: -18px; inset-inline-end: 28px; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 19px; font-weight: var(--weight-black); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(27,79,114,.3); }
.step .sico { width: 64px; height: 64px; margin: 8px auto 20px; border-radius: 18px; background: rgba(27,79,114,.08); color: var(--navy); display: flex; align-items: center; justify-content: center; }
.step h3 { margin: 0 0 10px; font-size: 22px; font-weight: var(--weight-bold); color: var(--navy); }
.step p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-soft); }

/* ---------- Features ---------- */
.features { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; }
.features .section-head h2 { color: #fff; }
.features .section-head p { color: rgba(255,255,255,.78); }
.fgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 920px; margin: 0 auto; }
.feature { display: flex; flex-direction: row-reverse; align-items: flex-start; gap: 18px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 22px; padding: 28px; transition: background .2s, transform .2s; }
.feature:hover { background: rgba(255,255,255,.08); transform: translateY(-3px); }
.feature .fico { flex-shrink: 0; width: 56px; height: 56px; border-radius: 16px; background: rgba(243,156,18,.16); color: var(--orange); display: flex; align-items: center; justify-content: center; }
.feature h3 { margin: 4px 0 8px; font-size: 21px; font-weight: var(--weight-bold); }
.feature p { margin: 0; font-size: 16px; line-height: 1.6; color: rgba(255,255,255,.74); }

/* ---------- Topics ---------- */
.topics { background: var(--cream); }
.tgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.topic { position: relative; height: 300px; border-radius: 22px; overflow: hidden; box-shadow: 0 10px 28px rgba(20,35,58,.12); transition: transform .25s var(--ease-spring); }
.topic:hover { transform: translateY(-6px); }
.topic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.topic .scrim { position: absolute; inset: 0; background: var(--grad-scrim); }
.topic .body { position: absolute; inset-inline: 0; bottom: 0; padding: 20px; text-align: right; }
.topic .body h4 { margin: 0 0 10px; font-size: 22px; font-weight: var(--weight-black); color: #fff; letter-spacing: -.5px; text-shadow: 0 2px 8px rgba(0,0,0,.7); }
.topic .body .vs { display: inline-flex; gap: 6px; }
.topic .body .vs span { font-size: 11px; font-weight: var(--weight-bold); color: #fff; padding: 4px 11px; border-radius: 999px; }
.topic .body .vs .for { background: var(--green-500); }
.topic .body .vs .ag { background: var(--red-500); }

/* ---------- Testimonials ---------- */
.testimonials { background: #fff; }
.qgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote { background: var(--cream); border: 1px solid var(--line); border-radius: 24px; padding: 32px; position: relative; }
.quote .mark { font-family: Georgia, serif; font-size: 70px; line-height: .6; color: var(--orange); opacity: .5; height: 36px; }
.quote p { font-size: 17px; line-height: 1.65; color: var(--ink); margin: 0 0 24px; font-weight: var(--weight-medium); }
.quote .who { display: flex; flex-direction: row-reverse; align-items: center; gap: 12px; }
.quote .av { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: var(--weight-bold); font-size: 18px; }
.quote .who b { display: block; font-size: 16px; color: var(--navy); }
.quote .who small { display: block; font-size: 13px; color: var(--ink-faint); }

/* ---------- Partners ---------- */
.partners { background: var(--cream); padding: 72px 0; }
.partners .ttl { text-align: center; font-size: 14px; font-weight: var(--weight-bold); color: var(--ink-faint); letter-spacing: 1px; margin-bottom: 32px; }
.plogos { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; }
.plogo { display: flex; align-items: center; gap: 10px; color: var(--ink-faint); opacity: .7; font-weight: var(--weight-bold); font-size: 22px; letter-spacing: -.5px; transition: opacity .2s; }
.plogo:hover { opacity: 1; }
.plogo svg { color: var(--ink-faint); }

/* ---------- Download CTA ---------- */
.download { background: linear-gradient(160deg, var(--navy-deep) 0%, #0d2238 100%); color: #fff; }
.download .inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.download h2 { font-size: 44px; line-height: 1.1; font-weight: var(--weight-black); letter-spacing: -1px; margin: 0 0 18px; }
.download h2 .hl { color: var(--orange); }
.download p { font-size: 19px; line-height: 1.6; color: rgba(255,255,255,.8); margin: 0 0 30px; max-width: 480px; }
.qr-row { display: flex; gap: 18px; justify-content: center; }
.qr-card { background: #fff; border-radius: 20px; padding: 16px; text-align: center; width: 168px; }
.qr-card img { width: 136px; height: 136px; margin: 0 auto 10px; }
.qr-card b { display: block; font-size: 13px; font-weight: 800; color: var(--navy); }
.qr-card small { display: block; font-size: 11px; color: var(--ink-faint); direction: ltr; margin-top: 2px; }

/* ---------- Footer ---------- */
.ftr { background: #0a1a2c; color: rgba(255,255,255,.7); padding: 56px 0 32px; }
.ftr .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.1); }
.ftr .brand { display: flex; align-items: center; gap: 12px; }
.ftr .brand img { width: 48px; height: 48px; border-radius: 12px; }
.ftr .brand b { font-size: 20px; font-weight: var(--weight-black); color: #fff; }
.ftr .brand b span { color: var(--orange); }
.ftr .tag { font-size: 15px; color: rgba(255,255,255,.6); margin-top: 8px; max-width: 280px; }
.ftr .cols { display: flex; gap: 64px; flex-wrap: wrap; }
.ftr .col h5 { font-size: 13px; font-weight: var(--weight-bold); color: rgba(255,255,255,.5); letter-spacing: .5px; margin: 0 0 14px; }
.ftr .col a { display: block; font-size: 15px; color: rgba(255,255,255,.78); margin-bottom: 10px; transition: color .15s; }
.ftr .col a:hover { color: var(--orange); }
.ftr .bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: 13px; color: rgba(255,255,255,.5); }
.ftr .bottom a { direction: ltr; }

/* ---------- Mobile nav ---------- */
.mobile-nav { display: none; }

@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .phone-stage { order: -1; }
  .hero-copy h1 { font-size: 46px; }
  .vision .grid { grid-template-columns: 1fr; gap: 36px; }
  .download .inner { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .download p { margin-inline: auto; }
  .tgrid { grid-template-columns: repeat(2, 1fr); }
  .qgrid { grid-template-columns: 1fr; }
  .nav { display: none; }
  .hdr .right .btn { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-nav { display: none; position: fixed; inset: 0; z-index: 60; background: rgba(10,26,44,.97); flex-direction: column; align-items: center; justify-content: center; gap: 28px; }
  .mobile-nav.open { display: flex; }
  .mobile-nav a { font-size: 24px; font-weight: var(--weight-bold); color: #fff; }
  .mobile-nav .close { position: absolute; top: 24px; inset-inline-start: 24px; background: none; border: none; color: #fff; cursor: pointer; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .hero-copy h1 { font-size: 38px; }
  .section-head h2, .vision h2, .download h2 { font-size: 32px; }
  .steps, .fgrid, .tgrid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .store { min-width: 0; flex: 1; }
}
