/* ==========================================================
   Guide page styles
   ========================================================== */

/* STEP FLOW */
.flow { background: var(--bg); }
.flow-head { text-align: center; max-width: 700px; margin: 0 auto 56px; }
.flow-head .lede { margin-left: auto; margin-right: auto; }
.flow-head .lede strong {
  background: linear-gradient(transparent 60%, color-mix(in oklab, var(--accent-soft) 55%, transparent) 60%);
  padding: 0 2px; color: var(--ink);
}

.stepper {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.step-pill {
  flex: 1; min-width: 140px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 20px 12px;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  transition: all 0.25s;
  cursor: pointer;
}
.step-pill:hover { border-color: var(--accent-soft); }
.step-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFCF7;
  transform: translateY(-4px);
  box-shadow: 0 4px 0 var(--accent-ink), var(--shadow-soft);
}
.step-pill-num {
  font-family: "Klee One", serif; font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--accent-ink);
}
.step-pill.active .step-pill-num { color: #FFFCF7; }
.step-pill-label {
  font-family: "Noto Serif JP", serif; font-weight: 500;
  font-size: 14px; letter-spacing: 0.08em;
}
.step-line {
  flex: 0 0 30px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px);
}

.step-panels { position: relative; }
.step-panel {
  display: none;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-soft);
  padding: clamp(28px, 4vw, 48px);
  grid-template-columns: 180px 1fr;
  gap: 40px;
  animation: stepFade 0.4s ease;
}
.step-panel.active { display: grid; }
@keyframes stepFade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.step-panel-left {
  border-right: 1px dashed var(--line);
  padding-right: 30px;
  display: flex; flex-direction: column; gap: 8px;
}
.step-big-num {
  font-size: 96px; color: var(--accent);
  line-height: 1; letter-spacing: 0.02em;
}
.step-time {
  font-size: 12px; color: var(--ink-muted);
  letter-spacing: 0.1em;
  font-family: "JetBrains Mono", monospace;
  background: var(--bg-2);
  padding: 4px 10px; border-radius: var(--radius-pill);
  display: inline-block; align-self: flex-start;
}
.step-panel-body h3 {
  font-family: "Noto Serif JP", serif; font-weight: 500;
  font-size: clamp(22px, 2.8vw, 28px);
  margin: 0 0 16px; letter-spacing: 0.05em;
  line-height: 1.5;
}
.step-panel-body > p {
  color: var(--ink-soft); font-size: 15px; line-height: 1.95;
  margin: 0 0 18px;
}
.step-points {
  list-style: none; padding: 0; margin: 0 0 20px;
  display: flex; flex-direction: column; gap: 8px;
}
.step-points li {
  font-size: 14px; line-height: 1.8; padding-left: 20px; position: relative;
  color: var(--ink);
}
.step-points li::before {
  content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700;
}
.step-tip {
  background: color-mix(in oklab, var(--accent-soft) 25%, var(--bg-2));
  color: var(--accent-ink);
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.6;
}

/* FEES */
.fees { background: var(--bg-2); }
.fees-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.fees-head .lede { margin-left: auto; margin-right: auto; }

.fees-tabs {
  display: flex; gap: 6px;
  background: var(--surface);
  padding: 6px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  max-width: 460px; margin: 0 auto 32px;
}
.fees-tab {
  flex: 1; padding: 14px 20px;
  border: 0; background: transparent; color: var(--ink-soft);
  border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.04em;
  transition: all 0.2s;
}
.fees-tab.active {
  background: var(--accent); color: #FFFCF7;
  box-shadow: var(--shadow-soft);
}

.fees-body {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  padding: clamp(24px, 3vw, 40px);
  box-shadow: var(--shadow-soft);
}
.fees-panel { display: none; }
.fees-panel.active { display: block; animation: stepFade 0.3s ease; }

