/* ============================================================
   NEXTRACT 紹介サイト — styles.css
   依存ゼロ（素のCSS）。CSS変数 + Grid/Flex でレスポンシブ。

   参照: better-auth.com / resend.com / unkey.com（実測）

   3サイトに共通していた「開発者向けツールの作法」を土台にする
     1. 背景は純黒に寄せる（#000000 / #000000 / #040406）
     2. 見出しは weight 400。太らせない
     3. 本文は 16px の Inter 系グロテスク。見出しだけ別書体
     4. 面を塗らない。カード背景は 3 サイトとも transparent で、
        領域は 1px のヘアラインだけで示す
     5. 左寄せ。中央寄せの見出しは無い
     6. アクセント色をほぼ使わない（Unkey の紫も図版の中だけ）
     7. ボタンは小さい（高さ 36–44 / 14–16px / weight 500–600）

   性格は better-auth.com から採る（README 型）
     連番 01…N のヘアライン・グリッドで仕様を並べる。角丸 0。
     等幅の連番。コンテンツが主役で、見出しは大きくしすぎない。
     OSS の LP に GitHub から来る読者には README の見た目が母語。

   採らなかったもの
     Resend の 96px セリフ + 3D レンダリング、Unkey のディザ画像。
     どちらも専用の書体・アート素材が要り、手元に無いまま似せると
     安くなる。角丸も 3 サイト中 2 つが 0 なので 0 に倒す。

   本文 17px だけは 3 サイトの 16px から外している。日本語は
   Latin より大きさが要るため。

   配色は全階調 WCAG AA（4.5:1）を満たす。最も暗い --text-4 で
   純黒上 5.61:1。better-auth の連番（白 30% = 2.48:1）は
   AA を落とすので採らず、既存のミントを使う。
   ============================================================ */

