/* Spekly intro page, in the Spekly app's own design: black #0b0b0c, gold #d9a94e, glass surfaces,
   raised gold buttons, Space Grotesk headings + Inter body (tokens copied from voice-invoice-app/src/index.css). */
:root {
  --bg: #0b0b0c; --el: #17171a; --gold: #d9a94e; --deep: #b3843a; --hi: #f0c874; --on: #0b0b0c;
  --ink: #f5f2ec; --muted: #9b968d; --pos: #5ee0a0; --neg: #ef8a7c;
  --glass: rgba(28,28,31,.58); --line: rgba(255,255,255,.07); --line2: rgba(255,255,255,.13);
  --total-bg: rgba(30,25,17,.72); --total-border: #3d3222;
  --d: "Space Grotesk", sans-serif; --b: "Inter", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--b); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
h1, h2, h3 { font-family: var(--d); margin: 0; letter-spacing: -.03em; }
p { margin: 0; }
.wrap { max-width: 1140px; margin: 0 auto; padding-inline: 20px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 600 12.5px var(--d); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.kicker span { width: 18px; height: 1px; background: var(--gold); }
h2 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.04; margin: 12px 0 28px; max-width: 18ch; }
h2 span, h1 span { color: var(--gold); }

.tile { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--on); background: linear-gradient(160deg, var(--hi), var(--gold) 55%, var(--deep)); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -2px 0 rgba(0,0,0,.25), 0 10px 30px -6px rgba(217,169,78,.55); flex: none; }
.tile svg { width: 60%; height: 60%; }
.tile.big { width: 64px; height: 64px; border-radius: 18px; }

.gbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px; border-radius: 14px; border: 0; cursor: pointer; text-decoration: none; font: 600 16px var(--d); color: var(--on); background: linear-gradient(180deg, var(--hi), var(--gold)); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 4px 0 var(--deep), 0 14px 30px -10px rgba(217,169,78,.6); transition: transform .15s, box-shadow .15s; white-space: nowrap; }
.gbtn svg { width: 17px; height: 17px; }
.gbtn:active { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 1px 0 var(--deep); }
.gbtn.ghost { color: var(--ink); background: var(--glass); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 0 1px var(--line2); }
.gbtn.sm { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
.glass { background: var(--glass); border: 1px solid var(--line); border-radius: 20px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 24px 50px -30px rgba(0,0,0,.8); }

.top { position: fixed; top: 10px; left: 0; right: 0; z-index: 50; }
.top .bar { max-width: 1140px; margin: 0 auto; width: calc(100% - 20px); display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 8px 0 10px; border-radius: 18px; background: rgba(23,23,26,.72); border: 1px solid var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.back { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; text-decoration: none; color: var(--muted); border: 1px solid var(--line); font-size: 18px; }
.back:hover { color: var(--ink); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand b { font: 700 20px var(--d); letter-spacing: -.02em; }

.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: 100px 0 50px; overflow: hidden; }
.hero .glow { position: absolute; inset: 0; background: radial-gradient(50% 50% at 70% 45%, rgba(217,169,78,.18), transparent 70%), radial-gradient(40% 40% at 10% 10%, rgba(217,169,78,.07), transparent 70%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; align-items: center; }
.hero h1 { font-size: clamp(42px, 6.4vw, 86px); line-height: .98; letter-spacing: -.045em; margin: 18px 0 18px; }
.hero h1[dir="rtl"] { font-family: "Readex Pro", var(--d); letter-spacing: 0; line-height: 1.2; }
.hero h1.ur { font-family: "Noto Nastaliq Urdu", serif; line-height: 1.8; font-size: clamp(32px, 4.6vw, 60px); }
.hero h1.hi { font-family: "Noto Sans Devanagari", var(--d); letter-spacing: 0; line-height: 1.25; }
.sub { color: var(--muted); font-size: clamp(16px, 1.5vw, 18px); max-width: 46ch; margin-bottom: 26px; }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.note { margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.stage3d { position: relative; aspect-ratio: 1; width: min(560px, 100%); justify-self: center; }
.stage3d canvas { position: absolute; inset: -10%; width: 120% !important; height: 120% !important; max-width: none; touch-action: pan-y; }
.stage3d .fallback { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity .5s; }
.stage3d.gl-on .fallback { opacity: 0; }

.s { padding: clamp(70px, 10vw, 120px) 0; border-top: 1px solid var(--line); }
.langs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 14px; background: var(--el); border: 1px solid var(--line); margin-bottom: 18px; }
.langs button { min-height: 40px; padding: 0 14px; border-radius: 10px; border: 0; background: none; color: var(--muted); font: 500 15px var(--b); cursor: pointer; }
.langs button[aria-pressed="true"] { background: linear-gradient(180deg, var(--hi), var(--gold)); color: var(--on); font-weight: 600; }
.langs button[lang="ar"] { font-family: "Readex Pro"; } .langs button[lang="ur"] { font-family: "Noto Nastaliq Urdu"; font-size: 14px; } .langs button[lang="hi"] { font-family: "Noto Sans Devanagari"; }
.demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.voice { display: flex; gap: 18px; align-items: center; padding: 22px; }
.mic { position: relative; width: 76px; height: 76px; border-radius: 50%; border: 0; cursor: pointer; flex: none; color: var(--on); display: grid; place-items: center; background: linear-gradient(160deg, var(--hi), var(--gold) 60%, var(--deep)); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 14px 34px -8px rgba(217,169,78,.7); }
.mic svg { width: 30px; height: 30px; }
.mic.on::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--gold); animation: ring 1.1s infinite; }
@keyframes ring { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
.lbl { font: 600 11.5px var(--d); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.said { font: 600 clamp(19px, 2.4vw, 26px)/1.35 var(--d); min-height: 2.7em; }
.said[dir="rtl"] { font-family: "Readex Pro"; } .said.ur { font-family: "Noto Nastaliq Urdu"; line-height: 2; font-size: clamp(17px, 2vw, 22px); } .said.hi { font-family: "Noto Sans Devanagari"; }
.inv { padding: 20px; border-radius: 20px; background: var(--total-bg); border: 1px solid var(--total-border); font-variant-numeric: tabular-nums; box-shadow: 0 30px 60px -30px rgba(0,0,0,.9); }
.inv .ih { display: flex; justify-content: space-between; font: 600 12px var(--d); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.inv .l, .inv .tot, .inv .owes { opacity: .14; transform: translateY(4px); transition: opacity .4s, transform .4s; }
.inv .show { opacity: 1; transform: none; }
.inv .l { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed rgba(217,169,78,.2); }
.inv .tot { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; color: var(--muted); }
.inv .tot b { font: 700 32px var(--d); color: var(--hi); letter-spacing: -.02em; }
.inv .owes { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(239,138,124,.1); border: 1px solid rgba(239,138,124,.3); color: var(--neg); }
.inv .owes small { display: block; font-size: 12px; color: var(--muted); }
.inv .owes b { font: 700 22px var(--d); }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.f { padding: 22px; transition: transform .3s, border-color .3s; }
.f:hover { transform: translateY(-3px); border-color: rgba(217,169,78,.35); }
.f i { font: 700 13px var(--d); font-style: normal; color: var(--gold); }
.f h3 { font-size: 20px; margin: 8px 0 6px; } .f p { color: var(--muted); font-size: 15px; }
.for { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 26px; }
.for span { color: var(--muted); font-size: 14px; margin-right: 6px; }
.for b { font: 500 14px var(--d); padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line2); background: var(--el); }

.end { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 20px; align-items: center; }
.end-cta { display: grid; gap: 14px; justify-items: start; }
.end-cta h2 { margin: 6px 0 0; } .end-cta p { color: var(--muted); max-width: 40ch; }
.help { padding: 22px; }
.help .who { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.help .who img { width: 48px; height: 48px; border-radius: 14px; object-fit: cover; }
.help .who b { display: block; font: 600 17px var(--d); } .help .who small { color: var(--muted); font-size: 13px; }
.help form { display: grid; gap: 8px; }
.help input { min-height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line2); background: var(--el); color: var(--ink); font: 15px var(--b); }
.help input:focus { outline: none; border-color: var(--gold); }
.msg { font-size: 13.5px; color: var(--muted); min-height: 1.2em; } .msg .ok { color: var(--pos); } .msg a { color: var(--gold); }
footer { border-top: 1px solid var(--line); padding: 26px 0 36px; color: var(--muted); font-size: 13.5px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; } footer a { color: var(--muted); } footer b { color: var(--ink); }

@media (max-width: 860px) {
  .hero { min-height: auto; padding-top: 92px; }
  .hero-grid, .demo, .end { grid-template-columns: 1fr; }
  .stage3d { width: min(340px, 86%); order: -1; margin-bottom: -10px; }
  .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 15px; }
  .wrap { padding-inline: 16px; }
  .top .bar { height: 52px; }
  .brand b { font-size: 18px; }
  .hero h1 { font-size: clamp(34px, 10.5vw, 44px); margin: 12px 0; }
  .sub { font-size: 15px; margin-bottom: 18px; }
  .gbtn { min-height: 46px; font-size: 15px; padding: 0 18px; }
  .stage3d { width: min(260px, 72%); }
  .s { padding: 56px 0; }
  h2 { font-size: clamp(26px, 8vw, 32px); margin-bottom: 20px; }
  .voice { padding: 16px; gap: 14px; } .mic { width: 58px; height: 58px; } .mic svg { width: 24px; height: 24px; }
  .said { font-size: 17px; }
  .inv { padding: 16px; } .inv .tot b { font-size: 26px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 8px; } .f { padding: 14px; border-radius: 16px; } .f h3 { font-size: 15.5px; } .f p { font-size: 13px; }
  .langs button { padding: 0 10px; font-size: 14px; min-height: 36px; }
}
