/* redslip web. Tokens mirror brand/tokens.json. Light theme only. */

@font-face { font-family: "Gabarito"; src: url("fonts/Gabarito-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Gabarito"; src: url("fonts/Gabarito-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Geist"; src: url("fonts/Geist-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("fonts/Geist-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: light;

  --red: #d62218;
  --red-pressed: #b81c13;
  --cream: #fff4e6;
  --ink: #1a1110;
  --paper: #fcfaf5;
  --desk: #ece6dd;
  --muted: #6f655d;
  --rule: #cfc6ba;
  --amber: #c27100;
  --green: #2e7d4f;

  --display: "Gabarito", "Arial Black", sans-serif;
  --sans: "Geist", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-10: 40px;

  --radius-xs: 6px;
  --radius-s: 8px;
  --radius-m: 16px;
  --radius-l: 28px;

  --shadow-paper: 0 6px 10px rgba(0, 0, 0, 0.08);
  --control-height: 60px;

  --page: 1120px;
  --gutter: var(--space-6);
}

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

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

body {
  margin: 0;
  background: var(--red);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 22px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.on-red :focus-visible { outline-color: var(--cream); }

.wrap {
  width: 100%;
  max-width: calc(var(--page) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--cream); color: var(--ink);
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-m);
  font-weight: 600; text-decoration: none; z-index: 10;
}
.skip:focus { left: var(--space-4); top: var(--space-4); }

/* ---------- grounds ---------- */

.on-red { background: var(--red); color: var(--cream); }
.on-desk { background: var(--desk); color: var(--ink); }
.on-paper { background: var(--paper); color: var(--ink); }

section { padding: 88px 0; }

/* ---------- type ---------- */

.display-xl {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(64px, 18vw, 132px);
  line-height: 0.95;
  letter-spacing: -0.042em;
  margin: 0;
}

.display-l {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(38px, 7vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin: 0;
}

.display-m {
  font-family: var(--display);
  font-weight: 800;
  font-size: 32px;
  line-height: 34px;
  letter-spacing: -1.2px;
  margin: 0;
}

.eyebrow {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  line-height: 14px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin: 0 0 var(--space-4);
}
.on-desk .eyebrow, .on-paper .eyebrow { color: var(--muted); }

.body-l { font-size: 18px; line-height: 25px; margin: var(--space-4) 0 0; max-width: 34em; }
.caption { font-size: 13.5px; line-height: 19px; }
.on-desk .caption, .on-paper .caption { color: var(--muted); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--control-height);
  padding: 0 var(--space-6);
  border-radius: var(--radius-m);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 17px;
  line-height: 20px;
  letter-spacing: -0.2px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 120ms ease;
}
.btn:active { transform: translateY(1px); }

.btn-cream { background: var(--cream); color: var(--ink); }
.btn-red { background: var(--red); color: var(--cream); }
.btn-red:hover, .btn-red:active { background: var(--red-pressed); }
.btn-outline { border: 1.5px solid var(--ink); color: var(--ink); }

.store-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  max-width: 460px;
}
.store-buttons .btn { padding: 0 var(--space-3); }
.store-buttons small {
  display: block;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 10px;
  line-height: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.store-buttons .btn { flex-direction: column; gap: 2px; }

/* ---------- header ---------- */

.site-header { padding-top: var(--space-4); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
}
.site-header .logo img { width: 150px; height: auto; margin-left: -15px; }
.site-header nav { display: flex; align-items: center; gap: var(--space-6); }
.site-header nav a:not(.btn) {
  font-weight: 600; font-size: 15px; text-decoration: none;
  text-underline-offset: 6px; text-decoration-thickness: 2px;
}
.site-header nav a:not(.btn):hover { text-decoration-line: underline; }
.site-header .btn { height: 44px; padding: 0 var(--space-5); font-size: 15px; border-radius: 12px; }

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

.hero { padding: var(--space-10) 0 96px; }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: center;
}
.hero .tagline {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 1.2px;
  margin: 0 0 var(--space-5);
}
.hero .body-l { font-size: 20px; line-height: 28px; margin-top: var(--space-6); }
.hero .store-buttons { margin-top: var(--space-10); }
.hero .fineprint { font-size: 13.5px; line-height: 19px; margin: var(--space-4) 0 0; }
.hero-receipt { justify-self: center; width: 100%; max-width: 360px; }

/* ---------- the receipt ---------- */

.receipt {
  --tooth: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7'%3E%3Cpath d='M0 7L5 0L10 7Z' fill='%23FCFAF5'/%3E%3C/svg%3E");
  --tooth-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7'%3E%3Cpath d='M0 0L5 7L10 0Z' fill='%23FCFAF5'/%3E%3C/svg%3E");
  position: relative;
  color: var(--ink);
  filter: drop-shadow(var(--shadow-paper));
  padding: 7px 0;
}
.receipt::before, .receipt::after {
  content: ""; position: absolute; left: 0; right: 0; height: 7px;
  background-repeat: repeat-x; background-size: 10px 7px;
}
.receipt::before { top: 0; background-image: var(--tooth); }
.receipt::after { bottom: 0; background-image: var(--tooth-down); }

.paper {
  background: var(--paper);
  padding: 18px var(--space-6) 22px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 18px;
  letter-spacing: 0.3px;
}
.paper .head { text-align: center; padding-bottom: 6px; }
.paper .head img { width: 140px; height: auto; margin: 0 auto; }
.paper .head p { margin: 4px 0 0; color: var(--muted); font-weight: 500; font-size: 11px; line-height: 14px; letter-spacing: 1.2px; }

.paper hr {
  border: 0; height: 2px; margin: 10px 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='2'%3E%3Cpath d='M0 1H5' stroke='%23CFC6BA' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
}

.paper .row { display: flex; justify-content: space-between; gap: var(--space-3); align-items: baseline; }
.paper .row.muted { color: var(--muted); }
.paper .item { padding: 6px 0; }
.paper .item .row { font-weight: 500; font-size: 13.5px; line-height: 19px; letter-spacing: 0; }
.paper .item.green .row { color: var(--green); }
.paper .quote { padding-left: 12px; margin-top: 3px; }
.paper .why {
  padding-left: 12px; margin-top: 3px;
  font-family: var(--sans); font-size: 13.5px; line-height: 19px; letter-spacing: 0; color: var(--muted);
}
.paper .label { color: var(--muted); font-weight: 500; font-size: 11px; line-height: 14px; letter-spacing: 1.2px; margin-top: 6px; }

.paper .total { position: relative; min-height: 116px; padding: 4px 0 8px; }
.paper .total .row { align-items: baseline; }
.paper .total .row > span:first-child { font-weight: 700; font-size: 15px; letter-spacing: 1px; }
.paper .score { font-weight: 700; font-size: 40px; line-height: 44px; letter-spacing: -1px; }
.paper .score small { font-weight: 400; font-size: 15px; letter-spacing: 0; color: var(--muted); }

.stamp {
  display: inline-block;
  border: 3px solid currentColor;
  border-radius: var(--radius-xs);
  padding: 4px 10px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 21px;
  line-height: 23px;
  letter-spacing: 0.6px;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-7deg);
  opacity: 0.9;
}
.stamp.red { color: var(--red); }
.stamp.amber { color: var(--amber); }
.stamp.green { color: var(--green); }
.paper .total .stamp { position: absolute; left: 2px; bottom: 10px; }

.paper .note {
  font-family: var(--display); font-weight: 600;
  font-size: 21px; line-height: 26px; letter-spacing: -0.4px;
  margin-top: 2px;
}
.paper .body { font-family: var(--sans); font-size: 15px; line-height: 22px; letter-spacing: 0; }
.paper .barcode { width: 100%; height: 46px; margin-top: 6px; }
.paper .thanks { text-align: center; font-weight: 500; font-size: 11px; line-height: 14px; letter-spacing: 1.2px; margin-top: 10px; }

/* the receipt drops in once, like it does in the app */
@media (prefers-reduced-motion: no-preference) {
  .hero-receipt .receipt { animation: drop 900ms cubic-bezier(0.34, 1.4, 0.64, 1) 150ms both; }
  @keyframes drop {
    from { transform: translateY(-60px); opacity: 0; }
    to { transform: none; opacity: 1; }
  }
}

/* ---------- section heads ---------- */

.section-head { max-width: 680px; margin-bottom: 56px; }

/* ---------- how it works ---------- */

.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5);
  counter-reset: step;
}
.steps li { border-top: 1.5px solid var(--ink); padding-top: var(--space-5); }
.steps .num { font-family: var(--mono); font-weight: 700; font-size: 17px; letter-spacing: 0.3px; }
.steps h3 { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 30px; letter-spacing: -0.8px; margin: var(--space-3) 0 var(--space-2); }
.steps p { margin: 0; }

