/* PfandLens website — dark by default, manual light/dark toggle (data-theme on <html>). */
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Noto Sans Arabic"; src: url("../fonts/noto-sans-arabic-arabic-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Noto Sans Arabic"; src: url("../fonts/noto-sans-arabic-arabic-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root, [data-theme="dark"] {
  --bg: #04100c;
  --bg-2: #071a13;
  --surface: rgba(255, 255, 255, .055);
  --surface-strong: rgba(255, 255, 255, .09);
  --stroke: rgba(255, 255, 255, .10);
  --text: #f2f7f4;
  --muted: rgba(242, 247, 244, .68);
  --faint: rgba(242, 247, 244, .45);
  --accent: #3de08f;
  --accent-deep: #129e66;
  --accent-ink: #062016;
  --mint: #a9f5cf;
  --info: #73b8ff;
  --warn: #f7ba4a;
  --glow: rgba(61, 224, 143, .22);
  --shadow: 0 30px 80px rgba(0, 0, 0, .45);
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #f4f8f6;
  --bg-2: #e8f1ec;
  --surface: rgba(255, 255, 255, .72);
  --surface-strong: rgba(255, 255, 255, .92);
  --stroke: rgba(6, 32, 22, .10);
  --text: #0b1d16;
  --muted: rgba(11, 29, 22, .70);
  --faint: rgba(11, 29, 22, .50);
  --accent: #0f9c62;
  --accent-deep: #0b7a4c;
  --accent-ink: #ffffff;
  --mint: #0b7a4c;
  --info: #1f6fc4;
  --warn: #a86a00;
  --glow: rgba(15, 156, 98, .16);
  --shadow: 0 24px 60px rgba(6, 32, 22, .14);
  color-scheme: light;
}

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  overflow-x: clip;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg); color: var(--text);
  font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(1100px 700px at 85% -10%, var(--glow), transparent 70%),
    radial-gradient(900px 600px at -10% 30%, rgba(115, 184, 255, .07), transparent 70%);
  background-attachment: fixed;
}
html[lang="ar"] body { font-family: "Noto Sans Arabic", "Inter", system-ui, sans-serif; }
html[lang="ja"] body { font-family: "Inter", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Noto Sans JP", "Meiryo", sans-serif; }
a { color: var(--accent); }
a:hover { color: var(--mint); }
::selection { background: var(--accent); color: var(--accent-ink); }
.skip-link { position: absolute; inset-inline-start: 1rem; top: -60px; z-index: 2000; padding: .6rem 1rem; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Nav ---------- */
.site-nav { position: sticky; top: 0; z-index: 1000; backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  background: color-mix(in srgb, var(--bg) 70%, transparent); border-bottom: 1px solid var(--stroke); }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 750; color: var(--text); text-decoration: none; font-size: 1.12rem; letter-spacing: -.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; padding: .5rem .7rem; border-radius: 10px; }
.nav-links a:hover { color: var(--text); background: var(--surface); }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--stroke); background: var(--surface); color: var(--text); }
.icon-btn:hover { background: var(--surface-strong); }
.lang-select { height: 44px; border-radius: 12px; border: 1px solid var(--stroke); background: var(--surface); color: var(--text); padding: 0 .75rem; font: inherit; font-size: .9rem; }
.theme-icon-light { display: none; }
[data-theme="light"] .theme-icon-light { display: inline; }
[data-theme="light"] .theme-icon-dark { display: none; }
.mobile-menu { display: none; }
@media (max-width: 991.98px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; position: absolute; top: 72px; inset-inline: 12px; flex-direction: column; padding: .75rem; border-radius: 18px;
    background: var(--bg-2); border: 1px solid var(--stroke); box-shadow: var(--shadow); }
  .mobile-menu { display: inline-grid; }
}

/* ---------- Buttons ---------- */
.btn-accent { display: inline-flex; align-items: center; gap: .55rem; padding: .95rem 1.5rem; border-radius: 999px; font-weight: 650; text-decoration: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: var(--accent-ink); border: 0;
  box-shadow: 0 12px 34px var(--glow); transition: transform .18s ease, box-shadow .18s ease; min-height: 48px; }
.btn-accent:hover { transform: translateY(-2px); color: var(--accent-ink); box-shadow: 0 18px 44px var(--glow); }
.btn-ghost { display: inline-flex; align-items: center; gap: .5rem; padding: .9rem 1.3rem; border-radius: 999px; font-weight: 600; text-decoration: none;
  color: var(--text); background: var(--surface); border: 1px solid var(--stroke); min-height: 48px; }
.btn-ghost:hover { color: var(--text); background: var(--surface-strong); }
.btn-store { display: inline-flex; align-items: center; gap: .7rem; padding: .8rem 1.4rem; border-radius: 16px; background: var(--text); color: var(--bg); text-decoration: none; font-weight: 650; min-height: 52px; }
.btn-store:hover { color: var(--bg); opacity: .9; }
.btn-store[aria-disabled="true"] { opacity: .75; cursor: default; }

