/* Landing page. Shares the app's paper, ink and rust colors; the windshield sticker in the hero is
   the one bold element, everything else stays quiet. */
:root {
  --paper: #f4f2ee;
  --paper-2: #ebe8e1;
  --surface: #ffffff;
  --ink: #1d2125;
  --ink-2: #4c535b;
  --ink-3: #7b838c;
  --line: #dcd8cf;
  --rust: #c2410c;
  --rust-ink: #ffffff;
  --rust-deep: #9a3412;
  --glass-1: #2c3a44;
  --glass-2: #18222a;
  --sticker: #fffdf8;
  --wheel: #1d2125;
  --wheel-ink: #f6f4ef;
  --ok: #2f7d4f;
  --focus: #2563eb;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --cond: 'IBM Plex Sans Condensed', 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15171a;
    --paper-2: #1b1e22;
    --surface: #1d2024;
    --ink: #eceae6;
    --ink-2: #b6bbc1;
    --ink-3: #8b929a;
    --line: #2f343a;
    --rust: #f0702e;
    --rust-ink: #1a0d05;
    --rust-deep: #ff8a57;
    --glass-1: #24313a;
    --glass-2: #0f151a;
    --focus: #7aa7ff;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 12px; }

h1, h2 { font-family: var(--cond); font-weight: 700; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); line-height: 1.02; }
h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); line-height: 1.1; font-weight: 600; }
p { margin: 0; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px;
  border-radius: 8px; font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--rust); color: var(--rust-ink); }
