:root {
  --teal: #087f78;
  --teal-ink: #06645e;
  --navy: #123047;
  --ink: #123047;
  --muted: #3d5563;
  --mint: #f5faf9;
  --white: #ffffff;
  --line: #d9e8e5;
  --danger: #8c2f2f;
  --danger-bg: #fdecea;
  --ok: #e7f6f3;
  --shadow: 0 16px 40px rgba(18, 48, 71, .08);
  --shadow-soft: 0 8px 24px rgba(18, 48, 71, .06);
  --radius: 18px;
  --radius-sm: 14px;
  --space: 8px;
  --wrap: 1240px;
  --header: 76px;
  --sans: "Avenir Next", "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
  --ease: 180ms ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--mint);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-ink); }
p { margin: 0 0 12px; }
h1, h2, h3 { color: var(--navy); letter-spacing: -.02em; line-height: 1.15; }
h1 { font-size: clamp(40px, 4vw, 56px); font-weight: 650; margin: 8px 0 16px; }
h2 { font-size: clamp(32px, 3vw, 40px); font-weight: 650; margin: 0 0 12px; }
h3 { font-size: 20px; margin: 0 0 8px; }

a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  background: var(--navy);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 40;
}
.skip:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--header);
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.nav {
  width: min(var(--wrap), calc(100% - 48px));
  min-height: var(--header);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .01em;
  flex: 0 0 auto;
}
.brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--line);
}
.brand-name { display: flex; flex-direction: column; font-size: 16px; line-height: 1.05; }
.brand-name small { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-ink); }
.nav-toggle {
  display: none;
  margin-left: auto;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  border-radius: 12px;
  padding: 0 12px;
  align-items: center;
  gap: 8px;
  font: 600 14px/1 var(--sans);
  cursor: pointer;
}
.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--navy);
  position: relative;
}
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-icon::before { top: -5px; }
.nav-toggle-icon::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after { top: 0; transform: rotate(-45deg); }
.nav-toggle .label-close { display: none; }
.nav-toggle[aria-expanded="true"] .label-open { display: none; }
.nav-toggle[aria-expanded="true"] .label-close { display: inline; }

