/* Sage Web Services — mobile-first, app-like marketing site. */

:root {
  --navy: #0c2340;
  --ink: #122033;
  --cream: #f3efe6;
  --paper: #fffcf8;
  --muted: #3e5166;
  --gold: #c9a04e;
  --gold-press: #b08d3c;
  --line: rgba(12, 35, 64, 0.12);
  --danger: #8c2f2f;
  --shadow: 0 1px 2px rgba(12, 35, 64, 0.04), 0 10px 28px rgba(12, 35, 64, 0.06);
  --header: 64px;
  --dock: 76px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --radius: 20px;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--navy);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + env(safe-area-inset-top));
  scroll-padding-bottom: calc(var(--dock) + env(safe-area-inset-bottom) + 12px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
}

img {
  height: auto;
}

p,
h1,
h2,
h3,
ul,
ol {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--navy);
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(1.9rem, 7.6vw, 3.35rem);
}

h2 {
  margin-bottom: 8px;
  font-size: clamp(1.55rem, 5vw, 2.15rem);
}

h3 {
  margin-bottom: 6px;
  font-size: 1.15rem;
}

p {
  margin-bottom: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

.topbar :focus-visible {
  outline-color: #f4f0e7;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  background: var(--paper);
  color: var(--navy);
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
}

.skip:focus {
  top: calc(8px + env(safe-area-inset-top));
}

.wrap {
  width: min(1080px, calc(100% - 32px));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--navy);
  padding-top: env(safe-area-inset-top);
  border-bottom: 2px solid var(--gold);
}

.topbar-inner {
  width: min(1080px, 100%);
  margin: 0 auto;
  min-height: var(--header);
  padding: 4px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  min-width: 0;
  color: #f4f0e7;
  text-decoration: none;
  border-radius: 12px;
}

.logo-mark {
  width: 36px;
  height: 36px;
  flex: none;
  display: block;
}

.brand-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  line-height: 1.1;
}

.brand-full {
  font-weight: 560;
}

.nav {
  display: none;
  align-items: center;
  gap: 2px;
}

.nav a,
.top-mail {
  color: #f4f0e7;
  text-decoration: none;
  font-size: 15px;
  font-weight: 650;
  min-height: 48px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
}

.top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-mail {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 2px solid transparent;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}

.btn-ghost {
  background: var(--paper);
  border-color: var(--navy);
  color: var(--navy);
}

.btn-header {
  min-height: 48px;
  padding: 8px 14px;
  font-size: 15px;
  border-radius: 999px;
}

.btn-header:focus-visible {
  outline-color: #f4f0e7;
}

.short-label {
  display: none;
}

.long-label {
  display: inline;
}

.btn .ico,
.dock-btn .ico {
  width: 20px;
  height: 20px;
}

main {
  background: var(--cream);
}

.section {
  padding: 28px 0;
}

.hero {
  padding-top: 22px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  margin-bottom: 10px;
  border-radius: 99px;
  background: var(--gold);
}

.lead,
.intro {
  color: var(--muted);
  font-size: 17px;
}

.lead {
  margin-bottom: 18px;
  max-width: 38rem;
}

.intro {
  margin-bottom: 16px;
  max-width: 40rem;
}

.hero-actions,
.sent-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-actions .btn,
.sent-actions .btn,
.price-card .btn,
.contact-form .btn-gold {
  width: 100%;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.checklist {
  margin-top: 18px;
}

.checklist h2 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.check-list,
.plain-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li,
.plain-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 16px;
}

.check-list li + li,
.plain-list li + li {
  border-top: 1px solid var(--line);
}

.check {
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: 1px;
  color: #2f5a32;
}

.own-card .check {
  color: #e0c27a;
}

.cards,
.steps,
.split,
.faq-list {
  display: grid;
  gap: 12px;
}

.service h3,
.step h3 {
  margin-top: 0;
}

.service p,
.step p,
.faq p,
.price-card p,
.own-card p,
.contact-copy p {
  color: var(--muted);
  font-size: 16px;
}

.icon-well {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #e5f0dc;
  color: #245c30;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}

.icon-well svg {
  width: 22px;
  height: 22px;
  display: block;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
}

.step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 16px;
}

.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin: 4px 0 8px;
}

.price .from,
.price .unit {
  font-size: 16px;
  font-weight: 700;
  color: var(--muted);
}