/* ---------- Typography ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
html[lang="ar"] .eyebrow, html[lang="ja"] .eyebrow { letter-spacing: 0; }
.display { font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: 1.04; font-weight: 800; letter-spacing: -.035em; }
html[lang="ar"] .display, html[lang="ja"] .display { letter-spacing: 0; line-height: 1.25; }
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.1; font-weight: 780; letter-spacing: -.025em; }
html[lang="ar"] .section-title, html[lang="ja"] .section-title { letter-spacing: 0; line-height: 1.3; }
.lead-text { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); line-height: 1.6; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.gradient-text { background: linear-gradient(120deg, var(--text) 30%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.glass { background: var(--surface); border: 1px solid var(--stroke); border-radius: 28px; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: var(--shadow); }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; opacity: .22; background-size: cover; background-position: center; filter: blur(2px) saturate(1.1);
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 85%); -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 85%); }
[data-theme="light"] .hero-bg { opacity: .14; }
.trust { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin-top: 1.6rem; color: var(--muted); font-size: .93rem; padding: 0; list-style: none; }
.trust li { display: inline-flex; align-items: center; gap: .45rem; }
.trust svg { color: var(--accent); }
.hero-visual { position: relative; display: grid; place-items: center; padding: 1rem 0; }
.phone { position: relative; width: min(330px, 78vw); padding: 10px; border-radius: 54px; background: linear-gradient(160deg, #26362f, #0d1512 40%, #0a100e);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,.08) inset, 0 0 90px var(--glow); }
.phone img { display: block; width: 100%; height: auto; border-radius: 45px; }
.phone.small { width: min(270px, 70vw); border-radius: 46px; }
.phone.small img { border-radius: 38px; }
.float-chip { position: absolute; display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1rem; border-radius: 16px; font-weight: 650; font-size: .95rem;
  background: color-mix(in srgb, var(--bg-2) 72%, transparent); border: 1px solid var(--stroke); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow); color: var(--text); animation: floaty 6s ease-in-out infinite; white-space: nowrap; }
.float-chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.chip-a { top: 14%; inset-inline-start: -2%; }
.chip-b { bottom: 18%; inset-inline-end: -4%; animation-delay: -2s; color: var(--mint); font-size: 1.15rem; }
.chip-c { bottom: 4%; inset-inline-start: 4%; animation-delay: -4s; font-size: .85rem; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 575.98px) { .chip-a { inset-inline-start: 0; } .chip-b { inset-inline-end: 0; } }

/* ---------- Bento ---------- */
.bento { display: grid; gap: 1rem; grid-template-columns: repeat(12, 1fr); }
.bento .card-b { grid-column: span 12; position: relative; overflow: hidden; padding: 1.6rem; border-radius: 26px; background: var(--surface); border: 1px solid var(--stroke);
  transition: transform .25s ease, border-color .25s ease, background .25s ease; min-height: 210px; display: flex; flex-direction: column; }
