:root {
  --primary: #0F6E6B;
  --primary-hover: #0C5A58;
  --primary-soft: #E6F4F3;
  --ink: #1B2430;
  --muted: #5C6773;
  --line: #E2E8EE;
  --paper: #F4F6F8;
  --surface: #FFFFFF;
  --accent: #C4A35A;
  --footer: #0A4A48;
  --footer-text: #D5ECEA;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

/* The accent line across the top of every page, as in the app, the sign-in pages and the emails. */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  z-index: 3000;
  pointer-events: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
}

h1, h2, h3, p {
  margin: 0;
}

h1, h2, h3 {
  text-wrap: balance;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--surface);
  color: var(--ink);
  padding: 0.4rem 0.7rem;
  z-index: 10;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding: 0.85rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.03em;
}

/* The logo (favicon.svg) beside the name. */
.mark {
  width: 1.75rem;
  height: 1.75rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.nav a,
.site-footer nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--primary);
}

/* The footer is a deeper teal than the closing band above it, so the two stay apart. */
.site-footer nav a {
  color: var(--surface);
}

.site-footer nav a:hover,
.site-footer nav a[aria-current="page"] {
  color: var(--surface);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.site-footer a:focus-visible {
  outline-color: var(--surface);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-left: auto;
}

.button {
  display: inline-block;
  padding: 0.6rem 0.95rem;
  border: 1px solid var(--primary);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 650;
  font-size: 0.95rem;
  line-height: 1.2;
}

.button.primary {
  background: var(--primary);
  color: var(--surface);
}

.button.primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.button.secondary {
  background: var(--surface);
  color: var(--primary);
}

.button.secondary:hover {
  background: var(--primary-soft);
}

.button.light {
  background: var(--surface);
  color: var(--primary);
  border-color: var(--surface);
}

.button.light:hover {
  background: var(--primary-soft);
}

.button.ghost {
  background: transparent;
  color: var(--surface);
  border-color: color-mix(in srgb, var(--surface) 70%, transparent);
}

.button.ghost:hover {
  background: color-mix(in srgb, var(--surface) 12%, transparent);
}

a:focus-visible,
.button:focus-visible,
.skip:focus {
  outline: 0.15rem solid var(--primary);
  outline-offset: 0.15rem;
}

.close a:focus-visible {
  outline-color: var(--surface);
}

.hero {
  position: relative;
  padding: 3.5rem 0 4rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 70% at 85% 10%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 68%);
  pointer-events: none;
}

/* The same teal glow at the top of the other pages, the height of a home-page hero. */
.glow {
  position: relative;
}

.glow::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 40rem;
  background: radial-gradient(ellipse 55% 70% at 85% 10%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 68%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  margin-bottom: 0.7rem;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.15rem, 5vw, 3.6rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  max-width: 18em;
}

.lead,
.section-lead {
  margin-top: 1rem;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  margin: 1.5rem 0 0;
}

