/* Landing, privacy and 404 pages. Tokens and rules: see DESIGN.md. Self-contained: these pages
   don't load the app's styles.css. */

@font-face {
  font-family: 'Instrument Serif';
  src: url('/fonts/instrument-serif-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('/fonts/instrument-serif-latin-400-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #faf8f4;
  --paper-2: #f2eee6;
  --line: #e4dfd4;
  --ink: #16181a;
  --ink-2: #55585c;
  --green: #0b7a5c;
  --green-ink: #ffffff;
  --green-soft: #dcefe6;
  --mint: #c3f2de;
  --green-mid: #1f9d72;
  --green-deep: #064c39;
  --card: #ffffff;
  --card-shadow: 0 1px 2px rgb(22 24 26 / 0.06), 0 30px 70px -24px rgb(6 76 57 / 0.35);
  --cta-from: #0b7a5c;
  --cta-to: #064c39;
  --cta-ink: #ffffff;
  --band: #16181a;
  --band-ink: #faf8f4;
  --band-ink-2: #b9bbbe;
  --band-accent: #2fc497;
  --shot-shadow: 0 30px 80px -20px rgb(22 24 26 / 0.25);
  --blob-opacity: 0.55;

  --serif: 'Instrument Serif', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --width: 1120px;
  --gutter: 24px;
  --section: 128px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1112;
    --paper-2: #171a1c;
    --line: #2a2e31;
    --ink: #f1eee8;
    --ink-2: #a6a9ad;
    --green: #2fc497;
    --green-ink: #06140f;
    --green-soft: #163a2f;
    --mint: #1d4d3d;
    --green-mid: #2fc497;
    --green-deep: #8ff0c8;
    --card: #171a1c;
    --card-shadow: 0 0 0 1px #2a2e31, 0 30px 70px -24px rgb(0 0 0 / 0.7);
    --cta-from: #3fd8a6;
    --cta-to: #1f9d72;
    --cta-ink: #04140e;
    --band: #171a1c;
    --band-ink: #f1eee8;
    --band-ink-2: #a6a9ad;
    --shot-shadow: none;
    --blob-opacity: 0.35;
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: var(--green);
}
:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 6px;
}
.wrap {
  width: 100%;
  max-width: calc(var(--width) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  background: var(--paper);
  padding: 8px 12px;
}

/* ---------- type ---------- */
.display,
h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0;
}
h1 em,
h2 em {
  font-style: italic;
  color: var(--green);
}
.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 20px;
}
.lede {
  font-size: clamp(1.125rem, 2vw, 1.3rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 34em;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--green);
  color: var(--green-ink);
  font: 600 1rem/1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  transition:
    filter 0.15s,
    transform 0.15s;
}
.btn:hover {
  filter: brightness(1.08);
}
.btn:active {
  transform: translateY(1px);
}
.btn-sm {
  min-height: 44px;
  padding: 0 20px;
  font-size: 0.9375rem;
}
.tpl-also {
  margin: 24px 0 0;
  color: var(--ink-2);
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  gap: 8px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.link-arrow:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.link-arrow span {
  transition: transform 0.15s;
}
.link-arrow:hover span {
  transform: translateX(3px);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

/* ---------- nav bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 96%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
[id] {
  scroll-margin-top: 88px;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links > a:not(.btn) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
}
.nav-links > a:not(.btn):hover {
  background: var(--paper-2);
}
.nav-links .gh-link {
  border: 1px solid var(--line);
  margin: 0 4px 0 8px;
}
.gh-mark {
  flex: none;
}
.menu {
  display: none;
  position: relative;
}
.menu summary {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
}
.menu summary::-webkit-details-marker {
  display: none;
}
.menu[open] summary {
  background: var(--paper-2);
}
.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 200px;
  padding: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 40px -12px rgb(22 24 26 / 0.25);
}
.menu-panel a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.menu-panel a:hover {
  background: var(--paper-2);
}

/* ---------- hero: the poll starts here ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 104px;
  text-align: center;
}
.hero-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
/* The logo's three circles, very large and soft, behind the start card. */
.blob {
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  opacity: var(--blob-opacity);
  left: 50%;
  top: 50%;
}
.blob-green {
  background: radial-gradient(closest-side, var(--mint), transparent);
  transform: translate(-78%, -62%);
}
.blob-amber {
  background: radial-gradient(closest-side, color-mix(in srgb, var(--green-mid) 40%, transparent), transparent);
  transform: translate(-22%, -62%);
}
.blob-blue {
  background: radial-gradient(closest-side, var(--mint), transparent);
  transform: translate(-50%, -22%);
}
.hero-inner {
  position: relative;
}
.kicker {
  display: inline-block;
  margin: 0 0 22px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 70%, transparent);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--green);
}
.hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.95;
  margin: 0 auto 22px;
  max-width: 11em;
}
.hero .lede {
  margin: 0 auto 40px;
  max-width: 32em;
}

