/* LP本実装スタイル（D5・2026-08-22 Tom確定デザイン反映）。
   トークンの出典：Claude Design カンバス確定版（A×Bハイブリッド × シアン#22d3ee）。
   フォント＝Newsreader（見出しserif）＋Public Sans（本文）＋IBM Plex Mono（ラベル・数字）。
   背景＝ウォームチャコール#121110。 */

:root {
  --bg: #121110;
  --bg-raised: #1a1917;
  --border: #26241f;
  --border-card: #2a2823;
  --border-table: #35322a;
  --text: #b9b3a4;
  --text-h: #ece7db;
  --text-sub: #8b8577;
  --text-faint: #6f6a5e;
  --accent: #22d3ee;
  --accent-ink: #131110;
  --up: #2fbf71;
  --down: #e05252;

  --font-serif: 'Newsreader', Georgia, serif;
  --font-sans: 'Public Sans', system-ui, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', Consolas, monospace;

  font: 17px/1.7 var(--font-sans);
  color: var(--text);
  background: var(--bg);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  /* 最終行に1語だけ残る折り返しを避ける。狭い価格カードで特に効く。
     未対応ブラウザは無視するだけなので安全 */
  text-wrap: pretty;
}

a {
  color: var(--text-h);
}

a:hover {
  color: #ffffff;
}

/* eyebrow：monoの小見出しラベル（カンバスの "MANUAL FX BACKTESTING ..." 等） */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 2.5px;
  color: var(--text-sub);
}

/* --- top nav --- */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px clamp(20px, 6vw, 96px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: flex;
  /* tick は文字の天地を上下に突き抜けるので、ベースライン揃えではなく中央揃えにする */
  align-items: center;
  gap: 10px;
}

.nav-brand .wordmark {
  font-family: var(--font-serif);
  font-size: 25px;
  color: var(--text-h);
}

/* マーク（favicon.svg）と同じ「1ティックの刻み」。
   丸めない＝刻みの正確さの表現。かつ、点ではなく縦線であることで句読点に読まれない */
.nav-brand .tick {
  width: 4px;
  height: 24px;
  background: var(--accent);
  display: inline-block;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 15px;
  color: var(--text-sub);
}

/* --- section layout --- */
section,
main.legal {
  max-width: 1000px;
  margin: 0 auto;
  padding: 64px clamp(20px, 6vw, 96px);
}

section + section,
section.bordered {
  border-top: 1px solid var(--border);
}

section.wide {
  max-width: none;
}

section.wide > * {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--text-h);
  margin: 0;
  /* 見出しが折り返す時に行長を均等に割る（bodyのprettyを上書き） */
  text-wrap: balance;
}

h1 {
  font-size: clamp(38px, 6vw, 74px);
  line-height: 1.08;
  letter-spacing: -1px;
}

h2 {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.5px;
}

h3 {
  font-size: 20px;
}

/* --- hero --- */
.hero {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding-top: 100px;
  padding-bottom: 84px;
}

.hero-sub {
  max-width: 680px;
  font-size: 20px;
  color: var(--text);
}

.hero-sub strong {
  color: var(--text-h);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 6px;
}

.hero-deadline {
  font-size: 15px;
  color: var(--text-sub);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-faint);
  margin-top: 10px;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 17px;
  padding: 15px 30px;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  filter: brightness(1.08);
}

/* --- problem: bar vs tick figures --- */
.figure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 28px;
}

.figure-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-raised);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  padding: 24px;
}

.figure-card svg {
  width: 100%;
  height: auto;
}

.figure-caption {
  margin: 0;
  font-size: 15px;
  color: var(--text-sub);
}

.figure-placeholder {
  border: 1px dashed var(--border-card);
  border-radius: 8px;
  padding: 48px;
  text-align: center;
  opacity: 0.6;
}

/* --- trust (local-first) --- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 48px;
  margin-top: 16px;
}

.trust-item h3 {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  margin-bottom: 10px;
}

.trust-item p {
  margin: 0;
  font-size: 16px;
  color: var(--text-sub);
}

/* --- comparison table --- */
.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  margin-top: 24px;
}

thead th {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--text-sub);
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-table);
}

thead th.col-exactick {
  border-bottom: 2px solid var(--accent);
  color: var(--text-h);
}

th,
td {
  text-align: left;
}

tbody th,
tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

tbody th {
  font-weight: 400;
  color: var(--text-sub);
}

tbody td.col-exactick {
  color: var(--text-h);
}

/* --- waitlist --- */
.waitlist {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  background: var(--bg-raised);
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  width: 100%;
  max-width: 480px;
}

.waitlist-form-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.waitlist-form input[type='email'] {
  flex: 1;
  min-width: 240px;
  padding: 13px 16px;
  border-radius: 4px;
  border: 1px solid var(--border-table);
  background: var(--bg);
  color: var(--text-h);
  font: 16px var(--font-sans);
}

/* honeypot：botにだけ見えるフィールド */
.hp {
  position: absolute;
  left: -9999px;
}

.survey {
  border: 1px solid var(--border-card);
  border-radius: 8px;
  padding: 12px 16px;
  text-align: left;
  width: 100%;
}

.survey legend {
  padding: 0 4px;
  color: var(--text-sub);
  font-size: 14px;
}

.survey label {
  display: block;
  font-size: 15px;
}

/* --- faq --- */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-top: 28px;
}

.faq-item h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.faq-item p {
  margin: 0;
  font-size: 15px;
  color: var(--text-sub);
}

/* --- footer --- */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 36px clamp(20px, 6vw, 96px) 44px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-faint);
  text-align: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}

.footer-nav a {
  color: var(--text);
}

.attribution,
.copyright {
  margin: 0;
}

.footnote {
  font-size: 13px;
  color: var(--text-faint);
}

/* --- legal pages (terms/disclaimer/privacy/refund) --- */
main.legal h1 {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 12px;
}

main.legal h2 {
  font-size: 24px;
  margin-top: 40px;
  margin-bottom: 12px;
}

main.legal p,
main.legal td,
main.legal li {
  color: var(--text);
  font-size: 16px;
}

/* --- how it works（3ステップ） --- */
.step-grid {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
}

.step-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 10px;
}

.step-item h3 {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  margin-bottom: 10px;
}

.step-item p {
  margin: 0;
  font-size: 16px;
  color: var(--text-sub);
}

/* --- pricing --- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 28px;
  /* 3枚の高さを揃える。startだと本文量の差でカードの下端がバラつく */
  align-items: stretch;
}

/* ハイフンを含む複合語が狭いカード内で行またぎするのを防ぐ（time-of-day 等）。
   広い段組では割れないので、必要な箇所にだけ付ける */
.nowrap {
  white-space: nowrap;
}

.price-card {
  border: 1px solid var(--border-card);
  border-radius: 3px;
  padding: 28px 24px;
  background: var(--bg-raised);
}

/* 主砲＝買い切りCoreだけアクセント枠で1段持ち上げる */
.price-card-main {
  border-color: var(--accent);
}

.price-card h3 {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  margin-bottom: 4px;
}

.price-tag {
  font-family: var(--font-mono);
  font-size: 34px;
  color: var(--text-h);
  margin: 0 0 4px;
}

.price-tag span {
  font-size: 15px;
  color: var(--text-sub);
}

.price-line {
  font-size: 14px;
  color: var(--text-faint);
  margin: 0 0 14px;
}

.price-card p {
  font-size: 15px;
  color: var(--text-sub);
}

.price-card .button {
  margin-top: 18px;
}

.mono {
  font-family: var(--font-mono);
}
