/* ---------------------------------------------------------------------------
   SGS Web Group
   Ink and green match the pricing sheet and proposal. Warm paper background and
   an editorial serif for headings, so it reads like printed business paperwork
   rather than a software template. Both font stacks are installed system fonts:
   nothing to download, nothing to add to the CSP.
   --------------------------------------------------------------------------- */

:root {
  --paper:       #f7f5f0;
  --paper-2:     #efebe2;
  --card:        #fffdf8;
  --ink:         #16213a;
  --ink-soft:    #4f586a;
  --accent:      #1f5f4a;
  --accent-dk:   #174a39;
  --accent-tint: #e3ede7;
  --rule:        #dcd6c9;
  --rule-dk:     #b3ac9c;

  --on-dark:      #d5dae3;
  --on-dark-soft: #aab3c1;
  --on-dark-hi:   #9fd3bf;
  --on-dark-err:  #ffc2b9;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans:  "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --fast: 160ms;
  --med:  240ms;
  /* Multiplies the four newer effects' durations. Set it to 3 locally to review
     them in slow motion. Must be 1 live. */
  --demo: 1;

  --wrap: 1140px;
  --narrow: 760px;
  --header-h: 80px;
}

* { box-sizing: border-box; }

html { scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

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

img { max-width: 100%; height: auto; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.wrap.narrow { max-width: var(--narrow); }

h1, h2, h3 { margin: 0 0 .6em; line-height: 1.12; text-wrap: balance; color: var(--ink); }
h1, h2 { font-family: var(--serif); font-weight: 400; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); line-height: 1.06; letter-spacing: -.015em; max-width: 16ch; }
h3 { font-size: 1.15rem; font-weight: 650; }

.section-title { font-size: clamp(1.95rem, 3.8vw, 2.8rem); letter-spacing: -.01em; margin-bottom: 1.4rem; }

p { margin: 0 0 1rem; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { color: var(--accent-dk); }

.lede { font-size: 1.13rem; color: var(--ink-soft); max-width: 54ch; }

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

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; display: inline-flex; align-items: center; min-height: 44px; background: var(--card); padding: .6rem .9rem; border-radius: 6px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

.icon { flex: none; }

/* ---------- buttons and links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: .75rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--fast) ease, color var(--fast) ease,
              border-color var(--fast) ease, transform var(--fast) ease;
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 44px; padding: .55rem 1rem; font-size: .94rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dk); color: #fff; }

.btn-quiet { background: transparent; color: var(--ink); border-color: var(--rule-dk); }
.btn-quiet:hover { background: var(--card); border-color: var(--ink); color: var(--ink); }

.btn-outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-outline:hover { background: var(--card); color: var(--accent-dk); }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--accent-tint); color: var(--ink); }

.btn[disabled] { opacity: .7; cursor: progress; }

.spinner {
  display: none;
  width: 1em; height: 1em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 44px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--rule-dk);
  text-decoration-thickness: 1px;
}
.text-link:hover { color: var(--accent); text-decoration-color: var(--accent); }
.text-link .icon { transition: transform var(--fast) var(--ease); }
.text-link:hover .icon { transform: translate(2px, -2px); }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color var(--med) ease, box-shadow var(--med) ease;
}
.site-header.is-scrolled { border-bottom-color: var(--rule); box-shadow: 0 6px 20px -14px rgba(22, 33, 58, .35); }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
/* ---------- logo (editorial wordmark) ---------- */

.logo { display: inline-flex; align-items: center; gap: .8rem; color: var(--ink); line-height: 1; }
.logo-mark { font-family: var(--serif); font-size: 2.5rem; letter-spacing: .04em; }
.logo-rule { align-self: stretch; width: 2px; margin: .25rem 0; background: var(--accent); }
.logo-name { color: var(--ink-soft); font-size: .98rem; letter-spacing: .16em; white-space: nowrap; }

.logo--stacked { flex-direction: column; align-items: center; gap: .45rem; }
.logo--stacked .logo-mark { font-size: 3.6rem; }
.logo--stacked .logo-rule { width: 100%; height: 2px; margin: 0; }
.logo--stacked .logo-name { font-size: 1rem; letter-spacing: .22em; }

/* Small phones: step down so the logo still sits beside the menu button. */
@media (max-width: 420px) {
  .site-header .logo { gap: .6rem; }
  .site-header .logo-mark { font-size: 2.1rem; }
  .site-header .logo-name { font-size: .84rem; letter-spacing: .12em; }
}

.nav-menu { display: flex; align-items: center; gap: 1.75rem; }
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-soft);
  font-size: .96rem;
  text-decoration: none;
}
.nav-link::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 8px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--med) var(--ease);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after, .nav-link[aria-current]::after { transform: scaleX(1); }
.nav-link[aria-current] { color: var(--ink); }
.nav-phone { display: none; }

