/* Dues launch site. Tokens from docs/site/BRIEF.md. */
:root {
  /* light */
  --paper: #f6f5f1;
  --paper-sunk: #eeece6;
  --card: #ffffff;
  --ink: #1b1f24;
  --ink-muted: #59606b;
  --rule: #dfdcd3;
  --teal: #0b6b58;
  --teal-deep: #08594a;
  --teal-soft: #e1f1ec;
  --on-teal: #ffffff;
  --hero-a: #0b6b58;
  --hero-b: #0d5b6f;
  --on-hero: #ffffff;
  --on-hero-muted: rgba(255, 255, 255, 0.8);
  --renewal: #2453c2;
  --renewal-soft: #e5ecfb;
  --trial: #8a3fc0;
  --trial-soft: #f3e9fb;
  --soon: #8f4a00;
  --soon-soft: #fdf0dc;
  --focus: #2453c2;
  --shadow-tint: 27, 31, 36;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --header-h: 64px;
  --pad-x: 24px;
  --shadow: 0 1px 2px rgba(var(--shadow-tint), 0.06), 0 8px 24px -8px rgba(var(--shadow-tint), 0.12);
  --shadow-lg: 0 1px 2px rgba(var(--shadow-tint), 0.06), 0 30px 60px -20px rgba(var(--shadow-tint), 0.22);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1215;
    --paper-sunk: #161a1f;
    --card: #1a1f25;
    --ink: #eceef1;
    --ink-muted: #a4acb8;
    --rule: #2c333c;
    --teal: #4fd0b0;
    --teal-deep: #74ddc2;
    --teal-soft: #143a32;
    --on-teal: #06221b;
    --hero-a: #134a3f;
    --hero-b: #143c4d;
    --on-hero: #eefaf6;
    --on-hero-muted: rgba(238, 250, 246, 0.8);
    --renewal: #8eb0ff;
    --renewal-soft: #1b2a4a;
    --trial: #d4a6ff;
    --trial-soft: #34214a;
    --soon: #f6bf62;
    --soon-soft: #3a2a10;
    --focus: #8eb0ff;
    --shadow-tint: 0, 0, 0;
  }
}

/* Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: clip;
}
h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
}
.defs {
  position: absolute;
}
.num {
  font-variant-numeric: tabular-nums lining-nums;
}
.muted {
  color: var(--ink-muted);
}
.small {
  font-size: 0.8125rem;
}
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow);
}
.skip:focus {
  top: 10px;
}

.wrap {
  width: 100%;
  max-width: calc(1120px + 2 * var(--pad-x));
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.band {
  padding: clamp(4rem, 10vw, 8rem) 0;
  background: var(--paper);
}
.band-sunk {
  background: var(--paper-sunk);
}
.display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 50;
}
.headline {
  font-size: clamp(2.5rem, 6vw + 1rem, 5rem);
  line-height: 1.02;
  font-variation-settings:
    "opsz" 144,
    "SOFT" 50;
}
.section-title {
  font-size: clamp(1.75rem, 3vw + 1rem, 2.75rem);
  line-height: 1.1;
  max-width: 22ch;
}
@media (min-width: 800px) {
  .section-title {
    font-variation-settings:
      "opsz" 144,
      "SOFT" 50;
  }
}
.intro {
  max-width: 52ch;
  margin-top: 16px;
}
.intro-wide {
  max-width: 56ch;
}
.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 150ms var(--ease);
}
.btn:active {
  transform: scale(0.97);
}
.btn-primary {
  background: var(--teal);
  color: var(--on-teal);
}
.btn-primary:hover {
  background: var(--teal-deep);
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn-secondary:hover {
  border-color: var(--ink-muted);
  background: var(--card);
}
.btn-lg {
  min-height: 52px;
  padding: 0 24px;
}
.btn svg {
  flex: none;
}
@media (prefers-reduced-motion: no-preference) {
  .btn-primary:hover svg {
    transform: translateX(2px);
  }
  .btn svg {
    transition: transform 150ms var(--ease);
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--paper);
  opacity: 0.8;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.site-header.is-scrolled {
  border-bottom-color: var(--rule);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
  text-decoration: none;
  color: var(--ink);
  border-radius: 10px;
}
.brand-tile {
  flex: none;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variation-settings: "SOFT" 50;
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  transition: transform 150ms var(--ease);
}
.nav-link:hover {
  color: var(--ink);
}
.nav-link:active,
.brand:active,
.footer-links a:active {
  transform: scale(0.97);
}
.btn-sm {
  margin-left: 8px;
}
@media (max-width: 720px) {
  .nav-link {
    display: none;
  }
}

/* Hero */
.hero {
  min-height: calc(min(860px, 100svh) - var(--header-h));
  display: flex;
  align-items: center;
  padding-top: clamp(2.5rem, 6vw, 5rem);
}
.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px;
  align-items: center;
}
.hero-copy {
  grid-column: span 5;
}
.hero-demo {
  grid-column: span 7;
}
.headline .line {
  display: inline-block;
}
.lede {
  color: var(--ink-muted);
  max-width: 34ch;
  margin-top: 24px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 16px;
}
.demo-note {
  margin-top: 14px;
  text-align: center;
}
@media (max-width: 900px) {
  .hero-copy,
  .hero-demo {
    grid-column: 1 / -1;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
}
@media (max-width: 600px) {
  br.lg {
    display: none;
  }
}

/* Demo card */
.demo-card {
  background: var(--card);
  border-radius: 20px;
  padding: 10px;
  box-shadow: var(--shadow-lg);
}
.totals {
  background: linear-gradient(135deg, var(--hero-a), var(--hero-b));
  color: var(--on-hero);
  border-radius: 16px;
  padding: 20px 22px 16px;
}
.totals :focus-visible {
  outline-color: var(--on-hero);
}
.figures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.figure {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.fig-label {
  font-size: 0.8125rem;
  color: var(--on-hero-muted);
}
.was {
  font-size: 0.875rem;
  color: var(--on-hero-muted);
  line-height: 1.3;
  opacity: 0;
  transition: opacity 250ms var(--ease);
}
.is-trying .was {
  opacity: 1;
}
.now {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.count {
  font-size: 0.875rem;
  color: var(--on-hero-muted);
  margin-top: 8px;
}
.savings {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 250ms var(--ease),
    transform 250ms var(--ease);
}
.is-trying .savings {
  opacity: 1;
  transform: none;
}
.save {
  font-weight: 600;
  font-size: 0.9375rem;
}
.trying {
  font-size: 0.8125rem;
  color: var(--on-hero-muted);
}
.clear {
  flex: none;
  min-height: 44px;
  min-width: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: var(--on-hero);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 150ms var(--ease);
}
.clear:hover {
  background: rgba(255, 255, 255, 0.12);
}
.clear:active {
  transform: scale(0.97);
}

.rows {
  margin-top: 4px;
}
.row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 8px 12px;
  border-top: 1px solid var(--rule);
}
.row:first-child {
  border-top: 0;
}
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--av);
  color: #ffffff;
  font-weight: 600;
}
.who,
.price {
  transition: opacity 200ms var(--ease);
}
.who {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.35;
}
.name {
  font-weight: 600;
  font-size: 0.9375rem;
}
.next {
  font-size: 0.8125rem;
  color: var(--ink-muted);
}
.price {
  text-align: right;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.35;
  white-space: nowrap;
}
.cyc {
  font-weight: 400;
  color: var(--ink-muted);
}
.equiv {
  display: block;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--ink-muted);
}
.row.is-tried .who,
.row.is-tried .price,
.row.is-tried .avatar {
  opacity: 0.55;
}
.row.is-tried .name {
  text-decoration: line-through;
}
.avatar {
  transition: opacity 200ms var(--ease);
}
.try {
  position: relative;
  min-height: 44px;
  min-width: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink-muted);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 150ms var(--ease);
}
.try:hover {
  color: var(--ink);
  border-color: var(--ink-muted);
}
.try:active {
  transform: scale(0.97);
}
.try[aria-pressed="true"] {
  background: var(--teal-soft);
  border-color: var(--teal-soft);
  color: var(--teal);
}
.try::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 2px solid var(--teal);
  opacity: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .try.is-pulse::after {
    animation: pulse 1100ms var(--ease) 1;
  }
}
@keyframes pulse {
  0% {
    opacity: 0.7;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.35);
  }
}

