/* The pre-launch site in the website's "Pen & Paper" design (docs/website/DESIGN.md): one accent, pen blue.
 * The colour values are copied from website/src/styles.css: change them there first, then here. */

@font-face {
  font-family: "Geist Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/geist-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/geist-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --font-sans: "Geist Variable", ui-sans-serif, system-ui, sans-serif;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);

  --background: oklch(0.972 0.005 255);
  --card: oklch(0.997 0.002 255);
  --secondary: oklch(0.955 0.007 255);
  --border: oklch(0.9 0.008 255);
  --border-strong: oklch(0.63 0.02 262);
  --foreground: oklch(0.21 0.035 262);
  --muted-foreground: oklch(0.5 0.025 262);

  --primary: oklch(0.5 0.2 264);
  --primary-hover: oklch(0.44 0.19 264);
  --primary-foreground: oklch(0.995 0.003 255);
  --primary-soft: oklch(0.95 0.03 264);
  --primary-ink: oklch(0.42 0.17 264);

  --success: oklch(0.52 0.13 152);
  --success-soft: oklch(0.955 0.035 152);
  --success-ink: oklch(0.42 0.105 152);
  --destructive-ink: oklch(0.47 0.17 27);
  --destructive-soft: oklch(0.958 0.025 27);
  --warning-soft: oklch(0.962 0.045 80);
  --warning-ink: oklch(0.45 0.1 62);
  --info-soft: oklch(0.955 0.03 215);
  --info-ink: oklch(0.42 0.09 220);

  --elevation-raised: 0 1px 2px oklch(0.21 0.035 262 / 0.06), 0 1px 1px oklch(0.21 0.035 262 / 0.03);
  --elevation-overlay: 0 12px 28px -8px oklch(0.21 0.035 262 / 0.18), 0 2px 6px oklch(0.21 0.035 262 / 0.06);
  --elevation-modal: 0 28px 56px -16px oklch(0.21 0.035 262 / 0.32), 0 4px 12px oklch(0.21 0.035 262 / 0.08);
  --neutral-soft: oklch(0.94 0.008 262);
  /* The ink of the phone bezel and the closing band, in both themes. */
  --chrome: oklch(0.21 0.035 262);
  --chrome-foreground: oklch(0.95 0.01 262);
  --chrome-muted: oklch(0.75 0.03 262);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --background: oklch(0.165 0.02 262);
    --card: oklch(0.205 0.024 262);
    --secondary: oklch(0.25 0.025 262);
    --border: oklch(0.31 0.025 262);
    --border-strong: oklch(0.52 0.025 262);
    --foreground: oklch(0.95 0.01 262);
    --muted-foreground: oklch(0.74 0.025 262);

    --primary: oklch(0.72 0.15 264);
    --primary-hover: oklch(0.78 0.13 264);
    --primary-foreground: oklch(0.18 0.03 262);
    --primary-soft: oklch(0.3 0.07 264);
    --primary-ink: oklch(0.84 0.09 264);

    --success: oklch(0.72 0.14 152);
    --success-soft: oklch(0.27 0.05 152);
    --success-ink: oklch(0.8 0.13 152);
    --destructive-ink: oklch(0.78 0.13 25);
    --destructive-soft: oklch(0.28 0.06 25);
    --warning-soft: oklch(0.29 0.05 75);
    --warning-ink: oklch(0.85 0.12 80);
    --info-soft: oklch(0.28 0.05 215);
    --info-ink: oklch(0.82 0.09 215);

    --elevation-raised: 0 1px 2px oklch(0.05 0.02 262 / 0.4);
    --elevation-overlay: 0 14px 32px -8px oklch(0.05 0.02 262 / 0.6), 0 2px 6px oklch(0.05 0.02 262 / 0.3);
    --elevation-modal: 0 28px 64px -16px oklch(0.05 0.02 262 / 0.7);
    --neutral-soft: oklch(0.28 0.02 262);
    --chrome: oklch(0.13 0.02 262);
  }
}

/* Mobile first: the base rules are the phone layout, and min-width queries add to it.
 * Logical properties only (inline-start, padding-inline...), so an Arabic page with dir="rtl" mirrors by itself. */


