/* DORA website — brand: blue→teal gradient of the D mark, navy wordmark. */
:root {
  --ink: #0f1d33;
  --ink-2: #1f3b5c;
  --muted: #56657d;
  --line: #e2e8f1;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --blue: #1a5fe0;
  --blue-dark: #1449b3;
  --teal: #22c3b3;
  --grad: linear-gradient(120deg, #1a5fe0 0%, #1a9be0 55%, #2bd1bd 100%);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(15, 29, 51, .06), 0 8px 24px rgba(15, 29, 51, .08);
  --shadow-lg: 0 30px 60px -20px rgba(15, 29, 51, .28);
  --max: 1160px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .6em; color: var(--ink); letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 1rem;
}
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }

/* ------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 600 1rem/1 var(--font); padding: .95em 1.5em; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s;
  white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid rgba(26, 95, 224, .35); outline-offset: 2px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -10px rgba(26, 95, 224, .7); }
.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 14px 30px -10px rgba(26, 95, 224, .8); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { color: var(--ink); border-color: #c9d4e3; background: var(--bg-soft); }
.btn-light { background: #fff; color: var(--blue); }
.btn-light:hover { color: var(--blue-dark); transform: translateY(-1px); }
.btn-sm { font-size: .92rem; padding: .7em 1.2em; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* -------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .85); backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(15, 29, 51, .4); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand img { height: 34px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.site-nav a:not(.btn) { color: var(--ink-2); font-weight: 500; font-size: .98rem; }
.site-nav a:not(.btn):hover { color: var(--blue); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 40px; }
.hero::before {
  content: ''; position: absolute; inset: -30% -10% auto 40%; height: 680px; z-index: -1;
  background: radial-gradient(closest-side, rgba(43, 209, 189, .22), transparent 70%),
              radial-gradient(closest-side at 30% 60%, rgba(26, 95, 224, .18), transparent 70%);
  filter: blur(10px);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero-copy p.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.checks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ink-2); font-size: .95rem; }
.checks li { display: inline-flex; align-items: center; gap: 8px; }
.checks svg { width: 18px; height: 18px; color: var(--teal); flex: none; }
.hero-visual { position: relative; }
.browser {
  border-radius: 14px; background: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden;
}
.browser-bar { display: flex; gap: 6px; padding: 10px 14px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: #d4dbe6; }
.phone {
  position: absolute; right: -14px; bottom: -40px; width: 34%; min-width: 150px;
  border: 8px solid #0f1d33; border-radius: 28px; overflow: hidden; background: #fff; box-shadow: var(--shadow-lg);
}
.phone img { aspect-ratio: 390 / 740; object-fit: cover; object-position: top; }

/* ------------------------------------------------------------ sections */
section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

.stats { padding: 44px 0 20px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 18px; }
.stat strong { display: block; font-family: var(--font-head); font-size: 1.3rem; color: var(--ink); margin-bottom: 4px; }
.stat span { color: var(--muted); font-size: .95rem; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d3ddea; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }
.icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(26, 95, 224, .12), rgba(43, 209, 189, .18)); color: var(--blue);
}
.icon svg { width: 24px; height: 24px; }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: rgba(43, 209, 189, .16); color: #0d8a7d; margin-left: 6px; vertical-align: middle; }

.showcase { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
.showcase + .showcase { margin-top: 96px; }
.showcase.flip .showcase-media { order: -1; }
.showcase ul { list-style: none; padding: 0; margin: 20px 0 0; }
.showcase li { position: relative; padding-left: 30px; margin: 10px 0; color: var(--ink-2); }
.showcase li::before {
  content: ''; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 13px no-repeat, var(--grad);
}
.showcase-media { position: relative; }
.showcase-media .browser { box-shadow: var(--shadow-lg); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 30px 26px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--grad); color: #fff; font-weight: 800; font-family: var(--font-head); margin-bottom: 16px;
}
.step p { color: var(--muted); margin: 0; }

