/* =========================================================
   Replit × Claude Code 交流会 LP
   Editorial / heavyweight aesthetic — black × off-white × ember accent
   ========================================================= */

:root {
  /* Theme variables — overridden by data-theme + tweaks */
  --bg: #f4f1ea;
  --bg-elev: #ffffff;
  --ink: #0c0b09;
  --ink-2: #2a2622;
  --ink-mute: #6a6258;
  --rule: rgba(12, 11, 9, 0.14);
  --rule-strong: rgba(12, 11, 9, 0.5);
  --paper-grain: rgba(12, 11, 9, 0.025);
  --accent: #ff5b1f;
  --accent-ink: #f4f1ea;
  --kbd: #1a1a1a;

  /* Type */
  --serif: "EB Garamond", "Cormorant Garamond", "Hiragino Mincho ProN",
    "Yu Mincho", "YuMincho", "MS Mincho", serif;
  --sans: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont,
    "Helvetica Neue", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", sans-serif;
  --mono: "JetBrains Mono", "Fira Code", ui-monospace, "SFMono-Regular",
    "Menlo", monospace;
  --jp: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho",
    "YuMincho", "MS Mincho", serif;
  --jp-sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic",
    sans-serif;
}

[data-theme="dark"] {
  --bg: #0c0b09;
  --bg-elev: #15130f;
  --ink: #f4f1ea;
  --ink-2: #d8d2c5;
  --ink-mute: #8a8275;
  --rule: rgba(244, 241, 234, 0.14);
  --rule-strong: rgba(244, 241, 234, 0.5);
  --paper-grain: rgba(244, 241, 234, 0.025);
  --accent-ink: #0c0b09;
  --kbd: #f4f1ea;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--jp-sans);
  font-feature-settings: "palt" 1, "kern" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

/* Paper grain — subtle */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(var(--paper-grain) 1px, transparent 1px);
  background-size: 3px 3px;
  z-index: 1;
  mix-blend-mode: multiply;
  opacity: 0.6;
}
[data-theme="dark"] body::before {
  mix-blend-mode: screen;
}

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

/* ─────────────── Typographic primitives ─────────────── */

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--ink-mute);
  display: inline-block;
}

.section-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
}

.kicker-en {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(14px, 1.2vw, 18px);
  letter-spacing: 0.02em;
  color: var(--ink-mute);
}

.h-display {
  font-family: var(--jp);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.18;
  color: var(--ink);
  text-wrap: pretty;
}

.h-en {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.01em;
  line-height: 1;
}

.body-jp {
  font-family: var(--jp-sans);
  line-height: 1.85;
  color: var(--ink-2);
  font-size: 15px;
  letter-spacing: 0.02em;
}

/* ─────────────── Layout ─────────────── */

.shell {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 64px;
}

@media (max-width: 1100px) {
  .shell { padding: 0 40px; }
}

.section {
  padding-block: 140px;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.section.shell { padding-inline: 64px; }
.section:last-of-type { border-bottom: none; }

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: baseline;
  margin-bottom: 64px;
}

@media (max-width: 1100px) {
  .section.shell { padding-inline: 40px; }
}
@media (max-width: 820px) {
  .shell { padding: 0 24px; }
  .section { padding-block: 80px; }
  .section.shell { padding-inline: 24px; }
  .section-head {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 40px;
  }
}

/* ─────────────── Top nav ─────────────── */

.topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 64px;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.topnav .marks {
  display: flex;
  align-items: center;
  gap: 14px;
}
.topnav .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent);
}
.topnav .links { display: flex; gap: 28px; color: var(--ink-mute); }
.topnav .links a:hover { color: var(--ink); }
.topnav .marks > span:not(.dot) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}
.topnav .foot-logos { flex-shrink: 0; }

