/* PropDiagram design system */
:root {
  --navy-900: #06182F;
  --navy-800: #0B2545;
  --navy-700: #13355F;
  --blue: #1570EF;
  --blue-600: #0F5FD1;
  --blue-50: #EAF2FF;
  --green: #3DDC4E;
  --green-600: #22B936;
  --orange: #F97316;
  --purple: #7C3AED;
  --text: #0F1B2D;
  --muted: #5B6778;
  --line: #DCE3EC;
  --bg: #FFFFFF;
  --bg-soft: #EEF4FB;
  --card: #FFFFFF;
  --ok: #157A3C;
  --warn-bg: #FFF4E0; --warn: #8A5300;
  --err-bg: #FDECEA; --err: #8B1C13;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(6, 24, 47, .10);
  --font-head: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.55 var(--font-body); color: var(--text); background: var(--bg); }
img { max-width: 100%; }
a { color: var(--blue); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.page { padding: 32px 20px 64px; min-height: 55vh; }
h1, h2, h3 { font-family: var(--font-head); color: var(--navy-800); line-height: 1.12; letter-spacing: -.01em; }
h1 { font-size: 2rem; margin: 0 0 14px; font-weight: 800; }
h2 { font-size: 1.4rem; font-weight: 700; }
.muted { color: var(--muted); font-size: .92rem; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy-800); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-head); font-size: 1.75rem; font-weight: 800; color: var(--navy-800); letter-spacing: -.02em; }
.brand-name b { color: var(--blue); font-weight: 800; }
.brand-tag { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 5px; font-weight: 600; }
.brand-small .brand-name { font-size: 1.3rem; }
.main-nav { display: flex; align-items: center; gap: 30px; flex: 1; }
.main-nav > a { color: var(--navy-800); text-decoration: none; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav > a:hover { color: var(--blue); }
.main-nav > a.active { color: var(--blue); border-bottom-color: var(--blue); }
.main-nav > a:first-child { margin-left: auto; }
.nav-actions { margin-left: auto; display: flex; gap: 14px; }
.nav-toggle, .nav-burger { display: none; }

/* ---------- buttons & forms ---------- */
.btn, button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 1rem var(--font-body);
  background: var(--blue); color: #fff; border: 2px solid var(--blue); border-radius: 10px; padding: 11px 22px;
  cursor: pointer; text-decoration: none; transition: background .15s, transform .15s; }
