/* SALTproof website. Colors, type and spacing come from website-brief/brand/tokens.json. */

/* ---------- Tokens ---------- */

:root {
  color-scheme: light dark;

  --brand: #1e3a6e;
  --brand-deep: #0e1d3a;
  --brand-tint: #e8edf6;
  --on-brand: #ffffff;
  --salt: #f6f4ef;
  --salt-shade: #c9d3e6;
  --system-background: #ffffff;
  --grouped-background: #f2f2f7;
  --secondary-grouped-background: #ffffff;
  --label: #000000;
  --secondary-label: rgba(60, 60, 67, 0.6);
  --separator: rgba(60, 60, 67, 0.29);

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Helvetica Neue", sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, "Helvetica Neue", sans-serif;

  --space-xxs: 2px;
  --space-xs: 4px;
  --space-s: 8px;
  --space-m: 12px;
  --space-l: 16px;
  --space-xl: 24px;
  --space-2xl: 48px;
  --space-3xl: 96px;

  --radius-capsule: 999px;
  --radius-cell: 10px;
  --radius-panel: 20px;

  --gutter: var(--space-l);
  --section-space: var(--space-2xl);
  --focus: var(--brand);
  /* On brand-deep: salt, softened for secondary text and hairlines. */
  --salt-secondary: color-mix(in srgb, var(--salt) 76%, transparent);
  --salt-separator: color-mix(in srgb, var(--salt) 22%, transparent);
  --shot-shadow: 0 24px 48px -12px color-mix(in srgb, var(--brand-deep) 28%, transparent);
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #8aa6da;
    --brand-tint: #18233a;
    --on-brand: #0e1d3a;
    --system-background: #000000;
    --grouped-background: #000000;
    --secondary-grouped-background: #1c1c1e;
    --label: #ffffff;
    --secondary-label: rgba(235, 235, 245, 0.6);
    --separator: rgba(84, 84, 88, 0.65);
    --shot-shadow: none;
  }
}

@media (prefers-contrast: more) {
  :root {
    --brand: #14284b;
    --brand-deep: #0b1730;
    --brand-tint: #dde5f2;
    --on-brand: #ffffff;
    --salt: #ffffff;
    --grouped-background: #ebebf0;
    --secondary-label: rgba(60, 60, 67, 0.76);
    --separator: rgba(60, 60, 67, 0.45);
    --salt-secondary: var(--salt);
    --salt-separator: color-mix(in srgb, var(--salt) 45%, transparent);
  }
}

@media (prefers-contrast: more) and (prefers-color-scheme: dark) {
  :root {
    --brand: #a9c0ea;
    --brand-tint: #1d2a45;
    --on-brand: #0b1730;
    --secondary-grouped-background: #242426;
    --secondary-label: rgba(235, 235, 245, 0.72);
    --separator: rgba(84, 84, 88, 0.85);
  }
}

@media (min-width: 600px) {
  :root {
    --gutter: var(--space-xl);
  }
}

@media (min-width: 900px) {
  :root {
    --section-space: var(--space-3xl);
  }
}

/* ---------- Base ---------- */

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

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--system-background);
  color: var(--label);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 26px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

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

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: var(--space-l);
  top: -100px;
  z-index: 10;
  padding: var(--space-s) var(--space-l);
  border-radius: var(--radius-capsule);
  background: var(--salt);
  color: var(--brand-deep);
  font-weight: 600;
}

.skip:focus {
  top: var(--space-s);
}

