/* ==========================================================================
   DocoForm — docoform.com
   Plain CSS on purpose: this page has no build step and shouldn't need one.
   The palette is the app's own, taken from the logo artwork.
   ========================================================================== */

:root {
  --ink: #283a56;
  --ink-soft: #3b5175;
  --paper: #f4f5f7;
  --white: #ffffff;
  --amber: #e5a232;
  --amber-dark: #c98f2c;
  --slate: #64748b;
  --hairline: #e2e4e8;

  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --shell: 1120px;
  --radius: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* The sticky bar would otherwise sit over the top of whatever a footer
     link jumped to. */
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 12px 20px;
  z-index: 100;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  padding: 12px 22px;
  border-radius: 8px;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn-lg {
  padding: 15px 28px;
  font-size: 16px;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-primary {
  background: var(--amber);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--amber-dark);
}

.btn-ghost-dark {
  border-color: var(--hairline);
  color: var(--ink);
  background: var(--white);
}

.btn-ghost-dark:hover {
  border-color: var(--ink);
}

.btn-ghost-light {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
  background: transparent;
}

.btn-ghost-light:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

/* --- navigation --------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}

.nav > .container {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 28px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 28px;
  margin-right: auto;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--slate);
  text-decoration: none;
}

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

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  margin-left: auto;
  padding: 0 10px;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--hairline);
  background: var(--white);
}

/* The rule above is why the menu would not close. The button sets the
   `hidden` attribute, which the browser honours with display:none from its
   own stylesheet - and any author rule beats that, so `display: flex` won
   every time and the menu sat open permanently on every phone. Saying it
   here, at the same specificity, puts the attribute back in charge. */
.mobile-menu[hidden] {
  display: none;
}

.mobile-menu a {
  padding: 12px 4px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
}

.mobile-menu .btn {
  margin-top: 8px;
  justify-content: center;
}

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

.hero {
  background: var(--ink);
  color: var(--white);
  padding: 84px 0 96px;
  overflow: hidden;
}

.hero > .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  margin-bottom: 22px;
}

.hero .lead {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.82);
  max-width: 56ch;
  margin-bottom: 30px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-note {
  margin-top: 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

/* The phone mock-up. Built from divs rather than a screenshot so it stays
   sharp and costs nothing to download. */
.phone {
  justify-self: center;
  width: 288px;
  max-width: 100%;
  background: #1b283c;
  border: 8px solid #162132;
  border-radius: 34px;
  padding: 10px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.phone-screen {
  background: var(--paper);
  border-radius: 24px;
  overflow: hidden;
}

.phone-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  font-size: 11px;
  color: var(--slate);
  background: var(--white);
  border-bottom: 1px solid var(--hairline);
}

.phone-bar .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3fb950;
}

/* --- the hero mock-up's four-scene loop ---------------------------------- */

/* Upload, publish, fill in, sign and send: one 16-second loop, four seconds
   a scene. It is CSS rather than a GIF or an MP4 because a recording of a
   288px phone would either be blurry on a retina screen or a megabyte to
   download, and this is neither.

   Everything - the scene itself and every moving part inside it - runs on
   the same 16s clock and is pushed into its slot by a negative delay. So a
   scene's contents can never drift out of step with the scene, and there is
   no JavaScript to run. --d is set once per scene and inherited by its
   children, which is what keeps that from being four copies of the same
   rules. */
.stage {
  position: relative;
  /* Tall enough for the longest scene - sign and send - and no taller, so
     the shorter ones don't leave the phone looking half empty. */
  height: 256px;
}

.scene {
  position: absolute;
  inset: 0;
  padding: 14px 14px 16px;
  opacity: 0;
  animation: scene-cycle 16s var(--d) infinite;
}

.scene-1 { --d: 0s; }
.scene-2 { --d: -12s; }
.scene-3 { --d: -8s; }
.scene-4 { --d: -4s; }

@keyframes scene-cycle {
  0% { opacity: 0; transform: translateY(10px); }
  3% { opacity: 1; transform: none; }
  22% { opacity: 1; transform: none; }
  25% { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 0; transform: translateY(10px); }
}

.scene-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-dark);
  background: rgba(229, 162, 50, 0.16);
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.scene-note {
  margin: 12px 0 0;
  font-size: 10.5px;
  color: var(--slate);
  text-align: center;
}

.scene-note.found,
.scene-note.sent {
  color: #2f7d4f;
  font-weight: 600;
  opacity: 0;
}

/* 1 - upload */

.drop {
  border: 1.5px dashed #c3cbd8;
  border-radius: 8px;
  padding: 18px 14px;
  text-align: center;
  background: var(--white);
}

