/*
 * Potty Plan website: homepage, guides, legal pages. Same tokens and fonts as the app (src/styles/app.css).
 * Spacing steps: 4 8 12 16 24 32 48 64 96. Motion lives at the end of this file and in site.js.
 */

@font-face {
  font-family: "Inter";
  src: url("/site/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/site/fonts/nunito-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/site/fonts/nunito-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

:root {
  --bg: #f4f7f6;
  --surface: #ffffff;
  --text: #1f2a2e;
  --text-2: #5b6b70;
  --line: #dce5e2;
  --line-strong: #c9d4d1;
  --teal: #2f7d74;
  --teal-press: #286b63;
  --on-teal: #ffffff;
  --teal-ink: #235e57;
  --teal-light: #e6f2f0;
  --deep: #1f4f4a;
  --deep-text: #d2e6e2;
  --sun: #f2b544;
  --sun-press: #e3a532;
  --on-sun: #1f2a2e;
  --warn-bg: #fcede8;
  --warn-ink: #5e2716;
  --shadow: 0 24px 48px -28px rgba(31, 79, 74, 0.5);
  --shadow-soft: 0 12px 28px -18px rgba(31, 79, 74, 0.45);
  --phone-edge: #1f2a2e;
  --font-head: "Nunito", ui-rounded, system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101a1b;
    --surface: #182627;
    --text: #e6eeec;
    --text-2: #9cb0ac;
    --line: #273839;
    --line-strong: #36494a;
    --teal: #5bbfb2;
    --teal-press: #4faea2;
    --on-teal: #0d2523;
    --teal-ink: #93d8ce;
    --teal-light: #1c3936;
    --deep: #17403c;
    --deep-text: #c3dcd7;
    --sun-press: #e8aa36;
    --warn-bg: #36221b;
    --warn-ink: #f6cdbd;
    --shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.8);
    --shadow-soft: 0 12px 28px -18px rgba(0, 0, 0, 0.7);
    --phone-edge: #0a1213;
    color-scheme: dark;
  }
  /* The dark phone frame needs an edge to stand out from the dark page. */
  .phone {
    outline: 1px solid var(--line-strong);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--teal-ink);
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 800;
  margin: 0 0 16px;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 7.2vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(2rem, 4.6vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.005em;
}

p {
  margin: 0 0 16px;
}

q {
  quotes: "“" "”";
}

:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
  border-radius: 8px;
}

svg {
  flex: none;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 700px) {
  .wrap {
    padding: 0 32px;
  }
}

.small {
  font-size: 0.9rem;
  color: var(--text-2);
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 50;
  background: var(--surface);
  padding: 8px 14px;
  border-radius: 10px;
}

.skip:focus {
  left: 8px;
}

.kicker {
  font-weight: 600;
  color: var(--teal-ink);
  margin-bottom: 16px;
}

.lede {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--text-2);
}

.section-head {
  max-width: 620px;
  margin-bottom: 48px;
}

.section-head p {
  font-size: 1.12rem;
  color: var(--text-2);
  margin: 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 0;
  font: 800 1.02rem/1 var(--font-head);
  letter-spacing: 0.005em;
  text-decoration: none;
  transition: background-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease-out);
}

.btn--primary {
  background: var(--sun);
  color: var(--on-sun);
  box-shadow: 0 10px 22px -12px rgba(176, 116, 8, 0.85);
}

.btn--primary:hover {
  background: var(--sun-press);
  transform: translateY(-1px);
}

.btn--primary:active {
  transform: translateY(1px);
}

.btn--quiet {
  color: var(--text);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}

.btn--quiet:hover {
  box-shadow: inset 0 0 0 1.5px var(--teal);
}

.btn--big {
  min-height: 58px;
  padding: 0 32px;
  font-size: 1.12rem;
}

.btn--small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.95rem;
}

.btn--block {
  display: flex;
  width: 100%;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  text-decoration: none;
}

.link svg {
  width: 18px;
  height: 18px;
}

.reassure {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 16px 0 0;
  font-size: 0.92rem;
  color: var(--text-2);
}

