@font-face {
  font-family: "DM Sans";
  src: url("/assets/dm-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --navy: #10253b;
  --navy-2: #17344f;
  --teal: #0a8f8a;
  --teal-dark: #076d69;
  --aqua: #e5f5f3;
  --pale: #f3f6fa;
  --paper: #ffffff;
  --ink: #10253b;
  --muted: #556575;
  --line: #dce4eb;
  --line-strong: #c2d0dc;
  --danger: #a62e35;
  --success: #076b55;
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow: 0 18px 50px rgb(16 37 59 / 8%);
  --shadow-sm: 0 8px 24px rgb(16 37 59 / 5%);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body, button, input, select, textarea {
  font: inherit;
}

button, input, select, textarea {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

h1, h2, h3 {
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(40px, 5.8vw, 72px);
  font-weight: 700;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(28px, 3.8vw, 46px);
  font-weight: 700;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  font-weight: 600;
}

p {
  margin-bottom: 16px;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.58;
}

[hidden] {
  display: none !important;
}

/* Accessible focus rings */
:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
  border-color: var(--teal);
}

.visually-hidden, .honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

/* Layout containers & surfaces */
.wrap {
  width: min(calc(100% - (var(--gutter) * 2)), var(--wrap));
  margin-inline: auto;
}

.narrow {
  max-width: 760px;
}

.section {
  padding: clamp(68px, 8vw, 108px) 0;
}

.section--pale {
  background: var(--pale);
  border-block: 1px solid var(--line);
}

.section--navy {
  color: #ffffff;
  background: linear-gradient(165deg, var(--navy-2) 0%, var(--navy) 70%);
}

.section--navy .kicker,
.section--navy .text-link {
  color: #73d1cd;
}

.section--navy p {
  color: #c7d3de;
}

.kicker, .package-type {
  margin-bottom: 14px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.meta-line {
  color: var(--muted);
  font-size: 13px;
}

/* Skip link & Header */
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  color: #ffffff;
  background: var(--navy);
  font-weight: 600;
  transition: top 150ms var(--ease);
}

.skip-link:focus {
  top: 14px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 78px;
  border-bottom: 1px solid rgb(220 228 235 / 90%);
  background: rgb(255 255 255 / 94%);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  line-height: 1.1;
}

.brand-name {
  max-width: 205px;
  font-size: 13px;
  letter-spacing: 0.015em;
}

.brand-mark {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
}

.brand-mark::before, .brand-mark i, .brand-mark b {
  position: absolute;
  display: block;
  content: "";
  border: 5px solid var(--teal);
  transform: skew(-14deg);
}

.brand-mark::before {
  inset: 2px 6px 12px 2px;
  border-right: 0;
}

.brand-mark i {
  inset: 12px 2px 2px 8px;
  border-left: 0;
}

.brand-mark b {
  width: 14px;
  height: 5px;
  right: 1px;
  top: 2px;
  border: 0;
  background: var(--navy);
}

.site-navigation {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.site-navigation a {
  position: relative;
  padding-block: 4px;
  color: #3c4f61;
  font-size: 13.5px;
  font-weight: 600;
  transition: color 160ms var(--ease);
}

.site-navigation a:hover,
.site-navigation a[aria-current="page"] {
  color: var(--navy);
}

.site-navigation a:not(.nav-action)::after {
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--teal);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms var(--ease);
}

.site-navigation a:hover::after,
.site-navigation a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-action {
  display: none;
}

.header-action {
  margin-left: 4px;
}

.menu-button {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease);
}

.menu-button:hover {
  border-color: var(--line-strong);
  background: var(--pale);
}

.menu-button > span:not(.visually-hidden) {
  display: block;
  height: 2px;
  margin: 3px 0;
  border-radius: 2px;
  background: var(--navy);
}

/* Buttons & links */
.button-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 22px;
  border: 1px solid var(--teal);
  border-radius: var(--radius-sm);
  color: #ffffff;
  background: var(--teal);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease), transform 160ms var(--ease), box-shadow 160ms var(--ease);
}