@media (max-width: 1100px) {
  .topnav { padding: 16px 40px; gap: 24px; }
  .topnav .links { gap: 22px; }
}
@media (max-width: 980px) {
  .topnav .links { display: none; }
}
@media (max-width: 820px) {
  .topnav { padding: 12px 20px; gap: 16px; }
  .topnav .marks { gap: 10px; min-width: 0; }
  .topnav .marks > span:not(.dot) {
    font-size: 10px;
    letter-spacing: 0.14em;
    max-width: none;
  }
}
@media (max-width: 520px) {
  .topnav { padding: 10px 16px; }
  .topnav .marks > span:not(.dot) { font-size: 9px; letter-spacing: 0.1em; }
  .topnav .foot-logos { gap: 8px !important; }
  .topnav .foot-logos img.areeena { height: 14px !important; }
  .topnav .foot-logos img.mukuiru { height: 11px !important; }
  .topnav .foot-logos .x { font-size: 9px !important; }
}

/* ─────────────── CTA button ─────────────── */

.cta {
  --cta-bg: var(--ink);
  --cta-fg: var(--bg);
  --cta-bd: var(--ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 22px 30px;
  background: var(--cta-bg);
  color: var(--cta-fg);
  border: 1px solid var(--cta-bd);
  font-family: var(--jp-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .2s ease;
  overflow: hidden;
}
.cta .arrow {
  width: 22px; height: 1px;
  background: var(--cta-fg);
  position: relative;
  transition: width .3s ease;
}
.cta .arrow::after {
  content: "";
  position: absolute;
  right: 0; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid var(--cta-fg);
  border-right: 1px solid var(--cta-fg);
  transform: rotate(45deg);
}
.cta:hover {
  --cta-bg: var(--accent);
  --cta-bd: var(--accent);
  --cta-fg: var(--accent-ink);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -18px color-mix(in srgb, var(--accent) 60%, transparent);
}
.cta:hover .arrow { width: 32px; }

.cta.cta-accent {
  --cta-bg: var(--accent);
  --cta-fg: var(--accent-ink);
  --cta-bd: var(--accent);
}
.cta.cta-accent:hover {
  --cta-bg: var(--ink);
  --cta-fg: var(--bg);
  --cta-bd: var(--ink);
  box-shadow: 0 18px 40px -18px color-mix(in srgb, var(--ink) 60%, transparent);
}

.cta-ghost {
  --cta-bg: transparent;
  --cta-fg: var(--ink);
  --cta-bd: var(--ink);
}
.cta-ghost:hover {
  --cta-bg: var(--ink);
  --cta-fg: var(--bg);
  --cta-bd: var(--ink);
  box-shadow: none;
}

/* ─────────────── Reveal animation ─────────────── */
/* Reveals are ARMED by [data-reveal-armed] on <html>. JS removes that
   attribute on mount, so if the script fails, content stays visible. */

[data-reveal-armed] .reveal {
  opacity: 0;
  transform: translateY(24px);
}
.reveal {
  transition: opacity .9s cubic-bezier(.2,.6,.2,1), transform .9s cubic-bezier(.2,.6,.2,1);
}
[data-reveal-armed] .reveal.in,
.reveal.in { opacity: 1; transform: none; }

[data-reveal-armed] .reveal-stagger > * {
  opacity: 0;
  transform: translateY(18px);
}
.reveal-stagger > * {
  transition: opacity .8s cubic-bezier(.2,.6,.2,1), transform .8s cubic-bezier(.2,.6,.2,1);
}
.reveal-stagger.in > * { opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(1) { transition-delay: .05s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: .15s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: .25s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: .35s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: .45s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger,
  [data-reveal-armed] .reveal,
  [data-reveal-armed] .reveal-stagger > *,
  .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ─────────────── HERO ─────────────── */

.hero {
  padding: 120px 64px 96px;
  position: relative;
  border-bottom: 1px solid var(--rule);
}

@media (max-width: 1100px) {
  .hero { padding: 110px 40px 80px; }
}
@media (max-width: 820px) {
  .hero { padding: 100px 24px 64px; }
}

.hero-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: baseline;
  margin-bottom: 56px;
}
.hero-meta .ruleword {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.hero-meta .ruleword.right { text-align: right; }

.hero-title {
  font-family: var(--jp);
  font-weight: 600;
  font-size: clamp(30px, 4.4vw, 64px);
  line-height: 1.22;
  letter-spacing: 0.005em;
  margin: 0 0 48px;
  color: var(--ink);
}

.footnote-jp {
  font-family: var(--jp);
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-mute);
  margin: 0;
  letter-spacing: 0.02em;
}
.footnote-mark {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  margin-right: 6px;
  letter-spacing: 0.16em;
}

.demo-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px;
  align-items: end;
  margin-bottom: 64px;
}
.demo-head-text { min-width: 0; }

.past-work {
  margin: 0;
  width: 100%;
  max-width: 320px;
  opacity: 0.85;
  justify-self: end;
}

[data-reveal-armed] .past-work-reveal,
.past-work-reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  filter: blur(6px);
  transition:
    opacity 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) 0.15s,
    transform 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) 0.15s,
    filter 1.0s ease 0.15s;
}
[data-reveal-armed] .past-work-reveal.in,
.past-work-reveal.in {
  opacity: 0.85;
  transform: none;
  filter: blur(0);
}
@media (prefers-reduced-motion: reduce) {
  .past-work-reveal,
  [data-reveal-armed] .past-work-reveal {
    transition: none;
    opacity: 0.85;
    transform: none;
    filter: none;
  }
}
.past-work-cap {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 10px;
  padding-left: 10px;
  border-left: 1px solid var(--rule);
}
.past-work-mark {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.past-work-jp {
  font-family: var(--jp);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
}
.past-work-frame {
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
  filter: saturate(0.9);
  transition: filter 0.4s ease, opacity 0.4s ease;
}
.past-work-frame:hover {
  filter: saturate(1);
  opacity: 1;
}
.past-work-frame img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 1100px) {
  .demo-head { grid-template-columns: minmax(0, 1fr) 260px; gap: 40px; }
  .past-work { max-width: 260px; }
}
@media (max-width: 820px) {
  .demo-head {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 40px;
  }
  .past-work {
    max-width: 100%;
    justify-self: stretch;
  }
}
.hero-title .accent-mark {
  color: var(--accent);
  font-style: italic;
  font-family: var(--serif);
  font-weight: 500;
}
.hero-title .strike {
  position: relative;
  display: inline-block;
}
.hero-title .strike::after {
  content: "";
  position: absolute;
  left: -2%; right: -2%; top: 55%;
  height: 4px;
  background: var(--accent);
  transform-origin: left center;
  animation: strike 1.6s 1.2s cubic-bezier(.7,.0,.3,1) both;
}
@keyframes strike {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
.hero-title .answer {
  display: block;
  margin-top: 8px;
}
.hero-title .answer-en {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 0.55em;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
  display: block;
  margin-bottom: 8px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
}
.hero-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hero-bullets li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-2);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}
.hero-bullets li:last-child { border-bottom: none; }
.hero-bullets .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  padding-top: 5px;
}