*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1,
h2,
h3,
p,
ol,
ul,
dl,
dd,
figure {
  margin: 0;
}
ol,
ul {
  padding: 0;
  list-style: none;
}
h1,
h2 {
  font-weight: 650;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h3 {
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}
a {
  color: var(--primary);
}
::selection {
  background: color-mix(in oklch, var(--primary) 22%, transparent);
}
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
[id] {
  scroll-margin-top: 5rem;
}
.sprite {
  position: absolute;
}
.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.muted {
  color: var(--muted-foreground);
  font-weight: 400;
}
.accent {
  color: var(--primary);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -4rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 500;
  text-decoration: none;
  z-index: 30;
}
.skip-link:focus {
  top: 1rem;
}

/* The site's measure: 1240px, gutters 16 / 24 / 40px. */
.measure {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 640px) {
  .measure {
    padding-inline: 1.5rem;
  }
}
@media (min-width: 1024px) {
  .measure {
    padding-inline: 2.5rem;
  }
}

/* Buttons: primary (one per view), secondary, invert (on the ink band). */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding-inline: 1rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--primary);
  color: var(--primary-foreground);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--elevation-raised);
  cursor: pointer;
  transition: background-color 150ms var(--ease-out), transform 150ms var(--ease-out);
}
.button:hover {
  background: var(--primary-hover);
}
.button:active {
  transform: scale(0.98);
}
.button:disabled {
  cursor: progress;
  opacity: 0.8;
}
.button-lg {
  min-height: 3rem;
  padding-inline: 1.5rem;
  font-size: 1rem;
}
.button-xs {
  min-height: 1.75rem;
  padding-inline: 0.625rem;
  font-size: 0.75rem;
  border-radius: 6px;
}
.button-secondary {
  background: var(--card);
  border-color: var(--border);
  color: var(--foreground);
}
.button-secondary:hover {
  background: var(--secondary);
}
.button-invert {
  background: var(--chrome-foreground);
  color: var(--chrome);
}
.button-invert:hover {
  background: oklch(1 0 0);
}
.button-block {
  width: 100%;
}
.quiet-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 2.75rem;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  text-underline-offset: 4px;
}
.quiet-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}
.quiet-link .icon {
  width: 1rem;
  height: 1rem;
}
[dir="rtl"] .quiet-link .icon {
  transform: scaleX(-1);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: var(--background);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  color: var(--foreground);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.seal,
.seal img {
  display: block;
  width: 1.75rem;
  height: 1.75rem;
}

/* Sections */
main {
  flex: 1;
}
.band {
  margin-top: 6rem;
}
@media (min-width: 1024px) {
  .band {
    margin-top: 8rem;
  }
}
.eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}
.section-heading {
  margin-top: 0.75rem;
  font-size: 1.875rem;
  line-height: 1.2;
}
.section-heading:first-child {
  margin-top: 0;
}
@media (min-width: 640px) {
  .section-heading {
    font-size: 2.5rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
  }
}
.section-lede {
  margin-top: 1.25rem;
  max-width: 60ch;
  font-size: 1.125rem;
  line-height: 2rem;
  color: var(--muted-foreground);
}

/* Heading held on the inline-start side while the content scrolls past it (How it works, FAQ). */
.split {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 1024px) {
  .split {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    column-gap: 5rem;
  }
  .split-aside {
    position: sticky;
    top: 7rem;
    align-self: start;
  }
}

/* Badges: soft tint, ink text, 6px radius, a leading icon. */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3125rem;
  padding: 0.125rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  line-height: 1.25rem;
  font-weight: 500;
  white-space: nowrap;
}
.pill .icon {
  width: 0.875rem;
  height: 0.875rem;
}
.pill-neutral {
  background: var(--neutral-soft);
  color: var(--foreground);
}
.pill-info {
  background: var(--info-soft);
  color: var(--info-ink);
}
.pill-success {
  background: var(--success-soft);
  color: var(--success-ink);
}
.pill-warning {
  background: var(--warning-soft);
  color: var(--warning-ink);
}
.badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 6px;
  background: var(--primary-soft);
  color: var(--primary-ink);
  font-size: 0.75rem;
  line-height: 1.25rem;
  font-weight: 500;
}

/* A small paper card inside a product mockup. */
.mock-card {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--elevation-raised);
}

