/* Self-hosted variable font (latin subset) — no third-party requests. */
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #060505;
  --bg-raise: #0d0a08;
  --fg: #ede8e0;
  --muted: #9b948a;
  --faint: #6d675f;
  --gold: #f5c518;
  --gold-light: #fad961;
  --ember: #f5821f;
  --red: #c1272d;
  --line: rgba(237, 232, 224, 0.09);
  --line-strong: rgba(237, 232, 224, 0.16);
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
}

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

html {
  font-size: 100%;
}

body {
  position: relative;
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover {
  color: var(--gold-light);
}

p a,
.prose a,
.site-footer a,
.form-note a {
  text-decoration: underline;
  text-decoration-color: rgba(245, 197, 24, 0.4);
  text-underline-offset: 3px;
}

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

::selection {
  background: var(--ember);
  color: #100800;
}

/* ── Type ── */
h1 {
  font-family: var(--display);
  font-weight: 340;
  font-size: clamp(2.375rem, 4.5vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 1.25rem;
  text-wrap: balance;
  background: linear-gradient(180deg, #fdfbf7 0%, #ede8e0 55%, #b6ab98 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.25rem;
}

.lede {
  max-width: 26rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.0625rem;
  text-wrap: pretty;
}

.btn-ghost {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.65rem 1.5rem;
  color: var(--gold);
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 1px solid rgba(245, 197, 24, 0.4);
  border-radius: 999px;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn-ghost:hover {
  border-color: var(--gold);
  background: rgba(245, 197, 24, 0.08);
  color: var(--gold-light);
}

/* ── Backdrop: stars + eclipse horizon ── */
.backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.eclipse {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: max(1400px, 175vw);
  aspect-ratio: 1;
  translate: 0 calc(100% - 20vh);
}

.eclipse-halo {
  position: absolute;
  inset: -22%;
  border-radius: 50%;
  background: radial-gradient(
    50% 50% at 50% 50%,
    transparent 55.5%,
    rgba(245, 130, 31, 0.22) 57.5%,
    rgba(245, 197, 24, 0.07) 62%,
    transparent 70%
  );
}

.eclipse-disc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    linear-gradient(
        180deg,
        var(--gold-light) 0%,
        rgba(245, 130, 31, 0.55) 6%,
        rgba(193, 39, 45, 0.28) 12%,
        transparent 26%
      )
      border-box;
  border: 2px solid transparent;
  box-shadow: 0 -4px 60px rgba(245, 130, 31, 0.18);
}

/* faint inner red ring, echoing the logo */
.eclipse-disc::after {
  content: "";
  position: absolute;
  inset: 1.1%;
  border-radius: 50%;
  border-top: 1px solid rgba(193, 39, 45, 0.5);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 18%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 18%);
}

.stars,
.stars::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(1px 1px at 12% 22%, rgba(237, 232, 224, 0.8) 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 9%, rgba(237, 232, 224, 0.55) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 9% 64%, rgba(250, 217, 97, 0.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 57% 14%, rgba(237, 232, 224, 0.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 95% 58%, rgba(237, 232, 224, 0.45) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 78% 8%, rgba(237, 232, 224, 0.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 27%, rgba(250, 217, 97, 0.45) 50%, transparent 51%),
    radial-gradient(1px 1px at 7% 44%, rgba(237, 232, 224, 0.4) 50%, transparent 51%),
    radial-gradient(1px 1px at 94% 47%, rgba(237, 232, 224, 0.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 49% 5%, rgba(237, 232, 224, 0.5) 50%, transparent 51%);
  opacity: 0.7;
}

.stars-b,
.stars-b::after {
  background-image: radial-gradient(1px 1px at 18% 34%, rgba(237, 232, 224, 0.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 34% 18%, rgba(237, 232, 224, 0.45) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 86% 36%, rgba(237, 232, 224, 0.55) 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 45%, rgba(250, 217, 97, 0.4) 50%, transparent 51%),
    radial-gradient(1px 1px at 83% 16%, rgba(237, 232, 224, 0.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 23% 50%, rgba(237, 232, 224, 0.35) 50%, transparent 51%);
  animation: twinkle 5s ease-in-out infinite alternate;
}

@keyframes twinkle {
  from {
    opacity: 0.25;
  }

  to {
    opacity: 0.85;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stars-b,
  .stars-b::after {
    animation: none;
  }
}

/* ── Page frame ── */
.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem var(--gutter);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--fg);
}

.site-brand:hover {
  color: var(--fg);
}

.site-brand .mark {
  flex: none;
}

.wordmark {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  white-space: nowrap;
}

.wordmark em {
  font-style: normal;
  font-weight: 400;
  color: var(--muted);
  margin-left: 0.55em;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  flex: none;
  padding: 0.5rem 1.125rem;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.8125rem;
  white-space: nowrap;
  border: 1px solid rgba(245, 197, 24, 0.4);
  border-radius: 999px;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.contact-btn:hover {
  border-color: var(--gold);
  background: rgba(245, 197, 24, 0.08);
  color: var(--gold-light);
}

@media (max-width: 34rem) {
  .wordmark em {
    display: none;
  }
}

/* ── Content ── */
.content {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 66rem;
  margin: 0 auto;
  padding: 2rem var(--gutter) 3rem;
}

.contact-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  width: 100%;
}

@media (min-width: 56rem) {
  .contact-grid {
    grid-template-columns: 1fr 1.1fr;
    gap: clamp(3rem, 7vw, 6rem);
  }
}

/* ── Form ── */
.field-row {
  display: grid;
  gap: 0.875rem;
  margin-bottom: 0.875rem;
}

@media (min-width: 32rem) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

label {
  display: block;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 0.375rem;
}

input,
select,
textarea {
  display: block;
  width: 100%;
  padding: 0.7rem 1rem;
  background: color-mix(in srgb, var(--bg-raise) 80%, transparent);
  color: var(--fg);
  font: inherit;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--ember);
  box-shadow: 0 0 0 3px rgba(245, 130, 31, 0.15);
}

select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239b948a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

textarea {
  resize: vertical;
  min-height: 4.5rem;
  height: clamp(4.5rem, 12vh, 7rem);
}

.field {
  margin-bottom: 0.875rem;
}

.optional {
  font-size: 0.75rem;
  color: var(--faint);
  font-weight: normal;
}

/* Honeypot — hidden from humans, tempting to bots */
.gotcha {
  position: absolute;
  left: -9999px;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 45%, var(--ember));
  color: #140a00;
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(245, 130, 31, 0.2);
  transition: box-shadow 0.25s ease, transform 0.25s ease, filter 0.25s ease;
}

.btn:hover {
  filter: brightness(1.06);
  box-shadow: 0 0 44px rgba(245, 130, 31, 0.4);
  transform: translateY(-1px);
}

.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-full {
  display: block;
  width: 100%;
  margin-top: 1.125rem;
}

.form-note {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.form-note.error {
  color: #e06464;
}

.notice {
  padding: 2.5rem 2rem;
  border: 1px solid rgba(245, 197, 24, 0.3);
  border-radius: 14px;
  text-align: center;
  background: color-mix(in srgb, var(--bg-raise) 80%, transparent);
}

.notice strong {
  color: var(--gold);
  font-size: 1.125rem;
}

.notice p {
  color: var(--muted);
  margin: 0.5rem 0 0;
}

/* ── Footer ── */
.site-footer {
  flex-shrink: 0;
  padding: 1.25rem var(--gutter) 1.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--faint);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--gold);
}

/* ── Entrance animation ── */
.reveal-load {
  opacity: 0;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

.reveal-load.d1 {
  animation-delay: 0.22s;
}

.reveal-load.d2 {
  animation-delay: 0.38s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-load {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* ── Services page ── */
.services-main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding: 2.5rem var(--gutter) 4rem;
}

.services-hero {
  max-width: 40rem;
  margin: 0 0 3rem;
}

.services-hero .lede {
  max-width: 40rem;
}

h2.section-title {
  font-family: var(--display);
  font-weight: 340;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin: 0 0 1.5rem;
}

.tier-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  margin-bottom: 3.5rem;
}

@media (min-width: 40rem) {
  .tier-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 68rem) {
  .tier-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.tier-card {
  position: relative;
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--accent, var(--line-strong));
  border-radius: 14px;
  background: color-mix(in srgb, var(--bg-raise) 80%, transparent);
}

.tier-card-popular {
  border-color: rgba(245, 197, 24, 0.45);
  border-top-color: var(--accent, var(--gold));
  box-shadow: 0 0 32px rgba(245, 130, 31, 0.12);
}

.tier-card-launch {
  --accent: var(--ember);
}

.tier-card-starter {
  --accent: var(--gold);
}

.tier-card-growth {
  --accent: var(--gold-light);
}

.tier-card-scale {
  --accent: color-mix(in srgb, var(--red) 65%, white 35%);
}

.tier-icon {
  display: block;
  margin-bottom: 0.85rem;
  color: var(--accent, var(--gold));
}

.tier-badge {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.2rem 0.65rem;
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 45%, var(--ember));
  color: #140a00;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
}

.tier-name {
  font-family: var(--display);
  font-weight: 340;
  font-size: 1.375rem;
  color: var(--accent, var(--fg));
  margin: 0 0 0.5rem;
}

.tier-tagline {
  color: var(--muted);
  font-size: 0.9375rem;
  margin: 0 0 1rem;
}

.tier-specs {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tier-specs li {
  padding-left: 1.1rem;
  position: relative;
  font-size: 0.875rem;
  color: #c9c2b8;
}

.tier-specs li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent, var(--gold));
}

.tier-best {
  margin: 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--faint);
}

.addons {
  margin-bottom: 3.5rem;
}

.addon-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 40rem) {
  .addon-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.addon-card {
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent, var(--line));
  border-radius: 14px;
  background: color-mix(in srgb, var(--bg-raise) 60%, transparent);
}