:root {
  /* 面: 純黒。3 サイトとも #000000 / #040406 */
  --bg:        #000000;
  /* 面は「塗らない」。ごく薄い白だけで、強調したい面を浮かせる */
  --surface:   rgba(255,255,255,.030);
  --surface-2: rgba(255,255,255,.055);
  /* 領域はヘアラインで示す。better-auth は白の 6–10%、resend は 19% */
  --line:      rgba(255,255,255,.13);
  --line-soft: rgba(255,255,255,.07);

  /* 文字: 白から三段。すべて AA 適合 */
  --text:      #ffffff;  /* 21.00:1 on #000 */
  --text-em:   #d9d9d9;  /* 14.88:1 */
  --text-2:    #b0b0b0;  /*  9.68:1 */
  --text-3:    #9a9a9a;  /*  7.46:1 */
  --text-4:    #848484;  /*  5.61:1 */

  /* 面積を極小に保つ唯一の色。連番と矢印にだけ乗せる */
  --accent:    #7fd8bf;

  --radius:    0;      /* better-auth / unkey 実測。resend だけ 16–24px */
  --radius-sm: 0;
  --maxw:      1720px;
  --gutter:    clamp(20px, 2.4vw, 44px);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
          "Yu Gothic UI", Meiryo, "Noto Sans JP", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono",
          Menlo, Consolas, monospace;

  /* 本文 17px。polar 16px と Lemon Squeezy 18px の間 */
  --step: clamp(1rem, .96rem + .2vw, 1.0625rem);
  --lead: clamp(1.125rem, 1rem + .7vw, 1.5rem);
  --h1:   clamp(2rem, .95rem + 3.6vw, 4rem);         /* 最大 64px = unkey 実測 */
  --h2:   clamp(1.6875rem, 1.1rem + 2.6vw, 3.25rem); /* 最大 52px = unkey/resend 実測 */
  --h3:   clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-size: var(--step);
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
strong { font-weight: 500; color: var(--text); }

/* 見出しは太らせない（3サイトとも weight 400）。大きさと字間で階層をつくる */
h1, h2, h3, h4 {
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.02em;   /* better-auth -0.025em / unkey normal */
  text-wrap: balance;
}
h1 { font-size: var(--h1); line-height: 1.125; }   /* unkey 64/72 */
h2 { font-size: var(--h2); line-height: 1.125; }   /* unkey 52/58.5 */
h3 { font-size: var(--h3); font-weight: 450; letter-spacing: -.015em; line-height: 1.45; }

code {
  font-family: var(--mono);
  font-size: .875em;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: .15em .45em;
  white-space: nowrap;
  color: var(--text-2);
}

:where(a, button, summary):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* 全要素の左端を一本の線に揃えるための唯一のコンテナ */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
/* 読み物の行長は制限するが、コンテナ自体は縮めない。
   .container は margin-inline:auto を持つので、ここで max-width を
   上書きすると中央寄せになり、左端の通りが崩れる。制限は中身に掛ける。 */
.container-narrow > * { max-width: 60rem; }

.muted { color: var(--text-3); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 見出しの続き。白から一段落として二行目以降を沈める */
.mark { color: var(--text-2); }

.eyebrow {
  font-family: var(--mono);
  font-size: .6875rem;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-4);
  margin-bottom: 1.5rem;
}

/* ---------- Buttons ---------- */
/* better-auth / unkey とも角丸 0・小さめ。14px / weight 500 / 高さ 36–44 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  font-family: var(--sans);
  font-weight: 500;
  font-size: .875rem;
  line-height: 1;
  cursor: pointer;
  padding: .95em 1.5em;
  border-radius: 0;
  border: 1px solid transparent;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--text); color: #000; }
.btn-primary:hover { background: #d9d9d9; }

/* unkey の 2 番手ボタンは白 1px の枠だけ */
.btn-ghost { background: transparent; color: var(--text); border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { border-color: var(--text); background: var(--surface); }

.btn-outline { background: transparent; color: var(--text); border-color: var(--line); }
.btn-outline:hover { background: var(--text); color: #000; border-color: var(--text); }

.btn-sm { padding: .8em 1.3em; }
.btn-lg { padding: 1.1em 1.75em; font-size: .9375rem; }
.btn-block { display: flex; width: 100%; }

.btn::after { content: "\203A"; font-size: 1.15em; line-height: 0; opacity: .55; }
.btn-block::after, .nav-links .btn::after { content: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
}
.nav {
  display: flex; align-items: center;
  gap: 2.5rem; min-height: 76px;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; flex: none; }
.brand-mark {
  width: 15px; height: 15px; flex: none;
  border: 1.5px solid var(--text);
  border-radius: 50%;
  position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 3px auto 3px 3px; width: 4.5px;
  border-radius: 50%; background: var(--text);
}
.brand-name { font-weight: 500; letter-spacing: -.02em; font-size: 1.0625rem; }

/* ナビは左のロゴに続けて並べ、認証系だけを右へ送る */
.nav-links { display: flex; align-items: center; gap: 1.75rem; flex: 1; }
.nav-links > a:not(.btn) {
  font-size: .9375rem; color: var(--text-2); transition: color .15s ease;
}
.nav-links > a:not(.btn):hover { color: var(--text); }
.nav-links > .btn { margin-left: auto; }

.nav-toggle {
  display: none; width: 40px; height: 40px; flex-direction: column;
  gap: 4px; align-items: center; justify-content: center; margin-left: auto;
  background: none; border: 1px solid var(--line); border-radius: 0;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 16px; height: 1px; background: var(--text); }

/* ---------- Sections ---------- */
/* polar.sh は面を割らず、セクションの境目を髪の毛罫一本で示す */
.section { padding: clamp(5rem, 3rem + 7.5vw, 11rem) 0; border-top: 1px solid var(--line-soft); }
.section-alt { /* 面は割らない。境目は .section の罫線一本で示す */ }

.section-head { max-width: 52rem; margin-bottom: clamp(3rem, 2rem + 3vw, 5rem); }
.section-lead {
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  color: var(--text-2); line-height: 1.85; margin-top: 1.25rem;
  max-width: 46rem;
}
.section-lead strong { color: var(--text-em); font-weight: 450; }

/* ---------- Hero ---------- */
.hero { padding: clamp(4.5rem, 2rem + 8vw, 9.5rem) 0 clamp(3.5rem, 2rem + 5vw, 7rem); }
/* balance を掛けると行長を揃えようとして「文／脈」のように語中で折れる。
   幅を広く取り、折り返しはブラウザ既定の詰め込みに任せる。 */
.hero-title { max-width: 68rem; margin-bottom: 2.25rem; text-wrap: normal; }
.hero-sub {
  font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem);
  color: var(--text-2); line-height: 1.9; max-width: 48rem;
}
.hero-sub strong { color: var(--text-em); font-weight: 450; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2.5rem; }
.hero-note {
  margin-top: 2rem; font-size: .875rem; color: var(--text-4);
  line-height: 1.85; max-width: 48rem;
}
.hero-note strong { color: var(--text-3); font-weight: 400; }
.no-wrap { white-space: nowrap; }

/* 利用の流れ。アクセントラインと連番で、4 ステップをひと目で追えるようにする。 */
.flow {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 clamp(1.5rem, 2.5vw, 3rem);
  margin-top: clamp(3.5rem, 2rem + 4vw, 6rem);
}
.flow-step {
  position: relative;
  display: flex; align-items: center; gap: .9rem;
  min-height: 5.25rem; padding: 1.25rem 1rem;
  border-top: 2px solid var(--accent);
  background: linear-gradient(135deg, rgba(91, 223, 193, .11), rgba(91, 223, 193, 0) 70%);
  font-size: 1rem; font-weight: 500; line-height: 1.55; color: var(--text-1);
}
.flow-num {
  /* better-auth の連番は Geist Mono 11px / 字間 0.55px。色は白 30% だが
     それは 2.48:1 で AA を落とすため、既存のミント（12.48:1）を使う。 */
  display: grid; place-items: center;
  width: 2rem; height: 2rem;
  border: 1px solid var(--accent); border-radius: 50%;
  font-family: var(--mono); font-size: .75rem; letter-spacing: .05em;
  color: var(--accent); flex: none;
  font-variant-numeric: tabular-nums;
}
.flow-arrow { display: none; }
.flow-badge {
  font-family: var(--mono); font-size: .625rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-4);
  border: 1px solid var(--line); border-radius: 999px;
  padding: .15em .55em; margin-left: .5rem; align-self: center;
}

/* ---------- Grids ---------- */
/* better-auth の仕様グリッド。面を塗らず、1px のヘアラインだけで割る。
   グリッド自体を線色で塗り、1px の隙間とパディングを空けると、
   セル同士の境界と外周が二重線にならずに一本で通る。 */
.grid {
  display: grid; gap: 1px; padding: 1px;
  background: var(--line);
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* better-auth は仕様セルの左上に 01…N の等幅連番を置く。
   HTML に手を入れずカウンタで振る（機能グリッドだけに適用）。 */
#features .grid-3 { counter-reset: cardnum; }
#features .card { counter-increment: cardnum; }
#features .card::before {
  content: "0" counter(cardnum);
  position: absolute;
  top: clamp(1.5rem, 1.1rem + 1.5vw, 2.5rem);
  left: clamp(1.5rem, 1.1rem + 1.5vw, 2.5rem);
  font-family: var(--mono); font-size: .75rem; letter-spacing: .05em;
  color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1;
}

/* 機能カード: 線画を上に置き、文字は下端へ沈める */
.card {
  position: relative;
  background: var(--bg);
  padding: clamp(1.5rem, 1.1rem + 1.5vw, 2.5rem);
  min-height: clamp(20rem, 16rem + 12vw, 30rem);
  display: flex; flex-direction: column;
}
/* 図版は固定高。flex:1 にすると本文の行数でタイトルの高さがばらつき、
   横一列で見たときに文字の位置が揃わなくなる。 */
.card-figure {
  flex: none;
  height: clamp(8rem, 6rem + 6vw, 12rem);
  display: grid; place-items: center;
  margin-bottom: clamp(1.75rem, 1.4rem + 1.2vw, 2.75rem);
}
.card-figure svg {
  width: clamp(96px, 9vw, 150px); height: auto;
  stroke: var(--text); fill: none;
  stroke-width: 1; vector-effect: non-scaling-stroke;
  opacity: .92;
}
.card h3 { margin-bottom: .8rem; }
.card p { font-size: .9375rem; color: var(--text-2); line-height: 1.8; }
/* タグはカード下端に揃える。行の底が一直線に通る */
.card-tag {
  font-family: var(--mono); font-size: .6875rem; letter-spacing: .04em;
  color: var(--text-4); margin-top: auto; padding-top: 1.5rem; line-height: 1.7;
}

.features-note { margin-top: clamp(3rem, 2rem + 2.5vw, 4.5rem); }

/* ---------- Editions ---------- */
.edition-card {
  background: var(--bg);
  padding: clamp(1.9rem, 1.4rem + 1.8vw, 3rem);
  display: flex; flex-direction: column;
}
/* 強調したい面だけ、ごく薄い白を敷いて浮かせる */
.edition-card--accent { background: var(--surface); }

.edition-badge {
  display: inline-block; align-self: flex-start;
  font-family: var(--mono); font-size: .6875rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-4);
  border: 1px solid var(--line); border-radius: 999px;  /* resend の告知バッジだけ丸 */
  padding: .3em .9em; margin-bottom: 1.75rem;
}
.edition-badge--accent { color: var(--accent); border-color: #2b3a35; }
.edition-card h3 {
  font-size: clamp(1.375rem, 1.2rem + .8vw, 1.875rem);
  font-weight: 400; letter-spacing: -.03em;
}
.edition-tagline { color: var(--text-2); margin: .75rem 0 2rem; font-size: 1rem; }
.edition-for {
  font-size: .875rem; color: var(--text-4); line-height: 1.85;
  margin: 2rem 0; padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.edition-card .btn { margin-top: auto; }

.check-list { list-style: none; display: grid; gap: .85rem; }
.check-list li {
  position: relative; padding-left: 1.6rem;
  font-size: .9375rem; color: var(--text-2); line-height: 1.8;
}
.check-list li::before {
  content: "\2192"; position: absolute; left: 0; top: 0;
  font-family: var(--mono); font-size: .8125rem; color: var(--accent);
}
.check-list li strong { color: var(--text-em); font-weight: 450; }

/* ---------- Comparison table ---------- */
/* Paddle の「構造化された仕様」の扱い。面を持たせて独立させる */
/* 上のグリッドと辺を共有して、一枚の仕様表に見せる */
.table-wrap {
  margin-top: -1px; overflow-x: auto;
  background: var(--bg); border: 1px solid var(--line);
}
.compare { width: 100%; border-collapse: collapse; font-size: .9375rem; min-width: 720px; }
.compare th, .compare td {
  padding: 1.15rem clamp(1.2rem, 1.2vw, 2rem); text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--line-soft); line-height: 1.75;
}
.compare tbody th { border-right: 1px solid var(--line-soft); }
.compare thead th {
  font-family: var(--mono); font-size: .6875rem; font-weight: 400;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-4); border-bottom: 1px solid var(--line);
}
.compare tbody th { font-weight: 450; color: var(--text); width: 28%; }
.compare tbody td { color: var(--text-2); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }

/* ---------- Pricing ---------- */
.price-card {
  --pad: clamp(1.75rem, 1.3rem + 1.6vw, 3rem);
  position: relative;
  background: var(--bg);
  /* リボンの分を全カードで確保する。流し込みにすると、リボンを持つ
     カードだけプラン名と金額が下がり、横一列で高さが揃わなくなる。 */
  padding: calc(var(--pad) + 1.9rem) var(--pad) var(--pad);
  display: flex; flex-direction: column;
}
.price-card--featured { background: var(--surface); }
.price-ribbon {
  position: absolute; top: var(--pad); left: var(--pad);
  font-family: var(--mono); font-size: .625rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent);
}
.price-name { font-size: 1.125rem; font-weight: 450; letter-spacing: -.01em; }
.price-amount { margin-top: 1.1rem; display: flex; align-items: baseline; gap: .2rem; }
.price-val {
  font-family: var(--mono); font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem);
  font-weight: 400; letter-spacing: -.04em; font-variant-numeric: tabular-nums;
}
.price-unit { font-size: .875rem; color: var(--text-3); }
.price-annual { font-size: .8125rem; color: var(--text-4); margin-top: .5rem; min-height: 1.5em; }
.price-desc {
  font-size: .9375rem; color: var(--text-2); line-height: 1.8;
  margin: 1.5rem 0 1.75rem; padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
}
.price-card .check-list { margin-bottom: 2rem; }
.price-card .btn { margin-top: auto; }

