/* Landing page styles, shared by / and /es/. */
/* Self-hosted (SIL Open Font License, see /fonts/OFL-*.txt) so visitors' browsers
   don't contact a font service the Privacy Policy doesn't list. */
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url(/fonts/barlow-400.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url(/fonts/barlow-600.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 700; font-display: swap; src: url(/fonts/barlow-700.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url(/fonts/barlow-condensed-700.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-display: swap; src: url(/fonts/barlow-condensed-800.woff2) format("woff2"); }
@font-face { font-family: "Courier Prime"; font-weight: 400; font-display: swap; src: url(/fonts/courier-prime-400.woff2) format("woff2"); }
@font-face { font-family: "Courier Prime"; font-weight: 700; font-display: swap; src: url(/fonts/courier-prime-700.woff2) format("woff2"); }

:root {
  --charcoal: #1b1e24;
  --char3: #3a3e47;
  --steel: #a3a6ad;
  --orange: #ff901c;
  --paper: #f9f6f2;
  --on-dark: #d6d7da;

  /* Light sections; they turn charcoal in dark mode. */
  --sec: #f9f6f2;
  --sec-ink: #1b1e24;
  --sec-mute: #5d6068;
  --card: #ffffff;
  --card-line: #e0deda;

  /* The sample estimate is paper in both modes. */
  --form: #fffdfa;
  --form-ink: #1b1e24;
  --form-mute: #6a6d74;
  --rule: #e4dfd7;
  --typed: #2d3345;
  --stamp: #d4600c;
  --yellow: #f7edc2;
  --pink: #f5dada;

  --cond: "Barlow Condensed", "Barlow", system-ui, sans-serif;
  --body: "Barlow", system-ui, -apple-system, sans-serif;
  --typewriter: "Courier Prime", ui-monospace, Menlo, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --sec: #23262d;
    --sec-ink: #f4f2ee;
    --sec-mute: #b7b9bf;
    --card: #2c3038;
    --card-line: #3d414a;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--charcoal);
  color: var(--paper);
  font: 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--paper); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.caps { font-family: var(--cond); text-transform: uppercase; }

/* Roof & Feed mark (see BrandMark in Brand.swift), sized by --u. */
.mark {
  --u: 0.4px;
  position: relative; flex: none;
  width: calc(var(--u) * 100); height: calc(var(--u) * 100);
  border-radius: calc(var(--u) * 22.4); background: var(--orange);
}
.mark i { position: absolute; display: block; }
.mark .roof {
  left: calc(var(--u) * 28); top: calc(var(--u) * 25);
  width: calc(var(--u) * 44); height: calc(var(--u) * 44);
  border-top: calc(var(--u) * 10) solid var(--charcoal);
  border-left: calc(var(--u) * 10) solid var(--charcoal);
  transform: rotate(45deg);
}
.mark .bar {
  left: calc(var(--u) * 32); width: calc(var(--u) * 36); height: calc(var(--u) * 7);
  border-radius: calc(var(--u) * 3.5); background: var(--charcoal);
}
.mark .b1 { top: calc(var(--u) * 56); }
.mark .b2 { top: calc(var(--u) * 67); }
.mark .b3 { top: calc(var(--u) * 78); width: calc(var(--u) * 22); }
.mark.small { --u: 0.3px; }

/* Nav */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; }
.brand {
  display: flex; align-items: center; gap: 12px; color: var(--paper);
  font: 800 26px/1 var(--cond); text-transform: uppercase; letter-spacing: 0.02em;
}
.brand:hover { color: var(--paper); }
.navlinks { display: flex; align-items: center; gap: 28px; font-weight: 600; font-size: 15px; }
.navlinks a { color: var(--steel); }
.navlinks a:hover { color: var(--paper); }
.navlinks a { white-space: nowrap; }
.navlinks a.beta { color: var(--orange); }

/* Hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 56px; align-items: center; padding: 56px 0 96px;
}
.kicker {
  display: flex; align-items: center; gap: 10px; margin-bottom: 22px; color: var(--orange);
  font: 700 15px/1.2 var(--cond); text-transform: uppercase; letter-spacing: 0.14em;
}
.kicker::before { content: ""; width: 28px; height: 3px; background: var(--orange); flex: none; }
h1 {
  font: 800 clamp(56px, 8.4vw, 118px)/0.86 var(--cond);
  text-transform: uppercase; margin: 0 0 28px;
}
h1 em { font-style: normal; color: var(--orange); display: block; }
.lead { font-size: 20px; line-height: 1.5; color: var(--on-dark); max-width: 33em; margin: 0 0 34px; text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn, .btn2 {
  display: inline-flex; align-items: center; justify-content: center; height: 60px; padding: 0 28px;
  border-radius: 6px; font: 800 22px/1 var(--cond); text-transform: uppercase; letter-spacing: 0.04em;
}
.btn { background: var(--orange); color: var(--charcoal); }
.btn:hover { background: var(--paper); color: var(--charcoal); }
.btn2 { border: 2px solid var(--char3); color: var(--paper); font-weight: 700; }
.btn2:hover { border-color: var(--paper); color: var(--paper); }
.fine { margin: 18px 0 0; font-size: 15px; color: var(--steel); }

/* Sample estimate: a carbonless form with the yellow and pink copies behind it. */
.stack { position: relative; width: 100%; max-width: 480px; justify-self: center; padding: 10px 26px 30px 6px; }
.copy { position: absolute; inset: 10px 26px 30px 6px; border-radius: 3px; }
.copy.pink { background: var(--pink); transform: translate(22px, 20px) rotate(2.6deg); }
.copy.yellow { background: var(--yellow); transform: translate(11px, 9px) rotate(1.1deg); }
.form {
  position: relative; background: var(--form); color: var(--form-ink); border-radius: 3px;
  padding: 22px 24px; transform: rotate(-1deg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}
.label { font: 700 10.5px/1.2 var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--form-mute); }
.typed { font-family: var(--typewriter); color: var(--typed); }
.form-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  border-bottom: 2.5px solid var(--form-ink); padding-bottom: 12px;
}
.form-head .who { display: flex; align-items: center; gap: 12px; }
.form-head b { display: block; font: 800 24px/1 var(--cond); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 3px; }
.form-head .no { font: 400 18px/1 var(--typewriter); color: var(--stamp); }
.field {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: baseline;
  border-bottom: 1px solid var(--rule); padding: 9px 0 5px;
}
.field .typed { font-size: 16px; }
.lines { width: 100%; border-collapse: collapse; margin-top: 12px; }
.lines th {
  text-align: left; padding: 7px 0; border-bottom: 1.5px solid var(--form-ink);
  font: 700 10px/1 var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--form-mute);
}
.lines td { padding: 8px 0 6px; border-bottom: 1px solid var(--rule); font: 400 15px/1.3 var(--typewriter); color: var(--typed); }
.lines th:last-child, .lines td:last-child { text-align: right; }
.lines td:first-child { width: 26px; }
.lines td.off { color: var(--form-mute); }
.box {
  display: inline-block; width: 14px; height: 14px; border: 1.5px solid var(--form-ink);
  position: relative; vertical-align: -2px;
}
.box.on::after {
  content: ""; position: absolute; left: 3px; top: -1px; width: 4px; height: 9px;
  border-right: 2.5px solid var(--stamp); border-bottom: 2.5px solid var(--stamp); transform: rotate(40deg);
}
.total { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0 4px; font: 800 20px/1 var(--cond); text-transform: uppercase; letter-spacing: 0.04em; }
.total .typed { font: 700 22px/1 var(--typewriter); text-transform: none; letter-spacing: 0; }
.sign { margin-top: 14px; width: 56%; }
.sign-line {
  border-bottom: 1.5px solid var(--form-ink); height: 40px; margin-bottom: 5px;
  display: flex; align-items: flex-end; padding: 0 4px 4px;
  font: italic 600 24px/1 var(--body); color: #2f3f73; letter-spacing: -0.01em;
}
.stamp {
  position: absolute; right: 22px; bottom: 24px; transform: rotate(-9deg);
  border: 3px solid var(--stamp); border-radius: 6px; padding: 7px 12px 6px; color: var(--stamp);
  font: 800 27px/1 var(--cond); text-transform: uppercase; letter-spacing: 0.1em; text-align: center;
}
.stamp small { display: block; text-transform: none; font: 700 11.5px/1.2 var(--typewriter); letter-spacing: 0.02em; margin-top: 3px; }

