/* =============================================
   よへラボ — site.css (redesign)
   ============================================= */

:root {
  --white:   #ffffff;
  --bg:      #f7f8fa;
  --border:  #e4e7ec;
  --text:    #111318;
  --muted:   #6b7585;
  --green:   #0d6b58;
  --green-dark: #095043;
  --green-light: #edf8f5;
  --green-mid: #c6ede4;
  --blue:    #1d6fd8;
  --radius:  12px;
  --radius-lg: 20px;
  --shadow:  0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.06);
  --shadow-md: 0 2px 6px rgba(0,0,0,.07), 0 8px 28px rgba(0,0,0,.09);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
::selection { background: var(--green-mid); color: var(--green-dark); }
body {
  margin: 0;
  font-family: -apple-system, "Hiragino Sans", "Yu Gothic UI", "Noto Sans JP", sans-serif;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.03em; }

/* ---- Layout ---- */
.container {
  width: min(1100px, 100% - 48px);
  margin: 0 auto;
}

/* ---- Nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
  width: min(1100px, 100% - 48px);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.brand-sub {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color .15s, background .15s;
}

.nav-links a:hover { color: var(--text); background: var(--bg); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 24px;
  height: 48px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .14s, box-shadow .14s, background .14s;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(180deg, #0f775f 0%, #0d6b58 100%);
  color: #fff;
  font-weight: 800;
  text-shadow: 0 1px 0 rgba(0,0,0,.12);
  box-shadow: 0 4px 14px rgba(13,107,88,.30);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #0d7b63 0%, #095043 100%);
  box-shadow: 0 6px 20px rgba(13,107,88,.38);
  color: #fff;
}

a.btn-primary,
a.btn-primary:visited {
  color: #fff;
}

.btn-outline {
  background: var(--white);
  color: var(--text);
  border-color: var(--border);
  box-shadow: var(--shadow);
}

.btn-outline:hover { background: var(--bg); }

.btn-ghost {
  background: transparent;
  color: var(--blue);
  border-color: rgba(29,111,216,.22);
}

.btn-ghost:hover { background: rgba(29,111,216,.06); }

.btn-lg { height: 56px; padding: 0 32px; font-size: 16px; border-radius: 14px; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 13px; }

/* ---- Hero ---- */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(13,107,88,.09), transparent),
    var(--white);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--green-light);
  border: 1px solid var(--green-mid);
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 32px;
}

.hero h1 {
  font-size: clamp(44px, 7vw, 80px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.05;
  margin-bottom: 24px;
}

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

.hero-sub {
  font-size: 20px;
  color: var(--muted);
  line-height: 1.9;
  max-width: 560px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-note {
  font-size: 13px;
  color: var(--muted);
}

/* Stats row */
.impact-strip {
  padding: 36px 0 20px;
  background:
    radial-gradient(ellipse 70% 100% at 50% 0%, rgba(13,107,88,.08), transparent 60%),
    linear-gradient(180deg, #f6fbf9 0%, #ffffff 100%);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.stat-item {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 10px;
  min-height: 180px;
  padding: 24px 24px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--green-mid);
  background: linear-gradient(180deg, #ffffff 0%, #f4fbf8 100%);
  box-shadow: var(--shadow);
  align-content: start;
}

.stat-item::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -24px;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13,107,88,.12) 0%, rgba(13,107,88,0) 70%);
}

.stat-kicker {
  position: relative;
  z-index: 1;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green);
}

.stat-main {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.stat-main-stack {
  align-items: center;
  gap: 8px;
}

.stat-main-stack .stat-before,
.stat-main-stack .stat-after {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.stat-main-stack .stat-num-after {
  font-size: clamp(42px, 6vw, 60px);
}

.stat-before {
  color: var(--muted);
  font-size: 16px;
}

.stat-num-before {
  font-weight: 700;
  text-decoration: line-through;
  color: var(--muted);
  font-size: 18px;
}

.stat-arrow {
  color: var(--green-dark);
  font-weight: 900;
  font-size: 22px;
}

.stat-after {
  font-weight: 700;
  color: var(--text);
  font-size: 16px;
}

.stat-num-after {
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 900;
  color: var(--green);
  line-height: 1;
  letter-spacing: -0.05em;
}

.stat-note {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  max-width: 28ch;
}

.stat-divider { display: none; }

@media (max-width: 640px) {
  .impact-strip { padding: 24px 0 8px; }
  .stats-row { grid-template-columns: 1fr; }
  .stat-item {
    min-height: auto;
    padding: 20px 18px 18px;
  }
  .stat-note { max-width: none; }
}

/* ---- Divider ---- */
.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--bg);
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.8;
  margin-bottom: 56px;
}