/* The two kinds of poll, as big cards: the main way into the app. */
.start-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 820px;
  margin: 0 auto;
  text-align: left;
}
.poll-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px;
  background: var(--card);
  border: 1.5px solid transparent;
  border-radius: 28px;
  box-shadow: var(--card-shadow);
  color: var(--ink);
  text-decoration: none;
  transition:
    transform 0.18s,
    border-color 0.18s,
    box-shadow 0.18s;
}
.poll-card:hover {
  transform: translateY(-4px);
  border-color: var(--green);
}
.poll-card:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 4px;
  border-radius: 28px;
}
.poll-art {
  display: flex;
  align-items: center;
  height: 64px;
  margin-bottom: 10px;
}
.art-dates i {
  display: grid;
  place-items: center;
  width: 52px;
  height: 56px;
  margin-right: 8px;
  border-radius: 14px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  font: 600 0.875rem var(--sans);
  font-style: normal;
  color: var(--ink-2);
}
.art-dates i.on {
  background: linear-gradient(135deg, var(--cta-from) 0%, var(--cta-to) 100%);
  border-color: transparent;
  color: var(--cta-ink);
  transform: rotate(-4deg) scale(1.08);
}
/* The logo's three circles. */
.art-free {
  position: relative;
  width: 76px;
}
.art-free i {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--green-mid) 45%, transparent);
}
.art-free i:nth-child(1) {
  left: 0;
  top: 2px;
}
.art-free i:nth-child(2) {
  left: 26px;
  top: 2px;
}
.art-free i:nth-child(3) {
  left: 13px;
  top: 22px;
}
.poll-title {
  font: 400 clamp(1.7rem, 3vw, 2.1rem) / 1.05 var(--serif);
}
.poll-text {
  color: var(--ink-2);
}
.poll-fit {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--green);
}
.poll-go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-top: 14px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cta-from) 0%, var(--cta-to) 100%);
  color: var(--cta-ink);
  font-weight: 700;
}
.poll-go span {
  transition: transform 0.18s;
}
.poll-card:hover .poll-go span {
  transform: translateX(4px);
}
.trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin: 28px 0 0;
  padding: 0;
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.trust li::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--green);
  vertical-align: middle;
}

/* ---------- sections ---------- */
.section {
  padding: var(--section) 0;
  border-top: 1px solid var(--line);
}
.section h2,
.band h2,
.closing h2 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1;
}

/* How it works: three phone screens, side by side; on a phone, a row to swipe through. */
.shots {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.shots li {
  min-width: 0;
}
.shots img {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: 0 0 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shot-shadow);
}
.shots:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 8px;
  border-radius: 12px;
}