.hero-cta-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.hero-cta-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  text-transform: uppercase;
  line-height: 1.9;
}
.hero-cta-meta .price {
  color: var(--ink);
  font-weight: 600;
  font-size: 12px;
}
.hero-cta-meta .warn {
  color: var(--accent);
}

@media (max-width: 980px) {
  .hero-meta {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 40px;
  }
  .hero-meta .ruleword.right { text-align: left; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ─────────────── Numbered cards / step rail ─────────────── */

.step-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule);
}
.step {
  padding: 32px 28px 36px;
  border-right: 1px solid var(--rule);
  position: relative;
  transition: background .25s ease;
}
.step:last-child { border-right: none; }
.step:hover {
  background: color-mix(in srgb, var(--ink) 4%, transparent);
}
.step-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-mute);
  margin-bottom: 70px;
  display: flex;
  justify-content: space-between;
}
.step-num .glyph {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--accent);
}
.step-title {
  font-family: var(--jp);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.35;
  margin: 0 0 12px;
  letter-spacing: 0.01em;
}
.step-en {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.step-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-mute);
}

@media (max-width: 820px) {
  .step-rail { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2) { border-right: none; }
  .step:nth-child(1), .step:nth-child(2) { border-bottom: 1px solid var(--rule); }
  .step-num { margin-bottom: 40px; }
}

