/*
  SuitePilot by TechBoss: the public site. One style sheet, no outside files.
  Colours are named once here: Pilot Navy, Ink and Mist from the brand sheet, white, and
  five of the site's own (two greys for quiet text and thin lines, a pale blue for quiet
  text on the dark parts, a blue for thin lines on the dark parts, and Ink made see-through
  for shadows). Signal Cyan is the dot of the logo only, so it is not used in this file.
*/
:root {
  --navy: #102a83;
  --ink: #0e1633;
  --mist: #eef4fb;
  --white: #ffffff;
  --quiet: #474f6b;
  --line: #c9d5e8;
  --haze: #c7d3f2;
  --rule: #3a4fa6;
  --shade: #0e163333;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-brand: "Space Grotesk", var(--font-body);
  --width: 74rem;
  --gap: 1.5rem;
  --radius: 1rem;
  --header-height: 4.25rem;
}

@font-face {
  font-family: "Space Grotesk";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("/assets/fonts/SpaceGrotesk-Bold.woff2") format("woff2");
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-brand);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 0.75rem;
  text-wrap: balance;
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(2rem, 8.6vw, 4rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.7rem, 4.4vw, 2.6rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

figure {
  margin: 0;
}

a {
  color: var(--navy);
  text-underline-offset: 0.2em;
}

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

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: 0.25rem;
}

.wrap {
  width: 100%;
  max-width: var(--width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Kept for screen readers, out of sight. */
.visually-hidden,
.screens-pick,
.billing legend,
.billing input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 20;
  padding: 0.6rem 1rem;
  background: var(--white);
  color: var(--navy);
  border-radius: 0.5rem;
  font-weight: 700;
}

.skip-link:focus {
  top: 0.75rem;
  outline-color: var(--white);
}

.quiet {
  color: var(--quiet);
}

.lead {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  max-width: 38rem;
}

.eyebrow {
  margin-bottom: 0.6rem;
  color: var(--navy);
  font-family: var(--font-brand);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ----- The dark parts: header, hero, page heads, the price section, the closing band,
   the footer. White text, and white focus rings. ----- */

.site-header,
.hero,
.page-head,
.section-dark,
.closing,
.site-footer {
  background-color: var(--ink);
  color: var(--white);
}

.hero,
.page-head {
  background-image: linear-gradient(180deg, var(--ink) 0%, var(--navy) 100%);
}

.section-dark,
.closing {
  background-image: linear-gradient(180deg, var(--navy) 0%, var(--ink) 100%);
}

.site-header :focus-visible,
.hero :focus-visible,
.page-head :focus-visible,
.section-dark :focus-visible,
.closing :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--white);
}

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

/* ----- Header. On a narrow screen its links wrap onto a second line and it scrolls away
   with the page; from tablet width it is one line and stays in view. ----- */

.site-header {
  border-bottom: 1px solid var(--ink);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

/* Set by the script once the page has been scrolled. Without it the header is plain. */
.site-header.is-scrolled {
  border-color: var(--rule);
  box-shadow: 0 0.5rem 1.5rem var(--shade);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 1rem;
  min-height: var(--header-height);
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.logo-link {
  flex: none;
  display: inline-block;
  /* The brand sheet asks for clear space around the logo: the height of its dot. */
  padding: 0.4rem;
  margin-left: -0.4rem;
}

.logo-link img {
  height: 2.25rem;
  width: auto;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 1.4rem;
}

.site-nav a {
  display: inline-block;
  padding: 0.6rem 0;
  color: var(--white);
  font-weight: 600;
  font-size: 0.975rem;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* ----- Buttons and marks ----- */

.button {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border: 2px solid var(--navy);
  border-radius: 0.7rem;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 0.5rem 1rem var(--shade);
}

/* On the dark parts: a white button, and a navy one with a white outline. */
.button-light,
.button-light:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy);
}

.button-ghost {
  background: var(--navy);
  border-color: var(--white);
  color: var(--white);
}

.button-ghost:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy);
}

