/* 英語の LP(/en/、米国の煙テスト、#1198)の版面。docs/lp/en-v1 の <style> を CSP の style-src 'self' のため file に移した。 */
/* design-tokens.css has no font tokens, so the system font stacks stay here. */
:root {
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --numeric: ui-monospace, "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--mb-color-surface);
  color: var(--mb-color-on-surface);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

/* DESIGN.md defines weights 400 and 700 only; bolder inside a 700 parent would be 900. */
strong {
  font-weight: 700;
}

/* Text steps follow DESIGN.md "LP": the six steps plus the hero and section headings.
   Body (16px) is the body default. Line height and tracking use each step's own values. */
.draft-note,
.nav-links a,
.hero-note,
.line-item p,
.message,
.status-note,
th,
td,
.data-point p,
.price-term,
.price-detail,
.no-charge,
.boundary p,
.form-panel h3 + p,
.form-help,
.form-status,
.footer p {
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: 0;
}

.eyebrow,
.voice-label,
.ledger-state,
.step-number,
.day-label,
.price-label {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.09em;
}

.brand,
h3,
.spoken-line {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.012em;
}

.site-header .brand,
.price-amount {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.018em;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
}

button,
input,
select,
textarea,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--mb-color-primary);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 8px;
  left: 8px;
  border: 2px solid var(--mb-color-primary);
  padding: 10px 14px;
  background: var(--mb-color-surface);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Target of the skip link. tabindex="-1" lets it take focus so the next Tab reaches the
   first control in the content (#850); the whole content is not outlined. */
#main:focus {
  outline: none;
}

.draft-note {
  margin: 0;
  border-bottom: 1px solid var(--mb-color-line);
  padding: 8px 16px;
  background: var(--mb-color-warning-soft);
  color: var(--mb-color-warning);
  text-align: center;
}

.shell {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--mb-color-line);
}

.nav {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  color: var(--mb-color-on-surface);
  text-decoration: none;
}

.brand img {
  width: 28px;
  height: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  text-underline-offset: 5px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--mb-color-primary);
  border-radius: var(--mb-rounded-action);
  padding: 11px 18px;
  background: var(--mb-color-primary);
  color: var(--mb-color-surface);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--mb-color-on-surface);
  border-color: var(--mb-color-on-surface);
}

.button.secondary {
  background: transparent;
  color: var(--mb-color-primary);
}

.button.secondary:hover {
  background: var(--mb-color-accent-soft);
  border-color: var(--mb-color-primary);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--mb-color-primary);
  font-family: var(--numeric);
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 64px;
  align-items: center;
  padding-block: 80px;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(40px, 6.5vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  /* At 54px both sentences no longer fill two lines; balance keeps one sentence per line. */
  text-wrap: balance;
}

.hero-lead {
  max-width: 620px;
  margin: 24px 0 0;
}