.wrap {
  width: min(1080px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

main {
  flex: 1;
}

/* ---------- Type (the Website styles) ---------- */

.hero-title {
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 52px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.title {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.subtitle {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 30px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.lede {
  font-size: 19px;
  line-height: 28px;
  color: var(--secondary-label);
}

/* The second half of a two-tone headline: it says what an eyebrow would. */
.dim {
  color: var(--secondary-label);
}

/* A line glyph above a headline, drawn on the mark's 2px rounded-cap grid. */
.glyph {
  display: block;
  width: 44px;
  height: 44px;
  margin-bottom: var(--space-l);
  color: var(--brand);
}

.section-head .glyph {
  width: 56px;
  height: 56px;
  margin-bottom: var(--space-xl);
}

/* The app icon, with the iOS icon corner. */
.app-icon {
  width: 72px;
  height: 72px;
  border-radius: 22.37%;
  margin-bottom: var(--space-xl);
}

.headline {
  font-size: 17px;
  line-height: 22px;
  font-weight: 600;
}

@media (min-width: 900px) {
  .hero-title {
    font-size: 80px;
    line-height: 84px;
  }

  .title {
    font-size: 48px;
    line-height: 52px;
  }

  .subtitle {
    font-size: 28px;
    line-height: 34px;
  }

  .lede {
    font-size: 21px;
    line-height: 30px;
  }
}

.money {
  font-variant-numeric: tabular-nums;
}

/* ---------- Bands ---------- */

.band-deep {
  --focus: var(--salt);
  background: var(--brand-deep);
  color: var(--salt);
}

.band-deep a {
  color: var(--salt);
}

.band-deep .lede,
.band-deep p {
  color: var(--salt-secondary);
}

.band-deep .dim {
  color: var(--salt-secondary);
}

.band-deep .glyph {
  color: var(--salt);
}

.band-deep .app-icon {
  box-shadow: 0 0 0 1px var(--salt-separator);
}

/* ---------- Header ---------- */

.site-header {
  --focus: var(--salt);
  background: var(--brand-deep);
  color: var(--salt);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
}

.home-link {
  display: block;
  margin-left: -6px;
}

.home-link img {
  width: 134px;
  height: auto;
}

.site-header nav {
  display: flex;
  gap: var(--space-xl);
}

.site-header nav a {
  color: var(--salt);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  padding: var(--space-s) 0;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--salt-separator);
}

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

.section {
  padding-block: var(--section-space);
}

.section-head {
  max-width: 720px;
  margin-bottom: var(--space-2xl);
}

.section-head .lede {
  margin-top: var(--space-m);
}

.section-head.centered {
  margin-inline: auto;
  text-align: center;
}

/* ---------- Screenshots ---------- */

/* A plain screenshot with the iPhone's screen corners. No drawn device. */
.shot img {
  width: 100%;
  border-radius: 12.5% / 5.75%;
  box-shadow: 0 0 0 1px var(--separator), var(--shot-shadow);
}

.band-deep .shot img {
  box-shadow: 0 0 0 1px var(--salt-separator);
}

/* A phone rising from the bottom edge of a band or panel. */
.rise {
  --shot-width: 260px;
  --shown: 0.62;
  display: flex;
  justify-content: center;
  height: calc(var(--shot-width) * 2.1727 * var(--shown));
  overflow: hidden;
}

.rise .shot {
  flex: none;
  width: var(--shot-width);
}

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

.hero {
  padding-top: var(--space-2xl);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  gap: var(--space-2xl);
}

.hero-copy {
  text-align: center;
}

.hero-copy .app-icon {
  margin-inline: auto;
}

.hero-copy .lede {
  max-width: 560px;
  margin: var(--space-l) auto 0;
}

.hero-cta {
  margin-top: var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-s);
}

.coming-soon {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid var(--separator);
  border-radius: var(--radius-capsule);
  color: var(--label);
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
}

.band-deep .coming-soon {
  border-color: var(--salt-separator);
  color: var(--salt);
}

.app-store img {
  width: 144px;
  height: 48px;
}

.hero-note {
  font-size: 14px;
  line-height: 20px;
}

.hero .rise {
  --shot-width: 280px;
  --shown: 0.6;
}

@media (min-width: 900px) {
  .hero {
    padding-top: var(--space-3xl);
  }

  .home-link img {
    width: 150px;
  }

  .hero-inner {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: var(--space-xl);
  }

  .hero-copy {
    text-align: left;
    padding-bottom: var(--space-3xl);
  }

  .hero-copy .lede,
  .hero-copy .app-icon {
    margin-left: 0;
  }

  .hero-copy .app-icon {
    width: 88px;
    height: 88px;
  }

  .hero-cta {
    align-items: flex-start;
  }

  .hero .rise {
    --shot-width: 360px;
    --shown: 0.6;
    align-self: end;
  }
}

/* ---------- Is it worth it ---------- */

.panel {
  background: var(--brand-tint);
  border-radius: var(--radius-panel);
  padding: var(--space-xl);
}

@media (min-width: 900px) {
  .panel {
    padding: var(--space-2xl);
  }
}

.panel.band-deep {
  background: var(--brand-deep);
}

@media (prefers-color-scheme: dark) {
  .panel.band-deep {
    box-shadow: inset 0 0 0 1px var(--salt-separator);
  }
}

.explain {
  display: grid;
  gap: var(--space-l);
}

@media (min-width: 900px) {
  .explain {
    grid-template-columns: repeat(3, 1fr);
  }

  .explain .panel {
    padding: 32px;
  }
}

.explain .panel p {
  margin-top: var(--space-m);
}

.worth > p:not(.headline):not(.note) {
  margin-top: var(--space-m);
  max-width: 720px;
}

.states-title {
  margin-top: var(--space-xl);
}

.states-list {
  list-style: none;
  padding: 0;
  margin-top: var(--space-m);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
}

.states-list li {
  padding: 6px 14px;
  border: 1px solid var(--separator);
  border-radius: var(--radius-capsule);
  font-size: 15px;
  line-height: 20px;
}

.note {
  margin-top: var(--space-xl);
  color: var(--label);
}

/* ---------- How it works ---------- */

.steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-xl) var(--space-2xl);
}

.split-copy .steps {
  margin-top: var(--space-xl);
  gap: 0;
}

@media (min-width: 768px) {
  .steps.row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.steps li {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-content: start;
  column-gap: var(--space-l);
  padding-block: var(--space-l);
  border-top: 1px solid var(--separator);
}

.steps li > :not(.step-num) {
  grid-column: 2;
}

.steps .step-num {
  grid-row: 1 / span 2;
  margin-bottom: 0;
}

.steps p {
  margin-top: var(--space-xxs);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: var(--space-m);
  border-radius: var(--radius-capsule);
  background: var(--brand);
  color: var(--on-brand);
  font-size: 15px;
  font-weight: 600;
}

/* A panel with a phone rising from its bottom edge. */
.tile {
  display: flex;
  flex-direction: column;
  padding-top: var(--space-2xl);
  background: var(--brand-tint);
  border-radius: var(--radius-panel);
  overflow: hidden;
}

.tile .rise {
  margin-top: auto;
  padding-inline: var(--space-xl);
}

/* ---------- Privacy ---------- */

.facts {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0 var(--space-2xl);
}

@media (min-width: 768px) {
  .facts {
    grid-template-columns: 1fr 1fr;
  }
}

.facts li {
  padding-block: var(--space-xl);
  border-top: 1px solid var(--salt-separator);
}

.facts h3 {
  color: var(--salt);
}

.facts p {
  margin-top: var(--space-xs);
}

.more-link {
  display: inline-block;
  margin-top: var(--space-xl);
  font-weight: 600;
}

/* ---------- Binder ---------- */

.split {
  display: grid;
  gap: var(--space-2xl);
  align-items: center;
}

.split .lede {
  margin-top: var(--space-m);
}

.split-copy > p:not(.lede) {
  margin-top: var(--space-l);
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
  }

  .split .tile .rise {
    --shot-width: 300px;
  }

  .split.reverse .split-copy {
    order: 2;
  }
}

.proof-note {
  padding-left: var(--space-l);
  border-left: 3px solid var(--brand);
}

/* ---------- Pricing ---------- */

.plans {
  display: grid;
  gap: var(--space-l);
}

@media (min-width: 768px) {
  .plans {
    grid-template-columns: 1fr 1fr;
  }
}

.plan {
  border: 1px solid var(--separator);
  border-radius: var(--radius-panel);
  padding: var(--space-xl);
}

@media (min-width: 900px) {
  .plan {
    padding: 40px;
  }
}

.plan p {
  margin-top: var(--space-m);
}

/* ---------- FAQ ---------- */

.faq {
  border-top: 1px solid var(--separator);
}

.faq details {
  border-bottom: 1px solid var(--separator);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-l);
  padding-block: 20px;
  font-size: 19px;
  line-height: 26px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

/* A chevron drawn in CSS: no icon font. */
.faq summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin-right: 4px;
  border-right: 2px solid var(--secondary-label);
  border-bottom: 2px solid var(--secondary-label);
  transform: translateY(-3px) rotate(45deg);
}