.btn:hover, button:hover { background: var(--blue-600); border-color: var(--blue-600); }
.btn-outline, button.secondary, .btn.secondary { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover, button.secondary:hover, .btn.secondary:hover { background: var(--blue-50); color: var(--blue-600); }
.btn-green { background: var(--green); border-color: var(--green); color: var(--navy-900); }
.btn-green:hover { background: var(--green-600); border-color: var(--green-600); }
.btn-lg { padding: 15px 30px; font-size: 1.08rem; border-radius: 12px; }
.btn.small { padding: 7px 14px; font-size: .9rem; }
button:disabled { background: #9AA6B4; border-color: #9AA6B4; cursor: not-allowed; }
label { display: block; font-weight: 600; margin: 14px 0 6px; color: var(--navy-800); }
input[type=text], input[type=file] { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; background: #fff; }
input[type=text]:focus { outline: 3px solid var(--blue-50); border-color: var(--blue); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--text); }
.check input { margin-top: 5px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 18px 0;
  box-shadow: 0 2px 8px rgba(6,24,47,.04); }
.price { font-size: 1.05rem; }
.price strong { font-size: 1.5rem; color: var(--navy-800); font-family: var(--font-head); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.banner { padding: 12px 16px; border-radius: 10px; margin: 14px 0; }
.warn { background: var(--warn-bg); color: var(--warn); }
.error { background: var(--err-bg); color: var(--err); padding: 12px 16px; border-radius: 10px; }
.okmsg { background: #E7F6EC; color: var(--ok); padding: 12px 16px; border-radius: 10px; }
.devbar { background: #FFF3B0; text-align: center; font-size: .85rem; padding: 5px; }

/* ---------- app tables & reports ---------- */
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: middle; }
th { background: var(--navy-800); color: #fff; font-weight: 600; }
td.num, th.num { text-align: right; }
tr.total td { background: var(--bg-soft); font-weight: 700; }
td input[type=text] { padding: 7px 10px; min-width: 140px; }
.table-scroll { overflow-x: auto; }
.diagram { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.card.lot { display: grid; gap: 6px; padding: 16px 22px; }
.status { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: .84rem; background: #E9EDF2; font-weight: 600; }
.status.done { background: #E7F6EC; color: var(--ok); }
.status.failed, .status.payment_failed { background: var(--err-bg); color: var(--err); }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--blue); border-radius: 50%;
  animation: spin 1s linear infinite; display: inline-block; vertical-align: middle; margin-right: 10px; }
@keyframes spin { to { transform: rotate(360deg); } }
.legal { max-width: 820px; }
.legal h2 { margin-top: 30px; }
.draft { background: #FFF3B0; padding: 10px 14px; border-radius: 10px; }
.auth-box { max-width: 460px; margin: 10px auto; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-900); color: #C9D6E8; padding: 34px 0; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 36px; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-name b { color: #5BA2FF; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-nav a { color: #C9D6E8; text-decoration: none; }
.footer-nav a:hover { color: #fff; }
.footer-note { flex-basis: 100%; margin: 4px 0 0; font-size: .85rem; color: #8FA3BD; }

/* ============ marketing pages ============ */
.eyebrow { display: inline-block; font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 800; margin: 0 0 10px; }
.section-head p { font-size: 1.15rem; color: #34425A; margin: 0; }

/* hero */
.hero { position: relative; color: #fff; overflow: hidden;
  background: radial-gradient(1200px 600px at 85% 30%, #1B4E8C 0%, rgba(11,37,69,0) 60%),
              linear-gradient(115deg, var(--navy-900) 0%, var(--navy-800) 45%, #123E73 100%); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .12;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 48px 48px; mask-image: linear-gradient(90deg, transparent 0%, #000 55%); -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%); }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: 40px; align-items: center; padding: 64px 20px 72px; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.02; margin: 0 0 22px; }
.hero h1 .accent { color: var(--green); display: block; }
.hero-lead { font-size: clamp(1.1rem, 1.7vw, 1.4rem); color: #DDE7F5; max-width: 34ch; margin: 0 0 30px; font-weight: 400; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 22px 30px; margin: 0 0 34px; padding: 0; list-style: none; }
.hero-badges li { display: flex; align-items: center; gap: 12px; font-weight: 500; line-height: 1.25; }
.icon-circle { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.icon-circle svg { width: 28px; height: 28px; }
.ic-green { background: var(--green-600); } .ic-blue { background: var(--blue); } .ic-orange { background: var(--orange); }
.ic-navy { background: var(--navy-800); } .ic-purple { background: var(--purple); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-cta .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.hero-cta .btn-outline:hover { background: rgba(255,255,255,.1); color: #fff; }
.hero-note { margin-top: 16px; font-size: .9rem; color: #A9BBD4; }
.hero-art { filter: drop-shadow(0 30px 50px rgba(0,0,0,.35)); }
.hero-art svg { width: 100%; height: auto; display: block; border-radius: 18px; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.step-head { display: flex; gap: 14px; align-items: flex-start; min-height: 118px; }
.step-num { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--blue); color: #fff;
  display: grid; place-items: center; font: 800 1.35rem var(--font-head); box-shadow: 0 6px 14px rgba(21,112,239,.35); }
.step h3 { margin: 4px 0 6px; font-size: 1.15rem; }
.step p { margin: 0; color: #46546A; font-size: .96rem; }
.step-card { margin-top: 16px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.step-card svg { display: block; width: 100%; height: auto; }

/* why */
.why-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 26px; text-align: center; }
.why-grid .icon-circle { width: 96px; height: 96px; margin: 0 auto 16px; box-shadow: 0 10px 22px rgba(6,24,47,.15); }
.why-grid .icon-circle svg { width: 42px; height: 42px; }
.why-grid h3 { font-size: 1.12rem; margin: 0 0 6px; }
.why-grid p { margin: 0; color: #46546A; font-size: .95rem; }

/* cta band */
.cta-band { color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(100deg, var(--navy-900) 0%, var(--navy-800) 55%, #1A4A86 100%); }
.cta-band::after { content: ""; position: absolute; right: -120px; top: -80px; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(61,220,78,.18), transparent 65%); }
.cta-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 60px 20px; }
.cta-band h2 { color: #fff; font-size: clamp(2rem, 4vw, 3.2rem); margin: 0 0 12px; font-weight: 800; }
.cta-band h2 .accent { color: var(--green); display: block; }
.cta-band p { color: #DDE7F5; font-size: 1.15rem; margin: 0 0 24px; max-width: 42ch; }
.checklist { list-style: none; margin: 0; padding: 26px 28px; background: rgba(6,24,47,.55); border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: center; font-size: 1.05rem; }
.checklist li::before { content: ""; flex: none; width: 24px; height: 24px; border-radius: 6px; background: var(--green)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%2306182F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }

/* features & pricing */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: 0 2px 8px rgba(6,24,47,.04); }
.feature .icon-circle { margin-bottom: 14px; }
.feature h3 { margin: 0 0 8px; font-size: 1.2rem; }
.feature p { margin: 0; color: #46546A; }
.feature ul { margin: 10px 0 0; padding-left: 18px; color: #46546A; }
.page-hero { background: linear-gradient(115deg, var(--navy-900), var(--navy-800) 60%, #123E73); color: #fff; padding: 56px 0 50px; }
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 4vw, 3.1rem); margin: 0 0 10px; }
.page-hero p { color: #DDE7F5; font-size: 1.15rem; margin: 0; max-width: 60ch; }
.price-card { max-width: 480px; margin: 0 auto; text-align: center; border: 2px solid var(--blue); border-radius: 20px; padding: 36px 32px;
  background: #fff; box-shadow: var(--shadow); }
.price-amount { font: 800 3.6rem/1 var(--font-head); color: var(--navy-800); margin: 10px 0 4px; }
.price-amount small { font-size: 1.1rem; font-weight: 600; color: var(--muted); }
.price-card ul { list-style: none; padding: 0; margin: 22px 0 28px; text-align: left; display: grid; gap: 10px; }
.price-card li { padding-left: 30px; position: relative; }
.price-card li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--green)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%2306182F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { font-weight: 600; cursor: pointer; color: var(--navy-800); font-size: 1.05rem; }
.faq p { color: #46546A; margin: 10px 0 0; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-inner, .cta-inner { grid-template-columns: 1fr; }
  .hero-inner { padding-top: 44px; }
  .nav-burger { display: flex; flex-direction: column; gap: 5px; margin-left: auto; cursor: pointer; padding: 10px; }
  .nav-burger span { width: 24px; height: 3px; background: var(--navy-800); border-radius: 2px; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 76px; background: #fff; flex-direction: column;
    align-items: stretch; gap: 0; padding: 8px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .main-nav > a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .main-nav > a:first-child { margin-left: 0; }
  .main-nav > a.active { border-bottom-color: var(--line); }
  .nav-actions { margin: 14px 0 0; flex-direction: column; }
  .nav-toggle:checked ~ .main-nav { display: flex; }
  .brand-tag { display: none; }
}
@media (max-width: 640px) {
  .steps, .feature-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .step-head { min-height: 0; }
  .section { padding: 52px 0; }
  .brand-name { font-size: 1.45rem; }
  h1 { font-size: 1.6rem; }
}
