:root {
  --page: var(--sd-surface);
  --ink: var(--sd-ink);
  --text: var(--sd-text);
  --muted: var(--sd-muted);
  --line: var(--sd-border);
  --soft: var(--sd-soft);
  --deep: var(--sd-nav);
  --primary: var(--sd-brand);
  --primary-hover: var(--sd-brand-hover);
  --accent: var(--sd-green-700);
  --mint: var(--sd-mint);
  --mint-soft: var(--sd-green-100);
  --shell-width: min(1200px, calc(100% - 80px));
  --hero-surface: linear-gradient(150deg, #fff 30%, #eef5f5 100%);
  font-family: var(--sd-font);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid #35a68b; outline-offset: 4px; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 8px 16px;
  color: var(--ink);
  background: var(--page);
  transform: translateY(-150%);
}

.skip-link:focus { transform: none; }
.site-header { background: var(--page); border-bottom: 1px solid var(--line); }
.nav-wrap, .section-inner, .hero-inner, .footer-inner, .final-grid {
  width: var(--shell-width);
  margin-inline: auto;
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo, .site-nav, .nav-actions { display: flex; align-items: center; }
.logo { gap: 12px; font-size: 21px; font-weight: 710; letter-spacing: -.035em; white-space: nowrap; }
.logo img { width: 28px; height: 28px; }
.site-nav { gap: clamp(16px, 3vw, 36px); }
.nav-actions { gap: 22px; }
.site-nav, .nav-login { color: var(--text); font-size: 14px; font-weight: 550; }
.site-nav a:hover, .nav-login:hover, .footer-links a:hover, .site-nav a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 17px;
  border: 1px solid transparent;
  border-radius: 6px;
  font: inherit;
  font-size: 14px;
  font-weight: 680;
  text-align: center;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease;
}

.nav-actions .btn { min-height: 39px; white-space: nowrap; }
.btn-primary { color: #fff; background: var(--primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { color: var(--ink); border-color: #aebdc7; background: #fff; }
.btn-secondary:hover { background: var(--soft); border-color: #6e8997; }

.hero {
  padding-block: clamp(52px, 7vw, 92px);
  background: var(--hero-surface);
  border-bottom: 1px solid var(--line);
}

.hero-inner, .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .105em;
}

.hero h1, .error-page h1 {
  font-size: clamp(40px, 5vw, 66px);
  line-height: 1.035;
  letter-spacing: -.055em;
  font-weight: 690;
  text-wrap: balance;
}

.hero h1 .keep-together { white-space: nowrap; }

.hero-copy { margin-top: 20px; max-width: 59ch; color: var(--muted); font-size: clamp(16px, 1.5vw, 19px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.section { padding-block: clamp(48px, 6.5vw, 84px); }
.section.alternate { background: var(--soft); border-block: 1px solid var(--line); }

.section h2, .final-cta h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 49px);
  line-height: 1.08;
  letter-spacing: -.048em;
  font-weight: 690;
  text-wrap: balance;
}

.section-lead, .section-lede { max-width: 67ch; margin-bottom: 28px; color: var(--muted); font-size: 17px; }
.feature-grid, .comparison, .process, .pricing-grid, .included-grid, .faq-grid { display: grid; gap: 20px; }
.feature-grid, .included-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.comparison, .faq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.process { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pricing-grid { grid-template-columns: minmax(0, .68fr) minmax(0, 1.32fr); align-items: start; }

.feature-card, .included-card, .process-step { border-top: 2px solid #b6ddd3; padding: 16px 0 4px; }
.feature-card h3, .included-card h3, .process-step h3, .faq-card h3 {
  margin-bottom: 7px;
  font-size: 18px;
  line-height: 1.32;
  font-weight: 680;
  letter-spacing: -.012em;
}

.feature-card p, .included-card p, .process-step p, .faq-card p { color: var(--muted); font-size: 15px; }

.process-step span, .step-number {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 7px;
  color: var(--primary);
  background: var(--mint-soft);
  font-size: 14px;
  font-weight: 700;
}

.process-step span { margin-bottom: 12px; }
.comparison-panel, .plan-card, .calculator, .faq-card {
  min-width: 0;
  padding: clamp(18px, 2.3vw, 28px);
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.comparison-panel h3 { font-size: 21px; font-weight: 690; letter-spacing: -.02em; }
.comparison-panel ul { margin: 12px 0 0; padding-inline-start: 20px; display: grid; gap: 8px; color: var(--text); }
.comparison-panel li::marker { color: var(--accent); }
.faq-list { max-width: 860px; margin-top: 24px; border-top: 1px solid var(--line); }
.faq-list details { padding: 17px 2px; border-bottom: 1px solid var(--line); }
.faq-list summary { color: var(--ink); font-size: 17px; font-weight: 680; cursor: pointer; }
.faq-list p { margin-top: 9px; color: var(--muted); max-width: 73ch; }
.faq-grid { margin-top: 24px; }

.workflow-card, .device-card, .summary-card {
  background: var(--deep);
  color: #f3f7fa;
  border: 1px solid #253d4f;
  border-radius: 12px;
  padding: clamp(16px, 3vw, 28px);
  box-shadow: 0 18px 36px rgb(20 47 56 / 12%);
}

.workflow-card { display: grid; gap: 0; }
.workflow-step { display: grid; grid-template-columns: 32px 1fr; align-items: start; gap: 14px; padding: 14px 0; }
.workflow-step + .workflow-step { border-top: 1px solid #3a5163; }
.workflow-step:first-child { padding-top: 0; }
.workflow-step:last-child { padding-bottom: 0; }
.workflow-step strong { display: block; font-size: 17px; font-weight: 680; }
.workflow-step span { display: block; margin-top: 3px; color: #c1cfdb; font-size: 14px; }
.workflow-step .step-number { background: var(--mint); }

.device-card { display: grid; place-items: center; }
.device-frame {
  width: min(350px, 100%);
  display: grid;
  gap: 17px;
  overflow: hidden;
  border: 6px solid #0b1724;
  border-radius: 14px;
  color: var(--ink);
  background: var(--soft);
}

.device-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 13px 15px;
  background: var(--page);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 690;
}

.device-banner small { display: block; color: var(--muted); font-size: 12px; font-weight: 550; }

.device-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; padding: 0 12px; }
.tile { display: grid; justify-items: center; gap: 5px; text-align: center; font-size: 12px; font-weight: 630; }
.tile-icon {
  display: grid;
  place-items: center;
  width: 45px;
  height: 39px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--page);
  color: var(--primary);
  font-size: 12px;
  font-weight: 730;
}

.sso-strip {
  margin: 0 12px 12px;
  padding: 9px 12px;
  border-radius: 6px;
  background: var(--mint-soft);
  color: var(--primary);
  text-align: center;
  font-size: 13px;
  font-weight: 670;
}

.summary-card h2 { font-size: 18px; font-weight: 680; }
.summary-card p { margin-top: 14px; color: #c1cfdb; }
.price-line, .plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; }
.price-line { margin-top: 9px; }
.price-line strong, .plan-price strong {
  font-size: clamp(32px, 4vw, 53px);
  line-height: 1;
  font-weight: 690;
  letter-spacing: -.05em;
}

.price-line span { color: #c1cfdb; font-size: 14px; }
.mini-list { margin: 19px 0 0; padding-inline-start: 19px; display: grid; gap: 6px; }
.mini-list li::marker { color: var(--mint); }

.plan-card { display: grid; gap: 22px; }
.plan-card .btn { justify-self: start; }
.plan-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 5px;
  color: var(--accent);
  background: var(--mint-soft);
  font-size: 12px;
  font-weight: 670;
}

.calculator h3, .plan-card h3 {
  margin: 9px 0;
  font-size: clamp(22px, 2.45vw, 29px);
  line-height: 1.25;
  font-weight: 690;
  letter-spacing: -.025em;
}

.plan-card p, .calculator p, .plan-price span { color: var(--muted); }
.plan-price { margin-top: 19px; }
.currency-control { margin-top: 19px; max-width: 320px; }
.calculator label { display: block; margin-bottom: 6px; color: var(--ink); font-size: 14px; font-weight: 660; }
.calculator select, .calculator input[type="number"] {
  min-height: 46px;
  width: 100%;
  padding: 0 13px;
  border: 1px solid #aebdc7;
  border-radius: 7px;
  background: var(--page);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.currency-control .currency-note { margin-top: 7px; font-size: 13px; }
.calc-panel { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 14px; margin-top: 21px; }
.quick-counts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 8px; }
.quick-counts button {
  min-height: 34px;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--page);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.quick-counts button:hover { border-color: var(--accent); background: var(--mint-soft); }
.estimate { padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); }
.estimate-row, .tier-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; border-bottom: 1px solid var(--line); }
.estimate-row { padding: 8px 0; font-size: 13px; color: var(--text); }
.estimate-row strong, .tier-row strong { color: var(--ink); text-align: right; }
.estimate-row .monthly-total { font-size: 17px; white-space: nowrap; }
.estimate-row:last-child, .tier-row:last-child { border-bottom: 0; }
.tier-table { margin-top: 18px; border: 1px solid var(--line); border-radius: 8px; }
.tier-row { color: var(--text); padding: 10px 13px; font-size: 14px; }

.final-cta { padding-block: clamp(40px, 5vw, 64px); color: #f3f7fa; background: var(--deep); }
.final-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px 32px; }
.final-cta h2 { margin-bottom: 7px; font-size: clamp(27px, 3.25vw, 42px); }
.final-cta p { max-width: 65ch; color: #c1cfdb; }
.final-cta .btn-primary { color: #102a25; background: var(--mint); }
.final-cta .btn-primary:hover { background: #c2f8e8; }
.marketing-pricing .final-cta { margin-top: 28px; padding: clamp(20px, 3.5vw, 40px); border-radius: 10px; }
.marketing-pricing .final-grid { width: 100%; }

.site-footer { padding-block: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-inner, .footer-links { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.footer-inner { justify-content: space-between; }

.error-page main { min-height: 70vh; display: grid; place-items: center; padding: 42px 18px; background: var(--hero-surface); }
.error-page .error-content { max-width: 600px; text-align: center; }
.error-page .error-content p { margin: 14px 0 22px; color: var(--muted); }

@media (max-width: 1040px) {
  :root { --shell-width: calc(100% - 48px); }
  .hero-inner, .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid > *, .hero-inner > * { max-width: 690px; }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .calc-panel { grid-template-columns: minmax(0, 1fr); }
  .quick-counts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .feature-grid, .included-grid, .comparison, .pricing-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .final-grid { grid-template-columns: minmax(0, 1fr); }
  .final-grid .btn { justify-self: start; }
}

@media (max-width: 650px) {
  :root { --shell-width: calc(100% - 36px); }
  .nav-wrap { flex-wrap: wrap; gap: 0 8px; padding-top: 12px; }
  .logo { gap: 6px; font-size: 18px; }
  .logo img { width: 24px; height: 24px; }
  .nav-actions { gap: 10px; }
  .nav-actions .btn { padding-inline: 9px; font-size: 12px; }
  .site-nav { order: 3; width: 100%; min-height: 46px; flex-wrap: wrap; gap: 6px 18px; }
  .site-nav a { padding-block: 6px; }
  .tier-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .tier-row strong { text-align: left; }
}

@media (max-width: 350px) {
  .nav-actions { width: 100%; padding-top: 9px; }
  .process { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