.anatomy {
  margin-top: 88px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 64px; align-items: start;
}
.anatomy .facts { list-style: none; margin: 0; padding: 0; }
.anatomy .facts li { padding: var(--space-5) 0; border-bottom: 1px solid var(--rule); }
.anatomy .facts li:first-child { padding-top: 0; }
.anatomy .facts h3 { font-family: var(--mono); font-weight: 500; font-size: 13.5px; letter-spacing: 1.2px; text-transform: uppercase; margin: 0 0 var(--space-2); }
.anatomy .facts p { margin: 0; color: var(--muted); }
.anatomy .facts .green-text { color: var(--green); }

.stamps { display: grid; gap: var(--space-5); padding: var(--space-3) 0 var(--space-2); }
.stamps figure { margin: 0; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.stamps figcaption { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.3px; color: var(--muted); }

/* ---------- modes ---------- */

.modes { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.mode h3 { font-family: var(--display); font-weight: 800; font-size: 32px; line-height: 34px; letter-spacing: -1.2px; margin: 0 0 var(--space-2); }
.mode > p { margin: 0 0 var(--space-6); font-size: 17px; line-height: 24px; max-width: 26em; }
.mode .receipt { max-width: 420px; }
.modes-foot { margin: 56px 0 0; font-size: 17px; line-height: 24px; max-width: 36em; }

/* ---------- share ---------- */

.share .wrap {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center;
}
.share-frame {
  justify-self: center;
  width: 100%; max-width: 320px;
  aspect-ratio: 9 / 16;
  background: var(--desk);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-l);
  padding: 36px var(--space-5) var(--space-5);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-4);
  overflow: hidden;
}
.share-frame .receipt { width: 100%; }
.share-frame .paper { padding: 14px 18px 16px; font-size: 11px; line-height: 16px; }
.share-frame .paper .head img { width: 110px; }
.share-frame .paper .item .row { font-size: 12px; line-height: 17px; }
.share-frame .paper .total { min-height: 104px; }
.share-frame .paper .score { font-size: 34px; line-height: 38px; }
.share-frame .stamp { font-size: 18px; line-height: 20px; }
.share-frame .paper .note { font-size: 17px; line-height: 21px; }
.share-frame .footer-line { font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: 1.2px; color: var(--ink); }

