:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --ink: #14203a;
  --ink-soft: #51607a;
  --ink-faint: #8a93a6;
  --accent: #2563eb;
  --accent-ink: #1d4fc4;
  --accent-soft: #e8effd;
  --ok: #0f9d58;
  --warn: #b45309;
  --danger: #dc2626;
  --line: #e3e9f2;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 32, 58, 0.05), 0 8px 24px rgba(20, 32, 58, 0.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 20px; }

/* ---------- nav ---------- */
nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(247, 249, 252, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 60px; }
.logo { font-size: 20px; font-weight: 800; letter-spacing: -0.3px; text-decoration: none; color: var(--ink); }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }

.btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 15px;
  padding: 11px 22px; border-radius: 10px; transition: background 0.15s;
}
.btn:hover { background: var(--accent-ink); }
.btn.big { font-size: 16.5px; padding: 14px 30px; }
.btn:disabled { background: #b9c6e2; cursor: not-allowed; }

/* ---------- hero ---------- */
.hero { padding: 84px 0 60px; text-align: center; }
.hero h1 {
  font-size: clamp(32px, 5.4vw, 52px); line-height: 1.12; letter-spacing: -1.2px;
  font-weight: 800; max-width: 780px; margin: 0 auto 20px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .sub {
  font-size: clamp(16px, 2.2vw, 19px); color: var(--ink-soft);
  max-width: 640px; margin: 0 auto 32px;
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 36px; }
.chip {
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 16px; font-size: 13.5px; font-weight: 500; color: var(--ink-soft);
}
.chip b { color: var(--ok); margin-right: 5px; }

/* ---------- sections ---------- */
section { padding: 56px 0; }
.section-title { font-size: 30px; font-weight: 800; letter-spacing: -0.6px; text-align: center; margin-bottom: 10px; }
.section-sub { text-align: center; color: var(--ink-soft); max-width: 560px; margin: 0 auto 40px; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 800px) { .grid3 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
}
.card .step-n {
  width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft);
  color: var(--accent); font-weight: 800; display: flex; align-items: center;
  justify-content: center; margin-bottom: 14px; font-size: 15px;
}
.card h3 { font-size: 17px; margin-bottom: 8px; letter-spacing: -0.2px; }
.card p { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- sample table ---------- */
.sample-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
table.sample { border-collapse: collapse; width: 100%; font-size: 13px; white-space: nowrap; }
table.sample th, table.sample td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; }
table.sample th { background: #fbfcfe; color: var(--ink-faint); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px; }
table.sample td { color: var(--ink-soft); }
table.sample .ok { color: var(--ok); font-weight: 600; }

/* ---------- pricing ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 860px; margin: 0 auto; }
@media (max-width: 800px) { .tiers { grid-template-columns: 1fr; } }
.tier { text-align: center; padding: 30px 22px; }
.tier .range { font-size: 13.5px; color: var(--ink-faint); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.tier .price { font-size: 40px; font-weight: 800; letter-spacing: -1.5px; margin: 8px 0 2px; }
.tier .price small { font-size: 15px; font-weight: 500; color: var(--ink-faint); letter-spacing: 0; }
.tier .per { color: var(--ink-soft); font-size: 14px; }
.tier.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); position: relative; }
.tier.featured::before {
  content: "Most popular"; position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 700;
  padding: 3px 12px; border-radius: 999px;
}
.pricing-note { text-align: center; color: var(--ink-faint); font-size: 13.5px; margin-top: 22px; }

/* ---------- configurator ---------- */
.builder { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .builder { grid-template-columns: 1fr; } }

.field { margin-bottom: 26px; }
.field > label { display: block; font-weight: 650; font-size: 14.5px; margin-bottom: 8px; }
.field .hint { font-size: 13px; color: var(--ink-faint); margin-top: 7px; }

input[type="text"], input[type="email"], input[type="number"], select {
  width: 100%; padding: 11px 14px; font-size: 15px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--surface); color: var(--ink); outline: none;
}
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tag {
  background: var(--accent-soft); color: var(--accent-ink); font-size: 13.5px; font-weight: 600;
  border-radius: 999px; padding: 5px 12px; display: inline-flex; align-items: center; gap: 7px;
}
.tag button { border: 0; background: none; color: var(--accent-ink); cursor: pointer; font-size: 15px; line-height: 1; padding: 0; }

.states-tools { display: flex; gap: 14px; margin-bottom: 10px; font-size: 13px; }
.states-tools button { border: 0; background: none; color: var(--accent); font-weight: 600; cursor: pointer; font-size: 13px; padding: 0; }
.states-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px;
  max-height: 230px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px; background: var(--surface);
}
.states-grid label {
  display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-soft);
  padding: 4px 6px; border-radius: 6px; cursor: pointer;
}
.states-grid label:hover { background: var(--bg); }

