@font-face {
  font-family: Manrope;
  src: url("/fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* Tokens follow the app's "Ink & Ivory" palette. */
:root {
  color-scheme: light;
  --paper: #f5f3ee;
  --surface: #fffefa;
  --ink: #242d38;
  --muted: #56626d;
  --line: #e3dfd6;
  --line-strong: #cfcac0;
  --primary: #3b5570;
  --primary-hover: #2e465e;
  --deep: #24364b;
  --sky: #e0e7ee;
  --warm: #f1e2da;
  --sage: #dfe9e3;
  --clay: #945b49;
  --on-deep: #f5f3ee;
  --on-deep-muted: #c3cfdb;
  --on-deep-accent: #ebc6b5;
  --shadow: 36 54 75;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --radius: 28px;
  font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
}
h1,
h2,
h3,
p,
figure,
ul {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.1;
  text-wrap: balance;
  font-weight: 700;
}
h1,
h2 {
  letter-spacing: -0.04em;
}
h1 em,
h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--clay);
}
h3 {
  letter-spacing: -0.025em;
}
p {
  text-wrap: pretty;
}
a {
  color: var(--primary);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}
a:hover {
  text-decoration-thickness: 2px;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
button {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 4px;
  border-radius: 6px;
}
main:focus {
  outline: none;
}

.skip-link {
  position: fixed;
  z-index: 100;
  left: 16px;
  top: 12px;
  padding: 12px 20px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  border: 2px solid var(--primary);
  transform: translateY(-160%);
}
.skip-link:focus {
  transform: none;
}

.icon {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.wrap {
  width: min(1160px, calc(100% - 64px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.is-scrolled,
body:not(.landing) .site-header {
  border-bottom-color: var(--line);
}
.nav-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 750;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgb(var(--shadow) / 0.08);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.landing .nav-links {
  margin-inline: auto;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding-inline: 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    color 0.15s ease,
    background 0.15s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  background: color-mix(in srgb, var(--ink) 6%, transparent);
}

/* Buttons and links */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    background 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.button .icon {
  width: 19px;
  height: 19px;
  transition: transform 0.18s ease;
}
.button:hover .icon {
  transform: translateX(2px);
}
.button-small {
  min-height: 42px;
  padding-inline: 18px;
  font-size: 0.88rem;
}
.button-primary {
  background: var(--primary);
  color: #fffefa;
  box-shadow: 0 8px 20px -10px rgb(var(--shadow) / 0.7);
}
.button-primary:hover {
  background: var(--primary-hover);
  color: #fffefa;
}
.button-ghost,
.button-quiet {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--surface);
}
.button-ghost:hover,
.button-quiet:hover {
  border-color: var(--ink);
}
.button-light {
  background: #fffefa;
  color: #24364b;
}
.button-light:hover {
  background: #f1e2da;
}
.button-light:hover .icon {
  transform: none;
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 700;
  text-decoration: none;
}
.text-link .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.18s ease;
}
.text-link:hover .icon {
  transform: translateX(3px);
}

.eyebrow,
.step {
  display: inline-block;
  color: var(--clay);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.lead {
  font-size: 1.2rem;
  color: var(--muted);
}

/* Phone frame around the untouched app captures. */
.phone {
  --w: 280px;
  flex: none;
  width: var(--w);
  padding: calc(var(--w) * 0.03);
  border-radius: calc(var(--w) * 0.165);
  background: #1a222a;
  box-shadow:
    inset 0 0 0 1.5px #4b5661,
    inset 0 0 0 calc(var(--w) * 0.012) #10161b,
    0 40px 70px -30px rgb(var(--shadow) / 0.45),
    0 16px 30px -18px rgb(var(--shadow) / 0.35);
}
.phone-screen {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--w) * 0.135);
  background: #f3f2ee;
}
.phone-screen::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: calc(var(--w) * 0.026);
  left: 50%;
  width: 31%;
  height: calc(var(--w) * 0.075);
  border-radius: 999px;
  background: #0d1216;
  transform: translateX(-50%);
}
.phone-screen::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(var(--w) * 0.022);
  width: 36%;
  height: calc(var(--w) * 0.014);
  border-radius: 999px;
  background: #1a222a;
  transform: translateX(-50%);
}
.phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(var(--w) * 0.12);
  padding-inline: calc(var(--w) * 0.09) calc(var(--w) * 0.07);
  color: #1a222a;
  font-size: calc(var(--w) * 0.044);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.phone-status svg {
  width: calc(var(--w) * 0.16);
  height: calc(var(--w) * 0.036);
}

