/* SellMate 公開サイト（index.html / features.html 共通）
 *
 * ブランドの基準は提案資料（docs/提案資料_v6_20260807.pptx）から実測:
 *   濃紺#0E2038 / 紺#163B5B / 紺(淡)#2A5580 / 琥珀#E8A33D / クリーム#FDF6EA / 薄青灰#F5F7FA
 *   見出しの左に琥珀のバー、右上にセクションchip、角丸パネル、数字は濃紺の帯に琥珀。
 *   **色を足すときは資料側から取る**（アプリ本体は#1E3A8A/#FBBF24の別系統で、混ぜると資料と別物になる）。
 *
 * 製品画面は**実際のアプリのスクリーンショット**（.shot / .frame-shot）。撮り直しは
 *   python tools/capture_manual_shots.py --public --out homepage/assets/shots
 * 公開用マスクが Item ID・仕入れ先の商品URL・仕入額を伏せる。
 * **撮り直したら生成画像を必ず目視する**＝マスク指定は一致0件でも黙って通る。
 *
 * 外部フォント・外部スクリプト・外部画像は読み込まない（画像は自サイトの assets/ のみ）。
 * → 書体で個性を出せないので、**字送り・太さ・余白と、番号だけ等幅**で階層を作っている。
 */

:root {
  --night:      #0E2038;
  --night-2:    #16294A;
  --night-3:    #081426;
  --navy:       #163B5B;
  --navy-soft:  #2A5580;
  --amber:      #E8A33D;
  --amber-2:    #F0B65E;
  --amber-pale: #FDF6EA;
  --amber-line: #EBBF7A;
  --amber-ink:  #8A5B10;
  --mist:       #F5F7FA;
  --white:      #FFFFFF;

  --ink:        #1F2A36;
  --ink-soft:   #54616D;
  --ink-faint:  #6B7885;
  --line:       #E3E8EF;

  /* アプリ画面の再現に使う色（実際のUIに合わせている） */
  --app-bg:     #0B1220;
  --app-line:   #1E2C45;
  --app-blue:   #3B82F6;
  --app-dim:    #7C8BA3;

  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "Yu Gothic", YuGothic, Meiryo, "Noto Sans JP", "Segoe UI", system-ui, sans-serif;
  /* 番号・単位だけに使う。日本語を入れると和文がフォールバックして不揃いになるので、
     必ず「数字のみ」の要素に当てること */
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 1160px;
  --band-y: clamp(72px, 9vw, 128px);

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;
  --r-xl: 28px;

  --e1: 0 1px 2px rgba(14, 32, 56, .05), 0 3px 10px rgba(14, 32, 56, .04);
  --e2: 0 2px 6px rgba(14, 32, 56, .05), 0 14px 32px rgba(14, 32, 56, .08);
  --e3: 0 30px 70px rgba(6, 14, 28, .28);

  --head-h: 74px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

img { max-width: 100%; }

/* <defs>だけのSVGも置換要素なので、指定しないと300×150の空白が居座る */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

/* 固定ヘッダーの下にアンカー先が潜り込まないように */
[id] { scroll-margin-top: calc(var(--head-h) + 16px); }

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

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 16px; top: 12px; z-index: 60;
  background: var(--amber); color: var(--night);
  padding: 8px 14px; border-radius: 8px; text-decoration: none;
}

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

.bolt { width: 20px; height: 20px; fill: var(--amber); flex: none; }

/* ── ヘッダー（濃紺のヒーローに重なる→スクロールで白に） ─────────── */

.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background-color .28s ease, box-shadow .28s ease, border-color .28s ease;
  border-bottom: 1px solid transparent;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--head-h);
}

.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }

.brand-name { font-size: 1.12rem; font-weight: 700; letter-spacing: .04em; color: #fff; transition: color .28s ease; }

.topnav { display: flex; align-items: center; gap: 30px; font-size: .89rem; font-weight: 500; }

.topnav a { color: rgba(255, 255, 255, .82); text-decoration: none; transition: color .2s ease; }
.topnav a:hover { color: #fff; }

.nav-btn {
  background: var(--amber);
  color: var(--night) !important;
  border-radius: 999px;
  padding: 11px 26px;
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease;
}

.nav-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(232, 163, 61, .34); }

/* スクロール後（site.jsが .is-solid を付ける） */
.topbar.is-solid {
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}

.topbar.is-solid .brand-name { color: var(--navy); }
.topbar.is-solid .topnav a { color: var(--ink-soft); }
.topbar.is-solid .topnav a:hover { color: var(--navy); }
.topbar.is-solid .nav-btn { color: var(--night) !important; }

/* 白地のページ（features）は最初から白ヘッダー */
.page-light .topbar {
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.page-light .brand-name { color: var(--navy); }
.page-light .topnav a { color: var(--ink-soft); }
.page-light .topnav a:hover { color: var(--navy); }

/* スマートフォンのメニュー開閉ボタン（広い画面では出さない） */
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 11px;
  background: transparent;
  cursor: pointer;
}

.nav-bars, .nav-bars::before, .nav-bars::after {
  display: block;
  width: 17px; height: 2px;
  margin: 0 auto;
  border-radius: 2px;
  background: #fff;
  transition: transform .22s ease, opacity .18s ease;
}

.nav-bars { position: relative; }
.nav-bars::before, .nav-bars::after { content: ""; position: absolute; left: 0; }
.nav-bars::before { top: -6px; }
.nav-bars::after  { top: 6px; }

.topbar.is-solid .nav-toggle,
.page-light .nav-toggle { border-color: var(--line); }

.topbar.is-solid .nav-bars,
.topbar.is-solid .nav-bars::before,
.topbar.is-solid .nav-bars::after,
.page-light .nav-bars,
.page-light .nav-bars::before,
.page-light .nav-bars::after { background: var(--navy); }

.nav-toggle[aria-expanded="true"] .nav-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-bars::after  { transform: translateY(-6px) rotate(-45deg); }

/* ── ヒーロー ──────────────────────────────────────── */

.hero {
  position: relative;
  background: var(--night);
  color: #fff;
  padding: calc(var(--head-h) + clamp(44px, 6vw, 84px)) 0 clamp(150px, 15vw, 210px);
  overflow: hidden;
}

/* 斜めの面（提案資料の表紙・最終ページと同じ処理） */
.hero::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 52%; height: 100%;
  background: var(--night-2);
  clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%);
}

/* 琥珀のかすかな光 */
.hero::after {
  content: "";
  position: absolute;
  top: -220px; right: -60px;
  width: 760px; height: 760px;
  background: radial-gradient(circle, rgba(232, 163, 61, .18), rgba(232, 163, 61, 0) 62%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  gap: clamp(36px, 4vw, 60px);
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  padding: 7px 20px;
  font-size: .8rem;
  color: rgba(255, 255, 255, .84);
  margin: 0 0 26px;
}

.hero-eyebrow .bolt { width: 14px; height: 14px; }

.hero-title {
  font-size: clamp(1.6rem, 2.9vw, 2.5rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .005em;
  margin: 0 0 24px;
}

/* 和文は文字単位で折り返すので、山になる語だけは割らせない */
.hero-title em { font-style: normal; color: var(--amber); white-space: nowrap; }

.hero-lead {
  margin: 0 0 34px;
  max-width: 34em;
  font-size: 1rem;
  line-height: 2;
  color: rgba(255, 255, 255, .8);
}

.trust-row {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.trust-row li {
  position: relative;
  padding-left: 21px;
  font-size: .8rem;
  color: rgba(255, 255, 255, .72);
}

.trust-row li::before {
  content: "";
  position: absolute; left: 2px; top: .62em;
  width: 11px; height: 6px;
  border-left: 2px solid var(--amber);
  border-bottom: 2px solid var(--amber);
  transform: rotate(-45deg);
}

/* アプリ画面をはめる枠 */
.hero-media { position: relative; }

.frame {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--app-bg);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 40px 80px rgba(3, 8, 18, .5);
}

.frame-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  background: #0F1729;
  border-bottom: 1px solid var(--app-line);
}

.frame-dots { display: inline-flex; gap: 6px; }
.frame-dots i { width: 9px; height: 9px; border-radius: 50%; background: #26344C; }

.frame-title { font-size: .74rem; letter-spacing: .06em; color: var(--app-dim); }

.frame-shot { display: block; width: 100%; height: auto; }

/* 画面の上に重ねる「あなたの操作はこれだけ」の札 */
.hero-badge {
  position: absolute;
  left: -30px;
  bottom: -30px;
  margin: 0;
  padding: 15px 24px;
  border-radius: var(--r);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .3);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 44px rgba(3, 8, 18, .4);
}

.hero-badge-k {
  display: block;
  font-size: .72rem;
  letter-spacing: .08em;
  color: var(--amber);
  margin-bottom: 2px;
}

.hero-badge-v { display: block; font-size: .96rem; font-weight: 700; color: #fff; }

/* ── ボタン ─────────────────────────────────────── */

.cta { display: flex; justify-content: flex-start; align-items: center; flex-wrap: wrap; gap: 14px 26px; }
.cta-left { justify-content: flex-start; }

.btn {
  display: inline-block;
  background: var(--amber);
  color: var(--night);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  padding: 17px 44px;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(232, 163, 61, .26);
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.btn:hover { transform: translateY(-2px); background: var(--amber-2); box-shadow: 0 16px 34px rgba(232, 163, 61, .38); }

.btn-ghost {
  font-size: .93rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .4);
  padding-bottom: 3px;
  transition: color .18s ease, border-color .18s ease;
}

.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }

/* 白地の上に置く控えめなボタン */
.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--navy-soft);
  border-radius: 999px;
  padding: 14px 34px;
  font-size: .94rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.btn-line::after { content: "→"; font-size: .95em; transition: transform .18s ease; }