/* A contract's journey: Sent, Opened, Signed, Paid. */
.progress-line {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.progress-line li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.375rem;
}
.progress-line li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 0.6875rem;
  inset-inline-start: calc(50% + 0.75rem);
  width: calc(100% - 1.5rem);
  height: 2px;
  background: var(--primary);
}
.progress-line .dot {
  display: grid;
  place-items: center;
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 9999px;
  background: var(--primary);
  color: var(--primary-foreground);
}
.progress-line .icon {
  width: 0.75rem;
  height: 0.75rem;
  stroke-width: 3;
}

/* Hero: copy beside the product. */
.hero {
  display: grid;
  gap: 3rem;
  padding-top: 3rem;
}
@media (min-width: 640px) {
  .hero {
    padding-top: 5rem;
  }
}
@media (min-width: 1024px) {
  .hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 4rem;
  }
}
.hero-copy {
  min-width: 0;
}
h1 {
  margin-top: 1rem;
  font-size: 2.5rem;
  line-height: 1.06;
  letter-spacing: -0.035em;
}
@media (min-width: 640px) {
  h1 {
    font-size: 3rem;
    line-height: 1.04;
  }
}
@media (min-width: 1024px) {
  h1 {
    font-size: 3.5rem;
  }
}
.lede {
  margin-top: 1.5rem;
  max-width: 54ch;
  font-size: 1.125rem;
  line-height: 2rem;
  color: var(--muted-foreground);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin-top: 2rem;
}
.hero-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.hero-note strong {
  font-weight: 600;
  color: var(--foreground);
}