.badge {
  display: inline-block;
  padding: 0 7px;
  margin-left: 4px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
  vertical-align: 1px;
}
.badge-soon {
  background: var(--soon-soft);
  color: var(--soon);
}
.badge-trial {
  background: var(--trial-soft);
  color: var(--trial);
}

@media (max-width: 560px) {
  .row {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    grid-template-areas:
      "av who who"
      "av price try";
    row-gap: 6px;
    padding: 12px 8px;
  }
  .avatar {
    grid-area: av;
    align-self: start;
  }
  .who {
    grid-area: who;
  }
  .price {
    grid-area: price;
    text-align: left;
  }
  .try {
    grid-area: try;
  }
  .totals {
    padding: 18px 16px 14px;
  }
  .now {
    font-size: 1.75rem;
  }
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.step {
  background: var(--card);
  border-radius: 20px;
  padding: 16px 16px 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.step h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 8px 8px 8px;
}
.step p {
  margin: 0 8px;
  color: var(--ink-muted);
}
.step-num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: 24px 8px 0;
  border-radius: 50%;
  border: 1.5px solid var(--teal);
  color: var(--teal);
  font-size: 0.8125rem;
  font-weight: 600;
}
.illus {
  height: 180px;
  border-radius: 14px;
  background: var(--paper-sunk);
  padding: 16px;
  overflow: hidden;
}
@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* Step 1: form */
.illus-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-content: center;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.f1 {
  grid-column: 1 / -1;
}
.f-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--ink-muted);
}
.f-val {
  display: block;
  height: 32px;
  line-height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--rule);
  background: var(--card);
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.f2 .f-val {
  border-color: var(--teal);
}
.caret {
  display: inline-block;
  width: 1.5px;
  height: 1em;
  margin-left: 1px;
  vertical-align: -2px;
  background: var(--ink);
}
@media (prefers-reduced-motion: no-preference) {
  .caret {
    animation: blink 1s steps(1) infinite;
  }
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Step 2: sum */
.illus-sum {
  display: grid;
  grid-template-columns: auto minmax(16px, 1fr) auto;
  align-items: center;
  gap: 0;
}
.chips {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 120px;
}
.chip {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--rule);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.links {
  width: 100%;
  height: 120px;
}
.links path {
  fill: none;
  stroke: var(--teal);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.result {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.chip-result {
  background: var(--teal-soft);
  border-color: var(--teal);
  color: var(--teal);
  font-size: 0.8125rem;
}
.result-year {
  font-size: 0.75rem;
  color: var(--ink-muted);
}

/* Step 3: coming up */
.illus-soon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.soon-title {
  font-weight: 600;
  font-size: 0.875rem;
}
.illus-soon ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ev {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  background: var(--card);
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
}
.ev .badge {
  margin-left: auto;
}
.ev .dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--renewal);
}
.ev-trial {
  color: var(--trial);
}
.ev-trial .dot {
  background: var(--trial);
}
.blue {
  color: var(--renewal);
}

/* Features */
.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.tile {
  background: var(--card);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 200ms var(--ease);
}
.tile h3 {
  font-size: 1.125rem;
  line-height: 1.3;
  margin: 20px 0 8px;
}
.tile p {
  color: var(--ink-muted);
}
@media (hover: hover) {
  .tile:hover {
    transform: translateY(-2px);
  }
}
.tile-wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}
.tile-wide h3 {
  margin-top: 0;
}
.vis {
  min-height: 120px;
  display: flex;
  align-items: center;
  border-radius: 14px;
  background: var(--paper-sunk);
  padding: 16px;
}
@media (max-width: 900px) {
  .tile-wide {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .bento {
    grid-template-columns: 1fr;
  }
  .tile-wide {
    grid-column: auto;
  }
}

.mini-cal {
  background: var(--paper-sunk);
  border-radius: 14px;
  padding: 16px;
}
.cal-month {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 8px;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  position: relative;
}
.wd {
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--ink-muted);
}
.d {
  position: relative;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--card);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums lining-nums;
}
.d.out {
  background: transparent;
  color: var(--ink-muted);
}
.ev-dot {
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--renewal);
}
.ev-dot.trial {
  background: var(--trial);
}
.ring {
  position: absolute;
  inset: 0;
  /* Out of flow so the days keep their cells; explicit end lines, because an
     absolutely placed item's auto end line is the grid's edge, not span 1. */
  grid-row: 5 / 6;
  grid-column: 1 / 2;
  height: auto;
  border-radius: 8px;
  border: 2px solid var(--teal);
  pointer-events: none;
  transition: transform 600ms var(--ease);
}
.ring.is-alt {
  transform: translateY(calc(100% + 4px));
}
.cal-due {
  margin-top: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.vis-dates {
  justify-content: center;
  gap: 8px;
  color: var(--ink-muted);
}
.date-chip {
  padding: 6px 10px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--rule);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}
