/*
 * Public policy and support pages: no scripts, remote fonts, cookies, or analytics.
 * They wear the landing's look in miniature: warm paper, Dayglide Display headlines,
 * a sunrise over the waves at the top and the night footer at the bottom.
 */
@font-face {
  font-family: 'Dayglide Display';
  src: url('/assets/fonts/dayglide-display-latin.woff2') format('woff2');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light dark;
  --ink: #17161f;
  --ink-soft: #454451;
  --muted: #646370;
  --paper: #f2f1ed;
  --card: #faf9f7;
  --line: #e0dee6;
  --accent: #4c44e4;
  --violet: #635bff;
  --wash: #eceaff;
  --sun: #ffb76a;
  --wave-back: #b9b2ff;
  --wave-mid: #a29aff;
  --night: #15123a;
  --night-deep: #0f0d2b;
  --night-text: #efedff;
  --night-muted: #b8b4dc;
  --display: 'Dayglide Display', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-family:
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  overflow-x: clip;
}
a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover {
  text-decoration-thickness: 2px;
}
a:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 4px;
  border-radius: 4px;
}
.skip {
  position: absolute;
  left: 20px;
  top: -100px;
  z-index: 2;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--card);
}
.skip:focus {
  top: 12px;
}
.shell {
  max-width: 1160px;
  margin: auto;
  padding: 0 32px;
}

/* Masthead */
.masthead {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
}
.brand img {
  display: block;
  width: 140px;
  height: auto;
}
.home {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgb(23 22 31 / 14%);
  border-radius: 999px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.home:hover {
  border-color: var(--violet);
  color: var(--accent);
}

/* Hero: a small sunrise over the Dayglide waves */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin-top: 4px;
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px) clamp(120px, 14vw, 168px);
  border-radius: 28px;
  background: var(--card);
  box-shadow: 0 0 0 1px rgb(40 34 90 / 5%);
}
.hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: clamp(110px, 13vw, 150px);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 150' preserveAspectRatio='none'%3E%3Cpath d='M0 62C200 10 360 96 600 58S960 6 1200 52V150H0Z' fill='%23b9b2ff' fill-opacity='.6'/%3E%3Cpath d='M0 92C220 52 380 120 620 92S980 46 1200 84V150H0Z' fill='%23a29aff' fill-opacity='.55'/%3E%3Cpath d='M0 120C240 92 420 142 640 120S1000 90 1200 112V150H0Z' fill='%23635bff'/%3E%3C/svg%3E")
    bottom / 100% 100% no-repeat;
}
.hero::before {
  content: '';
  position: absolute;
  z-index: -2;
  right: 12%;
  bottom: clamp(36px, 5vw, 60px);
  width: clamp(110px, 14vw, 180px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--sun);
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.01em;
}
h1,
h2,
h3 {
  font-family: var(--display);
  text-wrap: balance;
}
h1 {
  max-width: 16ch;
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 6.4vw, 4.4rem);
  font-weight: 780;
  line-height: 1;
  letter-spacing: -0.042em;
}
.lead {
  max-width: 54ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: 19px;
  line-height: 1.6;
}
.updated {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13.5px;
}