/* The phone: an ink bezel with the desk inside, showing the link's journey. Decorative. */
.device {
  width: 100%;
  max-width: 19rem;
  margin-inline: auto;
  user-select: none;
}
.device-bezel {
  padding: 0.625rem;
  border-radius: 2.25rem;
  background: var(--chrome);
  box-shadow: var(--elevation-modal), 0 0 0 1px color-mix(in oklch, var(--border-strong) 40%, transparent);
}
.phone-screen {
  position: relative;
  min-height: 34rem;
  overflow: hidden;
  border-radius: 1.75rem;
  background: var(--background);
  color: var(--foreground);
}
.phone-notch {
  position: absolute;
  top: 0.5rem;
  inset-inline: 0;
  z-index: 1;
  width: 6rem;
  height: 1.25rem;
  margin-inline: auto;
  border-radius: 9999px;
  background: var(--chrome);
}
.phone-head {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 2.5rem 1rem 0.75rem;
  border-bottom: 1px solid var(--border);
  background: var(--card);
  font-size: 0.875rem;
}
.phone-head strong {
  display: block;
  font-weight: 600;
}
.phone-sub {
  display: block;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.avatar {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: var(--primary-soft);
  color: var(--primary-ink);
  font-size: 0.75rem;
  font-weight: 600;
}
.phone-chat {
  display: grid;
  gap: 0.625rem;
  padding: 1rem;
  font-size: 0.8125rem;
  line-height: 1.25rem;
}
.bubble {
  justify-self: end;
  max-width: 88%;
  padding: 0.625rem 0.75rem;
  border-radius: 14px;
  border-end-end-radius: 4px;
  background: var(--primary);
  color: var(--primary-foreground);
}
.bubble-link {
  display: block;
  margin-top: 0.25rem;
  font-weight: 600;
  text-decoration: underline;
}
.bubble-meta {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.6875rem;
  opacity: 0.8;
  text-align: end;
}
.phone-event {
  justify-self: start;
}
.phone-sealed {
  display: grid;
  gap: 0.875rem;
  margin-top: 0.25rem;
}
.phone-doc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
/* Each step lands in turn, once. */
.phone-chat > li {
  animation: rise 400ms var(--ease-out) both;
}
.phone-chat > li:nth-child(2) {
  animation-delay: 600ms;
}
.phone-chat > li:nth-child(3) {
  animation-delay: 1100ms;
}
.phone-chat > li:nth-child(4) {
  animation-delay: 1600ms;
}
.phone-chat > li:nth-child(5) {
  animation-delay: 2100ms;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

/* "Today": the problem lines, ruled. */
.ruled-list {
  border-top: 1px solid var(--border);
}
.ruled-list li {
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 1.125rem;
  line-height: 1.75rem;
}
@media (min-width: 640px) {
  .ruled-list li {
    font-size: 1.25rem;
  }
}

/* How it works: numbered steps down a vertical rule. */
.steps {
  display: grid;
  gap: 2.5rem;
}
.steps > li {
  position: relative;
  display: flex;
  gap: 1.25rem;
}
.steps > li:not(:last-child)::before {
  content: "";
  position: absolute;
  inset-inline-start: 1.25rem;
  top: 3rem;
  bottom: -2.5rem;
  width: 1px;
  background: var(--border);
}
.step-number {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid color-mix(in oklch, var(--primary) 30%, transparent);
  border-radius: 9999px;
  background: var(--primary-soft);
  color: var(--primary-ink);
  font-weight: 600;
}
.steps h3 {
  padding-top: 0.375rem;
  font-size: 1.25rem;
}
.steps p {
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
  max-width: 52ch;
  line-height: 1.75rem;
  color: var(--muted-foreground);
}
.step-media {
  max-width: 20rem;
  padding: 0.75rem;
}

/* A feature told as text beside a piece of product. */
.feature-row {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .feature-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5rem;
  }
}
.template-list {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}
.template-list li {
  display: flex;
  gap: 0.875rem;
}
.template-list .icon {
  margin-top: 0.125rem;
  color: var(--primary);
}
.template-list strong {
  display: block;
  font-weight: 600;
}
.template-list span {
  line-height: 1.625rem;
  color: var(--muted-foreground);
}
.template-list strong {
  color: var(--foreground);
}

/* A sheet of paper: the bound pen-blue edge, a second sheet behind. Decorative. */
.sheet {
  position: relative;
  width: 100%;
  max-width: 28rem;
  margin-inline: auto;
  user-select: none;
}
.sheet::before {
  content: "";
  position: absolute;
  inset: 0;
  translate: 0.75rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: color-mix(in oklch, var(--card) 70%, transparent);
}
[dir="rtl"] .sheet::before {
  translate: -0.75rem 0.75rem;
}
.sheet-paper {
  position: relative;
  overflow: hidden;
  padding: 1.75rem 1.5rem 1.75rem 2.5rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--elevation-overlay);
}
.sheet-paper::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 0.375rem;
  background: var(--primary);
}
.sheet-title {
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.sheet-line {
  display: block;
  height: 0.5rem;
  margin-top: 0.625rem;
  border-radius: 9999px;
  background: var(--secondary);
}
.sheet-line.short {
  width: 60%;
}
.sheet-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-block: 1.5rem;
  font-size: 0.875rem;
}
.sheet-fields dt {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.sheet-fields dd {
  font-weight: 600;
}
.sheet-sign {
  margin-bottom: 1rem;
  padding: 0.5rem 0.75rem 0.75rem;
  border: 1px dashed color-mix(in oklch, var(--border-strong) 60%, transparent);
  border-radius: 12px;
  background: var(--background);
  color: var(--primary);
}
.sheet-sign svg {
  display: block;
  width: 100%;
  height: 3.5rem;
}
.sheet-sign span {
  display: block;
  padding-top: 0.25rem;
  border-top: 1px solid color-mix(in oklch, var(--border-strong) 50%, transparent);
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* On every link: cells of different sizes, each with a small piece of the product on top. */
.bento {
  display: grid;
  gap: 1rem;
  margin-top: 3rem;
}
@media (min-width: 640px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .bento {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .bento-3 {
    grid-column: span 3;
  }
  .bento-2 {
    grid-column: span 2;
  }
}
.bento-cell {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--elevation-raised);
}
.bento-mini {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-height: 10rem;
  padding: 1.25rem;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklch, var(--secondary) 60%, transparent);
  user-select: none;
}
.bento-text {
  padding: 1.25rem;
}
@media (min-width: 640px) {
  .bento-text {
    padding: 1.5rem;
  }
}
.bento-text h3 {
  font-size: 1.125rem;
}
.bento-text p {
  margin-top: 0.5rem;
  line-height: 1.75rem;
  color: var(--muted-foreground);
}
.mini-file,
.mini-review,
.mini-paid {
  display: grid;
  gap: 0.625rem;
  width: 100%;
  max-width: 18rem;
  font-size: 0.875rem;
}
.mini-pills,
.mini-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}
.mini-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.mini-row strong {
  flex: 1;
  font-weight: 600;
}
.mini-row .icon {
  width: 1rem;
  height: 1rem;
  color: var(--muted-foreground);
}
.mini-bar {
  display: block;
  height: 0.375rem;
  border-radius: 9999px;
  background: var(--secondary);
}
.mini-bar span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--success);
}
.mini-days {
  display: flex;
  gap: 0.5rem;
}
.mini-days li {
  padding: 0.375rem 0.625rem;
  border: 1px solid var(--border);
  border-radius: 9999px;
  background: var(--card);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-foreground);
}
.mini-days .done {
  border-color: transparent;
  background: var(--primary-soft);
  color: var(--primary-ink);
}
/* A green-ticked list of things that are true. */
.trust-list {
  display: grid;
  gap: 1rem 2rem;
  margin-top: 2rem;
}
@media (min-width: 640px) {
  .trust-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.trust-list li {
  display: flex;
  gap: 0.75rem;
  line-height: 1.75rem;
}
.tick {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.25rem;
  border-radius: 9999px;
  background: var(--success-soft);
  color: var(--success-ink);
}
.tick .icon {
  width: 0.875rem;
  height: 0.875rem;
  stroke-width: 3;
}

/* Founding offer */
.plans {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}
@media (min-width: 640px) {
  .plans {
    grid-template-columns: repeat(auto-fit, minmax(16rem, 22rem));
  }
}
.plan {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--elevation-raised);
}
.plan h3 {
  font-size: 1.125rem;
}
.plan-label {
  display: inline-flex;
  margin-top: 0.75rem;
  padding: 0.125rem 0.5rem;
  border-radius: 6px;
  background: var(--primary-soft);
  color: var(--primary-ink);
  font-size: 0.75rem;
  font-weight: 500;
}
.plan-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.5rem;
  margin-top: 0.5rem;
}
.plan-amount {
  font-size: 1.875rem;
  font-weight: 650;
  letter-spacing: -0.025em;
}
.plan-was {
  color: var(--muted-foreground);
}
.plan-includes {
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
}
.offer-cta {
  margin-top: 1.5rem;
}
.note {
  margin-top: 1rem;
  max-width: 60ch;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* FAQ */
.faq {
  border-top: 1px solid var(--border);
}
.faq details {
  border-bottom: 1px solid var(--border);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.125rem;
  font-size: 1.0625rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex-shrink: 0;
  color: var(--muted-foreground);
  font-weight: 400;
}
.faq details[open] summary::after {
  content: "−";
}
.faq details p {
  padding-bottom: 1.25rem;
  max-width: 65ch;
  line-height: 1.75rem;
  color: var(--muted-foreground);
}

/* Signup: copy beside the form. */
.signup {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .signup {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 5rem;
  }
  .signup-copy {
    position: sticky;
    top: 7rem;
  }
  .signup .trust-list {
    grid-template-columns: 1fr;
  }
}
.form-card {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--elevation-raised);
}
@media (min-width: 640px) {
  .form-card {
    padding: 2rem;
  }
}
.callout {
  margin-bottom: 1.25rem;
  padding: 0.875rem 1rem;
  border-radius: 12px;
  background: var(--destructive-soft);
  color: var(--destructive-ink);
  font-size: 0.875rem;
  font-weight: 500;
}
.field + .field {
  margin-top: 1.25rem;
}
.field > label,
.sub-label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
}
.sub-label {
  margin-top: 0.75rem;
}
.field input:not([type="checkbox"]),
.field select,
.field textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--card);
  color: var(--foreground);
  font: inherit;
  font-size: 1rem; /* 16px so iOS does not zoom in */
  transition: border-color 150ms var(--ease-out), box-shadow 150ms var(--ease-out);
}
.field textarea {
  resize: vertical;
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--primary) 22%, transparent);
}
.field input[aria-invalid="true"] {
  border-color: var(--destructive-ink);
}
.phone {
  display: flex;
  gap: 0.5rem;
}
.field .phone select {
  width: 6.75rem;
  flex-shrink: 0;
  padding-inline: 0.5rem;
}
.field-error {
  margin-top: 0.375rem;
  font-size: 0.875rem;
  color: var(--destructive-ink);
}
.check {
  display: flex;
  gap: 0.625rem;
  align-items: flex-start;
  padding-block: 0.5rem;
  font-size: 0.9375rem;
  cursor: pointer;
}
.check input {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.125rem 0 0;
  flex-shrink: 0;
  accent-color: var(--primary);
}
.check:has([aria-invalid="true"]) {
  color: var(--destructive-ink);
}
.hp {
  position: absolute;
  inset-inline-start: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
form .button-block {
  margin-top: 1.5rem;
}

/* The hub */
.niche-cards {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}
@media (min-width: 768px) {
  .niche-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.niche-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--elevation-raised);
  color: var(--foreground);
  text-decoration: none;
  transition: border-color 150ms var(--ease-out);
}
.niche-card:hover {
  border-color: var(--primary);
}
.niche-card h3 {
  font-size: 1.25rem;
}
.niche-card p {
  flex: 1;
  margin-top: 0.5rem;
  line-height: 1.75rem;
  color: var(--muted-foreground);
}
.niche-card .quiet-link {
  margin-top: 1rem;
  min-height: 0;
}
/* The "Something else" form stays closed until its card (or an error redirect) points at #signup. */
.hub #signup:not(:target) {
  display: none;
}

