/* ============================================================
   RETSU — corporate design system
   Palette: ink black / warm paper / brand red #c81820
   Type: Playfair Display SC display, Noto Serif body
   ============================================================ */

:root {
  --red: #c81820;
  --red-deep: #9e131a;
  --ink: #111111;
  --charcoal: #1a1a1a;
  --charcoal-2: #222222;
  --paper: #f6f5f2;
  --white: #ffffff;
  --line: #e3e1dc;
  --line-dark: #2e2e2e;
  --text: #1c1c1c;
  --text-soft: #595959;
  --text-faint: #8a8a8a;

  --display: 'Playfair Display SC', 'Noto Serif JP', 'Yu Mincho', 'Hiragino Mincho ProN', 'Times New Roman', serif;
  --serif: 'Noto Serif JP', 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', 'Times New Roman', serif;
  --sans: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Helvetica Neue', Arial, sans-serif;

  --header-h: 76px;
  --max-w: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }

body {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.02em;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--red); color: var(--white); }

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

/* ------------------------------------------------------------
   Header
   ------------------------------------------------------------ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(17, 17, 17, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  height: var(--header-h);
}

.site-header .wrap {
  max-width: 1400px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 36px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 34px; }

.main-nav a {
  font-family: var(--display);
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #d8d6d1;
  padding: 6px 0;
  position: relative;
  white-space: nowrap;
  transition: color 0.25s;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.main-nav a:hover, .main-nav a.active { color: var(--white); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }

/* Portal dropdown */
.nav-item { position: relative; }

.nav-item .dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--ink);
  border: 1px solid var(--line-dark);
  min-width: 230px;
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}

.nav-item .dropdown::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  width: 100%;
  height: 14px;
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-item .dropdown a {
  display: block;
  padding: 9px 22px;
  font-size: 11.5px;
  letter-spacing: 0.2em;
}

.nav-item .dropdown a::after { display: none; }
.nav-item .dropdown a:hover { background: var(--charcoal-2); color: var(--white); }

.dropdown .dropdown-note {
  display: block;
  padding: 4px 22px 8px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  border-bottom: 1px solid var(--line-dark);
  margin-bottom: 6px;
}

.header-side {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.lang-mark {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: #8f8d88;
  border: 1px solid #3a3a3a;
  padding: 5px 10px 5px 13px;
}

.header-cta {
  font-family: var(--display);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--red);
  padding: 10px 20px;
  transition: background 0.25s;
  white-space: nowrap;
}

.header-cta:hover { background: var(--red-deep); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 34px;
  height: 26px;
  position: relative;
  z-index: 110;
}

.nav-toggle span {
  position: absolute;
  left: 4px;
  right: 4px;
  height: 1px;
  background: var(--white);
  transition: all 0.3s;
}

.nav-toggle span:nth-child(1) { top: 6px; }
.nav-toggle span:nth-child(2) { top: 13px; }
.nav-toggle span:nth-child(3) { top: 20px; }

body.nav-open .nav-toggle span:nth-child(1) { top: 13px; transform: rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { top: 13px; transform: rotate(-45deg); }

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 110px) 0 110px;
  overflow: hidden;
  background: var(--paper);
}

.hero::before {
  /* giant watermark letter */
  content: '烈';
  content: '烈' / '';
  position: absolute;
  right: -4%;
  top: 44%;
  transform: translateY(-50%);
  font-family: var(--display);
  font-size: min(34rem, 52vw);
  line-height: 1;
  color: rgba(200, 24, 32, 0.045);
  pointer-events: none;
  user-select: none;
}

.hero-jp {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.4em;
  color: var(--red);
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.hero-jp::before {
  content: '';
  width: 46px;
  height: 1px;
  background: var(--red);
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 5.4vw, 62px);
  line-height: 1.42;
  letter-spacing: 0.04em;
  color: var(--ink);
  max-width: 17em;
}

.hero h1 em {
  font-style: normal;
  color: var(--red);
}

.hero .hero-sub {
  margin-top: 34px;
  max-width: 620px;
  font-size: 16px;
  color: var(--text-soft);
  line-height: 2.1;
}

