/*
  Sargra visual refinement
  Shape system: 16px content surfaces, 10px controls, square metadata details.
  Burgundy is used as atmospheric brand depth. Sage remains the single action accent.
*/

:root {
  --bg: #111015;
  --panel: #19171e;
  --panel2: #211e26;
  --ink: #f2f0e9;
  --muted: #bbb6ae;
  --accent: #dce8c1;
  --accent2: #c8d5ad;
  --line: #39343f;
  --line-strong: #514957;
  --burgundy: #6b0e1e;
  --burgundy-soft: #8b2638;
  --burgundy-wash: rgba(107, 14, 30, .2);
  --surface-shadow: 0 24px 70px rgba(6, 5, 8, .28);
  --shadow: var(--surface-shadow);
}

html {
  scroll-padding-top: 88px;
}

body {
  min-width: 280px;
  background:
    radial-gradient(circle at 92% 8%, rgba(107, 14, 30, .16), transparent 27rem),
    radial-gradient(circle at 8% 28%, rgba(220, 232, 193, .045), transparent 24rem),
    var(--bg);
  color: var(--ink);
  font-family: Outfit, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.03rem;
  line-height: 1.68;
}

::selection {
  background: var(--burgundy-soft);
  color: var(--ink);
}

.nav,
.wrap {
  width: min(1180px, calc(100% - 48px));
}

.site-header {
  background: rgba(17, 16, 21, .9);
  border-bottom-color: rgba(220, 232, 193, .11);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .12);
}

.nav {
  min-height: 72px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .98rem;
  letter-spacing: .01em;
}

.wordmark span {
  color: var(--accent);
  filter: drop-shadow(0 0 12px rgba(220, 232, 193, .12));
}

.links {
  gap: clamp(16px, 2vw, 27px);
  font-size: .94rem;
}

.links a {
  position: relative;
  padding: 8px 0;
  color: var(--muted);
}

.links a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: var(--accent);
  content: "";
  opacity: 0;
  transform: scaleX(.35);
  transition: opacity .2s ease, transform .2s ease;
}

.links a:hover::after,
.links a:focus-visible::after,
.links a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.menu-btn,
.btn,
.field input,
.field textarea,
.choice {
  border-radius: 10px;
}

.menu-btn {
  min-height: 44px;
  border-color: var(--line-strong);
  padding-inline: 15px;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

h1 {
  max-width: 12ch;
  font-size: clamp(2.75rem, 5.6vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -.038em;
}

h2 {
  max-width: 19ch;
  font-size: clamp(1.85rem, 3.5vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -.025em;
}

h3 {
  line-height: 1.25;
}

.eyebrow {
  width: fit-content;
  margin-bottom: 13px;
  color: var(--accent2);
  font-family: Outfit, ui-sans-serif, system-ui, sans-serif;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .035em;
  text-transform: none;
}

.lead,
.page-intro,
.sec-head p {
  max-width: 61ch;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.hero {
  min-height: min(760px, calc(100dvh - 72px));
  grid-template-columns: minmax(0, 1.04fr) minmax(380px, .96fr);
  gap: clamp(38px, 6vw, 76px);
  padding-top: clamp(36px, 6vh, 72px);
  padding-bottom: clamp(48px, 8vh, 88px);
}

.hero > div:first-child {
  position: relative;
  z-index: 1;
}

.hero .lead {
  max-width: 57ch;
  margin-top: 22px;
}

.hero h1 {
  max-width: 15ch;
  font-family: Outfit, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(3rem, 5vw, 4.7rem);
  font-weight: 620;
  letter-spacing: -.052em;
  line-height: .98;
}

.hero h1 br {
  display: none;
}

.hero-actions {
  margin-top: 30px;
}

.btn {
  min-height: 48px;
  padding: 11px 20px;
  border-color: var(--line-strong);
  font-family: Outfit, ui-sans-serif, system-ui, sans-serif;
  font-weight: 650;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: transform .2s cubic-bezier(.16, 1, .3, 1), background-color .2s ease, border-color .2s ease, color .2s ease;
}

.btn-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #15131a;
}

.btn-ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, .015);
  color: var(--ink);
}

.btn:hover,
.btn:focus-visible {
  filter: none;
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0) scale(.985);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--accent2);
  background: rgba(220, 232, 193, .055);
}

.sheet-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 500px;
  display: grid;
  align-items: end;
  padding: clamp(20px, 4vw, 38px);
  border: 1px solid rgba(220, 232, 193, .17);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(10, 9, 12, .03), rgba(10, 9, 12, .68)),
    url("../assets/sargra-cosmic-burgundy.webp") center / cover no-repeat;
  box-shadow: var(--surface-shadow);
}