/* Hero */
.hero {
  position: relative;
  padding-top: 72px;
  text-align: center;
  background:
    radial-gradient(60% 50% at 50% 0%, color-mix(in srgb, var(--sky) 90%, transparent), transparent 70%),
    var(--paper);
}
.hero-copy {
  max-width: 820px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--muted);
}
.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4f8a6e;
  box-shadow: 0 0 0 4px #4f8a6e2e;
}
.hero h1 {
  margin-top: 28px;
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  line-height: 1.02;
}
.hero .lead {
  max-width: 600px;
  margin: 26px auto 0;
}
.hero .button-row {
  justify-content: center;
}
.hero-note {
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.85rem;
}
.hero-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-top: 72px;
  height: 560px;
  overflow: hidden;
  isolation: isolate;
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent);
  mask-image: linear-gradient(to bottom, #000 78%, transparent);
}
.hero-stage .phone-center {
  --w: 300px;
  position: relative;
  z-index: 2;
}
.hero-stage .phone-side {
  --w: 260px;
  margin-top: 64px;
}
.phone-left {
  margin-right: -56px;
  transform: rotate(-7deg);
}
.phone-right {
  margin-left: -56px;
  transform: rotate(7deg);
}
.rings {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 46%;
  translate: -50% -50%;
}
.rings span {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  border: 1px solid color-mix(in srgb, var(--primary) 16%, transparent);
  border-radius: 50%;
}
.rings span:nth-child(1) {
  width: 560px;
  height: 560px;
  background: color-mix(in srgb, var(--sky) 55%, transparent);
}
.rings span:nth-child(2) {
  width: 820px;
  height: 820px;
}
.rings span:nth-child(3) {
  width: 1080px;
  height: 1080px;
  border-color: color-mix(in srgb, var(--primary) 9%, transparent);
}

/* Moments strip */
.moments {
  border-block: 1px solid var(--line);
  background: var(--surface);
}
.moments-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-block: 26px;
}
.moments h2 {
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  font-weight: 700;
  white-space: nowrap;
}
.moment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding: 0;
  list-style: none;
}
.moment-list li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}
.moment-list .icon {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

/* Sections */
.section {
  padding-block: 120px;
}
.section-head {
  max-width: 640px;
  margin-bottom: 64px;
}
.section-head-center {
  margin-inline: auto;
  text-align: center;
}
.section-head h2 {
  margin-top: 14px;
  font-size: clamp(2.2rem, 4.4vw, 3.5rem);
}
.section-head > p:last-child:not(.eyebrow) {
  margin-top: 20px;
  color: var(--muted);
  font-size: 1.1rem;
}

/* Step features */
.feature {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: 80px;
}
.feature + .feature {
  margin-top: 96px;
}
.feature-flip .feature-copy {
  order: 2;
}
.feature-copy {
  max-width: 460px;
}
.feature-copy h3 {
  margin-top: 14px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.035em;
}
.feature-copy > p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.08rem;
}
.checks {
  display: grid;
  gap: 14px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
}
.checks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 600;
}
.checks .icon {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--primary);
}
.feature-media {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: 600px;
  padding-top: 56px;
  border-radius: 36px;
  overflow: hidden;
}
.feature-media .phone {
  --w: 300px;
}

/* This week band */
.week {
  position: relative;
  overflow: hidden;
  padding-block: 112px;
  background: var(--deep);
  color: var(--on-deep);
}
.week::before {
  content: "";
  position: absolute;
  right: -260px;
  top: 50%;
  width: 900px;
  height: 900px;
  translate: 0 -50%;
  border-radius: 50%;
  border: 1px solid #ffffff14;
  box-shadow:
    0 0 0 70px #ffffff05,
    0 0 0 140px #ffffff04;
  pointer-events: none;
}
.week-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 80px;
}
.week .step {
  color: var(--on-deep-accent);
}
.week h2 {
  margin-top: 14px;
  font-size: clamp(2.2rem, 4.4vw, 3.5rem);
}
.week h2 em {
  color: var(--on-deep-accent);
}
.week .lead {
  margin-top: 22px;
  max-width: 520px;
  color: var(--on-deep-muted);
}
.week-points {
  display: grid;
  gap: 22px;
  margin-top: 40px;
  padding: 0;
  list-style: none;
}
.week-points li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.week-points .icon {
  width: 44px;
  height: 44px;
  padding: 11px;
  border-radius: 14px;
  background: #ffffff12;
  color: var(--on-deep-accent);
}
.week-points strong {
  display: block;
  font-size: 1.02rem;
}
.week-points span {
  color: var(--on-deep-muted);
  font-size: 0.95rem;
}
.week-phone {
  --w: 310px;
  justify-self: center;
  transform: rotate(3deg);
  box-shadow:
    inset 0 0 0 1.5px #5b6773,
    inset 0 0 0 calc(var(--w) * 0.012) #10161b,
    0 50px 80px -30px #000a;
}
.week :focus-visible {
  outline-color: var(--on-deep-accent);
}