.hero-actions { margin-top: 48px; display: flex; gap: 16px; flex-wrap: wrap; }

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--display);
  font-size: 12.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 16px 34px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s;
}

.btn::after { content: '→'; content: '→' / ''; font-family: var(--sans); transition: transform 0.3s; }
.btn:hover::after { transform: translateX(5px); }

.btn:hover { background: var(--ink); color: var(--white); }

.btn.btn-red { border-color: var(--red); background: var(--red); color: var(--white); }
.btn.btn-red:hover { background: var(--red-deep); border-color: var(--red-deep); }

.btn.btn-ghost-light { border-color: #5a5a5a; color: var(--white); }
.btn.btn-ghost-light:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

/* ------------------------------------------------------------
   Sections & labels
   ------------------------------------------------------------ */
.section { padding: 100px 0; }
.section.section-white { background: var(--white); }
.section.section-dark { background: var(--ink); color: #dddbd6; }
.section.section-red { background: var(--red); color: var(--white); }

.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.section-label .jp {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.34em;
  color: var(--red);
}

.section-label::after {
  content: '';
  flex: 0 0 44px;
  height: 1px;
  background: var(--red);
}

.section-dark .section-label .jp { color: #e05a60; }

.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 3.4vw, 40px);
  letter-spacing: 0.06em;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 22px;
}

.section-dark .section-title { color: var(--white); }
.section-red .section-title { color: var(--white); }

.section-intro {
  max-width: 680px;
  color: var(--text-soft);
  margin-bottom: 56px;
}

.section-dark .section-intro { color: #a9a7a2; }

.center { text-align: center; }
.center .section-label { justify-content: center; }
.center .section-label::before {
  content: '';
  flex: 0 0 44px;
  height: 1px;
  background: var(--red);
}
.center .section-intro { margin-left: auto; margin-right: auto; }

/* ------------------------------------------------------------
   Kate-style business cards (photo/panel + caption band)
   ------------------------------------------------------------ */
.biz-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px;
}

.biz-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.biz-card {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 10px 34px rgba(17, 17, 17, 0.05);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  display: block;
}

.biz-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 44px rgba(17, 17, 17, 0.1);
}

.biz-card .panel {
  height: 230px;
  background: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.biz-card .panel::before {
  /* faint ghost mark behind the logo */
  content: attr(data-kanji);
  content: attr(data-kanji) / '';
  position: absolute;
  right: -12px;
  bottom: -42px;
  font-family: var(--display);
  font-size: 170px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.045);
  pointer-events: none;
}

.biz-card .panel img { width: 62%; max-width: 320px; }

.biz-card .caption {
  padding: 26px 20px;
  text-align: center;
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.14em;
  color: var(--ink);
}

.biz-card .caption .en { font-family: var(--display); font-size: 15px; letter-spacing: 0.2em; }

.biz-card .caption-sub {
  padding: 0 26px 28px;
  text-align: center;
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.9;
  margin-top: -8px;
}

/* ------------------------------------------------------------
   Process flow strip (collection → sales)
   ------------------------------------------------------------ */
.flow {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border: 1px solid var(--line);
  background: var(--white);
}

.flow-step {
  padding: 34px 18px 30px;
  text-align: center;
  border-right: 1px solid var(--line);
  position: relative;
}

.flow-step:last-child { border-right: none; }

.flow-step .num {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--red);
  display: block;
  margin-bottom: 14px;
}

.flow-step .kanji {
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: 0.08em;
  color: var(--ink);
  display: block;
  margin-bottom: 10px;
}

.flow-step .en {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-soft);
  display: block;
}

.flow-step::after {
  content: '→';
  content: '→' / '';
  position: absolute;
  right: -9px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--red);
  font-size: 13px;
  z-index: 2;
  background: var(--white);
  line-height: 1;
  padding: 2px 0;
}

.flow-step:last-child::after { display: none; }

.flow.cols-4 { grid-template-columns: repeat(4, 1fr); }
.flow.cols-5 { grid-template-columns: repeat(5, 1fr); }