.share ul { list-style: none; margin: var(--space-6) 0 0; padding: 0; }
.share li { padding: var(--space-4) 0; border-top: 1.5px solid var(--cream); font-size: 17px; line-height: 24px; }
.share li:last-child { border-bottom: 1.5px solid var(--cream); }
.share li strong { font-family: var(--mono); font-weight: 500; font-size: 12.5px; letter-spacing: 1.2px; display: block; margin-bottom: 2px; }

/* ---------- safety ---------- */

.lines { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 var(--space-10); }
.lines li { padding: var(--space-5) 0; border-top: 1px solid var(--rule); }
.lines h3 { font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 26px; letter-spacing: -0.5px; margin: 0 0 var(--space-2); }
.lines p { margin: 0; color: var(--muted); }

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

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.plan {
  background: var(--paper);
  border: 1.5px solid var(--rule);
  border-radius: var(--radius-m);
  padding: var(--space-6);
  display: flex; flex-direction: column; gap: var(--space-2);
}
.plan.featured { border-color: var(--ink); }
.plan .eyebrow { margin: 0; }
.plan h3 { font-family: var(--sans); font-weight: 600; font-size: 17px; line-height: 20px; letter-spacing: -0.2px; margin: 0; }
.plan .price { font-family: var(--mono); font-weight: 700; font-size: 40px; line-height: 44px; letter-spacing: -1px; margin: var(--space-3) 0 0; }
.plan .price small { font-weight: 400; font-size: 15px; letter-spacing: 0; color: var(--muted); }
.plan p { margin: 0; }
.plan .detail { color: var(--muted); }
.pricing .caption { margin: var(--space-6) 0 0; max-width: 46em; }

/* ---------- download ---------- */

.download { text-align: left; padding: 112px 0; }
.download .display-xl { font-size: clamp(56px, 14vw, 120px); }
.download .body-l { font-size: 20px; line-height: 28px; }
.download .store-buttons { margin-top: var(--space-10); }

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

.site-footer { border-top: 1.5px solid var(--cream); padding: var(--space-10) 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-5); }
.site-footer img { width: 120px; height: auto; margin-left: -12px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); font-size: 15px; }
.site-footer nav a { text-underline-offset: 4px; }
.site-footer p { margin: 0; font-size: 13.5px; line-height: 19px; width: 100%; }

/* ---------- legal pages ---------- */

.legal { padding: 64px 0 96px; }
.legal .wrap { max-width: calc(720px + 2 * var(--gutter)); }
.legal h1 { margin-bottom: var(--space-4); }
.legal h2 { font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 28px; letter-spacing: -0.6px; margin: var(--space-10) 0 var(--space-2); }
.legal p, .legal li { font-size: 16px; line-height: 24px; }
.legal .todo { border: 1.5px solid var(--ink); border-radius: var(--radius-m); padding: var(--space-4) var(--space-5); margin: var(--space-6) 0; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  section { padding: 64px 0; }
  .hero { padding: var(--space-6) 0 72px; }
  .hero .wrap, .share .wrap, .anatomy { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .steps, .plans { grid-template-columns: minmax(0, 1fr); }
  .modes { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .lines { grid-template-columns: minmax(0, 1fr); }
  .anatomy { margin-top: 64px; }
  .anatomy .receipt { max-width: 360px; }
  .section-head { margin-bottom: var(--space-10); }
  .download { padding: 80px 0; }
}

@media (max-width: 560px) {
  .site-header nav a:not(.btn) { display: none; }
  .site-header .logo img { width: 124px; margin-left: -12px; }
  .hero .body-l, .download .body-l { font-size: 18px; line-height: 25px; }
  .store-buttons { grid-template-columns: minmax(0, 1fr); }
  .hero-receipt { max-width: 340px; }
}

.nowrap { white-space: nowrap; }
