/* The xwaivers landing page. Separate from style.css and from landing.css on
   purpose: the app's stylesheet stays small, and each product's front page can
   be redesigned without touching the other one or a signing page.

   No outside fonts or images: the Content-Security-Policy allows only this site,
   and this page deliberately uses no vendored font either, so it costs nothing to
   load. Where PDF Signer's page is a writing desk in warm paper, this one is a
   front-desk tool: cool, flat, plain type, one orange accent for the things that
   are done. */

:root {
  --page: #f1f5fa;
  --page-deep: #e6edf6;
  --card: #ffffff;
  --ink: #101827;
  --ink-soft: #4b5768;
  --ink-faint: #6d7b8e;
  --navy: #10508f;
  --navy-deep: #0b3a68;
  --navy-ink: #0d3c68;
  --navy-soft: #dceaf8;
  --amber: #f0a83c;
  --amber-deep: #b06f0a;
  --rule: #d4dfec;
  --rule-strong: #b6c4d8;
  /* Only faces a device already has: no font is loaded from anywhere. */
  --sans: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --shadow-card: 0 1px 2px rgba(16, 24, 39, 0.04), 0 8px 20px rgba(16, 24, 39, 0.06);
  --shadow-lift: 0 2px 4px rgba(16, 24, 39, 0.06), 0 18px 40px rgba(16, 24, 39, 0.12);
}

* {
  box-sizing: border-box;
}

/* Classes that set display would otherwise override the hidden attribute. */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--page);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.3rem, 5.4vw, 3.6rem);
}

h2 {
  font-size: clamp(1.6rem, 3.1vw, 2.2rem);
}

h3 {
  font-size: 1.0625rem;
}

h1 em,
h2 em {
  font-style: normal;
  color: var(--navy);
  /* The one flourish on the page: a pencil-thin rule under the stressed word. */
  box-shadow: inset 0 -0.18em 0 var(--amber);
}

p {
  margin: 0.7rem 0 0;
}

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

.wrap {
  width: min(1140px, 100% - 2rem);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: var(--card);
  padding: 0.6rem 0.9rem;
  border-radius: 6px;
  box-shadow: var(--shadow-lift);
}

/* ---------------------------------------------------------------- header */

.top {
  position: sticky;
  top: 0;
  z-index: 8;
  background: rgba(241, 245, 250, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.top.scrolled {
  border-bottom-color: var(--rule);
  background: rgba(241, 245, 250, 0.96);
}

.top-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 4.1rem;
}

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

.brand-mark {
  width: 1.85rem;
  height: 1.85rem;
  flex: none;
}

.top-links {
  display: flex;
  gap: 1.1rem;
  margin-left: auto;
  font-size: 0.9375rem;
}

.top-links a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
}

.top-links a:hover {
  color: var(--navy);
  border-bottom-color: var(--amber);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.link {
  color: var(--ink-soft);
  font-size: 0.9375rem;
  text-decoration: none;
}

.link:hover {
  color: var(--navy);
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  border-radius: 7px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-small {
  padding: 0.45rem 0.85rem;
  font-size: 0.9375rem;
}

.btn-ink {
  background: var(--navy);
  border-color: var(--navy-deep);
  color: #fff;
  box-shadow: var(--shadow-card);
}

.btn-ink:hover {
  background: var(--navy-deep);
}

.btn-accent {
  background: var(--amber);
  border-color: var(--amber-deep);
  color: #2a1c02;
  box-shadow: var(--shadow-card);
}

.btn-plain {
  background: var(--card);
  border-color: var(--rule-strong);
  color: var(--navy-ink);
}

.btn-plain:hover {
  border-color: var(--navy);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.btn-ghost:hover {
  border-color: #fff;
}

/* ---------------------------------------------------------------- hero */

.hero {
  /* A faint blueprint grid: a form on a desk, not a photograph. */
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(241, 245, 250, 0) 70%),
    repeating-linear-gradient(0deg, rgba(16, 80, 143, 0.045) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(16, 80, 143, 0.045) 0 1px, transparent 1px 28px);
  border-bottom: 1px solid var(--rule);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(2.8rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5.5rem);
}

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

.lede {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--ink-soft);
  max-width: 34em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.assurances {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
  color: var(--ink-faint);
}

.assurances li::before {
  content: "\2713";
  color: var(--navy);
  font-weight: 700;
  margin-right: 0.4rem;
}

/* The illustration: a phone with a waiver on it, and the list of copies. */

.stage {
  display: grid;
  grid-template-columns: minmax(0, 210px) minmax(0, 1fr);
  gap: 1.2rem;
  align-items: center;
}

.stage-phone {
  background: #1b2533;
  border-radius: 22px;
  padding: 0.5rem 0.5rem 0.75rem;
  box-shadow: var(--shadow-lift);
}

.phone-top {
  display: flex;
  justify-content: center;
  padding: 0.25rem 0 0.4rem;
}

.phone-dot {
  width: 2.6rem;
  height: 0.3rem;
  border-radius: 999px;
  background: #3a4757;
}

.phone-screen {
  background: #fff;
  border-radius: 16px;
  padding: 0.85rem 0.8rem 1rem;
}

.phone-title {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
}

.phone-lines {
  display: grid;
  gap: 0.34rem;
  margin: 0.6rem 0 0.8rem;
}

.phone-lines i {
  height: 0.32rem;
  border-radius: 999px;
  background: var(--page-deep);
}

.phone-lines i.short {
  width: 72%;
}

.phone-lines i.shorter {
  width: 48%;
}

.phone-field {
  border: 1.5px solid var(--navy);
  border-radius: 6px;
  background: rgba(240, 168, 60, 0.12);
  padding: 0.3rem 0.4rem 0.1rem;
}

.phone-field-label {
  display: block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}

.phone-ink {
  display: block;
  width: 100%;
  height: 2rem;
}

.phone-check {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  margin-top: 0.6rem;
  font-size: 0.6875rem;
  color: var(--ink-soft);
}

.phone-tick {
  color: var(--navy);
  font-weight: 700;
}

.stage-copies {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.stage-copies li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--navy);
  border-radius: 6px;
  padding: 0.55rem 0.7rem;
  box-shadow: var(--shadow-card);
  color: var(--ink-soft);
}

.stage-copies li.waiting {
  border-left-color: var(--amber);
}

.copy-tick {
  color: #147a4a;
  font-weight: 700;
}

.copy-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--amber);
  flex: none;
}