/* For groups */
.groups {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.25fr);
  gap: 64px;
  align-items: center;
}
.benefits {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  gap: 26px;
}
.benefits li {
  position: relative;
  padding-left: 44px;
}
/* A tiny three-circle mark, drawn in CSS, as each benefit's bullet. */
.benefits li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1px;
  width: 26px;
  height: 26px;
  background: url('/favicon.svg?v=5') center / contain no-repeat;
}
h3 {
  font-size: 1.125rem;
  line-height: 1.3;
  font-weight: 600;
  margin: 0 0 6px;
}
.benefits p,
.dev-points p {
  margin: 0;
  color: var(--ink-2);
}
/* "Less group chat. More plans.": a messy chat, then the one clear answer. */
.story {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.1fr);
  align-items: center;
  gap: 18px;
}
.chat {
  padding: 16px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 22px;
  transform: rotate(-2deg);
}
.chat-head {
  margin: 0 0 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.msg {
  width: fit-content;
  max-width: 100%;
  margin: 0 0 6px;
  padding: 6px 11px 7px;
  border-radius: 14px 14px 14px 4px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 0.875rem;
  line-height: 1.35;
}
.msg b {
  display: block;
  font-size: 0.6875rem;
  color: var(--ink-2);
}
.msg-me {
  margin: 8px 0 0 auto;
  border: 0;
  border-radius: 14px 14px 4px 14px;
  background: var(--green);
  color: var(--green-ink);
}
.story-arrow {
  font-size: 1.75rem;
  color: var(--green);
}
.result {
  padding: 22px;
  background: var(--card);
  border-radius: 24px;
  box-shadow: var(--card-shadow);
}
.result-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  font-weight: 700;
}
.result-label {
  display: inline-block;
  margin: 0 0 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-deep);
  font-size: 0.8125rem;
  font-weight: 700;
}
.result-date {
  margin: 0 0 16px;
  font: 400 clamp(1.6rem, 2.4vw, 2.1rem) / 1.05 var(--serif);
  white-space: nowrap;
}
.faces {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}
.faces span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-right: -8px;
  border-radius: 50%;
  border: 2px solid var(--card);
  background: hsl(var(--h) 55% 30%);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
}
.faces em {
  margin-left: 18px;
  font-style: normal;
  font-weight: 600;
  color: var(--ink-2);
  font-size: 0.875rem;
}
.result-cta {
  margin: 0;
  padding: 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cta-from) 0%, var(--cta-to) 100%);
  color: var(--cta-ink);
  text-align: center;
  font-weight: 700;
}

/* For developers */
.band {
  background: var(--band);
  color: var(--band-ink);
  padding: var(--section) 0;
}
.band h2 em,
.band a:not(.btn) {
  color: var(--band-accent);
}
.band .eyebrow,
.band .lede,
.band .dev-points p {
  color: var(--band-ink-2);
}
.dev {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.dev h2 {
  margin-bottom: 20px;
}
.dev .lede {
  margin: 0 0 32px;
}
.dev-points {
  list-style: none;
  margin: 0 0 36px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
}
.btn-ghost-light {
  gap: 10px;
  background: transparent;
  color: var(--band-ink);
  box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.25);
}
.btn-ghost-light:hover {
  box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.6);
}
.code-card {
  margin: 0;
  background: #0b0d0e;
  color: #e6e3dc;
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: 20px;
  padding: 22px 26px 26px;
  overflow-x: auto;
  box-shadow: 0 40px 80px -40px rgb(47 196 151 / 0.35);
}
.code-card figcaption {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--band-ink-2);
  margin-bottom: 16px;
}
.code-card pre {
  margin: 0;
  font:
    0.875rem/1.75 ui-monospace,
    'SF Mono',
    Menlo,
    Consolas,
    monospace;
  white-space: pre;
}
.code-card .prompt {
  color: var(--band-accent);
  user-select: none;
}
.code-card .comment {
  color: #8f9399;
}

/* ---------- closing ---------- */
.closing {
  text-align: center;
  padding-top: var(--section);
  padding-bottom: var(--section);
}
.closing h2 {
  margin: 0 auto 32px;
}
.btn-lg {
  min-height: 56px;
  padding: 0 32px;
  font-size: 1.0625rem;
  background: linear-gradient(135deg, var(--cta-from) 0%, var(--cta-to) 100%);
  color: var(--cta-ink);
}
.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 28px;
  padding-top: 28px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--ink-2);
}
.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
}
.footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-2);
  text-decoration: none;
}
.footer a:hover {
  color: var(--ink);
}

/* ---------- Finn, the Venn dog ---------- */
.meet-finn {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  max-width: 30em;
  margin: 40px auto 0;
  text-align: left;
  color: var(--ink-2);
}
.meet-finn img {
  flex: none;
  transform: rotate(-4deg);
  transform-origin: 50% 100%;
}
.meet-finn p {
  margin: 0 0 6px;
  font-size: 1rem;
  line-height: 1.5;
}
.meet-finn b {
  color: var(--ink);
}
.finn-lost {
  position: relative;
  width: 70px;
  height: 152px;
  margin: 24px 0;
}
.finn-lost img {
  display: block;
  transform: scaleX(-1) rotate(-6deg);
  transform-origin: 50% 100%;
}
.finn-lost span {
  position: absolute;
  left: 74px;
  top: -30px;
  font: 400 3.5rem/1 var(--serif);
  color: var(--green);
}

