/* ============================================================
   NATIVED SPACES — site stylesheet (shared by index + legal)
   Paper + dot grid surface · deep green guide color ·
   serif section voice · scroll reveals · live demo panels.
   legal.html links this file and overrides the background to
   plain white plus its own document typography.
   ============================================================ */

:root {
  --paper: #FBFAF7;
  --dot: #E5E0D3;
  --card: #FFFFFF;
  --ink: #1A1814;
  --ink-soft: #3A352C;
  --muted: #57524A;
  --faint: #6E6960;
  --line: #E6E1D6;
  --accent: #2F5D3A;
  --accent-soft: #EAF2EC;
  --accent-line: #D5E4D9;
  --dark: #0D0D0C;
  --dark-line: #242421;
  --green-bright: #5BC88F;
  --green-dark-kicker: #7FB59E;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Consolas", monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background-color: var(--paper);
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 26px 26px;
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--paper); }

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

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

.wrap {
  max-width: 1060px;
  margin-inline: auto;
  padding-inline: 24px;
}

.kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---- Scroll reveals (JS adds .js to <html>) ----------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.in { opacity: 1; transform: none; }

.js [data-stagger] > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.js [data-stagger].in > * { opacity: 1; transform: none; }
.js [data-stagger].in > *:nth-child(1) { transition-delay: 0.05s; }
.js [data-stagger].in > *:nth-child(2) { transition-delay: 0.15s; }
.js [data-stagger].in > *:nth-child(3) { transition-delay: 0.25s; }
.js [data-stagger].in > *:nth-child(4) { transition-delay: 0.35s; }
.js [data-stagger].in > *:nth-child(5) { transition-delay: 0.45s; }
.js [data-stagger].in > *:nth-child(6) { transition-delay: 0.55s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

.fade-up { animation: fadeUp 0.6s ease both; }
.d1 { animation-delay: 0.05s; }
.d2 { animation-delay: 0.15s; }
.d3 { animation-delay: 0.25s; }
.d4 { animation-delay: 0.35s; }

/* ---- Reduced motion: show everything, move nothing ----------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
  .js .reveal, .js [data-stagger] > * { opacity: 1; transform: none; }
  .type-line { width: 32ch !important; border-right-color: transparent !important; }
  .pair-pop, .pair-chip { opacity: 1 !important; transform: none !important; }
  .flip-back { opacity: 0 !important; }
  .tl-line { transform: none !important; }
  .wf-line { transform: none !important; }
}

/* ---- Scroll progress bar (clipped to pill shape) --------------- */
.progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--accent);
  z-index: 200;
}

/* ---- Nav: pill bar at content width ----------------------------- */
.nav-outer {
  position: sticky;
  top: 14px;
  z-index: 100;
}

.nav-pill {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 253, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 10px 8px 22px;
  box-shadow: 0 10px 30px -18px rgba(26, 24, 20, 0.25);
}

.wordmark {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.nav-actions { display: flex; align-items: center; gap: 6px; }

.nav-link {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: var(--ink); background: var(--paper); }

.nav-cta {
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--ink);
  color: var(--paper);
  padding: 9px 20px;
  border-radius: 999px;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--accent); }

/* ---- Hero --------------------------------------------------------- */
.hero { padding: 104px 0 88px; }

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.7rem, 7vw, 4.5rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.015em;
  max-width: 16ch;
  margin: 24px 0 28px;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 56ch;
  line-height: 1.75;
  margin-bottom: 40px;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-bottom: 18px;
}

.btn-primary {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 8px;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--accent); }

.text-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--faint);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}
.text-link:hover { color: var(--accent); border-color: var(--accent); }

.hero-note {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--faint);
  letter-spacing: 0.04em;
}

/* ---- Sections ------------------------------------------------------- */
.section { padding: 92px 0; }

.sec-head { margin-bottom: 48px; }

.sec-num {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  display: block;
  margin-bottom: 14px;
}

.sec-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.8vw, 2.5rem);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  max-width: 26ch;
}

.sec-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 60ch;
  line-height: 1.7;
}

/* ---- 01 · Problem rows ------------------------------------------------ */
.rows { border-top: 1px solid var(--line); }

.row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.row-term {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  padding-top: 4px;
}

.row p {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 56ch;
  line-height: 1.7;
}

/* ---- Feature rows (02 / 03 / 04) ---------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 60px;
  align-items: center;
}

.feature-copy .sec-title { margin-bottom: 14px; }

.feature-copy p {
  font-size: 0.96rem;
  color: var(--muted);
  max-width: 48ch;
  line-height: 1.7;
}

.feature-list {
  list-style: none;
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.feature-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--muted);
}

.feature-list li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  transform: translateY(-2px);
}

/* ---- 02 · Note window with Pair popover ----------------------------------- */
.window {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 22px 48px -30px rgba(26, 24, 20, 0.35);
  overflow: hidden;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  background: #FAF9F5;
}