.badge {
  display: inline-block;
  padding: 0.1rem 0.55rem;
  border: 1px solid var(--navy);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.5;
  text-transform: uppercase;
  white-space: nowrap;
  vertical-align: middle;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.actions-note {
  margin: 0.85rem 0 0;
  color: var(--haze);
  font-size: 0.9rem;
}

/* ----- Hero ----- */

.hero {
  padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(3rem, 7vw, 5rem);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
}

.hero-copy,
.screens,
.trust {
  min-width: 0;
}

.hero h1 {
  margin-bottom: 1.25rem;
  font-size: clamp(2rem, 7vw, 3.5rem);
}

/* The headline is two short sentences, one to a line where there is room. */
.hero h1 span {
  display: block;
}

/* The trust row. The company line is a paragraph of its own, on a line of its own at
   every width, with a rule under it. The statements about the product are a list below
   the rule, and the one about processing choices is the last of them. */
.trust {
  display: grid;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.company-line {
  margin: 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-brand);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.trust-list {
  display: grid;
  gap: 0.6rem 2rem;
}

.trust-list li,
.ticks li {
  position: relative;
  padding-left: 1.6rem;
}

/* A tick, drawn with two borders. */
.trust-list li::before,
.ticks li::before {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: 0.3rem;
  width: 0.4rem;
  height: 0.75rem;
  border: solid var(--haze);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.trust-list li {
  color: var(--haze);
  font-size: 0.975rem;
}

/* The product screens: four stills in one place, chosen with radio buttons. With the
   style sheet off, all four follow each other with their captions. */
.screens-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.screens-tabs label {
  padding: 0.5rem 1rem;
  border: 1px solid var(--haze);
  border-radius: 999px;
  color: var(--white);
  font-size: 0.925rem;
  font-weight: 600;
  cursor: pointer;
}

.screens-window {
  display: grid;
}

.screen {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0s linear 0.45s;
}

.screen img {
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: 0.9rem;
  background-color: var(--mist);
  box-shadow: 0 1.5rem 3rem var(--shade), 0 0.25rem 0.75rem var(--shade);
}

.screen figcaption,
.screens-note {
  margin: 0.85rem 0 0;
  color: var(--haze);
  font-size: 0.9rem;
}

.screens-note {
  margin-top: 0.25rem;
}

#screen-documents:checked ~ .screens-window .screen-documents,
#screen-procedure:checked ~ .screens-window .screen-procedure,
#screen-model:checked ~ .screens-window .screen-model,
#screen-swimlane:checked ~ .screens-window .screen-swimlane {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

#screen-documents:checked ~ .screens-tabs [for="screen-documents"],
#screen-procedure:checked ~ .screens-tabs [for="screen-procedure"],
#screen-model:checked ~ .screens-tabs [for="screen-model"],
#screen-swimlane:checked ~ .screens-tabs [for="screen-swimlane"] {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy);
}

#screen-documents:focus-visible ~ .screens-tabs [for="screen-documents"],
#screen-procedure:focus-visible ~ .screens-tabs [for="screen-procedure"],
#screen-model:focus-visible ~ .screens-tabs [for="screen-model"],
#screen-swimlane:focus-visible ~ .screens-tabs [for="screen-swimlane"] {
  outline: 3px solid var(--white);
  outline-offset: 3px;
}

/* ----- Sections ----- */

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section-mist {
  background: var(--mist);
}

.section-head {
  max-width: 46rem;
  margin-bottom: 2.5rem;
}

.section-head p:last-child {
  margin-bottom: 0;
}

/* ----- Cards: documents, steps, tiers, plans ----- */

.cards,
.steps,
.tiers,
.plans {
  display: grid;
  gap: var(--gap);
}

.card,
.step,
.tier,
.plan {
  padding: 1.6rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card {
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-color: var(--navy);
  box-shadow: 0 0.75rem 1.75rem var(--shade);
}

/* A short bar above each document's name. */
.card h3::before {
  content: "";
  display: block;
  width: 2.25rem;
  height: 0.3rem;
  margin-bottom: 1.1rem;
  border-radius: 999px;
  background: var(--navy);
}

.card p,
.step p,
.tier p {
  margin: 0;
  color: var(--quiet);
}

.card .card-exports {
  margin-top: auto;
  padding-top: 1.1rem;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 700;
}

.steps {
  counter-reset: step;
}

.step {
  counter-increment: step;
}

.step h3::before {
  content: counter(step);
  display: block;
  margin-bottom: 0.6rem;
  color: var(--navy);
  font-size: 2.6rem;
  line-height: 1;
}

/* ----- Why it costs more than a notetaker ----- */

.section-dark .section-head p {
  color: var(--haze);
}

.compare {
  display: grid;
  gap: var(--gap);
}

.compare-side {
  padding: 1.6rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.compare-side h3 {
  margin-bottom: 1.1rem;
}

.ticks li {
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
}

.ticks li::before {
  top: 0.6rem;
}

.compare-ours {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink);
}

.compare-ours .ticks li::before {
  border-color: var(--navy);
}

.compare-note {
  margin: 1.5rem 0 0;
  color: var(--haze);
  font-size: 0.95rem;
}

/* ----- Built today, and coming soon ----- */

.built-list {
  display: grid;
  gap: 0 2.5rem;
  margin-top: 1.25rem;
}

.built-list li {
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
}

.built-list p {
  margin: 0;
  color: var(--quiet);
  font-size: 0.975rem;
}

.soon-block {
  margin-top: 3rem;
}

.soon-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.soon-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  background: var(--white);
  border: 1px dashed var(--quiet);
  border-radius: 0.7rem;
}

/* ----- Data protection tiers ----- */

.tier {
  border-top: 4px solid var(--navy);
}

.tier h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
}

