:root {
  --brand: #706245;
  --brand-700: #594d35;
  --brand-50: #f6f1e7;
  --beige: #ebd9b3;
  --ink: #241f17;
  --text: #211d16;
  --text-2: #5b5345;
  --muted: #8b8274;
  --border: #ece4d6;
  --paper: #ffffff;
  --cream: #faf7f1;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(36, 31, 23, .06);
  --shadow: 0 8px 24px rgba(36, 31, 23, .08);
  --shadow-lg: 0 30px 60px -20px rgba(36, 31, 23, .28);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --lh: 1.6;
  color-scheme: light;
}
html[lang="ckb"], html[lang="ar"], html[lang="fa"] {
  --font: "Vazirmatn", "Noto Sans Arabic", Tahoma, sans-serif;
  --lh: 1.85;
}
html[lang="zh"] {
  --font: "Inter", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --lh: 1.75;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 16px/var(--lh) var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-700); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0; letter-spacing: -.02em; text-wrap: balance; }
html[lang="ckb"] h1, html[lang="ckb"] h2, html[lang="ckb"] h3,
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3,
html[lang="fa"] h1, html[lang="fa"] h2, html[lang="fa"] h3 { letter-spacing: 0; line-height: 1.45; }
p { margin: 0; }
svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.container { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 24px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .86); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, opacity .15s;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.header-inner { height: 68px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 18px; }
.brand:hover { color: var(--ink); }
.brand img { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--border); background: #fff; }
.nav { display: flex; gap: 26px; margin-inline-start: 8px; }
.nav a { color: var(--text-2); font-weight: 500; font-size: 15px; }
.nav a:hover, .nav a.active { color: var(--ink); }
.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; }