/* ---------------------------------------------------------------- sections */

.section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.section-tint {
  background: var(--page-deep);
  border-block: 1px solid var(--rule);
}

.section-head {
  max-width: 44rem;
  margin-bottom: 2.2rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.5rem), 1fr));
  gap: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 9px;
  padding: 1.15rem 1.2rem 1.3rem;
  box-shadow: var(--shadow-card);
}

.card h3 {
  color: var(--navy-ink);
}

.card p {
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.step {
  background: var(--card);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--navy);
  border-radius: 9px;
  padding: 1.1rem 1.2rem 1.3rem;
  box-shadow: var(--shadow-card);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  margin-bottom: 0.6rem;
  border-radius: 999px;
  background: var(--navy-soft);
  color: var(--navy-ink);
  font-size: 0.875rem;
  font-weight: 700;
}

.step p {
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

/* Facts: the privacy list */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 0.8rem 1.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.facts li {
  padding-left: 1.4rem;
  position: relative;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.facts li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--navy);
  font-weight: 700;
}

.facts strong {
  color: var(--ink);
}

/* ---------------------------------------------------------------- pricing */

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1rem;
  /* Stretch, so the four cards are the same height and their buttons line up
     however many lines a band's list happens to run to. */
  align-items: stretch;
}

.plan {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1.25rem 1.25rem 1.4rem;
  box-shadow: var(--shadow-card);
  height: 100%;
}

.plan-main {
  border-color: var(--navy);
  box-shadow: var(--shadow-lift);
}

.plan h3 {
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
}

.price {
  display: flex;
  flex-direction: column;
  margin: 0.5rem 0 0;
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.price small {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-faint);
}

.plan-for {
  margin-top: 0.7rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.plan ul {
  margin: 1rem 0 1.2rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.plan ul li {
  padding-left: 1.3rem;
  position: relative;
}

.plan ul li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--navy);
  font-weight: 700;
}

.plan-foot {
  margin-top: auto;
}

.plan-foot .btn {
  width: 100%;
}

.plan-note {
  margin-top: 0.6rem;
  font-size: 0.8125rem;
  color: var(--ink-faint);
}

.plans-foot {
  margin-top: 1.6rem;
  max-width: 48rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

/* ---------------------------------------------------------------- questions */

.faq {
  display: grid;
  gap: 0.6rem;
  max-width: 52rem;
}

.faq details {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 0.85rem 1rem;
}

.faq details[open] {
  border-color: var(--rule-strong);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.faq summary::marker {
  color: var(--navy);
}

.faq p {
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

/* ---------------------------------------------------------------- closing */

.closing {
  background: var(--navy-deep);
  color: #fff;
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.closing-inner {
  text-align: center;
}

.closing h2 em {
  color: #fff;
  box-shadow: inset 0 -0.18em 0 var(--amber);
}

.closing p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 38rem;
  margin-inline: auto;
}

.closing .cta-row {
  justify-content: center;
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  padding: 2.4rem 0 2.8rem;
  font-size: 0.9375rem;
}

.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
}

.foot-brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
}

.site-footer p {
  margin-top: 0.3rem;
  color: rgba(255, 255, 255, 0.6);
}

.site-footer h3 {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.5rem;
}

.site-footer nav {
  display: grid;
  gap: 0.3rem;
  align-content: start;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ---------------------------------------------------------------- arrival
   The page must read correctly with scripts off, so nothing is hidden until
   landing script has put "js" on <html> (xwaivers.js). */

html.js .reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

html.js .reveal.in {
  opacity: 1;
  transform: none;
}

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

  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover {
    transform: none;
  }
}

/* ---------------------------------------------------------------- narrow */

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .stage {
    grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
    max-width: 34rem;
  }

  .top-links {
    display: none;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 1rem;
  }

  .stage {
    grid-template-columns: minmax(0, 1fr);
  }

  .stage-phone {
    max-width: 15rem;
  }

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

  .cta-row .btn {
    width: 100%;
  }
}