.button:hover {
  border-color: var(--teal-dark);
  background: var(--teal-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgb(10 143 138 / 22%);
}

.button:active {
  transform: translateY(0);
}

.button--compact {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 12.5px;
}

.button--secondary {
  border-color: var(--line-strong);
  color: var(--navy);
  background: #ffffff;
}

.button--secondary:hover {
  border-color: var(--navy);
  color: #ffffff;
  background: var(--navy);
  box-shadow: none;
}

.text-link, .text-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
  border: 0;
  border-bottom: 1.5px solid currentColor;
  color: var(--teal-dark);
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  transition: color 160ms var(--ease), gap 160ms var(--ease);
}

.text-link:hover, .text-button:hover {
  color: var(--navy);
  gap: 8px;
}

/* Hero */
.home-hero {
  display: flex;
  align-items: center;
  overflow-x: clip;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  padding: clamp(48px, 6vw, 84px) 0;
  gap: clamp(32px, 5vw, 72px);
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  max-width: 16ch;
}

.hero-lead {
  max-width: 54ch;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: clamp(16.5px, 1.6vw, 19px);
  line-height: 1.68;
}

.hero-fact {
  margin: 24px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  max-width: 48ch;
  color: var(--muted);
  font-size: 13px;
}

.hero-visual {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual::before {
  position: absolute;
  width: min(76%, 440px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--aqua);
  content: "";
}

.hero-visual::after {
  position: absolute;
  width: 72%;
  height: 56%;
  right: 2%;
  bottom: -4%;
  border: 1px solid #b7dfdc;
  border-radius: var(--radius-md);
  content: "";
  transform: rotate(-5deg);
}

.visual-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  min-width: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.visual-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.94) contrast(1.02);
}

.page-hero {
  padding: clamp(68px, 9vw, 118px) 0 clamp(60px, 8vw, 96px);
  border-bottom: 1px solid var(--line);
  background: var(--pale);
}

.page-hero .wrap {
  max-width: 960px;
}

.page-hero h1 {
  max-width: 20ch;
}

.page-hero .hero-lead {
  max-width: 62ch;
}

.section-heading {
  max-width: 720px;
  margin-bottom: clamp(32px, 4.5vw, 48px);
}

.section-heading > p:last-child:not(.kicker) {
  max-width: 58ch;
  color: var(--muted);
}

.split-heading {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
}

/* Service index */
.service-index {
  border-top: 1px solid var(--line);
}

.service-index > a {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 20px;
  padding: 26px 8px;
  border-bottom: 1px solid var(--line);
  transition: background-color 160ms var(--ease), padding-inline 160ms var(--ease);
}

.service-index > a:hover {
  background: var(--pale);
  padding-inline: 14px;
}

.service-index > a > span {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.service-index h3 {
  margin-bottom: 6px;
  font-size: clamp(20px, 2.3vw, 28px);
}

.service-index p {
  max-width: 64ch;
  margin-bottom: 0;
  color: var(--muted);
}

.service-index i {
  position: relative;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease);
}

.service-index i::after {
  position: absolute;
  top: 10px;
  left: 9px;
  width: 8px;
  height: 8px;
  border-top: 1.5px solid;
  border-right: 1.5px solid;
  content: "";
  transform: rotate(45deg);
}

.service-index a:hover i {
  color: #ffffff;
  border-color: var(--teal);
  background: var(--teal);
}

/* Process & Value grids */
.process-grid, .value-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  list-style: none;
}

.process-grid li, .value-grid article {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: transform 180ms var(--ease), border-color 180ms var(--ease);
}

.process-grid li:hover, .value-grid article:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.process-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 24px;
  border-radius: var(--radius-sm);
  background: var(--aqua);
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 700;
}