.vis-private {
  justify-content: center;
  gap: 16px;
}
.vis-phone {
  justify-content: center;
}
.phone {
  position: relative;
  width: 64px;
  height: 120px;
  border: 2px solid var(--ink-muted);
  border-radius: 14px;
  background: var(--card);
}
.tabbar {
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 4px;
  display: flex;
  justify-content: space-around;
  padding: 4px 0;
  border-top: 1px solid var(--rule);
}
.tabbar svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--ink-muted);
  stroke-width: 1.5;
  stroke-linecap: round;
}
.tabbar svg:first-child {
  stroke: var(--teal);
}
.vis-currency {
  flex-wrap: wrap;
  gap: 6px;
  align-content: center;
}
.pill {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: var(--card);
  font-size: 0.8125rem;
  font-weight: 600;
}
.pill.on {
  background: var(--teal-soft);
  border-color: var(--teal-soft);
  color: var(--teal);
}

/* See it working */
.browser {
  margin-top: 40px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-lg);
}
.browser-bar {
  position: relative;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-sunk);
  border-bottom: 1px solid var(--rule);
}
.dots {
  position: absolute;
  left: 16px;
  display: flex;
  gap: 6px;
}
.dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rule);
}
.address {
  padding: 2px 14px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-muted);
  font-size: 0.8125rem;
}
.browser iframe {
  display: block;
  width: 100%;
  height: 720px;
  border: 0;
  background: var(--paper);
}
@media (max-width: 720px) {
  .browser iframe {
    height: 640px;
  }
}
.try-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
  margin-top: 28px;
}
.tips summary {
  list-style: none;
}
.tips summary::-webkit-details-marker {
  display: none;
}
.tips summary::after {
  content: "+";
  font-weight: 400;
  margin-left: 4px;
}
.tips[open] summary::after {
  content: "−";
}
.tips ul {
  margin-top: 12px;
  padding: 16px 20px 16px 36px;
  list-style: disc;
  background: var(--card);
  border-radius: 14px;
  color: var(--ink-muted);
  font-size: 0.9375rem;
  box-shadow: var(--shadow);
}