.menu-toggle { display: none; }

@media (max-width: 819px) {
  /* Without JS the links stay visible and simply wrap. */
  .header-inner { flex-wrap: wrap; }
  .nav-menu { flex-wrap: wrap; gap: 0 1.1rem; }

  .js .header-inner { flex-wrap: nowrap; }

  .js .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    min-height: 44px;
    padding: 0 .9rem;
    border: 1px solid var(--rule-dk);
    border-radius: 6px;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
  }
  .menu-bars { position: relative; width: 18px; height: 12px; }
  .menu-bars span {
    position: absolute; left: 0; right: 0;
    height: 2px; border-radius: 2px;
    background: currentColor;
    transition: transform var(--med) var(--ease);
  }
  .menu-bars span:first-child { top: 2px; }
  .menu-bars span:last-child { bottom: 2px; }
  .menu-open .menu-bars span:first-child { transform: translateY(3px) rotate(45deg); }
  .menu-open .menu-bars span:last-child { transform: translateY(-3px) rotate(-45deg); }

  .js .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .25rem 1.25rem 1.25rem;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 18px 30px -20px rgba(22, 33, 58, .4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity var(--med) ease, transform var(--med) var(--ease), visibility 0s linear var(--med);
  }
  .js .menu-open .nav-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

  .js .nav-link { min-height: 52px; border-bottom: 1px solid var(--rule); color: var(--ink); font-size: 1.05rem; }
  .js .nav-link::after { display: none; }
  .js .nav-link[aria-current] { color: var(--accent); }
  .js .nav-phone { display: inline-flex; }
  .js .nav-cta { margin-top: 1rem; }
}

/* ---------- hero ---------- */

.hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(3.5rem, 8vw, 5.5rem); }
/* Centered hero: headline, lede and buttons in the middle, then the terms
   card read left to right underneath. */
