/* The app's tokens, verbatim from the design file. */
:root {
  --accent: #A24B2A; --accH: #8C3F22;
  --btnBg: #9E6247; --btnH: #8D5439; --btnSh: rgba(60, 42, 28, .22);
  --paper: #F7F2E5; --paper2: #EFE7D5; --card: #FCF9F0;
  --ink: #2E241B; --ink2: #6F5F4B; --mute: #9A8B75;
  --line: #DACEB8; --hair: #EAE0CB; --onAcc: #FBF7EC; --accSoft: #F6EBDF;
  --bezel: #CFC3AC; --notch: #221A13; --barBg: #FBF7EC;
  --yesBg: #EDF0E6; --yesFg: #4A5A32; --yesBd: #C9D3B4;
  --wrap: 1140px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  font-family: "Newsreader", Georgia, serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--accent); }
a:hover { color: var(--accH); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }
.kicker {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
}

/* Buttons — one filled token for every call to action, as in the app. */
.btn {
  display: inline-grid; place-items: center;
  height: 56px; padding: 0 30px;
  border: none; border-radius: 14px;
  background: var(--btnBg); color: var(--onAcc);
  box-shadow: 0 1px 2px var(--btnSh);
  font-family: "Newsreader", Georgia, serif; font-size: 17px;
  text-decoration: none; cursor: pointer;
  transition: background .18s ease, transform .12s ease;
}
.btn:hover { background: var(--btnH); color: var(--onAcc); }
.btn:active { transform: translateY(1px); }
.btn--sm { height: 44px; padding: 0 22px; font-size: 15.5px; border-radius: 12px; }
.btn--ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line); box-shadow: none;
}
.btn--ghost:hover { background: transparent; border-color: var(--ink); color: var(--ink); }

/* Header */
.site-head {
  max-width: var(--wrap); margin: 0 auto; padding: 26px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark {
  width: 30px; height: 30px; border: 1.5px solid var(--accent); border-radius: 50%;
  display: grid; place-items: center; flex: none;
}
.brand__mark i { width: 12px; height: 12px; background: var(--accent); transform: rotate(45deg); display: block; }
.brand__name { font-size: 19px; font-weight: 500; letter-spacing: .01em; }
.site-nav { display: flex; align-items: center; gap: 30px; }
/* :not(.btn) — otherwise this out-specifies .btn and paints the header's
   call to action brown-on-brown. */
.site-nav a:not(.btn) { text-decoration: none; font-size: 15.5px; color: var(--ink2); }
.site-nav a:not(.btn):hover { color: var(--ink); }

/* Hero */
.hero {
  max-width: var(--wrap); margin: 0 auto; padding: 64px 32px 80px;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center;
}
.hero h1 { font-size: 62px; font-weight: 400; line-height: 1.08; margin: 0; text-wrap: pretty; }
.hero p { font-size: 19px; line-height: 1.6; color: var(--ink2); margin: 22px 0 0; max-width: 480px; text-wrap: pretty; }
.hero__cta { display: flex; align-items: center; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero__note { font-size: 10.5px; letter-spacing: .06em; color: var(--mute); margin-top: 16px; }

/* The phone in the hero */
.device-col { display: flex; justify-content: center; }
.device {
  width: 300px; border: 10px solid var(--bezel); border-radius: 44px;
  background: var(--barBg); overflow: hidden; box-shadow: 0 24px 60px rgba(60, 42, 28, .18);
}
.device__notch { height: 30px; display: grid; place-items: center; }
.device__notch i { width: 86px; height: 20px; background: var(--notch); border-radius: 12px; display: block; }
.device__body { padding: 18px 20px 26px; }
.chip {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 8px; letter-spacing: .06em; padding: 4px 8px; border-radius: 20px;
}
.chip--lead { background: var(--accent); color: var(--onAcc); }
.chip--out { border: 1px solid var(--line); color: var(--ink2); }
.mini-card { border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 14px; }

/* Stats strip */
.stats { border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); background: var(--paper2); }
.stats__grid {
  max-width: var(--wrap); margin: 0 auto; padding: 26px 32px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.stat { text-align: center; }
.stat b { display: block; font-size: 30px; line-height: 1; font-weight: 400; }
.stat span {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink2);
  margin-top: 5px; display: block;
}

/* Sections */
section h2 { font-size: 40px; font-weight: 400; margin: 12px 0 0; line-height: 1.15; text-wrap: pretty; }
.section { max-width: var(--wrap); margin: 0 auto; padding: 88px 32px 40px; }
.section--tight { padding: 64px 32px; }
.section--last { padding: 64px 32px 88px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }

.card { border: 1px solid var(--line); border-radius: 16px; background: var(--card); padding: 26px 28px; }
.card__k {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
}
.card__t { font-size: 22px; margin-top: 8px; }
.card p { font-size: 15.5px; line-height: 1.6; color: var(--ink2); margin: 8px 0 0; text-wrap: pretty; }

.step { border-top: 2px solid var(--accent); padding: 20px 4px 0; }
.step__n { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 11px; color: var(--accent); }
.step__t { font-size: 21px; margin-top: 8px; }
.step p { font-size: 15px; line-height: 1.6; color: var(--ink2); margin: 8px 0 0; text-wrap: pretty; }

.lib-card {
  text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); border-radius: 16px; background: var(--card);
  padding: 24px 26px; display: block; transition: border-color .18s ease;
}
.lib-card:hover { border-color: var(--accent); color: var(--ink); }
.lib-card__n { font-size: 30px; line-height: 1; color: var(--accent); }
.lib-card__t { font-size: 21px; margin-top: 10px; }
.lib-card p { font-size: 15px; line-height: 1.55; color: var(--ink2); margin: 6px 0 0; }
.lib-card__go { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 11px; color: var(--accent); margin-top: 14px; }