.tier .tier-plans {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
}

/* ----- Plans ----- */

/* Monthly or yearly: two radio buttons, shown as one switch. */
.billing {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  min-width: 0;
  margin: 0 0 2rem;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 1.6rem;
  background: var(--white);
}

.billing label {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.billing label span {
  margin-left: 0.2rem;
  color: var(--quiet);
  font-size: 0.8rem;
  font-weight: 600;
}

.billing input:checked + label {
  background: var(--navy);
  color: var(--white);
}

.billing input:checked + label span {
  color: var(--white);
}

.billing input:focus-visible + label {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

.plan {
  display: flex;
  flex-direction: column;
}

.plan-name {
  font-size: 1.35rem;
}

.price {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.price-from,
.price-period,
.price-amount,
.price-unit {
  display: block;
}

.price-from,
.price-unit {
  color: var(--quiet);
  font-size: 0.9rem;
}

.price-amount {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 1.15;
}

.price-amount.price-words {
  padding-top: 1.3rem;
  font-size: 1.5rem;
}

/* Both prices are in the page. Where the browser can tell which billing is chosen, only
   that price is shown; where it cannot, both stay and the switch is left out. */
@supports selector(:has(*)) {
  .plans-area:has(#billing-monthly:checked) .price-period:not(.price-monthly),
  .plans-area:has(#billing-yearly:checked) .price-period:not(.price-yearly) {
    display: none;
  }
}

@supports not selector(:has(*)) {
  .billing {
    display: none;
  }
}

.plan-lines {
  flex: 1;
  margin-bottom: 1.5rem;
}

.plan-lines li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.4rem;
}

.plan-lines li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.95rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--navy);
}

.plan-action {
  margin: 0;
}

.plan-action .button {
  display: block;
}

.plan-action .note {
  display: block;
  margin-top: 0.6rem;
  color: var(--quiet);
  font-size: 0.9rem;
  text-align: center;
}

.after-grid {
  margin: 1.5rem 0 0;
}

/* ----- Questions ----- */

.faq {
  max-width: 50rem;
}

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

.faq-item summary {
  position: relative;
  padding: 1.1rem 2.5rem 1.1rem 0;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  list-style: none;
}

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

/* A plus that turns into a cross when the answer is open. */
.faq-item summary::before,
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 0.35rem;
  top: 50%;
  width: 0.9rem;
  height: 2px;
  background: var(--navy);
  transition: transform 0.2s ease;
}

.faq-item summary::after {
  transform: rotate(90deg);
}

.faq-item[open] summary::before {
  transform: rotate(45deg);
}

.faq-item[open] summary::after {
  transform: rotate(135deg);
}

.faq-item p {
  max-width: 44rem;
  color: var(--quiet);
}

/* ----- The closing band ----- */