/* The ink band that ends a page. */
.closing {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 1.5rem;
  border-radius: 20px;
  background: var(--chrome);
  color: var(--chrome-foreground);
}
@media (min-width: 640px) {
  .closing {
    padding: 5rem 3rem;
  }
}
@media (prefers-color-scheme: dark) {
  .closing {
    box-shadow: 0 0 0 1px var(--border);
  }
}
.closing-copy {
  position: relative;
  max-width: 42rem;
}
.closing h2 {
  font-size: 1.875rem;
  line-height: 1.2;
}
@media (min-width: 640px) {
  .closing h2 {
    font-size: 2.5rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
  }
}
.closing p {
  margin-top: 1rem;
  max-width: 52ch;
  font-size: 1.125rem;
  line-height: 2rem;
  color: var(--chrome-muted);
}
.closing .button {
  margin-top: 2rem;
}
.closing-stroke {
  display: none;
  position: absolute;
  bottom: 2rem;
  inset-inline-end: 1.5rem;
  width: 20rem;
  color: var(--primary);
}
@media (min-width: 768px) {
  .closing-stroke {
    display: block;
  }
}
@media (min-width: 1024px) {
  .closing-stroke {
    inset-inline-end: 3rem;
    width: 26rem;
  }
}

/* Footer */
.site-footer {
  margin-top: 6rem;
  border-top: 1px solid var(--border);
  background: var(--card);
}
@media (min-width: 1024px) {
  .site-footer {
    margin-top: 8rem;
  }
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-block: 3rem;
}
@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}
.footer-brand p {
  margin-top: 0.75rem;
  max-width: 20rem;
  font-size: 0.875rem;
  line-height: 1.5rem;
  color: var(--muted-foreground);
}
.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.footer-col h2 {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0;
}
.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-decoration: none;
}
.footer-col a:hover {
  color: var(--foreground);
}
.footer-base {
  border-top: 1px solid var(--border);
  padding-block: 1.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* /thanks, /privacy, /terms, /404 */
.page {
  max-width: 44rem;
  padding-top: 3rem;
}
.page h1 {
  font-size: 2.25rem;
}
.page h2 {
  margin-top: 2rem;
  font-size: 1.25rem;
}
.page p,
.page li {
  margin-top: 0.75rem;
  line-height: 1.75rem;
  color: var(--muted-foreground);
}
.page ul {
  padding-inline-start: 1.25rem;
  list-style: disc;
}
.next-steps {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
  counter-reset: step;
}
.next-steps li {
  display: flex;
  gap: 0.75rem;
  margin: 0;
  counter-increment: step;
}
.next-steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  background: var(--primary-soft);
  color: var(--primary-ink);
  font-size: 0.875rem;
  font-weight: 600;
}
.page .button {
  margin-top: 2rem;
}
.placeholder {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: var(--warning-soft);
  color: var(--warning-ink);
  font-weight: 500;
}

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