:root {
  --ink: #1a2430;
  --ink-soft: #3d4a5c;
  --paper: #e8eef2;
  --mist: #c5d4de;
  --sage: #5b7a6a;
  --sage-deep: #3f5c4e;
  --glow: #f2f6f8;
  --line: rgba(26, 36, 48, 0.12);
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --font-body: "Figtree", "Avenir Next", "Segoe UI", sans-serif;
  --max: 68rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--sage-deep);
  text-underline-offset: 0.15em;
}

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

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  max-width: var(--max);
  margin: 0 auto;
  left: 0;
  right: 0;
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
}

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

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

/* —— Hero: one full-bleed composition; Duo mockup is the product plane —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  grid-template-rows: 1fr;
  align-items: stretch;
  overflow: hidden;
  color: var(--ink);
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 85% 20%, rgba(91, 122, 106, 0.22), transparent 55%),
    radial-gradient(90% 70% at 10% 90%, rgba(197, 212, 222, 0.85), transparent 50%),
    linear-gradient(165deg, #dfe8ee 0%, #eef3f6 42%, #d4e0d8 100%);
  z-index: 0;
}

.hero-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -12deg,
    transparent,
    transparent 14px,
    rgba(26, 36, 48, 0.025) 14px,
    rgba(26, 36, 48, 0.025) 15px
  );
  opacity: 0.85;
}

.hero-visual {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 5.5rem 0 2rem 0;
  min-height: 100svh;
}

.hero-duo {
  width: 100%;
  height: 100%;
  max-height: 100svh;
  object-fit: cover;
  object-position: center left;
  animation: duo-in 1.1s ease-out both;
}

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

.hero-copy {
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  padding: 6.5rem 1.5rem 4rem 1.5rem;
  max-width: 36rem;
  width: 100%;
  margin: 0;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 8vw, 4.75rem);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  max-width: 12ch;
  animation: rise 0.9s ease-out both;
}

.hero-line {
  font-size: clamp(1.125rem, 2.4vw, 1.35rem);
  color: var(--ink-soft);
  max-width: 28ch;
  margin: 0 0 2rem;
  animation: rise 0.9s ease-out 0.12s both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  animation: rise 0.9s ease-out 0.22s both;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border-radius: 0.4rem;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--glow);
}

.btn-primary:hover {
  background: var(--sage-deep);
  color: var(--glow);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-secondary:hover {
  border-color: var(--ink-soft);
  color: var(--ink);
}

.btn-disabled {
  background: rgba(26, 36, 48, 0.12);
  color: var(--ink-soft);
  border-color: transparent;
  cursor: default;
  pointer-events: none;
  user-select: none;
}

.cta-note {
  margin: 1rem 0 0;
  max-width: 32ch;
  font-size: 0.95rem;
  color: var(--ink-soft);
  animation: rise 0.9s ease-out 0.28s both;
}

/* —— Content sections —— */
.section {
  padding: 4.5rem 1.5rem;
  max-width: var(--max);
  margin: 0 auto;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.section p {
  color: var(--ink-soft);
  max-width: 40rem;
  margin: 0 0 1rem;
}

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

.band {
  background: linear-gradient(180deg, #e2e9ef 0%, var(--paper) 100%);
  border-top: 1px solid var(--line);
}

.site-footer {
  padding: 2.5rem 1.5rem 3rem;
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: baseline;
  color: var(--ink-soft);
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
}

.site-footer a {
  text-decoration: none;
  margin-right: 1rem;
}

.site-footer a:last-child {
  margin-right: 0;
}

/* Inner pages */
.page {
  padding: 6rem 1.5rem 4rem;
  max-width: 42rem;
  margin: 0 auto;
}

.page h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
}

.page h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 2rem 0 0.5rem;
}

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

.page ul {
  padding-left: 1.2rem;
}

.note {
  font-size: 0.95rem;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--sage);
  background: rgba(91, 122, 106, 0.08);
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    min-height: auto;
  }

  .hero-visual {
    grid-column: 1;
    grid-row: 1;
    min-height: min(58svh, 28rem);
    padding: 4.25rem 0 0;
  }

  .hero-duo {
    max-height: min(58svh, 28rem);
    object-position: center center;
  }

  .hero-copy {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    padding: 1.75rem 1.25rem 3rem;
    max-width: none;
  }

  .site-header {
    padding-inline: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
