:root {
  --bg: #ffffff;
  --ink: #0a0a0a;
  --muted: #555555; /* 7.4:1 on white */
  --rule: #e5e5e5;
  --accent: #111184; /* the app's own indigo, 14:1 on white */
  --accent-press: #0b0b5c;
  --gap-section: clamp(96px, 12vw, 176px);
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.02;
  text-wrap: balance;
}

h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); margin-bottom: 32px; }

p { margin: 0 0 1em; }

a { color: inherit; }

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

.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 10px 14px;
  background: var(--accent);
  color: #fff;
  z-index: 10;
}
.skip:focus { top: 12px; }

/* Bar */
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
}
.wordmark { font-weight: 800; font-size: 22px; text-decoration: none; }
.bar nav { display: flex; align-items: center; gap: 28px; }
.bar nav a:not(.btn) { text-decoration: none; font-size: 17px; }
.bar nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 5px; }

/* Actions */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.2;
  padding: 16px 24px;
  text-decoration: none;
  transition: background-color 180ms ease-out, transform 180ms ease-out;
}
.btn:hover { background: var(--accent-press); }
.btn:active { transform: translateY(1px); }
.btn-small { padding: 11px 18px; font-size: 16px; }

.link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  font-weight: 600;
}
.link:hover { text-decoration-thickness: 2px; }

/* Product shots */
.shot { margin: 0; }
/* taste-skill-ignore: 1px contour keeps the near-white app shots from dissolving into the page, same as pedropestana.dev */
.shot img { border: 1px solid var(--rule); background: #f5f6f8; }
.shot figcaption { margin-top: 14px; font-size: 15px; color: var(--muted); }

/* Hero */
.hero { padding-top: clamp(40px, 7vw, 96px); }
.hero h1 { font-size: clamp(2.25rem, 7.2vw, 6.5rem); max-width: 12ch; }
.hero-lead {
  display: grid;
  grid-template-columns: minmax(0, 40rem) auto;
  justify-content: space-between;
  align-items: end;
  gap: 32px 48px;
  margin: 40px 0 56px;
}
.lead { font-size: clamp(1.125rem, 1.5vw, 1.3rem); margin: 0; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

/* Text + phone */
section + section { margin-top: var(--gap-section); }
.shot.wide { margin-top: clamp(64px, 8vw, 112px); }
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 64px;
  align-items: center;
}
.split-flip { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
.prose { max-width: 38rem; }
.phone { max-width: 390px; width: 100%; justify-self: center; }

/* What the code checks */
.checks dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 64px;
  margin: 0 0 72px;
}
.checks dt { font-weight: 700; font-size: 21px; margin-bottom: 8px; }
.checks dd { margin: 0; }

/* Tax */
.tax {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: center;
}
.note { color: var(--muted); font-size: 16px; }

/* Stack */
.stack-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 64px;
}
.stack-line { font-weight: 600; margin: 16px 0 40px; }

/* Footer */
.foot { margin-top: var(--gap-section); padding-bottom: 48px; }
.foot-name {
  font-weight: 800;
  font-size: clamp(5rem, 20vw, 16rem);
  letter-spacing: -0.02em;
  line-height: 0.9;
  margin: 0 0 32px;
}
.foot-note { color: var(--muted); font-size: 16px; max-width: 46rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 12px 28px; }

/* One entrance on load, nothing on scroll */
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero-lead, .hero-shot { animation: rise 600ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-lead { animation-delay: 90ms; }
  .hero-shot { animation-delay: 180ms; }
  @keyframes rise { from { opacity: 0; transform: translateY(20px); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

@media (max-width: 900px) {
  .hero-lead, .split, .split-flip, .tax, .stack-cols, .checks dl { grid-template-columns: minmax(0, 1fr); }
  .split-flip .phone { order: 2; }
  .split, .tax { gap: 48px; }
  .bar nav a:not(.btn) { display: none; }
}
@media (max-width: 480px) {
  body { font-size: 17px; }
  .hero-lead { margin-bottom: 40px; }
  .checks dl { gap: 32px; margin-bottom: 56px; }
}
