:root {
  --ivory: #fbf6ee;
  --ivory-deep: #f3ead9;
  --champagne: #e8c992;
  --champagne-deep: #d4a85c;
  --coral: #e8a088;
  --coral-deep: #d47d68;
  --pearl-blue: #c5d9e8;
  --pearl-blue-deep: #8fb0c9;
  --sunlight: #ffe9b8;
  --ink: #3a342c;
  --ink-soft: #5c5348;
  --ink-faint: #8a7f70;
  --surface: rgba(255, 252, 247, 0.78);
  --surface-solid: #fffaf3;
  --line: rgba(212, 168, 92, 0.28);
  --shadow: 0 18px 50px rgba(90, 70, 40, 0.08);
  --radius: 1.25rem;
  --font-display: "Syne", "Avenir Next Condensed", "Segoe UI", sans-serif;
  --font-body: "Figtree", "Avenir Next", "Segoe UI", sans-serif;
  --max: 72rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 90% 60% at 10% -10%, var(--sunlight), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 0%, var(--pearl-blue), transparent 50%),
    radial-gradient(ellipse 80% 40% at 50% 100%, rgba(232, 160, 136, 0.25), transparent 55%),
    linear-gradient(180deg, #fff9f0 0%, var(--ivory) 40%, #eef4f8 100%);
  background-attachment: fixed;
  line-height: 1.65;
  min-height: 100vh;
}

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

a {
  color: var(--coral-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--ink);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}

p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--surface-solid);
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(255, 250, 243, 0.72);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #fff 0%, #f7e4c4 42%, #e8a088 100%);
  box-shadow:
    0 0 0 3px rgba(232, 201, 146, 0.35),
    0 8px 20px rgba(212, 168, 92, 0.25);
  animation: pearl-float 5s var(--ease) infinite;
}

@keyframes pearl-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.brand-text span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface-solid);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
}

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

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--surface-solid);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1.25rem 1.25rem;
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* Buttons — pearl ripples */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.45rem;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn::before,
.btn::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  transform: translate(-50%, -50%) scale(1);
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:hover::before {
  animation: ripple 1.1s var(--ease);
}

.btn:hover::after {
  animation: ripple 1.1s 0.18s var(--ease);
}

@keyframes ripple {
  0% {
    opacity: 0.7;
    width: 8px;
    height: 8px;
  }
  100% {
    opacity: 0;
    width: 180px;
    height: 180px;
  }
}

.btn-primary {
  color: #fffaf3;
  background:
    linear-gradient(135deg, var(--champagne-deep), var(--coral) 55%, #f0b090);
  box-shadow:
    0 10px 28px rgba(212, 125, 104, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-primary:hover {
  color: #fff;
}

.btn-ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

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

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Hero — full bleed */
.hero {
  position: relative;
  min-height: min(92vh, 52rem);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fffaf3;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: hero-drift 18s ease-in-out infinite alternate;
}

@keyframes hero-drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(58, 52, 44, 0.15) 0%, rgba(58, 52, 44, 0.35) 40%, rgba(40, 32, 24, 0.78) 100%),
    radial-gradient(ellipse at 20% 20%, rgba(255, 233, 184, 0.25), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 5rem 0 4rem;
  max-width: 40rem;
  animation: rise-in 0.9s var(--ease) both;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  margin: 0 0 0.75rem;
  color: #fffaf3;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
}

.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255, 250, 243, 0.9);
  margin: 0;
  max-width: 34rem;
}

.hero .btn-primary {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.hero .btn-ghost {
  color: #fffaf3;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
}

.hero .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2.25rem;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.55rem);
  margin: 0 0 0.75rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral-deep);
  margin-bottom: 0.5rem;
}

.surface {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

/* Offer preview — not a SaaS grid */
.offer-feature {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.offer-feature img {
  width: 100%;
  height: min(28rem, 70vw);
  object-fit: cover;
  border-radius: calc(var(--radius) - 4px);
}

.offer-copy h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  margin: 0 0 0rem;
}

.offer-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}

.offer-list li {
  position: relative;
  padding: 0.65rem 0 0.65rem 1.4rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

.offer-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, var(--champagne-deep));
  box-shadow: 0 0 0 3px rgba(232, 201, 146, 0.35);
}

@media (max-width: 860px) {
  .offer-feature {
    grid-template-columns: 1fr;
  }
}

/* Related offers */
.offer-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.offer-item {
  padding: 1.35rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.offer-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px rgba(90, 70, 40, 0.12);
}

.offer-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.offer-item p {
  margin: 0;
  font-size: 0.95rem;
}

@media (max-width: 860px) {
  .offer-strip {
    grid-template-columns: 1fr;
  }
}