.price .num {
  font-size: 56px;
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 750;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.own-card {
  background: var(--navy);
  color: #f4f0e7;
  border-color: var(--navy);
  box-shadow: inset 0 3px 0 var(--gold);
}

.own-card h3,
.own-card p,
.own-card li {
  color: #f4f0e7;
}

.own-card .plain-list {
  margin-top: 14px;
}

.own-card .plain-list li + li {
  border-top-color: rgba(244, 240, 231, 0.16);
}

.price-card .check-list {
  margin: 14px 0 16px;
}

.field textarea::placeholder {
  color: #4d6278;
}

.faq {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.faq summary {
  min-height: 48px;
  padding: 14px 16px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  transform: rotate(45deg);
  flex: none;
  margin-top: -4px;
}

.faq[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.faq p {
  padding: 0 16px 16px;
  margin: 0;
}

.contact-form,
.sent {
  margin-top: 16px;
}

.form-error {
  background: #fdf6f4;
  color: var(--danger);
  border: 1px solid #e7c8c2;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 650;
}

.fields {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.field {
  padding: 10px 14px 12px;
}

.field + .field {
  border-top: 1px solid var(--line);
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.req {
  font-weight: 650;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 0;
  margin: 0;
  padding: 10px 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  border-radius: 0;
  min-height: 48px;
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%230c2340' stroke-width='1.8'%3E%3Cpath d='M5 7.5 10 12.5 15 7.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  background-size: 18px 18px;
  padding-right: 28px;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
}

.field:focus-within {
  box-shadow: inset 0 0 0 2px var(--navy);
  background: #fff8ea;
  position: relative;
  z-index: 1;
}

.field.has-error {
  box-shadow: inset 0 0 0 2px var(--danger);
  background: #fdf6f4;
}

.field-error {
  margin: 4px 0 0;
  color: var(--danger);
  font-size: 14px;
  font-weight: 650;
}

.form-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.contact-form .btn-gold {
  margin-top: 12px;
}

.sent h3 {
  margin-bottom: 8px;
}

.message {
  margin: 12px 0;
  padding: 12px 14px;
  background: var(--cream);
  border-radius: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
}

.copy-status {
  min-height: 1.4em;
  margin: 8px 0 0;
  font-size: 15px;
  font-weight: 700;
  color: #2f5a32;
}

.noscript {
  margin-bottom: 12px;
  padding: 12px 14px;
  background: var(--paper);
  border-radius: 12px;
  border: 1px solid var(--line);
}

.footer {
  background: var(--navy);
  color: #f4f0e7;
  padding: 28px 0 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
}

.footer-name {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.footer-blurb,
.footer-loc,
.legal {
  color: #f4f0e7;
  font-size: 15px;
}

.footer-blurb {
  margin: 12px 0;
  max-width: 36rem;
}

.footer-loc {
  margin: 0 0 8px;
  font-weight: 700;
}

.footer a {
  color: #f4f0e7;
  overflow-wrap: anywhere;
}

.mail-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  margin: 8px 0 12px;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  width: fit-content;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 650;
}

.legal {
  margin: 8px 0 0;
}

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  gap: 8px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: #fffcf8;
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(12, 35, 64, 0.08);
}

.dock.is-hidden {
  transform: translateY(110%);
}

.dock-btn {
  flex: 1;
  min-height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 8px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.dock-secondary {
  background: var(--paper);
  color: var(--navy);
  border: 2px solid var(--navy);
}

.dock-primary {
  background: var(--gold);
  color: var(--navy);
  border: 2px solid var(--gold);
}

body {
  padding-bottom: calc(var(--dock) + env(safe-area-inset-bottom));
}

.simple-main {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 0 calc(32px + env(safe-area-inset-bottom));
}

.simple-main .logo-mark {
  width: 72px;
  height: 72px;
  margin-bottom: 12px;
}

.simple-main h1 {
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  margin-bottom: 10px;
}

.simple-main .lead {
  margin-bottom: 18px;
}

@media (max-width: 359px) {
  .long-label {
    display: none;
  }

  .short-label {
    display: inline;
  }

  .brand-full {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

@media (min-width: 400px) {
  .wrap {
    width: min(1080px, calc(100% - 40px));
  }

  .topbar-inner {
    padding-inline: 16px;
  }
}

@media (min-width: 700px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  html {
    scroll-padding-bottom: 24px;
  }

  body {
    padding-bottom: 0;
  }

  .nav,
  .top-mail {
    display: flex;
  }

  .btn-header {
    padding: 10px 16px;
    font-size: 16px;
  }

  .short-label {
    display: none;
  }

  .long-label {
    display: inline;
  }

  .dock {
    display: none;
  }

  .section {
    padding: 56px 0;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-grid,
  .split,
  .contact-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 28px;
    align-items: start;
  }

  .checklist {
    margin-top: 0;
  }

  .hero-actions,
  .sent-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero-actions .btn,
  .sent-actions .btn,
  .contact-form .btn-gold {
    width: auto;
  }

  .price-card .btn {
    width: 100%;
  }

  .steps {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .step {
    grid-template-columns: 1fr;
    padding: 18px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 24px;
  }

  .footer-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 18px;
    justify-content: flex-end;
  }
}

@media (hover: hover) and (pointer: fine) {
  .btn-gold:hover,
  .dock-primary:hover {
    background: #d4ae62;
  }

  .btn-gold:active,
  .dock-primary:active {
    background: var(--gold-press);
  }

  .btn-ghost:hover,
  .dock-secondary:hover {
    background: #f6f1e6;
  }

  .nav a:hover,
  .top-mail:hover {
    color: #e0c27a;
  }

  .footer a:hover {
    color: #e0c27a;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .dock.is-hidden {
    transform: none;
    visibility: hidden;
  }
}

@media (forced-colors: active) {
  .btn-gold,
  .dock-primary,
  .btn-ghost,
  .dock-secondary {
    border: 2px solid ButtonText;
  }
}

@media print {
  .topbar,
  .dock,
  .skip,
  .hero-actions,
  .btn {
    display: none !important;
  }

  body {
    padding: 0;
    background: white;
    color: black;
  }

  main,
  .footer {
    background: white;
    color: black;
  }

  .footer,
  .footer a,
  .own-card,
  .own-card p,
  .own-card h3,
  .own-card li {
    color: black;
  }
}