/* ------------------------------------------------------------
   Feature rows (thin-rule list)
   ------------------------------------------------------------ */
.feature-list { border-top: 1px solid var(--line); }

.feature-row {
  display: grid;
  grid-template-columns: 90px 260px 1fr;
  gap: 30px;
  padding: 34px 6px;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.feature-row .idx {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 11.5px;
  letter-spacing: 0.2em;
  color: var(--red);
}

.feature-row h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: 0.06em;
  color: var(--ink);
  line-height: 1.6;
}

.feature-row p { color: var(--text-soft); font-size: 14.5px; }

.section-dark .feature-list { border-color: var(--line-dark); }
.section-dark .feature-row { border-color: var(--line-dark); }
.section-dark .feature-row h3 { color: var(--white); }
.section-dark .feature-row p { color: #a9a7a2; }

/* ------------------------------------------------------------
   Simple feature grid (cards without imagery)
   ------------------------------------------------------------ */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.tile-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.tile-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.tile {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 2px solid var(--red);
  padding: 34px 30px;
}

.tile .tile-kanji {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--red);
  display: block;
  margin-bottom: 14px;
}

.tile h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.05em;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.6;
}

.tile p { font-size: 13.8px; color: var(--text-soft); }

.tile ul { list-style: none; margin-top: 10px; }

.tile ul li {
  font-size: 13.5px;
  color: var(--text-soft);
  padding: 7px 0 7px 20px;
  position: relative;
  border-bottom: 1px solid #efede9;
}

.tile ul li:last-child { border-bottom: none; }

.tile ul li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 16px;
  width: 7px;
  height: 7px;
  background: var(--red);
}