.sheet-frame::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, transparent 25%, rgba(107, 14, 30, .18));
  content: "";
}

.sheet {
  padding: 25px;
  border: 1px solid rgba(220, 232, 193, .2);
  border-top: 3px solid var(--burgundy-soft);
  border-radius: 16px;
  background: rgba(19, 17, 23, .9);
  color: var(--ink);
  box-shadow: 0 20px 55px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255, 255, 255, .045);
  backdrop-filter: blur(13px);
}

.sheet .k {
  color: #a9a39a;
}

.sheet-head,
.sheet-row {
  border-color: rgba(220, 232, 193, .17);
}

.seal {
  border-color: var(--accent2);
  color: var(--accent);
}

.wrap.fade-in {
  padding-top: clamp(54px, 6.5vw, 82px);
  padding-bottom: clamp(54px, 6.5vw, 82px);
}

.specialist-support {
  padding-top: 64px !important;
}

.sec-head {
  margin-bottom: clamp(24px, 3vw, 36px);
}

.sec-head p {
  margin-top: 13px;
}

.acknowledgement,
.card,
.faq-item,
.form-section,
.price-card,
.step,
.confirmation-card {
  border-color: var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: none;
}

.specialist-grid {
  gap: 22px;
}

.specialist-card {
  min-height: 285px;
  padding: clamp(25px, 4vw, 38px);
  background:
    linear-gradient(145deg, rgba(107, 14, 30, .12), transparent 52%),
    var(--panel);
}

.specialist-card:nth-child(2) {
  background:
    linear-gradient(145deg, rgba(220, 232, 193, .045), transparent 55%),
    var(--panel2);
}

.specialist-card h3 {
  max-width: 18ch;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.service-price,
.p-name,
.p-unit,
.step-no,
.form-number,
.k,
.check {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.service-price {
  margin-top: auto;
  color: var(--accent2);
  font-size: .9rem;
}

.specialist-card .btn {
  margin-top: 10px;
}

.trust-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 18px;
}

.trust-grid .card {
  padding: 28px;
}

.trust-grid .card:first-child {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 290px;
  border-color: rgba(220, 232, 193, .22);
  background:
    linear-gradient(145deg, rgba(107, 14, 30, .16), transparent 62%),
    var(--panel2);
}

.receipt {
  padding: clamp(22px, 4vw, 34px);
  border-color: var(--line);
  border-radius: 16px;
  background: var(--panel);
}

.receipt-row {
  min-height: 52px;
  border-bottom-color: var(--line);
}

.check {
  color: var(--accent2);
  letter-spacing: .02em;
}

.pricing-grid {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.12fr) minmax(0, .9fr);
  align-items: stretch;
}

.price-card {
  padding: clamp(24px, 3vw, 32px);
}

.price-card.featured {
  position: relative;
  outline: 0;
  border-color: rgba(220, 232, 193, .34);
  background:
    linear-gradient(155deg, var(--burgundy-wash), transparent 46%),
    var(--panel2);
  box-shadow: var(--surface-shadow);
}

.price-card.featured::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: 16px 0 0 16px;
  background: var(--burgundy-soft);
  content: "";
}

.p-name {
  color: var(--accent2);
  letter-spacing: .04em;
}

.p-amount {
  margin-top: 8px;
  color: var(--ink);
  font-size: clamp(2.4rem, 4vw, 3.35rem);
}

.steps {
  gap: 0;
  border-top: 1px solid var(--line);
}

