:root {
  --em-950: #061f1b;
  --em-900: #0a2e28;
  --em-800: #0f4137;
  --em-700: #17594c;
  --brass: #c9a24a;
  --brass-hi: #e7cb83;
  --brass-lo: #8f6f23;
  --paper: #f6f1e4;
  --paper-2: #efe8d6;
  --ink: #12201d;
  --muted: #55645f;
  --seal: #b3382c;
  --line: #d9cfb6;
  --err: #b3261e;
  --accent: var(--brass);
  --accent-ink: #231a05;
  --display: "Fraunces", Georgia, serif;
  --ui: "Hanken Grotesk", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: 64px; }

body {
  margin: 0;
  font-family: var(--ui);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--brass-hi); outline-offset: 3px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 780px; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 800; }
h3 { font-size: 1.3rem; }
.section-lead { color: var(--muted); max-width: 38em; margin: 12px 0 36px; font-size: 1.1rem; }
.section-lead.light { color: #bcd3cb; margin-bottom: 18px; }
.fine { font-size: 0.9rem; color: var(--muted); margin-top: 22px; max-width: 46em; }
.fine.light { color: #9fb9b0; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: var(--em-950); color: #fff; border-bottom: 1px solid rgba(201,162,74,0.35); }
.nav-in { max-width: 1120px; margin: 0 auto; padding: 11px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.35rem; text-decoration: none; }
.mark { width: 32px; height: 32px; display: grid; place-items: center; border: 2px solid var(--brass); color: var(--brass); border-radius: 50%; font-size: 1rem; }
.nav nav { display: flex; align-items: center; gap: 22px; font-size: 0.95rem; }
.nav nav a { text-decoration: none; color: #d9e6e1; }
.nav nav a:hover { color: #fff; }
.nav .pill { background: var(--brass); color: var(--accent-ink); padding: 8px 16px; border-radius: 999px; font-weight: 700; }
.nav .pill:hover { background: var(--brass-hi); color: var(--accent-ink); }
@media (max-width: 880px) { .nav nav a:not(.pill) { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  font: inherit; font-weight: 700; font-size: 1rem;
  padding: 13px 22px; border-radius: 10px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; display: inline-block; text-align: center;
}
.btn-brass { background: var(--brass); color: var(--accent-ink); }
.btn-brass:hover { background: var(--brass-hi); }
.btn-line { border-color: rgba(231,203,131,0.6); color: #fff; }
.btn-line:hover { background: rgba(255,255,255,0.08); }
.btn-ink { background: var(--em-900); color: #fff; }
.btn-ink:hover { background: var(--em-700); }
.btn-soft { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-soft:hover { border-color: var(--ink); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.link { background: none; border: 0; font: inherit; color: var(--em-700); text-decoration: underline; cursor: pointer; padding: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; padding: 72px 0 88px; overflow: hidden;
  background:
    radial-gradient(ellipse at 80% 30%, rgba(23,89,76,0.9), transparent 60%),
    repeating-radial-gradient(circle at 78% 40%, rgba(201,162,74,0.10) 0 1px, transparent 1px 11px),
    var(--em-950);
}
.hero-in { position: relative; max-width: 1120px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); font-weight: 800; letter-spacing: -0.025em; }
.lead { font-size: 1.18rem; max-width: 33em; margin: 22px 0 26px; color: #cfe0da; }
#cityName { color: var(--brass-hi); font-weight: 700; }

.cities { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.city {
  font: inherit; font-size: 0.95rem; font-weight: 600; padding: 8px 15px; border-radius: 999px; cursor: pointer;
  background: transparent; color: #d9e6e1; border: 1.5px solid rgba(231,203,131,0.4);
}
.city:hover { border-color: var(--brass-hi); }
.city.is-on { background: var(--brass); color: var(--accent-ink); border-color: var(--brass); }

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin: 14px 0 0; color: #9fb9b0; font-size: 0.93rem; }

.paper-wrap { position: relative; padding: 14px; }
.paper {
  position: relative; background: #fbf7ea; color: #2a2417; border-radius: 4px; padding: 30px 28px 26px;
  transform: rotate(1.8deg); box-shadow: 0 34px 70px rgba(0,0,0,0.5), inset 0 0 0 6px #fbf7ea, inset 0 0 0 7px rgba(143,111,35,0.55);
  min-height: 380px; display: flex; flex-direction: column;
}
.paper-head { font-family: var(--display); font-weight: 800; font-size: 1.2rem; text-align: center; padding-bottom: 12px; border-bottom: 1px solid rgba(143,111,35,0.45); margin-bottom: 14px; }
.typed { font-family: var(--display); font-weight: 400; font-size: 1.02rem; line-height: 1.7; white-space: pre-wrap; flex: 1; }
.typed .caret { display: inline-block; width: 2px; height: 1.1em; background: #2a2417; vertical-align: text-bottom; animation: blink 1s steps(1) infinite; }
.paper-foot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(143,111,35,0.45); font-size: 0.88rem; }
.sig { border-top: 1px solid #2a2417; padding-top: 3px; min-width: 110px; text-align: center; font-size: 0.8rem; }

.seal {
  position: absolute; right: -16px; bottom: 56px; width: 104px; height: 104px; border-radius: 50%;
  display: grid; place-items: center; text-align: center; font-family: var(--display); font-weight: 800; font-size: 0.95rem;
  color: var(--seal); border: 3px double var(--seal); background: rgba(251,247,234,0.6);
  transform: rotate(-14deg) scale(1); opacity: 0.92;
}
.seal.stamping { animation: stamp 0.5s cubic-bezier(.2,.9,.3,1.2) both; }
@keyframes stamp { from { transform: rotate(-14deg) scale(2.2); opacity: 0; } to { transform: rotate(-14deg) scale(1); opacity: 0.92; } }
@keyframes blink { 50% { opacity: 0; } }

@media (max-width: 880px) {
  .hero-in { grid-template-columns: 1fr; gap: 36px; }
  .paper-wrap { max-width: 480px; }
}

/* ---------- Strip ---------- */
.strip { background: var(--em-900); border-top: 1px solid rgba(201,162,74,0.35); border-bottom: 1px solid rgba(201,162,74,0.35); }
.strip-in { max-width: 1120px; margin: 0 auto; padding: 16px 20px; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; color: #bcd3cb; font-size: 0.95rem; }
.strip-in b { display: block; color: var(--brass-hi); font-weight: 700; }
@media (max-width: 800px) { .strip-in { grid-template-columns: 1fr 1fr; } }

/* ---------- Types ---------- */
.types { padding: 84px 0; }
.type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.type { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px 26px; display: flex; flex-direction: column; gap: 12px; }
.type-feature { background: var(--em-900); color: #fff; border-color: var(--em-900); transform: translateY(-14px); box-shadow: 0 24px 50px rgba(6,31,27,0.3); }
.type-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.time { margin: 0; font-size: 0.9rem; color: var(--muted); }
.type-feature .time { color: var(--brass-hi); }
.type-line { margin: 0; }
.type ul { margin: 4px 0 10px; padding-left: 1.1em; flex: 1; }
.type li { margin-bottom: 6px; }
.type .btn { align-self: flex-start; }
@media (max-width: 900px) {
  .type-grid { grid-template-columns: 1fr; }
  .type-feature { transform: none; }
}

/* ---------- Wizard ---------- */
.start { padding: 64px 0 80px; background: #fff; border-top: 6px solid var(--brass); border-bottom: 1px solid var(--line); }
.start-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.notice { background: var(--paper); border-left: 5px solid var(--brass); border-radius: 8px; padding: 12px 16px; font-size: 0.95rem; margin-bottom: 24px; }

.pips { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0; }
.pips li { flex: 1; height: 7px; border-radius: 4px; background: var(--line); transition: background 0.2s; }
.pips li.done { background: var(--brass); }
.step-label { color: var(--muted); font-size: 0.92rem; margin: 10px 0 18px; }

form#wizard { background: var(--paper); border-radius: 18px; padding: 28px; border: 1px solid var(--line); }
.step { display: none; }
.step.active { display: block; }
.step h3 { margin-bottom: 16px; }

label { display: block; margin-bottom: 16px; font-weight: 600; font-size: 0.95rem; }
input, select, textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px; font: inherit; font-weight: 400;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brass-lo); box-shadow: 0 0 0 3px rgba(201,162,74,0.35); }
.invalid { border-color: var(--err) !important; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }
.hint { color: var(--muted); font-size: 0.95rem; margin: 0 0 14px; }

.list { display: grid; gap: 10px; margin-bottom: 14px; }
.row { display: grid; grid-template-columns: 1.4fr 1fr 90px 44px; gap: 8px; }
.row.gift { grid-template-columns: 1.4fr 1fr 44px; }
.row input { margin-top: 0; }
.row .remove { min-height: 46px; border: 1.5px solid var(--line); background: #fff; border-radius: 10px; color: var(--err); font-size: 1.2rem; cursor: pointer; }
@media (max-width: 600px) { .row, .row.gift { grid-template-columns: 1fr 1fr; } }

.total { font-weight: 800; font-size: 1.1rem; margin: 6px 0 0; }
.total.ok { color: #0b6b45; }
.total.bad { color: var(--err); }

.error { color: var(--err); font-weight: 600; min-height: 1.3em; margin: 8px 0 0; }
.error.light { color: var(--brass-hi); }
.status { color: var(--muted); margin: 12px 0 0; }
.nav-row { display: flex; justify-content: space-between; margin-top: 18px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
#output { margin-top: 14px; font-family: var(--display); font-size: 1.05rem; line-height: 1.65; background: #fffdf5; }

.next-box { margin-top: 24px; background: var(--em-900); color: #fff; border-radius: 14px; padding: 20px 22px; }
.next-box h4 { font-size: 1.25rem; color: var(--brass-hi); }
.next-box p { margin: 6px 0 0; color: #cfe0da; }
.next-box .btn-ink { background: var(--brass); color: var(--accent-ink); }
.next-box .btn-ink:hover { background: var(--brass-hi); }

/* ---------- Plans ---------- */
.plans { padding: 84px 0; background: var(--paper-2); }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px 26px; display: flex; flex-direction: column; gap: 10px; }
.plan-star { border: 2px solid var(--brass); box-shadow: 0 22px 46px rgba(143,111,35,0.22); }
.badge { position: absolute; top: -13px; left: 24px; margin: 0; background: var(--brass); color: var(--accent-ink); font-weight: 700; font-size: 0.82rem; padding: 4px 12px; border-radius: 999px; }
.price { font-family: var(--display); font-weight: 800; font-size: 2.3rem; margin: 2px 0 6px; }
.price small { font-family: var(--ui); font-weight: 500; font-size: 0.95rem; color: var(--muted); }
.plan ul { margin: 0 0 12px; padding-left: 1.1em; flex: 1; }
.plan li { margin-bottom: 7px; }
.plan .btn { align-self: flex-start; }
@media (max-width: 900px) { .plan-grid { grid-template-columns: 1fr; } }

/* ---------- NCR ---------- */
.ncr { padding: 84px 0; background: var(--em-950); color: #fff; }
.ncr .section-lead { color: #bcd3cb; }
.ncr-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ncr-grid li { padding: 22px 22px; border: 1px solid rgba(201,162,74,0.45); border-radius: 14px; background: rgba(255,255,255,0.03); display: flex; flex-direction: column; gap: 2px; }
.ncr-grid b { font-family: var(--display); font-size: 1.5rem; font-weight: 600; color: var(--brass-hi); }
.ncr-grid span { color: #9fb9b0; font-size: 0.95rem; }
@media (max-width: 700px) { .ncr-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Process ---------- */
.process { padding: 84px 0; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.steps li { counter-increment: s; position: relative; padding-top: 18px; border-top: 3px solid var(--brass); }
.steps li::before { content: counter(s); display: block; font-family: var(--display); font-weight: 800; font-size: 2.4rem; line-height: 1; color: var(--brass-lo); margin-bottom: 8px; }
.steps h3 { font-size: 1.12rem; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); font-size: 0.95rem; }
@media (max-width: 1000px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Basics ---------- */
.basics { padding: 84px 0; background: #fff; border-top: 1px solid var(--line); }
.basics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 36px; margin: 32px 0 44px; }
.basics-grid p { margin: 6px 0 0; color: var(--muted); }
.docs-title { margin-bottom: 14px; }
.docs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; }
.docs label { display: flex; gap: 10px; align-items: center; font-weight: 500; margin: 0; padding: 8px 0; cursor: pointer; }
.docs input { width: 20px; height: 20px; margin: 0; accent-color: var(--em-700); flex: none; }
@media (max-width: 700px) { .basics-grid, .docs { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { padding: 84px 0; }
.faq h2 { margin-bottom: 24px; }
details { background: #fff; border-radius: 12px; padding: 16px 20px; margin-bottom: 10px; border: 1.5px solid var(--line); }
details[open] { border-color: var(--brass); }
summary { cursor: pointer; font-weight: 700; }
details p { margin: 10px 0 0; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { padding: 84px 0; background: var(--em-900); color: #fff; }
.contact-in { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.hindi { font-size: 1.25rem; color: var(--brass-hi); margin: 20px 0 0; }
.lead-form { background: var(--paper); color: var(--ink); border-radius: 18px; padding: 26px; }
.lead-form .error { color: var(--err); }
@media (max-width: 860px) { .contact-in { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Footer ---------- */
.foot { background: var(--em-950); color: #bcd3cb; padding: 34px 0 44px; font-size: 0.93rem; }
.foot strong { color: #fff; font-family: var(--display); font-size: 1.25rem; }
.foot p { margin: 8px 0 0; max-width: 52em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .typed .caret { animation: none; }
  .seal.stamping { animation: none; }
}

@media print {
  body { background: #fff; }
  .nav, .hero, .strip, .types, .plans, .ncr, .process, .basics, .faq, .contact, .foot, .notice, .pips, .step-label, .nav-row, .actions, .hint, .status, #generate, .start-head, .error, .next-box { display: none !important; }
  .start { border: 0; padding: 0; background: #fff; }
  form#wizard { background: #fff; padding: 0; border: 0; }
  .step { display: none !important; }
  .step[data-key="review"] { display: block !important; }
  .step h3 { display: none; }
  #output { border: 0; width: 100%; height: auto; font-size: 12pt; background: #fff; }
}