.btn-line:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-line:hover::after { transform: translateX(3px); }

/* ── 工程レール（濃紺と白にまたがるカード） ───────────────
   5工程は静かなまま、あなたの工程(04)だけを琥珀で持ち上げる。
   琥珀の光が左から流れ、04で一度止まってから右へ抜ける＝
   「自動で流れ、あなたのところだけで止まる」を図で言い切るための動き */

/* 次に来る .band が自前で var(--band-y) の余白を持つので、ここは詰めておく
   （両方に付けると帯のあいだが256px空いて「何も無い画面」になる） */
.rail-band { position: relative; z-index: 2; background: var(--white); padding-bottom: clamp(28px, 3.5vw, 48px); }

.rail-card {
  margin-top: clamp(-116px, -9vw, -84px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--e3);
  padding: clamp(30px, 4vw, 46px) clamp(20px, 3.4vw, 46px) clamp(26px, 3.4vw, 38px);
}

.rail-h {
  margin: 0 0 clamp(28px, 3.4vw, 40px);
  text-align: center;
  font-size: clamp(1.05rem, 2.1vw, 1.42rem);
  font-weight: 700;
  line-height: 1.7;
  color: var(--navy);
}

.rail-h em {
  font-style: normal;
  color: var(--navy);
  background: linear-gradient(transparent 60%, var(--amber-line) 60%);
  padding: 0 3px;
}

.rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 工程どうしをつなぐ線。両端のノード中心（1/12・11/12）で止める */
.rail::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 8.33%;
  right: 8.33%;
  height: 2px;
  background: var(--line);
}

/* 流れていく光 */
.rail::after {
  content: "";
  position: absolute;
  top: 27px;
  left: 8.33%;
  width: 108px;
  margin-left: -54px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(232, 163, 61, 0), var(--amber), rgba(232, 163, 61, 0));
  animation: railFlow 6s cubic-bezier(.66, 0, .34, 1) infinite;
}

@keyframes railFlow {
  0%, 4%  { left: 8.33%;  opacity: 0; }
  12%     { opacity: 1; }
  38%     { left: 58.33%; opacity: 1; }
  56%     { left: 58.33%; opacity: 1; }
  90%     { left: 91.66%; opacity: 1; }
  100%    { left: 91.66%; opacity: 0; }
}

.rail-step { position: relative; text-align: center; padding: 0 6px; }

.rail-node {
  position: relative;
  z-index: 1;
  width: 56px; height: 56px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--line);
  color: var(--navy-soft);
}

.rail-node svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.rail-n {
  display: block;
  font-size: .64rem;
  letter-spacing: .1em;
  color: var(--ink-faint);
  margin-bottom: 4px;
}

.rail-n b { font-family: var(--mono); font-size: .84rem; font-weight: 700; margin-left: 4px; color: var(--navy-soft); }

.rail-t { display: block; font-size: .85rem; font-weight: 700; color: var(--ink); line-height: 1.55; }

.rail-by {
  display: inline-block;
  margin-top: 10px;
  border-radius: 999px;
  padding: 3px 12px;
  font-size: .68rem;
  background: var(--mist);
  color: var(--ink-faint);
}

/* あなたの工程だけを持ち上げる */
.rail-step.is-you .rail-node {
  background: var(--amber);
  border-color: var(--amber);
  color: #fff;
  transform: scale(1.16);
  box-shadow: 0 0 0 6px var(--amber-pale);
  animation: youPulse 6s ease-in-out infinite;
}

.rail-step.is-you .rail-n b { color: var(--amber-ink); }
.rail-step.is-you .rail-t { color: var(--navy); }

.rail-step.is-you .rail-by {
  background: var(--amber);
  color: #fff;
  font-weight: 700;
}

@keyframes youPulse {
  0%, 34%, 62%, 100% { box-shadow: 0 0 0 6px var(--amber-pale); }
  44%, 52%           { box-shadow: 0 0 0 12px rgba(232, 163, 61, .22); }
}

.rail-note { text-align: center; margin-top: clamp(22px, 3vw, 30px); }

/* ── 帯とセクション見出し ─────────────────────────────── */

.band { padding: var(--band-y) 0; }
.band-mist { background: var(--mist); }
.band-tight { padding-top: clamp(40px, 5vw, 64px); }

.sec-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: clamp(34px, 4.4vw, 52px); }

.h2 {
  margin: 0;
  padding-left: 18px;
  border-left: 5px solid var(--amber);
  font-size: clamp(1.3rem, 2.8vw, 1.9rem);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .02em;
  color: var(--navy);
}

.sub { margin: 12px 0 0 23px; font-size: .93rem; color: var(--ink-soft); }

.chip {
  flex: none;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 24px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}

.chip b { font-family: var(--mono); font-size: .9rem; color: var(--amber-ink); }

.band-mist .chip { background: var(--white); }

.lead { margin: 40px 0 0; font-size: .96rem; color: var(--ink-soft); max-width: 52em; }

