:root {
  --bg: #f8f7f2;
  --paper: #ffffff;
  --grape: #533b59;
  --ink: #302f2a;
  --muted: #85847b;
  --olive: #737e54;
  --line: #e6e5dc;
  --lavender: #eee9f0;
  --sage: #ecf0e4;
  --body: #797b70;
  --page: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17151a;
    --paper: #232028;
    --grape: #d2c0d6;
    --ink: #f3f0e8;
    --muted: #a39c94;
    --olive: #b4be8e;
    --line: #3a353c;
    --lavender: #3a3140;
    --sage: #2c3226;
    --body: #c5c0b6;
  }
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.65;
}

a {
  color: var(--grape);
}

.wrap,
.site-header,
.site-footer {
  width: min(var(--page), calc(100% - 48px));
  margin-inline: auto;
}

body.wide {
  --page: 1040px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--olive);
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  gap: 18px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.92rem;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  text-decoration: underline;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 .quiet {
  color: var(--grape);
}

.lede {
  margin: 0;
  max-width: 38rem;
  color: var(--body);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.08rem;
}

.meta {
  margin-top: 18px;
  color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.82rem;
}

.hero {
  display: grid;
  gap: 48px;
  padding: 48px 0 72px;
  align-items: center;
  margin: 0;
  border: 0;
  background: transparent;
}

@media (min-width: 860px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    min-height: min(72vh, 720px);
  }
}

.hero-copy > * {
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-copy > *:nth-child(1) {
  animation-delay: 0.05s;
}
.hero-copy > *:nth-child(2) {
  animation-delay: 0.16s;
}
.hero-copy > *:nth-child(3) {
  animation-delay: 0.28s;
}
.hero-copy > *:nth-child(4) {
  animation-delay: 0.4s;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.hero-glow {
  position: absolute;
  width: 78%;
  height: 78%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 35%, rgba(83, 59, 89, 0.28), transparent 58%),
    radial-gradient(circle at 70% 70%, rgba(115, 126, 84, 0.22), transparent 60%);
  filter: blur(28px);
  z-index: -1;
  animation: glow 8s ease-in-out infinite;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--grape);
  color: #fff;
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(83, 59, 89, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(83, 59, 89, 0.28);
}

@media (prefers-color-scheme: dark) {
  .btn {
    color: #17151a;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  }

  .hero-glow {
    background:
      radial-gradient(circle at 40% 35%, rgba(210, 192, 214, 0.22), transparent 58%),
      radial-gradient(circle at 70% 70%, rgba(180, 190, 142, 0.16), transparent 60%);
  }
}

.btn-secondary {
  background: transparent;
  color: var(--grape);
  border: 1px solid color-mix(in srgb, var(--grape) 45%, transparent);
  box-shadow: none;
}

.btn-secondary:hover {
  background: color-mix(in srgb, var(--grape) 10%, transparent);
  box-shadow: none;
}

.phone {
  position: relative;
  justify-self: center;
  width: min(100%, 300px);
  margin: 0;
  border: 0;
  border-radius: 36px;
  overflow: hidden;
  background: transparent;
  box-shadow:
    0 4px 8px rgba(24, 18, 22, 0.06),
    0 28px 60px rgba(24, 18, 22, 0.22);
  animation:
    rise 1.05s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both,
    float 7s ease-in-out 1.3s infinite;
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
}

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

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

@keyframes glow {
  0%,
  100% {
    opacity: 0.65;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy > *,
  .phone,
  .hero-glow {
    animation: none;
  }

  .btn:hover {
    transform: none;
  }
}

.kicker {
  margin: 0 0 10px;
  color: var(--olive);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.grid {
  display: grid;
  gap: 16px;
  padding-bottom: 56px;
}

@media (min-width: 720px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  padding: 24px 24px 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.card h2,
section h2 {
  margin: 0 0 12px;
  font-size: 1.4rem;
  font-weight: 400;
}

.card p,
section p,
section li {
  color: var(--body);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
}

.note {
  margin-bottom: 64px;
  padding: 28px;
  border-radius: 14px;
  background: var(--sage);
}

.note h2 {
  margin: 0 0 10px;
  font-size: 1.55rem;
  font-weight: 400;
}

.note p {
  margin: 0;
  color: var(--body);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.legal header {
  padding: 28px 0 20px;
}

header.legal {
  padding: 28px 0 20px;
}

.toc,
main.legal section {
  margin: 0 0 28px;
  padding: 24px 24px 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.toc p {
  margin: 0 0 10px;
}

.toc ol {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--body);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.92rem;
}

.toc a {
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

h3 {
  margin: 22px 0 8px;
  color: var(--olive);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

ul {
  margin: 0 0 16px;
  padding-left: 1.15rem;
}

li + li {
  margin-top: 8px;
}

.site-footer {
  padding: 0 0 48px;
  color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.85rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 14px;
}

.site-footer a {
  text-decoration: none;
}

main.legal {
  padding-bottom: 56px;
}