/* Feature grid */
.bento {
  display: grid;
  grid-template-columns: 1fr 1fr 0.92fr;
  gap: 20px;
}
.card {
  padding: 32px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.card h3 {
  margin-top: 18px;
  font-size: 1.3rem;
}
.card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.97rem;
}
.card-icon {
  width: 44px;
  height: 44px;
  padding: 11px;
  border-radius: 14px;
  background: var(--sky);
  color: var(--primary);
}
.card-phone {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border: 0;
}
.card-phone .card-copy {
  padding: 32px 32px 0;
}
.card-phone .card-icon {
  background: var(--surface);
}
.card-media {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: 400px;
  margin-top: auto;
  padding-top: 36px;
  overflow: hidden;
}
.card-media .phone {
  --w: 250px;
}
.tint-sky {
  background: var(--sky);
}
.tint-warm {
  background: var(--warm);
}
.tint-sage {
  background: var(--sage);
}
.bento-stack {
  display: grid;
  gap: 20px;
}
.theme-icons {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  padding: 0;
  list-style: none;
}
.theme-icons img {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  box-shadow: 0 0 0 1px rgb(var(--shadow) / 0.1);
}

/* Privacy */
.privacy-inner {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  align-items: center;
  gap: 64px;
  padding: 64px;
  border-radius: 36px;
  background: var(--sage);
}
.privacy-badge {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--surface);
  color: #496a61;
}
.privacy-badge .icon {
  width: 26px;
  height: 26px;
}
.privacy h2 {
  margin-top: 24px;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
}
.privacy h2 em {
  color: #3f6157;
}
.privacy .text-link {
  margin-top: 16px;
  color: #3f6157;
}
.privacy-points {
  display: grid;
  gap: 14px;
  padding: 0;
  list-style: none;
}
.privacy-points li {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 16px;
  padding: 22px 24px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface) 75%, transparent);
}
.privacy-points .icon {
  grid-row: span 2;
  color: #496a61;
}
.privacy-points h3 {
  font-size: 1.05rem;
}
.privacy-points p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Plans */
.plans {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 860px;
  margin-inline: auto;
}
.plan {
  padding: 40px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.plan h3 {
  font-size: 1.1rem;
  color: var(--muted);
}
.plan-price {
  margin-top: 12px;
  font-size: 2.4rem;
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.plan-sub {
  margin-top: 8px;
  color: var(--muted);
}
.plan .checks {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.plan .checks li {
  font-weight: 550;
}
.plan-prices {
  list-style: none;
  margin: 20px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  font-size: 0.95rem;
}
.plan-prices li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}
.plan-prices span {
  color: var(--muted);
}
.plan-prices strong {
  font-weight: 650;
}
.plan-save {
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--clay, #a65f47) 18%, transparent);
  color: var(--ink);
}
.plan-featured .plan-prices {
  border-color: #ffffff1f;
}
.plan-featured .plan-prices span {
  color: var(--on-deep-muted);
}
.plan-featured .plan-save {
  background: #ffffff24;
  color: var(--on-deep);
}
.plan-featured {
  background: var(--deep);
  border-color: var(--deep);
  color: var(--on-deep);
}
.plan-featured h3,
.plan-featured .plan-sub {
  color: var(--on-deep-muted);
}
.plan-featured .plan-price {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--on-deep-accent);
}
.plan-featured .checks {
  border-color: #ffffff1f;
}
.plan-featured .checks .icon {
  color: var(--on-deep-accent);
}

.plans {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1120px;
}
.plan-price span {
  font-family: inherit;
  font-style: normal;
  font-size: 1rem;
  font-weight: 550;
  letter-spacing: 0;
  color: var(--muted);
}
.plan-featured .plan-price span {
  color: var(--on-deep-muted);
}
/* Read by screen readers, not shown. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Plan comparison */
.compare {
  max-width: 1120px;
  margin: 20px auto 0;
  padding: 12px 40px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.compare-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.compare-table th,
.compare-table td {
  padding: 14px 12px;
  text-align: center;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
}
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: 0;
}
.compare-table thead th {
  position: sticky;
  top: var(--compare-top, 72px);
  z-index: 2;
  padding-block: 18px;
  background: var(--surface);
  font-size: 1.05rem;
  font-weight: 700;
  border-bottom: 1px solid var(--line-strong);
}
.compare-table .compare-corner {
  width: 46%;
}
.compare-table th[scope='row'] {
  padding-inline-start: 0;
  text-align: start;
  font-weight: 550;
}
.compare-table td {
  font-weight: 600;
  font-size: 0.95rem;
}
.compare-table td .icon {
  width: 22px;
  height: 22px;
  color: var(--primary);
}
.compare-none {
  color: var(--line-strong);
}
.compare-table .compare-plus {
  background: color-mix(in srgb, var(--primary) 8%, transparent);
}
.compare-table thead .compare-plus {
  background: color-mix(in srgb, var(--primary) 8%, var(--surface));
}
.compare-group th {
  padding: 30px 0 10px;
  text-align: start;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line-strong);
}