.nav-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex: 1 1 auto;
  min-width: 0;
}
.nav-links, .nav-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links { flex: 1 1 auto; justify-content: flex-end; flex-wrap: nowrap; min-width: 0; }
.nav-actions { flex: 0 0 auto; gap: 10px; }
.nav-links > a, .nav-drop > summary {
  color: var(--navy);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  padding: 10px 12px;
  border-radius: 999px;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
  transition: background-color var(--ease), color var(--ease);
}
.nav-drop > summary::-webkit-details-marker { display: none; }
.nav-links > a:hover, .nav-drop > summary:hover,
.nav-links > a.is-active, .nav-drop.is-active > summary {
  background: #e7f4f2;
  color: var(--teal-ink);
}
.nav-drop { position: relative; }
.nav-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 8px;
  z-index: 30;
}
.nav-login .nav-menu { left: auto; right: 0; }
.nav-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.nav-menu a:hover { background: var(--mint); }
.nav-menu-label {
  margin: 4px 12px 6px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal-ink);
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 10px 18px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font: 650 15px/1 var(--sans);
  transition: background-color var(--ease), border-color var(--ease), color var(--ease), box-shadow var(--ease);
}
.btn-primary { background: var(--teal); color: var(--white); box-shadow: 0 8px 18px rgba(8, 127, 120, .22); }
.btn-primary:hover { background: var(--teal-ink); }
.btn-ghost { background: var(--white); color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-ink); }
.text-link { font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.hero, .section, .express-inner, .closing, .wrap, .footer-grid, .site-footer .footer-base {
  width: min(var(--wrap), calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
  gap: 48px;
  align-items: center;
  padding: 56px 0 28px;
}
.hero-copy { min-width: 0; }
.hero h1 {
  font-size: clamp(48px, 3.4vw, 64px);
  line-height: 1.05;
  max-width: none;
}
.kicker {
  margin: 0 0 8px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 700;
  color: var(--teal-ink);
}
.lede { font-size: 18px; color: var(--muted); max-width: 42ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.hero-actions .btn { min-height: 50px; padding: 12px 22px; }
.hero-frame {
  position: relative;
  margin: 0;
  min-width: 0;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 22px 50px rgba(18, 48, 71, .14);
  background: var(--navy);
}
.hero-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 42%;
}
.hero-note {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  margin: 0;
  background: rgba(255, 255, 255, .94);
  border-radius: 16px;
  padding: 14px 16px;
  color: var(--navy);
}
.hero-note ol { margin: 0; padding-left: 18px; }
.hero-note li { margin: 2px 0; font-size: 14px; }

.section { padding: 24px 0 64px; }
.section-head { max-width: 680px; margin-bottom: 22px; }
.section-action { margin-top: 18px; }
.benefit-row, .service-grid, .process, .phone-row, .grid {
  display: grid;
  gap: 20px;
}
.benefit-row, .service-grid, .grid { grid-template-columns: 1fr; }
.process, .phone-row { grid-template-columns: 1fr; }
.benefit, .card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-soft);
}
.benefit h2, .service-card h3 { font-size: 20px; }
.icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #e7f4f2;
  color: var(--teal-ink);
  margin-bottom: 12px;
}
.service-card, .setup-card { display: flex; flex-direction: column; min-height: 100%; }
.service-card { padding: 0 0 22px; overflow: hidden; }
.service-card h3, .service-card p, .service-card .service-cta { margin-left: 22px; margin-right: 22px; }
.service-art {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 92px;
  margin-bottom: 18px;
  background: #e7f4f2;
  color: var(--teal-ink);
  border-bottom: 1px solid var(--line);
}
.service-art svg { width: 108px; height: 64px; }
.service-cta { align-self: flex-start; margin-top: 8px; }
.service-card p, .setup-card p { color: var(--muted); flex: 1 1 auto; }
.service-card a:hover { color: var(--teal-ink); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .service-card, .setup-card { transition: transform var(--ease), box-shadow var(--ease); }
  .service-card:hover, .service-card:focus-within, .setup-card:hover, .setup-card:focus-within {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
  }
}

.process { list-style: none; margin: 0; padding: 0; }
.process li {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  min-width: 0;
}
.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.step-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e7f4f2;
  color: var(--teal-ink);
  flex: 0 0 auto;
}
.step-head span:not(.step-icon) {
  font-size: 13px;
  letter-spacing: .14em;
  font-weight: 700;
  color: var(--teal-ink);
}