.hero-grid { display: grid; gap: clamp(2.5rem, 5vw, 3.5rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.hero-copy { text-align: center; }
.hero-copy h1 { max-width: 24ch; margin-left: auto; margin-right: auto; }
.hero-copy .lede { max-width: 62ch; margin-left: auto; margin-right: auto; }
.hero-copy .hero-actions { justify-content: center; }

.terms-card {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1.1rem clamp(.75rem, 2.5vw, 1.5rem) 1.25rem;
  box-shadow: 0 1px 0 rgba(22, 33, 58, .04), 0 24px 44px -30px rgba(22, 33, 58, .35);
}
.terms-head {
  display: flex; justify-content: center;
  padding-bottom: .85rem; margin-bottom: 1rem;
  border-bottom: 1px dashed var(--rule-dk);
  text-align: center;
}
.terms-head p { margin: 0; font-weight: 650; line-height: 1.3; }

/* The 1px gap over a rule-colored background draws hairlines between cells,
   so the dividers stay correct at 2, 3 or 6 columns. */
.terms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: var(--rule);
}
@media (min-width: 480px) { .terms { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 980px) { .terms { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.term {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  padding: .85rem .6rem;
  background: var(--card);
  text-align: center;
}
.term dt { color: var(--ink-soft); font-size: .85rem; }
.term dd { margin: 0; font-weight: 600; font-size: .98rem; line-height: 1.3; }

/* The one entrance animation on the page: terms settle in when it loads. */
@media (prefers-reduced-motion: no-preference) {
  .js .term { animation: term-in .42s var(--ease) both; animation-delay: calc(var(--i) * 70ms + 180ms); }
}
@keyframes term-in { from { opacity: 0; transform: translateY(6px); } }

/* ---------- sections ---------- */

.section { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.section-alt { background: var(--paper-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

/* ---------- work ---------- */

.work-item { display: grid; gap: 2rem; align-items: center; margin-top: 2.25rem; }
.work-item + .work-item { margin-top: 4rem; padding-top: 4rem; border-top: 1px solid var(--rule); }
@media (min-width: 880px) {
  .work-item { grid-template-columns: 1.35fr 1fr; gap: 3.5rem; }
  .work-item:nth-of-type(even) .browser { order: 2; }
}

.browser {
  margin: 0;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 10px;
  box-shadow: 0 24px 44px -32px rgba(22, 33, 58, .45);
  transition: transform var(--med) var(--ease), box-shadow var(--med) var(--ease);
}
@media (hover: hover) {
  .browser:has(a.browser-shot:hover) { transform: translateY(-4px); box-shadow: 0 30px 50px -30px rgba(22, 33, 58, .5); }
}
.browser-bar { display: flex; align-items: center; padding: .5rem .75rem; background: var(--paper-2); border-bottom: 1px solid var(--rule); }
.browser-url {
  max-width: 100%;
  padding: .12rem .8rem;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: .78rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.browser-shot { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
/* The image is the whole page. At rest the frame shows the top of it; on hover
   it scrolls to the bottom at a steady pace (--pan is set per item from the
   image height) and comes back up quickly when the pointer leaves. */
.browser-shot img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 0;
  transition: object-position calc(.9s * var(--demo)) var(--ease);
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .browser:hover .browser-shot img {
    object-position: 50% 100%;
    transition: object-position calc(var(--pan, 8s) * var(--demo)) cubic-bezier(.45, 0, .55, 1) .2s;
  }
}

.tag {
  display: inline-block;
  margin: 0 0 .8rem;
  padding: .2rem .65rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--accent-tint);
  color: var(--accent-dk);
  font-size: .78rem;
  font-weight: 650;
}
.tag-sample { background: transparent; border: 1px dashed var(--rule-dk); color: var(--ink-soft); }

.work-body h3 { margin: 0 0 .15rem; font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2rem); font-weight: 400; }
.work-meta { color: var(--ink-soft); font-size: .95rem; }
.work-body p:not(.tag):not(.work-meta) { max-width: 46ch; }

/* ---------- process ---------- */

.timeline { list-style: none; padding: 0; margin: 2.25rem 0 0; display: grid; }
.stage { position: relative; margin-left: .4rem; padding: 0 0 2.25rem 2rem; border-left: 2px solid var(--rule); }
.stage:last-child { padding-bottom: 0; border-left-color: transparent; }
.stage::before {
  content: "";
  position: absolute; left: -8px; top: .3rem;
  width: 14px; height: 14px;
  background: var(--paper-2);
  border: 2px solid var(--accent);
  border-radius: 50%;
}
.stage:last-child::before { background: var(--accent); }
.stage-when { margin: 0 0 .3rem; color: var(--accent); font-size: .9rem; font-weight: 650; }
.stage h3 { margin: 0 0 .4rem; font-family: var(--serif); font-size: 1.4rem; font-weight: 400; }
.stage p:last-child { margin: 0; color: var(--ink-soft); }

@media (min-width: 900px) {
  .timeline { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .stage { margin-left: 0; padding: 1.75rem 0 0; border-left: 0; border-top: 2px solid var(--rule); }
  .stage:last-child { border-top-color: var(--rule); }
  .stage::before { left: 0; top: -8px; }
}

/* The line between the steps draws itself once, in order, when the timeline
   comes into view. A green line grows over the gray rule, and each dot appears
   as the line reaches it. Without JS or with reduced motion it's just drawn. */
.stage::before { z-index: 1; }
.stage::after {
  content: "";
  position: absolute; left: -2px; top: 0; bottom: 0;
  width: 2px;
  background: var(--accent);
  transform-origin: top;
}
.stage:last-child::after { display: none; }
@media (min-width: 900px) {
  .stage::after { left: 0; right: 0; top: -2px; bottom: auto; width: auto; height: 2px; transform-origin: left; }
  .stage:last-child::after { display: block; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .stage::after {
    transform: scaleY(0);
    transition: transform calc(.6s * var(--demo)) cubic-bezier(.65, 0, .35, 1) calc(var(--i) * .6s * var(--demo) + .15s * var(--demo));
  }
  .js .stage::before {
    opacity: 0;
    transform: scale(.4);
    transition: opacity calc(.3s * var(--demo)) ease, transform calc(.3s * var(--demo)) var(--ease);
    transition-delay: calc(var(--i) * .6s * var(--demo));
  }
  @media (min-width: 900px) { .js .stage::after { transform: scaleX(0); } }
  .js .timeline.is-drawn .stage::after,
  .js .timeline.is-drawn .stage::before { opacity: 1; transform: none; }
}

/* ---------- plans ---------- */

.plans-head { margin-bottom: 2rem; }

.plan-picker { display: none; }

.table-scroll { overflow-x: auto; background: var(--card); border: 1px solid var(--rule); border-radius: 10px; }

.plans-table { width: 100%; min-width: 720px; border-collapse: separate; border-spacing: 0; font-size: .96rem; }
.plans-table th, .plans-table td { padding: .85rem 1rem; border-bottom: 1px solid var(--rule); text-align: center; vertical-align: middle; }
.plans-table tbody th { text-align: left; font-weight: 400; color: var(--ink); }
.plans-table .corner { width: 34%; }

.plans-table thead th { position: relative; padding-top: 2.1rem; vertical-align: bottom; font-weight: 400; }
.plan-name { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--ink); }
.plan-for { display: block; color: var(--ink-soft); font-size: .88rem; }
.plan-price { display: block; margin-top: .55rem; color: var(--ink-soft); font-size: .9rem; }
.amount { font-size: 2rem; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }

.plans-table .is-featured { background: var(--accent-tint); }
.plans-table thead th.is-featured { box-shadow: inset 0 3px 0 var(--accent); }
.plan-tag {
  position: absolute; top: .7rem; left: 50%;
  transform: translateX(-50%);
  color: var(--accent-dk);
  font-size: .74rem;
  font-weight: 700;
  white-space: nowrap;
}

.check { color: var(--accent); vertical-align: middle; }
.dash { color: var(--rule-dk); }

.plans-table tbody tr { transition: background-color var(--fast) ease; }
@media (hover: hover) {
  .plans-table tbody tr:hover { background: var(--paper); }
}
.plans-table tfoot td { border-bottom: 0; padding: 1.1rem 1rem 1.3rem; }

.plans-note { margin: 1.25rem 0 0; color: var(--ink-soft); font-size: .95rem; max-width: 75ch; }

@media (max-width: 759px) {
  .js .plan-picker {
    position: relative;
    display: flex;
    gap: .25rem;
    margin-bottom: 1rem;
    padding: .25rem;
    background: var(--paper-2);
    border: 1px solid var(--rule);
    border-radius: 999px;
  }
  /* One white pill that slides under whichever button is pressed. --idx is
     set by the script; the width assumes three plans. */
  .js .plan-picker::before {
    content: "";
    position: absolute; top: .25rem; bottom: .25rem; left: .25rem;
    width: calc((100% - 1rem) / 3);
    background: var(--card);
    border-radius: 999px;
    box-shadow: 0 1px 4px rgba(22, 33, 58, .18);
    transform: translateX(calc(var(--idx, 1) * (100% + .25rem)));
    transition: transform calc(var(--med) * 1.25 * var(--demo)) var(--ease);
  }
  .picker-btn {
    position: relative;
    flex: 1;
    min-height: 44px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--ink-soft);
    font: inherit;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: color calc(var(--med) * var(--demo)) ease;
  }
  .picker-btn[aria-pressed="true"] { color: var(--ink); }

  .js .plans-table { min-width: 0; }
  .js .plans-table [data-plan] { display: none; }
  .js .plans-table[data-active="basic"] [data-plan="basic"],
  .js .plans-table[data-active="growth"] [data-plan="growth"],
  .js .plans-table[data-active="pro"] [data-plan="pro"] { display: table-cell; }
  .js .plans-table .corner { width: 55%; }
  .js .plan-tag { position: static; display: block; transform: none; margin-bottom: .2rem; }
  .js .plans-table thead th { padding-top: 1rem; }
}
/* On a switch, the new column slides in from the side of the tapped button
   (--swap-from is set by the script). */
@media (max-width: 759px) and (prefers-reduced-motion: no-preference) {
  .js .plans-table.is-swapping [data-plan] { animation: plan-in calc(.36s * var(--demo)) var(--ease) both; }
}
@keyframes plan-in { from { opacity: 0; transform: translateX(var(--swap-from, 28px)); } }

/* ---------- about ---------- */

.prose p { font-size: 1.1rem; max-width: 60ch; }
.signoff { margin: 1.75rem 0 0; font-family: var(--serif); font-size: 1.3rem; line-height: 1.3; }
.signoff span { display: block; font-family: var(--sans); font-size: .9rem; color: var(--ink-soft); }

/* ---------- faq ---------- */

.faq-grid { display: grid; gap: 2rem; }
@media (min-width: 900px) {
  .faq-grid { grid-template-columns: 1fr 1.6fr; gap: 4rem; align-items: start; }
  .faq-intro { position: sticky; top: calc(var(--header-h) + 2rem); }
}

.faq { border-bottom: 1px solid var(--rule); }
.faq:first-child { border-top: 1px solid var(--rule); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 60px;
  padding: .9rem 0;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
  transition: color var(--fast) ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }

.faq-icon { position: relative; flex: none; width: 16px; height: 16px; }
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute; left: 0; right: 0; top: 7px;
  height: 2px; border-radius: 2px;
  background: var(--accent);
  transition: transform var(--med) var(--ease);
}
.faq-icon::after { transform: rotate(90deg); }
.faq[open] .faq-icon::after { transform: rotate(0deg); }

.faq p { margin: 0 0 1.25rem; max-width: 62ch; color: var(--ink-soft); }
@media (prefers-reduced-motion: no-preference) {
  .faq[open] p { animation: faq-in var(--med) var(--ease); }
}
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } }

/* ---------- contact ---------- */

.section-dark { background: var(--ink); color: var(--on-dark); }
.section-dark .section-title, .section-dark h3 { color: #fff; }
.section-dark .lede { color: var(--on-dark-soft); }
.section-dark :focus-visible { outline-color: var(--on-dark-hi); }

.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 940px) {
  .contact-grid { grid-template-columns: 1fr 1.25fr; gap: 4.5rem; align-items: start; }
}

.next-title { margin: 2rem 0 .75rem; font-size: 1rem; }
.next-steps { list-style: none; counter-reset: next; margin: 0; padding: 0; }
.next-steps li { counter-increment: next; display: grid; grid-template-columns: 1.6rem 1fr; padding: .3rem 0; }
.next-steps li::before { content: counter(next) "."; color: var(--on-dark-hi); font-weight: 700; }

.direct { list-style: none; margin: 2rem 0 0; padding: 0; }
.direct li { display: flex; flex-direction: column; padding: .8rem 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.direct span { color: var(--on-dark-soft); font-size: .85rem; }
.direct a { display: inline-flex; align-items: center; min-height: 44px; color: #fff; font-size: 1.15rem; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.direct a:hover { color: var(--on-dark-hi); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
}
.field-row { display: grid; gap: 1.1rem; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.field label { color: #eef1f5; font-size: .92rem; font-weight: 600; }
.req { margin-left: .3rem; color: var(--on-dark-soft); font-size: .8rem; font-weight: 400; }

.field input, .field select, .field textarea {
  min-height: 48px;
  padding: .7rem .85rem;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 6px;
  color: #fff;
  font: inherit;
  transition: border-color var(--fast) ease, background-color var(--fast) ease, box-shadow var(--fast) ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select option { color: var(--ink); }
.field input::placeholder { color: #8d96a6; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(255, 255, 255, .45); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--on-dark-hi);
  background: rgba(255, 255, 255, .09);
  box-shadow: 0 0 0 3px rgba(159, 211, 191, .3);
}
.field [aria-invalid="true"] { border-color: var(--on-dark-err); box-shadow: 0 0 0 3px rgba(255, 194, 185, .18); }
.field-error { margin: 0; color: var(--on-dark-err); font-size: .88rem; }

/* After an "Ask about <plan>" button fills a field, it glows green and fades. */
@media (prefers-reduced-motion: no-preference) {
  .field .is-filled { animation: filled-in calc(1.6s * var(--demo)) ease-out; }
}
@keyframes filled-in {
  0%, 30% {
    border-color: var(--on-dark-hi);
    background-color: rgba(159, 211, 191, .14);
    box-shadow: 0 0 0 4px rgba(159, 211, 191, .45);
  }
}
.field-error:empty { display: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
.form-actions .btn { min-width: 9rem; }
.form-status { flex: 1 1 16rem; margin: 0; color: var(--on-dark-err); font-size: .95rem; }
.form-status:empty { display: none; }

.form-success {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: rgba(159, 211, 191, .08);
  border: 1px solid rgba(159, 211, 191, .45);
  border-radius: 12px;
}
.form-success:focus { outline: none; }
.form-success h3 { margin: 0 0 .5rem; font-family: var(--serif); font-size: 1.7rem; font-weight: 400; }
.form-success p { margin: 0; color: var(--on-dark); }

/* ---------- phone shortcut bar ---------- */

.action-bar { display: none; }
@media (max-width: 819px) {
  .js .action-bar {
    position: fixed; left: .75rem; right: .75rem;
    bottom: calc(.75rem + env(safe-area-inset-bottom, 0px));
    z-index: 40;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: .5rem;
    padding: .5rem;
    background: rgba(22, 33, 58, .97);
    border-radius: 12px;
    box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .45);
    transform: translateY(calc(100% + 1.5rem));
    transition: transform var(--med) var(--ease);
  }
  .js .action-bar.is-visible { transform: none; }
  .btn-bar-call { color: #fff; border-color: rgba(255, 255, 255, .3); }
  .btn-bar-call:hover { color: #fff; background: rgba(255, 255, 255, .08); }
}

/* ---------- footer ---------- */

.site-footer { padding: 2.75rem 0 1.5rem; background: #0f1729; color: var(--on-dark-soft); }
.site-footer .logo { color: #fff; }
.site-footer .logo-rule { background: var(--on-dark-hi); }
.site-footer .logo-name { color: var(--on-dark-soft); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; }
.footer-tagline { margin: 0; }
.site-footer p { margin: 0 0 .25rem; font-size: .95rem; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--on-dark-hi); text-decoration: underline; }
.footer-name { color: #fff; font-weight: 700; }
.footer-contact { text-align: right; }
.footer-legal { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-legal p { font-size: .85rem; color: #8a93a2; }

@media (max-width: 600px) {
  .footer-contact { text-align: left; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; animation-iteration-count: 1 !important; }
  /* The loading spinner still needs to read as "busy", so it stays visible but still. */
}