.file-icon {
  display: block;
  width: 26px;
  height: 26px;
  margin: 0 auto 10px;
  color: var(--amber);
}

.file-name {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}

.bar {
  display: block;
  height: 5px;
  border-radius: 999px;
  background: #e5e8ee;
  overflow: hidden;
}

.bar-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--amber);
  animation: bar-fill 16s var(--d) infinite;
}

@keyframes bar-fill {
  0%, 4% { width: 0; }
  16%, 100% { width: 100%; }
}

.scene-note.found {
  animation: note-in 16s var(--d) infinite;
}

@keyframes note-in {
  0%, 16% { opacity: 0; }
  19%, 25% { opacity: 1; }
  26%, 100% { opacity: 0; }
}

/* 2 - publish */

.share {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 8px 9px;
}

.share-link {
  flex: 1;
  min-width: 0;
  font-size: 10.5px;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pop {
  opacity: 0;
  animation: pop 16s var(--d) infinite;
}

@keyframes pop {
  0%, 8% { opacity: 0; transform: scale(0.8); }
  12% { opacity: 1; transform: scale(1.12); }
  15%, 25% { opacity: 1; transform: scale(1); }
  26%, 100% { opacity: 0; transform: scale(0.8); }
}

.qr {
  width: 88px;
  height: 88px;
  margin: 16px auto 0;
  padding: 6px;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 6px;
}

.qr svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: var(--ink);
}

/* 3 - filling it in */

.typed {
  display: block;
  width: 0;
  height: 7px;
  margin: 0 8px;
  border-radius: 4px;
  background: #93a3bc;
  animation: type-in 16s var(--d) infinite;
}

.typed.late {
  animation-name: type-in-late;
}

@keyframes type-in {
  0%, 5% { width: 0; }
  11%, 25% { width: 62%; }
  26%, 100% { width: 0; }
}

@keyframes type-in-late {
  0%, 11% { width: 0; }
  17%, 25% { width: 46%; }
  26%, 100% { width: 0; }
}

.total {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
}

.t-zero {
  color: #9aa4b4;
  animation: total-out 16s var(--d) infinite;
}

.t-sum {
  opacity: 0;
  animation: total-in 16s var(--d) infinite;
}

@keyframes total-out {
  0%, 17% { opacity: 1; }
  19%, 100% { opacity: 0; }
}

@keyframes total-in {
  0%, 17% { opacity: 0; }
  19%, 25% { opacity: 1; }
  26%, 100% { opacity: 0; }
}

/* The one moment worth drawing the eye to: the total the PDF worked out
   for itself, the instant it lands. */
.pill.flash {
  animation: flash 16s var(--d) infinite;
}