.plan-notes {
  max-width: 760px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}
.plan-notes p + p {
  margin-top: 10px;
}
.more-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
  padding: 0;
  list-style: none;
}
.more-features li {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.more-features h3 {
  margin-top: 16px;
  font-size: 1.12rem;
}
.more-features p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}
.tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--warm);
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 700;
  vertical-align: 1px;
}

/* FAQ */
.faq {
  padding-top: 0;
}
.faq-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.faq .section-head {
  position: sticky;
  top: 104px;
  margin: 0;
}
.questions details {
  border-bottom: 1px solid var(--line);
}
.questions details:first-child {
  border-top: 1px solid var(--line);
}
.questions summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
}
.questions summary::-webkit-details-marker {
  display: none;
}
.questions summary .icon {
  width: 32px;
  height: 32px;
  padding: 7px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.2s ease;
}
.questions details[open] summary .icon {
  transform: rotate(45deg);
}
.questions details p {
  max-width: 600px;
  padding: 0 48px 26px 0;
  color: var(--muted);
}

/* Closing */
.closing {
  padding-bottom: 120px;
}
.closing-card {
  position: relative;
  overflow: hidden;
  padding: 88px 32px;
  border-radius: 40px;
  text-align: center;
  color: var(--on-deep);
  background:
    radial-gradient(70% 90% at 50% 0%, #4d6b89, transparent 70%),
    var(--primary);
}
.closing-card img {
  margin-inline: auto;
  border-radius: 22px;
  box-shadow: 0 20px 40px -16px #0008;
}
.closing-card h2 {
  margin-top: 32px;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
}
.closing-card h2 em {
  color: var(--on-deep-accent);
}
.closing-card p {
  margin-top: 16px;
  color: #dbe4ec;
  font-size: 1.1rem;
}
.closing-card .button {
  margin-top: 32px;
}
.closing-card :focus-visible {
  outline-color: #fffefa;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 56px 32px;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
}
.site-footer p {
  margin-top: 14px;
  max-width: 280px;
  color: var(--muted);
}
.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.footer-links strong {
  margin-bottom: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--ink);
  text-decoration: none;
}
.footer-links a:hover {
  text-decoration: underline;
}
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 24px;
}

/* Languages: a menu in every footer (scripts/translate_site.py adds it). */
.language-menu {
  order: 2;
  font-size: 0.9rem;
}
.language-menu summary {
  cursor: pointer;
  list-style: none;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
}
.language-menu summary::-webkit-details-marker {
  display: none;
}
.language-menu ul {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 4px 16px;
  max-width: 640px;
}
.language-menu a {
  color: var(--muted);
  text-decoration: none;
}
.language-menu a:hover,
.language-menu a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
}

/* On translated legal pages: the English version is the one that applies. */
.translation-notice {
  max-width: 760px;
  margin: 96px auto -64px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--sky);
  color: var(--ink);
  font-size: 0.9rem;
}