/* ─────────────── Terminal demo ─────────────── */

.terminal {
  margin-top: 48px;
  background: #0c0b09;
  color: #e8e2d3;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  border: 1px solid rgba(244, 241, 234, 0.08);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.5);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #15130f;
  border-bottom: 1px solid rgba(244, 241, 234, 0.06);
}
.terminal-bar .b {
  width: 11px; height: 11px; border-radius: 50%;
  background: rgba(244, 241, 234, 0.15);
}
.terminal-bar .title {
  margin-left: 12px;
  font-size: 11px;
  color: rgba(244, 241, 234, 0.45);
  letter-spacing: 0.06em;
}
.terminal-bar .tabs {
  margin-left: auto;
  display: flex;
  gap: 4px;
  font-size: 10px;
  color: rgba(244, 241, 234, 0.4);
}
.terminal-bar .tab {
  padding: 3px 10px;
  border-radius: 3px;
}
.terminal-bar .tab.active {
  background: rgba(244, 241, 234, 0.08);
  color: #e8e2d3;
}
.terminal-body {
  padding: 22px 24px;
  min-height: 260px;
  white-space: pre-wrap;
  word-break: break-word;
}
.terminal-line { display: block; }
.term-prompt { color: #ff5b1f; }
.term-cmd { color: #f4f1ea; }
.term-out { color: rgba(244, 241, 234, 0.65); }
.term-ok { color: #76d399; }
.term-mute { color: rgba(244, 241, 234, 0.42); }
.term-accent { color: #ff5b1f; }
.term-blue { color: #6ab0f3; }
.cursor {
  display: inline-block;
  width: 8px;
  height: 1em;
  background: #ff5b1f;
  vertical-align: -2px;
  margin-left: 2px;
  animation: blink 1.05s steps(2, start) infinite;
}
@keyframes blink { to { background: transparent; } }

/* ─────────────── Honest talk / quote ─────────────── */

.honest-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.honest-lead {
  font-family: var(--jp);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.honest-lead .em {
  background: linear-gradient(transparent 60%, color-mix(in srgb, var(--accent) 40%, transparent) 60%);
}
.honest-text p {
  font-size: 15px;
  line-height: 1.95;
  color: var(--ink-2);
  margin: 0 0 18px;
}
.quotebox {
  margin-top: 48px;
  padding: 36px 40px;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
  background: color-mix(in srgb, var(--ink) 3%, transparent);
  position: relative;
}
.quotebox::before {
  content: "“";
  position: absolute;
  top: -10px;
  left: 24px;
  font-family: var(--serif);
  font-size: 88px;
  line-height: 1;
  color: var(--accent);
}
.quotebox .quote {
  font-family: var(--jp);
  font-size: 22px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 18px;
  padding-left: 0;
}
.quotebox .who {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
@media (max-width: 820px) {
  .honest-body { grid-template-columns: 1fr; gap: 32px; }
  .quotebox { padding: 28px 24px; }
}

/* ─────────────── Curriculum ─────────────── */

.curriculum {
  display: flex;
  flex-direction: column;
}
.curr-row {
  display: grid;
  grid-template-columns: 80px 1fr 80px 1.4fr;
  gap: 32px;
  align-items: start;
  padding: 36px 0;
  border-top: 1px solid var(--rule);
  position: relative;
  transition: background .25s ease;
}
.curr-row:last-child { border-bottom: 1px solid var(--rule); }
.curr-row:hover { background: color-mix(in srgb, var(--ink) 3%, transparent); }
.curr-row .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 38px;
  color: var(--accent);
  line-height: 1;
}
.curr-row .time {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  text-transform: uppercase;
  padding-top: 10px;
}
.curr-row h3 {
  font-family: var(--jp);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.4;
  margin: 0 0 8px;
  letter-spacing: 0.01em;
}
.curr-row .en {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-mute);
  margin-bottom: 10px;
}
.curr-row p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-2);
  margin: 0;
}
@media (max-width: 820px) {
  .curr-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 24px 0;
  }
  .curr-row .num { font-size: 28px; }
}

/* ─────────────── Date Picker ─────────────── */

.datepick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
  margin-top: 12px;
}
.dateopt {
  position: relative;
  display: block;
  padding: 36px 30px 32px;
  border-right: 1px solid var(--rule);
  cursor: pointer;
  background: var(--bg);
  transition: background .25s ease, color .25s ease;
  text-align: left;
  font-family: inherit;
  border-top: none; border-bottom: none; border-left: none;
  color: inherit;
  -webkit-appearance: none; appearance: none;
}
.dateopt:last-child { border-right: none; }
.dateopt:hover {
  background: color-mix(in srgb, var(--ink) 4%, transparent);
}
.dateopt.is-selected {
  background: var(--ink);
  color: var(--bg);
}
.dateopt .opt-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dateopt.is-selected .opt-tag { color: rgba(244,241,234,0.55); }
.dateopt .opt-tag .check {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1px solid var(--rule-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .25s ease;
}
.dateopt.is-selected .opt-tag .check {
  background: var(--accent);
  border-color: var(--accent);
}
.dateopt.is-selected .opt-tag .check::after {
  content: "";
  width: 6px; height: 3px;
  border-left: 1.5px solid var(--accent-ink);
  border-bottom: 1.5px solid var(--accent-ink);
  transform: rotate(-45deg) translate(0px, -1px);
}
.dateopt .opt-month {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.dateopt.is-selected .opt-month { color: rgba(244,241,234,0.7); }
.dateopt .opt-day {
  font-family: var(--jp);
  font-weight: 600;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.dateopt .opt-day .dow {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  color: var(--accent);
}
.dateopt.is-selected .opt-day .dow { color: var(--accent); }
.dateopt .opt-time {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ink-2);
}
.dateopt.is-selected .opt-time { color: rgba(244,241,234,0.85); }
.dateopt .opt-status {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.dateopt.is-selected .opt-status { color: var(--accent); }
.dateopt .opt-status.full { color: var(--ink-mute); text-decoration: line-through; }

@media (max-width: 820px) {
  .datepick { grid-template-columns: 1fr; }
  .dateopt {
    border-right: none;
    border-bottom: 1px solid var(--rule);
  }
  .dateopt:last-child { border-bottom: none; }
  .dateopt .opt-day { font-size: 44px; }
}

/* CTA after dates */
.date-cta-row {
  margin-top: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.date-cta-row .selected-summary {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-mute);
  text-transform: uppercase;
}
.date-cta-row .selected-summary strong {
  color: var(--ink);
  font-weight: 600;
  font-family: var(--jp);
  font-size: 14px;
  letter-spacing: 0.02em;
  margin-left: 8px;
}

/* ─────────────── Tool brand chips (Replit / Claude Code) ─────────────── */
.toolchips {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--bg-elev);
}
.toolchips .ic {
  width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
}
.toolchips .ic svg { width: 100%; height: 100%; }
.toolchips .x {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-mute);
  text-transform: none;
  letter-spacing: 0;
}

.tool-stack {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 28px;
}
.tool-stack .tool {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink);
}
.tool-stack .tool svg { width: 22px; height: 22px; }
.tool-stack .arr {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-mute);
}