.lang {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-2); border: 1px solid var(--border); border-radius: 999px; padding-inline: 12px 10px; height: 38px;
}
.lang:hover { border-color: #d9cfbd; color: var(--ink); }
.lang svg.i { width: 18px; height: 18px; }
.lang select {
  appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: inherit;
  font: 500 14px/1 var(--font); cursor: pointer; padding-inline-end: 16px; outline: none; height: 100%;
}
.lang::after {
  content: ""; position: absolute; inset-inline-end: 12px; top: 50%; width: 6px; height: 6px; margin-top: -5px;
  border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); pointer-events: none;
}
.lang select option { color: var(--text); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding-inline: 20px;
  border-radius: 999px; font: 600 15px/1 var(--font); border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; color: #fff; }
.btn-outline { border-color: var(--border); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: #d9cfbd; color: var(--ink); }
.btn-danger { background: #b42318; color: #fff; }
.btn-danger:hover { background: #912018; color: #fff; }
.btn-sm { height: 38px; padding-inline: 16px; font-size: 14px; }

/* ── Store badges ── */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; height: 54px; padding-inline: 18px 22px;
  background: var(--ink); color: #fff; border-radius: 12px; transition: background .15s, transform .15s;
}
.store:hover { background: #000; color: #fff; transform: translateY(-1px); }
.store svg { width: 26px; height: 26px; fill: currentColor; }
.store span { display: flex; flex-direction: column; line-height: 1.15; text-align: start; }
.store small { font-size: 11px; opacity: .8; }
.store strong { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.stores.light .store { background: #fff; color: var(--ink); }
.stores.light .store:hover { background: var(--brand-50); color: var(--ink); }

/* ── Hero ── */
.hero { position: relative; overflow: hidden; padding-block: 72px 96px; background: linear-gradient(180deg, var(--cream) 0%, #fff 100%); }
.hero::before {
  content: ""; position: absolute; inset-inline-end: -180px; top: -160px; width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(circle, rgba(235, 217, 179, .55) 0%, rgba(235, 217, 179, 0) 70%); pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .02em;
  color: var(--brand); background: var(--brand-50); border: 1px solid #ebe1cd; padding: 6px 12px; border-radius: 999px;
}
.eyebrow svg.i { width: 15px; height: 15px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 60px); font-weight: 700; margin-top: 22px; }
.hero .lede { font-size: 19px; color: var(--text-2); margin-top: 20px; max-width: 540px; }
.hero .stores { margin-top: 34px; }
.hero-note { margin-top: 18px; color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note svg.i { width: 16px; height: 16px; color: var(--brand); }
.hero-visual { position: relative; display: flex; justify-content: center; }

/* ── Phone mockup (mirrors the app's real screens) ── */
.phone {
  position: relative; width: 300px; aspect-ratio: 9 / 19.5; border-radius: 46px; padding: 11px;
  background: #1d1a15; box-shadow: var(--shadow-lg), inset 0 0 0 2px #3a352c; flex-shrink: 0;
}
.phone::before {
  content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px;
  background: #1d1a15; border-radius: 20px; z-index: 3;
}
.screen { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #fff; display: flex; flex-direction: column; font-family: var(--font); }
.status { height: 46px; flex-shrink: 0; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 26px 6px; font: 600 13px/1 -apple-system, "Inter", sans-serif; color: #111; direction: ltr; }
.status-icons { display: flex; gap: 5px; align-items: center; }
.status-icons i { display: block; width: 16px; height: 9px; border-radius: 2px; background: #111; }
.status-icons i:first-child { width: 14px; height: 9px; clip-path: polygon(0 100%, 100% 0, 100% 100%); border-radius: 0; }

.screen.shot { background: var(--beige); }
.screen.shot img { flex: 1; min-height: 0; width: 100%; object-fit: cover; object-position: top; }

.hero-visual .phone.back { position: absolute; transform: translateX(-46%) rotate(-6deg) scale(.88); opacity: .98; z-index: 0; }
html[dir="rtl"] .hero-visual .phone.back { transform: translateX(46%) rotate(6deg) scale(.88); }
.hero-visual .phone.front { transform: translateX(18%); z-index: 1; }
html[dir="rtl"] .hero-visual .phone.front { transform: translateX(-18%); }

/* ── Trust strip ── */
.trust { border-block: 1px solid var(--border); background: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { display: flex; align-items: center; gap: 12px; padding: 22px 20px; color: var(--text-2); font-weight: 500; font-size: 15px; }
.trust-item + .trust-item { border-inline-start: 1px solid var(--border); }
.trust-item svg.i { color: var(--brand); }

/* ── Sections ── */
section { padding-block: 96px; }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
html[lang="ckb"] .kicker, html[lang="ar"] .kicker, html[lang="fa"] .kicker, html[lang="zh"] .kicker { letter-spacing: 0; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 42px); margin-top: 12px; }
.section-head p { font-size: 18px; color: var(--text-2); margin-top: 16px; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; transition: box-shadow .2s, transform .2s, border-color .2s; }
.feature:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #e3d9c5; }
.feature .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); margin-bottom: 18px; }
.feature h3 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.feature p { color: var(--text-2); font-size: 15px; margin-top: 8px; }

.security { background: var(--ink); color: #e9e2d4; }
.security .kicker { color: var(--beige); }
.security h2 { color: #fff; }
.security .section-head p { color: #c9bfae; }
.sec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.sec-card { border: 1px solid rgba(235, 217, 179, .14); background: rgba(255, 255, 255, .03); border-radius: var(--radius); padding: 28px; display: flex; gap: 18px; }
.sec-card .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(235, 217, 179, .12); color: var(--beige); flex-shrink: 0; }
.sec-card h3 { color: #fff; font-size: 17px; font-weight: 600; }
.sec-card p { color: #c9bfae; font-size: 15px; margin-top: 6px; }
.sec-note { margin-top: 28px; display: flex; gap: 10px; align-items: flex-start; color: #a99f8e; font-size: 14px; }
.sec-note svg.i { width: 18px; height: 18px; margin-top: 3px; }

.showcase { background: var(--cream); overflow: hidden; }
.showcase-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.steps { display: flex; flex-direction: column; gap: 26px; }
.step { display: flex; gap: 16px; }
.step .n { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 14px; flex-shrink: 0; }
.step h3 { font-size: 17px; font-weight: 600; }
.step p { color: var(--text-2); margin-top: 4px; font-size: 15px; }
.showcase-phones { display: flex; justify-content: center; gap: 24px; }
.showcase-phones .phone { width: 260px; }
.showcase-phones .phone:last-child { margin-top: 56px; }

.gallery { padding-top: 96px; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); justify-content: center; gap: 64px; }
.gallery figure { margin: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.gallery .phone { width: 280px; }
.gallery figcaption { margin-top: 28px; }
.gallery figcaption h3 { font-size: 18px; font-weight: 600; }
.gallery figcaption p { color: var(--text-2); margin-top: 6px; font-size: 15px; }

.faq-list { max-width: 820px; margin-inline: auto; border-top: 1px solid var(--border); }
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 4px; font-weight: 600; font-size: 17px; color: var(--ink); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; flex-shrink: 0; margin-top: -4px; }
.faq-list details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq-list details p { padding: 0 4px 22px; color: var(--text-2); max-width: 720px; }

.cta { padding-block: 0 96px; }
.cta-card { background: var(--brand); border-radius: 24px; padding: 64px 48px; display: flex; align-items: center; justify-content: space-between; gap: 32px; position: relative; overflow: hidden; }
.cta-card::after { content: ""; position: absolute; inset-inline-end: -80px; bottom: -120px; width: 360px; height: 360px; border-radius: 50%; background: rgba(235, 217, 179, .16); }
.cta-card h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); }
.cta-card p { color: #ece2cd; margin-top: 10px; font-size: 17px; }
.cta-card .stores { position: relative; z-index: 1; flex-shrink: 0; }

/* ── Legal pages ── */
.page-hero { background: var(--cream); border-bottom: 1px solid var(--border); padding-block: 56px 48px; }
.page-hero h1 { font-size: clamp(32px, 4vw, 44px); }
.page-hero p { color: var(--text-2); margin-top: 12px; font-size: 17px; }
.legal { padding-block: 56px 96px; }
.legal-grid { display: grid; grid-template-columns: 220px 1fr; gap: 56px; align-items: start; }
.toc { position: sticky; top: 96px; font-size: 14px; }
.toc b { display: block; color: var(--ink); margin-bottom: 10px; font-size: 13px; }
.toc a { display: block; color: var(--text-2); padding: 5px 0; }
.toc a:hover { color: var(--ink); }
.prose { max-width: 740px; color: var(--text-2); font-size: 16.5px; }
.prose h2 { font-size: 22px; margin: 40px 0 12px; scroll-margin-top: 90px; }
.prose p + p, .prose p + ul, .prose ul + p, .prose ol + p, .prose p + ol { margin-top: 12px; }
.prose ul, .prose ol { padding-inline-start: 22px; margin: 12px 0 0; }
.prose li + li { margin-top: 6px; }
.prose strong { color: var(--text); }
.notice { display: flex; gap: 12px; padding: 16px 18px; border-radius: 12px; background: var(--brand-50); border: 1px solid #ebe1cd; color: var(--text-2); font-size: 15px; margin-bottom: 28px; }
.notice svg.i { color: var(--brand); width: 20px; height: 20px; margin-top: 2px; }
.notice.warn { background: #fef3f2; border-color: #fecdca; color: #7a271a; }
.notice.warn svg.i { color: #b42318; }

.form { display: grid; gap: 16px; margin-top: 18px; max-width: 560px; }
.prose > .notice + div > h2:first-child { margin-top: 8px; }
.form label { display: block; font-weight: 500; color: var(--text); font-size: 15px; margin-bottom: 6px; }
.form input[type=email], .form input[type=text], .form textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px; background: #fff;
  font: 15px/1.5 var(--font); color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s;
}
.form input:focus, .form textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(112, 98, 69, .15); }
.form textarea { min-height: 110px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--text-2); }
.check input { margin-top: 5px; accent-color: var(--brand); }

/* ── Footer ── */
.site-footer { background: var(--cream); border-top: 1px solid var(--border); padding-block: 56px 32px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { color: var(--text-2); margin-top: 14px; max-width: 300px; }
.footer-col b { display: block; color: var(--ink); font-size: 14px; margin-bottom: 14px; }
.footer-col a { display: block; color: var(--text-2); padding: 4px 0; }
.footer-col a:hover { color: var(--ink); }
.footer-langs { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
.footer-langs a { color: var(--text-2); }
.footer-langs a:hover, .footer-langs a[aria-current] { color: var(--ink); }
.footer-langs a[aria-current] { font-weight: 600; }
.footer-bottom { margin-top: 20px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }

/* ── Responsive ── */
@media (max-width: 1080px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(3) { border-inline-start: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--border); }
}
@media (max-width: 920px) {
  .nav { display: none; position: absolute; top: 68px; inset-inline: 0; background: #fff; border-bottom: 1px solid var(--border); flex-direction: column; gap: 0; padding: 8px 24px 16px; margin: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; font-size: 16px; }
  .menu-toggle { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--ink); cursor: pointer; }
  .header-actions .btn { display: none; }
  .hero { padding-block: 48px 72px; }
  .hero-grid, .showcase-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { min-height: 560px; }
  .sec-grid { grid-template-columns: 1fr; }
  .cta-card { flex-direction: column; align-items: flex-start; padding: 44px 28px; }
  .legal-grid { grid-template-columns: 1fr; }
  .toc { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .container { padding-inline: 16px; }
  section { padding-block: 72px; }
  .features { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; gap: 48px; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item + .trust-item { border-inline-start: 0; border-top: 1px solid var(--border); }
  .hero-visual { min-height: 0; }
  .hero-visual .phone.back { display: none; }
  .hero-visual .phone.front, html[dir="rtl"] .hero-visual .phone.front { transform: none; }
  .phone { width: 270px; }
  .showcase-phones .phone { width: 220px; }
  .showcase-phones .phone:first-child { display: none; }
  .showcase-phones .phone:last-child { margin-top: 0; }
  .lang select { max-width: 92px; text-overflow: ellipsis; }
  .store { height: 50px; }
  .footer-grid { grid-template-columns: 1fr; }
}
