:root {
  --ink: #002b5b;
  --ink-soft: #3d5a73;
  --foam: #f7fbfd;
  --sea: #008fa8;
  --sea-deep: #002b5b;
  --line: rgba(0, 43, 91, 0.12);
  --max: 42rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Outfit", sans-serif;
  font-weight: 400;
  color: var(--ink);
  background:
    radial-gradient(ellipse 85% 55% at 8% -8%, #d4eef2 0%, transparent 55%),
    radial-gradient(ellipse 70% 45% at 100% 10%, #dce8f4 0%, transparent 50%),
    radial-gradient(ellipse 75% 40% at 50% 105%, #cfe8e6 0%, transparent 45%),
    linear-gradient(165deg, #f4fafb 0%, var(--foam) 50%, #eef4f7 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(1.75rem, 6vw, 3.5rem) clamp(1.15rem, 5vw, 2rem)
    clamp(1.5rem, 4vw, 2.5rem);
}

.page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.28;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath fill='none' stroke='%23008fa8' stroke-opacity='0.2' stroke-width='1' d='M0 60c20-20 40-20 60 0s40 20 60 0M0 30c20-20 40-20 60 0s40 20 60 0M0 90c20-20 40-20 60 0s40 20 60 0'/%3E%3C/svg%3E");
  background-size: 120px 120px;
  animation: drift 48s linear infinite;
}

@keyframes drift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 120px 40px;
  }
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.25rem, 6vh, 3rem) 0 clamp(2.5rem, 7vh, 4rem);
  animation: rise 0.9s ease-out both;
}

.brand-banner {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 0 clamp(1.5rem, 4vw, 2rem);
  object-fit: contain;
  object-position: left center;
}

.hero h1 {
  margin: 0 0 1rem;
  max-width: 18ch;
  font-family: "Fraunces", serif;
  font-size: clamp(1.45rem, 4.2vw, 1.85rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.lede {
  margin: 0;
  max-width: 34ch;
  font-size: clamp(1.05rem, 2.5vw, 1.15rem);
  color: var(--ink-soft);
  animation: rise 0.9s ease-out 0.12s both;
}

.product {
  margin-bottom: clamp(2.5rem, 6vh, 3.5rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  animation: rise 0.9s ease-out 0.22s both;
}

.eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sea);
}

.product h2 {
  margin: 0 0 0.5rem;
  font-family: "Fraunces", serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--sea-deep);
}

.product p:last-child {
  margin: 0;
  max-width: 36ch;
  font-size: 0.98rem;
  color: var(--ink-soft);
}

.footer {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  animation: rise 0.9s ease-out 0.32s both;
}

.footer-logo {
  display: block;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  object-fit: contain;
}

.footer p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

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

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

@media (min-width: 720px) {
  .page {
    max-width: 48rem;
  }

  .hero h1 {
    max-width: 22ch;
  }

  .lede {
    max-width: 40ch;
  }

  .footer-logo {
    width: 2.5rem;
    height: 2.5rem;
  }
}

/* Privacy policy pages (e.g. /coupapp/privacy/) */
.page--policy {
  justify-content: flex-start;
}

.policy-header {
  padding: 0 0 clamp(1.5rem, 4vw, 2.25rem);
  animation: rise 0.9s ease-out both;
}

.policy-nav {
  margin: 0 0 1rem;
}

.policy-home-link {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--sea);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.policy-home-link:hover,
.policy-home-link:focus-visible {
  border-bottom-color: var(--sea);
  outline: none;
}

.policy-brand-link {
  display: block;
  text-decoration: none;
}

.policy-brand-banner {
  margin-bottom: clamp(1.25rem, 3.5vw, 1.75rem);
}

.policy-header h1 {
  margin: 0 0 0.65rem;
  max-width: none;
  font-family: "Fraunces", serif;
  font-size: clamp(1.45rem, 4.2vw, 1.85rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.policy-effective {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.policy {
  flex: 1;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  animation: rise 0.9s ease-out 0.12s both;
}

.policy > p,
.policy section > p {
  margin: 0 0 1rem;
  max-width: none;
  font-size: 0.98rem;
  color: var(--ink-soft);
}

.policy section {
  margin: 0 0 clamp(1.75rem, 4vw, 2.25rem);
}

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

.policy h2 {
  margin: 0 0 0.75rem;
  font-family: "Fraunces", serif;
  font-size: clamp(1.15rem, 3vw, 1.3rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--sea-deep);
}

.policy ul {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.policy li {
  margin: 0 0 0.4rem;
  font-size: 0.98rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

.policy li:last-child {
  margin-bottom: 0;
}

.policy a {
  color: var(--sea);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.policy a:hover,
.policy a:focus-visible {
  color: var(--sea-deep);
  outline: none;
}

@media (min-width: 720px) {
  .page--policy {
    max-width: 48rem;
  }
}