.mark {
  font-style: normal;
  font-weight: 700;
  color: var(--navy);
  background: linear-gradient(transparent 62%, var(--amber-line) 62%);
  padding: 0 2px;
}

.foot-note { margin: 24px 0 0; font-size: .8rem; line-height: 1.9; color: var(--ink-faint); }

.shot-cap { margin: 18px 0 0; font-size: .78rem; color: var(--ink-faint); }

/* ── パネル ──────────────────────────────────────── */

.panel { border-radius: var(--r); padding: 30px 32px; }
.panel-mist { background: var(--mist); }
.band-mist .panel-mist { background: var(--white); border: 1px solid var(--line); }
.band-mist .ba-sum, .band-mist .loop-item { background: var(--mist); }
.panel-cream { background: var(--amber-pale); border: 2px solid var(--amber-line); }

.panel-h { margin: 0 0 22px; font-size: 1rem; font-weight: 700; color: var(--navy); text-align: center; }

/* ── 課題の循環 ───────────────────────────────────── */

.loop { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

.loop-item {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 16px 10px;
  text-align: center;
  font-size: .92rem;
  font-weight: 500;
  color: var(--navy);
}

.loop-item::after {
  content: "";
  position: absolute;
  right: -11px; top: 50%;
  width: 8px; height: 8px;
  border-top: 2px solid var(--amber);
  border-right: 2px solid var(--amber);
  transform: translateY(-50%) rotate(45deg);
}

.loop-item:last-child::after { content: none; }

.loop-back { margin: 18px 0 0; text-align: center; font-size: .82rem; color: var(--ink-faint); }

/* ── これまで / 導入後 ───────────────────────────────── */

.ba { display: grid; grid-template-columns: 1fr auto 1.15fr; gap: 20px; align-items: stretch; }
.ba-col { display: flex; flex-direction: column; }
.ba-label { margin: 0 0 12px; font-size: .92rem; font-weight: 700; color: var(--ink-soft); }
.ba-label-on { color: var(--navy); }
.ba-panel { flex: 1; }

.steps-old { list-style: none; margin: 0 0 22px; padding: 0; }
.steps-old li { display: flex; align-items: center; gap: 14px; padding: 9px 0; font-size: .95rem; }

.num {
  flex: none; width: 27px; height: 27px;
  border: 1px solid var(--navy-soft); border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: .78rem; font-weight: 700; color: var(--navy);
}

.ba-sum {
  margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 11px; text-align: center; font-size: .9rem; font-weight: 700; color: var(--ink-soft);
}

.ba-arrow { align-self: center; }
.ba-arrow svg { width: 40px; height: 28px; fill: var(--amber); display: block; }

.steps-new { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.steps-new li {
  background: var(--white); border: 1px solid var(--amber-line); border-radius: var(--r-sm);
  padding: 11px 6px; text-align: center; font-size: .84rem; color: var(--navy);
}

.you { border-top: 1px solid var(--amber-line); padding-top: 20px; text-align: center; }
.you-label { margin: 0 0 6px; font-size: .84rem; color: var(--ink-soft); }
.you-main { margin: 0; font-size: clamp(1.05rem, 2.2vw, 1.35rem); color: var(--navy); }
.you-main b { font-weight: 700; }

.you-note {
  margin: 20px 0 0; background: var(--white); border-radius: var(--r-sm); padding: 13px 16px;
  font-size: .82rem; line-height: 1.85; color: var(--ink-soft); text-align: center;
}

/* ── 数字の帯 ────────────────────────────────────── */

.figs-band {
  background: var(--night);
  padding: clamp(48px, 6vw, 76px) 0;
  position: relative;
  overflow: hidden;
}

.figs-band::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(70% 130% at 76% 0%, rgba(232, 163, 61, .16), rgba(232, 163, 61, 0) 60%);
  pointer-events: none;
}

.figs { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; position: relative; z-index: 1; }
.fig { text-align: center; padding: 0 16px; border-left: 1px solid rgba(255, 255, 255, .16); }
.fig:first-child { border-left: none; }

.fig-n {
  font-size: clamp(2.2rem, 4.4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
  color: var(--amber);
}

.fig-u { font-size: .84rem; font-weight: 700; margin-left: 6px; letter-spacing: 0; }
.fig-l { margin: 8px 0 0; font-size: .84rem; color: rgba(255, 255, 255, .84); }

/* ── 機能の交互レイアウト（features / index 共通） ──────── */

.feature { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(34px, 5vw, 68px); align-items: center; }
.feature + .feature { margin-top: clamp(64px, 8vw, 108px); }
/* 左右反転の行。orderで前に出すと画面図が1列目＝狭い側に入ってしまうので、
   列幅も入れ替える（入れ替えないと反転行だけ画面図が80px以上狭くなり、
   商品名が「…」で切れる） */
.feature.rev { grid-template-columns: 1.15fr 1fr; }
.feature.rev .feature-media { order: -1; }

/* アプリ画面を載せる行は全幅にする。本文の横（約600px）に置くと表の領域が316pxしか
   残らず、列を削るしかなくなって「簡易版」に見えてしまう。全幅なら実物と同じ
   列構成・情報密度をそのまま出せる */
.feature-wide { display: block; }
.feature-wide .feature-body { max-width: 56em; margin-bottom: clamp(26px, 3vw, 38px); }
.feature-wide .feature-media { width: 100%; }
.feature-wide .ticks { columns: 2; column-gap: 40px; }
.feature-wide .ticks li { break-inside: avoid; }

.feature-n {
  display: inline-block;
  background: var(--amber-pale);
  color: var(--amber-ink);
  border-radius: 999px;
  padding: 5px 16px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: 16px;
}

.feature-t { margin: 0 0 14px; font-size: clamp(1.15rem, 2.3vw, 1.5rem); font-weight: 700; line-height: 1.6; color: var(--navy); }
.feature-d { margin: 0 0 20px; font-size: .94rem; color: var(--ink-soft); }

.shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r);
  border: 1px solid var(--line);
  box-shadow: var(--e3);
  background: var(--app-bg);
}

