:root {
  --blue-700: #0b79d1;
  --blue-500: #30afff;
  --blue-100: #e8f6ff;
  --ink: #0f172a;
  --muted: #64748b;
  --bg: #ffffff;
  --tint: #f1f5f9;
  --white: #fff;
  --line: #e2e8f0;
  --radius: 14px;
  --shadow: 0 16px 36px -16px rgba(15, 23, 42, .12);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: var(--sans);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.wrap--narrow { width: min(760px, 100% - 40px); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue-700); outline-offset: 3px; }

/* Buttons */
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 999px; font-weight: 600;
  text-decoration: none; border: 2px solid transparent; transition: transform .15s, box-shadow .15s, background .15s, color .15s;
  text-align: center; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--blue-500); color: var(--ink); box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--blue-700); color: var(--white); }
.btn--ghost { border-color: var(--blue-700); color: var(--blue-700); background: transparent; }
.btn--ghost:hover { background: var(--blue-100); }
.btn--gold { background: var(--blue-500); color: var(--ink); font-size: 1.1rem; padding: 16px 34px; }
.btn--gold:hover { background: var(--blue-700); color: var(--white); }
.btn--small { padding: 9px 20px; background: var(--blue-500); color: var(--ink); }
.btn--small:hover { background: var(--blue-700); color: var(--white); }
.btn--block { display: block; width: 100%; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .85); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.is-stuck { border-color: var(--line); }
.nav__in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; font-size: 1.35rem; color: var(--ink); text-decoration: none; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a:not(.btn) { text-decoration: none; font-weight: 500; color: var(--muted); }
.nav__links a:not(.btn):hover { color: var(--blue-700); }
.nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); transition: transform .2s, top .2s; }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; background:
  radial-gradient(900px 500px at 85% -10%, var(--blue-100), transparent 70%),
  radial-gradient(600px 400px at -10% 90%, var(--blue-100), transparent 70%), var(--bg); }
.hero__in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--blue-700); margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); color: var(--ink); }
.lead { margin-top: 22px; font-size: 1.15rem; color: var(--muted); max-width: 540px; }
.hero__cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__note { margin-top: 14px; font-size: .88rem; color: var(--muted); }

.hero__visual { position: relative; display: grid; place-items: center; padding: 20px; }
.doc {
  position: relative; width: min(360px, 100%); background: var(--white); border-radius: 14px; padding: 26px;
  box-shadow: var(--shadow), 0 0 0 1px var(--line); transform: rotate(2.5deg); overflow: hidden;
  font-size: .86rem; display: grid; gap: 12px;
}
.doc__head { display: flex; justify-content: space-between; font-weight: 700; letter-spacing: .12em; color: var(--ink); border-bottom: 2px solid var(--blue-500); padding-bottom: 10px; }
.doc__tag { font-weight: 600; letter-spacing: .04em; color: var(--blue-700); background: var(--blue-100); border-radius: 999px; padding: 2px 10px; font-size: .72rem; text-transform: none; }
.doc__no { font-weight: 500; color: var(--muted); letter-spacing: 0; }
.doc__line { display: flex; justify-content: space-between; color: var(--muted); }
.doc__line b { color: var(--ink); }
.doc__rows { display: grid; gap: 8px; padding: 10px 0; border-block: 1px dashed var(--line); }
.doc__rows div { display: grid; grid-template-columns: 1fr auto 70px; gap: 10px; color: var(--muted); }
.doc__rows b { text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.doc__total { display: flex; justify-content: space-between; font-size: 1.05rem; }
.doc__total b { color: var(--blue-700); }
.scan { position: absolute; left: 0; right: 0; height: 60px; top: -60px; background: linear-gradient(to bottom, transparent, rgba(48, 175, 255, .45)); border-bottom: 2px solid var(--blue-500); animation: scan 3.6s ease-in-out infinite; }
@keyframes scan { 0% { top: -60px; } 60%, 100% { top: 100%; } }

.chip { position: absolute; display: flex; align-items: center; gap: 8px; background: var(--white); padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: .85rem; box-shadow: var(--shadow), 0 0 0 1px var(--line); animation: float 5s ease-in-out infinite; white-space: nowrap; max-width: 220px; }
.chip i { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.chip--ok { left: -34px; top: -14px; }
.chip--ok i { background: #2fa36b; }
.chip--review { right: -34px; bottom: -14px; animation-delay: -2.5s; }
.chip--review i { background: #b45309; }
@keyframes float { 50% { transform: translateY(-9px); } }

/* Strip */
.strip { background: var(--blue-700); color: var(--white); }
.strip__in { padding: 26px 0; text-align: center; font-size: 1.08rem; }
.strip b { color: var(--blue-100); }

/* Sections */
.section { padding: 96px 0; }
.section--tint { background: var(--tint); }
.section h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: var(--ink); max-width: 720px; }
.sub { margin-top: 14px; color: var(--muted); font-size: 1.08rem; }

.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: s; }
.steps li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; position: relative; }
.steps__n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--blue-500); color: var(--ink); font-family: var(--serif); font-weight: 700; font-size: 1.2rem; margin-bottom: 18px; }
.steps h3, .card h3 { font-size: 1.3rem; margin-bottom: 8px; color: var(--ink); }
.steps p, .card p { color: var(--muted); }