/* ---- Output showcase ---- */
.output-showcase {
  position: relative;
  overflow: hidden;
  color: #eaf5f1;
  background:
    radial-gradient(circle at 18% 0%, rgba(120, 233, 202, .18), transparent 28%),
    radial-gradient(circle at 84% 10%, rgba(41, 126, 255, .12), transparent 24%),
    linear-gradient(180deg, #0a1714 0%, #0f231f 56%, #0a1513 100%);
}

.output-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: .22;
  pointer-events: none;
}

.output-showcase .container {
  position: relative;
  z-index: 1;
}

.output-showcase .section-label {
  color: #8fe9d1;
}

.output-showcase .section-title {
  color: #ffffff;
  max-width: 700px;
}

.output-showcase .section-sub {
  color: rgba(234,245,241,.75);
  max-width: 700px;
}

.promo-video-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 20px;
  align-items: center;
  margin: 28px auto 32px;
  padding: 20px;
  max-width: 1120px;
  border-radius: 24px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(143,233,209,.18);
  box-shadow: 0 24px 50px rgba(0,0,0,.22);
  backdrop-filter: blur(14px);
}

.promo-video-copy {
  padding: 8px 4px;
}

.promo-video-label {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(143,233,209,.12);
  border: 1px solid rgba(143,233,209,.26);
  color: #8fe9d1;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  margin-bottom: 14px;
}

.promo-video-copy h3 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
  color: #ffffff;
  letter-spacing: -0.03em;
}

.promo-video-copy p {
  color: rgba(234,245,241,.78);
  font-size: 16px;
  line-height: 1.8;
  max-width: 42ch;
}

.promo-video-frame {
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, #08110f 0%, #101f1b 100%);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 18px 34px rgba(0,0,0,.28);
  animation: promoFrameFloat 10s ease-in-out infinite;
}

.promo-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  background: #000;
  transform-origin: 50% 50%;
  animation: promoVideoDrift 14s ease-in-out infinite;
}

@keyframes promoFrameFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes promoVideoDrift {
  0%, 100% { transform: scale(1.03) translate3d(0, 0, 0); }
  33% { transform: scale(1.06) translate3d(-1.4%, -0.8%, 0); }
  66% { transform: scale(1.04) translate3d(1.2%, 0.6%, 0); }
}

.output-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 760px;
  margin-bottom: 28px;
}

.output-stat {
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 18px 34px rgba(0,0,0,.18);
  backdrop-filter: blur(12px);
}

.output-stat strong {
  display: block;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  color: #fff;
  margin-bottom: 6px;
}

.output-stat span {
  display: block;
  font-size: 13px;
  color: rgba(234,245,241,.75);
}

.output-showcase .demo-wrap {
  gap: 22px;
}

.output-showcase .demo-card {
  background: rgba(255,255,255,.96);
  border-color: rgba(255,255,255,.14);
  box-shadow: 0 26px 60px rgba(0,0,0,.28);
}

.output-showcase .demo-card-head {
  background: linear-gradient(180deg, rgba(248,250,251,.98), rgba(238,243,241,.97));
  border-bottom-color: rgba(10,23,20,.08);
}

.output-showcase .demo-dot {
  background: #d9dfe2;
}

.output-showcase .demo-tag {
  color: var(--green-dark);
  letter-spacing: .02em;
}

.output-showcase .demo-item {
  margin-bottom: 14px;
}

.output-showcase .demo-item-title {
  font-size: 16px;
}

.output-showcase .demo-score {
  background: rgba(13,107,88,.10);
  color: var(--green-dark);
  border: 1px solid rgba(13,107,88,.14);
}

.output-showcase .demo-body {
  color: #18222d;
  font-size: 15px;
}

.output-showcase .demo-card:last-child .demo-body {
  display: flex;
  align-items: center;
  min-height: 100%;
  line-height: 2;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbf9 100%);
}