.saas-note, .pricing-foot {
  font-size: .875rem; line-height: 1.9; color: var(--text-4);
  margin-top: clamp(2rem, 1.6rem + 1.4vw, 3rem); max-width: 60rem;
}
.saas-note a, .onprem-ent a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.saas-note a:hover, .onprem-ent a:hover { color: var(--text); }

/* Self-host ブロック */
.onprem-section { margin-top: clamp(4rem, 3rem + 3.5vw, 7rem); }
.onprem-head { max-width: 52rem; margin-bottom: 2.5rem; }
.onprem-head h3 { font-size: var(--h2); font-weight: 400; letter-spacing: -.03em; line-height: 1.2; }
.onprem-head-sub {
  display: block; font-family: var(--mono); font-size: .6875rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-4); margin-top: .9rem;
}
.onprem-head p { margin-top: 1.25rem; line-height: 1.9; max-width: 46rem; font-size: 1rem; }
.onprem-hero-wrap { max-width: 32rem; }
.onprem-hero .price-name { font-size: 1.1875rem; }
.onprem-hero-list { margin-top: .25rem; }
.onprem-note { font-size: .875rem; line-height: 1.9; color: var(--text-4); margin-top: 2.25rem; max-width: 60rem; }
.onprem-ent { display: block; margin-top: .7rem; }