.reassure span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.reassure svg {
  width: 18px;
  height: 18px;
  color: var(--teal);
}

/* ---------- Header ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, 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.3s;
}

.top.is-scrolled {
  border-bottom-color: var(--line);
}

.top__in {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font: 800 1.15rem var(--font-head);
}

.logo__mark {
  width: 32px;
  height: 32px;
}

.top__nav {
  display: none;
  gap: 28px;
  margin-left: 24px;
}

.top__nav a,
.top__signin {
  color: var(--text-2);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.top__nav a:hover,
.top__signin:hover {
  color: var(--text);
}

.top__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

@media (min-width: 920px) {
  .top__nav {
    display: flex;
  }
}

@media (max-width: 400px) {
  .top__in,
  .top__actions {
    gap: 12px;
  }
  .top .logo {
    font-size: 1.05rem;
  }
}

@media (max-width: 340px) {
  .top .logo span {
    display: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding: 48px 0 72px;
  overflow: hidden;
}

.hero__in {
  display: grid;
  gap: 56px;
  align-items: center;
}

.hero .lede {
  max-width: 33ch;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

@media (max-width: 520px) {
  .hero__cta .btn {
    flex: 1 1 100%;
  }
}

.hero__art {
  position: relative;
  justify-self: center;
  width: min(300px, 76vw);
}

/* One soft disc behind the phone, as on the product images. */
.hero__art::before {
  content: "";
  position: absolute;
  width: 150%;
  aspect-ratio: 1;
  left: -25%;
  top: 6%;
  border-radius: 50%;
  background: var(--teal-light);
  z-index: -1;
}

.phone {
  margin: 0;
  border: 9px solid var(--phone-edge);
  border-radius: 42px;
  overflow: hidden;
  background: var(--phone-edge);
  box-shadow: var(--shadow);
}

.phone img {
  border-radius: 33px;
  width: 100%;
}

.bubble {
  position: absolute;
  display: grid;
  gap: 2px;
  padding: 12px 16px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  font-size: 0.84rem;
  line-height: 1.35;
  max-width: 220px;
}

.bubble strong {
  font: 800 0.98rem var(--font-head);
}

.bubble span {
  color: var(--text-2);
}

/* Beside the phone on wide screens; on phones only the lower one fits without covering the timer. */
.bubble--a {
  display: none;
  top: 9%;
  right: -44%;
}

.bubble--b {
  bottom: 12%;
  right: -8%;
}

@media (min-width: 920px) {
  .hero {
    padding: 72px 0 104px;
  }
  .hero__in {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 64px;
  }
  .hero__art {
    width: 330px;
  }
  .bubble--a {
    display: grid;
  }
  .bubble--b {
    right: auto;
    left: -34%;
    bottom: 16%;
  }
}

/* ---------- Trust ---------- */

.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.trust__in {
  list-style: none;
  margin: 0 auto;
  display: grid;
  padding-top: 8px;
  padding-bottom: 8px;
}

.trust li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.45;
}

.trust li + li {
  border-top: 1px solid var(--line);
}

.trust strong {
  display: block;
  color: var(--text);
  font-weight: 600;
}

.trust svg {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  color: var(--teal);
}