/* Closing call to action */
.cta { background: var(--ink); }
.cta__inner { max-width: var(--wrap); margin: 0 auto; padding: 80px 32px; text-align: center; }
.cta h2 { font-size: 44px; color: var(--paper); margin: 0; }
.cta p { font-size: 17px; color: #C9BCA4; margin: 16px auto 0; max-width: 440px; line-height: 1.6; }
.cta .btn { margin-top: 30px; }

/* Footer */
.site-foot { border-top: 1px solid var(--hair); }
.site-foot__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 28px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.site-foot__c { font-size: 10.5px; letter-spacing: .06em; color: var(--mute); }
.site-foot__links { display: flex; gap: 24px; flex-wrap: wrap; }
.site-foot__links a:not(.btn) { text-decoration: none; font-size: 14px; color: var(--ink2); }
.site-foot__links a:not(.btn):hover { color: var(--ink); }

/* ---- Library page ---- */
.lib-head { max-width: var(--wrap); margin: 0 auto; padding: 48px 32px 8px; }
.lib-head h1 { font-size: 46px; font-weight: 400; margin: 12px 0 0; line-height: 1.12; text-wrap: pretty; }
.lib-head p { font-size: 18px; line-height: 1.6; color: var(--ink2); margin: 16px 0 0; max-width: 620px; text-wrap: pretty; }
.lib-jump { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.lib-jump a {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; color: var(--ink2);
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 15px;
  transition: border-color .18s ease, color .18s ease;
}
.lib-jump a:hover { border-color: var(--accent); color: var(--accent); }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 30px; }
.tile {
  border: 1px solid var(--line); border-radius: 12px; background: var(--card);
  padding: 13px 14px 15px; display: flex; flex-direction: column; gap: 3px;
}
.tile b { font-size: 21px; font-weight: 400; line-height: 1; }
.tile span { font-size: 14px; line-height: 1.3; color: var(--ink); }
.tile i {
  font-family: "IBM Plex Mono", ui-monospace, monospace; font-style: normal;
  font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); margin-top: 2px;
}

.rows { margin-top: 30px; border-top: 1px solid var(--hair); }
.row {
  display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: baseline;
  padding: 14px 4px; border-bottom: 1px solid var(--hair);
}
.row__id { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 13px; color: var(--accent); }
.row__name { font-size: 16.5px; }
.row__sub { font-size: 13px; color: var(--ink2); display: block; margin-top: 2px; }
.row__meta {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); text-align: right;
}

/* ---- Responsive. The design frame is desktop-only; most of the people
       who will read this are holding a phone. ---- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 44px; padding: 44px 24px 64px; }
  .hero h1 { font-size: clamp(38px, 9vw, 56px); }
  .hero p { font-size: 17.5px; max-width: none; }
  .device-col { order: -1; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  section h2 { font-size: clamp(28px, 6.2vw, 40px); }
  .cta h2 { font-size: clamp(30px, 7vw, 44px); }
  .lib-head h1 { font-size: clamp(32px, 7.5vw, 46px); }
}

@media (max-width: 720px) {
  .wrap, .site-head, .hero, .section, .section--tight, .section--last,
  .stats__grid, .cta__inner, .site-foot__inner, .lib-head {
    padding-left: 20px; padding-right: 20px;
  }
  /* Keep the call to action; the section links live in the page below. */
  .site-nav a:not(.btn) { display: none; }
  .site-head { padding-top: 18px; padding-bottom: 18px; }
  .section { padding-top: 56px; }
  .section--tight, .section--last { padding-top: 48px; }
  .cta__inner { padding: 56px 20px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; padding: 22px 20px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .hero__cta .btn { width: 100%; }
  .row { grid-template-columns: 58px 1fr; }
  .row__meta { grid-column: 2; text-align: left; }
  .site-foot__inner { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