/* ---------- FAQ ---------- */
/* Lemon Squeezy の連番アコーディオン。髪の毛罫 + 色付き連番 */
.faq-list { border-top: 1px solid var(--line); counter-reset: faq; }
.faq-item { border-bottom: 1px solid var(--line); counter-increment: faq; }
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 1.7rem 3rem 1.7rem 3.5rem;
  font-weight: 450; font-size: 1.0625rem; position: relative;
  color: var(--text); transition: color .15s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--text-2); }
/* 連番 */
.faq-item summary::before {
  content: "0" counter(faq);
  position: absolute; left: 0; top: 2.05rem;
  font-family: var(--mono); font-size: .75rem; letter-spacing: .05em;
  color: var(--accent); font-variant-numeric: tabular-nums;
}
.faq-item summary::after {
  content: "+"; position: absolute; right: .5rem; top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono); font-size: 1.125rem; color: var(--text-4);
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p {
  font-size: .9375rem; color: var(--text-2); line-height: 1.95;
  padding: 0 3rem 1.9rem 3.5rem;
}
.faq-item p strong { color: var(--text-em); font-weight: 450; }

/* ---------- CTA ---------- */
.cta { padding: clamp(5rem, 3.5rem + 6vw, 9rem) 0; border-top: 1px solid var(--line-soft); }
.cta h2 { max-width: 56rem; margin-bottom: 1.5rem; }
.cta p {
  color: var(--text-2); font-size: var(--lead); line-height: 1.7;
  max-width: 48rem; letter-spacing: -.015em;
}
.cta p strong { color: var(--text); font-weight: 400; }
.cta .hero-note { color: var(--text-4); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-top: clamp(3.5rem, 2.5rem + 2.5vw, 5rem); }
.footer-inner {
  display: grid; grid-template-columns: 1.6fr 2fr; gap: 3rem;
  padding-bottom: 3.5rem;
}
.footer-tagline {
  margin-top: 1.1rem; font-size: .9375rem; color: var(--text-3);
  line-height: 1.85; max-width: 24rem;
}
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-col { display: flex; flex-direction: column; gap: .8rem; }
.footer-col h4 {
  font-family: var(--mono); font-size: .6875rem; font-weight: 400;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-4); margin-bottom: .3rem;
}
.footer-col a { font-size: .9375rem; color: var(--text-2); transition: color .15s ease; }
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-block: 1.75rem 3rem;
  display: flex; flex-wrap: wrap; gap: .5rem 2rem;
  justify-content: space-between; align-items: baseline;
  font-size: .8125rem; color: var(--text-4); line-height: 1.9;
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); gap: 0 2rem; }
}

@media (max-width: 860px) {
  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 720px) {
  .nav { min-height: 64px; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1.5rem;
  }
  .nav-links.open { display: flex; }
  .nav-links > a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid var(--line-soft); }
  .nav-links > .btn { margin: 1.25rem 0 0; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; gap: 0; }
  .flow-step { min-height: 0; padding: 1rem; border-top-width: 2px; }
  .card { min-height: 0; }
  .card-figure { padding: .5rem 0 2rem; min-height: 6rem; height: auto; }
  .hero-actions .btn { flex: 1 1 auto; }

  .faq-item summary { padding-left: 2.6rem; padding-right: 2.25rem; font-size: 1rem; }
  .faq-item summary::before { top: 1.85rem; font-size: .8125rem; }
  .faq-item p { padding-left: 2.6rem; padding-right: 0; }
}

.card-figure svg { stroke-linecap: round; stroke-linejoin: round; }