@media (min-width: 820px) {
  .trust__in {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
  .trust li + li {
    border-top: 0;
  }
}

/* ---------- Problem ---------- */

.problem {
  padding: 96px 0;
}

.problem__big {
  font: 700 clamp(1.6rem, 3.8vw, 2.5rem) / 1.3 var(--font-head);
  letter-spacing: -0.012em;
  max-width: 30ch;
  margin-bottom: 24px;
}

.problem__answer {
  font-size: 1.2rem;
  color: var(--teal-ink);
  font-weight: 500;
  max-width: 44ch;
  margin: 0;
}

/* ---------- Journey: the day-by-day path ---------- */

.journey {
  background: var(--surface);
  padding: 96px 0;
}

.journey__in {
  display: grid;
  gap: 16px;
}

.journey__head p {
  font-size: 1.12rem;
  color: var(--text-2);
}

.path {
  position: relative;
  max-width: 620px;
  --p: 0;
}

.path__track {
  position: absolute;
  left: 13px;
  top: 10px;
  bottom: 44px;
  width: 4px;
  border-radius: 4px;
  background: repeating-linear-gradient(to bottom, var(--line-strong) 0 8px, transparent 8px 16px);
}

.path__fill {
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: var(--teal);
  transform: scaleY(var(--p));
  transform-origin: top;
}

.path__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.stop {
  position: relative;
  padding: 0 0 48px 56px;
}

.stop:last-child {
  padding-bottom: 0;
}

.stop__dot {
  position: absolute;
  left: 0;
  top: 2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: inset 0 0 0 3px var(--line-strong);
  transition: box-shadow 0.35s, background-color 0.35s;
}

.stop__dot::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: var(--sun);
  transform: scale(0);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stop.is-on .stop__dot {
  background: var(--teal);
  box-shadow: inset 0 0 0 3px var(--teal), 0 0 0 6px color-mix(in srgb, var(--teal) 18%, transparent);
}

.stop.is-on .stop__dot::after {
  transform: scale(1);
}

.stop__when {
  font-weight: 600;
  color: var(--teal-ink);
  margin-bottom: 4px;
}

.stop h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.stop p {
  color: var(--text-2);
}

.stop__rhythm {
  display: inline-block;
  margin: 4px 0 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--teal-light);
  color: var(--teal-ink) !important;
  font-size: 0.88rem;
  font-weight: 600;
}

.fork {
  list-style: none;
  margin: 4px 0 16px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.fork li {
  display: grid;
  gap: 2px;
  padding: 10px 14px;
  border-left: 3px solid var(--sun);
  background: var(--bg);
  border-radius: 0 12px 12px 0;
  font-size: 0.95rem;
}

.fork span {
  color: var(--text-2);
}

@media (min-width: 920px) {
  .journey__in {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 64px;
    align-items: start;
  }
  .journey__head {
    position: sticky;
    top: 120px;
  }
}

/* ---------- What's inside ---------- */

.inside {
  padding: 96px 0;
}

.feature {
  display: grid;
  gap: 32px;
  align-items: center;
  margin: 0 auto 96px;
  max-width: 980px;
}

.feature:last-child {
  margin-bottom: 0;
}

.feature .phone {
  width: min(270px, 70vw);
  justify-self: center;
}

.feature__text p {
  color: var(--text-2);
  font-size: 1.05rem;
}

.feature__text h3 {
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  letter-spacing: -0.01em;
}

.feature q {
  color: var(--text);
  font-weight: 500;
}

@media (min-width: 820px) {
  .feature {
    grid-template-columns: 300px 1fr;
    gap: 80px;
  }
  .feature--flip {
    grid-template-columns: 1fr 300px;
  }
  .feature--flip .phone {
    order: 2;
  }
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: grid;
  gap: 10px;
}

.ticks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.ticks svg {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: var(--teal);
}

/* ---------- Pricing ---------- */

.pricing {
  background: var(--surface);
  padding: 96px 0;
}

.pricing__in {
  display: grid;
  gap: 0;
}

.price {
  max-width: 520px;
  width: 100%;
  border-radius: 28px;
  padding: 32px 28px;
  background: var(--bg);
  box-shadow: inset 0 0 0 2px var(--teal), var(--shadow);
}

.price__top {
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.price__name {
  font: 800 1.15rem var(--font-head);
  margin-bottom: 8px;
}

.price__amount {
  font: 700 1.1rem var(--font-head);
  color: var(--text-2);
  margin: 0 0 8px;
}

.price__amount span {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-right: 6px;
}

.price__sub {
  color: var(--text-2);
  margin: 0;
}

.price .ticks {
  margin-bottom: 32px;
}

.price__secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 16px 0 0;
  font-size: 0.86rem;
  color: var(--text-2);
}

.price__secure svg {
  width: 16px;
  height: 16px;
}

@media (min-width: 920px) {
  .pricing__in {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
  }
  .pricing .section-head {
    margin-bottom: 0;
  }
  .price {
    justify-self: end;
    padding: 40px 40px 32px;
  }
}

/* ---------- Guarantee: the one loud block ---------- */

.guarantee {
  background: var(--deep);
  color: var(--deep-text);
  padding: 88px 0;
  overflow: hidden;
}

.guarantee__in {
  display: grid;
  gap: 40px;
  align-items: center;
}

.guarantee__seal {
  justify-self: start;
  width: 168px;
}

.seal {
  width: 100%;
  height: auto;
  transform: rotate(-8deg);
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.3));
}

