:root {
  --bg: #1f4fbf;
  --ink: #f5f3ee;
  --ink-soft: rgba(245, 243, 238, 0.62);
  --rule: rgba(245, 243, 238, 0.6);
  --gutter: clamp(12px, 2vw, 28px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { background: var(--bg); color: var(--ink); }

/* Printed paper: uneven ink, fine grain, lighter worn edges.
   Fixed to the window so the texture doesn't stretch on long pages. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  mix-blend-mode: soft-light;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='0.45'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1400' height='1400'%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.004' numOctaves='5' seed='7'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='1.4' intercept='-0.2'/%3E%3CfeFuncG type='linear' slope='1.4' intercept='-0.2'/%3E%3CfeFuncB type='linear' slope='1.4' intercept='-0.2'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23b)' opacity='0.6'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1400' height='1400'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.006' numOctaves='4' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  2.6 0 0 0 -1.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)' opacity='0.13'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 65% 55% at 100% 0%, rgba(255, 255, 255, 0.18), transparent 70%),
    radial-gradient(ellipse 55% 45% at 0% 100%, rgba(255, 255, 255, 0.14), transparent 70%),
    radial-gradient(ellipse 70% 60% at 40% 45%, rgba(10, 30, 110, 0.22), transparent 75%);
  box-shadow: inset 0 0 90px rgba(255, 255, 255, 0.16);
  background-size: 240px 240px, cover, cover, auto, auto, auto;
}

body {
  font-family: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

::selection { background: var(--ink); color: var(--bg); }

/* Small uppercase text used for notes, nav and footer */
.small {
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

/* Header */
.top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: var(--gutter);
}
.top nav { display: flex; gap: 18px; }
.top .left { display: flex; gap: 18px; align-items: flex-start; }
.top .left > a:first-child:hover { text-decoration: underline; }
.top nav a:hover, .foot a:hover { text-decoration: underline; }

/* Big numbered list */
main { flex: 1; display: flex; flex-direction: column; justify-content: center; }

.list { list-style: none; border-top: 1px solid var(--rule); }

.row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 16px;
  border-bottom: 1px solid var(--rule);
  padding: 0 var(--gutter);
  position: relative;
  overflow: hidden;
}
.row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1);
  z-index: 0;
}
.row > * { position: relative; z-index: 1; transition: color 0.25s; }
a.row:hover::before, a.row:focus-visible::before { transform: scaleY(1); }
a.row:hover > *, a.row:focus-visible > * { color: var(--bg); }
a.row:focus-visible { outline: none; }

.big {
  font-size: clamp(30px, 6.4vw, 96px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.9;
  padding-top: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.big .n { letter-spacing: -0.04em; margin-right: 0.12em; font-variant-numeric: tabular-nums; }
/* A row with only a heading: centre it between the rules */
.row:has(> .big:only-child) { align-items: center; }
.row > .big:only-child { padding: 0.13em 0 0.07em; }

.note {
  text-align: right;
  padding-bottom: 0.7em;
  max-width: 26ch;
}

.row.muted .big, .row.muted .mid { color: var(--ink-soft); }

/* Row headings on inner pages: same size as the intro text */
.mid {
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  padding: 0.55em 0 0.5em;
  text-transform: uppercase;
}
.mid .n { margin-right: 0.2em; font-variant-numeric: tabular-nums; }

/* Fold-out FAQ rows */
.faq { border-bottom: 1px solid var(--rule); padding: 0 var(--gutter); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: clamp(18px, 2.2vw, 28px); font-weight: 700; line-height: 1; }
.faq[open] summary::after { content: "\2013"; }
.faq summary:hover .mid, .faq summary:focus-visible .mid { text-decoration: underline; text-underline-offset: 0.15em; }
.faq summary:focus-visible { outline: none; }
/* A full list of rows inside a fold-out: rows run edge to edge */
.faq .fold-list { margin: 0 calc(-1 * var(--gutter)); }
.faq .fold-list li:last-child .row { border-bottom: 0; }
/* Question rows: heading with the answer underneath */
.row.qa { grid-template-columns: 1fr; gap: 0; align-items: start; }
.answer { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; max-width: 60ch; padding-bottom: 16px; }

/* Footer */
.foot {
  display: flex;
  justify-content: space-between;
  padding: var(--gutter);
}

/* Inner pages */
.page { padding: 0 var(--gutter); max-width: 1200px; }
.page .big { white-space: normal; margin-bottom: 28px; }
.lede {
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 28ch;
  margin-bottom: 36px;
}

/* Small section label above a list */
.label { padding: 48px var(--gutter) 10px; }

/* Buy button */
.buy {
  display: inline-block;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  font-size: clamp(13px, 1.2vw, 15px);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  padding: 16px 24px;
  transition: background 0.2s, color 0.2s;
}
.buy:hover, .buy:focus-visible { background: transparent; color: var(--ink); outline: none; }
/* The second button beside it (Try it free): outlined, filled on hover */
.buy.ghost { background: transparent; color: var(--ink); }
.buy.ghost:hover, .buy.ghost:focus-visible { background: var(--ink); color: var(--bg); }
.buys { display: flex; flex-wrap: wrap; gap: 12px; }
.browsers { margin-top: 14px; color: var(--ink-soft); max-width: 60ch; }

/* App / demo slot */
.slot {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--rule);
  display: grid;
  place-items: center;
  margin: 0 var(--gutter);
}

/* Forms */
.form { display: flex; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); max-width: 760px; }
.form input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  color: var(--ink);
  font: inherit;
  font-size: clamp(20px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.05em;
  padding: 14px 0;
  text-transform: uppercase;
}
.form input::placeholder { color: var(--ink-soft); }
.form input:focus { outline: none; }
.form button {
  background: var(--ink);
  color: var(--bg);
  border: 0;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0 22px;
  cursor: pointer;
}
.status { margin-top: 12px; min-height: 1em; }

@media (max-width: 640px) {
  .row { grid-template-columns: 1fr; gap: 4px; }
  .note { text-align: left; padding-bottom: 8px; }
  .big { white-space: normal; }
  .top nav { gap: 12px; }
  .top { gap: 16px; }
  .top .brand span { display: block; }
  .top .left { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .row::before { transition: none; }
}
