/* DigiHaven web services — layout: single centered column, full-width bands, white ground with navy/gold brand */
:root {
  --bg: #ffffff;
  --surface: #f6f5fa;      /* faint lavender band */
  --ink: #241f43;          /* navy, deepened for body contrast */
  --navy: #302a54;
  --text: #45413a;         /* warm gray body */
  --muted: #6b6760;
  --kicker: #5e5596;       /* lavender, darkened for contrast on white */
  --gold: #edc44e;
  --gold-ink: #6b4f00;
  --line: #e4e1ee;
  --font-display: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --radius: 14px;
  --max: 1080px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0; }

.kicker {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--kicker);
}
.bar { width: 56px; height: 6px; border-radius: 6px; background: var(--gold); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding-block: 16px;
}
.brand {
  font-family: var(--font-display); font-weight: 700; font-size: 1.35rem;
  color: var(--navy); text-decoration: none; display: flex; align-items: center; gap: 10px;
}
.brand-mark { width: 14px; height: 14px; border-radius: 4px; background: var(--gold); transform: rotate(45deg); }
.nav { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.nav a {
  text-decoration: none; color: var(--ink); font-weight: 500; font-size: 0.95rem;
  padding: 8px 12px; border-radius: 8px;
}
.nav a:hover { background: var(--surface); }
.nav a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -3px 0 var(--gold); border-radius: 0; }
.nav a.nav-cta { background: var(--navy); color: #fff; }
.nav a.nav-cta:hover { background: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  padding: 14px 22px; border-radius: 10px; text-decoration: none; border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--ink); }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--surface); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Sections */
section { padding-block: clamp(48px, 8vw, 88px); }
.band { background: var(--surface); }
.section-head { display: grid; gap: 12px; margin-bottom: 36px; max-width: 640px; }
.lead { font-size: 1.15rem; color: var(--text); max-width: 60ch; }

/* Hero */
.hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 20px; min-width: 0; }
.hero-note { font-size: 0.95rem; color: var(--muted); }

/* Example-site mockup */
.mock { min-width: 0; }
.browser {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--bg); box-shadow: 0 18px 40px -22px rgba(36, 31, 67, 0.45);
}
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.url {
  margin-left: 8px; flex: 1; min-width: 0; font-size: 0.78rem; color: var(--muted);
  background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 3px 10px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser-body { padding: 22px; display: grid; gap: 14px; }
.mock-hero { background: #1f3b4d; color: #fff; border-radius: 10px; padding: 18px; display: grid; gap: 8px; }
.mock-hero strong { font-family: var(--font-display); font-size: 1.05rem; }
.mock-hero span { font-size: 0.85rem; opacity: 0.85; }
.mock-call { justify-self: start; background: var(--gold); color: #2a2200; font-weight: 600; font-size: 0.8rem; padding: 6px 12px; border-radius: 6px; }
.mock-rows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-rows div { border: 1px solid var(--line); border-radius: 8px; padding: 10px; font-size: 0.75rem; color: var(--muted); }
.mock-rows b { display: block; color: var(--ink); font-size: 0.8rem; }
.mock-caption { margin-top: 10px; font-size: 0.82rem; color: var(--muted); text-align: center; }

/* Feature grid */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { display: grid; gap: 10px; align-content: start; }
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--surface);
  display: grid; place-items: center; color: var(--navy);
}
.band .feature-icon { background: var(--bg); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.steps li { display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 3px solid var(--navy); counter-increment: step; }
.steps li::before {
  content: "Step " counter(step);
  font-family: var(--font-display); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--kicker);
}

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.plan {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: grid; gap: 16px;
}
.plan.featured { border: 2px solid var(--navy); }
.plan-price { font-family: var(--font-display); color: var(--navy); font-weight: 700; font-size: 2.3rem; line-height: 1; font-variant-numeric: tabular-nums; }
.plan-price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.plan-sub { color: var(--muted); font-size: 0.95rem; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.checks li::before {
  content: ""; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23302a54' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
.not-included { margin-top: 24px; font-size: 0.95rem; color: var(--muted); }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 760px; }
.faq details { border: 1px solid var(--line); border-radius: 10px; padding: 16px 20px; background: var(--bg); }
.faq summary { cursor: pointer; font-family: var(--font-display); font-weight: 600; color: var(--navy); }
.faq details p { margin-top: 10px; }

/* CTA band */
.cta { background: var(--navy); color: #e9e7f3; }
.cta .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta h2 { color: #fff; }
.cta .btn-primary { background: var(--gold); color: #2a2200; }
.cta .btn-primary:hover { background: #f3d36f; }

/* About */
.about .wrap { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.portrait { border-radius: var(--radius); width: 100%; aspect-ratio: 1; object-fit: cover; }
.about-copy { display: grid; gap: 18px; min-width: 0; max-width: 62ch; }
.about-copy h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; }
.fact { border-top: 3px solid var(--gold); padding-top: 10px; }
.fact b { display: block; font-family: var(--font-display); color: var(--navy); font-size: 1.4rem; }
.fact span { font-size: 0.9rem; color: var(--muted); }

/* Contact */
.contact .wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-info { display: grid; gap: 18px; min-width: 0; }
.email-line { font-family: var(--font-display); font-weight: 600; color: var(--navy); word-break: break-all; }
form.quote { display: grid; gap: 16px; background: var(--surface); border-radius: var(--radius); padding: clamp(20px, 4vw, 32px); min-width: 0; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid #cfcbe0; border-radius: 8px; padding: 12px 14px; width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 0.95rem; color: var(--ink); }
.form-status[data-state="ok"] { color: #1d6b3a; }
.form-status[data-state="error"] { color: #9b1c1c; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 28px; font-size: 0.9rem; color: var(--muted); }

/* Responsive */
@media (max-width: 900px) {
  .grid-4, .steps { grid-template-columns: 1fr 1fr; }
  .pricing { grid-template-columns: 1fr; max-width: 560px; }
}
@media (max-width: 760px) {
  .hero .wrap, .pricing, .about .wrap, .contact .wrap { grid-template-columns: 1fr; }
  .about .wrap .portrait { max-width: 260px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .grid-4, .steps, .two-up { grid-template-columns: 1fr; }
  .facts { gap: 12px; }
  .fact b { font-size: 1.2rem; }
  .mock-rows { grid-template-columns: 1fr 1fr; }
  .mock-rows div:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