.process-grid p, .value-grid p {
  margin-top: auto;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.section--navy .value-grid article {
  border-color: rgb(255 255 255 / 12%);
  background: var(--navy-2);
  box-shadow: none;
}

.section--navy .value-grid article:hover {
  border-color: rgb(115 209 205 / 45%);
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.price-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.price-card h2 {
  margin-bottom: 10px;
  font-size: 25px;
}

.price-card > div > p:last-child {
  color: var(--muted);
  font-size: 14px;
}

.price {
  margin: 22px 0 18px;
  color: var(--navy);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.price span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
}

.price-card ul {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.price-card li {
  position: relative;
  padding: 9px 0 9px 22px;
  border-bottom: 1px solid #edf1f5;
  color: #46596b;
  font-size: 13.5px;
}

.price-card li::before {
  position: absolute;
  top: 16px;
  left: 2px;
  width: 7px;
  height: 4px;
  border-bottom: 2px solid var(--teal);
  border-left: 2px solid var(--teal);
  content: "";
  transform: rotate(-45deg);
}

.price-card .text-link {
  align-self: flex-start;
  margin-top: auto;
}

/* Statement, detail & closing layouts */
.statement-grid, .detail-grid, .close-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.statement-grid > p,
.statement-grid > div:last-child,
.detail-grid > div > p:last-child,
.close-grid > div:last-child > p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}

.feature-list, .outcome-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.feature-list li, .outcome-list li {
  position: relative;
  padding: 15px 12px 15px 28px;
  border-bottom: 1px solid var(--line);
}

.feature-list li::before, .outcome-list li::before {
  position: absolute;
  top: 23px;
  left: 4px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--teal);
  content: "";
  transform: rotate(45deg);
}

.section--navy .outcome-list {
  border-top-color: rgb(255 255 255 / 14%);
}

.section--navy .outcome-list li {
  border-bottom-color: rgb(255 255 255 / 14%);
  color: #ffffff;
}

.note {
  grid-column: 2;
  padding: 22px 24px;
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--pale);
}

.note h3 {
  font-size: 18px;
}

.note p {
  margin: 0;
  color: var(--muted);
}

.closing-section {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, var(--pale) 100%);
}

.close-grid .button-row {
  margin-top: 22px;
}

/* FAQ */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.faq-layout .section-heading {
  position: sticky;
  top: 104px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: grid;
  grid-template-columns: 1fr 24px;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  transition: color 150ms var(--ease);
}

.faq-list summary:hover {
  color: var(--teal-dark);
}

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

.faq-list summary i {
  position: relative;
  width: 20px;
  height: 20px;
}

.faq-list summary i::before, .faq-list summary i::after {
  position: absolute;
  top: 9px;
  left: 3px;
  width: 14px;
  height: 1.5px;
  background: var(--navy);
  content: "";
}

.faq-list summary i::after {
  transform: rotate(90deg);
  transition: transform 180ms var(--ease);
}

.faq-list details[open] summary i::after {
  transform: rotate(0);
}

.faq-list details > div {
  padding: 0 36px 22px 0;
}

.faq-list details p {
  margin: 0;
  color: var(--muted);
}

/* Portfolio & resources */
.work-grid, .resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.work-card, .resource-grid article {
  height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.work-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.work-card > div, .resource-grid article {
  padding: 26px;
}

.work-card h2, .resource-grid h2 {
  font-size: 25px;
}

.work-card p:not(.package-type), .resource-grid p:not(.package-type) {
  color: var(--muted);
}

.work-link, .resource-grid > a {
  display: block;
  height: 100%;
}

.empty-state {
  padding: 48px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--pale);
  text-align: center;
}

.empty-state.compact {
  padding: 32px 24px;
}

.empty-state h2 {
  font-size: 26px;
}

.empty-state p {
  max-width: 60ch;
  margin-inline: auto;
  color: var(--muted);
}

/* Forms & payment */
.form-layout, .payment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.panel-form, .invoice-form {
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.panel-form fieldset, .payment-methods {
  margin: 0 0 30px;
  padding: 0;
  border: 0;
}

.panel-form fieldset + fieldset {
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.panel-form legend, .payment-methods legend {
  width: 100%;
  margin-bottom: 20px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

label {
  display: block;
  margin-bottom: 16px;
  color: #33485a;
  font-size: 13px;
  font-weight: 600;
}

input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  width: 100%;
  min-height: 48px;
  margin-top: 6px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #ffffff;
  font-size: 15px;
  line-height: 1.4;
  transition: border-color 150ms var(--ease);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%2310253b' stroke-width='1.5'%3E%3Cpath d='m5 7 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 6px;
}

.check-grid label, .consent, .payment-methods label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-weight: 500;
  cursor: pointer;
  transition: border-color 150ms var(--ease), background-color 150ms var(--ease);
}

.check-grid label:hover, .payment-methods label:hover {
  border-color: var(--line-strong);
  background: var(--pale);
}

.check-grid input, .consent input, .payment-methods input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex: 0 0 18px;
  accent-color: var(--teal);
}

.consent {
  margin: 16px 0 22px;
  padding: 0;
  border: 0;
  color: var(--muted);
  font-size: 12.5px;
  cursor: default;
}