.step {
  position: relative;
  padding: 30px 30px 10px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.step + .step {
  padding-left: 30px;
  border-left: 1px solid var(--line);
}

.step-no {
  display: none;
}

.contact {
  overflow: hidden;
  padding: clamp(28px, 5vw, 48px);
  border-color: rgba(220, 232, 193, .18);
  border-radius: 16px;
  background:
    linear-gradient(125deg, rgba(107, 14, 30, .42), rgba(107, 14, 30, .08) 48%, transparent 70%),
    var(--panel2);
  box-shadow: var(--surface-shadow);
}

.contact h2 {
  max-width: 13ch;
}

.contact-details {
  align-self: center;
  padding: 7px 0;
}

.contact-row {
  border-bottom-color: rgba(220, 232, 193, .14);
}

.exclusions {
  border-top-color: var(--line);
}

footer {
  border-top-color: var(--line);
  background: rgba(11, 10, 14, .5);
  font-size: .94rem;
}

.build-hero,
.faq-hero,
.stream-hero {
  max-width: 860px;
  padding-top: clamp(44px, 6vw, 70px);
  padding-bottom: clamp(28px, 4vw, 44px);
}

.build-hero h1,
.faq-hero h1,
.stream-hero h1 {
  max-width: 16ch;
  font-size: clamp(2.55rem, 5vw, 4.8rem);
}

.build-grid,
.stream-grid {
  gap: 20px;
}

.build-grid .card,
.stream-grid .card {
  padding: clamp(24px, 3.5vw, 35px);
}

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

.faq-list {
  max-width: 900px;
  margin-inline: auto;
  padding-bottom: 44px;
}

.build-cta,
.stream-cta {
  margin-top: 22px;
  margin-bottom: 42px;
}

.support-wrap {
  padding-bottom: 46px;
}

.confirmation-page {
  padding-top: 44px;
  padding-bottom: 52px;
}

.faq-item {
  margin-bottom: 12px;
  padding: clamp(22px, 3vw, 30px);
  border-color: transparent;
  border-bottom-color: var(--line);
  border-radius: 0;
  background: transparent;
}

.faq-item h2 {
  max-width: none;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.support-form {
  max-width: 940px;
  gap: 16px;
}

.form-section,
.acknowledgement {
  padding: clamp(20px, 3vw, 28px);
}

.form-section h2,
.form-section legend {
  line-height: 1.35;
}

.field input,
.field textarea {
  border-color: var(--line-strong);
  background: #131117;
  color: var(--ink);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #8f8992;
}

.choice {
  border-color: var(--line);
  background: rgba(255, 255, 255, .018);
}

.choice:has(input:checked) {
  border-color: rgba(220, 232, 193, .52);
  background: rgba(220, 232, 193, .07);
}

.confirmation-card {
  border-top: 3px solid var(--burgundy-soft);
  background:
    linear-gradient(145deg, rgba(107, 14, 30, .15), transparent 44%),
    var(--panel);
}

.js .fade-in {
  transform: translateY(14px);
  transition: opacity .52s cubic-bezier(.16, 1, .3, 1), transform .52s cubic-bezier(.16, 1, .3, 1);
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 50px;
  }

  .hero > div:first-child {
    max-width: 760px;
  }

  .sheet-frame {
    min-height: 430px;
  }

  .pricing-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid .card:first-child {
    grid-row: auto;
    min-height: 0;
  }

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

  .step,
  .step + .step {
    padding: 25px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 860px) {
  .links {
    top: 72px;
    gap: 3px;
    padding: 12px 24px 20px;
    border-bottom-color: var(--line);
    background: rgba(17, 16, 21, .98);
    box-shadow: 0 22px 45px rgba(0, 0, 0, .28);
  }

  .links a {
    padding-inline: 2px;
  }

  .links a::after {
    display: none;
  }
}

@media (max-width: 700px) {
  .nav,
  .wrap {
    width: min(100% - 28px, 1180px);
  }

  h1 {
    max-width: 13ch;
    font-size: clamp(2.3rem, 11vw, 3.65rem);
  }

  h2 {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  .hero {
    gap: 34px;
    padding-top: 38px;
    padding-bottom: 54px;
  }

  .hero .lead {
    font-size: 1rem;
  }

  .hero-actions,
  .form-actions {
    align-items: stretch;
  }

  .hero-actions .btn {
    flex: 1 1 150px;
    padding-inline: 14px;
  }

  .sheet-frame {
    min-height: 0;
    padding: 14px;
    background-position: 64% center;
  }

  .sheet {
    padding: 20px;
  }

  .seal {
    width: 58px;
    height: 58px;
    right: 17px;
    top: 17px;
    font-size: .82rem;
  }

  .sheet-head {
    padding-right: 68px;
  }

  .wrap.fade-in {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .specialist-support {
    padding-top: 48px !important;
  }

  .specialist-card {
    min-height: 0;
  }

  .receipt {
    padding: 18px;
  }

  .receipt-row {
    gap: 10px;
  }

  .item {
    max-width: 68%;
  }

  .check {
    font-size: .72rem;
  }

  .contact {
    padding: 24px;
  }

  .build-pricing-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .links a::after,
  .btn,
  .js .fade-in {
    transition: none !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header,
  .sheet {
    backdrop-filter: none;
  }

  .site-header {
    background: var(--bg);
  }

  .sheet {
    background: var(--panel);
  }
}
