:root {
  --ink: #14110f;
  --ink-soft: #4a4540;
  --paper: #fbf7f0;
  --card: #ffffff;
  --line: #e7ded2;
  --brand: #d8362a;        /* hinomaru red */
  --brand-dark: #b02018;
  --accent: #1c3f5f;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20,17,15,.08);
  --wrap: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 .4em; }
p { margin: 0 0 1em; }
a { color: var(--accent); }
.section-sub { color: var(--ink-soft); max-width: 60ch; margin: -0.2em 0 1.6em; }

/* Buttons */
.btn {
  display: inline-block; padding: 13px 22px; border-radius: 999px;
  font-weight: 650; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .06s ease, background .2s, box-shadow .2s;
  font-size: .98rem;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(216,54,42,.28); }
.btn--primary:hover { background: var(--brand-dark); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--full { width: 100%; padding: 16px; font-size: 1.05rem; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(251,247,240,.85); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-weight: 800; font-size: 1.2rem; text-decoration: none; color: var(--ink); letter-spacing: -.03em; }
.brand span { color: var(--brand); }
.nav__links { display: flex; align-items: center; gap: 22px; }
.nav__links a { text-decoration: none; color: var(--ink-soft); font-weight: 550; font-size: .95rem; }
.nav__links a:hover { color: var(--ink); }
.nav__links .btn { color: var(--ink); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 80px;
  /* dark gradient fallback shows if the hero image hasn't loaded / isn't added yet */
  background: linear-gradient(135deg, #1a1330 0%, #2a1320 55%, #3a0f14 100%);
  color: #fff;
}
.hero__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero__still {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .7s ease;   /* crossfades with the video (JS-driven) */
  pointer-events: none;
}
.hero__overlay {
  position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(180deg, rgba(12,8,18,.30) 0%, rgba(12,8,18,.55) 60%, rgba(12,8,18,.78) 100%),
    radial-gradient(900px 500px at 12% 20%, rgba(216,54,42,.28), transparent 60%);
}
/* extra dark gradient that fades in only during the static hold, for easier reading */
.hero__darken {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(8,6,12,.45) 0%, rgba(8,6,12,.70) 55%, rgba(8,6,12,.85) 100%);
  opacity: 0; transition: opacity .7s ease;
  pointer-events: none;
}
.hero__content { position: relative; z-index: 3; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .76rem; font-weight: 700; color: #ffb3ad; margin-bottom: 1em; }
.hero h1 { font-size: clamp(2.3rem, 5.6vw, 3.9rem); margin: 0 0 .35em; max-width: 16ch; color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.lede { font-size: clamp(1.05rem, 1.8vw, 1.28rem); color: rgba(255,255,255,.92); max-width: 56ch; }
.lede strong { color: #fff; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 1.4em 0 1.8em; }
.proof { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; color: rgba(255,255,255,.92); font-size: .98rem; }
/* ghost button needs a light treatment over the dark hero */
.hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,.45); }
.hero .btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* Gallery */
.gallery { background: var(--paper); }
.gallery__grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.gallery__item {
  position: relative; margin: 0; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
  /* colored fallback so a not-yet-added image still reads as an intentional tile */
  background: linear-gradient(135deg, var(--accent), #2a1320);
  min-height: 240px;
}
.gallery__item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gallery__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 16px 14px; color: #fff; font-weight: 650; font-size: 1.02rem;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.6));
}

/* Generic card */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; }

/* Section spacing */
section { padding: 56px 0; }
.paths { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Path fork */
.path-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.path-card h3 { font-size: 1.3rem; margin: .5em 0 .4em; }
.path-card p { color: var(--ink-soft); }
.tag { display: inline-block; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); background: rgba(28,63,95,.08); padding: 5px 11px; border-radius: 999px; }
.path-card .btn { margin-top: 8px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step-n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 10px; }
.steps h3 { font-size: 1.08rem; margin: 0 0 .3em; }
.steps p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* Why */
.why { background: var(--accent); color: #f4f1ec; }
.why h2 { color: #fff; }
.why .section-sub { color: #c9d6e0; }
.why__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; align-items: center; }
.why__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.why__list li { padding-left: 26px; position: relative; color: #e8eef3; }
.why__list li::before { content: "→"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }
.why__list strong { color: #fff; }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.price-card h3 { font-size: 1.15rem; margin: 0 0 .2em; }
.price { font-size: 1.7rem; font-weight: 800; margin: .2em 0 0; letter-spacing: -.02em; }
.price-sub { color: var(--ink-soft); font-size: .85rem; margin: 0 0 1em; }
.price-card ul { padding-left: 18px; margin: 0 0 1em; color: var(--ink-soft); }
.price-card li { margin-bottom: 5px; }
.best-for { font-size: .9rem; font-weight: 600; color: var(--accent); margin: 0; }
.price-card--feature { border-color: var(--brand); box-shadow: 0 14px 36px rgba(216,54,42,.18); position: relative; }
.price-card--feature::after { content: "Most popular"; position: absolute; top: -11px; right: 18px; background: var(--brand); color: #fff; font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }

/* Form */
.start { background: #fff; border-top: 1px solid var(--line); }
.start__inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: start; }
.start__copy h2 { margin-top: 0; }
.start__copy p { color: var(--ink-soft); }
.reassure { list-style: none; padding: 0; margin: 1.4em 0 0; display: grid; gap: 8px; color: var(--ink-soft); }
.lead-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; display: flex; flex-direction: column; }
.field label { font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  font: inherit; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
  width: 100%; max-width: 100%; min-width: 0;   /* never exceed the container (fixes mobile select overflow) */
}
.field select { text-overflow: ellipsis; }
.field textarea { resize: vertical; }
/* allow flex/grid children to shrink below their content's intrinsic width */
.field, .row, .row > * { min-width: 0; }
.lead-form { max-width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(216,54,42,.12); }
.form-fine { font-size: .8rem; color: var(--ink-soft); margin: 10px 0 0; text-align: center; }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; }
.faq summary {
  font-weight: 650; cursor: pointer; list-style: none;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; color: var(--brand); font-weight: 800; font-size: 1.2rem; line-height: 1;
  flex: 0 0 auto;   /* fixed marker, pinned top-right even when the question wraps */
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .8em 0 0; color: var(--ink-soft); }

/* Footer */
.footer { background: var(--ink); color: #c9c2b8; padding: 36px 0; }
.footer p { margin: 0 0 .4em; font-size: .9rem; }
.footer__note { color: #8c857b; font-size: .82rem; }

/* Responsive */
@media (max-width: 860px) {
  .nav__links a:not(.btn) { display: none; }
  .path-grid, .why__grid, .price-grid, .start__inner { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
}