.dot { width: 10px; height: 10px; border-radius: 50%; background: #E3DFD4; }

.window-title {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--faint);
  margin-left: 8px;
}

.window-body { padding: 24px 26px 26px; }

.note-heading {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.note-para {
  font-size: 0.87rem;
  color: var(--muted);
  max-width: 54ch;
  line-height: 1.7;
  margin-bottom: 12px;
}

/* the line being written — 12s synced loop */
.type-line {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  max-width: 100%;
  vertical-align: bottom;
  border-right: 2px solid var(--accent);
  animation: typing 12s steps(32) infinite, caret 0.75s step-end infinite;
}

@keyframes typing {
  0%   { width: 0; }
  26%  { width: 32ch; }
  92%  { width: 32ch; }
  96%  { width: 0; }
  100% { width: 0; }
}

@keyframes caret {
  50% { border-right-color: transparent; }
}

/* the Pair input box, anchored under the cursor */
.pair-pop {
  position: relative;
  margin-top: 16px;
  max-width: 380px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 28px -18px rgba(26, 24, 20, 0.3);
  padding: 11px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  animation: popIn 12s ease infinite;
}

.pair-pop::before {
  content: "";
  position: absolute;
  top: -6px;
  /* ch unit here is computed in the type-line's own font context
     so left: 32ch lands exactly under the blinking cursor */
  font-family: var(--mono);
  font-size: 0.8rem;
  left: 32ch;
  width: 11px;
  height: 11px;
  background: var(--card);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  transform: rotate(45deg);
}

@keyframes popIn {
  0%, 32%   { opacity: 0; transform: translateY(5px); }
  37%, 90%  { opacity: 1; transform: none; }
  95%, 100% { opacity: 0; transform: translateY(5px); }
}

.pair-pop-text {
  font-size: 0.82rem;
  color: var(--faint);
}

.pair-pop-key {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--faint);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 2px 7px;
  flex-shrink: 0;
}

.pair-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 7px;
  padding: 7px 12px;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 0.66rem;
  animation: chipIn 12s ease infinite;
}

@keyframes chipIn {
  0%, 48%   { opacity: 0; transform: translateY(4px); }
  54%, 90%  { opacity: 1; transform: none; }
  95%, 100% { opacity: 0; transform: translateY(4px); }
}

/* ---- 03 · Reminders panel --------------------------------------------------- */
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 26px;
  box-shadow: 0 22px 48px -30px rgba(26, 24, 20, 0.3);
}

.panel-label {
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 12px;
}

.rem-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid #F1EFE9;
  font-size: 0.86rem;
  color: var(--muted);
}

.rem-date {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 6px;
  padding: 3px 9px;
  flex-shrink: 0;
  min-width: 72px;
  text-align: center;
}

.tag {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 2px 8px;
  flex-shrink: 0;
}

.tag--link {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.panel-foot {
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--faint);
  margin-top: 12px;
}

/* ---- 04 · Auto-flipping slidecard --------------------------------------------- */
.flip-zone {
  perspective: 1000px;
  max-width: 460px;
  height: 220px;
  margin-inline: auto;
}

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: slowFlip 14s ease-in-out infinite;
}

/* ~6s per face, gentle turns */
@keyframes slowFlip {
  0%, 42%   { transform: rotateY(0); }
  50%, 92%  { transform: rotateY(180deg); }
  100%      { transform: rotateY(360deg); }
}

.flip-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 22px 48px -30px rgba(26, 24, 20, 0.3);
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.flip-back {
  transform: rotateY(180deg);
  border-color: var(--accent-line);
}

.flip-kind {
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
}

.flip-q {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
}

.flip-a {
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.flip-keys {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: auto;
}

.flip-key {
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--faint);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 3px 9px;
}

/* ---- 05 · Snowball: week timeline ----------------------------------------------- */
.timeline {
  position: relative;
  max-width: 660px;
  padding-left: 38px;
}

.tl-line {
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--accent-line);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.4s ease 0.2s;
}
.timeline.in .tl-line { transform: scaleY(1); }

.tl-item { position: relative; padding-bottom: 38px; }
.tl-item:last-child { padding-bottom: 0; }

.tl-item::before {
  content: "";
  position: absolute;
  left: -36px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--accent);
}

.tl-item--current::before {
  background: var(--accent);
}

.tl-item--current .tl-week::after {
  content: " · you are here";
  color: var(--faint);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
}

.tl-week {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}

.tl-item strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.tl-item p {
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 54ch;
  line-height: 1.68;
}

/* ---- 05b · Dark Start / Build / Review band --------------------------------------- */
.band {
  background: var(--dark);
  color: #F2F1ED;
  padding: 80px 0;
}