.closing {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.closing-copy {
  max-width: 40rem;
}

.closing-copy p {
  color: var(--haze);
}

/* ----- Plans page, legal pages and the 404 page ----- */

.page-head {
  padding: clamp(2.5rem, 7vw, 4.5rem) 0;
}

.page-head h1 {
  font-size: clamp(2rem, 6vw, 3.25rem);
}

.page-head .lead {
  margin-bottom: 0;
  color: var(--haze);
}

.draft-notice {
  display: inline-block;
  margin: 0 0 1.5rem;
  padding: 0.85rem 1.25rem;
  border-radius: 0.7rem;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
}

.legal > * {
  max-width: 48rem;
}

.legal h2 {
  margin-top: 2.25rem;
  font-size: 1.35rem;
}

.legal h2:first-child {
  margin-top: 0;
}

.legal p {
  color: var(--quiet);
}

/* ----- Footer ----- */

.site-footer {
  padding: 3rem 0 2rem;
}

.site-footer a {
  color: var(--white);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem 3rem;
}

.footer-brand img {
  height: 2.25rem;
  width: auto;
  margin: 0.4rem 0.4rem 0.75rem 0;
}

.footer-brand p {
  margin: 0;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}

.footer-nav a {
  display: inline-block;
  padding: 0.6rem 0;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.footer-bottom p {
  margin: 0;
}

.footer-line {
  font-weight: 700;
}

/* ----- Scroll reveals. Only the script adds "reveals" to the page, and only when motion
   is welcome, so without it nothing here applies and every part is in view. ----- */

.reveals .reveal {
  opacity: 0;
  transform: translateY(0.9rem);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveals .reveal.is-shown {
  opacity: 1;
  transform: none;
}

.reveals .reveal:nth-child(2) {
  transition-delay: 0.07s;
}

.reveals .reveal:nth-child(3) {
  transition-delay: 0.14s;
}

.reveals .reveal:nth-child(4) {
  transition-delay: 0.21s;
}

/* ----- Wider screens ----- */

@media (min-width: 40rem) {
  .cards,
  .steps,
  .plans {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Side by side, every card's price takes the same room, so the lists start level. */
  .price {
    min-height: 9.25rem;
  }

  .billing label {
    padding: 0.55rem 1.1rem;
    font-size: 1rem;
  }

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

  .trust-list {
    grid-template-columns: repeat(3, auto);
    justify-content: start;
  }
}

@media (min-width: 48rem) {
  /* From here the links fit on one line, so the header can stay in view. */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 10;
  }

  /* A part reached by a link or by the Tab key is never left under the sticky header. */
  html {
    scroll-padding-top: calc(var(--header-height) + 1rem);
  }
}

@media (min-width: 56rem) {
  .tiers,
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .compare {
    grid-template-columns: 1fr 1.5fr;
    align-items: start;
  }

  .compare-ours .ticks {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 1.5rem;
  }
}

@media (min-width: 62rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    grid-template-areas:
      "copy screens"
      "trust trust";
    align-items: center;
    gap: 3rem 3.5rem;
  }

  .hero-copy {
    grid-area: copy;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 3.9vw, 2.9rem);
  }

  .screens {
    grid-area: screens;
  }

  .trust {
    grid-area: trust;
  }

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

@media (min-width: 70rem) {
  .steps,
  .plans {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Where the reader's own colours replace the site's, the chosen screen and the chosen
   billing are shown by an outline, because their background is no longer there. */
@media (forced-colors: active) {
  .screens-pick:checked ~ .screens-tabs label,
  .billing input:checked + label {
    outline: 2px solid transparent;
  }

  #screen-documents:checked ~ .screens-tabs [for="screen-documents"],
  #screen-procedure:checked ~ .screens-tabs [for="screen-procedure"],
  #screen-model:checked ~ .screens-tabs [for="screen-model"],
  #screen-swimlane:checked ~ .screens-tabs [for="screen-swimlane"],
  .billing input:checked + label {
    outline: 3px solid Highlight;
    outline-offset: -3px;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .reveals .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header {
    position: static;
  }

  .reveals .reveal {
    opacity: 1;
    transform: none;
  }
}