.seal__edge,
.seal__face {
  fill: #f2b544;
}

.seal__line {
  fill: none;
  stroke: #1f4f4a;
  stroke-width: 1.5;
  stroke-dasharray: 3 4;
  opacity: 0.55;
}

.seal__ring {
  font: 800 9.6px var(--font-head);
  fill: #1f4f4a;
}

.seal__num {
  font: 800 46px var(--font-head);
  fill: #1f4f4a;
  letter-spacing: -0.02em;
}

.seal__days {
  font: 800 13px var(--font-head);
  letter-spacing: 0.22em;
  fill: #1f4f4a;
}

.guarantee h2 {
  color: #fff;
  max-width: 18ch;
}

.guarantee p {
  font-size: 1.12rem;
  max-width: 52ch;
}

.guarantee a {
  color: #fff;
}

.guarantee__sign {
  font: 700 1.05rem var(--font-head);
  color: #fff;
}

.guarantee__sign::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  margin-right: 12px;
  vertical-align: middle;
  background: var(--sun);
}

.guarantee__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 32px;
}

@media (min-width: 820px) {
  .guarantee {
    padding: 112px 0;
  }
  .guarantee__in {
    grid-template-columns: 260px 1fr;
    gap: 64px;
  }
  .guarantee__seal {
    width: 240px;
    justify-self: center;
  }
}

/* ---------- Free guides ---------- */

.free {
  padding: 96px 0;
}

.rows {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  max-width: 820px;
  border-top: 1px solid var(--line);
}

.rows li {
  border-bottom: 1px solid var(--line);
}

.rows a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  align-items: center;
  padding: 20px 4px;
  color: var(--text);
  text-decoration: none;
}

.rows__tag {
  grid-column: 1;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--teal-ink);
}

.rows strong {
  grid-column: 1;
  font: 700 1.2rem/1.3 var(--font-head);
}

.rows svg {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 22px;
  height: 22px;
  color: var(--text-2);
  transition: transform 0.25s var(--ease-out), color 0.25s;
}

.rows a:hover svg {
  transform: translateX(4px);
  color: var(--teal);
}

/* ---------- FAQ ---------- */

.faq {
  background: var(--surface);
  padding: 96px 0;
}

.faq__in {
  display: grid;
}

.faq__list {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  font: 700 1.12rem/1.35 var(--font-head);
}

.faq summary::-webkit-details-marker {
  display: none;
}

/* A plus that turns into a minus. */
.faq summary span {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--teal-light);
}

.faq summary span::before,
.faq summary span::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  top: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--teal-ink);
  transition: transform 0.3s var(--ease-out);
}

.faq summary span::after {
  transform: rotate(90deg);
}

.faq details[open] summary span::after {
  transform: rotate(0deg);
}

.faq details p {
  color: var(--text-2);
  padding: 0 48px 24px 0;
  margin: 0;
}

@media (min-width: 920px) {
  .faq__in {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 64px;
    align-items: start;
  }
  .faq .section-head {
    position: sticky;
    top: 120px;
  }
}

/* ---------- Final ---------- */

.final {
  padding: 104px 0 112px;
  text-align: center;
}

.final__in {
  max-width: 680px;
}

.final p {
  color: var(--text-2);
  font-size: 1.12rem;
}

.final .btn {
  margin-top: 16px;
}

