:root {
  --tangerine: #FF7A3D;
  --tangerine-dark: #E8652B;
  --tangerine-soft: #FFE8DC;
  --sun: #FFD45C;
  --sun-soft: #FFF4D1;
  --lilac: #A78BFA;
  --lilac-soft: #EDE7FD;
  --charcoal: #1F1F23;
  --sand: #F9EEE6;
  --sand-deep: #F1E2D6;
  --muted: #6B6B70;
  --faint: #9A9A9E;
  --border: rgba(31, 31, 35, 0.10);
  --white: #FFFFFF;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif; background: var(--sand); color: var(--charcoal); line-height: 1.5; }
a { color: var(--tangerine-dark); }
a:hover { color: var(--charcoal); }
img { max-width: 100%; display: block; }

/* Language blocks: hide every block that is not the active language; shown ones keep their own display. */
html:not([lang="tr"]) [data-lang="tr"],
html:not([lang="en"]) [data-lang="en"],
html:not([lang="es"]) [data-lang="es"] { display: none !important; }

.wrap { width: min(100% - 32px, 1040px); margin: 0 auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Floating glass nav ---------- */
.topbar { position: fixed; top: 14px; left: 0; right: 0; z-index: 30; display: flex; justify-content: center; padding: 0 12px; pointer-events: none; }
.pill {
  pointer-events: auto;
  display: flex; align-items: center; gap: 18px;
  height: 56px; padding: 0 8px 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: saturate(1.4) blur(6px);
  backdrop-filter: saturate(1.4) blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: rgba(0,0,0,0.04) 0 1px 2px, rgba(0,0,0,0.08) 0 12px 32px, rgba(255,255,255,0.7) 0 1px 0 inset;
  max-width: 100%;
}
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--charcoal); font-weight: 800; font-size: 16px; letter-spacing: -0.2px; padding-right: 8px; }
.brand img { width: 30px; height: 30px; border-radius: 9px; }
.nav { display: flex; align-items: center; gap: 8px; }
.nav a { color: var(--charcoal); text-decoration: none; font-weight: 600; font-size: 14px; padding: 0 16px; border-radius: 999px; height: 40px; display: inline-flex; align-items: center; white-space: nowrap; transition: background .15s, color .15s; }
.nav a:hover { background: rgba(255,255,255,0.55); }
.nav a[aria-current="page"] { background: rgba(255,255,255,0.85); box-shadow: 0 1px 2px rgba(0,0,0,0.06); }
.store { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px 0 14px; border-radius: 999px; background: var(--charcoal); color: var(--white) !important; font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; margin-left: 4px; }
.store:hover { background: #000; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; padding: 132px 0 40px; min-height: 86vh; }
.hero h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.0; letter-spacing: -1.8px; font-weight: 800; margin: 0 0 18px; }
.hero h1 em { font-style: normal; color: var(--tangerine); }
.hero p { font-size: 18px; color: var(--muted); margin: 0 0 28px; max-width: 460px; }
.cta { display: inline-flex; align-items: center; gap: 10px; height: 58px; padding: 0 24px; border-radius: var(--radius); background: var(--tangerine); color: var(--white) !important; font-weight: 700; font-size: 17px; text-decoration: none; box-shadow: 0 10px 24px rgba(255,122,61,0.35); white-space: nowrap; }
.cta:hover { background: var(--tangerine-dark); }
.cta.ghost { background: var(--white); color: var(--charcoal) !important; box-shadow: none; border: 1.5px solid var(--border); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* iPhone mockup */
.phone { position: relative; margin: 0 auto; width: 320px; max-width: 100%; padding: 10px 0; }
.phone .blob { position: absolute; z-index: 0; border-radius: 50%; }
.phone .blob.a { width: 260px; height: 260px; background: var(--tangerine-soft); right: -70px; top: -40px; }
.phone .blob.b { width: 180px; height: 180px; background: var(--lilac-soft); left: -60px; bottom: 30px; }
.frame { position: relative; z-index: 1; width: 300px; max-width: 100%; margin: 0 auto; padding: 6px; border-radius: 48px; background: #050507; border: 2px solid #62646a; box-shadow: #17181c 0 0 0 1px inset, #202125 0 0 0 1px, rgba(0,0,0,0.42) 0 24px 48px -18px; }
.frame .btn { position: absolute; width: 3px; border-radius: 2px; background: linear-gradient(90deg, #75777d, #27282d); left: -5px; }
.frame .mute { top: 96px; height: 24px; }
.frame .vol1 { top: 134px; height: 42px; }
.frame .vol2 { top: 186px; height: 42px; }
.frame .power { left: auto; right: -5px; top: 150px; height: 66px; background: linear-gradient(270deg, #75777d, #27282d); }
.screen { position: relative; background: var(--sand); border-radius: 40px; padding: 54px 16px 26px; overflow: hidden; min-height: 600px; }
.screen img.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.island { position: absolute; top: 12px; left: 50%; width: 92px; height: 28px; transform: translateX(-50%); background: #0a0a0c; border-radius: 999px; z-index: 2; }
.hero-phone .screen { min-height: 0; padding: 0; aspect-ratio: 1170 / 2532; container-type: inline-size; }
.hero-phone .screen img.shot { object-fit: contain; }

/* ---------- Sections ---------- */
.block { padding: 56px 0; }
.eyebrow { display: inline-block; font-weight: 800; font-size: 12px; letter-spacing: 1.2px; color: var(--tangerine-dark); background: var(--tangerine-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 14px; }
.chip { display: inline-block; font-weight: 600; font-size: 12px; color: var(--muted); background: var(--white); border: 1px solid var(--border); padding: 6px 12px; border-radius: 999px; margin-bottom: 20px; }
.contact { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 28px; align-items: center; background: var(--white); border: 1px solid var(--border); border-radius: 28px; padding: 32px; position: relative; overflow: hidden; margin-bottom: 20px; }
.contact > * { position: relative; z-index: 1; }
.contact-ic { width: 48px; height: 48px; border-radius: 16px; background: var(--sun-soft); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.contact h3 { margin: 0 0 8px; font-size: 26px; letter-spacing: -0.5px; }
.contact p { margin: 0 0 12px; color: var(--muted); font-size: 15px; max-width: 520px; }
.contact .email { display: inline-block; font-weight: 800; font-size: 24px; letter-spacing: -0.4px; color: var(--charcoal); text-decoration: none; }
.contact .email:hover { color: var(--tangerine-dark); }
.contact-actions { display: flex; flex-direction: column; gap: 12px; }
.cta-col { display: flex; flex-direction: column; gap: 10px; }
.cta-col .cta { justify-content: center; }
.cta.dark { background: var(--charcoal); color: var(--white) !important; box-shadow: none; }
.cta.dark:hover { background: #000; }
.contact .meta { margin: 2px 4px 0; text-align: center; font-size: 12px; line-height: 1.45; color: var(--faint); }
.faq.panel { padding: 8px 26px 14px; }
.faq h3.sub { margin: 16px 0 6px; }
.legal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.lcard { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 22px 20px; }
.lcard .ic { width: 42px; height: 42px; border-radius: 14px; background: var(--sand); color: var(--tangerine-dark); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
#terms .lcard .ic { background: var(--lilac-soft); color: #7C5CE0; }
.lcard h3 { margin: 0 0 6px; font-size: 17px; }
.lcard p { margin: 0; color: var(--muted); font-size: 15px; }
h2.section { font-size: clamp(28px, 4vw, 36px); letter-spacing: -0.8px; margin: 0 0 20px; }
.lead { color: var(--muted); font-size: 18px; margin: 0 0 24px; max-width: 640px; }
.meta { color: var(--faint); font-size: 13px; }
h3.sub { font-size: 20px; margin: 32px 0 12px; }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 8px 0 24px; }
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card .ic { width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.card .ic.t { background: var(--tangerine-soft); } .card .ic.l { background: var(--lilac-soft); } .card .ic.s { background: var(--sun-soft); }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step { display: flex; flex-direction: column; gap: 28px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; min-width: 0; }
.step-copy { display: flex; gap: 14px; align-items: flex-start; }
.step-phone { width: 260px; margin-top: auto; padding: 0 0 8px; }
.step-phone .frame { width: 100%; border-radius: 40px; padding: 5px; box-shadow: #17181c 0 0 0 1px inset, #202125 0 0 0 1px, rgba(0,0,0,0.20) 0 16px 26px -14px; }
.step-phone .screen { min-height: 0; padding: 0; aspect-ratio: 1170 / 2532; border-radius: 33px; container-type: inline-size; }
.step-phone .island { top: 8px; width: 78px; height: 23px; }
.step-phone .screen img.shot { object-fit: contain; }
.capture-status { position: absolute; inset: 0 0 auto; height: 7%; background: var(--sand); display: flex; justify-content: space-between; align-items: flex-start; padding: 4.4% 7.5% 0; color: #111; font: 600 4.4cqw/1 system-ui, sans-serif; }
.capture-status svg { width: 23%; height: auto; }
.step .n { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--tangerine-soft); color: var(--tangerine-dark); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.step h3 { margin: 4px 0 4px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

.panel { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 26px; }
.panel h3 { margin: 0 0 8px; font-size: 20px; }
.panel p { margin: 0 0 16px; }
.panel .meta { margin: 14px 0 0; }
.faq details { border-top: 1px solid var(--border); padding: 14px 0; }
.faq details:first-of-type { border-top: 0; padding-top: 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--faint); font-weight: 700; font-size: 20px; }
.faq details[open] summary::after { content: '–'; }
.faq p { color: var(--muted); margin: 8px 0 0; }


/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); margin-top: 32px; padding: 28px 0 44px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--faint); font-size: 13px; }
.foot-links a { color: var(--muted); text-decoration: none; margin-right: 16px; }
.foot-links a:hover { color: var(--charcoal); }
.lang { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 0 32px 0 14px; height: 40px; border-radius: 999px; background: var(--white); border: 1px solid var(--border); color: var(--charcoal); font-weight: 700; font-size: 13px; }
.lang:hover { border-color: rgba(31,31,35,0.25); }
/* The real select sits invisibly over the whole pill so a tap anywhere opens the native menu. */
.lang select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.lang::after { content: ''; position: absolute; right: 14px; top: 50%; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-70%) rotate(45deg); pointer-events: none; }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr 1fr; gap: 28px; padding-top: 120px; min-height: 0; }
  .phone { width: 280px; }
  .features, .steps { gap: 12px; }
  .card, .step { padding: 18px; }
  .contact { grid-template-columns: 1fr; }
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  html { scroll-padding-top: 84px; }
  body { overflow-x: clip; }
  .topbar { top: 10px; left: 16px; right: auto; width: calc(100vw - 32px); padding: 0; }
  .pill { width: 100%; min-width: 0; justify-content: space-between; padding: 6px 6px 6px 10px; gap: 4px; }
  .brand span { display: none; }
  .brand { flex: none; padding-right: 0; }
  .nav { flex: 1; min-width: 0; justify-content: center; gap: 6px; overflow: hidden; }
  .store { flex: none; }
  .nav a[data-section="top"] { display: none; }
  .nav a { flex: 1; min-width: 0; height: 40px; padding: 0 5px; font-size: 12px; line-height: 1.2; white-space: normal; text-align: center; justify-content: center; }
  .store span { display: none; }
  .store { width: 36px; padding: 0; margin-left: 0; height: 36px; justify-content: center; }
  .hero { grid-template-columns: 1fr; padding: 96px 0 24px; gap: 28px; text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .cta-row { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; margin: 0 auto; }
  .cta-row .cta { width: 100%; min-height: 58px; height: auto; padding: 14px 18px; justify-content: center; white-space: normal; }
  .cta-row .cta svg { flex: none; }
  .phone { width: 270px; }
  .hero-phone .blob.a { top: 0; }
  .island { width: 80px; height: 24px; top: 12px; }
  .features, .steps, .legal-grid { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; padding: 22px; }
  .block { padding: 40px 0; }
  .frame { width: 270px; }
  .screen { min-height: 540px; }
  .panel { padding: 20px; }
  .footer { flex-direction: column; align-items: flex-start; }
  .footer .lang { align-self: flex-end; }
}