/* 縦に長い画面（アラート一覧など）は上だけ見せて下端を地の色へ溶かす。
   全幅で素置きすると1枚で1400px以上の高さを占め、ページが画面1枚分の広告になる */
.shot-clip {
  position: relative;
  max-height: min(72vh, 640px);
  overflow: hidden;
  border-radius: var(--r);
  box-shadow: var(--e3);
}

.shot-clip .shot { border-radius: 0; box-shadow: none; border: none; }

.shot-clip::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 128px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--white));
  pointer-events: none;
}

.band-mist .shot-clip::after { background: linear-gradient(180deg, rgba(245, 247, 250, 0), var(--mist)); }

.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding-left: 26px; margin-bottom: 9px; font-size: .89rem; color: var(--ink); }
.ticks li::before {
  content: "";
  position: absolute; left: 2px; top: .62em;
  width: 11px; height: 6px;
  border-left: 2px solid var(--amber); border-bottom: 2px solid var(--amber);
  transform: rotate(-45deg);
}

/* ── 機能カード（トップの「そのほか」6枚） ──────────────── */

.fcards {
  list-style: none;
  margin: clamp(52px, 6vw, 76px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.fcard {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 26px 28px;
  box-shadow: var(--e1);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.fcard:hover { transform: translateY(-4px); border-color: var(--amber-line); box-shadow: var(--e2); }

.fcard-ico {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: var(--amber-pale);
  color: var(--amber-ink);
  margin-bottom: 16px;
  transition: background-color .2s ease, color .2s ease;
}

.fcard-ico svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.fcard:hover .fcard-ico { background: var(--amber); color: #fff; }

.fcard-t { margin: 0 0 8px; font-size: .98rem; font-weight: 700; color: var(--navy); line-height: 1.6; }
.fcard-d { margin: 0; font-size: .86rem; line-height: 1.9; color: var(--ink-soft); }

/* ── カード（features のみ） ─────────────────────────── */

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.card:hover { transform: translateY(-3px); border-color: var(--amber-line); box-shadow: var(--e2); }

.card-t {
  margin: 0 0 10px; padding-left: 14px;
  border-left: 3px solid var(--amber);
  font-size: 1rem; font-weight: 700; color: var(--navy);
}

.card-d { margin: 0; font-size: .89rem; line-height: 1.95; color: var(--ink-soft); }

/* ── 前提（仕入れ先一覧＋開示） ─────────────────────── */

.trust-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 3vw, 40px); align-items: start; }

.trust-main {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 32px);
}

.trust-k {
  margin: 0 0 18px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--ink-faint);
}

.trust-note { margin: 18px 0 0; font-size: .84rem; color: var(--ink-soft); }

/* 仕入れ先サイトの一覧（features.html は span・index.html は li） */
.sites-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; list-style: none; margin: 0; padding: 0; }

.sites-grid > * {
  display: grid;
  place-items: center;
  min-height: 74px;
  padding: 10px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: .86rem;
  font-weight: 600;
  color: var(--navy);
  transition: border-color .18s ease, background-color .18s ease;
}

.sites-grid > *:hover { border-color: var(--amber-line); background: var(--amber-pale); }
.band-mist .trust-main .sites-grid > * { background: var(--mist); }
.band-mist .trust-main .sites-grid > *:hover { background: var(--amber-pale); }

.trust-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }

.trust-facts li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px 26px;
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-rows: auto auto;
  column-gap: 16px;
  align-items: center;
}

.trust-ico {
  grid-row: span 2;
  align-self: start;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: var(--night);
  color: var(--amber);
}

.trust-ico svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.trust-t { margin: 0 0 4px; font-size: .96rem; font-weight: 700; color: var(--navy); }
.trust-d { margin: 0; font-size: .84rem; line-height: 1.9; color: var(--ink-soft); }