.qty-row { display: flex; gap: 16px; align-items: center; }
.qty-row input[type="range"] { flex: 1; accent-color: var(--accent); }
.qty-row input[type="number"] { width: 110px; }

.switch-row { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.switch-row input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; }
.switch-row .t { font-weight: 600; font-size: 14px; }
.switch-row .d { font-size: 13px; color: var(--ink-faint); }

.upload-box {
  border: 1.5px dashed var(--line); border-radius: 10px; padding: 18px; text-align: center;
  color: var(--ink-faint); font-size: 13.5px; cursor: pointer; background: var(--surface);
  transition: border-color 0.15s;
}
.upload-box:hover { border-color: var(--accent); color: var(--accent); }
.upload-box.has-file { border-color: var(--ok); color: var(--ok); font-weight: 600; }

/* ---------- summary panel ---------- */
.summary { position: sticky; top: 84px; }
.summary h3 { font-size: 16px; margin-bottom: 16px; }
.sum-line { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-soft); padding: 7px 0; border-bottom: 1px solid var(--line); }
.sum-line .v { font-weight: 600; color: var(--ink); text-align: right; max-width: 60%; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0 6px; }
.sum-total .label { font-size: 15px; font-weight: 700; }
.sum-total .amount { font-size: 34px; font-weight: 800; letter-spacing: -1px; }
.sum-per { text-align: right; color: var(--ink-faint); font-size: 13px; margin-bottom: 18px; }
.summary .err { color: var(--danger); font-size: 13.5px; margin: 10px 0; min-height: 18px; }
#paypal-container { margin-top: 14px; }
.secure-note { text-align: center; font-size: 12.5px; color: var(--ink-faint); margin-top: 12px; }

/* ---------- faq ---------- */
.faq { max-width: 720px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin-bottom: 12px; }
.faq summary { font-weight: 650; font-size: 15px; cursor: pointer; }
.faq p { margin-top: 10px; color: var(--ink-soft); font-size: 14.5px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; margin-top: 40px; }
.foot { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; color: var(--ink-faint); font-size: 13.5px; }
.foot a { color: var(--ink-soft); text-decoration: none; margin-right: 18px; }
.foot a:hover { color: var(--ink); }

/* ---------- order status page ---------- */
.status-wrap { max-width: 620px; margin: 60px auto; padding: 0 20px; }
.timeline { list-style: none; margin: 30px 0; }
.timeline li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.timeline .dot { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; background: var(--line); color: var(--ink-faint); font-weight: 700; }
.timeline li.done .dot { background: var(--ok); color: #fff; }
.timeline li.now .dot { background: var(--accent); color: #fff; }
.timeline .t { font-weight: 650; font-size: 15px; }
.timeline .d { font-size: 13.5px; color: var(--ink-faint); }
.report { background: var(--bg); border-radius: 10px; padding: 16px 18px; font-size: 14px; color: var(--ink-soft); margin-top: 18px; }
.report b { color: var(--ink); }

/* ---------- legal ---------- */
.legal { max-width: 720px; margin: 50px auto 80px; padding: 0 20px; }
.legal h1 { font-size: 30px; letter-spacing: -0.6px; margin-bottom: 6px; }
.legal .updated { color: var(--ink-faint); font-size: 13.5px; margin-bottom: 30px; }
.legal h2 { font-size: 19px; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 8px; }
.legal ul { padding-left: 22px; }