.bento .card-b:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, var(--stroke)); background: var(--surface-strong); }
.bento .card-b::after { content: ""; position: absolute; inset: auto -20% -40% auto; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--glow), transparent 70%); pointer-events: none; }
.bento h3 { font-size: 1.22rem; font-weight: 720; margin: 1rem 0 .45rem; letter-spacing: -.01em; }
.bento p { color: var(--muted); margin: 0; line-height: 1.55; }
.b-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.b-visual { margin-top: auto; padding-top: 1.2rem; }
@media (min-width: 768px) {
  .bento .card-b { grid-column: span 6; }
  .bento .b-wide, .bento .b-md-wide { grid-column: span 12; }
}
@media (min-width: 992px) {
  .bento .card-b, .bento .b-md-wide { grid-column: span 4; }
  .bento .b-wide { grid-column: span 8; }
  .bento .b-tall { grid-row: span 2; }
}
.mini-boxes { position: relative; height: 150px; border-radius: 18px; overflow: hidden; background: linear-gradient(135deg, #20302a, #0b1411); }
.mini-boxes img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.mini-boxes .bx { position: absolute; border: 2px solid var(--accent); border-radius: 8px; }
.mini-boxes .tag { position: absolute; font-size: .7rem; font-weight: 700; background: var(--accent); color: #062016; padding: 1px 6px; border-radius: 999px; }
.coin-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.coin { padding: .45rem .75rem; border-radius: 999px; font-weight: 650; font-size: .88rem; background: var(--surface-strong); border: 1px solid var(--stroke); }
.coin b { color: var(--accent); }
.map-dots { position: relative; height: 110px; border-radius: 18px; background:
  linear-gradient(var(--stroke) 1px, transparent 1px) 0 0/22px 22px, linear-gradient(90deg, var(--stroke) 1px, transparent 1px) 0 0/22px 22px, var(--bg-2); overflow: hidden; }
.map-dots .ring { position: absolute; left: 50%; top: 50%; width: 80px; height: 80px; margin: -40px 0 0 -40px; border-radius: 50%; border: 2px solid var(--accent); opacity: .6; animation: pulse 2.6s ease-out infinite; }
.map-dots .pin { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 16px var(--accent); }
@keyframes pulse { 0% { transform: scale(.4); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
.lock-viz { display: flex; align-items: center; gap: .8rem; font-weight: 650; color: var(--mint); }
.bars { display: flex; align-items: flex-end; gap: 7px; height: 90px; }
.bars span { flex: 1; border-radius: 6px 6px 3px 3px; background: color-mix(in srgb, var(--text) 18%, transparent); }
.bars span.on { background: linear-gradient(180deg, var(--accent), var(--accent-deep)); }
.list-viz { display: grid; gap: .5rem; }
.list-viz div { display: flex; justify-content: space-between; padding: .55rem .8rem; border-radius: 12px; background: var(--surface-strong); font-size: .88rem; }
.list-viz b { color: var(--text); }
.price-viz { font-size: 2.4rem; font-weight: 800; letter-spacing: -.02em; }

/* ---------- Steps ---------- */
.step { padding: 1.8rem; height: 100%; }
.step-num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: var(--accent-ink); }
.step h3 { font-size: 1.2rem; font-weight: 720; margin: 1.1rem 0 .4rem; }

/* ---------- Feature rows ---------- */
.feature-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .8rem; }
.feature-list li { display: flex; gap: .75rem; align-items: flex-start; color: var(--muted); }
.feature-list svg { flex: none; margin-top: .2rem; color: var(--accent); }
.tier { display: flex; gap: .9rem; padding: 1rem 1.1rem; border-radius: 18px; background: var(--surface); border: 1px solid var(--stroke); }
.tier + .tier { margin-top: .7rem; }
.tier-badge { flex: none; font-size: .78rem; font-weight: 750; padding: .25rem .6rem; border-radius: 999px; height: fit-content; }
.t-detected { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.t-probable { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.t-unknown { background: color-mix(in srgb, #ff6b6b 18%, transparent); color: #ff8a8a; }
[data-theme="light"] .t-unknown { color: #b42323; }
.note { font-size: .9rem; color: var(--faint); border-inline-start: 3px solid var(--accent); padding-inline-start: .9rem; margin-top: 1.4rem; }
.shot-frame { display: grid; place-items: center; }

/* ---------- Privacy ---------- */
.p-card { padding: 1.5rem; height: 100%; }
.p-card h3 { font-size: 1.1rem; font-weight: 700; margin: .9rem 0 .4rem; }
.p-card p { color: var(--muted); margin: 0; }

/* ---------- Pricing ---------- */
.price-card { padding: 2rem; height: 100%; display: flex; flex-direction: column; }
.price-card.featured { border-color: color-mix(in srgb, var(--accent) 55%, var(--stroke)); box-shadow: var(--shadow), 0 0 80px var(--glow); }
.price-big { font-size: clamp(2.6rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; margin: .6rem 0 .2rem; }
.price-card ul { list-style: none; padding: 0; margin: 1.4rem 0 1.6rem; display: grid; gap: .65rem; }
.price-card li { display: flex; gap: .6rem; align-items: center; }
.price-card li svg { color: var(--accent); flex: none; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--stroke); padding: 1.15rem .2rem; }
.faq summary { cursor: pointer; list-style: none; font-weight: 650; font-size: 1.08rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { flex: none; transition: transform .2s ease; color: var(--accent); }
.faq details[open] summary .chev { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: .8rem 0 .2rem; line-height: 1.65; }

/* ---------- CTA / Footer ---------- */
.cta-band { padding: clamp(2.5rem, 6vw, 4.5rem); text-align: center; background:
  radial-gradient(600px 300px at 50% 0%, var(--glow), transparent 70%), var(--surface); }
.cta-band img { width: 88px; height: 88px; border-radius: 22px; box-shadow: var(--shadow); }
footer { border-top: 1px solid var(--stroke); padding: 3rem 0 2.5rem; color: var(--muted); font-size: .92rem; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }
.footer-links { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; list-style: none; padding: 0; margin: 0; }
.footer-links a { display: inline-block; padding: .35rem 0; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Legal pages ---------- */
.legal { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.02em; }
.legal h2 { font-size: 1.35rem; font-weight: 720; margin-top: 2.2rem; }
.legal p, .legal li { color: var(--muted); line-height: 1.7; }
.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.legal th, .legal td { border-bottom: 1px solid var(--stroke); padding: .7rem .5rem; text-align: start; vertical-align: top; color: var(--muted); }
.legal th { color: var(--text); }