.hero-note {
  max-width: 600px;
  margin: 16px 0 0;
  color: var(--mb-color-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.conversation-ledger {
  border-top: 1px solid var(--mb-color-line);
  border-bottom: 1px solid var(--mb-color-line);
  padding: 24px 0;
}

.voice-label,
.ledger-state {
  font-family: var(--numeric);
  text-transform: uppercase;
}

.spoken-line {
  margin: 12px 0 24px;
  border-left: 1px solid var(--mb-color-line);
  padding: 4px 0 4px 16px;
}

.ledger-row {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 16px;
  border-top: 1px solid var(--mb-color-line);
  padding-block: 14px;
}

.ledger-row p {
  margin: 0;
}

.ledger-row.approved {
  border-top-color: var(--mb-color-primary);
  color: var(--mb-color-primary);
  font-weight: 700;
}

.section {
  border-top: 1px solid var(--mb-color-line);
  padding-block: 64px;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(280px, 1.25fr);
  gap: 64px;
  align-items: start;
  margin-bottom: 40px;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.018em;
}

h3 {
  margin: 0;
}

.section-intro {
  max-width: 650px;
  margin: 0;
  color: var(--mb-color-muted);
}

.three-up {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.line-item {
  border-top: 1px solid var(--mb-color-line);
  padding-top: 20px;
}

.line-item p {
  margin: 12px 0 0;
  color: var(--mb-color-muted);
}

.step-number {
  display: block;
  margin-bottom: 32px;
  color: var(--mb-color-primary);
  font-family: var(--numeric);
}

.conversation-days {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.conversation-day {
  border: 1px solid var(--mb-color-line);
  padding: 24px;
  background: var(--mb-color-surface);
}

.day-label {
  margin: 0 0 24px;
  color: var(--mb-color-muted);
  font-family: var(--numeric);
  text-transform: uppercase;
}

.message {
  max-width: 92%;
  margin: 0 0 16px;
  border: 1px solid var(--mb-color-line);
  border-radius: var(--mb-rounded-control);
  padding: 14px 16px;
}

.message.user {
  margin-left: auto;
  background: var(--mb-color-on-surface);
  color: var(--mb-color-surface);
}

.message.ai {
  margin-right: auto;
}

.message.approval {
  margin-right: auto;
  border-color: var(--mb-color-primary);
  color: var(--mb-color-primary);
  font-weight: 700;
}

.status-note {
  margin: 20px 0 0;
  color: var(--mb-color-warning);
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border-top: 1px solid var(--mb-color-line);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  text-align: left;
}

th,
td {
  border-bottom: 1px solid var(--mb-color-line);
  padding: 16px 14px;
  vertical-align: top;
}

td {
  color: var(--mb-color-muted);
}

.comparison-name {
  color: var(--mb-color-on-surface);
  font-weight: 700;
}

.data-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.data-point {
  border-top: 1px solid var(--mb-color-line);
  padding-top: 16px;
}

.data-point strong {
  display: block;
  margin-bottom: 8px;
}

.data-point p {
  margin: 0;
  color: var(--mb-color-muted);
}

.pricing-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  gap: 64px;
  align-items: start;
}

.price-panel {
  border: 1px solid var(--mb-color-line);
  padding: 32px;
  background: var(--mb-color-surface);
}

.price-label {
  margin: 0;
  color: var(--mb-color-primary);
  font-family: var(--numeric);
  text-transform: uppercase;
}

.price-amount {
  margin: 16px 0 8px;
  font-family: var(--numeric);
  font-variant-numeric: tabular-nums;
}

.price-term,
.price-detail,
.no-charge {
  margin: 0;
  color: var(--mb-color-muted);
}

.price-detail {
  margin-top: 20px;
}

.billing-choice {
  display: none;
  margin: 24px 0 0;
  border: 0;
  padding: 0;
}

.billing-choice.visible {
  display: grid;
  gap: 8px;
}

.billing-choice legend {
  margin-bottom: 8px;
  font-weight: 700;
}

.billing-choice label,
.radio-list label,
.check-label {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.billing-choice input,
.radio-list input,
.check-label input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  accent-color: var(--mb-color-primary);
}

.price-panel .button {
  width: 100%;
  margin-top: 24px;
}

.no-charge {
  margin-top: 12px;
}

.availability-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mb-color-on-surface);
  font-weight: 700;
}

.availability-status::before {
  width: 10px;
  height: 10px;
  flex: none;
  border: 1px solid currentColor;
  content: "";
}

.availability-status.verified::before {
  background: var(--mb-color-primary);
  border-color: var(--mb-color-primary);
}

.availability-status.unverified {
  color: var(--mb-color-warning);
}

.availability-status.unverified::before {
  background: var(--mb-color-warning-soft);
}

.boundaries {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.boundary {
  border-top: 1px solid var(--mb-color-line);
  padding-top: 16px;
}

.boundary p {
  margin: 8px 0 0;
  color: var(--mb-color-muted);
}

.forms {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
}

.form-panel {
  border-top: 1px solid var(--mb-color-line);
  padding-top: 24px;
}

.form-panel h3 + p {
  margin: 8px 0 24px;
  color: var(--mb-color-muted);
}

.field,
fieldset {
  margin: 0 0 24px;
}

.field label,
legend {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

input[type="email"],
input[type="text"],
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--mb-color-line-control);
  border-radius: var(--mb-rounded-control);
  padding: 10px 12px;
  background: var(--mb-color-surface);
}

/* WebKit's native select ignores min-height and keeps a 5px corner, so the select
   drops its platform look and draws the chevron. The popup and keyboard stay native;
   48px matches the text inputs beside it. */
select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 40px;
  background-image:
    linear-gradient(45deg, transparent calc(50% - 1px), currentColor calc(50% - 1px), currentColor calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(135deg, transparent calc(50% - 1px), currentColor calc(50% - 1px), currentColor calc(50% + 1px), transparent calc(50% + 1px));
  background-position:
    calc(100% - 23px) 50%,
    calc(100% - 17px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

fieldset {
  border: 0;
  padding: 0;
}

.radio-list {
  display: grid;
  gap: 4px;
}

.form-help,
.form-status {
  color: var(--mb-color-muted);
}

.form-status {
  min-height: 21px;
  margin: 12px 0 0;
  color: var(--mb-color-primary);
  font-weight: 700;
}

.footer {
  border-top: 1px solid var(--mb-color-line);
  padding-block: 32px;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.footer p {
  max-width: 680px;
  margin: 0;
  color: var(--mb-color-muted);
}

@media (max-width: 820px) {
  .hero,
  .section-head,
  .pricing-layout,
  .forms {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero {
    padding-block: 64px;
  }

  .conversation-ledger {
    max-width: 620px;
  }

  .three-up,
  .data-points,
  .boundaries {
    grid-template-columns: 1fr;
  }

  .conversation-days {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 32px, 1120px);
  }

  .nav-links a:not(.button) {
    display: none;
  }

  .section {
    padding-block: 48px;
  }

  .conversation-day,
  .price-panel {
    padding: 20px;
  }

  .ledger-row {
    grid-template-columns: 72px 1fr;
    gap: 12px;
  }

  .footer-inner {
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
    

/* A link inside a sentence still gets a 44px target (DESIGN.md "Layout" and "LP"), at the size of its text. */
.inline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}