/* ── 導入の流れ ──────────────────────────────────── */

.steps3 { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.s3 {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--e1);
}

/* 手順どうしをつなぐ矢印 */
.s3::after {
  content: "";
  position: absolute;
  right: -14px; top: 46px;
  width: 9px; height: 9px;
  border-top: 2px solid var(--amber);
  border-right: 2px solid var(--amber);
  transform: rotate(45deg);
}

.s3:last-child::after { content: none; }

.s3-n {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: .92rem; font-weight: 700; margin-bottom: 14px;
}

.s3-t { margin: 0 0 10px; font-size: 1.02rem; font-weight: 700; color: var(--navy); }
.s3-d { margin: 0 0 18px; font-size: .88rem; line-height: 1.95; color: var(--ink-soft); flex: 1; }

.s3-m {
  margin: 0; align-self: flex-start;
  background: var(--amber-pale); border-radius: 999px; padding: 5px 16px;
  font-size: .78rem; font-weight: 700; color: var(--amber-ink);
}

.callout { padding: 26px 30px; }
.callout .panel-h { text-align: left; margin-bottom: 10px; }
.callout-d { margin: 0; font-size: .89rem; line-height: 1.95; color: var(--ink-soft); }

/* ── 料金 ────────────────────────────────────────── */

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }

.plan {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 32px 26px 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}

.plan:hover { transform: translateY(-3px); box-shadow: var(--e2); }

.plan-std {
  border: 2px solid var(--amber);
  padding-top: 44px;
  box-shadow: 0 18px 46px rgba(232, 163, 61, .2);
}

.plan-badge {
  position: absolute;
  top: -15px; left: 50%;
  transform: translateX(-50%);
  margin: 0;
  background: var(--night); color: #fff; border-radius: 999px;
  padding: 7px 24px; font-size: .78rem; font-weight: 700; white-space: nowrap;
}

.plan-pill {
  display: inline-block; margin: 0 0 20px;
  background: var(--navy-soft); color: #fff; border-radius: 999px;
  padding: 9px 32px; font-size: .95rem; font-weight: 700;
}

.plan-pill-amber { background: var(--amber); color: var(--night); }
.plan-pill-night { background: var(--night); }

.plan-p { margin: 0 0 18px; font-size: 2rem; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.plan-per { font-size: .78rem; font-weight: 500; color: var(--ink-faint); margin-left: 4px; letter-spacing: 0; }

.plan-c { margin: 0 0 24px; background: var(--mist); border-radius: 999px; padding: 10px; font-size: .88rem; color: var(--ink); }
.plan-c b { font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }

.plan-btn {
  margin-top: auto;
  display: block;
  border: 1px solid var(--navy-soft);
  border-radius: 999px;
  padding: 13px 18px;
  font-size: .88rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.plan-btn:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

.plan-btn-on { background: var(--amber); border-color: var(--amber); color: var(--night); }
.plan-btn-on:hover { background: var(--amber-2); border-color: var(--amber-2); color: var(--night); }

.plans-common {
  margin: 24px 0 0;
  text-align: center;
  font-size: .84rem;
  color: var(--ink-soft);
}

.terms { margin: 32px auto 0; padding: 0; list-style: none; max-width: 60em; }
.terms li { position: relative; padding-left: 22px; margin-bottom: 12px; font-size: .86rem; line-height: 1.9; color: var(--ink-soft); }
.terms li::before { content: ""; position: absolute; left: 0; top: .78em; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); }

/* ── よくあるご質問（開閉式） ──────────────────────── */

.qa { margin: 0; display: grid; gap: 12px; }

.qa-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.qa-item:hover { border-color: var(--amber-line); }
.qa-item[open] { border-color: var(--amber-line); box-shadow: var(--e1); }

.q {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 26px;
  font-size: .98rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}

.q::-webkit-details-marker { display: none; }

.q::before {
  content: "Q";
  flex: none;
  font-family: var(--mono);
  color: var(--amber);
  font-weight: 700;
}

/* 開閉の記号（＋ / −） */
.q::after {
  content: "";
  flex: none;
  margin-left: auto;
  width: 12px; height: 12px;
  background:
    linear-gradient(var(--navy-soft), var(--navy-soft)) center/12px 2px no-repeat,
    linear-gradient(var(--navy-soft), var(--navy-soft)) center/2px 12px no-repeat;
  transition: transform .22s ease, background-size .22s ease;
}

.qa-item[open] .q::after { transform: rotate(180deg); background-size: 12px 2px, 0 12px; }

.a {
  margin: 0;
  padding: 0 26px 24px 52px;
  font-size: .89rem;
  line-height: 1.95;
  color: var(--ink-soft);
}

/* ── 末尾CTA ─────────────────────────────────────── */

.closing {
  background: var(--night);
  color: #fff;
  padding: clamp(72px, 9vw, 112px) 0;
  position: relative;
  overflow: hidden;
}

.closing::after {
  content: "";
  position: absolute; top: 0; right: 0;
  width: 46%; height: 100%;
  background: var(--night-2);
  clip-path: polygon(38% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.closing-inner { position: relative; z-index: 1; }

/* トップは中身をガラスのカードに載せる（features は素のまま） */
.closing-card {
  background: linear-gradient(150deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--r-xl);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: clamp(34px, 4.6vw, 56px);
}

.closing-eyebrow {
  margin: 0 0 12px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--amber);
}

.closing-t { margin: 0 0 14px; font-size: clamp(1.4rem, 3vw, 2.1rem); font-weight: 700; line-height: 1.55; letter-spacing: .01em; }
.closing-d { margin: 0 0 36px; font-size: .95rem; color: rgba(255, 255, 255, .8); }

.flow4 { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }

.flow4 li {
  position: relative;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--r-sm); padding: 14px 12px; text-align: center; font-size: .86rem;
}

.flow4 li::after {
  content: "";
  position: absolute; right: -17px; top: 50%;
  width: 8px; height: 8px;
  border-top: 2px solid var(--amber); border-right: 2px solid var(--amber);
  transform: translateY(-50%) rotate(45deg);
}

.flow4 li:last-child::after { content: none; }

.closing .cta { justify-content: flex-start; }
.closing-note { margin: 26px 0 0; font-size: .8rem; color: rgba(255, 255, 255, .58); }

/* ── フッター ─────────────────────────────────────── */

.foot { background: var(--white); border-top: 1px solid var(--line); padding: 50px 0 32px; }
.foot-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.foot .brand-name { color: var(--navy); }
.foot-op { margin: 8px 0 0; font-size: .82rem; color: var(--ink-faint); }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: .84rem; }
.foot-links a { color: var(--ink-soft); text-decoration: none; }
.foot-links a:hover { color: var(--navy); text-decoration: underline; }
.foot-copy { max-width: var(--wrap); margin: 32px auto 0; padding: 0 28px; font-size: .76rem; color: var(--ink-faint); }