.final .reassure {
  justify-content: center;
}

.final .small {
  margin-top: 24px;
}

/* ---------- Guides and legal pages ---------- */

.guide,
.legal {
  max-width: 780px;
  padding-top: 40px;
  padding-bottom: 80px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-2);
  margin-bottom: 32px;
}

.crumbs a {
  color: var(--text-2);
}

.eyebrow {
  font-weight: 600;
  color: var(--teal-ink);
  margin-bottom: 12px;
}

.guide h1,
.legal h1 {
  font-size: clamp(2.1rem, 6vw, 3rem);
  line-height: 1.1;
}

.answer {
  margin: 24px 0 32px;
}

.answer__q {
  font: 700 1.1rem var(--font-head);
  margin-bottom: 8px;
}

.guide .lede {
  color: var(--text);
  opacity: 0.86;
}

.guide h2 {
  font-size: 1.45rem;
}

.guide__card,
.flags,
.say > div,
.plug {
  border-radius: 22px;
  padding: 24px;
  margin-bottom: 16px;
}

.guide__card {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: s;
  display: grid;
  gap: 16px;
}

.steps li {
  counter-increment: s;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
}

.steps li::before {
  content: counter(s);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--on-teal);
  font: 800 1rem var(--font-head);
}

.say {
  display: grid;
  gap: 0 16px;
}

@media (min-width: 640px) {
  .say {
    grid-template-columns: 1fr 1fr;
  }
}

.say__do {
  background: var(--teal-light);
}

.say__dont {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.say h2 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.say p {
  margin: 0;
  font-size: 1.08rem;
}

.flags {
  background: var(--warn-bg);
  color: var(--warn-ink);
}

.flags h2 {
  font-size: 1.15rem;
  color: inherit;
}

.flags ul {
  margin: 0;
  padding-left: 20px;
}

.plug {
  background: var(--deep);
  color: var(--deep-text);
  margin: 40px 0;
  padding: 32px 28px;
}

.plug h2 {
  color: #fff;
  font-size: 1.6rem;
}

.plug .btn {
  margin-top: 8px;
}

.plug .reassure {
  color: var(--deep-text);
}

.plug .reassure svg {
  color: var(--sun);
}

.more h2 {
  margin-bottom: 16px;
}

.cards {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  gap: 12px;
}

@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 20px 22px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text);
  text-decoration: none;
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: inset 0 0 0 2px var(--teal);
}

.card strong {
  font: 700 1.1rem/1.3 var(--font-head);
}

.card__tag {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal-ink);
}

.card__more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  padding-top: 4px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--teal-ink);
}

.card__more svg {
  width: 16px;
  height: 16px;
}

.note {
  font-size: 0.88rem;
  color: var(--text-2);
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.legal h2 {
  font-size: 1.3rem;
  margin-top: 32px;
}

.legal .updated {
  color: var(--text-2);
  font-size: 0.92rem;
}

.legal .summary {
  background: var(--teal-light);
  border-radius: 18px;
  padding: 20px 24px;
  margin: 24px 0 8px;
}

.legal .summary h2 {
  margin-top: 0;
  font-size: 1.1rem;
}

.legal .summary ul {
  margin: 0;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.legal th,
.legal td {
  border: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.legal th {
  background: var(--teal-light);
}

/* Phones: each row of the data table becomes a card (What, then Why and How long). */
@media (max-width: 640px) {
  .legal table,
  .legal tbody,
  .legal tr,
  .legal td {
    display: block;
    width: auto !important;
  }
  .legal tr:first-child {
    display: none;
  }
  .legal tr {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 10px;
    background: var(--surface);
  }
  .legal td {
    border: 0;
    padding: 4px 0;
  }
  .legal td:nth-child(2)::before,
  .legal td:nth-child(3)::before {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--teal-ink);
    margin-top: 6px;
  }
  .legal td:nth-child(2)::before {
    content: "Why";
  }
  .legal td:nth-child(3)::before {
    content: "How long";
  }
}

.legal .contact {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--text-2);
}

/* ---------- Footer ---------- */

.foot {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
  font-size: 0.94rem;
}

.foot__in {
  display: grid;
  gap: 40px;
}

.foot__brand p {
  color: var(--text-2);
  max-width: 38ch;
  margin-top: 16px;
}

.foot__links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 24px;
}

