/* FXDPRO – Base styles */
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Inter', -apple-system, sans-serif; background: #0a0a0c; color: #fff; line-height: 1.5; }
.dash-body { min-height: 100vh; }
.dash-header { display: flex; justify-content: space-between; align-items: center; padding: 8px 20px; border-bottom: 1px solid rgba(255,255,255,0.06); background: rgba(0,0,0,0.2); }
.logo { font-weight: 900; font-size: 1.25rem; color: #fff; text-decoration: none; letter-spacing: -0.02em; }
.logo span { color: #10b981; }
.account-nav a { color: #888; text-decoration: none; margin-left: 20px; font-size: 14px; }
.account-nav a:hover, .account-nav a.active { color: #fff; }
.account-nav-fixed { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-left: 0; }
.account-nav-fixed .nav-btn { margin-left: 0; min-width: 48px; text-align: center; padding: 6px 10px; border-radius: 6px; font-size: 13px; }
.account-nav-fixed .nav-btn:hover { background: rgba(255,255,255,0.06); }
.account-nav-fixed .nav-btn-text { color: #666; cursor: default; }
.account-nav-fixed .nav-btn-text:hover { background: transparent; }
.account-nav-fixed .nav-btn-signup { margin-left: 0; min-width: 80px; padding: 6px 14px !important; font-size: 13px; }
.input-dark { width: 100%; padding: 12px 16px; background: #000; border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; color: #fff; font-size: 14px; }
.input-dark:focus { outline: none; border-color: #10b981; }
a { color: #10b981; }
a:hover { text-decoration: underline; }
button { font-family: inherit; }

/* Landing sections */
.lp-hero { min-height: 40vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 32px 20px 40px; }
.lp-hero h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 900; margin: 0 0 12px; letter-spacing: -0.03em; line-height: 1.15; }
.lp-hero p { font-size: 1rem; color: #888; max-width: 520px; margin: 0 0 20px; }
.lp-cta { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.btn-primary { padding: 14px 28px; background: #10b981; color: #000; font-weight: 700; border: none; border-radius: 10px; font-size: 1rem; cursor: pointer; text-decoration: none; display: inline-block; }
.btn-primary:hover { background: #0ea572; }
.btn-secondary { padding: 14px 28px; background: transparent; color: #fff; font-weight: 600; border: 2px solid rgba(255,255,255,0.3); border-radius: 10px; font-size: 1rem; cursor: pointer; text-decoration: none; display: inline-block; }
.btn-secondary:hover { border-color: #10b981; color: #10b981; }
.lp-cta-fixed { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; align-items: center; }
.btn-lp-nav { min-width: 72px; width: 72px; padding: 12px 16px; border-radius: 10px; font-size: 12px; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer; transition: all 0.2s; box-sizing: border-box; }
.btn-lp-fx { background: rgba(0,255,157,0.1); border: 2px solid rgba(0,255,157,0.4); color: #00ff9d; }
.btn-lp-fx:hover { background: rgba(0,255,157,0.2); border-color: #00ff9d; }
.btn-lp-crypto { background: rgba(255,140,66,0.1); border: 2px solid rgba(255,140,66,0.4); color: #ff8c42; }
.btn-lp-crypto:hover { background: rgba(255,140,66,0.2); border-color: #ff8c42; }
.btn-lp-gold { background: rgba(255,215,0,0.1); border: 2px solid rgba(255,215,0,0.4); color: #ffd700; }
.btn-lp-gold:hover { background: rgba(255,215,0,0.2); border-color: #ffd700; }
.btn-fixed { min-width: 120px; text-align: center; }
.product-grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.lp-footer-nav, .lp-footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; width: 100%; }
.lp-footer-legal { margin-top: 8px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.06); }

.lp-section { max-width: 1100px; margin: 0 auto; padding: 40px 20px 48px; }
.lp-section h2 { font-size: 1.6rem; font-weight: 800; margin: 0 0 20px; text-align: center; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.product-card { background: #111114; border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; padding: 20px; transition: border-color 0.2s; }
.product-card:hover { border-color: rgba(255,255,255,0.15); }
.product-card.featured { border-color: #10b981; box-shadow: 0 0 0 1px #10b981; }
.product-card h3 { font-size: 1.1rem; margin: 0 0 8px; }
.product-card p { color: #888; font-size: 13px; margin: 0 0 14px; line-height: 1.45; }
.product-card .btn-primary { width: 100%; text-align: center; padding: 10px 16px; font-size: 0.9rem; }

.lp-footer { border-top: 1px solid rgba(255,255,255,0.06); padding: 12px 24px 48px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 16px; color: #666; font-size: 12px; }
.lp-footer a { color: #888; text-decoration: none; cursor: pointer; }
.lp-footer a:hover { color: #10b981; text-decoration: underline; }
.lp-footer p { width: 100%; margin: 12px 0 0; text-align: center; }

.lp-section-compact { padding-top: 24px; padding-bottom: 32px; }
.lp-section-compact h2 { margin-bottom: 12px; }

/* LP Demo – user dashboard preview */
.lp-demo-section { padding-bottom: 48px; }
.lp-demo-frame { background: #111114; border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lp-demo-frame-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: rgba(0,0,0,0.4); border-bottom: 1px solid rgba(255,255,255,0.06); }
.lp-demo-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.2); }
.lp-demo-dot:nth-child(1) { background: #ef4444; }
.lp-demo-dot:nth-child(2) { background: #f59e0b; }
.lp-demo-dot:nth-child(3) { background: #10b981; }
.lp-demo-url { margin-left: 12px; font-size: 12px; color: #666; font-family: 'JetBrains Mono', monospace; }
.lp-demo-iframe { display: block; width: 100%; height: 420px; border: none; background: #0a0a0c; }
.lp-demo-compact-frame { max-width: 420px; margin: 0 auto; }
.lp-demo-frame-wide { max-width: 900px; margin: 0 auto; }
.lp-demo-frame-wide .lp-demo-inline { padding: 20px 24px; min-height: 260px; }
.lp-demo-frame-wide .mock-sym { font-size: 28px; margin-bottom: 16px; }
.lp-demo-frame-wide .mock-grid { gap: 20px; }
.lp-demo-frame-wide .mock-panel { padding: 18px 22px; }
.lp-demo-frame-wide .mock-label { font-size: 10px; margin-bottom: 10px; }
.lp-demo-frame-wide .mock-hm-row { margin-bottom: 10px; font-size: 12px; }
.lp-demo-frame-wide .mock-tf { width: 36px; }
.lp-demo-frame-wide .mock-bar-bg { height: 8px; }
.lp-demo-frame-wide .mock-conf { font-size: 32px; }
.lp-demo-frame-wide .mock-conf-bar { height: 6px; margin-top: 6px; }
.lp-demo-frame-wide .mock-w-item { font-size: 12px; padding: 6px 0; }
.lp-demo-desc { text-align: center; color: #888; font-size: 14px; line-height: 1.6; max-width: 640px; margin: 20px auto 0; }
.lp-demo-iframe-compact { height: 240px; }
.lp-demo-notice { text-align: center; color: #888; margin: 0 auto 16px; font-size: 13px; max-width: 520px; line-height: 1.5; }

/* Inline dashboard mock (no iframe) */
.lp-demo-inline { background: #0a0a0c; padding: 14px 16px; min-height: 200px; --accent: #00ff9d; }
.lp-demo-inline[data-asset="crypto"] { --accent: #ff8c42; }
.lp-demo-inline[data-asset="gold"] { --accent: #ffd700; }
.lp-demo-inline .mock-sym { font-size: 20px; font-weight: 900; letter-spacing: -1px; margin: 0 0 10px; color: var(--accent); display: flex; align-items: center; gap: 6px; }
.lp-demo-inline .mock-live { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: lp-blink 1.5s ease-in-out infinite; }
.lp-demo-inline .mock-grid { display: grid; grid-template-columns: 1fr 0.6fr; gap: 10px; }
.lp-demo-inline .mock-panel { background: #111114; border: 1px solid rgba(255,255,255,0.06); border-radius: 8px; padding: 10px 12px; }
.lp-demo-inline .mock-label { font-size: 8px; font-weight: 700; color: #666; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.lp-demo-inline .mock-hm-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 10px; }
.lp-demo-inline .mock-tf { font-family: 'JetBrains Mono', monospace; font-weight: 700; width: 28px; }
.lp-demo-inline .mock-bar-bg { flex: 1; height: 6px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden; }
.lp-demo-inline .mock-bar-fill { height: 100%; border-radius: 2px; background: var(--accent); }
.lp-demo-inline .mock-conf { font-size: 22px; font-weight: 900; color: var(--accent); line-height: 1; }
.lp-demo-inline .mock-conf-bar { height: 4px; background: rgba(255,255,255,0.06); border-radius: 2px; margin-top: 4px; overflow: hidden; }
.lp-demo-inline .mock-w-item { display: flex; justify-content: space-between; padding: 4px 0; font-size: 10px; border-bottom: 1px solid rgba(255,255,255,0.03); }
.lp-demo-inline .mock-w-item:last-child { border-bottom: none; }
.lp-demo-inline .mock-foot { text-align: center; margin-top: 8px; font-size: 9px; color: #555; }
@keyframes lp-blink { 0%,100%{opacity:1} 50%{opacity:0.4} }

/* User pages (after login): no header, no footer */
body.user-page .dash-header,
body.user-page .hub-header,
body.user-page .hub-footer-wrap,
body.user-page header[class*="hub"] { display: none !important; }
body.user-page .main-stage { padding-top: 24px !important; padding-bottom: 24px !important; }
body.user-page .dash-premium,
body.user-page .developer-main { padding-top: 24px !important; }
body.user-page .quant-body .quant-main { padding-top: 24px !important; }

@media (max-width: 768px) {
  .dash-header { flex-direction: column; padding: 8px 16px; gap: 8px; align-items: stretch; }
  .logo { font-size: 1.1rem; text-align: center; margin: 0; }
  .account-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; margin: 0; }
  .account-nav a { margin-left: 0; font-size: 12px; }
  .lp-hero { min-height: 28vh; padding: 20px 16px 28px; }
  .lp-section { padding: 28px 16px 36px; }
  .lp-footer { padding: 18px 16px 72px; padding-bottom: max(72px, calc(18px + env(safe-area-inset-bottom))); flex-wrap: wrap; justify-content: center; gap: 8px; }
  .lp-footer-nav, .lp-footer-legal { justify-content: center; gap: 6px 12px; }
  .lp-footer a { margin: 0 6px; font-size: 12px; }
  .account-nav-fixed { justify-content: center; }
  .lp-demo-iframe { height: 320px; }
  .lp-demo-iframe-compact { height: 220px; }
  /* LP モック: Heatmap / AI Confidence をスマホで1列表示 */
  .lp-demo-inline .mock-grid { grid-template-columns: 1fr; overflow: visible; }
  .lp-demo-inline .mock-panel { min-height: 100px; overflow: visible; }
}
@media (max-width: 480px) {
  .account-nav a { margin-left: 0; font-size: 11px; }
  .product-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pricing-all-first { grid-template-columns: repeat(2, 1fr); }
}

/* Auth forms */
.auth-main { max-width: 420px; margin: 80px auto; padding: 24px; }
.auth-main h1 { font-size: 1.75rem; margin: 0 0 24px; text-align: center; }
.auth-form .account-section { margin-bottom: 24px; }
.auth-form label { display: block; font-size: 12px; color: #999; margin-bottom: 6px; }
.auth-form input { width: 100%; padding: 12px 16px; margin-bottom: 16px; }
.auth-form button { width: 100%; padding: 14px; margin-top: 8px; }
.auth-link { text-align: center; margin-top: 20px; color: #888; font-size: 14px; }
.auth-link a { color: #10b981; text-decoration: none; }
.auth-link a:hover { text-decoration: underline; }

/* Pricing – compact cards, product color accents */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; max-width: 920px; margin: 0 auto; }
.pricing-card { background: #111114; border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; padding: 18px; position: relative; }
.pricing-card.featured { border-color: #10b981; box-shadow: 0 0 0 1px #10b981; }
.pricing-card h3 { font-size: 1.05rem; margin: 0 0 6px; }
.pricing-card .price { font-size: 1.75rem; font-weight: 900; margin: 8px 0; color: #10b981; }
.pricing-card.pricing-gold .price, .pricing-card.pricing-gold h3 { color: #d4a84b; }
.pricing-card.pricing-gold { border-color: rgba(212,168,75,0.35); }
.pricing-card.pricing-gold:hover { border-color: rgba(212,168,75,0.6); }
.pricing-card ul { list-style: none; padding: 0; margin: 10px 0; color: #888; font-size: 12px; }
.pricing-card li { padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.pricing-card .btn-primary, .pricing-card .btn-secondary { width: 100%; text-align: center; margin-top: 8px; padding: 8px 12px; font-size: 0.85rem; }
.pricing-card .btn-secondary { margin-bottom: 4px; }

/* Pricing: ALL card first (full width), then 5 cards below */
.pricing-all-first { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 800px; margin: 0 auto; }
.pricing-all-first .pricing-all-card { grid-column: 1 / -1; max-width: 420px; margin: 0 auto; justify-self: center; }

/* Pricing: 先行者パートナー 50名限定 – スクロール無しで一目で分かる */
.pricing-above-fold { min-height: calc(100vh - 140px); display: flex; flex-direction: column; align-items: center; justify-content: flex-start; }
.pricing-limited-badge {
  background: linear-gradient(135deg, rgba(16,185,129,0.2), rgba(16,185,129,0.08));
  border: 1px solid rgba(16,185,129,0.5);
  border-radius: 10px;
  padding: 12px 20px;
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-weight: 800;
  color: #10b981;
  text-align: center;
}
.pricing-sub { text-align: center; color: #888; margin: 0 0 20px; font-size: 14px; }
.pricing-three-first { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 720px; margin: 0 auto 16px; }
.pricing-three-first .pricing-card { padding: 14px 12px; }
.pricing-three-first .pricing-card .price { font-size: 1.6rem; margin: 6px 0; }
.pricing-three-first .pricing-card ul { margin: 8px 0; font-size: 11px; }
.pricing-three-first .pricing-card .btn-primary, .pricing-three-first .pricing-card .btn-secondary { padding: 6px 10px; font-size: 0.8rem; margin-top: 6px; display: block; text-align: center; }
.pricing-all-row { max-width: 420px; margin: 0 auto 12px; }
.pricing-all-row .pricing-all-card { padding: 14px 18px; text-align: center; }
.pricing-all-row .pricing-all-card .price { font-size: 1.5rem; }
.pricing-trial { text-align: center; margin: 0; font-size: 13px; }
.pricing-trial a { color: #10b981; text-decoration: none; }
.pricing-trial a:hover { text-decoration: underline; }
.price-unit { font-size: 0.85rem; color: #888; }
@media (max-width: 768px) {
  .pricing-three-first { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .pricing-limited-badge { font-size: 0.95rem; padding: 10px 16px; }
}
@media (max-width: 480px) {
  .pricing-three-first { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .pricing-three-first .pricing-card { padding: 10px 8px; }
  .pricing-three-first .pricing-card h3 { font-size: 0.9rem; }
  .pricing-three-first .pricing-card .price { font-size: 1.3rem; }
  .pricing-three-first .pricing-card ul { display: none; }
  .pricing-three-first .pricing-card .btn-secondary { display: none; }
  .pricing-three-first .pricing-card .btn-primary { padding: 6px 8px; font-size: 0.7rem; }
  .pricing-limited-badge { font-size: 0.85rem; padding: 8px 12px; }
  .pricing-sub { font-size: 12px; }
  .pricing-above-fold { min-height: auto; padding-bottom: 24px; }
}

/* Product LP */
.prod-hero { padding: 80px 24px 60px; text-align: center; }
.prod-hero.prod-hero-compact { padding: 36px 24px 24px; }
.prod-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; margin: 0 0 16px; }
.prod-hero p { color: #888; font-size: 1.1rem; max-width: 560px; margin: 0 auto 32px; }
.prod-hero-compact p { margin-bottom: 16px; }
.prod-hero-compact .btn-primary { margin-top: 0; }
.prod-features { max-width: 700px; margin: 0 auto; padding: 40px 24px; }
.prod-features h3 { font-size: 1.1rem; margin: 24px 0 8px; color: #ccc; }
.prod-features p { color: #888; font-size: 14px; margin: 0; }
.prod-cta { text-align: center; padding: 40px 24px; }
