/* =========================================================
   Components & page sections
   ========================================================= */

/* ============ HERO (top page) ============ */
.hero { padding: 64px 0 40px; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--paper-2); border: 1px solid var(--line);
  padding: 8px 16px 8px 8px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 700; color: var(--ink-soft);
}
.hero-badge .freechip {
  background: var(--green); color: #fff; font-weight: 900; font-size: 12px;
  letter-spacing: .04em; padding: 5px 13px; border-radius: var(--r-pill);
  box-shadow: 0 4px 12px rgba(0,181,116,.32);
}
.hero-badge .av {
  width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-family: var(--font-num); font-weight: 800; font-size: 12px;
}
.hero h1 {
  font-size: clamp(38px, 6.4vw, 74px); line-height: 1.12; margin: 22px 0 0;
  letter-spacing: -.01em;
}
.hero h1 .hl { color: var(--tangerine); }
.hero h1 .num { font-family: var(--font-num); }
.hero-sub { font-size: 19px; color: var(--ink-soft); margin: 24px 0 0; max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-meta { display: flex; gap: 28px; margin-top: 36px; flex-wrap: wrap; }
.hero-meta .hm { }
.hero-meta .hm b { font-family: var(--font-num); font-size: 30px; font-weight: 800; display: block; line-height: 1; }
.hero-meta .hm span { font-size: 13px; color: var(--ink-soft); font-weight: 600; }

/* floating money cards in hero visual */
.hero-visual { position: relative; min-height: 460px; }
.hero-photo {
  position: absolute; inset: 8% 6% 8% 10%;
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  background: var(--paper-2);
}
.float-card {
  position: absolute; background: #fff; border-radius: var(--r-md);
  box-shadow: var(--shadow-md); padding: 16px 18px; border: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px;
  animation: floaty 6s ease-in-out infinite;
}
.float-card .fc-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; flex: none; }
.float-card b { font-family: var(--font-num); font-size: 20px; font-weight: 800; display: block; line-height: 1.1; }
.float-card small { font-size: 12px; color: var(--ink-soft); font-weight: 600; }
.float-1 { top: 2%; right: -2%; animation-delay: 0s; }
.float-2 { bottom: 18%; left: -6%; animation-delay: 1.2s; }
.float-3 { bottom: -2%; right: 8%; animation-delay: 2.4s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .float-card { animation: none; } }