.free-note {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.fine {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

/* Pictures. Every one is a plain screenshot of the app or a page of a PDF it made. */

figure {
  margin: 0;
}

.shot {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  box-shadow: 0 18px 40px color-mix(in srgb, var(--ink) 10%, transparent);
}

.shot-bar {
  display: flex;
  gap: 0.35rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.shot-bar span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--line);
}

.hero-visual {
  position: relative;
}

.shot-dialog {
  max-width: 34rem;
  justify-self: center;
  width: 100%;
}

.hero-visual figcaption {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.honest {
  padding: 1rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  border-top: 1px solid var(--line);
}

.band {
  padding: 4rem 0;
}

.band-white {
  background: var(--surface);
}

/* Home: how it helps. */

.helps {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

.helps article {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: var(--paper);
}

.helps h3 {
  font-size: 1.1rem;
}

.helps p {
  margin-top: 0.5rem;
  color: var(--muted);
}

.more {
  margin-top: 1.5rem;
  font-weight: 650;
}

.more a::after {
  content: " \2192";
}

/* How it works page. */

.page-head {
  padding: 3.5rem 0 0;
}

.band-tight {
  padding-top: 2.5rem;
}

.nav a[aria-current="page"] {
  color: var(--primary);
}

/* How it works: four steps, each beside its picture. */

.walk {
  display: grid;
  gap: 3rem;
  margin-top: 2.25rem;
}

.step {
  display: grid;
  gap: 1.25rem;
  align-items: center;
}

.step h3 {
  font-size: 1.3rem;
}

.step-copy p:not(.step-number) {
  margin-top: 0.6rem;
  color: var(--muted);
  max-width: 30rem;
}

.step-number {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.8rem;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
}

/* The PDFs: three pages side by side. */

.pdfs {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.pdfs a {
  display: block;
  border: 1px solid var(--line);
  border-radius: 0.3rem;
  overflow: hidden;
  box-shadow: 0 12px 30px color-mix(in srgb, var(--ink) 10%, transparent);
  transition: transform 0.15s ease;
}

.pdfs a:hover {
  transform: translateY(-3px);
}

.pdfs figcaption {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.pdfs figcaption strong {
  display: block;
  color: var(--ink);
}

/* The PDF popup (lightbox.js): the page full width up to its own size over a dark, blurred page, with a bar on top
   for the name, ‹ › and ×. The dialog fills the window and scrolls a tall page; its empty space closes it. */

.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 4.25rem 1rem 2rem;
  border: 0;
  background: transparent;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.lightbox::backdrop {
  background: color-mix(in srgb, var(--ink) 70%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

html:has(.lightbox[open]) {
  overflow: hidden;
}

.lightbox-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: color-mix(in srgb, var(--ink) 85%, transparent);
  color: #FFFFFF;
}

.lightbox-count {
  margin: 0;
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.lightbox-controls {
  display: flex;
  flex: none;
  gap: 0.5rem;
}

.lightbox-button {
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-button:hover {
  background: var(--primary-soft);
}

.lightbox-button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.lightbox-page {
  max-width: 909px;
  margin: 0 auto;
}

.lightbox-page img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.3rem;
  background: var(--surface);
  box-shadow: 0 20px 50px rgb(0 0 0 / 0.35);
}

.lightbox-page figcaption {
  margin-top: 0.9rem;
  color: #FFFFFF;
  text-align: center;
}

/* On a phone. */

.phone-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.phones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 30rem;
  margin: 0 auto;
}

.phones img {
  border: 0.4rem solid var(--ink);
  border-radius: 1.6rem;
  box-shadow: 0 18px 40px color-mix(in srgb, var(--ink) 14%, transparent);
}

.phones figure:last-child {
  margin-top: 2.5rem;
}

.included {
  display: grid;
  gap: 0.5rem 1.5rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.included li {
  position: relative;
  padding-left: 1.5rem;
}

.included li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.45rem;
  width: 0.55rem;
  height: 0.3rem;
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
}

/* Plans and questions. */

.prices {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

.price {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: 1.15rem 1.15rem 1.2rem;
}

.every-plan {
  margin-top: 1.5rem;
  font-weight: 700;
}

.price {
  position: relative;
}

.price.featured {
  border: 2px solid var(--primary);
}

.badge {
  position: absolute;
  top: -0.8rem;
  left: 1rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--surface) !important;
  font-size: 0.78rem;
  font-weight: 700;
}

.faq {
  max-width: 46rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  padding: 0.95rem 0;
  font-weight: 650;
}

.faq summary:focus-visible {
  outline: 0.15rem solid var(--primary);
  outline-offset: 0.15rem;
}

.faq details p {
  margin: 0 0 1rem;
  color: var(--muted);
  max-width: 40rem;
}

.price h3 {
  font-size: 1.05rem;
}

.amount {
  margin: 0.45rem 0 0.25rem;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.amount span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
}

.price p {
  margin: 0;
  color: var(--muted);
}

.price ul {
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
}

.price li {
  margin: 0;
  padding: 0.4rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.price li.gain {
  color: var(--ink);
  font-weight: 700;
}

.close {
  background: var(--primary);
  color: var(--surface);
  padding: 3.5rem 0;
}

.close h2,
.close p {
  color: var(--surface);
}

.close p {
  margin-top: 0.7rem;
  max-width: 36rem;
  color: color-mix(in srgb, var(--surface) 88%, transparent);
}

.close p a {
  color: var(--surface);
}

.close-inner {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.close .actions {
  margin-left: 0;
}

.site-footer {
  background: var(--footer);
  padding: 1.5rem 0 2rem;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  align-items: center;
  color: var(--footer-text);
}

.brand-foot {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--surface);
  font-weight: 700;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-left: auto;
}

section[id] {
  scroll-margin-top: 5rem;
}

/* The company line under the footer links. */


/* Terms & Conditions and Privacy & Cookies. */

.legal {
  max-width: 46rem;
  padding-top: 3.5rem;
  padding-bottom: 4rem;
}

.legal h1 {
  font-size: clamp(2rem, 5vw, 2.6rem);
}

.legal-date {
  margin-top: 0.5rem;
  color: var(--muted);
}

.legal h2 {
  margin-top: 2.25rem;
  font-size: 1.25rem;
  scroll-margin-top: 5rem;
}

.legal p,
.legal ul,
.legal dl,
.legal table {
  margin-top: 0.85rem;
}

.legal ul {
  padding-left: 1.25rem;
}

.legal li + li {
  margin-top: 0.4rem;
}

.legal li ul {
  margin-top: 0.4rem;
}

.details {
  display: grid;
  gap: 0.2rem 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
}

.details dt {
  color: var(--muted);
  font-size: 0.9rem;
}

.details dd {
  margin: 0 0 0.6rem;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.95rem;
}

.legal-table th,
.legal-table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: var(--paper);
}

.legal-table code {
  overflow-wrap: anywhere;
}

/* The liability limits, set apart so they are noticed (Consumer Protection Act section 49). */
.notice {
  margin-top: 2.25rem;
  padding: 0.25rem 1.25rem 1.25rem;
  background: var(--primary-soft);
  border: 1px solid var(--primary);
  border-radius: 0.85rem;
}

/* A value the owner still has to give before launch; the deploy refuses pages that contain one. */
.fill-in {
  background: #FFF3C4;
  outline: 1px dashed #B58A00;
  padding: 0 0.2rem;
}

@media (max-width: 719px) {
  .legal-table thead {
    display: none;
  }

  .legal-table,
  .legal-table tbody,
  .legal-table tr,
  .legal-table td {
    display: block;
  }

  .legal-table tr {
    border-bottom: 1px solid var(--line);
  }

  .legal-table td {
    border-bottom: 0;
    padding: 0.35rem 0.75rem;
  }

  .legal-table td:first-child {
    padding-top: 0.7rem;
    font-weight: 650;
  }

  .legal-table td:last-child {
    padding-bottom: 0.7rem;
  }
}

@media (min-width: 720px) {
  .details {
    grid-template-columns: 14rem 1fr;
  }

  .details dd {
    margin-bottom: 0;
  }
}


@media (min-width: 720px) {
  .prices,
  .included {
    grid-template-columns: 1fr 1fr;
  }

  .pdfs {
    grid-template-columns: repeat(2, 1fr);
  }

  .helps {
    grid-template-columns: repeat(3, 1fr);
  }

  .nav {
    margin-left: auto;
  }

  .actions {
    margin-left: 0;
  }
}

@media (min-width: 980px) {
  /* The four PDF pages side by side; two by two on a tablet, one under another on a phone. */
  .pdfs {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero-copy {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 0 3rem;
    align-items: end;
  }

  .hero-copy .eyebrow,
  .hero-copy h1 {
    grid-column: 1;
  }

  .hero-copy .lead,
  .hero-copy .hero-actions,
  .hero-copy .free-note {
    grid-column: 2;
  }

  .hero-copy .lead {
    grid-row: 1 / span 2;
    align-self: end;
  }


  .step {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
    gap: 3rem;
  }

  .step:nth-child(even) {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  }

  .step:nth-child(even) .step-copy {
    order: 2;
  }

  .phone-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
  }

  .prices {
    grid-template-columns: repeat(4, 1fr);
  }

  .close-inner {
    grid-template-columns: 1.4fr auto;
  }
}

@media (max-width: 719px) {
  .wrap {
    width: min(1120px, calc(100% - 2rem));
  }

  /* Two rows on a phone: the name, then the links with the two buttons. Home is the name's link. */
  .bar {
    gap: 0.6rem 0.5rem;
    padding: 0.7rem 0;
  }

  .bar .brand {
    flex-basis: 100%;
  }

  .bar .nav {
    gap: 0.35rem 0.6rem;
  }

  .bar .nav a {
    font-size: 0.9rem;
  }

  .bar .nav a[href="/"] {
    display: none;
  }

  .bar .actions {
    margin-left: auto;
    gap: 0.35rem;
  }

  .bar .button {
    padding: 0.4rem 0.55rem;
    font-size: 0.875rem;
  }

  .actions {
    margin-left: 0;
  }

  .hero {
    padding-top: 2.4rem;
  }

  .band {
    padding: 3rem 0;
  }

  .site-footer nav {
    flex-basis: 100%;
    margin-left: 0;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .pdfs a {
    transition: none;
  }
}