.section-dark .tile { background: var(--charcoal); border-color: var(--line-dark); border-top-color: var(--red); }
.section-dark .tile .tile-kanji { color: #e05a60; }
.section-dark .chip::before { color: #e05a60; }
.section-dark .feature-row .idx { color: #e05a60; }
.section-dark .list-check li::before { color: #e05a60; }
.stat .value em { color: #e05a60; }
.section-dark .tile h3 { color: var(--white); }
.section-dark .tile p, .section-dark .tile ul li { color: #a9a7a2; }
.section-dark .tile ul li { border-color: #262626; }

/* ------------------------------------------------------------
   Split section (text + panel)
   ------------------------------------------------------------ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.split.rev > *:first-child { order: 2; }

.split-panel {
  background: var(--charcoal);
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
}

.split-panel::before {
  content: attr(data-kanji);
  content: attr(data-kanji) / '';
  position: absolute;
  right: -16px;
  bottom: -56px;
  font-family: var(--display);
  font-size: 230px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.split-panel img { width: 64%; max-width: 360px; }

.split-panel.panel-light { background: var(--white); }
.split-panel.panel-light::before { color: rgba(200, 24, 32, 0.06); }

.split h2 { margin-bottom: 18px; }

.split .list-check { list-style: none; margin-top: 22px; }

.list-check li {
  padding: 11px 0 11px 30px;
  position: relative;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--text-soft);
}

.list-check li::before {
  content: '✓';
  content: '✓' / '';
  position: absolute;
  left: 2px;
  top: 11px;
  color: var(--red);
  font-weight: 700;
}

.section-dark .list-check li { border-color: var(--line-dark); color: #a9a7a2; }

/* ------------------------------------------------------------
   Stats band
   ------------------------------------------------------------ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line-dark);
}

.stat {
  padding: 44px 20px;
  text-align: center;
  border-right: 1px solid var(--line-dark);
}

.stat:last-child { border-right: none; }

.stat .value {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 500;
  color: var(--white);
  display: block;
  line-height: 1.2;
}

.stat .value em { font-style: normal; color: #e05a60; font-size: 22px; }

.stat .label {
  display: block;
  margin-top: 12px;
  font-family: var(--display);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8f8d88;
}

/* ------------------------------------------------------------
   Pricing
   ------------------------------------------------------------ */
.price-card {
  background: var(--white);
  border: 1px solid var(--line);
  max-width: 860px;
  margin: 0 auto;
}

.price-head {
  background: var(--ink);
  color: var(--white);
  padding: 40px 48px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 16px;
}

.price-head .tier {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.16em;
}

.price-head .tier .jp { font-family: var(--display); text-transform: uppercase; color: #e05a60; font-size: 11px; letter-spacing: 0.3em; display: block; margin-bottom: 8px; }

.price-head .amount { font-family: var(--serif); font-size: 34px; }
.price-head .amount small { font-size: 13px; color: #8f8d88; letter-spacing: 0.12em; margin-left: 8px; }

.price-body { padding: 44px 48px; }

.price-body ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 40px;
}

.price-body li {
  padding: 12px 0 12px 30px;
  position: relative;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--text-soft);
}

.price-body li::before {
  content: '✓';
  content: '✓' / '';
  position: absolute;
  left: 2px;
  color: var(--red);
  font-weight: 700;
}

.price-foot { padding: 0 48px 44px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ------------------------------------------------------------
   Pricing matrix
   ------------------------------------------------------------ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.pricing-plan {
  --plan-accent: var(--red);
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 26px 24px 24px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.pricing-plan::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: var(--plan-accent);
}

.pricing-plan--essential { --plan-accent: #4f89a9; }
.pricing-plan--growth { --plan-accent: #b38d2f; }
.pricing-plan--premium { --plan-accent: #c35a3b; }
.pricing-plan--business { --plan-accent: #7d4f96; }
.pricing-plan--custom {
  --plan-accent: var(--ink);
  grid-column: 1 / -1;
  background:
    linear-gradient(180deg, rgba(17, 17, 17, 0.02), rgba(17, 17, 17, 0)),
    var(--white);
}

.pricing-plan--featured {
  box-shadow: 0 18px 42px rgba(17, 17, 17, 0.08);
  transform: translateY(-8px);
}

.pricing-plan-badge,
.pricing-plan-pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  border: 1px solid currentColor;
  font-family: var(--display);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 6px 10px;
}

.pricing-plan-badge {
  color: var(--plan-accent);
  margin-bottom: 18px;
}

.pricing-plan-pill {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  color: var(--red);
  background: var(--white);
  box-shadow: 0 8px 18px rgba(17, 17, 17, 0.08);
}

.pricing-plan h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.25;
}

.pricing-plan-desc {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-soft);
  margin-bottom: 24px;
}

.pricing-plan-price {
  font-family: var(--serif);
  font-size: 38px;
  line-height: 1.1;
  color: var(--ink);
}

.pricing-plan-price span {
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.pricing-plan-alt,
.pricing-plan-save,
.pricing-plan-allowance {
  font-size: 13.5px;
}

.pricing-plan-alt {
  margin-top: 10px;
  color: var(--text-soft);
}

.pricing-plan-save {
  margin-top: 8px;
  color: #2b7f46;
  font-family: var(--display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 11px;
}

.pricing-plan-allowance {
  margin-top: 16px;
  color: var(--ink);
}

.pricing-plan-allowance span {
  color: var(--text-faint);
  font-size: 12.5px;
  margin-left: 6px;
}

.pricing-plan-allowance--accent {
  color: var(--red);
  margin-top: 8px;
}

.pricing-plan-list {
  list-style: none;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.pricing-plan-list li {
  position: relative;
  padding: 11px 0 11px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--text-soft);
}

.pricing-plan-list li::before {
  content: '✓';
  content: '✓' / '';
  position: absolute;
  left: 2px;
  color: var(--plan-accent);
  font-weight: 700;
}

.pricing-plan-list li.is-disabled {
  color: var(--text-faint);
}

.pricing-plan-list li.is-disabled::before {
  content: '–';
  content: '–' / '';
  color: var(--text-faint);
}

.pricing-plan-foot {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pricing-plan-helper {
  font-size: 12px;
  color: var(--text-faint);
}

.pricing-plan-btn {
  width: 100%;
  justify-content: center;
}

.pricing-plan-custom-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: start;
}

.pricing-plan-custom-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pricing-plan-custom-stats {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.pricing-plan-custom-stat {
  border: 1px solid var(--line);
  padding: 14px 16px;
  background: rgba(17, 17, 17, 0.02);
}

.pricing-plan-custom-stat span {
  display: block;
  font-family: var(--display);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 6px;
}

.pricing-plan-custom-stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink);
}

.pricing-plan-custom-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.pricing-plan-custom-panel {
  border: 1px solid var(--line);
  padding: 18px 18px 10px;
  background: rgba(255, 255, 255, 0.78);
}

.pricing-plan-custom-panel h4 {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.pricing-plan-custom-panel .pricing-plan-list {
  margin-top: 0;
  border-top: none;
}

.pricing-plan-list--compact li {
  padding-top: 10px;
  padding-bottom: 10px;
}

/* ------------------------------------------------------------
   Compliance / assurance strip
   ------------------------------------------------------------ */
.assure {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.assure .item {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 32px 30px;
}

.assure .item h3 {
  font-family: var(--serif);
  font-size: 16.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  color: var(--ink);
}

.assure .item p { font-size: 13.5px; color: var(--text-soft); }

/* ------------------------------------------------------------
   CTA band
   ------------------------------------------------------------ */
.cta-band { text-align: center; padding: 110px 0; position: relative; overflow: hidden; background: var(--ink); }

.cta-band::before {
  content: '烈';
  content: '烈' / '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--display);
  font-size: 300px;
  color: rgba(255, 255, 255, 0.04);
  pointer-events: none;
  line-height: 1;
}

.cta-band .jp {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 12px;
  color: #e05a60;
  display: block;
  margin-bottom: 20px;
}

.cta-band h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 3.6vw, 42px);
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 36px;
}

/* ------------------------------------------------------------
   Page hero (sub-pages)
   ------------------------------------------------------------ */
.page-hero {
  position: relative;
  background: var(--ink);
  padding: calc(var(--header-h) + 96px) 0 96px;
  color: var(--white);
  overflow: hidden;
}

.page-hero::before {
  content: attr(data-kanji);
  content: attr(data-kanji) / '';
  position: absolute;
  right: -2%;
  bottom: -30%;
  font-family: var(--display);
  font-size: 24rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.page-hero .crumb {
  font-family: var(--display);
  font-size: 11.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #8f8d88;
  margin-bottom: 30px;
}

.page-hero .crumb a:hover { color: var(--white); }
.page-hero .crumb span { color: var(--red); margin: 0 10px; }

.page-hero .product-logo { height: 74px; width: auto; margin-bottom: 34px; }

.page-hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.5;
  letter-spacing: 0.05em;
  max-width: 18em;
}

.page-hero .page-hero-sub { margin-top: 26px; max-width: 640px; color: #a9a7a2; font-size: 15.5px; }

.page-hero .hero-actions { margin-top: 42px; }

.page-hero .badge {
  display: inline-block;
  border: 1px solid var(--red);
  color: #e05a60;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 6px 14px;
  margin-bottom: 26px;
}

/* ------------------------------------------------------------
   Table (spec/comparison)
   ------------------------------------------------------------ */
.spec-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); }

.spec-table th, .spec-table td { padding: 18px 24px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; }

.spec-table th {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink);
  width: 30%;
  background: #fbfaf8;
  border-right: 1px solid var(--line);
  vertical-align: top;
}

.spec-table td { color: var(--text-soft); }

.table-scroll { overflow-x: auto; }

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.site-footer { background: var(--ink); color: #a9a7a2; padding: 90px 0 0; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 60px;
  padding-bottom: 70px;
}

.footer-brand img { height: 40px; width: auto; margin-bottom: 24px; }

.footer-brand p { font-size: 13px; line-height: 2; color: #8f8d88; max-width: 320px; }

.footer-brand .jp-tag {
  font-family: var(--display);
  text-transform: uppercase;
  color: #e05a60;
  letter-spacing: 0.28em;
  font-size: 11px;
  margin-top: 18px;
}

.site-footer h3 {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-dark);
}

.site-footer ul { list-style: none; }

.site-footer ul li { margin-bottom: 12px; }

.site-footer ul a { font-size: 13px; color: #8f8d88; transition: color 0.25s; }
.site-footer ul a:hover { color: var(--white); }

.footer-contact p { font-size: 13px; margin-bottom: 10px; }
.footer-contact a { color: #d8d6d1; }
.footer-contact a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding: 28px 0;
}

.footer-bottom .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom p { font-size: 11.5px; letter-spacing: 0.12em; color: #a09e97; }

.footer-seal {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--red);
  border: 1.5px solid var(--red);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  line-height: 1;
  letter-spacing: 0;
}

/* ------------------------------------------------------------
   Reveal on scroll
   ------------------------------------------------------------ */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s ease; }
html.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 1080px) {
  .main-nav { gap: 22px; }
  .main-nav a { font-size: 11.5px; letter-spacing: 0.16em; }
  .lang-mark { display: none; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }

  .main-nav {
    position: fixed;
    inset: 0;
    background: rgba(17, 17, 17, 0.98);
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s, visibility 0.35s;
  }

  body.nav-open .main-nav { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }
  .main-nav { overflow-y: auto; padding: 90px 0 40px; }

  .main-nav a { font-size: 16px; padding: 12px 0; }

  .nav-item .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    border: none;
    background: transparent;
    min-width: 0;
    padding: 0;
    text-align: center;
  }

  .nav-item .dropdown a { font-size: 13px; padding: 8px 0; color: #8f8d88; }
  .dropdown .dropdown-note { display: none; }

  .header-cta { display: none; }

  .biz-grid, .biz-grid.cols-3, .tile-grid, .tile-grid.cols-4, .assure, .pricing-grid { grid-template-columns: 1fr 1fr; }
  .split, .split.rev { grid-template-columns: 1fr; gap: 40px; }
  .split.rev > *:first-child { order: 0; }
  .flow, .flow.cols-4, .flow.cols-5 { grid-template-columns: repeat(3, 1fr); }
  .flow-step:nth-child(3)::after { display: none; }
  .flow-step:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line-dark); }
  .feature-row { grid-template-columns: 60px 1fr; }
  .feature-row p { grid-column: 2; }
  .price-body ul { grid-template-columns: 1fr; }
  .pricing-plan--custom { grid-column: 1 / -1; }
  .pricing-plan--featured { transform: none; }
  .pricing-plan-custom-grid { grid-template-columns: 1fr; }
  .pricing-plan-custom-panels { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .section { padding: 70px 0; }
  .hero { padding: calc(var(--header-h) + 70px) 0 70px; }
  .biz-grid, .biz-grid.cols-3, .tile-grid, .tile-grid.cols-4, .assure, .pricing-grid { grid-template-columns: 1fr; }
  .flow, .flow.cols-4, .flow.cols-5 { grid-template-columns: 1fr 1fr; }
  .flow-step:nth-child(3)::after { display: block; }
  .flow-step:nth-child(even)::after { display: none; }
  .flow-step:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
  .price-head, .price-body, .price-foot { padding-left: 28px; padding-right: 28px; }
  .pricing-plan { padding-left: 22px; padding-right: 22px; }
  .pricing-plan h3 { font-size: 24px; }
  .pricing-plan-price { font-size: 34px; }
  .pricing-plan--custom { grid-column: auto; }
  .pricing-plan-custom-panels { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .brand img { height: 30px; }
}

/* ------------------------------------------------------------
   Kate-style centered section header with double-rule divider
   ------------------------------------------------------------ */
.section-header { text-align: center; margin-bottom: 64px; }

.section-header h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(26px, 3.2vw, 38px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 22px;
  position: relative;
  display: inline-block;
}

.section-header h2::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 1px;
  background: var(--line);
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--red);
}

.section-header .jp-caption {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--text-soft);
}

.section-dark .section-header h2 { color: var(--white); }
.section-dark .section-header h2::before { background: var(--line-dark); }
.section-dark .section-header .jp-caption { color: #8f8d88; }

/* ------------------------------------------------------------
   Early access promo banner
   ------------------------------------------------------------ */
.promo-banner {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 90;
  background: var(--ink);
  color: #d8d6d1;
  border: 1px solid var(--line-dark);
  border-left: 3px solid var(--red);
  padding: 18px 48px 18px 22px;
  max-width: 340px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.3);
}

.promo-banner h4 {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 6px;
}

.promo-banner p { font-size: 12.5px; color: #a9a7a2; line-height: 1.7; }

.promo-banner .close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  color: #8f8d88;
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
}

.promo-banner .close:hover { color: var(--white); }

@media (max-width: 600px) { .promo-banner { left: 16px; right: 16px; bottom: 16px; max-width: none; } }

/* ------------------------------------------------------------
   Contact form
   ------------------------------------------------------------ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 70px; align-items: start; }

.contact-info p { color: var(--text-soft); margin-bottom: 20px; }

.contact-info .contact-line {
  display: flex;
  gap: 14px;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding: 14px 2px;
  font-size: 14px;
}

.contact-info .contact-line .k {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--red);
  flex: 0 0 90px;
}

.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.contact-form .full { grid-column: 1 / -1; }

.contact-form label {
  display: block;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 8px;
}

.contact-form label .req { color: var(--red); }

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid #8f8d88;
  background: var(--white);
  font-family: var(--serif);
  font-size: 14px;
  color: var(--text);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.25s;
}

.contact-form select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23595959'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--red);
}

.contact-form textarea { resize: vertical; min-height: 140px; }

.contact-form .form-status {
  grid-column: 1 / -1;
  font-size: 13.5px;
  color: var(--text-soft);
  display: none;
}

.contact-form .form-status.error { color: var(--red); display: block; }
.contact-form .form-status.ok { color: #1a7a3c; display: block; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 600px) {
  .contact-form { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------
   In-development / muted treatment
   ------------------------------------------------------------ */
.biz-card.muted .panel { opacity: 0.75; }

.dev-flag {
  display: inline-block;
  font-family: var(--display);
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid var(--red);
  padding: 3px 10px;
  margin-left: 10px;
  vertical-align: middle;
}

/* Small note text */
.fine-print { font-size: 12px; color: var(--text-faint); margin-top: 26px; line-height: 1.8; }
.section-dark .fine-print { color: #a09e97; }

/* Header seal mark */
.header-seal {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--red);
  border: 1.5px solid var(--red);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0;
  flex-shrink: 0;
}

/* Testimonial */
.testimonial { max-width: 760px; margin: 0 auto; text-align: center; }

.testimonial .quote-mark {
  font-family: var(--display);
  font-size: 70px;
  line-height: 1;
  color: var(--red);
  display: block;
  margin-bottom: 18px;
}

.testimonial blockquote {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  line-height: 2;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.testimonial cite {
  display: block;
  margin-top: 26px;
  font-style: normal;
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.testimonial cite::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--red);
  margin: 0 auto 16px;
}

/* Chip row (test names, tags) */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }

.chip {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--text-soft);
  padding: 9px 16px;
  position: relative;
}

.chip::before { content: '◦'; content: '◦' / ''; color: var(--red); margin-right: 8px; }

.section-dark .chip { background: var(--charcoal); border-color: var(--line-dark); color: #a9a7a2; }

/* ------------------------------------------------------------
   Legal / prose pages
   ------------------------------------------------------------ */
.prose { max-width: 780px; }

.prose h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 48px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.prose h2:first-child { margin-top: 0; }

.prose p { color: var(--text-soft); margin-bottom: 16px; font-size: 14.5px; }

.prose ul { margin: 0 0 16px 20px; color: var(--text-soft); font-size: 14.5px; }
.prose ul li { margin-bottom: 8px; }

.prose a { color: var(--red); border-bottom: 1px solid rgba(200, 24, 32, 0.3); }
.prose a:hover { border-bottom-color: var(--red); }

.prose .updated {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 34px;
}