/* Step rail brand icons */
.step .step-brand {
  width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
}
.step .step-brand svg { width: 100%; height: 100%; }

/* ─────────────── Brand logos ─────────────── */
.brand-logo {
  height: 22px;
  width: auto;
  display: block;
  object-fit: contain;
}
.brand-logo.invert {
  /* For dark/footer-bar contexts */
  filter: invert(1) brightness(1.15);
}
[data-theme="dark"] .brand-logo {
  filter: invert(1) brightness(1.15);
}
[data-theme="dark"] .brand-logo.invert {
  filter: none;
}
.brand-logo.mukuiru { height: 18px; }
.brand-logo.areeena { height: 24px; }

.foot-logos {
  display: flex;
  align-items: center;
  gap: 28px;
}
.foot-logos .x {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-mute);
  font-size: 14px;
}

/* ─────────────── Speakers (compact 2-column) ─────────────── */

.speakers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-top: 32px;
}
.speaker {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  align-items: start;
  padding: 32px 0;
  border-top: 1px solid var(--rule-strong);
}

.speaker-pos {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.speaker-portrait {
  width: 110px;
  aspect-ratio: 4 / 5;
  background:
    repeating-linear-gradient(
      135deg,
      color-mix(in srgb, var(--ink) 10%, transparent) 0 1px,
      transparent 1px 9px
    ),
    color-mix(in srgb, var(--ink) 6%, transparent);
  border: 1px solid var(--rule);
  margin-bottom: 24px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  overflow: hidden;
}
.speaker-portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.35) contrast(1.02);
  z-index: 0;
}
.speaker-portrait .frame-lbl { display: none; }
.speaker.left .speaker-portrait .frame-lbl,
.speaker.left .speaker-portrait .corner-r { left: auto; right: 18px; }
.speaker.left .speaker-portrait { padding-left: auto; }