.hazard { height: 16px; background: repeating-linear-gradient(-45deg, var(--orange) 0 18px, var(--charcoal) 18px 36px); }

/* Sections */
section.band { padding: 96px 0; }
.light { background: var(--sec); color: var(--sec-ink); }
.light a { color: var(--sec-ink); text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.light a:hover { color: var(--orange); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
h2 { font: 800 clamp(40px, 5.5vw, 72px)/0.9 var(--cond); text-transform: uppercase; margin: 0; }
.section-head p { margin: 0; max-width: 30em; color: var(--sec-mute); font-size: 18px; }

.plates {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px;
  background: var(--card-line); border: 2px solid var(--card-line);
}
.plate { background: var(--card); padding: 28px 24px 30px; display: flex; flex-direction: column; gap: 14px; }
.plate .num {
  display: flex; align-items: center; justify-content: space-between;
  font: 700 15px/1 var(--cond); letter-spacing: 0.12em; color: var(--sec-mute);
}
.plate .num::after { content: ""; width: 14px; height: 14px; background: var(--orange); }
.plate h3 { font: 800 34px/0.95 var(--cond); text-transform: uppercase; margin: 6px 0 0; }
.plate p { margin: 0; color: var(--sec-mute); font-size: 16px; text-wrap: pretty; }

/* How it works: five phones on one orange thread. The screens are simplified
   mockups of the app (not screenshots), one idea each, with that idea ringed. */
.hiw { overflow: hidden; }
.hiw .section-head p { color: var(--on-dark); max-width: 25em; }
.hiw-wrap { position: relative; }
.hiw-wrap::before {
  content: ""; position: absolute; top: 220px; height: 4px; background: var(--orange);
  left: calc(50% - 50vw); right: calc(50% - 50vw);
}
.hiw-row {
  position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px; align-items: start; margin: 0; padding: 0; list-style: none;
}
.hiw-step { display: flex; flex-direction: column; gap: 18px; }
.hiw-step:nth-child(even) { margin-top: 72px; }
.hiw-cap { display: flex; flex-direction: column; gap: 6px; }
.hiw-num {
  display: flex; align-items: center; gap: 8px; color: var(--orange);
  font: 800 14px/1 var(--cond); letter-spacing: 0.12em;
}
.hiw-who {
  font: 700 10.5px/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 7px; border-radius: 4px; background: var(--char3); color: var(--paper);
}
.hiw-who.client { background: var(--paper); color: var(--charcoal); }
.hiw-cap h3 { font: 800 28px/1 var(--cond); text-transform: uppercase; margin: 0; }
.hiw-cap p { margin: 0; color: var(--steel); font-size: 15px; line-height: 1.4; text-wrap: pretty; }

/* Phone mockups. Light iOS look in both color schemes, like the real app. */
.phone {
  border-radius: 32px; padding: 7px; background: #0b0c0f;
  box-shadow: 0 0 0 1px var(--char3), 0 30px 60px rgba(0, 0, 0, 0.5);
}
.scr {
  height: 430px; border-radius: 25px; overflow: hidden; background: #f2f2f7; color: #1c1c1e;
  font: 12px/1.3 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  display: flex; flex-direction: column; text-align: left;
}
.scr .sb {
  height: 30px; flex: none; display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px 0 20px; font-weight: 600; font-size: 11px;
}
.scr .isl { width: 56px; height: 16px; border-radius: 9px; background: #000; }
.scr .nav2 { padding: 4px 12px 9px; display: flex; flex-direction: column; gap: 1px; }
.scr .nav2 small { font-size: 10px; color: #8e8e93; }
.scr .nav2 b { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.scr .url {
  margin: 4px 12px 10px; height: 24px; border-radius: 12px; background: #e3e3e8; color: #3c3c43;
  display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 10.5px;
}
.scr .url::before { content: ""; width: 7px; height: 8px; border-radius: 2px; background: #8e8e93; }
.scr .body { flex: 1; padding: 0 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.scr .card { background: #fff; border-radius: 12px; padding: 7px 10px; }
.scr .row {
  display: flex; justify-content: space-between; align-items: center; gap: 6px;
  padding: 5px 0; border-bottom: 0.5px solid #e5e5ea; font-size: 11.5px;
}
.scr .row:last-child { border-bottom: 0; }
.scr .row small { display: block; font-size: 9.5px; color: #8e8e93; white-space: nowrap; }
.scr .row b { font-weight: 600; white-space: nowrap; }
.scr .row b.dim { color: #8e8e93; }
.scr .chip { display: inline-block; font-size: 8.5px; font-weight: 600; padding: 1px 5px; border-radius: 5px; margin-top: 2px; }
.scr .chip.allow { background: #dbeafe; color: #1d4ed8; }
.scr .chip.addon { background: #fae8ff; color: #a21caf; }
.scr .toggle { width: 28px; height: 17px; border-radius: 9px; background: #34c759; position: relative; flex: none; }
.scr .toggle::after {
  content: ""; position: absolute; right: 2px; top: 2px; width: 13px; height: 13px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.scr .cta2 {
  height: 36px; flex: none; margin-top: auto; border-radius: 11px; background: var(--orange); color: var(--charcoal);
  display: flex; align-items: center; justify-content: space-between; padding: 0 13px; font-weight: 700; font-size: 12.5px;
}
.scr .cta2.center { justify-content: center; }
.scr .ring { box-shadow: 0 0 0 2.5px var(--orange), 0 0 0 7px rgba(255, 144, 28, 0.28); }
.scr .big { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.scr .mute { color: #8e8e93; font-size: 10.5px; }
.scr .sig {
  border-bottom: 1px solid #1c1c1e; height: 28px; display: flex; align-items: flex-end; padding: 0 2px 3px;
  font: italic 600 17px/1 var(--body); color: #2f3f73;
}
.scr .tag { display: inline-block; white-space: nowrap; font-size: 8.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 2px 5px; border-radius: 4px; }
.scr .tag.blocker, .scr .tag.issue { background: #fde3e3; color: #c4282d; }
.scr .tag.log { background: #e9e6e1; color: #5d6068; }
.scr .tag.progress, .scr .tag.approval { background: #ffe7cc; color: #8a4708; }
.scr .blocked { box-shadow: inset 0 0 0 1.5px #e5484d; }
.scr .pic {
  height: 70px; border-radius: 8px; margin-top: 6px; display: flex; align-items: flex-end; padding: 5px;
  background: #d8d3cb center / cover no-repeat;
}
/* Unsplash License: framing.jpg by Troy Allen (unsplash.com/photos/FzyoWVQrc4Y),
   rot.jpg by Bogdan Farca (unsplash.com/photos/Zpkf0YnMLSE). */
.scr .pic.framing { background-image: url(/how/framing.jpg); }
.scr .pic.rot { background-image: url(/how/rot.jpg); }
.scr .pic .tag { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); }
.scr .meta { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 9.5px; color: #8e8e93; white-space: nowrap; }
.scr .t { font-weight: 700; font-size: 12.5px; margin-top: 5px; }
.scr .brandrow { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.scr .logo {
  width: 28px; height: 28px; border-radius: 8px; background: var(--orange); color: var(--charcoal); flex: none;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 10.5px;
}
.scr .brandrow b { display: block; font-size: 12px; }
.scr .ok { width: 16px; height: 16px; border-radius: 50%; background: #34c759; flex: none; position: relative; }
.scr .ok::after {
  content: ""; position: absolute; left: 5px; top: 3px; width: 4px; height: 7px;
  border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(40deg);
}
.scr .li { display: flex; align-items: center; gap: 8px; }

.trades { display: flex; flex-wrap: wrap; gap: 10px; margin: 56px 0 0; padding: 0; list-style: none; align-items: center; }
.trades li {
  font: 700 20px/1 var(--cond); text-transform: uppercase; letter-spacing: 0.06em;
  padding: 12px 16px; border: 2px solid var(--char3); border-radius: 4px;
}
.trades li.label { border: 0; padding: 12px 8px 12px 0; color: var(--steel); }

.home { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.home h2 { font-size: clamp(36px, 4.2vw, 56px); line-height: 0.92; margin-bottom: 24px; text-wrap: balance; }
.home > div > p { margin: 0 0 16px; font-size: 18px; text-wrap: pretty; }
.note { background: var(--card); border: 2px solid var(--card-line); border-radius: 6px; padding: 24px 26px; }
.note h3 { font: 700 15px/1.2 var(--cond); text-transform: uppercase; letter-spacing: 0.12em; color: var(--sec-mute); margin: 0 0 10px; }
.note p { font-size: 16px; color: var(--sec-mute); margin: 0 0 12px; text-wrap: pretty; }
.note p:last-child { margin: 0; }

.cta { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }

footer { border-top: 1px solid var(--char3); padding: 28px 0 44px; font-size: 14px; color: var(--steel); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; }
footer a { color: var(--steel); }
footer a:hover { color: var(--paper); }

@media (max-width: 1180px) {
  /* Five phones need about 200px each; below that they become a sideways strip.
     The thread is drawn on the strip itself so it scrolls along with the phones. */
  .hiw-wrap::before { display: none; }
  .hiw-row {
    display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 -24px; padding: 0 24px 16px; scroll-padding: 0 24px;
    background: linear-gradient(var(--orange), var(--orange)) 0 220px / 100% 4px no-repeat local;
  }
  .hiw-step { flex: 0 0 220px; scroll-snap-align: start; }
  .hiw-step:nth-child(even) { margin-top: 0; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 48px; padding: 32px 0 72px; }
  .plates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .navlinks .wide { display: none; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .plates { grid-template-columns: minmax(0, 1fr); }
  .hiw-row { margin: 0 -16px; padding: 0 16px 16px; scroll-padding: 0 16px; }
  section.band { padding: 64px 0; }
  .btn, .btn2 { width: 100%; }
  .stack { padding: 6px 18px 24px 2px; }
  .copy { inset: 6px 18px 24px 2px; }
  .copy.pink { transform: translate(14px, 16px) rotate(2.2deg); }
  .form { padding: 18px 16px; }
  .lines td { font-size: 13px; }
  .stamp { font-size: 21px; right: 14px; }
}
@media (max-width: 400px) {
  /* The hero's beta button is just below. */
  .navlinks a.beta { display: none; }
}