@media (max-width: 860px) {
  .promo-video-shell {
    grid-template-columns: 1fr;
    padding: 16px;
    margin: 24px auto 28px;
  }

  .promo-video-copy p {
    max-width: none;
  }

  .output-stats {
    grid-template-columns: 1fr;
  }

  .output-showcase .demo-wrap {
    grid-template-columns: 1fr;
  }

  .output-showcase .demo-card:last-child .demo-body {
    min-height: auto;
  }
}

/* ---- Features (3-up) ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.feature {
  background: var(--white);
  padding: 40px 36px;
}

.feature-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 20px;
  letter-spacing: .05em;
}

.feature h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 14px;
}

.feature p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

/* ---- Demo output ---- */
.demo-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.demo-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.demo-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.demo-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.demo-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-left: auto;
}

.demo-body {
  padding: 24px;
  font-size: 14px;
  line-height: 1.9;
  color: #2a3240;
  white-space: pre-wrap;
  font-family: "Menlo", "Monaco", "Consolas", monospace;
  background: var(--white);
}

.demo-item {
  padding: 0 0 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.demo-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.demo-item-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
  font-family: inherit;
}

.demo-item-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
  font-family: inherit;
}

.demo-score {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--green-light);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
}

/* ---- Pricing ---- */
.plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 780px;
  margin: 0 auto;
}

.plan {
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  background: var(--white);
}

.plan.featured {
  border-color: var(--green);
  background: var(--green-light);
  position: relative;
}

.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.plan-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.plan-price {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
  color: var(--text);
}

.plan-price span {
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

.plan ul {
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
}

.plan li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--text);
}

.plan li::before {
  content: "✓";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  background: var(--green-mid);
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  margin-top: 2px;
}

.plan .btn { width: 100%; }

/* ---- Tools ---- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.tool-card {
  display: block;
  padding: 28px 32px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  background: var(--white);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}

.tool-card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.tool-name {
  font-weight: 800;
  font-size: 17px;
  margin-bottom: 10px;
  color: var(--text);
}

.tool-card p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.7;
}

.tool-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--green);
}

/* ---- FAQ ---- */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--border);
}

details.faq {
  background: var(--white);
  padding: 0;
}

details.faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  user-select: none;
}

details.faq summary::-webkit-details-marker { display: none; }

details.faq summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform .2s;
}

details.faq[open] summary::after {
  transform: rotate(45deg);
}

details.faq .faq-body {
  padding: 0 28px 24px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

/* ---- Trust ---- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.trust-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--white);
}

.trust-icon {
  font-size: 24px;
  margin-bottom: 14px;
}

.trust-card h4 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 8px;
}

.trust-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}

/* ---- CTA final ---- */
.cta-section {
  padding: 96px 0;
  text-align: center;
  background: var(--green);
  color: #fff;
}

.cta-section h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  margin-bottom: 16px;
  color: #fff;
}

.cta-section p {
  font-size: 18px;
  color: rgba(255,255,255,.8);
  margin-bottom: 36px;
}

.cta-section .btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.4);
}

.cta-section .btn-outline:hover {
  background: rgba(255,255,255,.1);
}

.btn-white {
  background: #fff;
  color: var(--green);
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(0,0,0,.16);
}

.btn-white:hover { background: #f0faf7; color: var(--green-dark); }

/* ---- Footer ---- */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  width: min(1100px, 100% - 48px);
  margin: 0 auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a:hover { color: var(--text); }

/* ---- Sticky mobile CTA ---- */
.sticky-cta { display: none; }

/* ---- Labs ---- */
.labs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.labs-card {
  padding: 28px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--white);
}

.labs-card h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 10px;
}

.labs-card p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 16px;
}

.labs-card a.link {
  font-size: 14px;
  font-weight: 700;
  color: var(--green);
}