.faq details[open] summary::after {
  transform: translateY(2px) rotate(225deg);
}

@media (prefers-reduced-motion: no-preference) {
  .faq summary::after {
    transition: transform 0.2s ease;
  }
}

.faq-answer {
  padding-bottom: var(--space-xl);
  max-width: 720px;
}

.faq-answer p + p {
  margin-top: var(--space-m);
}

/* ---------- Support ---------- */

.topics {
  list-style: none;
  padding: 0;
  margin-bottom: var(--space-2xl);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
}

.topics a {
  display: block;
  padding: 8px 16px;
  border-radius: var(--radius-capsule);
  background: var(--brand-tint);
  color: var(--brand);
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  text-decoration: none;
}

.topics a:hover {
  text-decoration: underline;
}

.faq-group {
  scroll-margin-top: var(--space-xl);
}

.faq-group + .faq-group {
  margin-top: var(--space-2xl);
}

.faq-group-title {
  margin-bottom: var(--space-s);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--secondary-label);
}

.page-head {
  padding-top: var(--section-space);
}

.page-head .lede {
  margin-top: var(--space-m);
  max-width: 640px;
}

.contact {
  margin-top: var(--space-xl);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-m) var(--space-l);
}

.button {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius-capsule);
  background: var(--brand);
  color: var(--on-brand);
  font-size: 17px;
  line-height: 22px;
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  text-decoration: underline;
}

