/* Dhudhiya website. Palette mirrors apps/mobile/lib/core/theme/app_theme.dart. */
:root {
  --teal-900: #07403b;
  --teal-700: #0b5e57;
  --teal-500: #128a7e;
  --teal-50: #e6f2f0;
  --green-600: #2e8b3e;
  --green-100: #ddf1df;
  --gold-500: #c98f1c;
  --gold-100: #fbf0d9;
  --sky: #cfeef0;
  --surface: #f6f9f7;
  --card: #ffffff;
  --ink: #14211f;
  --muted: #55635f;
  --outline: #d5e0dc;
  --income: #1b7a33;
  --expense: #b3261e;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(7, 64, 59, .06), 0 12px 32px -12px rgba(7, 64, 59, .18);
  --max: 1160px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Mukta", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-700); }
a:hover { color: var(--teal-900); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 88px 0; }
.section.alt { background: var(--card); }
.eyebrow { display: inline-block; font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-500); margin-bottom: 10px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(246, 249, 247, .9); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--outline); }
.nav { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--teal-900); font-weight: 800; font-size: 1.35rem; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a { text-decoration: none; color: var(--ink); font-weight: 500; }
.nav-links a:hover { color: var(--teal-700); }
.lang { border: 1px solid var(--outline); padding: 4px 12px; border-radius: 999px; background: var(--card); }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--outline); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; }
.menu-btn span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px auto; border-radius: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; font-family: inherit; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--teal-700); color: #fff; box-shadow: 0 8px 20px -8px rgba(11, 94, 87, .6); }
.btn-primary:hover { background: var(--teal-900); color: #fff; }
.btn-ghost { background: var(--card); color: var(--teal-900); border-color: var(--outline); }
.btn-ghost:hover { border-color: var(--teal-500); color: var(--teal-900); }
.btn-danger { background: var(--expense); color: #fff; }
.btn-danger:hover { background: #8c1d17; color: #fff; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn svg { width: 20px; height: 20px; flex: none; }
.nav .btn { min-height: 40px; padding: 8px 18px; }

/* Hero */
.hero { position: relative; padding: 64px 0 96px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px; background: radial-gradient(closest-side, var(--sky), transparent 70%); opacity: .8; z-index: -1; }
.hero::after { content: ""; position: absolute; left: -200px; bottom: -260px; width: 620px; height: 620px; background: radial-gradient(closest-side, var(--green-100), transparent 70%); z-index: -1; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 span { color: var(--teal-500); }
.hero .lead { font-size: 1.25rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 12px; background: var(--ink); color: #fff; font-size: .8rem; line-height: 1.2; opacity: .9; }
.store svg { width: 22px; height: 22px; fill: #fff; }
.store b { display: block; font-size: 1rem; }
.store small { color: #c9d6d2; }
.hero-tag { display: inline-flex; gap: 8px; align-items: center; padding: 6px 14px; background: var(--gold-100); color: #7a560f; border-radius: 999px; font-weight: 700; font-size: .9rem; margin-bottom: 18px; }

/* Phone mockups */
.phones { position: relative; height: 600px; }
.phone { position: absolute; width: 280px; height: 580px; border-radius: 42px; background: #0d1715; padding: 12px; box-shadow: 0 40px 80px -30px rgba(7, 64, 59, .55), 0 0 0 1px rgba(0, 0, 0, .1); }
.phone .screen { width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: var(--surface); display: flex; flex-direction: column; font-size: 13px; line-height: 1.35; }
.phone.front { right: 40px; top: 0; z-index: 2; animation: float 7s ease-in-out infinite; }
.phone.back { right: 250px; top: 60px; transform: rotate(-6deg) scale(.92); opacity: .97; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .phone.front { animation: none; } html { scroll-behavior: auto; } .reveal { opacity: 1 !important; transform: none !important; } }
.phone .screen { background: linear-gradient(var(--teal-700) 0 72px, var(--surface) 72px); }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.mock-note { font-size: .8rem; color: var(--muted); text-align: center; margin-top: 10px; }

/* Screens gallery: horizontal scroll with snap */
.gallery { display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 36px max(20px, calc((100vw - var(--max)) / 2 + 20px)) 28px; scrollbar-width: thin; }
.gallery figure { margin: 0; flex: none; scroll-snap-align: center; text-align: center; }
.gallery .phone { position: relative; width: 230px; height: 498px; border-radius: 36px; padding: 10px; }
.gallery .phone .screen { border-radius: 28px; }
.gallery figcaption { margin-top: 14px; font-weight: 600; color: var(--muted); max-width: 230px; }

/* Trust strip */
.strip { background: var(--teal-900); color: #e6f2f0; }
.strip ul { list-style: none; margin: 0; padding: 22px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.strip li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.strip svg { width: 28px; height: 28px; flex: none; stroke: #9fd8cf; }

/* Features */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.card { background: var(--card); border: 1px solid var(--outline); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(7, 64, 59, .06), 0 20px 40px -16px rgba(7, 64, 59, .28); }
.card p { color: var(--muted); margin: 0; }
.card ul { margin: 12px 0 0; padding-left: 20px; color: var(--muted); }
.icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; background: var(--teal-50); }
.icon svg { width: 28px; height: 28px; stroke: var(--teal-700); }
.icon.g { background: var(--green-100); }
.icon.g svg { stroke: var(--green-600); }
.icon.y { background: var(--gold-100); }
.icon.y svg { stroke: var(--gold-500); }

/* Showcase */
.show { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.show + .show { margin-top: 96px; }
.show.flip .show-media { order: 2; }
.show-media { display: flex; justify-content: center; }
.show-media .phone { position: relative; right: auto; top: auto; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; }
.ticks li { position: relative; padding-left: 34px; margin-bottom: 12px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e8b3e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; counter-reset: s; }
.step { position: relative; padding: 28px; background: var(--card); border-radius: var(--radius); border: 1px solid var(--outline); }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--teal-700); color: #fff; font-weight: 800; font-size: 1.2rem; margin-bottom: 14px; }
.step p { color: var(--muted); margin: 0; }

/* Trust */
.trust { background: linear-gradient(160deg, var(--teal-900), var(--teal-700)); color: #e6f2f0; }
.trust h2, .trust h3 { color: #fff; }
.trust .lead { color: #bfe0da; }
.trust .eyebrow { color: #9fd8cf; }
.trust .card { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); box-shadow: none; }
.trust .card p { color: #cfe7e2; }
.trust .icon { background: rgba(255, 255, 255, .1); }
.trust .icon svg { stroke: #9fd8cf; }

/* Early access */
.offer { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; background: var(--card); border: 1px solid var(--outline); border-radius: 28px; padding: 44px; box-shadow: var(--shadow); }
.offer-side { background: var(--gold-100); border-radius: 20px; padding: 28px; }
.offer-side p { color: #5f4612; margin: 0; }

/* FAQ */
.faq { max-width: 820px; margin: 40px auto 0; }
.faq details { background: var(--card); border: 1px solid var(--outline); border-radius: 14px; margin-bottom: 12px; padding: 0 22px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 18px 28px 18px 0; list-style: none; position: relative; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.5rem; color: var(--teal-500); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 6px; }

/* CTA band */
.cta-band { text-align: center; background: radial-gradient(circle at 20% 0%, var(--teal-500), var(--teal-900) 70%); color: #fff; border-radius: 32px; padding: 64px 24px; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfe7e2; max-width: 620px; margin: 0 auto 26px; font-size: 1.15rem; }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }

/* Footer */
.site-footer { background: #0a1c1a; color: #b9cbc7; padding: 56px 0 28px; margin-top: 88px; font-size: .95rem; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer .foot-title { color: #fff; margin: 0 0 12px; font-size: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #b9cbc7; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.copy { border-top: 1px solid #22332f; margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; }

/* Document pages */
.doc { max-width: 820px; margin: 0 auto; padding: 56px 20px 0; }
.doc h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.doc h2 { font-size: 1.4rem; margin-top: 2em; }
.doc h3 { margin-top: 1.4em; }
.doc .meta { color: var(--muted); margin-bottom: 2em; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .95rem; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; border-bottom: 1px solid var(--outline); padding: 10px 8px; vertical-align: top; }
.doc th { background: var(--teal-50); }
.note { background: var(--teal-50); border-left: 4px solid var(--teal-500); padding: 14px 18px; border-radius: 10px; margin: 1.2em 0; }
.note.warn { background: #fdeceb; border-color: var(--expense); }
.panel { background: var(--card); border: 1px solid var(--outline); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); margin: 1.4em 0; }
.panel h2 { margin-top: 0; }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 1.4em 0; }
.contact-grid .panel { margin: 0; }
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-row input { font: inherit; padding: 12px 14px; border: 1px solid var(--outline); border-radius: 12px; min-height: 48px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; }
.check input { width: 22px; height: 22px; margin-top: 3px; flex: none; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--outline); }
.status { margin-top: 14px; font-weight: 600; }
.status.err { color: var(--expense); }
.status.ok { color: var(--income); }
[hidden] { display: none !important; }

/* Reveal on scroll (JS adds .js to <html>) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in-view { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .show, .offer { grid-template-columns: 1fr; }
  .show.flip .show-media { order: 0; }
  .phones { height: 560px; max-width: 520px; margin: 0 auto; width: 100%; }
  .phone.front { right: 50%; transform: translateX(60%); animation: none; }
  .phone.back { right: 50%; transform: translateX(-10%) rotate(-6deg) scale(.9); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .strip ul { grid-template-columns: repeat(2, 1fr); }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .menu-btn { display: block; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--card); border-bottom: 1px solid var(--outline); padding: 8px 16px 16px; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 4px; border-bottom: 1px solid var(--teal-50); }
  .nav-links .btn, .nav-links .lang { margin-top: 10px; text-align: center; }
  .wrap { padding: 0 16px; }
  .grid, .steps, .contact-grid { grid-template-columns: 1fr; }
  .phones { height: 500px; }
  .phone { width: 240px; height: 500px; }
  .phone.back { display: none; }
  .phone.front { right: 50%; transform: translateX(50%); }
  .offer { padding: 26px; }
  .foot { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 64px; }
}

/* ---------- Google Play button, trial line, sticky mobile CTA ---------- */
.play-btn { gap: 10px; }
.play-btn svg { fill: currentColor; width: 22px; height: 22px; }
.play-btn span { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.play-btn small { font-size: .65rem; font-weight: 600; letter-spacing: .06em; opacity: .9; }
.play-btn b { font-size: 1.05rem; }
.btn-light { background: #fff; color: var(--teal-900); }
.btn-light:hover { background: var(--teal-50); color: var(--teal-900); }
.trial-line { color: var(--muted); font-weight: 600; margin: 0; }
.site-footer .play-btn { margin-top: 8px; }
.sticky-cta { display: none; }
@media (max-width: 720px) {
  .sticky-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(246, 249, 247, .96); border-top: 1px solid var(--outline); }
  .sticky-cta .btn { width: 100%; }
  body { padding-bottom: 76px; }
}

/* ---------- Topic pages, guides, calculators ---------- */
.crumbs ol { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px; font-size: .9rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--outline); }
.crumbs a { color: var(--teal-700); }
.topic .answer { max-width: none; color: var(--ink); font-size: 1.15rem; }
.topic .meta { margin-top: -.6em; }
.table-wrap { overflow-x: auto; }
.table-wrap table { display: table; min-width: 100%; }
.page-screens { display: flex; gap: 20px; overflow-x: auto; padding: 8px 2px 4px; }
.page-screens figure { margin: 0; flex: none; text-align: center; }
.page-screens .phone { position: relative; width: 200px; height: 433px; border-radius: 30px; padding: 8px; }
.page-screens .phone .screen { border-radius: 24px; }
.page-screens figcaption { margin-top: 10px; font-weight: 600; color: var(--muted); max-width: 200px; }
.topic .faq { margin-top: 12px; }
.related { padding-left: 20px; }
.related li { margin-bottom: 8px; }
.cta-band.small { padding: 40px 24px; border-radius: 24px; margin-top: 3em; }
.cta-band.small .hero-cta { justify-content: center; margin: 0; }
.guide-list { display: grid; gap: 16px; margin-top: 1.5em; }
.guide-list .card h2 { font-size: 1.2rem; margin: 0 0 8px; }
.guide-list .card a { text-decoration: none; color: var(--teal-900); }
.calc .form-row { margin-bottom: 14px; }
.calc label, .calc legend { display: block; font-weight: 700; margin-bottom: 6px; }
.calc .unit { font-weight: 500; color: var(--muted); }
.calc input[type="number"] { width: 100%; max-width: 280px; min-height: 48px; padding: 10px 12px; font-size: 1.1rem; border: 1px solid var(--outline); border-radius: 12px; font-family: inherit; }
.calc input:focus-visible, .calc .radio input:focus-visible { outline: 3px solid var(--teal-500); outline-offset: 2px; }
.calc small { display: block; color: var(--muted); margin-top: 4px; }
.calc fieldset { border: 0; padding: 0; }
.calc .radio { display: flex; align-items: center; gap: 8px; font-weight: 500; min-height: 44px; }
.calc-out { border-top: 1px solid var(--outline); margin-top: 18px; padding-top: 6px; }
.results { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 0; }
.results div { background: var(--teal-50); border-radius: 12px; padding: 12px 14px; }
.results dt { font-size: .9rem; color: var(--muted); }
.results dd { margin: 4px 0 0; font-size: 1.35rem; font-weight: 800; color: var(--teal-900); }
.calc-error { color: var(--expense); font-weight: 600; }
.formula { color: var(--muted); font-size: .95rem; }
@media (prefers-reduced-motion: reduce) { .card, .btn { transition: none; } .card:hover { transform: none; } }

.site-footer .btn-ghost, .site-footer .btn-ghost:hover { color: var(--teal-900); text-decoration: none; }
.sticky-cta { transition: transform .2s; }
.sticky-cta.tucked { transform: translateY(110%); }
@media (prefers-reduced-motion: reduce) { .sticky-cta { transition: none; } }

/* Header "Get the app": white text (beats .nav-links a), Play icon, lift on hover, clear focus. */
.nav-links a.nav-cta, .nav-links a.nav-cta:hover { color: #fff; }
.nav-cta { gap: 8px; padding: 8px 20px 8px 16px; box-shadow: 0 6px 16px -6px rgba(11, 94, 87, .55); }
.nav-cta svg { width: 18px; height: 18px; fill: currentColor; }
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -8px rgba(11, 94, 87, .6); }
.nav-cta:focus-visible { outline: 3px solid var(--teal-500); outline-offset: 3px; }
@media (max-width: 760px) { .nav-links a.nav-cta { border-bottom: 0; padding: 12px 18px; } }
@media (prefers-reduced-motion: reduce) { .nav-cta:hover { transform: none; } }
