@font-face {
  font-family: "Instrument Sans";
  src: url("instrument-sans-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #111b40;
  --navy: #101843;
  --muted: #3f4e75;
  --cobalt: #243ed8;
  --yellow: #ffda42;
  --paper: #f7f8ff;
  --line: #c7cff3;
  --lavender: #e4e9ff;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --heading: "Instrument Sans", var(--sans);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--sans); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--heading); line-height: 1.06; letter-spacing: -.035em; }
h1 { font-size: clamp(2.25rem, 4.7vw, 4rem); }
h2 { font-size: clamp(1.4rem, 2.7vw, 2rem); }
p { color: var(--muted); }
a { color: var(--cobalt); text-underline-offset: .18em; }
button, input, select { font: inherit; }
:focus-visible { outline: 3px solid #9b3e15; outline-offset: 3px; }
.wrap { max-width: 1220px; margin-inline: auto; padding-inline: clamp(18px, 5vw, 64px); }
.preview-banner { padding: .55rem 1rem; text-align: center; background: var(--yellow); color: var(--navy); font-size: .9rem; }
.site-header { background: var(--navy); color: white; }
.bar, .section-header, .form-row, .panel, .export-row, nav { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bar, .section-header, .panel { justify-content: space-between; }
.bar { min-height: 72px; padding-block: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand span { border-radius: 8px; padding: 5px 8px; color: var(--navy); background: var(--yellow); }
.brand, .site-header nav a, .text-button { color: white; text-decoration: none; font-weight: 700; }
.site-header :focus-visible { outline-color: var(--yellow); }
.site-header nav a:hover, .site-header nav a[aria-current="page"], .text-button:hover { text-decoration: underline; }
.text-button { border: 0; background: transparent; padding: 0; cursor: pointer; }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 9px 15px; border: 1px solid transparent; border-radius: 8px; background: var(--cobalt); color: white; text-decoration: none; font-weight: 700; cursor: pointer; }
.button:hover { background: #192b9d; }
.button.secondary { background: transparent; border-color: #7281b8; color: var(--ink); }
.button.secondary:hover { background: var(--lavender); }
.landing-page {
  background: #fff;
}
.landing-page .site-header {
  border-bottom: 1px solid #ffffff22;
}
.landing-page .bar {
  gap: 8px 24px;
  min-height: 68px;
}
.landing-page nav {
  gap: 12px 24px;
}
.landing-page nav a {
  font-size: .94rem;
  font-weight: 600;
}
.hero {
  position: relative;
  isolation: isolate;
  text-align: center;
  background: radial-gradient(ellipse at 50% 90%, #192d83, transparent 74%), var(--navy);
  color: white;
}
.hero::before, .hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: url("hero-flight.webp") center top / min(calc(100% - 32px), 1580px) min(31vw, 390px) no-repeat;
  opacity: .38;
  filter: grayscale(1);
  pointer-events: none;
  content: "";
}
.hero-trails { display: none; }
.hero-inner {
  padding-block: clamp(102px, 10.8vw, 158px) clamp(52px, 6vw, 82px);
}
.hero h1 {
  max-width: 1030px;
  margin-inline: auto;
  font-size: clamp(2.35rem, 5.2vw, 4.5rem);
  line-height: 1.02;
  text-wrap: balance;
}
.hero h1 span {
  display: block;
  margin-top: .13em;
  color: #bac8ff;
}
.hero .lede {
  max-width: 57ch;
  margin: 22px auto 26px;
  color: #e0e6ff;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  text-wrap: pretty;
}
.button.hero-cta {
  min-height: 48px;
  padding-inline: 23px;
  background: var(--yellow);
  color: var(--navy);
}
.button.hero-cta:hover { background: #ffe579; }
.hero-cta:focus-visible { outline-color: white; }
.hero .hero-offer {
  margin-top: 12px;
  color: #e0e6ff;
  font-size: .9375rem;
}
.landing-section {
  padding-block: clamp(32px, 5vw, 56px) 30px;
}
.landing-section > h2 {
  text-align: center;
}
.workflow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: workflow;
}
.workflow-steps li {
  counter-increment: workflow;
  padding: clamp(18px, 2.2vw, 28px);
  border: 1px solid #dce2f4;
  border-radius: 14px;
  background: #f9faff;
  box-shadow: 0 5px 16px #10184308;
}
.workflow-steps li::before {
  content: counter(workflow);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: var(--lavender);
  color: var(--cobalt);
  font-weight: 750;
}
.workflow-steps h3 { font-size: 1.28rem; }
.workflow-steps p { margin-top: 9px; }
.workflow-guide { margin-top: 16px; text-align: center; }
.signin {
  padding-block: 16px clamp(36px, 6vw, 68px);
  scroll-margin-top: 20px;
}
.signin-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 22px 36px;
  padding: clamp(20px, 4vw, 38px);
  border: 1px solid #d8e0ff;
  border-radius: 16px;
  background: #eef2ff;
}
.signin .form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.signin input[type="email"] { width: 100%; }
.signin .signup-note { margin-top: 10px; font-size: .875rem; }
.signup-legal a { white-space: nowrap; }
.faq {
  max-width: 850px;
  padding-block: 0 clamp(32px, 5vw, 56px);
}
.faq h2 { margin-bottom: 18px; text-align: center; }
.faq details { border-top: 1px solid #dce2f4; }
.faq details:last-child { border-bottom: 1px solid #dce2f4; }
.faq summary {
  min-height: 44px;
  padding: 12px 4px;
  color: var(--navy);
  cursor: pointer;
  font-weight: 700;
}
.faq summary:hover { color: var(--cobalt); }
.faq details p { max-width: 66ch; padding: 0 4px 14px; }
.privacy {
  padding-block: clamp(28px, 4vw, 48px);
  border-top: 1px solid #dce2f4;
  background: var(--paper);
}
.privacy-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr);
  gap: 14px 36px;
}
.privacy h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
.privacy p { max-width: 66ch; }
.privacy p + p { margin-top: 10px; }
.plan-note { padding-block: 14px; font-size: .875rem; }
.site-footer {
  background: var(--navy);
  color: #e0e6ff;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-block: 20px;
  font-size: .95rem;
}
.site-footer p, .site-footer a { color: inherit; }
.site-footer a:focus-visible { outline-color: var(--yellow); }
.signin p, .section-header p, .work > p, .panel p, .narrow p, .rotate p { margin-top: 8px; }
label { display: block; font-weight: 650; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
input, select { min-width: 0; min-height: 44px; border: 1px solid #7281b8; border-radius: 6px; padding: 7px 10px; color: var(--ink); background: white; }
input[type="email"] { width: min(100%, 17rem); }
form > label { margin-bottom: 5px; }
.narrow { max-width: 700px; padding-block: clamp(36px, 7vw, 74px); }
.narrow p, .narrow form { margin-bottom: 18px; }
.work { padding-block: 40px; }
.panel { margin-block: 24px; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; background: white; }
.panel h2 { font-size: 1.25rem; }
.address, .senders span { overflow-wrap: anywhere; }
.address { font-weight: 750; color: var(--ink); }
.address-copy { margin-block: .5rem; }
.address-copy [hidden] { display: none; }
.referrals { max-width: 920px; }
.referrals h1 { font-size: clamp(2.35rem, 5vw, 3.5rem); }
.referral-link { display: block; width: 100%; }
.referral-copy .button { justify-self: start; }
.referral-copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 8px; }
.referral-copy [hidden] { display: none; }
.referral-totals { display: flex; flex-wrap: wrap; gap: 16px 36px; margin: 0; }
.referral-totals dd { margin: 0; font-size: 1.55rem; font-weight: 750; }
.referral-totals dt { color: var(--muted); }
@media (max-width: 550px) {
  .referral-copy { grid-template-columns: minmax(0, 1fr); }
}
.export-row { justify-content: flex-end; margin-bottom: 12px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: white; }
.table-scroll:focus-visible { outline-offset: -3px; }
table { width: 100%; min-width: 690px; border-collapse: collapse; }
th, td { text-align: left; vertical-align: top; padding: 12px; border-bottom: 1px solid var(--line); }
th { background: var(--lavender); font-size: .9rem; }
tr:last-child td { border-bottom: 0; }
.total { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.cell-note { display: block; max-width: 28ch; font-size: .88rem; color: var(--muted); }
.state-review, .state-failed { color: #8e350b; }
.empty { background: white; border: 1px dashed var(--line); border-radius: 10px; padding: 24px; }
.senders { list-style: none; padding: 0; max-width: 680px; }
.senders li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.senders small { color: var(--muted); }
.rotate { margin-top: 35px; }
.rotate form { margin-top: 10px; }
.review { padding-block: 24px 40px; }
.review-back { display: inline-block; font-size: .9rem; }
.review-header, .review-source, .review-actions, .review-removal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
}
.review-header {
  justify-content: space-between;
  margin-top: 10px;
}
.review-header h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
.review-source { margin-top: 4px; font-size: .9rem; overflow-wrap: anywhere; }
.review-source summary { color: var(--cobalt); cursor: pointer; }
.review-source blockquote { margin-block: 4px 0; }
.review-issue {
  margin-top: 12px;
  padding: 7px 12px;
  border-left: 3px solid #b95a22;
  background: #fff4e6;
  color: #763308;
  font-size: .9rem;
}
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
  margin-top: 14px;
}
.review-group {
  min-width: 0;
  padding: 12px 14px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}
.review-group h2 { margin-bottom: 8px; font-size: 1.2rem; }
.review-group dl { margin: 0; }
.review-field + .review-field { margin-top: 5px; }
.review-field label, .review-field dt { font-size: .83rem; font-weight: 650; }
.review-field input, .review-field select { width: 100%; }
.review-field dd { min-height: 1.55em; margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.review-total input, .review-total dd {
  background: var(--lavender);
  color: var(--ink);
  font-weight: 750;
}
.review-total dd { padding-inline: 8px; border-radius: 4px; }
.review-actions { margin-top: 12px; }
.review-actions p, .review-removal p { font-size: .875rem; }
.review-notes {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 8px 12px;
  margin-top: 16px;
}
.review-notes .review-field { flex: 1 1 250px; max-width: 520px; }
.expense-note {
  display: block;
  max-width: 26ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.expense-review { width: 1%; text-align: right; white-space: nowrap; }
th.expense-review { position: relative; }
.review-removal { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }

@media (min-width: 761px) {
  .review-field input, .review-field select { min-height: 34px; padding-block: 4px; font-size: .94rem; }
}
@media (max-width: 760px) {
  .review-grid { grid-template-columns: minmax(0, 1fr); }
}
blockquote { margin-inline: 0; border-left: 3px solid var(--cobalt); padding-left: 12px; color: var(--muted); }

@media (min-width: 761px) {
  /* Split the flight artwork so the envelope and the side icons can sit at different heights. */
  .hero::before, .hero::after {
    inset-block-end: auto;
    width: min(calc(100% - 32px), 1580px);
    height: min(31vw, 390px);
    margin-inline: auto;
    background-size: 100% 100%;
  }
  .hero::before {
    clip-path: inset(0 20% 64% 64%);
  }
  .hero::after {
    inset-block-start: clamp(76px, 8vw, 112px);
    clip-path: polygon(0 0, 19% 0, 19% 100%, 80% 100%, 80% 0, 100% 0, 100% 100%, 0 100%);
  }
  .hero-trails {
    display: block;
    position: absolute;
    z-index: -1;
    inset: 0 0 auto;
    width: min(calc(100% - 32px), 1580px);
    height: calc(min(31vw, 390px) + clamp(76px, 8vw, 112px));
    margin-inline: auto;
    overflow: visible;
    fill: none;
    stroke: #bdc9eb;
    stroke-opacity: .40;
    stroke-width: 3.5;
    stroke-dasharray: 1 11;
    stroke-linecap: round;
    pointer-events: none;
  }
}

@media (max-width: 760px) {
  .hero::after { content: none; }
  .hero::before {
    background-position: center bottom 10px;
    background-size: min(calc(100% - 24px), 460px) auto;
    opacity: .36;
  }
  .hero-inner { padding-block: 52px clamp(100px, 25vw, 145px); }
  .signin-inner, .workflow-steps, .privacy-inner { grid-template-columns: 1fr; }
  .landing-page nav { gap: 8px 16px; }
  .workflow-steps { margin-top: 20px; }
}

@media (max-width: 500px) {
  .signin .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
  .site-header nav[aria-label="Main"] { column-gap: 8px; }
  .site-header nav[aria-label="Main"] a { font-size: .94rem; font-weight: 600; }
}

.check { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.check input { min-height: 0; }
