/* BoardSpeak landing page. Colors follow apps/mobile/src/ui/theme.ts. */
:root {
  --ink: #151A24;
  --muted: #5A6372;
  --line: #E1E4EA;
  --navy: #1E3A5F;
  --navy-deep: #14283F;
  --soft: #E8EEF5;
  --soft-line: #C9D6E6;
  --coach: #A4470F;
  --coach-bg: #FCF1E8;
  --coach-line: #F0CDB2;
  --bg: #F4F5F7;
  --white: #FFFFFF;
  --good: #2E6B4A;
  --gold: #C9A227;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Noto Sans JP", Meiryo, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: anywhere;
  line-break: strict;
}

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--navy); }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 720px; }

/* ---- Buttons ---- */
.button {
  display: inline-block;
  min-height: 50px;
  padding: 12px 22px;
  border: 0;
  border-radius: 14px;
  font: inherit;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.button-light { background: var(--white); color: var(--navy); }
.button-navy { background: var(--navy); color: var(--white); }
.button:hover { opacity: 0.92; }
.button:focus-visible, input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---- Hero ---- */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  padding: 28px 0 48px;
}
.hero-grid { display: grid; gap: 36px; }
.brand { font-size: 20px; font-weight: 700; letter-spacing: 0.02em; }
.brand-sub { margin-left: 8px; font-size: 12px; font-weight: 600; color: var(--soft-line); }
.hero h1 {
  margin-top: 36px;
  font-size: clamp(34px, 9.5vw, 60px);
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: var(--white);
  word-break: keep-all;
}
.lead { margin-top: 20px; font-size: 17px; color: #E3EAF3; }
.lead strong { color: var(--gold); }
.hero-actions { margin-top: 28px; }
.hero-note { margin-top: 12px; font-size: 13px; color: var(--soft-line); }

/* CSS-only mock of the practice screen */
.phone {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  background: var(--bg);
  border: 6px solid #0C1826;
  border-radius: 28px;
  overflow: hidden;
  color: var(--ink);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.phone-bar {
  padding: 10px 14px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
}
.phone-body { display: flex; flex-direction: column; gap: 10px; padding: 14px 12px 18px; }
.bubble { max-width: 88%; padding: 10px 12px; border-radius: 14px; font-size: 15px; line-height: 1.55; }
.bubble.them { align-self: flex-start; background: var(--white); border: 1px solid var(--line); border-top-left-radius: 4px; }
.bubble.me { align-self: flex-end; background: var(--navy); color: var(--white); border-top-right-radius: 4px; }
.speaker { display: block; font-size: 11px; font-weight: 700; color: var(--muted); }
.coach {
  padding: 12px;
  background: var(--coach-bg);
  border: 1px solid var(--coach-line);
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.65;
}
.coach-title { display: block; margin-bottom: 4px; font-weight: 700; color: var(--coach); }
.coach .model { margin: 6px 0; font-size: 16px; font-weight: 700; color: var(--ink); }
.coach-foot { color: var(--muted); }

/* ---- Sections ---- */
.section { padding: 56px 0; }
.section-tint { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-navy { background: var(--navy); color: var(--white); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--coach); }
.section-navy .eyebrow { color: var(--gold); }
.section h2 { margin-top: 6px; font-size: clamp(24px, 6.2vw, 34px); line-height: 1.4; color: var(--navy); }
.section-navy h2 { color: var(--white); }
.section-lead { margin-top: 16px; max-width: 46em; }
.section-navy .section-lead { color: #E3EAF3; }

.card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }

/* Who */
.pains { display: grid; gap: 10px; margin-top: 20px; }
.pains li {
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy);
  border-radius: 12px;
  font-weight: 600;
}

/* Features */
.features { display: grid; gap: 14px; margin-top: 24px; }
.section-tint .card { background: var(--bg); }
.feature .num {
  display: inline-block;
  min-width: 28px;
  padding: 0 8px;
  background: var(--soft);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
}
.feature h3 { margin: 8px 0 6px; font-size: 18px; line-height: 1.5; color: var(--navy); }
.feature p { font-size: 15px; }
.fixes { display: grid; gap: 10px; margin-top: 16px; }
.fixes li {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  line-height: 1.55;
}
.before { font-size: 14px; color: var(--muted); text-decoration: line-through; text-decoration-color: #B8BEC8; }
.after { font-size: 16px; font-weight: 700; color: var(--ink); }
.why { font-size: 12px; font-weight: 700; color: var(--coach); }

/* Steps */
.steps { display: grid; gap: 14px; margin-top: 28px; counter-reset: step; }
.steps li {
  position: relative;
  padding: 18px 18px 18px 62px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  line-height: 32px;
  text-align: center;
}
.steps h3 { font-size: 17px; line-height: 1.5; color: var(--navy); }
.steps p { margin-top: 4px; font-size: 15px; }

/* Challenge */
.scene {
  margin-top: 24px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
}
.scene-label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--gold); }
.quote { margin: 10px 0; font-size: 19px; font-weight: 700; line-height: 1.5; }
.card-heading { margin-top: 40px; font-size: 20px; line-height: 1.5; }
.framework {
  margin-top: 20px;
  padding: 20px;
  background: var(--white);
  border-radius: 14px;
  color: var(--ink);
}
.framework-title { font-size: 13px; font-weight: 700; color: var(--coach); }
.framework-flow { margin-top: 2px; font-size: 18px; font-weight: 700; line-height: 1.6; color: var(--navy); }
.framework-flow span { color: var(--muted); font-weight: 400; }
.framework-steps { display: grid; gap: 10px; margin-top: 14px; counter-reset: fw; }
.framework-steps li {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  background: var(--soft);
  border-radius: 12px;
  line-height: 1.6;
  counter-increment: fw;
}
.framework-steps strong { color: var(--navy); }
.framework-steps strong::before { content: counter(fw) ". "; }
.framework-steps span { font-size: 14px; }
.framework-steps em { font-style: normal; font-size: 15px; font-weight: 600; }
.framework-tip { margin-top: 14px; font-size: 14px; color: var(--muted); }
.challenge-note { margin: 24px 0 20px; max-width: 46em; color: #E3EAF3; }
.challenge-note strong { color: var(--white); }

/* Evidence */
#evidence p:last-child { margin-top: 16px; font-size: 15px; }

/* Signup */
.signup { margin-top: 24px; }
.signup label { display: block; font-size: 13px; font-weight: 700; color: var(--muted); }
.signup-row { display: grid; gap: 10px; margin-top: 6px; }
.signup input {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 10px 16px;
  border: 1px solid #C9CFD8;
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}
.form-note {
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--coach-bg);
  border: 1px solid var(--coach-line);
  border-radius: 10px;
  font-size: 14px;
  color: var(--coach);
}
.facts { display: grid; gap: 6px; margin-top: 24px; font-size: 14px; color: var(--muted); }
.facts strong { color: var(--ink); }
.privacy {
  margin-top: 28px;
  padding: 18px;
  background: var(--soft);
  border: 1px solid var(--soft-line);
  border-radius: 14px;
  font-size: 14px;
}
.privacy h3 { font-size: 15px; color: var(--navy); }
.privacy p { margin-top: 6px; }