/* ── できることページ ────────────────────────────── */

.page-hero {
  padding: calc(var(--head-h) + clamp(44px, 6vw, 76px)) 0 clamp(40px, 5vw, 60px);
  background: linear-gradient(180deg, var(--mist), var(--white));
  border-bottom: 1px solid var(--line);
}

.crumb { margin: 0 0 18px; font-size: .78rem; color: var(--ink-faint); }
.crumb a { color: var(--ink-soft); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }

.page-t {
  margin: 0 0 18px;
  padding-left: 18px;
  border-left: 5px solid var(--amber);
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.55;
  color: var(--navy);
}

.page-d { margin: 0 0 30px 23px; max-width: 46em; font-size: .96rem; color: var(--ink-soft); }

.jump { list-style: none; margin: 0 0 0 23px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }

.jump a {
  display: inline-block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 18px;
  font-size: .82rem;
  color: var(--navy);
  text-decoration: none;
  transition: border-color .18s ease, background-color .18s ease;
}

.jump a:hover { border-color: var(--amber); background: var(--amber-pale); }

/* AI審査の判定バー */
.judge { background: var(--app-bg); border: 1px solid var(--app-line); border-radius: var(--r); padding: 26px 24px; }

.judge-row { display: grid; grid-template-columns: 6.5em 1fr 5.5em; gap: 14px; align-items: center; margin-bottom: 16px; }
.judge-k { font-size: .78rem; color: var(--app-dim); }
.judge-bar { height: 7px; border-radius: 999px; background: #1C2B44; overflow: hidden; }
.judge-bar i { display: block; height: 100%; border-radius: 999px; background: var(--app-blue); }
.judge-bar i.warn { background: var(--amber); }
.judge-v { font-size: .74rem; color: #86EFAC; text-align: right; }
.judge-v.warn { color: var(--amber-2); }
.judge-note { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--app-line); font-size: .76rem; color: var(--app-dim); text-align: center; }

/* 2枚並びのパネル */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }

.day-time {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--amber-line);
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
}

.day-time span { display: block; margin-top: 6px; font-size: .74rem; font-weight: 400; color: var(--ink-faint); }

/* ── スクロールで現れる（site.jsが .in を付ける） ──────── */