.links {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-l);
}

@media (min-width: 768px) {
  .links {
    grid-template-columns: 1fr 1fr;
  }
}

.links a {
  display: block;
  height: 100%;
  padding: var(--space-xl);
  border-radius: var(--radius-panel);
  background: var(--brand-tint);
  color: var(--label);
  text-decoration: none;
}

.links a .headline {
  color: var(--brand);
}

.links a p {
  margin-top: var(--space-xs);
}

.links a:hover .headline {
  text-decoration: underline;
}

/* ---------- 404 ---------- */

.not-found {
  padding-block: var(--space-3xl);
  text-align: center;
}

.not-found .lede {
  margin: var(--space-m) auto 0;
  max-width: 520px;
}

.not-found .contact {
  justify-content: center;
}

/* ---------- Guides ---------- */

.guide-list {
  grid-template-columns: 1fr !important;
  max-width: 720px;
}

.guide {
  max-width: 720px;
  padding-block: var(--section-space);
}

/* Back to the guides, with a CSS chevron like the FAQ's. */
.back-link {
  margin-bottom: var(--space-l);
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
}

.back-link a {
  text-decoration: none;
}

.back-link a::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
}

.back-link a:hover {
  text-decoration: underline;
}

.guide > .lede {
  margin-top: var(--space-m);
}

.guide-date {
  margin-top: var(--space-l);
  font-size: 14px;
  line-height: 20px;
  color: var(--secondary-label);
}

.guide-note {
  margin-top: var(--space-xl);
  padding: var(--space-l);
  border-radius: var(--radius-cell);
  background: var(--brand-tint);
  font-size: 15px;
  line-height: 22px;
}