/* ============ STAT STRIP ============ */
.stripe { background: var(--ink); color: var(--paper); padding: 30px 0; }
.stripe-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stripe .s b { font-family: var(--font-num); font-size: clamp(30px,4vw,46px); font-weight: 800; line-height: 1; display: block; }
.stripe .s .u { font-size: 15px; opacity: .55; font-weight: 700; }
.stripe .s span { display: block; font-size: 13px; color: #b9aea3; margin-top: 8px; font-weight: 600; }
.stripe .s .pos { color: #4ade9c; }

/* ============ COURSE OUTLINE CARDS ============ */
.outline-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.olc {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px; text-decoration: none; color: var(--ink); transition: .2s; position: relative; overflow: hidden;
}
.olc:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.olc .n { font-family: var(--font-num); font-weight: 800; font-size: 13px; color: var(--ink-soft); letter-spacing: .1em; }
.olc h3 { font-size: 21px; margin: 14px 0 10px; }
.olc p { font-size: 14px; color: var(--ink-soft); margin: 0; }
.olc .ic { font-size: 30px; position: absolute; top: 24px; right: 24px; }
.olc .arr { margin-top: 18px; font-weight: 800; color: var(--tangerine-ink); font-size: 14px; }

/* ============ STEPS (how to start) ============ */
.steps { display: grid; gap: 18px; margin-top: 44px; }
.step {
  display: grid; grid-template-columns: 64px 1fr; gap: 22px; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 28px;
}
.step .sn {
  width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center;
  font-family: var(--font-num); font-weight: 800; font-size: 26px; color: #fff;
}
.step h3 { font-size: 20px; margin: 0 0 6px; }
.step p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ============ SIMULATOR ============ */
.sim {
  background: var(--ink); color: var(--paper); border-radius: var(--r-lg); overflow: hidden;
  display: grid; grid-template-columns: 380px 1fr;
}
.sim-controls { padding: 40px; background: #2a2420; }
.sim-controls h3 { color: #fff; font-size: 22px; margin: 0 0 4px; }
.sim-controls .lead { color: #b9aea3; font-size: 14px; margin: 0 0 28px; }
.ctrl { margin-bottom: 26px; }
.ctrl-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.ctrl-top label { font-size: 14px; font-weight: 700; color: #d8cfc6; }
.ctrl-top .out { font-family: var(--font-num); font-weight: 800; font-size: 22px; color: #fff; white-space: nowrap; }
input[type=range] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 99px;
  background: rgba(255,255,255,.16); outline: none; cursor: pointer;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--tangerine); border: 4px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.4); cursor: grab;
}
input[type=range]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--tangerine); border: 4px solid #fff; cursor: grab;
}
.rate-row { display: flex; gap: 8px; }
.rate-btn {
  flex: 1; background: rgba(255,255,255,.08); color: #d8cfc6; border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px; padding: 12px 6px; cursor: pointer; font-family: var(--font-jp); font-weight: 700; font-size: 13px;
  transition: .15s; text-align: center;
}
.rate-btn b { display: block; font-family: var(--font-num); font-size: 18px; }
.rate-btn.on { background: var(--green); border-color: var(--green); color: #fff; }
.sim-hint { font-size: 12px; color: #877b70; margin-top: 6px; line-height: 1.6; }

.sim-result { padding: 40px; display: flex; flex-direction: column; }
.sim-chart { flex: 1; display: flex; align-items: flex-end; gap: 8px; min-height: 220px; padding-bottom: 8px; }
.cp-bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.cp-bar-stack {
  width: 100%; max-width: 38px; background: rgba(255,255,255,.22); border-radius: 7px 7px 3px 3px;
  display: flex; flex-direction: column; justify-content: flex-start; transition: height .5s cubic-bezier(.2,.7,.2,1); position: relative; overflow: hidden;
}
.cp-bar-grow { width: 100%; background: var(--green); transition: height .5s cubic-bezier(.2,.7,.2,1); }
.cp-bar span { font-size: 11px; color: #877b70; font-family: var(--font-num); font-weight: 600; }
.sim-totals { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 26px; }
.sim-totals .t small { font-size: 12px; color: #b9aea3; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.sim-totals .t b { font-family: var(--font-num); font-size: clamp(20px,2.4vw,30px); font-weight: 800; display: block; margin-top: 6px; }
.sim-totals .t .dot { width: 9px; height: 9px; border-radius: 3px; }
.sim-totals .grow b { color: #4ade9c; }
.sim-legend { display: flex; gap: 20px; font-size: 12px; color: #b9aea3; margin-bottom: 16px; font-weight: 600; }
.sim-legend span { display: inline-flex; align-items: center; gap: 7px; }
.sim-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* ============ NISA diagram ============ */
.nisa-box {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 36px;
}
.nisa-bars { display: grid; gap: 18px; margin-top: 8px; }
.nisa-bar { }
.nisa-bar .lab { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.nisa-bar .lab b { font-size: 16px; }
.nisa-bar .lab .amt { font-family: var(--font-num); font-weight: 800; font-size: 22px; }
.nisa-track { height: 46px; border-radius: 12px; background: var(--paper-2); position: relative; overflow: hidden; }
.nisa-fill { height: 100%; border-radius: 12px; display: flex; align-items: center; padding: 0 16px; color: #fff; font-weight: 800; font-size: 13px; }
.nisa-total {
  margin-top: 22px; padding: 20px 24px; border-radius: 16px; background: var(--green-tint);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.nisa-total b { font-family: var(--font-num); font-size: 28px; color: var(--green-ink); }
.nisa-tax {
  display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff;
  padding: 8px 16px; border-radius: 99px; font-weight: 800; font-size: 14px;
}

/* ============ YEN CHART ============ */
.yen {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 36px;
}
.yen-readout { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px; margin-bottom: 26px; }
.yen-readout .big { }
.yen-readout .big .yr { font-size: 14px; color: var(--ink-soft); font-weight: 800; }
.yen-readout .big .rate { font-family: var(--font-num); font-weight: 800; font-size: clamp(34px,5vw,52px); line-height: 1; color: var(--tangerine); white-space: nowrap; }
.yen-readout .worth { text-align: right; background: var(--tan-tint); border-radius: 14px; padding: 14px 20px; }
.yen-readout .worth small { font-size: 12px; color: var(--tangerine-ink); font-weight: 800; display: block; }
.yen-readout .worth b { font-family: var(--font-num); font-size: 26px; font-weight: 800; }
.yen-scale { position: relative; height: 14px; border-radius: 99px; background: linear-gradient(90deg, #00b574, #f5b300, #ff5630); margin: 40px 0 10px; }
.yen-needle { position: absolute; top: -12px; transform: translateX(-50%); transition: left .25s cubic-bezier(.2,.7,.2,1); }
.yen-needle .pin { width: 4px; height: 38px; background: var(--ink); border-radius: 99px; margin: 0 auto; }
.yen-needle .pin::before { content: ""; display: block; width: 16px; height: 16px; background: var(--ink); border: 3px solid #fff; border-radius: 50%; position: absolute; top: -8px; left: 50%; transform: translateX(-50%); box-shadow: var(--shadow-sm); }
.yen-scale-labels { display: flex; justify-content: space-between; font-family: var(--font-num); font-size: 12px; color: var(--ink-soft); font-weight: 700; }
.yen-note { margin-top: 22px; color: var(--ink-soft); font-size: 15px; font-weight: 600; min-height: 1.6em; }
.yen-foot { margin-top: 8px; font-size: 13px; color: var(--ink-soft); }

/* ============ COMPARE infographic (iPhone / gold) ============ */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 44px; }
.cmp {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; position: relative; overflow: hidden;
}
.cmp h3 { font-size: 20px; display: flex; align-items: center; gap: 10px; }
.cmp h3 .ic { font-size: 26px; }
.cmp-rows { display: grid; gap: 16px; margin: 26px 0; }
.cmp-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 14px; }
.cmp-row .when { font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.cmp-row .jpy { font-family: var(--font-num); font-weight: 800; font-size: 22px; }
.cmp-row .usd { font-family: var(--font-num); font-weight: 700; font-size: 13px; color: var(--ink-soft); background: var(--paper-2); padding: 4px 10px; border-radius: 99px; }
.cmp-bar-track { height: 12px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.cmp-bar-fill { height: 100%; border-radius: 99px; }
.cmp-callout { margin-top: 18px; padding: 16px 18px; border-radius: 14px; font-size: 14px; font-weight: 700; line-height: 1.6; }
.cmp-callout.up { background: var(--gold-tint); color: #8a6500; }
.cmp-callout.flat { background: var(--blue-tint); color: var(--blue-ink); }
.cmp .pct { font-family: var(--font-num); font-weight: 800; }

/* ============ DONUT diversify ============ */
.donut-wrap { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: center; }
.donut-stage { display: grid; place-items: center; }
.donut {
  width: 280px; height: 280px; border-radius: 50%; position: relative;
  background: conic-gradient(var(--tangerine) 0 100%); transition: background .5s; box-shadow: var(--shadow-md);
}
.donut::after {
  content: ""; position: absolute; inset: 26%; background: var(--paper); border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line);
}
.donut-center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; z-index: 2; }
.donut-center small { font-size: 12px; color: var(--ink-soft); font-weight: 800; }
.donut-center b { font-family: var(--font-num); font-size: 18px; display: block; }
.donut-tabs { display: inline-flex; background: var(--paper-2); border-radius: 99px; padding: 5px; margin-bottom: 30px; gap: 4px; }
.donut-tabs button {
  border: none; background: transparent; padding: 11px 22px; border-radius: 99px; cursor: pointer;
  font-family: var(--font-jp); font-weight: 800; font-size: 14px; color: var(--ink-soft); transition: .15s;
}
.donut-tabs button.on { background: var(--ink); color: #fff; box-shadow: var(--shadow-sm); }
.donut-legend { display: grid; gap: 12px; }
.lg-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.lg-dot { width: 14px; height: 14px; border-radius: 5px; }
.lg-name { font-size: 15px; font-weight: 600; }
.lg-row b { font-size: 17px; }
.donut-verdict { margin-top: 22px; padding: 16px 20px; border-radius: 14px; font-weight: 700; font-size: 15px; line-height: 1.6; }
.donut-verdict.bad { background: var(--tan-tint); color: var(--tangerine-ink); }
.donut-verdict.good { background: var(--green-tint); color: var(--green-ink); }

/* ============ S&P examples ============ */
.spx-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 44px; }
.spx {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; text-align: center; position: relative; overflow: hidden;
}
.spx .badge { display: inline-block; font-size: 12px; font-weight: 800; padding: 6px 14px; border-radius: 99px; background: var(--paper-2); color: var(--ink-soft); margin-bottom: 18px; }
.spx .invested { font-size: 14px; color: var(--ink-soft); font-weight: 700; }
.spx .arrow { font-size: 22px; color: var(--green); margin: 8px 0; }
.spx .result { font-family: var(--font-num); font-weight: 800; font-size: 38px; line-height: 1; }
.spx .result.up { color: var(--green-ink); }
.spx .gain { display: inline-block; margin-top: 12px; font-family: var(--font-num); font-weight: 800; font-size: 14px; color: #fff; background: var(--green); padding: 5px 14px; border-radius: 99px; }
.spx .ticker { font-size: 13px; color: var(--ink-soft); margin-top: 14px; }

/* ============ QUOTE block ============ */
.quote {
  background: var(--ink); color: var(--paper); border-radius: var(--r-lg); padding: 56px 48px; position: relative; overflow: hidden;
}
.quote .qm { font-family: var(--font-num); font-size: 120px; line-height: .6; color: rgba(255,255,255,.12); position: absolute; top: 30px; left: 36px; }
.quote blockquote { font-size: clamp(22px,3.2vw,34px); font-weight: 900; line-height: 1.55; margin: 0; position: relative; }
.quote blockquote .hl { color: #ffb39e; }
.quote cite { display: flex; align-items: center; gap: 14px; margin-top: 30px; font-style: normal; }
.quote cite .av { width: 48px; height: 48px; border-radius: 50%; background: var(--tangerine); display: grid; place-items: center; font-family: var(--font-num); font-weight: 800; }
.quote cite b { font-size: 15px; display: block; }
.quote cite span { font-size: 13px; color: #b9aea3; }

/* ============ FINAL CTA ============ */
.finalcta { background: var(--tangerine); color: #fff; border-radius: var(--r-lg); padding: 64px 48px; text-align: center; position: relative; overflow: hidden; }
.finalcta h2 { font-size: clamp(30px,5vw,52px); margin: 0 0 16px; }
.finalcta p { font-size: 18px; opacity: .95; margin: 0 auto 32px; max-width: 32em; }
.finalcta .btn-ink { background: #fff; color: var(--tangerine-ink); }
.finalcta .btn-ink:hover { background: var(--ink); color: #fff; }
.finalcta .fine { margin-top: 22px; font-size: 13px; opacity: .8; }
.finalcta .coin { position: absolute; font-size: 60px; opacity: .18; }

/* ============ ABOUT page ============ */
.about-hero { padding: 56px 0 40px; }
.about-hero-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.about-portrait { aspect-ratio: 4/5; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.about-hero h1 { font-size: clamp(34px,5.4vw,60px); margin: 18px 0; line-height: 1.14; }
.about-hero .role { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0 0; }
.about-hero .role .tagpill { background: var(--paper-2); color: var(--ink); border: 1px solid var(--line); }
.about-lead { font-size: 18px; color: var(--ink-soft); }

.story { display: grid; gap: 0; max-width: 760px; margin: 0 auto; }
.story-item { display: grid; grid-template-columns: 120px 1fr; gap: 32px; padding: 0 0 44px; position: relative; }
.story-item::before { content: ""; position: absolute; left: 60px; top: 12px; bottom: -12px; width: 2px; background: var(--line); }
.story-item:last-child::before { display: none; }
.story-year { font-family: var(--font-num); font-weight: 800; font-size: 15px; color: var(--tangerine-ink); position: relative; }
.story-year::after { content: ""; position: absolute; right: -32px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--tangerine); border: 3px solid var(--paper); box-shadow: 0 0 0 2px var(--tangerine); }
.story-body h3 { font-size: 21px; margin: 0 0 10px; }
.story-body p { margin: 0; color: var(--ink-soft); font-size: 16px; }

.pillars { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 44px; }
.pillar { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; }
.pillar .ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; margin-bottom: 18px; }
.pillar h3 { font-size: 19px; margin: 0 0 10px; }
.pillar p { margin: 0; font-size: 15px; color: var(--ink-soft); }

.factbox { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border-radius: var(--r-lg); overflow: hidden; margin-top: 40px; }
.factbox .f { background: #fff; padding: 30px; text-align: center; }
.factbox .f b { font-family: var(--font-num); font-size: 34px; font-weight: 800; display: block; line-height: 1; }
.factbox .f span { font-size: 13px; color: var(--ink-soft); font-weight: 600; }

/* ============ section bg variants ============ */
.bg-cream { background: var(--paper-2); }
.bg-ink { background: var(--ink); color: var(--paper); }

/* ============ RESPONSIVE ============ */
@media (max-width: 920px) {
  .hero-grid, .about-hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 340px; order: -1; }
  .sim { grid-template-columns: 1fr; }
  .donut-wrap { grid-template-columns: 1fr; gap: 32px; }
  .donut-stage { order: -1; }
  .outline-grid, .spx-grid, .pillars, .compare-grid { grid-template-columns: 1fr; }
  .stripe-grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .factbox { grid-template-columns: 1fr; }
  .story-item { grid-template-columns: 84px 1fr; gap: 20px; }
  .story-item::before { left: 42px; }
  .story-year::after { right: -23px; }
}
@media (max-width: 560px) {
  .hero-meta { gap: 18px; }
  .stripe-grid { grid-template-columns: 1fr 1fr; }
  .donut { width: 220px; height: 220px; }
}