/* Footer */
.footer { padding: 36px 0 48px; background: var(--navy-deep); color: var(--soft-line); font-size: 13px; }
.footer-brand { font-size: 18px; font-weight: 700; color: var(--white); }
.operator { margin-top: 12px; }
.operator div { display: flex; gap: 12px; }
.operator dt { min-width: 4em; font-weight: 700; }
.footer-note { margin-top: 12px; }

/* ---- Wider screens ---- */
@media (min-width: 760px) {
  .wrap { padding: 0 32px; }
  .hero { padding: 36px 0 72px; }
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center; gap: 48px; }
  .hero h1 { margin-top: 56px; }
  .section { padding: 80px 0; }
  .pains { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feature-wide { grid-column: 1 / -1; }
  .fixes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .framework-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .signup-row { grid-template-columns: minmax(0, 1fr) auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---- Trial button (disabled until TRIAL_URL in site.js is set) ---- */
.button.is-disabled { opacity: 0.55; cursor: not-allowed; }
.button.is-disabled:hover { opacity: 0.55; }
.trial-closed-note { margin-top: 10px; font-size: 13px; color: var(--soft-line); }
.trial-action { margin-top: 24px; }
.not-in-trial {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 10px;
  background: var(--coach-bg);
  border: 1px solid var(--coach-line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--coach);
}
.start-steps { display: grid; gap: 10px; margin-top: 24px; counter-reset: start; }
.start-steps li { position: relative; padding-left: 40px; counter-increment: start; }
.start-steps li::before {
  content: counter(start);
  position: absolute;
  left: 0;
  top: 1px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  line-height: 28px;
  text-align: center;
}
.footer a { color: var(--white); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 12px; }

/* ---- Terms and privacy pages ---- */
.legal-header { background: var(--navy); color: var(--white); padding: 18px 0; }
.legal-header a { color: var(--white); text-decoration: none; }
.legal { padding: 40px 0 64px; background: var(--white); font-size: 15px; }
.legal h1 { font-size: clamp(24px, 6.2vw, 30px); line-height: 1.4; color: var(--navy); }
.legal h2 { margin-top: 36px; font-size: 18px; line-height: 1.5; color: var(--navy); }
.legal p { margin-top: 12px; }
.legal ol, .legal ul { margin-top: 12px; padding-left: 1.6em; display: grid; gap: 8px; }
.legal ol { list-style: decimal; }
.legal ul { list-style: disc; }
.table-wrap { margin-top: 14px; overflow-x: auto; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.65; }
.legal th, .legal td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal thead th { background: var(--soft); color: var(--navy); white-space: nowrap; }
.legal tbody th { min-width: 6.5em; font-weight: 700; background: var(--bg); }
.legal-date { margin-top: 36px; color: var(--muted); }
.legal-back { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }

/* On a phone the three-column tables are too narrow: stack each row. */
@media (max-width: 600px) {
  .legal thead { display: none; }
  .legal table, .legal tbody, .legal tr, .legal th, .legal td { display: block; }
  .legal tr { margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
  .legal th, .legal td { border: 0; }
  .legal td + td { padding-top: 0; color: var(--muted); }
}