.why { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.why .card { display: flex; gap: 18px; align-items: flex-start; }
.why .icon { flex: none; margin: 0; }

/* ------------------------------------------------------------- pricing */
.billing-toggle { display: flex; align-items: center; justify-content: center; gap: 12px; margin: -28px 0 40px; font-weight: 600; color: var(--ink-2); }
.switch { position: relative; width: 50px; height: 28px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #cfd8e5; border-radius: 999px; cursor: pointer; transition: background .2s; }
.switch span::before { content: ''; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.switch input:checked + span { background: var(--blue); }
.switch input:checked + span::before { transform: translateX(22px); }
.switch input:focus-visible + span { outline: 3px solid rgba(26, 95, 224, .35); outline-offset: 2px; }
.save-pill { font-size: .78rem; font-weight: 700; color: #0d8a7d; background: rgba(43, 209, 189, .16); padding: 3px 10px; border-radius: 999px; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 24px; }
.plan.featured { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; box-shadow: var(--shadow); position: relative; }
.plan.featured::before { content: 'Most popular'; position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; letter-spacing: .03em; }
.plan h3 { margin-bottom: .2em; }
.plan .for { color: var(--muted); font-size: .95rem; min-height: 3em; }
.price { margin: 14px 0 18px; display: flex; align-items: baseline; gap: 2px 6px; flex-wrap: wrap; line-height: 1.2; }
.price strong { font-family: var(--font-head); font-size: 2.1rem; font-weight: 800; }
.price strong.price-custom { font-size: 1.5rem; }
.price-unit { color: var(--muted); font-size: .92rem; white-space: nowrap; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.plan li { padding: 7px 0 7px 26px; position: relative; font-size: .95rem; color: var(--ink-2); border-top: 1px dashed var(--line); }
.plan li:first-child { border-top: 0; }
.plan li::before { content: '✓'; position: absolute; left: 2px; color: var(--teal); font-weight: 800; }
.plan .btn { width: 100%; }
.pricing-note { text-align: center; color: var(--muted); font-size: .95rem; margin-top: 26px; }

/* ----------------------------------------------------------------- faq */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 30px 20px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--blue); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* ------------------------------------------------------------ cta band */
.cta-band { padding: 0 0 96px; }
.cta-inner {
  background: var(--grad); color: #fff; border-radius: var(--radius-lg); padding: 56px 40px; text-align: center;
  box-shadow: 0 30px 60px -30px rgba(26, 95, 224, .8); position: relative; overflow: hidden;
}
.cta-inner h2 { color: #fff; }
.cta-inner p { color: rgba(255, 255, 255, .9); font-size: 1.1rem; margin-bottom: 28px; }

/* -------------------------------------------------------------- footer */
.site-footer { background: #0f1d33; color: #c5cfdd; padding: 64px 0 28px; font-size: .95rem; }
.site-footer a { color: #c5cfdd; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: 8px 0; }
.footer-brand img { height: 30px; margin-bottom: 16px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #8e9bb0; font-size: .88rem; }

/* ----------------------------------------------------------- sub pages */
.page-hero { padding: 64px 0 32px; text-align: center; }
.page-hero p { color: var(--muted); font-size: 1.1rem; max-width: 640px; margin: 0 auto; }
.panel { max-width: 720px; margin: 0 auto 96px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .95rem; }
.field label .req { color: #d23c3c; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid #cfd8e5; border-radius: 10px; background: #fff; color: var(--ink);
  width: 100%; min-width: 0;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(26, 95, 224, .12); }
.field [aria-invalid='true'] { border-color: #d23c3c; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; color: var(--muted); }
.consent input { margin-top: 4px; width: 18px; height: 18px; }
.form-grid .consent { grid-column: 1 / -1; }
.form-error { background: #fdecec; color: #a12626; border-radius: 10px; padding: 10px 14px; font-size: .95rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.done { text-align: center; }
.done .icon { margin: 0 auto 16px; width: 60px; height: 60px; border-radius: 50%; }
.done pre { text-align: left; background: var(--bg-soft); border-radius: 10px; padding: 14px; white-space: pre-wrap; font-size: .9rem; color: var(--ink-2); }
.done-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 18px 0; }
.address-input { display: flex; align-items: stretch; border: 1px solid #cfd8e5; border-radius: 10px; overflow: hidden; }
.address-input input { border: 0; flex: 1; min-width: 0; border-radius: 0; }
.address-input input:focus { box-shadow: none; }
.address-input:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(26, 95, 224, .12); }
.address-input span { background: var(--bg-soft); color: var(--muted); padding: 12px 14px; border-left: 1px solid #cfd8e5; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 980px; margin: 0 auto 96px; }
.legal { max-width: 800px; margin: 0 auto 96px; }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal p, .legal li { color: #34455e; }
.legal .updated { color: var(--muted); font-size: .95rem; }

/* ---------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
  .plan.featured { order: -1; }
}
@media (max-width: 960px) {
  .hero-grid, .showcase { grid-template-columns: 1fr; gap: 40px; }
  .showcase.flip .showcase-media { order: 0; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-visual { margin: 0 12px 30px 0; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 20px; display: none; margin: 0;
    box-shadow: 0 18px 30px -20px rgba(15, 29, 51, .35);
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-actions { flex-direction: column; align-items: stretch; margin-top: 14px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  section { padding: 72px 0; }
  .features, .steps, .why, .stats-grid, .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .panel { padding: 24px 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-inner { padding: 40px 22px; }
  .phone { width: 38%; right: -6px; bottom: -26px; border-width: 6px; border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
