:root {
  --navy: #07183f;
  --navy-2: #0d2859;
  --green: #079447;
  --green-dark: #05743a;
  --green-soft: #e9f8ef;
  --yellow: #f3bd2e;
  --yellow-soft: #fff7dd;
  --ink: #13213c;
  --muted: #5d6b82;
  --line: #dfe5ed;
  --surface: #f6f8fb;
  --white: #fff;
  --danger: #b42318;
  --shadow: 0 18px 45px rgba(7, 24, 63, .09);
  --radius: 14px;
  --container: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--white); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.header-inner { min-height: 72px; display: flex; align-items: center; gap: 34px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 29px; letter-spacing: -.05em; color: var(--navy); }
.brand-mark { width: 13px; height: 13px; border-radius: 3px 3px 8px 3px; background: var(--green); transform: rotate(12deg); }
.main-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.main-nav a { text-decoration: none; color: var(--navy); font-size: 14px; font-weight: 700; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--green); }
.button { border: 0; border-radius: 10px; min-height: 46px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; background: var(--green); color: white; font-weight: 800; text-decoration: none; cursor: pointer; box-shadow: 0 8px 20px rgba(7,148,71,.18); }
.button:hover { background: var(--green-dark); }
.button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .icon-button:focus-visible { outline: 3px solid rgba(7,148,71,.25); outline-offset: 2px; }
.button.secondary { background: white; color: var(--green); border: 1px solid var(--green); box-shadow: none; }
.button.ghost { background: transparent; color: var(--navy); border: 1px solid var(--line); box-shadow: none; }
.button:disabled { opacity: .55; cursor: wait; }
.hero { padding: 84px 0 92px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(500px, 1.1fr); align-items: center; gap: 66px; }
.hero h1 { color: var(--navy); font-size: clamp(52px, 6.3vw, 82px); line-height: .96; letter-spacing: -.064em; margin: 0 0 26px; max-width: 700px; }
.hero p { color: var(--muted); font-size: 19px; line-height: 1.7; max-width: 590px; margin: 0 0 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.product-stage { position: relative; min-height: 450px; display: grid; place-items: center; }
.product-stage::before { content: ""; position: absolute; z-index: 0; inset: 12% 4% 5%; border: 1px solid #d9e5dc; border-radius: 46% 54% 40% 60%; background: var(--green-soft); transform: rotate(-5deg); }
.product-screenshot { position: relative; z-index: 1; display: block; width: 96%; height: auto; border: 9px solid #071226; border-radius: 18px; box-shadow: 0 34px 70px rgba(7,24,63,.2); transform: perspective(900px) rotateY(-4deg); }
.trust-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-inner { min-height: 88px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; align-items: center; }
.trust-item { display: flex; align-items: center; gap: 13px; color: var(--navy); font-size: 14px; font-weight: 800; }
.trust-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--green); background: var(--green-soft); }
.section { padding: 96px 0; }
.section.soft { background: var(--surface); }
.section.dark { background: var(--navy); color: white; }
.section-heading { max-width: 700px; margin-bottom: 52px; }
.section-heading.center { margin-inline: auto; text-align: center; }
.section h2 { color: var(--navy); font-size: clamp(36px, 4vw, 54px); line-height: 1.05; letter-spacing: -.045em; margin: 0 0 16px; }
.section.dark h2 { color: white; }
.section-heading p { color: var(--muted); font-size: 18px; line-height: 1.65; margin: 0; }
.section.dark .section-heading p { color: #bdc8db; }
.feature-rail { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature { padding: 31px 24px; border-right: 1px solid var(--line); }
.feature:first-child { padding-left: 0; }
.feature:last-child { border-right: 0; }
.feature .num { color: var(--green); font-weight: 900; font-size: 13px; }
.feature h3 { color: var(--navy); margin: 32px 0 10px; font-size: 19px; }
.feature p { color: var(--muted); margin: 0; font-size: 14px; line-height: 1.6; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 54px; counter-reset: steps; }
.step { position: relative; counter-increment: steps; padding-top: 70px; }
.step::before { content: counter(steps, decimal-leading-zero); position: absolute; top: 0; left: 0; color: var(--green); font-size: 33px; font-weight: 900; letter-spacing: -.04em; }
.step::after { content: ""; position: absolute; top: 22px; left: 74px; right: -25px; height: 1px; background: var(--line); }
.step:last-child::after { display: none; }
.step h3 { color: var(--navy); font-size: 23px; margin: 0 0 12px; }
.step p { color: var(--muted); line-height: 1.65; margin: 0; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.plan { display: flex; flex-direction: column; min-height: 300px; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.plan.featured { border: 2px solid var(--green); }
.plan h3 { color: var(--navy); font-size: 25px; margin: 0 0 14px; }
.plan p { color: var(--muted); line-height: 1.6; margin: 0 0 28px; }
.plan-price { margin-top: auto; color: var(--green); font-weight: 900; font-size: 19px; }
.plan .button { margin-top: 20px; width: 100%; }
.contact-band { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.contact-band p { color: #bdc8db; max-width: 650px; font-size: 18px; line-height: 1.6; }
.contact-actions { display: grid; gap: 12px; min-width: 320px; }
.contact-actions .button { width: 100%; }
.contact-actions .web-builder-button { background: white; color: var(--navy); box-shadow: none; }
.contact-actions .web-builder-button:hover { background: var(--green-soft); }
.contact-actions small { max-width: 330px; color: #aebbd0; font-size: 12px; line-height: 1.5; text-align: center; }
.site-footer { background: #04102b; color: #b7c2d6; padding: 38px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; align-items: center; font-size: 14px; }
.footer-inner a { color: white; text-decoration: none; }

/* Client portal */
.portal-body { background: var(--surface); min-height: 100vh; }
.portal-header { background: white; border-bottom: 1px solid var(--line); }
.portal-header .header-inner { justify-content: space-between; }
.portal-title { border-left: 1px solid var(--line); margin-left: 10px; padding-left: 24px; color: var(--navy); font-size: 20px; font-weight: 850; }
.portal-business { margin-left: auto; color: var(--navy); font-weight: 800; }
.portal-main { padding: 54px 0 80px; }
.login-wrap { min-height: calc(100vh - 73px); display: grid; place-items: center; padding: 40px 20px; }
.login-panel { width: min(100%, 460px); background: white; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 38px; }
.login-panel h1 { color: var(--navy); margin: 0 0 9px; font-size: 34px; letter-spacing: -.04em; }
.login-panel > p { color: var(--muted); line-height: 1.55; margin: 0 0 28px; }
.field { display: grid; gap: 8px; margin-bottom: 17px; }
.field label { color: var(--navy); font-weight: 800; font-size: 14px; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #cdd5e1; border-radius: 9px; background: white; color: var(--ink); min-height: 46px; padding: 11px 13px; }
.field textarea { min-height: 98px; resize: vertical; }
.login-panel .button { width: 100%; }
.divider { display: flex; align-items: center; gap: 12px; color: #8994a7; font-size: 12px; margin: 20px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.google-button { background: white; color: var(--navy); border: 1px solid var(--line); box-shadow: none; }
.error-message, .success-message { display: none; padding: 12px 14px; border-radius: 9px; font-size: 14px; margin-bottom: 16px; }
.error-message { background: #fff1f0; color: var(--danger); border: 1px solid #ffd3cf; }
.success-message { background: var(--green-soft); color: var(--green-dark); border: 1px solid #bde8ca; }
.dashboard-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.dashboard-head h1 { color: var(--navy); margin: 0 0 8px; font-size: 46px; letter-spacing: -.05em; }
.dashboard-head p { color: var(--muted); margin: 0; font-size: 17px; }
.license-section h2, .history-section h2 { color: var(--navy); margin: 0 0 15px; font-size: 22px; }
.license-panel { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: grid; grid-template-columns: 1fr 2fr; gap: 36px; align-items: center; }
.license-state { display: flex; align-items: center; gap: 15px; color: var(--green); font-size: 21px; font-weight: 900; }
.license-state.off { color: var(--danger); }
.state-icon { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); font-size: 26px; }
.license-state.off .state-icon { background: #fff1f0; }
.license-data { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.data-label { color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.data-value { color: var(--navy); font-weight: 850; overflow-wrap: anywhere; }
.report-action { margin: 20px 0 52px; }
.history-shell { background: white; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.payment-table { width: 100%; border-collapse: collapse; }
.payment-table th, .payment-table td { padding: 16px 20px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; }
.payment-table th { color: var(--navy); background: #fbfcfe; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.payment-table tr:last-child td { border-bottom: 0; }
.status { display: inline-flex; padding: 6px 10px; border-radius: 8px; font-size: 12px; font-weight: 850; background: var(--green-soft); color: var(--green-dark); }
.status.pending_review { background: var(--yellow-soft); color: #805900; }
.status.rejected { background: #fff1f0; color: var(--danger); }
.empty { padding: 38px; text-align: center; color: var(--muted); }
.back-public { display: inline-block; color: var(--green-dark); font-weight: 750; margin-top: 28px; text-decoration: none; }
.modal-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(4,16,43,.52); display: none; align-items: stretch; justify-content: flex-end; }
.modal-backdrop.open { display: flex; }
.payment-drawer { width: min(100%, 500px); background: white; padding: 32px; overflow: auto; box-shadow: -18px 0 50px rgba(4,16,43,.18); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.drawer-head h2 { color: var(--navy); margin: 0; }
.icon-button { border: 0; width: 42px; height: 42px; border-radius: 9px; background: var(--surface); color: var(--navy); font-size: 24px; cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-help { color: var(--muted); font-size: 12px; line-height: 1.5; }
.drawer-actions { display: grid; gap: 10px; margin-top: 24px; }
.loading { min-height: 420px; display: grid; place-items: center; color: var(--muted); }
.spinner { width: 22px; height: 22px; border: 3px solid #d8dfE8; border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none !important; }

@media (max-width: 900px) {
  .main-nav a:not(.button) { display: none; }
  .hero { padding-top: 54px; }
  .hero-grid { grid-template-columns: 1fr; gap: 42px; }
  .product-stage { min-height: 360px; }
  .feature-rail { grid-template-columns: 1fr 1fr; }
  .feature { border-bottom: 1px solid var(--line); }
  .plans { grid-template-columns: 1fr; }
  .portal-business { display: none; }
}
@media (max-width: 640px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .header-inner { min-height: 64px; gap: 12px; }
  .brand { font-size: 24px; }
  .main-nav { gap: 10px; }
  .main-nav .button { min-height: 40px; padding: 0 13px; font-size: 12px; }
  .hero { padding: 52px 0 64px; }
  .hero h1 { font-size: 51px; }
  .hero p { font-size: 17px; }
  .product-stage { min-height: 275px; }
  .product-screenshot { width: 100%; border-width: 5px; transform: none; }
  .trust-inner { grid-template-columns: 1fr; padding: 22px 0; gap: 15px; }
  .section { padding: 68px 0; }
  .section-heading { margin-bottom: 38px; }
  .feature-rail, .steps { grid-template-columns: 1fr; }
  .feature, .feature:first-child { padding: 24px 0; border-right: 0; }
  .feature h3 { margin-top: 18px; }
  .step::after { display: none; }
  .contact-band { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .portal-title { font-size: 16px; padding-left: 14px; }
  .portal-header .button { min-height: 38px; padding: 0 12px; font-size: 12px; }
  .portal-main { padding-top: 34px; }
  .dashboard-head { display: block; }
  .dashboard-head h1 { font-size: 39px; }
  .dashboard-head .button { margin-top: 20px; width: 100%; }
  .license-panel { grid-template-columns: 1fr; padding: 22px; }
  .license-data { grid-template-columns: 1fr; gap: 16px; }
  .history-shell { overflow-x: auto; }
  .payment-table { min-width: 700px; }
  .payment-drawer { padding: 24px 20px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .login-panel { padding: 28px 22px; }
}