.btn-primary:hover { background: var(--rust-deep); color: #fff; }
.btn-quiet { border: 1px solid var(--line); background: var(--surface); }
.btn-quiet:hover { border-color: var(--ink-3); }

/* header */
.top { border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; font-size: 17px; }
.brand img { border-radius: 9px; }
.top-nav { display: flex; align-items: center; gap: 24px; }
.top-nav a:not(.btn) { text-decoration: none; color: var(--ink-2); font-weight: 500; }
.top-nav a:not(.btn):hover { color: var(--ink); }
.top-nav .btn { min-height: 40px; padding: 0 16px; font-size: 15px; }

/* hero */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero-copy { max-width: 36rem; }
.lede { margin-top: 24px; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-2); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.fine { margin-top: 18px; font-size: 14px; color: var(--ink-3); }

/* the windshield, its sticker, and the email that arrives */
.windshield {
  position: relative; aspect-ratio: 5 / 4.4; border-radius: 28px 28px 18px 18px; overflow: hidden;
  background: linear-gradient(160deg, var(--glass-1), var(--glass-2));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 24px 60px -30px rgba(20, 24, 28, .55);
}
.windshield::before { /* reflection across the glass */
  content: ''; position: absolute; inset: -20% -40%;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .09) 44%, transparent 52%, transparent 60%, rgba(255, 255, 255, .05) 63%, transparent 68%);
  pointer-events: none;
}
.windshield::after { /* the black frit band along the top of a windshield */
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 26px;
  background: radial-gradient(circle, rgba(0, 0, 0, .55) 1.6px, transparent 2px) 0 10px / 9px 9px repeat-x, linear-gradient(#0c1013, #0c1013) top / 100% 10px no-repeat;
}
.sticker {
  position: absolute; left: 11%; top: 15%; width: min(330px, 74%);
  background: var(--sticker); color: #1d2125; border-radius: 16px; transform: rotate(-3deg);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 10px 24px -10px rgba(0, 0, 0, .55);
}
.sticker-band {
  display: flex; align-items: center; gap: 10px; padding: 12px 18px;
  background: #c2410c; color: #fff; border-radius: 16px 16px 0 0; font-family: var(--cond); font-weight: 600; font-size: 18px;
}
.sticker-band img { border-radius: 5px; }
.sticker-body { padding: 16px 18px 18px; }
.sticker-item { font-family: var(--cond); font-weight: 700; font-size: 26px; line-height: 1.1; }
.sticker-or { margin-top: 10px; font-size: 15px; color: #4c535b; }
.sticker-or b { color: #1d2125; }
.sticker-last { margin-top: 12px; padding-top: 10px; border-top: 1px dashed #d6d1c6; font-size: 13px; color: #6b737b; }

.odo { display: flex; align-items: flex-end; gap: 3px; margin-top: 14px; font-family: var(--mono); font-weight: 600; }
.wheel {
  display: inline-block; width: 1.05em; height: 1.4em; overflow: hidden; font-size: 30px; line-height: 1.4em;
  background: linear-gradient(#000 0%, var(--wheel) 18%, var(--wheel) 82%, #000 100%); color: var(--wheel-ink);
  border-radius: 4px; text-align: center;
}
.strip { display: flex; flex-direction: column; transition: transform 1.5s cubic-bezier(.2, .7, .15, 1); }
.strip span { height: 1.4em; }
.sep { font-size: 30px; line-height: 1.4em; color: #1d2125; width: .35em; text-align: center; }
.unit { margin-left: 8px; font-size: 16px; line-height: 2.2; color: #6b737b; }

.mail {
  position: absolute; right: 7%; bottom: 9%; width: min(300px, 70%);
  display: flex; gap: 12px; align-items: center; padding: 12px 14px;
  background: rgba(255, 255, 255, .94); color: #1d2125; border-radius: 14px;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .6);
}
.mail img { border-radius: 7px; flex: none; }
.mail-from { font-size: 12px; color: #6b737b; }
.mail-subject { font-size: 14px; font-weight: 600; line-height: 1.3; }

/* app screenshots */
.frame {
  margin: 0; border-radius: 14px; overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(20, 24, 28, .45);
}
.frame-bar { display: flex; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.frame-bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.showcase { padding-bottom: clamp(56px, 9vw, 112px); }

/* features */
.features { padding: clamp(56px, 8vw, 104px) 0; background: var(--surface); border-block: 1px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.row + .row { margin-top: clamp(64px, 9vw, 120px); }
.row-flip { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.row-flip .row-copy { order: 2; }
.row-copy { max-width: 32rem; }
.row-copy > p { margin-top: 16px; color: var(--ink-2); }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; }
.ticks li { position: relative; padding-left: 28px; margin-top: 10px; }
.ticks li::before {
  content: ''; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px;
  border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg);
}
.fade { max-height: 640px; position: relative; }
.fade::after { content: ''; position: absolute; inset: auto 0 0 0; height: 140px; background: linear-gradient(transparent, var(--paper)); pointer-events: none; }

.inbox-head { display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--surface); }
.inbox-head img { border-radius: 8px; flex: none; }
.inbox-from { font-size: 13px; color: var(--ink-3); }
.inbox-subject { font-weight: 600; font-size: 16px; line-height: 1.3; }

.duo { position: relative; padding-bottom: 72px; }
.duo-log { width: 88%; }
.frame-phone {
  position: absolute; right: 0; bottom: 0; width: min(210px, 36%);
  border-radius: 26px; border: 7px solid #1d2125; box-shadow: 0 24px 50px -24px rgba(20, 24, 28, .6);
}
.frame-phone img { aspect-ratio: 780 / 1300; object-fit: cover; object-position: top; }

.more-title { margin-top: clamp(72px, 10vw, 128px); max-width: 30rem; }
.more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; margin: 32px 0 0; }
.more > div { padding: 20px 0 24px; border-top: 1px solid var(--line); }
.more dt { font-weight: 600; font-size: 17px; }
.more dd { margin: 6px 0 0; color: var(--ink-2); font-size: 16px; }

/* privacy */
.private { padding: clamp(56px, 8vw, 96px) 0; }
.private-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(20px, 5vw, 64px); align-items: start; }
.private p { color: var(--ink-2); font-size: 18px; max-width: 38rem; }

/* closing */
.closing { padding: clamp(40px, 6vw, 64px) 0; background: var(--paper-2); border-top: 1px solid var(--line); }
.closing-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.closing .hero-actions { margin-top: 0; }

.foot { padding: 28px 0 40px; color: var(--ink-3); font-size: 14px; }
.foot-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 20px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .hero-grid, .row, .row-flip, .private-grid { grid-template-columns: 1fr; }
  .row-flip .row-copy { order: 0; }
  .windshield { max-width: 520px; width: 100%; justify-self: center; }
  .more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .top-nav { gap: 14px; }
  .top-nav a[href="#features"] { display: none; }
  .brand span { font-size: 15px; }
  .more { grid-template-columns: 1fr; }
  /* stack the sticker and the email so neither covers the other */
  .windshield { aspect-ratio: auto; padding: 52px 16px 22px; }
  .sticker { position: relative; left: auto; top: auto; width: 90%; margin-left: 2%; }
  .wheel, .sep { font-size: 25px; }
  .mail { position: relative; right: auto; bottom: auto; width: 86%; margin: 18px 0 0 auto; }
  .frame-bar { display: none; }
  .fade { max-height: 360px; }
  .duo { padding-bottom: 96px; }
  .duo-log { width: 100%; }
}
@media (max-width: 400px) {
  .brand span { display: none; }
}