/* site.js offers the visitor's own language when the site has it. */
.language-offer {
  position: fixed;
  inset: auto 16px 16px;
  z-index: 50;
  max-width: 480px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 16px;
  border-radius: 16px;
  background: var(--deep);
  color: var(--on-deep);
  box-shadow: 0 12px 32px rgb(var(--shadow) / 0.25);
}
.language-offer a {
  flex: 1;
  color: var(--on-deep);
  font-weight: 700;
  text-decoration: none;
}
.language-offer button {
  border: 0;
  background: transparent;
  color: var(--on-deep-muted);
  font-size: 1.2rem;
  line-height: 1;
  padding: 8px 10px;
  cursor: pointer;
}

[dir="rtl"] .language-offer {
  padding: 8px 16px 8px 8px;
}

/* Scroll reveal, applied by site.js only to content below the fold. */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Legal and support pages */
.legal-hero {
  padding-block: 80px 48px;
  border-bottom: 1px solid var(--line);
}
.legal-hero h1 {
  margin: 14px 0 0;
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
}
.legal-hero p {
  max-width: 720px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 1.1rem;
}
.legal-hero p.small {
  font-size: 0.88rem;
}
.legal-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 720px);
  gap: 72px;
  align-items: start;
  padding-block: 56px 112px;
}
.legal-nav {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.legal-nav strong {
  margin-bottom: 10px;
  color: var(--clay);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.legal-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}
.legal-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.legal-copy h2 {
  margin: 44px 0 14px;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  scroll-margin-top: 96px;
}
.legal-copy h2:first-child {
  margin-top: 0;
}
.legal-copy h3 {
  margin: 28px 0 10px;
  font-size: 1.08rem;
}
.legal-copy p,
.legal-copy li {
  color: var(--muted);
}
.legal-copy strong {
  color: var(--ink);
}
.legal-copy p + p {
  margin-top: 14px;
}
.legal-copy ul {
  padding-left: 22px;
  margin-top: 10px;
}
.legal-copy li {
  margin-bottom: 8px;
}
.legal-callout {
  margin: 28px 0;
  padding: 22px 26px;
  border-radius: 18px;
  background: var(--warm);
}
.legal-callout p {
  color: var(--ink);
}
.page-card {
  margin: 24px 0;
  padding: 26px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.page-card h2 {
  margin-top: 0;
}
.small {
  color: var(--muted);
  font-size: 0.88rem;
}

/* Responsive */
@media (max-width: 1040px) {
  .more-features {
    grid-template-columns: 1fr 1fr;
  }
  /* The price cards are short now, so three still fit side by side. */
  .plan {
    padding: 28px 24px;
  }
  .compare {
    padding-inline: 24px;
  }
  .feature,
  .week-inner {
    gap: 48px;
  }
  .feature-media {
    height: 540px;
  }
  .feature-media .phone {
    --w: 270px;
  }
  .bento {
    grid-template-columns: 1fr 1fr;
  }
  .bento-stack {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
  }
  .privacy-inner {
    padding: 48px;
    gap: 40px;
  }
  .faq-inner {
    gap: 48px;
  }
}

@media (max-width: 860px) {
  .landing .nav-links {
    display: none;
  }
  .landing .site-header .button-small {
    margin-left: auto;
  }
  .hero-stage {
    height: 470px;
    margin-top: 56px;
  }
  .hero-stage .phone-center {
    --w: 250px;
  }
  .hero-stage .phone-side {
    --w: 215px;
  }
  .rings span:nth-child(1) {
    width: 440px;
    height: 440px;
  }
  .moments-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .section {
    padding-block: 88px;
  }
  .section-head {
    margin-bottom: 48px;
  }
  .feature,
  .week-inner,
  .privacy-inner,
  .faq-inner {
    grid-template-columns: 1fr;
  }
  .feature + .feature {
    margin-top: 72px;
  }
  .feature-flip .feature-copy {
    order: 0;
  }
  .feature-copy {
    max-width: 560px;
  }
  .feature-media {
    height: 500px;
  }
  .week {
    padding-block: 88px;
  }
  .week-phone {
    --w: 280px;
  }
  .faq .section-head {
    position: static;
  }
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .legal-nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 20px;
  }
  .legal-nav strong {
    width: 100%;
    margin: 0;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .nav-wrap {
    min-height: 64px;
    gap: 12px;
  }
  .brand {
    font-size: 0.95rem;
  }
  .brand img {
    width: 32px;
    height: 32px;
  }
  body:not(.landing) .nav-wrap {
    flex-wrap: wrap;
    padding-block: 12px 6px;
  }
  body:not(.landing) .nav-links {
    width: 100%;
    margin-left: -12px;
  }
  body:not(.landing) .nav-links a {
    padding-inline: 12px;
    font-size: 0.85rem;
  }
  .hero {
    padding-top: 48px;
  }
  .pill {
    font-size: 0.8rem;
  }
  .lead {
    font-size: 1.08rem;
  }
  .hero .button-row {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-stage {
    height: 400px;
    margin-top: 48px;
  }
  .hero-stage .phone-center {
    --w: 220px;
  }
  .hero-stage .phone-side {
    --w: 180px;
    margin-top: 48px;
  }
  .phone-left {
    margin-right: -64px;
  }
  .phone-right {
    margin-left: -64px;
  }
  .moment-list {
    gap: 10px 20px;
  }
  .moment-list li {
    font-size: 0.9rem;
  }
  .section {
    padding-block: 72px;
  }
  .feature-media {
    height: 440px;
    padding-top: 40px;
    border-radius: 28px;
  }
  .feature-media .phone {
    --w: 240px;
  }
  .week {
    padding-block: 72px;
  }
  .week-phone {
    --w: 250px;
  }
  .bento,
  .bento-stack {
    grid-template-columns: 1fr;
  }
  .card,
  .card-phone .card-copy {
    padding: 26px;
  }
  .card-phone {
    padding: 0;
  }
  .card-phone .card-copy {
    padding-bottom: 0;
  }
  .card-media {
    height: 340px;
  }
  .card-media .phone {
    --w: 230px;
  }
  .privacy-inner {
    padding: 32px 22px;
    border-radius: 28px;
  }
  .plans,
  .more-features {
    grid-template-columns: 1fr;
  }
  .plan {
    padding: 30px;
  }
  .compare {
    padding: 4px 18px 14px;
  }
  .compare-table,
  .compare-table thead,
  .compare-table tbody {
    display: block;
  }
  .compare-table tr {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .compare-table .compare-corner {
    display: none;
  }
  /* The plan names stay in view while the list scrolls under them. */
  .compare-table thead {
    position: sticky;
    top: var(--compare-top, 65px);
    z-index: 2;
    background: var(--surface);
  }
  .compare-table thead th {
    position: static;
  }
  .compare-table th[scope='row'],
  .compare-group th {
    grid-column: 1 / -1;
  }
  .compare-table th[scope='row'] {
    padding: 16px 0 2px;
    border-bottom: 0;
  }
  .compare-table td {
    padding: 8px 6px 14px;
  }
  .questions summary {
    font-size: 1rem;
  }
  .questions details p {
    padding-right: 0;
  }
  .closing {
    padding-bottom: 72px;
  }
  .closing-card {
    padding: 64px 22px;
    border-radius: 30px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 16px;
  }
  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
  .legal-hero {
    padding-block: 52px 36px;
  }
  .legal-layout {
    padding-block: 32px 72px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #181e25;
    --surface: #212a33;
    --ink: #eef0ee;
    --muted: #b7c2cc;
    --line: #313c47;
    --line-strong: #4a5764;
    --primary: #b8cde1;
    --primary-hover: #d1e0ee;
    --deep: #111820;
    --sky: #283747;
    --warm: #3b2f2b;
    --sage: #24352f;
    --clay: #e4b7a5;
    --shadow: 0 0 0;
  }
  .button-primary,
  .button-primary:hover {
    color: #18222d;
  }
  .phone {
    box-shadow:
      inset 0 0 0 1.5px #5b6773,
      inset 0 0 0 calc(var(--w) * 0.012) #10161b,
      0 40px 70px -30px #000c;
  }
  .privacy-badge,
  .privacy-points .icon,
  .privacy h2 em,
  .privacy .text-link {
    color: #a9cabc;
  }
  .closing-card {
    background:
      radial-gradient(70% 90% at 50% 0%, #3b5570, transparent 70%),
      #24364b;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Chinese, Japanese and Korean have no spaces to wrap at: balance headlines
   so a line doesn't end with one character. */
:is(:lang(ja), :lang(zh), :lang(ko)) :is(h1, h2, h3) {
  text-wrap: balance;
  line-break: strict;
  word-break: auto-phrase;
}