/* ---------- text pages (privacy, 404) ---------- */
.page {
  padding-top: 56px;
  padding-bottom: var(--section);
}
.page h1 {
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 1;
  margin-bottom: 16px;
}
.prose {
  max-width: 40em;
}
.prose h2 {
  font-size: 2rem;
  line-height: 1.1;
  margin: 56px 0 14px;
}
.prose p,
.prose li {
  color: var(--ink);
}
.prose li + li {
  margin-top: 8px;
}
.prose .meta {
  color: var(--ink-2);
  margin-bottom: 32px;
}

/* ---------- templates (/templates and /templates/*) ---------- */
.crumbs {
  margin: 0 0 24px;
  font-size: 0.875rem;
  color: var(--ink-2);
}
.crumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-2);
}
.tpl-page {
  padding-bottom: 0;
}
.tpl-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 64px;
  align-items: center;
}
.tpl-hero .lede {
  margin: 0 0 32px;
}
.tpl-hero .result {
  margin: 0;
}
.tpl-list section {
  margin-top: 64px;
}
.tpl-small {
  margin: 14px 0 0;
  font-size: 0.875rem;
  color: var(--ink-2);
}
/* The poll, drawn in HTML: a few dates and how many can make each, the best one picked. */
.votes {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 8px;
}
.votes li {
  display: grid;
  grid-template-columns: 7.5em minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  font-weight: 600;
}
.votes i {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--green) var(--n), var(--line) var(--n));
}
.votes b {
  color: var(--ink-2);
  font-weight: 600;
}
.votes .best,
.votes .best b {
  color: var(--green);
}
.tpl-body {
  display: grid;
  gap: 80px;
  margin-top: var(--section);
}
.tpl-body h2,
.tpl-list h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.25rem);
  line-height: 1.05;
  margin: 0 0 24px;
}
.steps {
  margin: 0;
  padding-left: 1.4em;
  display: grid;
  gap: 14px;
}
.steps li::marker {
  font-weight: 700;
  color: var(--green);
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--line);
}
.timeline li {
  position: relative;
  padding: 0 0 22px 24px;
}
.timeline li::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
}
.timeline b {
  display: block;
}
.faq details {
  border-top: 1px solid var(--line);
}
.faq details:last-child {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 12px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  margin-left: auto;
  padding-left: 16px;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--green);
}
.faq details[open] summary::after {
  content: '−';
}
.faq details p {
  margin: 0 0 18px;
  color: var(--ink-2);
}
/* The templates, as cards: on /templates and the home page. */
.tpl-cards {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.tpl-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 24px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 20px;
  color: var(--ink);
  text-decoration: none;
  transition:
    transform 0.18s,
    border-color 0.18s;
}
.tpl-card:hover {
  transform: translateY(-3px);
  border-color: var(--green);
}
.tpl-card strong {
  font: 400 1.75rem/1.1 var(--serif);
}
.tpl-card span {
  color: var(--ink-2);
}
.tpl-card em {
  margin-top: auto;
  padding-top: 8px;
  font-style: normal;
  font-weight: 600;
  color: var(--green);
}
.tpl-more {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.tpl-more a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.tpl-more a:hover {
  border-color: var(--green);
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  :root {
    --section: 88px;
  }
  .hide-md {
    display: none !important;
  }
  .menu {
    display: block;
  }
  .groups,
  .dev,
  .tpl-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
  .tpl-cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .story {
    max-width: 560px;
  }
  .shots {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--gutter));
    padding: 0 var(--gutter) 24px;
    scroll-padding-inline: var(--gutter);
  }
  .shots li {
    flex: 0 0 min(260px, 72vw);
    scroll-snap-align: start;
  }
}
@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }
  .gh-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .nav-links .gh-link {
    width: 44px;
    padding: 0;
    justify-content: center;
    margin: 0;
  }
  .nav {
    gap: 8px;
  }
  .nav-links {
    gap: 4px;
  }
  .btn-sm {
    padding: 0 16px;
  }
  .hero {
    padding: 40px 0 72px;
  }
  .blob {
    width: 380px;
    height: 380px;
  }
  .poll-card {
    padding: 22px;
  }
  .start-cards,
  .dev-points,
  .story {
    grid-template-columns: minmax(0, 1fr);
  }
  .story-arrow {
    justify-self: center;
    transform: rotate(90deg);
  }
  .chat {
    transform: none;
  }
  .cta-row .btn {
    flex: 1 1 100%;
  }
  .code-card {
    padding: 18px;
  }
  .code-card pre {
    font-size: 0.75rem;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
}