.speaker-name {
  font-family: var(--jp);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.01em;
  margin: 0 0 2px;
}
.speaker-name .en {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 13px;
  color: var(--ink-mute);
  margin-left: 8px;
}
.speaker-affil {
  font-size: 11px;
  color: var(--ink-mute);
  margin-bottom: 14px;
  font-family: var(--mono);
  letter-spacing: 0.06em;
}
.speaker-tag {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--rule-strong);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
}
.speaker-tag.accent {
  border-color: var(--accent);
  color: var(--accent);
}
.speaker-bio {
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-2);
  margin: 0;
}

@media (max-width: 980px) {
  .speakers {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .speaker { grid-template-columns: 90px 1fr; gap: 18px; }
  .speaker-portrait { width: 90px; }
}

/* ─────────────── Bonuses ─────────────── */

.bonuses {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule-strong);
}
.bonus {
  padding: 48px 36px 56px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  position: relative;
  background: var(--bg);
  transition: background .3s ease;
}
.bonus:last-child { border-right: none; }
.bonus:hover {
  background: var(--bg-elev);
}
.bonus-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 80px;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 36px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.bonus-num .lbl {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--ink-mute);
  text-transform: uppercase;
  font-style: normal;
}
.bonus h3 {
  font-family: var(--jp);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.45;
  margin: 0 0 14px;
  letter-spacing: 0.01em;
}
.bonus p {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-mute);
  margin: 0;
}
.bonus-tag {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  text-transform: uppercase;
}
@media (max-width: 820px) {
  .bonuses { grid-template-columns: 1fr; }
  .bonus { border-right: none; }
}

/* ─────────────── Event details ─────────────── */

.details-table {
  display: grid;
  grid-template-columns: 200px 1fr;
  border-top: 1px solid var(--rule-strong);
}
.details-table .row {
  display: contents;
}
.details-table dt,
.details-table dd {
  margin: 0;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}
.details-table dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.details-table dd {
  font-family: var(--jp);
  font-size: 18px;
  letter-spacing: 0.01em;
  color: var(--ink);
  font-weight: 500;
}
.details-table dd .sub {
  display: block;
  font-family: var(--jp-sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-mute);
  margin-top: 4px;
  letter-spacing: 0.02em;
}
@media (max-width: 820px) {
  .details-table { grid-template-columns: 120px 1fr; }
  .details-table dd { font-size: 16px; }
}

/* ─────────────── Final CTA ─────────────── */