.addon-card-maintenance {
  --accent: var(--gold);
}

.addon-card-infra {
  --accent: var(--ember);
}

.addon-icon {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--accent, var(--gold));
}

.addon-name {
  font-family: var(--display);
  font-weight: 340;
  font-size: 1.1875rem;
  color: var(--accent, var(--fg));
  margin: 0 0 1rem;
}

.addon-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.addon-list li {
  font-size: 0.875rem;
  color: #c9c2b8;
}

.addon-list strong {
  color: var(--fg);
}

.billing-note {
  margin: 1.5rem 0 0;
  font-size: 0.8125rem;
  color: var(--faint);
}

.services-cta {
  padding: 2.75rem 2rem;
  text-align: center;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: color-mix(in srgb, var(--bg-raise) 80%, transparent);
}

.services-cta h2 {
  font-family: var(--display);
  font-weight: 340;
  font-size: 1.625rem;
  color: var(--fg);
  margin: 0 0 0.75rem;
}

.services-cta .lede {
  max-width: 32rem;
  margin: 0 auto 1.5rem;
}

/* ── Long-form pages (privacy policy) ── */
.page > .prose {
  flex: 1 0 auto;
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.prose h1 {
  font-size: 2.25rem;
}

.prose h2 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 2.5rem 0 0.5rem;
}

.prose .effective {
  color: var(--muted);
  font-size: 0.875rem;
  margin-top: 0;
}

.prose p,
.prose li {
  color: #c9c2b8;
}

.prose ul {
  padding-left: 1.25rem;
}

.prose li {
  margin: 0.25rem 0;
}

.page > footer:not(.site-footer) {
  flex-shrink: 0;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--faint);
  border-top: 1px solid var(--line);
}

.page > footer:not(.site-footer) p {
  margin: 0;
}

/* ── Skip link ── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 30;
  padding: 0.5rem 1rem;
  background: var(--gold);
  color: #140a00;
  border-radius: 4px;
}