@keyframes flash {
  0%, 17% { background: #dfe4ec; color: var(--ink-soft); }
  19% { background: var(--amber); color: var(--ink); }
  24%, 100% { background: #dfe4ec; color: var(--ink-soft); }
}

/* 4 - sign and send */

.scene-4 .sig path {
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
  animation: draw-sig 16s var(--d) infinite;
}

@keyframes draw-sig {
  0%, 4% { stroke-dashoffset: 340; }
  14%, 25% { stroke-dashoffset: 0; }
  26%, 100% { stroke-dashoffset: 340; }
}

.pop-sign {
  opacity: 0;
  animation: pop-sign 16s var(--d) infinite;
}

@keyframes pop-sign {
  0%, 14% { opacity: 0; transform: scale(0.8); }
  17% { opacity: 1; transform: scale(1.12); }
  19%, 25% { opacity: 1; transform: scale(1); }
  26%, 100% { opacity: 0; transform: scale(0.8); }
}

.submit {
  margin-top: 14px;
  padding: 9px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  background: var(--amber);
  border-radius: 6px;
  animation: press 16s var(--d) infinite;
}

@keyframes press {
  0%, 19% { transform: none; }
  21% { transform: scale(0.94); }
  23%, 100% { transform: none; }
}

.scene-note.sent {
  animation: note-in-late 16s var(--d) infinite;
}

@keyframes note-in-late {
  0%, 21% { opacity: 0; }
  23%, 25% { opacity: 1; }
  26%, 100% { opacity: 0; }
}

.doc-head {
  height: 9px;
  width: 62%;
  border-radius: 4px;
  background: var(--ink);
  opacity: 0.85;
  margin-bottom: 18px;
}

.doc-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.doc-label {
  flex: 0 0 62px;
  height: 7px;
  border-radius: 4px;
  background: #c9cfda;
}

.doc-label.short {
  flex-basis: 44px;
}

.doc-input {
  display: flex;
  align-items: center;
  flex: 1;
  height: 26px;
  border-radius: 5px;
  background: var(--white);
  border: 1px solid var(--hairline);
}

/* The value inside is positioned rather than laid out, because two of them
   share the box while one fades into the other. */
.doc-input.filled {
  position: relative;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  border-color: var(--amber);
}

.pill {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 999px;
  background: #dfe4ec;
  color: var(--ink-soft);
}

.pill.amber {
  background: var(--amber);
  color: var(--ink);
}

.doc-sign {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 8px 10px;
  background: var(--white);
  border: 1px solid var(--amber);
  border-radius: 6px;
}

.sig {
  flex: 1;
  height: 30px;
}

.sig path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 4;
  stroke-linecap: round;
}

/* --- strip -------------------------------------------------------------- */

.strip {
  background: var(--amber);
  color: var(--ink);
  text-align: center;
  padding: 16px 24px;
  font-weight: 600;
  font-size: 15px;
}

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

.section {
  padding: 88px 0;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-head .eyebrow {
  color: var(--amber-dark);
}

.section-head h2 {
  font-size: clamp(27px, 3.6vw, 38px);
}

.section-sub {
  margin-top: 16px;
  color: var(--slate);
  font-size: 17px;
}

/* --- steps -------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: none;
}

.step {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 30px 26px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.step p {
  color: var(--slate);
  font-size: 15.5px;
}

/* --- features ----------------------------------------------------------- */

.features {
  background: var(--paper);
}

.feature-grid {
  display: grid;
  gap: 24px;
}

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

.feature-grid-4 {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 24px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.feature-card.headline {
  border-top: 3px solid var(--amber);
}

.feature-card .icon {
  width: 28px;
  height: 28px;
  color: var(--amber-dark);
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--slate);
  font-size: 15px;
}

.secondary .feature-card {
  padding: 22px 20px;
  background: transparent;
  border-style: dashed;
}

.secondary .feature-card h3 {
  font-size: 16px;
}

.secondary .feature-card p {
  font-size: 14.5px;
}

/* --- why ---------------------------------------------------------------- */

.why-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.why h2 {
  font-size: clamp(27px, 3.6vw, 38px);
  margin-bottom: 20px;
}

.why .big {
  font-size: 18.5px;
  color: var(--slate);
  line-height: 1.7;
}

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

.pricing {
  background: var(--paper);
}

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  max-width: 860px;
  margin: 0 auto;
}

.plan {
  position: relative;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
}

.plan-featured {
  border-color: var(--amber);
  box-shadow: 0 12px 34px rgba(40, 58, 86, 0.09);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 30px;
  background: var(--amber);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

.plan h3 {
  font-size: 22px;
  margin-bottom: 4px;
}

.plan-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 6px 0 2px;
}

.plan-figure {
  font-family: var(--display);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
}

.plan-per {
  color: var(--slate);
  font-size: 15px;
}

.plan-price {
  color: var(--slate);
  font-size: 15px;
  margin-bottom: 20px;
}

/* The old price, struck through beside the yearly one. Kept quiet rather
   than shouted: the saving does the work, not the styling. */
.plan-was {
  color: var(--slate);
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}

.plan-save {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #d6f3e4;
  color: #0b7a50;
  font-size: 12px;
  font-weight: 700;
}

.guarantee {
  max-width: 640px;
  margin: 28px auto 0;
  padding: 20px 24px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--white);
  text-align: center;
}

.guarantee-title {
  font-family: var(--display);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.guarantee p + p {
  margin-top: 10px;
}

.guarantee p:not(.guarantee-title) {
  color: var(--slate);
  font-size: 15px;
}

.plan-list {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  flex: 1;
}

.plan-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 11px;
  font-size: 15.5px;
}

.plan-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 8px;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--amber-dark);
  border-bottom: 2px solid var(--amber-dark);
  transform: rotate(-45deg);
}

.plan-note a {
  color: var(--amber-dark);
}

.plan-note {
  max-width: 620px;
  margin: 28px auto 0;
  text-align: center;
  font-size: 14px;
  color: var(--slate);
}

/* --- faq ---------------------------------------------------------------- */

.faq-list {
  max-width: 780px;
  margin: 0 auto;
}

.faq-list details {
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 4px 20px;
  margin-bottom: 12px;
  background: var(--white);
}

.faq-list summary {
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 500;
  color: var(--amber-dark);
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: '\2013';
}

.faq-list details p {
  padding-bottom: 18px;
  color: var(--slate);
  font-size: 15.5px;
}