/* ---- Link list ---- */
.link-list {
  display: grid;
  gap: 8px;
}
.link-list a {
  color: var(--green);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  font-size: 15px;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .feature-grid,
  .demo-wrap,
  .plan-grid,
  .tools-grid,
  .trust-grid,
  .labs-grid {
    grid-template-columns: 1fr;
  }

  .nav-links .btn-outline { display: none; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }

  .hero { padding: 64px 0 56px; }

  .hero h1 { font-size: clamp(38px, 11vw, 56px); }

  .hero-sub { font-size: 17px; }

  .hero-actions { flex-direction: column; }

  .hero-actions .btn { width: 100%; max-width: 320px; }

  .section-title { font-size: clamp(26px, 8vw, 36px); }

  .nav-links a:not(.btn) { display: none; }

  .feature { padding: 28px 24px; }

  .plan { padding: 28px 24px; }

  .sticky-cta {
    display: block;
    position: sticky;
    bottom: 12px;
    z-index: 50;
    padding: 0 16px;
  }

  .sticky-cta-inner {
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    display: grid;
    gap: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
  }

  .sticky-cta-inner .btn { width: 100%; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }

  /* apps/tools page — panel sticky off on mobile */
  .panel { position: static; }
}

/* =============================================
   App pages (radar, proposal, etc.)
   ============================================= */

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 20px 0 18px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  width: min(1100px, 100% - 48px);
  margin: 0 auto;
}

.shell {
  width: min(1100px, 100% - 48px);
  margin: 0 auto;
}

/* Reuse brand from nav for app pages */
.topbar .brand { font-weight: 700; font-size: 18px; display: inline-flex; align-items: center; gap: 10px; }
.topbar .brand img { width: 34px; height: 34px; border-radius: 8px; }
.topbar .brand small { font-size: 12px; color: var(--muted); font-weight: 500; }

.mini-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 14px;
}

.mini-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 500;
  transition: background .15s, color .15s;
}

.mini-nav a:hover { background: var(--bg); color: var(--text); }

/* breadcrumb */
.breadcrumb {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  margin: 12px 0 28px;
  color: var(--muted);
  font-size: 13px;
}

/* grid for app pages */
.grid {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 24px;
  padding: 24px 0 80px;
}

.panel {
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 80px;
  align-self: start;
}

.panel h2 { font-size: 22px; margin-bottom: 16px; }

.results { display: grid; gap: 16px; }

.result-card, .info-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow);
}

.result-card h3, .info-card h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
}

input, textarea, select {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  transition: border-color .15s, box-shadow .15s;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(13,107,88,.12);
}

/* Keyboard focus ring */
*:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.btn:focus-visible, .button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(13,107,88,.18);
}

input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: none;
}

textarea { min-height: 120px; resize: vertical; }

.button { /* alias for app pages using old class names */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 24px;
  height: 48px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .14s, box-shadow .14s, background .14s;
}

.button:hover { transform: translateY(-1px); }

.button.primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 4px 14px rgba(13,107,88,.28);
}

.button.primary:hover { background: var(--green-dark); color: #fff; }

.button.secondary {
  background: var(--white);
  color: var(--text);
  border-color: var(--border);
  box-shadow: var(--shadow);
}

.button.ghost {
  background: transparent;
  color: var(--blue);
  border-color: rgba(29,111,216,.22);
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--green-light);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.score {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.score.good { color: var(--green); }
.score.warn { color: #9b5b12; }

.meter-block { margin: 12px 0 6px; }

.meter-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 14px;
}

.meter-track {
  height: 10px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #21c087, #1d6fd8);
}

.code-box, .output-box {
  white-space: pre-wrap;
  line-height: 1.85;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  color: #16202b;
  font-size: 14px;
  font-family: "Menlo", "Monaco", monospace;
}

.notice {
  padding: 16px 20px;
  border-radius: var(--radius);
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  font-size: 15px;
  line-height: 1.7;
}

.muted { color: var(--muted); }

.detail-list, .bullet-list, .steps { display: grid; gap: 10px; }

.detail-list li, .bullet-list li {
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 15px;
}

.detail-list strong { display: block; margin-bottom: 4px; }

.compact-list, .flow-list, .list-check {
  display: grid;
  gap: 10px;
}

.compact-list li, .flow-list li, .list-check li {
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 15px;
}

.flow-list { counter-reset: flow; }

.flow-list li {
  position: relative;
  padding-left: 54px;
}

.flow-list li::before {
  counter-increment: flow;
  content: counter(flow);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.list-check li {
  position: relative;
  padding-left: 42px;
}

.list-check li::before {
  content: "✓";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--green);
  font-weight: 900;
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--white);
}

table { width: 100%; border-collapse: collapse; }

th, td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}

