/* Pay Check website — same palette as the app (PayCheckTheme.kt). */
:root {
  --accent: #3566EF;
  --accent-ink: #2F5BD6;
  --accent-soft: #E7EDFD;
  --bg: #F3F4F6;
  --surface: #FFFFFF;
  --ink: #111827;
  --muted: #586273;
  --outline: #E5E7EB;
  --green: #0B9E6C;
  --green-soft: #E3F6EE;
  --shadow: 0 1px 2px rgba(17, 24, 39, .05), 0 8px 24px rgba(17, 24, 39, .06);
  --radius: 20px;
  --radius-sm: 14px;
  --page: 1120px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Ethiopic", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --accent: #3566EF;
  --accent-ink: #7C9BF5;
  --accent-soft: #1C2A4A;
  --bg: #0D1117;
  --surface: #181F29;
  --ink: #F3F4F6;
  --muted: #ADB6C5;
  --outline: #354252;
  --green: #0CBF82;
  --green-soft: #12302A;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent-ink: #7C9BF5;
    --accent-soft: #1C2A4A;
    --bg: #0D1117;
    --surface: #181F29;
    --ink: #F3F4F6;
    --muted: #ADB6C5;
    --outline: #354252;
    --green: #0CBF82;
    --green-soft: #12302A;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
}
.header.scrolled { border-bottom-color: var(--outline); }
.header .wrap { display: flex; align-items: center; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 18px; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: none; margin-left: auto; gap: 4px; }
.nav a { color: var(--muted); font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 10px; }
.nav a:hover { color: var(--ink); background: var(--surface); text-decoration: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav + .header-actions { margin-left: 8px; }
.icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center;
  border-radius: 12px; border: 1px solid var(--outline); background: var(--surface);
  color: var(--muted); cursor: pointer;
}
.icon-btn:hover { color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-dark-icon { display: none; }
:root[data-theme="dark"] .theme-light-icon { display: none; }
:root[data-theme="dark"] .theme-dark-icon { display: block; }
@media (min-width: 860px) { .nav { display: flex; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 600 16px/1 var(--font); border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #2B57D6; }
.btn-outline { background: var(--surface); color: var(--ink); border-color: var(--outline); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 14px; }

/* Hero */
.hero { padding: 40px 0 56px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; font-weight: 600;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.hero h1 { font-size: clamp(34px, 7vw, 56px); font-weight: 800; margin: 16px 0 14px; }
.hero h1 span { color: var(--accent-ink); }
.hero .lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-note { margin-top: 14px; font-size: 14px; color: var(--muted); }
@media (min-width: 900px) {
  .hero { padding: 64px 0 80px; }
  .hero .wrap { grid-template-columns: 1.1fr .9fr; gap: 56px; }
}

/* Phone preview (illustration made with HTML, sample data only) */
.phone {
  width: min(320px, 86vw); margin: 0 auto; padding: 12px;
  border-radius: 40px; background: #0B0F15; box-shadow: 0 30px 60px rgba(17, 24, 39, .22);
}
.screen { border-radius: 30px; background: var(--bg); padding: 18px 14px 20px; overflow: hidden; }
.screen-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); padding: 0 6px 12px; }
.screen-title { font-size: 22px; font-weight: 700; padding: 0 6px 12px; }
.mini-card { background: var(--surface); border: 1px solid var(--outline); border-radius: 18px; padding: 14px; }
.mini-card + .mini-card { margin-top: 10px; }
.summary-label { font-size: 12px; color: var(--muted); }
.summary-amount { font-size: 26px; font-weight: 800; margin-top: 2px; }
.summary-amount small { font-size: 14px; font-weight: 600; color: var(--muted); }
.summary-row { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--outline); }
.summary-row b { display: block; font-size: 16px; }
.summary-row span { font-size: 11px; color: var(--muted); }
.pay-row { display: flex; align-items: center; gap: 12px; }
.bank-dot { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px; flex: none; }
.pay-main { flex: 1; min-width: 0; }
.pay-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pay-time { font-size: 12px; color: var(--muted); }
.pay-amount { font-weight: 700; color: var(--green); font-size: 14px; }
.pay-status { font-size: 12px; color: var(--green); font-weight: 600; text-align: right; }

/* Sections */
.section { padding: 56px 0; }
.section-head { max-width: 640px; margin-bottom: 28px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { color: var(--accent-ink); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.section h2 { font-size: clamp(26px, 4.4vw, 38px); font-weight: 800; margin-top: 8px; }
.section-head p { color: var(--muted); margin-top: 10px; font-size: 17px; }
@media (min-width: 900px) { .section { padding: 80px 0; } }

.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card { background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.feature-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 16px; }
.feature-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 18px; font-weight: 700; }
.card p { color: var(--muted); margin-top: 8px; font-size: 15px; }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 64px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 22px; top: 20px; font-size: 26px; font-weight: 800; color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
}
.step.card { padding-left: 78px; }

/* Pricing */
.trial {
  display: grid; gap: 16px; align-items: center; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--accent), #2449B8); color: #fff; border: 0;
}
.trial h3 { font-size: 22px; }
.trial p { color: rgba(255, 255, 255, .86); }
.trial-facts { display: flex; flex-wrap: wrap; gap: 10px; }
.trial-facts > span { background: rgba(255, 255, 255, .16); padding: 8px 12px; border-radius: 12px; font-size: 14px; font-weight: 600; }
@media (min-width: 860px) { .trial { grid-template-columns: 1fr auto; padding: 28px 30px; } }
.plan { position: relative; display: flex; flex-direction: column; gap: 6px; }
.plan .badge { align-self: flex-start; margin-bottom: 2px; background: var(--green-soft); color: var(--green); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.plan .period { color: var(--muted); font-size: 14px; }
.plan .period:empty { display: none; }
#plans { grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 960px) { #plans { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
@media (max-width: 420px) { #plans .card { padding: 18px 16px; } .plan .price.pending { font-size: 15px; } }
.plan .price { color: var(--ink); font-size: 32px; font-weight: 800; margin: 8px 0 4px; font-variant-numeric: tabular-nums; }
.plan .price small { font-size: 15px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.plan .price.pending { font-size: 18px; font-weight: 600; color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.checks li { display: flex; gap: 10px; font-size: 15px; color: var(--muted); }
.checks li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B9E6C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat; }
.premium-list { margin-top: 16px; }
.price-note { color: var(--muted); font-size: 14px; margin-top: 16px; text-align: center; }

/* Videos */
.video { padding: 0; overflow: hidden; display: flex; flex-direction: column; cursor: pointer; text-align: left; font: inherit; color: inherit; width: 100%; }
.video:disabled { cursor: default; }
.thumb { position: relative; aspect-ratio: 16 / 9; background: var(--accent-soft); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.video:not(:disabled):hover .thumb img { transform: scale(1.03); }
.thumb .play { position: absolute; inset: 0; display: grid; place-items: center; }
.thumb .play span { width: 60px; height: 60px; border-radius: 50%; background: rgba(17, 24, 39, .62); display: grid; place-items: center; backdrop-filter: blur(4px); }
.thumb .play svg { width: 26px; height: 26px; color: #fff; margin-left: 3px; }
.thumb .duration { position: absolute; right: 10px; bottom: 10px; background: rgba(17, 24, 39, .78); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 8px; }
.thumb.placeholder { display: grid; place-items: center; background: linear-gradient(135deg, var(--accent-soft), var(--surface)); }
.thumb.placeholder img { width: 64px; height: 64px; border-radius: 16px; opacity: .9; }
.video-body { padding: 16px 18px 18px; }
.video-body h3 { font-size: 16px; font-weight: 700; }
.video-body p { font-size: 14px; color: var(--muted); margin-top: 4px; }

.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .82); display: none; align-items: center; justify-content: center; padding: 16px; }
.lightbox.open { display: flex; }
.lightbox-inner { width: min(960px, 100%); }
.lightbox-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 16px; overflow: hidden; }
.lightbox-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lightbox-close { margin: 0 0 10px auto; display: flex; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius-sm); padding: 0 18px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-ink); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 16px; }