.grid { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--white); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.ico { width: 48px; height: 48px; border-radius: 14px; background: var(--blue-100); display: grid; place-items: center; margin-bottom: 16px; }
.ico svg { width: 24px; height: 24px; fill: none; stroke: var(--blue-700); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Pricing */
.plans { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1140px; }
.plan { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; }
.plan--featured { background: var(--blue-700); color: var(--white); border-color: var(--blue-700); box-shadow: var(--shadow); }
.plan h3 { font-size: 1.5rem; }
.plan--featured h3 { color: var(--white); }
.plan__flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--blue-500); color: var(--ink); font-size: .74rem; font-weight: 700; padding: 4px 14px; border-radius: 999px; }
.plan__flag--soft { background: var(--blue-100); color: var(--blue-700); }
.plans__note { margin-top: 20px; }
.plan__price { margin-top: 14px; font-size: 1rem; }
.plan__price b { font-family: var(--serif); font-size: 2.6rem; }
.plan__price span { opacity: .7; }
.plan--featured .plan__price span { opacity: .85; }
.plan__badge { display: inline-block; align-self: flex-start; margin-top: 10px; background: var(--blue-100); color: var(--blue-700); font-weight: 600; font-size: .85rem; padding: 4px 14px; border-radius: 999px; }
.plan__badge--gold { background: var(--blue-500); color: var(--ink); }
.plan--featured .plan__badge:not(.plan__badge--gold) { background: rgba(255, 255, 255, .16); color: var(--white); }
.plan ul { list-style: none; padding: 0; margin: 26px 0 32px; display: grid; gap: 12px; flex: 1; }
.plan li { padding-left: 28px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 16px; border-radius: 50%; background: var(--blue-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.3 2.3 4.7-4.7' fill='none' stroke='%230b79d1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.plan--featured li::before { background: rgba(255, 255, 255, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.3 2.3 4.7-4.7' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.plan--featured .btn--primary:hover { background: var(--blue-100); color: var(--ink); }

/* FAQ */
details { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; margin-top: 14px; }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--blue-700); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin-top: 12px; color: var(--muted); }
.section--tint h2 { margin-bottom: 18px; }

/* CTA */
.cta { background: var(--blue-700); color: var(--white); text-align: center; padding: 96px 0; }
.cta h2 { font-size: clamp(1.9rem, 4vw, 3rem); max-width: 720px; margin: 0 auto; }
.cta p { margin: 18px auto 32px; max-width: 520px; opacity: .9; }
.cta .cta__mail { margin: 18px 0 0; font-size: .95rem; opacity: .75; }

.foot { background: var(--blue-700); color: rgba(255, 255, 255, .75); border-top: 1px solid rgba(255, 255, 255, .12); font-size: .9rem; }
.foot__in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 24px 0; }
.foot a { color: var(--blue-100); text-decoration: none; }

/* Reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero__in { grid-template-columns: 1fr; gap: 40px; }
  .chip--ok { left: 0; top: -14px; }
  .chip--review { right: 0; bottom: -14px; }
  .steps, .grid { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .section, .cta { padding: 72px 0; }
  .nav__toggle { display: block; }
  .nav__links { position: absolute; top: 68px; left: 0; right: 0; background: var(--bg); flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 22px; border-bottom: 1px solid var(--line); display: none; }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 12px 0; }
  .nav__links .btn { margin-top: 8px; }
}
@media (min-width: 620px) and (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