th {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  background: var(--bg);
  text-transform: uppercase;
  letter-spacing: .06em;
}

tr:last-child td { border-bottom: none; }

td:first-child, th:first-child { font-weight: 700; }

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: var(--radius);
  background: var(--text);
  color: #fff;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  transform: translateY(8px);
  opacity: 0;
  transition: opacity .18s, transform .18s;
}

.toast.show { opacity: 1; transform: translateY(0); }

.hidden-field { position: absolute; left: -9999px; }

.success-box { border-color: var(--green-mid); background: var(--green-light); }

.form-progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: #eff6ff;
  color: #1e40af;
  font-size: 13px;
  font-weight: 700;
}

.chip-picker { display: flex; flex-wrap: wrap; gap: 8px; }

.chip-action {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px solid var(--green-mid);
  background: var(--green-light);
  color: var(--green);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
}

.chip-action:hover { background: var(--green-mid); }

.mini-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.link-list a { color: var(--green); text-decoration: underline; font-size: 15px; }

.card {
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow);
}

.card h3 { font-size: 20px; margin-bottom: 10px; }

.stack { display: grid; gap: 16px; }

.mini-panel {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--white);
}

.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head h2 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  margin-bottom: 10px;
}
.section-head p { color: var(--muted); font-size: 16px; }

.cta-box {
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg);
  display: grid;
  gap: 16px;
}

.faq-grid { display: grid; gap: 2px; }

.faq-item {
  padding: 22px 24px;
  border-radius: 0;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 15px;
}

.faq-accordion { cursor: pointer; }

.faq-accordion summary {
  list-style: none;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-accordion summary::-webkit-details-marker { display: none; }

.faq-accordion summary::after {
  content: "+";
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--muted);
  font-size: 18px;
  flex: none;
}

.faq-accordion[open] summary::after { content: "−"; }

.faq-accordion p { margin-top: 12px; color: var(--muted); }

.contact-grid { align-items: start; }

.empty {
  display: grid;
  place-items: center;
  min-height: 200px;
  color: var(--muted);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-lg);
  font-size: 15px;
}

.row, .subgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.section-band {
  padding: 48px 24px;
  margin-top: 16px;
  border-radius: var(--radius-lg);
  background: var(--bg);
  border: 1px solid var(--border);
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 24px;
  align-items: start;
}

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }

.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.metric-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--white);
}

.metric-card span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 8px;
}

.metric-card strong {
  display: block;
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
}

.metric-card p { font-size: 14px; color: var(--muted); margin: 0; }

.comparison-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.plan-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  background: var(--white);
}

.plan-card.free { background: var(--white); }
.plan-card.beta, .plan-card.pro { border-color: var(--green); background: var(--green-light); }
.plan-card h3 { font-size: 20px; margin-top: 0; margin-bottom: 16px; }
.plan-card .button { margin-top: 16px; }

.impact-strip { padding-top: 32px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--green-light);
  border: 1px solid var(--green-mid);
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.hero-copy { display: grid; align-content: start; gap: 0; }
.hero-actions.hero-actions--left { justify-content: flex-start; }
.hero-chips { margin-top: 14px; }
.hero-bullets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }

.mini-card {
  padding: 18px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.65;
}

.mini-card strong { display: block; margin-bottom: 6px; font-size: 15px; }

.safety-note {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--green-light);
  border: 1px solid var(--green-mid);
  color: var(--green-dark);
  font-size: 14px;
}

.section h2 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

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

.hero-grid > div:first-child {
  padding: 48px 44px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-frame { padding-top: 24px; }
.hero-grid > div:first-child, .hero-grid > aside, .hero-grid > .panel { border-radius: var(--radius-lg); }

.section-head::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  margin-top: 16px;
  border-radius: 999px;
  background: var(--green);
}

@media (max-width: 980px) {
  .grid, .row, .subgrid, .hero-grid,
  .cards, .cards-2, .cards-3, .cards-4,
  .metric-grid, .comparison-grid, .split-grid,
  .hero-bullets {
    grid-template-columns: 1fr;
  }

  .panel { position: static; }
  .hero-grid > div:first-child { padding: 32px 28px; }
  .card-span-2 { grid-column: auto; }

  .topbar { flex-direction: column; align-items: flex-start; position: static; background: transparent; backdrop-filter: none; border-bottom: none; }
}