/* Call to action */
.cta { text-align: center; }
.cta .card { padding: 36px 22px; }
.cta p { color: var(--muted); margin: 10px auto 22px; max-width: 32em; }

/* Footer */
.footer { border-top: 1px solid var(--outline); padding: 32px 0 40px; color: var(--muted); font-size: 14px; }
.footer .wrap { display: grid; gap: 18px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--ink); }
@media (min-width: 760px) { .footer .wrap { grid-template-columns: 1fr auto; align-items: center; } }

/* Legal pages */
.legal { padding: 32px 0 64px; }
.legal .wrap { max-width: 820px; }
.legal-head { margin-bottom: 24px; }
.legal-head h1 { font-size: clamp(30px, 6vw, 42px); font-weight: 800; margin-top: 8px; }
.legal-head p { color: var(--muted); margin-top: 8px; }
.legal .card { padding: 26px 22px; }
@media (min-width: 760px) { .legal .card { padding: 36px 40px; } }
.legal h2 { font-size: 20px; font-weight: 700; margin: 28px 0 10px; scroll-margin-top: 80px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-top: 10px; }
.legal ul { padding-left: 20px; margin: 10px 0 0; display: grid; gap: 6px; }
.legal strong { color: var(--ink); }
.toc { background: var(--accent-soft); border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 8px; }
.toc b { display: block; margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 20px; columns: 1; }
@media (min-width: 640px) { .toc ol { columns: 2; column-gap: 32px; } }
.toc li { font-size: 15px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; }
.back-link svg { width: 18px; height: 18px; }