.express {
  background: var(--navy);
  color: var(--white);
  margin-top: 12px;
}
.express-inner { padding: 64px 0; }
.express .kicker, .express h2, .express p, .express li { color: var(--white); }
.express p { font-size: 18px; max-width: 62ch; }
.express-mark {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  margin-bottom: 16px;
}
.express-rules { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.express-rules li {
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
}

.app-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}
.app-showcase .section-head { margin-bottom: 0; }
.phone { margin: 0; min-width: 0; }
.phone figcaption {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.phone-bezel {
  background: var(--navy);
  border-radius: 28px;
  padding: 12px 10px 16px;
  box-shadow: 0 18px 36px rgba(18, 48, 71, .16);
}
.phone-screen {
  background: var(--white);
  border-radius: 18px;
  min-height: 168px;
  padding: 16px 14px 14px;
}
.phone-title { font-weight: 700; color: var(--navy); }
.phone-rowline {
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  background: var(--mint);
  color: var(--navy);
  font-weight: 650;
}
.phone-muted { color: var(--muted); font-size: 14px; margin-top: 10px; }

.closing {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px;
  margin-bottom: 48px;
  box-shadow: var(--shadow-soft);
}

.site-footer {
  background: var(--navy);
  color: #e7eef2;
  padding: 56px 0 28px;
}
.site-footer a { color: #ffffff; text-decoration: none; font-size: 16px; line-height: 1.45; }
.site-footer a:focus-visible { outline-color: #fff; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.site-footer h2 {
  color: #ffffff;
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.site-footer .brand { color: #ffffff; margin-bottom: 14px; }
.footer-brand p { max-width: 36ch; color: #d5e2ea; font-size: 16px; }
.footer-grid nav, .footer-grid > div { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer-base {
  border-top: 1px solid rgba(255, 255, 255, .16);
  margin-top: 36px;
  padding-top: 18px;
  font-size: 15px;
  color: #d5e2ea;
}

.alert { background: var(--ok); color: var(--navy); border-radius: 12px; padding: 12px 14px; margin: 16px 0; }
.error { background: var(--danger-bg); color: var(--danger); }
label { display: block; font-size: 14px; font-weight: 650; color: var(--navy); margin-top: 8px; }
input, select, textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  margin: 6px 0 12px;
  background: var(--white);
  font: 16px/1.4 var(--sans);
  color: var(--ink);
}
textarea { min-height: 120px; }
input[type="checkbox"], input[type="radio"] {
  width: 1.1rem;
  min-height: 0;
  margin: 0 8px 0 0;
  accent-color: var(--teal);
}
label:has(input[type="checkbox"]), label:has(input[type="radio"]) {
  display: flex;
  align-items: center;
  font-weight: 600;
}
.auth-page { width: min(520px, calc(100% - 40px)); }
.auth-page h1 { font-size: clamp(32px, 4vw, 44px); }
.page-intro { max-width: 720px; }
.page-intro h1 { font-size: clamp(34px, 4vw, 52px); }

.business-band { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.setup-card h3 a { color: var(--navy); text-decoration: none; }
.setup-card h3 a:hover { color: var(--teal-ink); }

@media (min-width: 768px) {
  .benefit-row, .service-grid, .grid, .process, .phone-row, .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .express-inner { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 28px; align-items: start; }
  .express-mark { margin-bottom: 0; }
  .process::before { display: none; }
}

@media (min-width: 1024px) {
  .hero { grid-template-columns: minmax(0, 45fr) minmax(0, 55fr); }
  .benefit-row, .service-grid, .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .process { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .process li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 44px;
    right: -20px;
    width: 20px;
    height: 2px;
    background: #c5ddd9;
  }
  .footer-grid { grid-template-columns: minmax(260px, 1.35fr) repeat(auto-fit, minmax(180px, 1fr)); }
  .app-showcase { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 40px; }
}

@media (max-width: 1023px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 36px; }
  .hero h1 { font-size: clamp(40px, 5vw, 56px); }
  .hero-frame { max-width: 720px; }
}

@media (max-width: 1279px) {
  .nav-toggle { display: inline-flex; }
  .nav-panel {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    max-height: calc(100dvh - var(--header));
    overflow: auto;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 24px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow);
  }
  .site-header.is-open .nav-panel { display: flex; }
  .nav-links, .nav-actions { flex-direction: column; align-items: stretch; }
  .nav-links { justify-content: flex-start; }
  .nav-links > a, .nav-drop > summary { font-size: 16px; padding: 12px 8px; }
  .nav-menu, .nav-login .nav-menu {
    position: static;
    min-width: 0;
    box-shadow: none;
    margin: 0 0 8px 12px;
  }
  .nav-actions .btn { width: 100%; }
  body.nav-open { overflow: hidden; }
}

@media (max-width: 767px) {
  .closing { padding: 24px; }
  .hero-actions .btn, .section-action .btn, .service-cta { width: 100%; }
}

@media (max-width: 390px) {
  .nav, .hero, .section, .express-inner, .closing, .wrap, .footer-grid, .site-footer .footer-base, .auth-page {
    width: min(var(--wrap), calc(100% - 32px));
  }
  .hero h1, h1 { font-size: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