/* The email address needs the full width on phones. */
.foot__links div:last-child {
  grid-column: 1 / -1;
}

.foot__links h2 {
  font: 700 0.98rem var(--font-head);
  margin-bottom: 12px;
}

.foot__links a {
  display: block;
  color: var(--text-2);
  text-decoration: none;
  padding: 4px 0;
}

.foot__links a:hover {
  color: var(--text);
}

.foot__legal {
  margin-top: 40px;
  color: var(--text-2);
  font-size: 0.85rem;
}

@media (min-width: 860px) {
  .foot__in {
    grid-template-columns: 1fr 1.6fr;
  }
  .foot__links {
    grid-template-columns: repeat(3, 1fr);
  }
  .foot__links div:last-child {
    grid-column: auto;
  }
}

/* ---------- Sticky bar (phones) ---------- */

.sticky {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 8px 8px 18px;
  border-radius: 999px;
  background: var(--deep);
  color: #fff;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.5);
  font-size: 0.84rem;
  font-weight: 500;
  transition: transform 0.4s var(--ease-out), opacity 0.3s;
}

.sticky span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1.25;
}

.sticky svg {
  width: 18px;
  height: 18px;
  color: var(--sun);
}

.sticky .btn {
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.98rem;
}

.sticky[hidden] {
  display: flex;
  transform: translateY(140%);
  opacity: 0;
  pointer-events: none;
}

@media (min-width: 920px) {
  .sticky {
    display: none !important;
  }
}

/* ---------- Motion ----------
 * Only with JavaScript on (html.js), so the page reads fine without it. One orchestrated hero
 * moment on load; on scroll, the day path draws itself, phones settle and the seal stamps down.
 */

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.js [data-words] .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.45em);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: calc(120ms + var(--i) * 55ms);
}

.js [data-words].is-in .w {
  opacity: 1;
  transform: none;
}

.js [data-rise],
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.js [data-rise].is-in,
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

.js [data-hero-art] .phone {
  opacity: 0;
  transform: translateY(48px) rotate(2deg);
  transition: opacity 1.1s var(--ease-out) 0.35s, transform 1.3s var(--ease-out) 0.35s;
}

.js [data-hero-art] .bubble {
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  transition: opacity 0.6s var(--ease-out), transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.js [data-hero-art] .bubble--a {
  transition-delay: 1s;
}

.js [data-hero-art] .bubble--b {
  transition-delay: 1.25s;
}

.js [data-hero-art].is-in .phone,
.js [data-hero-art].is-in .bubble {
  opacity: 1;
  transform: none;
}

.js .feature .phone {
  opacity: 0;
  transform: translateX(-32px) rotate(-3deg);
  transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out);
}

.js .feature--flip .phone {
  transform: translateX(32px) rotate(3deg);
}

.js .feature.is-in .phone {
  opacity: 1;
  transform: none;
}

.js .stop > :not(.stop__dot) {
  opacity: 0.4;
  transition: opacity 0.5s;
}

.js .stop.is-on > :not(.stop__dot) {
  opacity: 1;
}

.js [data-stamp] .seal {
  opacity: 0;
  transform: scale(1.7) rotate(-34deg);
  transition: opacity 0.25s ease-out, transform 0.65s cubic-bezier(0.34, 1.5, 0.64, 1);
}

.js [data-stamp].is-in .seal {
  opacity: 1;
  transform: rotate(-8deg);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js [data-words] .w,
  .js [data-rise],
  .js [data-reveal],
  .js [data-hero-art] .phone,
  .js [data-hero-art] .bubble,
  .js .feature .phone,
  .js .stop > :not(.stop__dot),
  .js [data-stamp] .seal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .js [data-stamp] .seal {
    transform: rotate(-8deg);
  }
}