.consent a {
  color: var(--teal-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.form-status {
  margin: 14px 0 0;
  font-size: 13.5px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.form-status:empty {
  display: none;
}

.form-status.error {
  color: var(--danger);
}

.form-status.success {
  color: var(--success);
}

.form-aside, .payment-note {
  position: sticky;
  top: 104px;
  padding: 28px;
  border-top: 4px solid var(--teal);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  background: var(--pale);
}

.form-aside h2, .payment-note h2 {
  font-size: 26px;
}

.form-aside p, .payment-note p, .payment-note li {
  color: var(--muted);
}

.contact-details {
  margin: 22px 0;
  border-top: 1px solid var(--line);
}

.contact-details a, .contact-details p {
  display: block;
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  overflow-wrap: anywhere;
}

.contact-details a:hover {
  color: var(--teal-dark);
}

.contact-details span {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.estimate-result {
  margin-top: 24px;
  padding: 20px 22px;
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--pale);
}

.estimate-result h2 {
  margin-bottom: 8px;
  font-size: 30px;
}

.estimate-result p:last-child {
  margin-bottom: 0;
}

.invoice-form > .button {
  margin-top: 18px;
}

.invoice-details {
  margin: 18px 0;
  padding: 18px;
  border-radius: var(--radius-sm);
  background: var(--pale);
}

.invoice-details p {
  margin: 0;
}

.invoice-details strong {
  display: block;
  margin: 4px 0;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.payment-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
}

.payment-methods legend {
  margin-bottom: 10px;
  font-size: 14px;
}

.payment-methods label {
  padding: 10px 14px;
}

.text-button {
  margin: 14px 0 0 14px;
}

.payment-note ul {
  padding-left: 20px;
}

.payment-note li {
  margin-bottom: 10px;
}

.test-warning {
  padding: 12px 14px;
  border: 1px solid #e7c868;
  border-radius: var(--radius-sm);
  color: #674f00 !important;
  background: #fff8d9;
  font-weight: 600;
}

.return-panel {
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--pale);
  text-align: center;
}

.return-panel h2 {
  font-size: 32px;
}

.return-panel > p {
  color: var(--muted);
}

.status-indicator {
  display: block;
  width: 14px;
  height: 14px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: #d29d1c;
  box-shadow: 0 0 0 8px rgb(210 157 28 / 15%);
}

.return-panel[data-status="paid"] .status-indicator {
  background: var(--success);
  box-shadow: 0 0 0 8px rgb(7 107 85 / 15%);
}

.return-panel[data-status="failed"] .status-indicator {
  background: var(--danger);
  box-shadow: 0 0 0 8px rgb(166 46 53 / 15%);
}

/* Legal */
.legal-content {
  max-width: 800px;
  padding-top: 68px;
  padding-bottom: 100px;
}

.legal-content h2 {
  margin-top: 38px;
  font-size: 26px;
}

.legal-content p {
  color: #415365;
}

/* Footer */
.site-footer {
  padding: 64px 0 24px;
  color: #ffffff;
  background: var(--navy);
}

.site-footer .brand-mark b {
  background: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr repeat(3, 1fr);
  gap: clamp(28px, 4.5vw, 64px);
  padding-bottom: 52px;
}

.footer-intro p {
  max-width: 38ch;
  margin: 22px 0 0;
  color: #b7c5d1;
  font-size: 14px;
}

.footer-grid > div:not(.footer-intro) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-grid h2 {
  margin: 0 0 8px;
  color: #8ed9d5;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-grid a, .footer-grid span {
  color: #d7e0e7;
  font-size: 13.5px;
  transition: color 150ms var(--ease);
}

.footer-grid a:hover {
  color: #ffffff;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.footer-legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid #31475c;
  color: #9fb0bf;
  font-size: 12px;
}

.footer-legal > span:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.noscript {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  max-width: 420px;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #e7c868;
  border-radius: var(--radius-sm);
  background: #fff8d9;
}

/* Admin shell */
.admin-body {
  min-height: 100vh;
  background: var(--pale);
}

.admin-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.admin-login > div {
  width: min(100%, 460px);
}

.admin-login .brand {
  margin-bottom: 24px;
}

.admin-header {
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.admin-header > .wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.admin-shell {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 32px;
  padding-top: 32px;
  padding-bottom: 64px;
}

.admin-nav {
  position: sticky;
  top: 24px;
  align-self: start;
  display: flex;
  flex-direction: column;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
}

.admin-nav a {
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.admin-nav a:hover {
  color: var(--navy);
  background: var(--pale);
}

.admin-nav a[aria-current="page"] {
  color: #ffffff;
  background: var(--navy);
}

.admin-main {
  min-width: 0;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.admin-stats article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
}

.admin-stats span {
  display: block;
  font-size: 32px;
  font-weight: 700;
}

.admin-stats h2 {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}

.admin-block, .admin-editor {
  margin-top: 22px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
}

.admin-block > h2, .admin-editor > h2 {
  font-size: 23px;
}

.admin-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.admin-heading h1 {
  font-size: 36px;
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th, td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

tbody tr:hover {
  background: #f8fafc;
}

.notice {
  padding: 12px 16px;
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--aqua);
}

/* Breakpoints */
@media (max-width: 1040px) {
  .site-navigation {
    gap: 16px;
  }

  .site-navigation a {
    font-size: 12.5px;
  }

  .header-action {
    display: none;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-grid, .value-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1.5fr repeat(2, 1fr);
  }

  .footer-grid > div:last-child {
    grid-column: 2;
  }
}

@media (max-width: 820px) {
  html {
    scroll-padding-top: 76px;
  }

  .site-header, .header-inner {
    min-height: 72px;
  }

  .site-navigation {
    position: absolute;
    top: 72px;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 18px var(--gutter) 24px;
    border-bottom: 1px solid var(--line);
    background: #ffffff;
    box-shadow: var(--shadow);
  }

  .site-navigation.open {
    display: flex;
  }

  .site-navigation a {
    padding: 12px 0;
    font-size: 15px;
  }

  .site-navigation a::after {
    display: none;
  }

  .site-navigation .nav-action {
    display: block;
    margin-top: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: #ffffff;
    background: var(--teal);
    text-align: center;
  }

  .menu-button {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    padding: 44px 0 52px;
  }

  .hero-visual::before {
    width: min(72%, 340px);
  }

  .visual-frame {
    max-width: 480px;
  }

  .statement-grid, .detail-grid, .close-grid, .form-layout, .payment-layout, .faq-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .form-aside, .payment-note, .faq-layout .section-heading {
    position: static;
  }

  .note {
    grid-column: auto;
  }

  .check-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-intro {
    grid-column: 1 / -1;
  }

  .footer-grid > div:last-child {
    grid-column: auto;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-nav {
    position: static;
    flex-direction: row;
    overflow-x: auto;
  }

  .admin-nav a {
    white-space: nowrap;
  }
}

@media (max-width: 600px) {
  :root {
    --gutter: 20px;
  }

  h1 {
    font-size: clamp(36px, 11vw, 48px);
  }

  h2 {
    font-size: 28px;
  }

  .brand-name {
    max-width: 170px;
    font-size: 11.5px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .page-hero {
    padding-top: 56px;
  }

  .split-heading {
    display: block;
  }

  .split-heading .text-link {
    margin-top: 8px;
  }

  .service-index > a {
    grid-template-columns: 38px minmax(0, 1fr) 28px;
    gap: 12px;
    padding: 20px 4px;
  }

  .service-index p {
    font-size: 13.5px;
  }

  .process-grid, .value-grid, .pricing-grid, .work-grid, .resource-grid, .form-grid, .check-grid, .admin-stats {
    grid-template-columns: 1fr;
  }

  .process-grid li, .value-grid article {
    min-height: 0;
  }

  .process-grid span {
    margin-bottom: 16px;
  }

  .price-card {
    padding: 22px;
  }

  .statement-grid > p,
  .statement-grid > div:last-child,
  .detail-grid > div > p:last-child,
  .close-grid > div:last-child > p {
    font-size: 16px;
  }

  .panel-form, .invoice-form {
    padding: 20px;
  }

  .form-actions .button {
    width: 100%;
  }

  .payment-methods {
    flex-direction: column;
  }

  .text-button {
    margin-left: 0;
  }

  .empty-state {
    padding: 32px 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }

  .footer-legal {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-header .brand-name {
    display: none;
  }

  .admin-block, .admin-editor {
    padding: 18px;
  }
}

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

  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}