.guide h2 {
  margin-top: var(--space-2xl);
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 30px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.guide p,
.guide ul,
.guide ol,
.guide .table-wrap {
  margin-top: var(--space-m);
}

.guide ul,
.guide ol {
  padding-left: 1.25em;
}

.guide li + li {
  margin-top: var(--space-s);
}

.guide .sources {
  font-size: 15px;
  line-height: 22px;
}

@media (min-width: 900px) {
  .guide h2 {
    font-size: 28px;
    line-height: 34px;
  }
}

/* Tables scroll inside their own box on narrow screens, never the page. */
.table-wrap {
  overflow-x: auto;
}

.guide table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 22px;
}

.guide caption {
  text-align: left;
  padding-bottom: var(--space-s);
  font-weight: 600;
}

.guide th,
.guide td {
  padding: var(--space-m) var(--space-m) var(--space-m) 0;
  border-top: 1px solid var(--separator);
  text-align: left;
  vertical-align: top;
}

.guide thead th {
  border-top: 0;
  color: var(--secondary-label);
  font-size: 14px;
  font-weight: 600;
}

.guide tbody th {
  font-weight: 600;
}

@media (min-width: 600px) {
  .guide tbody th {
    white-space: nowrap;
  }
}

.cta {
  margin-top: var(--space-2xl);
  padding: var(--space-xl);
  border-radius: var(--radius-panel);
}

.cta .app-icon {
  width: 56px;
  height: 56px;
  margin-bottom: var(--space-l);
}

.cta p {
  margin-top: var(--space-s);
}

.cta-actions {
  margin-top: var(--space-l);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-m) var(--space-xl);
}

.cta-actions .coming-soon {
  margin-top: 0;
}

.cta-actions a:not(.app-store) {
  font-weight: 600;
}

@media (min-width: 900px) {
  .cta {
    padding: var(--space-2xl);
  }
}

/* ---------- Legal ---------- */

.legal {
  max-width: 720px;
  padding-block: var(--section-space);
}

.legal h1 {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.legal h1 + p {
  margin-top: var(--space-m);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--separator);
  font-size: 15px;
  line-height: 22px;
  color: var(--secondary-label);
}

.legal h2 {
  margin-top: var(--space-2xl);
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 30px;
  font-weight: 600;
  letter-spacing: -0.01em;
  scroll-margin-top: var(--space-xl);
}

.legal h3 {
  margin-top: var(--space-xl);
  font-size: 19px;
  line-height: 26px;
  font-weight: 600;
}

.legal p,
.legal ul {
  margin-top: var(--space-m);
}

.legal ul {
  padding-left: 1.25em;
}

.legal li + li {
  margin-top: var(--space-s);
}

@media (min-width: 900px) {
  .legal h1 {
    font-size: 48px;
    line-height: 52px;
  }

  .legal h2 {
    font-size: 28px;
    line-height: 34px;
  }
}

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

.site-footer {
  padding-block: var(--space-2xl);
  background: var(--grouped-background);
  border-top: 1px solid var(--separator);
  font-size: 12px;
  line-height: 18px;
  color: var(--secondary-label);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-l);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--separator);
}

.footer-logo img {
  width: 130px;
  height: auto;
  margin-left: -4px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-xl);
}

.site-footer nav a {
  font-size: 14px;
  line-height: 20px;
  text-decoration: none;
  padding-block: var(--space-xs);
}

.site-footer nav a:hover,
.site-footer nav a[aria-current="page"] {
  text-decoration: underline;
}

.not-advice {
  margin-top: var(--space-xl);
  font-size: 14px;
  line-height: 20px;
  color: var(--label);
}

.fine {
  margin-top: var(--space-m);
}

/* ---------- Increased contrast ---------- */

@media (prefers-contrast: more) {
  a {
    text-decoration-thickness: 2px;
  }

  .site-header nav a,
  .site-footer nav a {
    text-decoration: underline;
  }

  .panel,
  .tile,
  .links a {
    outline: 1px solid var(--separator);
    outline-offset: -1px;
  }
}

/* ---------- Print (mostly for the legal pages) ---------- */

@media print {
  .site-header,
  .skip,
  .footer-top nav {
    display: none;
  }

  .site-footer {
    background: none;
  }
}