.rise { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.rise.in { opacity: 1; transform: none; }

/* ── 画面幅への追随 ───────────────────────────────── */

@media (max-width: 1040px) {
  .hero { padding-bottom: clamp(130px, 16vw, 180px); }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-lead { max-width: 42em; }
  .hero-media { max-width: 660px; }
  /* 重ねると画面が隠れるので、狭い画面では札を下に置く */
  .hero-badge {
    position: static;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 14px;
    margin-top: 18px;
  }
  .hero-badge-k { margin-bottom: 0; }
  .trust-grid { grid-template-columns: 1fr; }
  .fcards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  /* レールは縦組みへ。横線・流れる光は横幅前提なので出さない */
  .rail { grid-template-columns: 1fr; gap: 4px; }
  .rail::after { content: none; }
  .rail::before {
    top: 34px; bottom: 34px;
    left: 27px; right: auto;
    width: 2px; height: auto;
    background: linear-gradient(180deg, var(--line), var(--amber-line), var(--line));
  }
  /* 4つの子（丸・番号・工程名・担い手）を2行3列へ流し込む。
     areasを書かないと4つ目が丸の下へ回り込む */
  .rail-step {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    grid-template-areas:
      "node num by"
      "node ttl by";
    align-items: center;
    column-gap: 16px;
    text-align: left;
    padding: 9px 0;
  }
  .rail-node { grid-area: node; margin: 0; }
  .rail-n { grid-area: num; margin-bottom: 0; align-self: end; }
  .rail-t { grid-area: ttl; align-self: start; }
  .rail-by { grid-area: by; margin-top: 0; justify-self: end; }
  .rail-step.is-you .rail-node { transform: scale(1.06); }
  .rail-note { text-align: left; }
}

@media (max-width: 980px) {
  .ba { grid-template-columns: 1fr; }
  .ba-arrow { justify-self: center; transform: rotate(90deg); margin: 4px 0; }
  .cards, .cards-3 { grid-template-columns: 1fr; }
  .steps3 { grid-template-columns: 1fr; }
  .s3::after { right: auto; left: 44px; top: auto; bottom: -15px; transform: rotate(135deg); }
  .plans { grid-template-columns: 1fr; }
  .plan-std { margin-top: 12px; }
  .figs { grid-template-columns: repeat(2, 1fr); gap: 30px 0; }
  .fig:nth-child(3) { border-left: none; }
  .flow4 { grid-template-columns: repeat(2, 1fr); gap: 22px 30px; }
  .flow4 li:nth-child(2)::after { content: none; }
  .sec-head { flex-direction: column-reverse; align-items: flex-start; gap: 18px; }
  /* .feature.rev は上で列幅を持つ＝メディアクエリは詳細度を上げないので、
     ここでも .rev を明示しないと1列に戻らない */
  .feature, .feature.rev { grid-template-columns: 1fr; gap: 28px; }
  .feature.rev .feature-media { order: 0; }
  .two { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  /* ここから先はメニューを折りたたむ。閉じている間はDOMから外さず高さ0で隠す */
  .nav-toggle { display: grid; place-items: center; }

  .topnav {
    position: absolute;
    top: var(--head-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 20px;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    box-shadow: var(--e2);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height .28s ease, padding .28s ease, visibility 0s linear .28s;
  }

  .topbar.is-open .topnav {
    max-height: 420px;
    padding: 10px 20px 22px;
    border-bottom-color: var(--line);
    visibility: visible;
    transition: max-height .3s ease, padding .3s ease, visibility 0s;
  }

  .topnav a,
  .topbar.is-solid .topnav a,
  .page-light .topnav a {
    color: var(--navy);
    padding: 14px 6px;
    border-bottom: 1px solid var(--line);
    font-size: .95rem;
  }

  .topnav .nav-btn,
  .topbar.is-solid .topnav .nav-btn,
  .page-light .topnav .nav-btn {
    margin-top: 18px;
    text-align: center;
    border-bottom: none;
    padding: 15px 26px;
  }
}

@media (max-width: 720px) {
  .fcards { grid-template-columns: 1fr; }
  .sites-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-facts li { grid-template-columns: 1fr; row-gap: 12px; }
  .trust-ico { grid-row: auto; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  :root { --head-h: 64px; }
  .topnav { font-size: .82rem; }
  .nav-btn { padding: 9px 18px; }
  .panel { padding: 24px 20px; }
  .rail-card { padding: 26px 18px 24px; margin-top: -70px; }
  .loop { grid-template-columns: repeat(2, 1fr); gap: 22px 18px; }
  .loop-item:nth-child(2)::after { content: none; }
  .steps-new { grid-template-columns: repeat(2, 1fr); }
  .feature-wide .ticks { columns: 1; }
  .flow4 { grid-template-columns: 1fr; gap: 20px; }
  .flow4 li::after { content: none !important; }
  .btn, .btn-line { width: 100%; text-align: center; justify-content: center; padding: 16px; }
  .cta { flex-direction: column; align-items: stretch; text-align: center; }
  .btn-ghost { align-self: center; }
  .hero-title { line-height: 1.55; }
  .hero::before, .closing::after { width: 62%; }
  .closing-card { padding: 28px 20px; }
  .q { padding: 17px 18px; font-size: .93rem; }
  .a { padding: 0 18px 20px 44px; }
  .plan { padding: 28px 20px 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover, .nav-btn:hover, .fcard:hover, .card:hover, .plan:hover { transform: none; }
  .rail::after { animation: none; opacity: 0; }
  .rail-step.is-you .rail-node { animation: none; }
  .rise { opacity: 1; transform: none; transition: none; }
}