.band .kicker { color: var(--green-dark-kicker); }

.band-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 12px 0 48px;
}

.wf-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.wf-line {
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--green-bright);
  opacity: 0.55;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.4s ease 0.25s;
}
.wf-track.in .wf-line { transform: scaleX(1); }

.wf-step { position: relative; padding-top: 32px; }

.wf-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--dark);
  border: 2px solid var(--green-bright);
}

.wf-step strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 7px;
}

.wf-step p {
  font-size: 0.9rem;
  color: #A9A8A2;
  max-width: 34ch;
  line-height: 1.68;
}

.wf-step--here::before {
  border-color: var(--green-bright);
  background: var(--green-bright);
}

.wf-here-label {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-bright);
  margin-bottom: 6px;
}

/* ---- 06 · Anatomy of a Space -------------------------------------------------------- */
.space-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 22px 48px -32px rgba(26, 24, 20, 0.3);
}

.space-box-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.space-box-title { font-size: 1.08rem; font-weight: 700; }

.space-box-meta {
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--faint);
}

.chip-row { display: flex; flex-wrap: wrap; gap: 9px; }

.chip {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  background: #FAF9F5;
  border-radius: 7px;
  padding: 6px 12px;
  white-space: nowrap;
}

.chip--accent {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.space-box-foot {
  font-size: 0.88rem;
  color: var(--faint);
  margin-top: 22px;
  max-width: 60ch;
  line-height: 1.65;
}

/* ---- 07 · Before / after table -------------------------------------------------------- */
.table-scroll { overflow-x: auto; }

.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.compare th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 18px 20px 14px;
  color: var(--faint);
  border-bottom: 1px solid var(--line);
}

.compare th:last-child { color: var(--accent); }

.compare td {
  border-top: 1px solid #F0EEE7;
  padding: 17px 20px;
  vertical-align: top;
  color: var(--muted);
  line-height: 1.6;
}

.compare tr:first-child td { border-top: 0; }

.compare td:first-child {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  width: 1%;
}

.compare td:last-child { background: var(--accent-soft); color: var(--ink-soft); }

/* ---- Download + closer ------------------------------------------------------------------ */
.download { padding: 100px 0 90px; text-align: center; }

.download .sec-title { margin-inline: auto; }
.download .sec-sub { margin-inline: auto; }

.dl-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 18px;
  max-width: 700px;
  margin: 48px auto 0;
  text-align: left;
}

.dl-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s;
}
.dl-card:hover { border-color: var(--accent-line); }

.dl-os { font-size: 1.05rem; font-weight: 700; }
.dl-req { font-size: 0.84rem; color: var(--muted); }

.btn-soon {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--faint);
  border: 1px dashed #CFC9BB;
  border-radius: 999px;
  padding: 10px 20px;
  margin-top: 8px;
}

.dl-note {
  font-size: 0.78rem;
  color: var(--faint);
  line-height: 1.55;
  margin-top: 6px;
}

.closer { padding: 40px 0 120px; text-align: center; }

.closer h2 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.01em;
  max-width: 24ch;
  margin: 0 auto 36px;
}

.closer h2 em { font-style: italic; color: var(--accent); }

.closer-note {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--faint);
  margin-top: 18px;
}

/* ---- Footer --------------------------------------------------------------------------------- */
.footer {
  background: var(--dark);
  color: #56544E;
  padding: 52px 24px;
}

.footer-inner {
  max-width: 1060px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #fff;
}

.footer-links { display: flex; gap: 26px; }

.footer-links a {
  font-size: 0.86rem;
  color: #8B8880;
  transition: color 0.15s;
}
.footer-links a:hover { color: #fff; }

.footer-copy {
  font-size: 0.78rem;
  color: #56544E;
  width: 100%;
  text-align: right;
  margin-top: 10px;
}

/* ---- Responsive ------------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr; gap: 38px; }
  .feature-grid--swap .feature-demo { order: -1; }
  .wf-track { grid-template-columns: 1fr; gap: 34px; }
  .wf-line { display: none; }
}

@media (max-width: 640px) {
  .nav-outer { top: 10px; }
  .nav-link { display: none; }
  .nav-pill { padding-left: 18px; }
  .hero { padding: 76px 0 64px; }
  .section { padding: 66px 0; }
  .row { grid-template-columns: 1fr; gap: 8px; }
  .row-term { padding-top: 0; }
  .hero-btns { gap: 16px; }
  .rem-row { flex-wrap: wrap; }
  .tag { margin-left: 84px; }
  .download { padding: 76px 0 60px; }
  .closer { padding: 28px 0 90px; }
  .footer-copy { text-align: left; }
  .space-box { padding: 24px 20px; }
}