/* Evidence */
.evidence {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.evidence blockquote {
  margin: 0;
  padding: 1.5rem;
}

.evidence p {
  font-size: 1.05rem;
  color: var(--ink);
  font-style: italic;
}

.evidence footer {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--ink-faint);
  font-style: normal;
}

@media (max-width: 860px) {
  .evidence {
    grid-template-columns: 1fr;
  }
}

/* Page hero (inner) */
.page-hero {
  padding: 3.5rem 0 2rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin: 0 0 0.75rem;
  max-width: 18ch;
}

.page-hero p {
  max-width: 40rem;
  font-size: 1.1rem;
  margin: 0;
}

/* Service / blog listings */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
}

.media-card {
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease);
}

.media-card:hover {
  transform: translateY(-4px);
}

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

.media-card .body {
  padding: 1.2rem 1.25rem 1.4rem;
}

.media-card h2,
.media-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
}

.meta {
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin-bottom: 0.4rem;
}

/* Detail layouts */
.detail-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  padding: 2.5rem 0 1rem;
}

.detail-hero img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.detail-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin: 0 0 0.75rem;
}

@media (max-width: 860px) {
  .detail-hero {
    grid-template-columns: 1fr;
  }
}

.prose {
  max-width: 42rem;
}

.prose h2 {
  font-size: 1.45rem;
  margin: 2rem 0 0.75rem;
}

.prose ul {
  padding-left: 1.15rem;
  color: var(--ink-soft);
}

.prose li {
  margin-bottom: 0.45rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.contact-panel {
  padding: 1.5rem;
}

.contact-panel dt {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 1rem;
}

.contact-panel dd {
  margin: 0.25rem 0 0;
  color: var(--ink);
}

@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Forms */
.form {
  padding: 1.5rem;
}

.form-field {
  margin-bottom: 1.1rem;
}

.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border-radius: 0.85rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  font: inherit;
  color: var(--ink);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--champagne);
  outline-offset: 1px;
}

.form-field textarea {
  min-height: 8rem;
  resize: vertical;
}

.field-error {
  display: none;
  margin-top: 0.35rem;
  color: #b5452f;
  font-size: 0.88rem;
}

.form-field.is-invalid .field-error {
  display: block;
}

.form-field.is-invalid input,
.form-field.is-invalid select,
.form-field.is-invalid textarea {
  border-color: #d47d68;
}

.form-status {
  display: none;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  font-size: 0.95rem;
}

.form-status.is-success {
  display: block;
  background: rgba(197, 217, 232, 0.55);
  color: var(--ink);
  border: 1px solid var(--pearl-blue-deep);
}

.form-status.is-error {
  display: block;
  background: rgba(232, 160, 136, 0.3);
  color: #7a3428;
  border: 1px solid var(--coral);
}

/* Outlet systems custom page */
.systems-band {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.systems-band article {
  padding: 1.5rem;
}

.systems-band h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--champagne);
}

.timeline li {
  position: relative;
  padding: 0 0 1.5rem 1.5rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -0.45rem;
  top: 0.35rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, var(--coral));
  box-shadow: 0 0 0 4px rgba(232, 160, 136, 0.25);
}

.timeline strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

@media (max-width: 700px) {
  .systems-band {
    grid-template-columns: 1fr;
  }
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.systems-process {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.cta-band {
  padding: 2rem;
  display: grid;
  gap: 1rem;
  align-items: center;
  grid-template-columns: 1.2fr auto;
}

@media (max-width: 860px) {
  .about-grid,
  .systems-process,
  .cta-band {
    grid-template-columns: 1fr;
  }
}

/* Legal */
.legal {
  padding-bottom: 4rem;
}

.legal h2 {
  font-size: 1.35rem;
  margin: 2rem 0 0.6rem;
}

.legal p,
.legal li {
  color: var(--ink-soft);
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 250, 243, 0.65);
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
}

.site-footer h2 {
  font-size: 1rem;
  margin: 0 0 0.75rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.45rem;
}

.site-footer a {
  text-decoration: none;
  color: var(--ink-soft);
}

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

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}

.footer-meta {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--ink-faint);
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  max-width: 36rem;
  margin-inline: auto;
  padding: 1.15rem 1.25rem;
  background: rgba(255, 250, 243, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(90, 70, 40, 0.18);
  display: none;
}

.cookie-banner.is-visible {
  display: block;
  animation: rise-in 0.45s var(--ease);
}

.cookie-banner p {
  margin: 0 0 0.9rem;
  font-size: 0.92rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.cookie-actions .btn {
  padding: 0.6rem 1.1rem;
  font-size: 0.9rem;
}

/* 404 */
.error-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 0;
}

.error-page h1 {
  font-size: clamp(3rem, 10vw, 6rem);
  margin: 0;
  background: linear-gradient(135deg, var(--champagne-deep), var(--coral));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}