/* Policies */
.policy-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 28px 0 40px;
}
.policy-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 14px;
  text-decoration: none;
}
.policy-nav a:hover {
  border-color: var(--wave-back);
  color: var(--accent);
}
.policy-nav a[aria-current='page'] {
  border-color: transparent;
  background: var(--wash);
  color: var(--accent);
  font-weight: 650;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 720px) 230px;
  gap: 72px;
  align-items: start;
  padding-bottom: 88px;
}
.layout-single {
  grid-template-columns: minmax(0, 720px);
}
.content {
  min-width: 0;
}
.summary {
  margin-bottom: 36px;
  padding: 24px 28px;
  border-radius: 20px;
  background: var(--wash);
}
.summary h2 {
  margin: 0 0 10px;
  font-size: 19px;
}
.summary p,
.summary ul {
  margin: 0;
}
.summary li + li {
  margin-top: 6px;
}
.notice {
  margin: 26px 0;
  padding: 14px 18px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--wash) 60%, transparent);
  color: var(--ink-soft);
  font-size: 14.5px;
}
section {
  scroll-margin-top: 24px;
}
h2 {
  margin: 44px 0 14px;
  font-size: 25px;
  font-weight: 740;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
h3 {
  margin: 28px 0 8px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.012em;
}
p {
  margin: 0 0 16px;
}
ul,
ol {
  margin: 0 0 20px;
  padding-left: 22px;
}
li + li {
  margin-top: 8px;
}
strong {
  font-weight: 650;
}
.aside {
  position: sticky;
  top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.aside strong {
  display: block;
  margin-bottom: 12px;
}
.aside ol {
  padding: 0;
  list-style: none;
}
.aside li {
  margin: 0;
}
.aside li a {
  display: block;
  padding: 7px 0;
  color: var(--muted);
  line-height: 1.5;
  text-decoration: none;
}
.aside a:hover {
  color: var(--accent);
}
.help {
  margin-top: 44px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
}
.help h2 {
  margin: 0 0 8px;
  font-size: 21px;
}
.help p:last-child {
  margin-bottom: 0;
}
.email {
  overflow-wrap: anywhere;
}
.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}
.price-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
}
.price-card h3 {
  margin: 0 0 8px;
}
.price {
  display: block;
  font-family: var(--display);
  font-size: 32px;
  font-weight: 760;
  letter-spacing: -0.04em;
}
.price small {
  color: var(--muted);
  font-family:
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: normal;
}
.price-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* The night footer, as the landing ends */
.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px 40px;
  padding: 36px clamp(24px, 5vw, 48px) 40px;
  border-radius: 28px 28px 0 0;
  background: var(--night-deep);
  color: var(--night-muted);
  font-size: 13.5px;
}
.site-footer p {
  margin: 0;
}
.site-footer .footer-brand img {
  display: block;
  width: 124px;
  height: auto;
  margin-bottom: 12px;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 22px;
}
.site-footer a {
  color: #d6d3f5;
  text-decoration: none;
}
.site-footer a:hover {
  color: #fdfcff;
  text-decoration: underline;
}
.site-footer a:focus-visible {
  outline-color: var(--wave-back);
}

@media (max-width: 850px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .aside {
    display: none;
  }
  .site-footer {
    grid-template-columns: minmax(0, 1fr);
  }
  .site-footer nav {
    justify-content: flex-start;
  }
}
@media (max-width: 520px) {
  .shell {
    padding: 0 16px;
  }
  .masthead {
    min-height: 72px;
  }
  .brand img {
    width: 118px;
  }
  .home {
    padding: 0 14px;
    font-size: 13.5px;
  }
  .hero {
    padding-bottom: 148px;
    border-radius: 22px;
  }
  .hero::before {
    right: 9%;
    bottom: 40px;
    width: 84px;
  }
  .lead {
    font-size: 17px;
  }
  .summary,
  .help {
    padding: 20px;
  }
  .price-grid {
    grid-template-columns: 1fr;
  }
  .site-footer {
    border-radius: 22px 22px 0 0;
  }
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #efedf7;
    --ink-soft: #cdc9dc;
    --muted: #aaa5bf;
    --paper: #121019;
    --card: #1b1826;
    --line: #322d41;
    --accent: #c3b9ff;
    --wash: #262040;
    --sun: #ff9d5c;
  }
  .hero {
    box-shadow: 0 0 0 1px rgb(255 255 255 / 6%);
  }
  .home {
    border-color: rgb(255 255 255 / 18%);
  }
  .hero::after {
    opacity: 0.85;
  }
}
@media print {
  :root {
    color-scheme: light;
    --ink: #111;
    --ink-soft: #333;
    --muted: #333;
    --paper: #fff;
    --card: #fff;
    --line: #ccc;
    --accent: #333;
    --wash: #f5f5f5;
  }
  .aside,
  .policy-nav,
  .home,
  .site-footer,
  .hero::before,
  .hero::after {
    display: none;
  }
  .layout {
    display: block;
  }
  .hero {
    padding: 24px 0;
    box-shadow: none;
  }
  a {
    color: inherit;
  }
}

/* join.dayglide.ai: the email preferences page's one action. */
.action {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  margin-top: 28px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--violet);
  color: #fdfdff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.action:hover {
  background: #4a42e6;
}
.action:disabled {
  opacity: 0.7;
  cursor: wait;
}
#status:not(:empty) {
  margin-top: 18px;
}