.faq-list details a {
  color: var(--amber-dark);
}

/* --- closing call to action --------------------------------------------- */

.cta-banner {
  background: var(--ink);
  color: var(--white);
  text-align: center;
  padding: 76px 0;
}

.cta-banner h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  margin-bottom: 12px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 26px;
}

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

footer {
  background: #1f2d43;
  color: rgba(255, 255, 255, 0.72);
  padding: 56px 0 30px;
  font-size: 15px;
}

.foot-top {
  display: grid;
  grid-template-columns: 1.1fr 2fr;
  gap: 44px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.foot-logo {
  height: 26px;
  width: auto;
  /* This is the inverted artwork, drawn white with the amber mark intact.
     It used to be the dark wordmark under filter: brightness(0) invert(1),
     which does turn it white - and flattens the amber to white with it,
     losing half the logo on the one background it most needed to show. */
  margin-bottom: 14px;
}

.foot-brand p {
  font-size: 14.5px;
  max-width: 34ch;
}

.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.foot-col {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.foot-col h4 {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 4px;
}

.foot-col a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 14.5px;
}

.foot-col a:hover {
  color: var(--amber);
}

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 22px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.55);
}

.foot-bottom a {
  color: rgba(255, 255, 255, 0.55);
}

.foot-bottom a:hover {
  color: var(--amber);
}

/* --- approvals ---------------------------------------------------------- */

.approvals {
  background: var(--paper);
}

.approval-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
}

/* The rail is a real ordered list: the order of the signees is the whole
   point of the feature, so it should still read as an order with the CSS
   switched off. */
.rail {
  list-style: none;
  margin: 0;
  padding: 24px 22px;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}

.rail-step {
  position: relative;
  display: flex;
  gap: 14px;
  padding-bottom: 26px;
}

.rail-step:last-child {
  padding-bottom: 0;
}

/* The line joining one signee to the next, drawn from each mark down to
   the one below it. */
.rail-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 13px;
  top: 30px;
  bottom: 4px;
  width: 2px;
  background: var(--hairline);
}

.rail-step.is-done:not(:last-child)::before {
  background: var(--amber);
}

.rail-mark {
  flex: 0 0 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.rail-mark svg {
  width: 14px;
  height: 14px;
}

.rail-step.is-done .rail-mark {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
}

/* The step it is sitting on now: a dot inside a ring rather than a tick, so
   at a glance you can see where it has got to. */
.rail-step.is-now .rail-mark {
  border-color: var(--amber);
}

.rail-step.is-now .rail-mark::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber);
}

.rail-text h3 {
  font-size: 15px;
  margin: 4px 0 2px;
}

.rail-text p {
  font-size: 14px;
  color: var(--slate);
  margin: 0;
}

.rail-step:not(.is-done):not(.is-now) .rail-text h3,
.rail-step:not(.is-done):not(.is-now) .rail-text p {
  color: #9aa4b4;
}

.approval-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px 32px;
}

.approval-points h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.approval-points p {
  font-size: 15px;
  color: var(--slate);
  margin: 0;
}

/* --- narrower screens --------------------------------------------------- */

@media (max-width: 960px) {
  .hero > .container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .steps,
  .feature-grid-3 {
    grid-template-columns: 1fr;
  }

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

  .foot-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .approval-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 780px) {
  .nav-links,
  .nav-right {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav > .container {
    gap: 12px;
  }

  .hero {
    padding: 60px 0 68px;
  }

  .section {
    padding: 64px 0;
  }

  .plans {
    grid-template-columns: 1fr;
  }

  .plan-featured {
    margin-top: 10px;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

  .feature-grid-4 {
    grid-template-columns: 1fr;
  }

  .foot-cols {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .approval-points {
    grid-template-columns: 1fr;
  }

  .hero-ctas .btn {
    width: 100%;
  }
}

/* The menu is only ever opened by a tap, so it has no business appearing
   on a wide screen even if it was left open on a narrow one. */
@media (min-width: 781px) {
  .mobile-menu {
    display: none;
  }
}

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

  * {
    transition: none !important;
    animation: none !important;
  }

  /* With the animation off, all four scenes would sit on top of one another,
     so hold the last: a filled total, a signature and a Submit button, which
     is the picture the whole sequence is working towards anyway. */
  .scene-1,
  .scene-2,
  .scene-3 {
    display: none;
  }

  .scene-4,
  .scene-4 .pop-sign,
  .scene-4 .scene-note.sent {
    opacity: 1;
    transform: none;
  }

  .scene-4 .sig path {
    stroke-dashoffset: 0;
  }
}