/* Close */
.close {
  position: relative;
  overflow: hidden;
  text-align: center;
}
.close-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.close-inner .headline {
  max-width: 16ch;
}
.loops {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1000px;
  height: 1000px;
  margin: -500px 0 0 -500px;
  pointer-events: none;
}
.loop {
  fill: none;
  stroke: var(--teal);
  stroke-opacity: 0.08;
  stroke-width: 1;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  transform-box: view-box;
  transform-origin: 500px 500px;
}
@media (prefers-reduced-motion: no-preference) {
  .loop {
    animation: spin 120s linear infinite;
    animation-delay: var(--d);
  }
  .loop:nth-child(even) {
    animation-direction: reverse;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 40px 0 32px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.brand-lg .wordmark {
  font-size: 1.625rem;
}
.footer-links {
  display: flex;
  gap: 4px;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: transform 150ms var(--ease);
}
.footer-links a:hover {
  color: var(--teal);
}
.credit {
  margin-top: 20px;
}
@media (max-width: 720px) {
  .footer-inner,
  .footer-brand {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-brand {
    gap: 8px;
  }
  .footer-links {
    flex-direction: column;
    margin-left: -12px;
  }
}

/* Phones */
@media (max-width: 440px) {
  :root {
    --pad-x: 20px;
  }
  .actions .btn,
  .try-actions .btn,
  .try-actions .tips {
    width: 100%;
  }
  .actions,
  .try-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .vis-dates {
    gap: 4px;
  }
  .date-chip {
    padding: 6px 8px;
  }
}

/* Motion: entrances only when motion is welcome */
@media (prefers-reduced-motion: no-preference) {
  .headline .line {
    animation: rise 520ms var(--ease) both;
  }
  .hero .headline .line:nth-child(3) {
    animation-delay: 80ms;
  }
  .hero-demo {
    animation: rise-lg 480ms var(--ease) 200ms both;
  }

  .js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition:
      opacity 500ms var(--ease) var(--stagger, 0ms),
      transform 500ms var(--ease) var(--stagger, 0ms);
  }
  .js .step.reveal {
    transform: none;
    opacity: 1;
  }
  .js .reveal.is-in {
    opacity: 1;
    transform: none;
  }
  .js .tile.reveal.is-in {
    transition:
      opacity 500ms var(--ease) var(--stagger, 0ms),
      transform 200ms var(--ease);
  }

  /* Step 1: fields fill one after another */
  .js .illus-form .v {
    opacity: 0;
    transition: opacity 200ms var(--ease);
  }
  .js .is-in .illus-form .v {
    opacity: 1;
  }
  .js .is-in .f2 .v {
    transition-delay: 250ms;
  }
  .js .is-in .f3 .v {
    transition-delay: 500ms;
  }
  .js .is-in .f4 .v {
    transition-delay: 750ms;
  }

  /* Step 2: lines draw, result pops */
  .js .links path {
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 600ms var(--ease);
  }
  .js .links path:nth-child(2) {
    transition-delay: 100ms;
  }
  .js .links path:nth-child(3) {
    transition-delay: 200ms;
  }
  .js .is-in .links path {
    stroke-dashoffset: 0;
  }
  .js .result {
    opacity: 0;
    transform: scale(0.96);
    transition:
      opacity 300ms var(--ease) 600ms,
      transform 300ms var(--ease) 600ms;
  }
  .js .is-in .result {
    opacity: 1;
    transform: none;
  }

  /* Step 3: lines slide up */
  .js .illus-soon .ev {
    opacity: 0;
    transform: translateY(8px);
    transition:
      opacity 400ms var(--ease),
      transform 400ms var(--ease);
  }
  .js .illus-soon .ev:nth-child(2) {
    transition-delay: 120ms;
  }
  .js .illus-soon .ev:nth-child(3) {
    transition-delay: 240ms;
  }
  .js .is-in .illus-soon .ev {
    opacity: 1;
    transform: none;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}
@keyframes rise-lg {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}