.fees-table {
  display: grid;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.fees-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
}
.fees-row:last-child { border-bottom: 0; }
.fees-row > div { padding: 16px 20px; font-size: 14px; display: flex; align-items: center; }
.fees-row--head {
  background: var(--bg-2); font-weight: 600;
  color: var(--accent-ink);
  font-size: 12.5px !important;
  letter-spacing: 0.06em;
}
.fees-row--head > div { padding-top: 14px; padding-bottom: 14px; font-size: 12.5px; }
.fees-row:not(.fees-row--head):hover { background: color-mix(in oklab, var(--bg-2) 50%, transparent); }
.fee-val {
  font-family: "Noto Serif JP", serif; font-weight: 500;
  color: var(--accent-ink);
}

.fees-note {
  margin-top: 20px;
  padding: 18px 22px;
  background: var(--bg);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent-soft);
}
.fees-note p { margin: 0; font-size: 13px; color: var(--ink-soft); line-height: 1.85; }

.fees-free {
  margin-top: 40px;
  text-align: center;
  padding: 32px;
  border-top: 1px dashed var(--line);
}
.fees-free h4 {
  font-family: "Noto Serif JP", serif; font-weight: 500;
  font-size: 20px; margin: 0 0 10px; letter-spacing: 0.05em;
}
.fees-free p { color: var(--ink-soft); margin: 0 0 20px; font-size: 14.5px; }

/* FAQ */
.faq { background: var(--bg); }
.faq-inner {
  display: grid; grid-template-columns: 320px 1fr;
  gap: 60px; align-items: start;
}
.faq-head { position: sticky; top: 100px; }
.faq-head .section-title { margin-bottom: 16px; }

.faq-list {
  display: flex; flex-direction: column; gap: 12px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.faq-item.open { box-shadow: var(--shadow-soft); border-color: var(--accent-soft); }
.faq-q {
  width: 100%;
  display: grid;
  grid-template-columns: 32px 1fr 24px;
  gap: 16px; align-items: center;
  background: transparent; border: 0;
  padding: 22px 24px;
  text-align: left;
  font-size: 15.5px;
  color: var(--ink);
  line-height: 1.6;
  font-weight: 500;
  transition: background 0.2s;
}
.faq-q:hover { background: var(--bg-2); }
.faq-q-icon {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-ink);
  font-family: "Noto Serif JP", serif;
  font-weight: 500; font-size: 15px;
  display: grid; place-items: center;
  letter-spacing: 0;
}
.faq-q-text {
  font-family: "Noto Serif JP", serif; font-weight: 500;
  letter-spacing: 0.03em;
}
.faq-chev {
  width: 12px; height: 12px;
  border-right: 2px solid var(--ink-soft);
  border-bottom: 2px solid var(--ink-soft);
  transform: rotate(45deg);
  transition: transform 0.25s;
  justify-self: center;
}
.faq-item.open .faq-chev { transform: rotate(-135deg) translate(-3px, -3px); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-item.open .faq-a { max-height: 400px; }
.faq-a p {
  padding: 0 24px 24px 72px;
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.95;
}

/* Responsive */
@media (max-width: 960px) {
  .step-line { display: none; }
  .step-pill { min-width: 100px; }
  .step-panel.active { grid-template-columns: 1fr; }
  .step-panel-left { border-right: 0; border-bottom: 1px dashed var(--line); padding-right: 0; padding-bottom: 20px; flex-direction: row; align-items: center; gap: 20px; }
  .step-big-num { font-size: 60px; }
  .faq-inner { grid-template-columns: 1fr; }
  .faq-head { position: static; }
}
@media (max-width: 560px) {
  .fees-row, .fees-row--head { grid-template-columns: 1.2fr 1fr; gap: 0; }
  .fees-row > div:nth-child(2) { display: none; }
  .fees-row > div:nth-child(4) { display: none; }
  .stepper { flex-wrap: wrap; }
  .step-pill { flex: 1 1 45%; }
  .faq-a p { padding-left: 24px; }
}