.final {
  text-align: center;
  padding: 160px 0 200px;
  background: linear-gradient(180deg, #0c0b09 0%, #1a1612 100%);
  color: #f4f1ea;
  --rule: rgba(244,241,234,0.22);
  --rule-strong: rgba(244,241,234,0.6);
  --ink: #f4f1ea;
  --ink-2: rgba(244,241,234,0.95);
  --ink-mute: rgba(244,241,234,0.78);
  border-top: none;
  position: relative;
}
.final::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, color-mix(in srgb, var(--accent) 18%, transparent) 0%, transparent 55%);
  pointer-events: none;
}
[data-theme="dark"] .final {
  background: linear-gradient(180deg, var(--bg-elev) 0%, #0c0b09 100%);
}
.final .hero-title { color: #f4f1ea; }
.final .seats {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  display: inline-flex;
  gap: 16px;
  font-weight: 600;
}
.final .seats .pulse {
  position: relative;
  padding-left: 14px;
}
.final .seats .pulse::before {
  content: "";
  position: absolute;
  left: 0; top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, #ff5b1f 70%, transparent); }
  70%  { box-shadow: 0 0 0 12px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.final-h {
  font-family: var(--jp);
  font-weight: 600;
  font-size: clamp(32px, 5vw, 72px);
  line-height: 1.2;
  margin: 0 0 32px;
  color: #f4f1ea;
}
.final-sub {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f4f1ea;
  margin-bottom: 48px;
  font-weight: 500;
}
.final-sub .dot { color: var(--accent); margin: 0 12px; opacity: 0.7; }

.guarantee-row {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244,241,234,0.85);
  font-weight: 500;
}
.guarantee-row span::before {
  content: "✓";
  color: var(--accent);
  margin-right: 8px;
  font-weight: 700;
}

/* ─────────────── Footer bar ─────────────── */

.footerbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  background: var(--ink);
  color: var(--bg);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 14px 24px 14px 32px;
  gap: 18px;
  border-top: 1px solid rgba(244,241,234,0.08);
  transform: translateY(110%);
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.footerbar.show { transform: none; }
.footerbar .info {
  display: flex;
  align-items: center;
  gap: 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244,241,234,0.7);
  overflow: hidden;
  white-space: nowrap;
  min-width: 0;
}
.footerbar .info > span {
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.footerbar .info .brand { color: #f4f1ea; font-weight: 600; flex-shrink: 0; }
.footerbar .info .warn { color: var(--accent); }
.footerbar .footerbar-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  background: var(--accent);
  color: #0c0b09;
  font-family: var(--jp-sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  transition: background .2s ease, transform .2s ease;
}
.footerbar .footerbar-cta:hover {
  background: #f4f1ea;
  transform: translateX(2px);
}
@media (max-width: 980px) {
  .footerbar { padding: 12px 18px; gap: 14px; }
  .footerbar .info { gap: 14px; font-size: 10px; }
}
@media (max-width: 720px) {
  .footerbar .info { gap: 10px; font-size: 10px; }
  .footerbar .info .hide-sm { display: none; }
  .footerbar { padding: 10px 14px; }
  .footerbar .footerbar-cta { padding: 12px 16px; font-size: 12px; }
}
@media (max-width: 480px) {
  .footerbar {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px 14px 12px;
    text-align: center;
  }
  .footerbar .info { justify-content: center; }
  .footerbar .footerbar-cta {
    width: 100%;
    justify-content: center;
    padding: 12px 14px;
  }
}

/* ─────────────── Footer ─────────────── */

.foot {
  padding-block: 60px 140px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.foot.shell { padding-inline: 64px; }
.foot .marks { display: flex; align-items: center; gap: 14px; }
.foot .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
}

@media (max-width: 1100px) {
  .foot.shell { padding-inline: 40px; }
}
@media (max-width: 820px) {
  .foot {
    padding-block: 48px 160px;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    text-align: left;
  }
  .foot.shell { padding-inline: 24px; }
  .foot .foot-logos { gap: 10px; }
}
