/* FairwayDocs's public website. One file, no framework, no outside fonts or scripts: the page
   asks nothing of any other server. Colours match the application's. */
:root {
  --ink: #0f1b2d;
  --ink-soft: #46546a;
  --ink-faint: #71809a;
  --page: #ffffff;
  --tint: #f3f6fb;
  --line: #e1e6ee;
  --brand: #1f56d8;
  --brand-dark: #1845b3;
  --brand-soft: #e9f0ff;
  --night: #0c1a30;
  --green: #0f7b3d;
  --green-soft: #e2f6ea;
  --amber: #b76a00;
  --amber-soft: #fff3dc;
  --red: #b3261e;
  --radius: 12px;
  --shadow: 0 1px 2px rgb(15 27 45 / 6%), 0 8px 24px rgb(15 27 45 / 7%);
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--page);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

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

h2 {
  max-width: 22ch;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
}

h3 {
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

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

.wrap {
  width: min(72rem, 100% - 2.5rem);
  margin-inline: auto;
}

.narrow {
  width: min(46rem, 100% - 2.5rem);
}

.center {
  text-align: center;
}

.center h2 {
  margin-inline: auto;
}

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

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  padding: 0.5rem 0.8rem;
  background: #fff;
  border-radius: 8px;
}

:focus-visible {
  outline: 3px solid rgb(31 86 216 / 45%);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------- top bar */

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgb(255 255 255 / 88%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.top-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 4rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  color: #fff;
  background: linear-gradient(135deg, #3b7bff, var(--brand));
  border-radius: 8px;
}

.top nav {
  display: flex;
  gap: 1.4rem;
  margin-left: 1rem;
}

.top nav a,
.quiet {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
}

.top nav a:hover,
.quiet:hover {
  color: var(--ink);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: var(--brand);
  border: 1px solid var(--brand);
  border-radius: 9px;
  transition: background 0.12s ease;
}

.button:hover {
  background: var(--brand-dark);
}

.button.big {
  padding: 0.8rem 1.35rem;
  font-size: 1.02rem;
}

.button.secondary {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

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

.button.light {
  color: var(--night);
  background: #fff;
  border-color: #fff;
}

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

.hero {
  padding: 4.5rem 0 5rem;
  background:
    radial-gradient(60rem 30rem at 85% -10%, #dfe9ff 0%, transparent 60%),
    linear-gradient(180deg, #f6f9ff 0%, #fff 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 3.5rem;
  align-items: center;
}

.eyebrow {
  margin-bottom: 0.8rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand);
}

.lead {
  max-width: 34rem;
  margin-top: 1.2rem;
  font-size: 1.15rem;
  color: var(--ink-soft);
}

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

.ticks {
  display: grid;
  gap: 0.45rem;
  margin: 1.8rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
}

.ticks li {
  padding-left: 1.6rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f7b3d' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")
    left 0.25em / 1.05rem no-repeat;
}

/* The drawing of the review screen. */
.mock {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 2px 4px rgb(15 27 45 / 6%), 0 24px 60px rgb(15 27 45 / 14%);
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 0.9rem;
  font-size: 0.8rem;
  background: #f6f8fb;
  border-bottom: 1px solid var(--line);
}

.mock-bar span {
  width: 0.6rem;
  height: 0.6rem;
  background: #d5dbe6;
  border-radius: 50%;
}

.mock-bar b {
  margin-left: 0.5rem;
  font-weight: 600;
}

.mock-bar i {
  margin-left: auto;
  padding: 0.1rem 0.55rem;
  font-style: normal;
  font-weight: 600;
  color: var(--amber);
  background: var(--amber-soft);
  border-radius: 999px;
}

.mock-body {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 1rem;
  padding: 1rem;
  background: var(--tint);
}

.paper {
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.paper-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  font-size: 0.75rem;
}

.paper-head small {
  color: var(--ink-faint);
}

.line {
  height: 0.5rem;
  margin-bottom: 0.45rem;
  background: #e6eaf1;
  border-radius: 3px;
}

.w80 {
  width: 80%;
}

.w70 {
  width: 70%;
}

.w55 {
  width: 55%;
}

.paper-table {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 0.3rem;
  margin: 0.9rem 0;
}

.paper-table div {
  height: 0.55rem;
  background: #eef1f6;
  border-radius: 2px;
}

.paper-total {
  display: flex;
  justify-content: space-between;
  padding-top: 0.6rem;
  font-size: 0.78rem;
  border-top: 1px solid var(--line);
}

.paper-total strong {
  padding: 0 0.25rem;
  background: #fff3c4;
  border-radius: 3px;
}

.fields {
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.1rem 0.5rem;
  align-items: center;
  padding: 0.4rem 0.6rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.field label {
  grid-column: 1 / -1;
  font-size: 0.66rem;
  color: var(--ink-faint);
}

.field div {
  font-size: 0.82rem;
  font-weight: 600;
}

.field em {
  padding: 0.05rem 0.45rem;
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 600;
  border-radius: 999px;
}

.field.check {
  background: #fffaf0;
  border-color: #f2d39b;
}

.high {
  color: var(--green);
  background: var(--green-soft);
}

.medium,
.low {
  color: var(--amber);
  background: var(--amber-soft);
}

.mock-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.mock-approve,
.mock-save {
  padding: 0.35rem 0.8rem;
  border-radius: 7px;
}

.mock-approve {
  color: #fff;
  background: var(--brand);
}

.mock-save {
  background: #fff;
  border: 1px solid var(--line);
}

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

.section {
  padding: 5rem 0;
}

.tinted {
  background: var(--tint);
}

.section-lead {
  max-width: 44rem;
  margin-top: 0.9rem;
  font-size: 1.08rem;
  color: var(--ink-soft);
}

.center .section-lead {
  margin-inline: auto;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

.steps li,
.cards li,
.panel {
  padding: 1.4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.steps p,
.cards p {
  margin-top: 0.5rem;
  font-size: 0.96rem;
  color: var(--ink-soft);
}

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

.step-number.you {
  color: #fff;
  background: var(--brand);
}

.cards {
  display: grid;
  gap: 1.1rem;
  margin: 2.2rem 0 0;
  padding: 0;
  list-style: none;
}

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

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

.cards li.plain {
  background: var(--brand-soft);
  border-color: #c9dafc;
}

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2.2rem;
}

.list {
  display: grid;
  gap: 0;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
}

.list li {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}

.list span {
  color: var(--ink-soft);
}

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

.example {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.1rem 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--amber);
  background: var(--amber-soft);
  border-radius: 999px;
}

.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  margin-top: 2.4rem;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.plan.popular {
  border-color: #b9cdfb;
  box-shadow: var(--shadow);
}

.plan.chosen {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgb(31 86 216 / 16%);
}

.plan.chosen::after {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  padding: 0.1rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--green);
  content: 'Best for your numbers';
  background: var(--green-soft);
  border-radius: 999px;
}

.plan.custom {
  color: #dfe7f5;
  background: var(--night);
  border-color: var(--night);
}

.plan-tag {
  position: absolute;
  top: -0.7rem;
  left: 1.25rem;
  padding: 0.1rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: var(--brand);
  border-radius: 999px;
}

.plan-for {
  margin-top: 0.3rem;
  font-size: 0.92rem;
  color: var(--ink-faint);
}

.plan.custom .plan-for {
  color: #9fb0cc;
}

.plan-price {
  margin: 1.1rem 0;
  color: var(--ink-soft);
}

.plan.custom .plan-price {
  color: #fff;
}

.plan-price strong {
  font-size: 1.9rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.plan.custom .plan-price strong {
  color: #fff;
}

.plan ul {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0 0 1.6rem;
  font-size: 0.94rem;
  list-style: none;
}

.plan li {
  padding-left: 1.4rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f56d8' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")
    left 0.3em / 0.95rem no-repeat;
}

.small {
  margin-top: 1.1rem;
  font-size: 0.88rem;
  color: var(--ink-faint);
}

/* ---------------------------------------------------------------- calculator */

.calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem;
  margin-top: 2.2rem;
  align-items: start;
}

.calc-form,
.calc-result {
  padding: 1.6rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.calc-result {
  position: sticky;
  top: 5rem;
  box-shadow: var(--shadow);
}

fieldset {
  display: grid;
  gap: 0.4rem;
  margin: 0 0 1.4rem;
  padding: 0;
  border: 0;
}

fieldset:last-child {
  margin-bottom: 0;
}

legend {
  margin-bottom: 0.5rem;
  padding: 0;
  font-weight: 700;
}

label {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
}

input[type='number'] {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid #c5cddb;
  border-radius: 8px;
}

.pair {
  display: grid;
  grid-template-columns: 1fr 7.5rem;
  gap: 0.9rem;
  align-items: center;
}

input[type='range'] {
  width: 100%;
  accent-color: var(--brand);
}

.result-plan {
  color: var(--ink-soft);
}

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

.result-big {
  margin: 0.2rem 0 1rem;
}

.result-big span {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.result-big small {
  color: var(--ink-faint);
}

.result-lines {
  display: grid;
  margin: 0;
}

.result-lines div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--line);
}

.result-lines dt {
  color: var(--ink-soft);
}

.result-lines dd {
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.result-lines .total dt,
.result-lines .total dd {
  font-weight: 700;
  color: var(--ink);
}

.good {
  color: var(--green);
}

.bad {
  color: var(--red);
}

.note {
  margin-top: 0.8rem;
  padding: 0.7rem 0.9rem;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-radius: 8px;
}

.compare {
  margin: 1.4rem 0;
  padding: 1.1rem;
  background: var(--tint);
  border-radius: 10px;
}

.compare h3 {
  margin-bottom: 0.6rem;
}

.calc-result > .button {
  width: 100%;
}

/* ---------------------------------------------------------------- questions, contact, foot */

details {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

details:first-of-type {
  margin-top: 1.8rem;
  border-top: 1px solid var(--line);
}

summary {
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
}

details p {
  margin-top: 0.7rem;
  color: var(--ink-soft);
}

.cta {
  color: #fff;
  background:
    radial-gradient(40rem 20rem at 20% 0%, #1b3d7a 0%, transparent 70%),
    var(--night);
}

.cta .section-lead {
  margin-bottom: 1.8rem;
  color: #b9c6dd;
}

.on-dark,
.on-dark a {
  color: #b9c6dd;
}

.foot {
  padding: 1.6rem 0;
  font-size: 0.9rem;
  color: var(--ink-faint);
  border-top: 1px solid var(--line);
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

/* ---------------------------------------------------------------- smaller screens */

@media (max-width: 62rem) {
  .hero-grid,
  .calc,
  .two {
    grid-template-columns: 1fr;
  }

  .steps,
  .cards.four,
  .plans {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards.three {
    grid-template-columns: 1fr;
  }

  .top nav {
    display: none;
  }

  .calc-result {
    position: static;
  }
}

@media (max-width: 36rem) {
  .steps,
  .cards.four,
  .plans,
  .mock-body {
    grid-template-columns: 1fr;
  }

  .list li {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .quiet {
    display: none;
  }
}

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

/* ---------------------------------------------------------------- in pilot, and the trial */

.pilot {
  display: inline-block;
  padding: 0.05rem 0.5rem;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 600;
  line-height: 1.5;
  color: var(--amber);
  background: var(--amber-soft);
  border-radius: 999px;
  white-space: nowrap;
  vertical-align: middle;
}

.trial-line {
  margin: 1.6rem 0 0;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface, #fff);
}

.cta .button + .button {
  margin-left: 0.6rem;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.6);
}
