:root {
  --primary: #5b67ca;
  --primary-dark: #4350b0;
  --primary-soft: #eef0fc;
  --income: #2ecc71;
  --income-soft: #e8f8ef;
  --expense: #e74c3c;
  --expense-soft: #fdecea;
  --warn: #ffa726;
  --ink: #1b1d2a;
  --muted: #5d6275;
  --line: #e4e6f0;
  --bg: #fafafc;
  --card: #ffffff;
  --radius: 16px;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-dark); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 800; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.hero-grid > *, .feature > * { min-width: 0; }
body { overflow-x: hidden; }
.section { padding: 72px 0; }
.section.alt { background: #fff; border-block: 1px solid var(--line); }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 10px;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.2rem; color: var(--ink); text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.nav-links a:hover { color: var(--primary); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; padding: 6px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px;
  font-weight: 800; text-decoration: none; border: 2px solid transparent; font-size: 1rem; cursor: pointer;
}
.btn-primary { background: var(--primary); color: #fff !important; box-shadow: 0 8px 20px rgba(91,103,202,.35); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: #fff; color: var(--ink) !important; border-color: var(--line); }
.btn-disabled { background: #f0f1f6; color: var(--muted) !important; cursor: default; }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 10px; }
.fineprint { font-size: .85rem; color: var(--muted); }

/* hero */
.hero { padding: 64px 0 40px; background: linear-gradient(180deg, #eef0fc 0%, var(--bg) 100%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 span { color: var(--primary); }
.hero-visual { display: flex; justify-content: center; gap: 18px; }
.hero-visual .phone:nth-child(2) { margin-top: 48px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; color: var(--muted); font-size: .92rem; font-weight: 600; }
.trust span::before { content: "✓ "; color: var(--income); font-weight: 900; }

/* phone frame */
.phone {
  margin: 0; width: 100%; max-width: 250px; border: 9px solid #15161d; border-radius: 38px;
  overflow: hidden; background: #15161d; box-shadow: 0 24px 50px rgba(30,35,80,.22);
}
.phone img { border-radius: 28px; width: 100%; }

/* cards & grids */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--primary-soft);
  display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 14px;
}
.card p:last-child { margin-bottom: 0; }
a.card { text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; display: block; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(30,35,80,.1); }
a.card .more { color: var(--primary-dark); font-weight: 800; margin-top: 10px; display: inline-block; }

/* feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 36px 0; }
.feature.flip .feature-text { order: 2; }
.feature .phone { margin-inline: auto; }
.feature ul, .checks { list-style: none; padding: 0; margin: 14px 0 0; }
.feature li, .checks li { padding-left: 28px; position: relative; margin-bottom: 8px; }
.feature li::before, .checks li::before { content: "✓"; position: absolute; left: 0; color: var(--income); font-weight: 900; }

/* gallery */
.gallery { display: flex; gap: 20px; overflow-x: auto; padding: 8px 20px 28px; scroll-snap-type: x mandatory; }
.gallery figure { flex: 0 0 230px; margin: 0; scroll-snap-align: center; }
.gallery figcaption { text-align: center; font-weight: 700; font-size: .92rem; margin-top: 12px; color: var(--muted); }

/* currency illustration */
.illus { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: 0 18px 40px rgba(30,35,80,.1); max-width: 420px; margin-inline: auto; }
.illus .tag { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 800; margin-bottom: 10px; }
.cur-head { display: flex; justify-content: space-between; align-items: center; font-weight: 800; padding: 10px 14px; border-radius: 12px; background: linear-gradient(135deg, #5b67ca, #4350b0); color: #fff; margin: 14px 0 8px; }
.cur-head small { opacity: .85; font-weight: 600; }
.cur-row { display: flex; justify-content: space-between; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; font-weight: 700; font-size: .95rem; }
.cur-row span:last-child { font-weight: 900; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 820px; margin: 34px auto 0; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.plan.pro { border: 2px solid var(--primary); box-shadow: 0 14px 34px rgba(91,103,202,.18); }
.plan h3 { font-size: 1.3rem; }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 800; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--primary); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { color: var(--muted); padding-bottom: 8px; }

/* cta band */
.cta-band { background: linear-gradient(135deg, #5b67ca, #3f4bb0); color: #fff; border-radius: 28px; padding: 54px 28px; text-align: center; }
.cta-band .lead { color: #e1e4ff; margin-inline: auto; }
.cta-band .btn-primary { background: #fff; color: var(--primary-dark) !important; box-shadow: none; }
.cta-band .cta-row { justify-content: center; }

/* page header (inner pages) */
.page-hero { padding: 56px 0 36px; background: linear-gradient(180deg, #eef0fc 0%, var(--bg) 100%); }
.breadcrumb { font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }

/* legal / prose */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.35rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.05rem; margin-top: 1.4em; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose p, .prose li { color: #2b2e3d; }

/* footer */
.site-footer { background: #15161d; color: #c9ccdc; padding: 54px 0 30px; margin-top: 40px; }
.site-footer a { color: #c9ccdc; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid h4 { color: #fff; margin: 0 0 12px; font-size: .95rem; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: 8px; font-size: .93rem; }
.foot-bottom { border-top: 1px solid #2a2c3a; margin-top: 34px; padding-top: 20px; font-size: .85rem; color: #8d91a6; }

@media (max-width: 860px) {
  .section { padding: 52px 0; }
  .hero-grid, .feature, .grid-3, .grid-2, .plans { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { gap: 12px; }
  .hero-visual .phone { flex: 1 1 0; min-width: 0; max-width: 190px; }
  .feature { gap: 28px; }
  .feature.flip .feature-text { order: 0; }
  .hero-visual .phone:nth-child(2) { margin-top: 28px; }
  .phone { max-width: 210px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: flex-start; padding: 16px 20px 22px; gap: 14px; border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } a.card { transition: none; } }
