/* ==========================================================================
   MiraiGrid UK — Corporate Green Energy & Editorial Guide Stylesheet
   ========================================================================== */

:root {
  --bg-page: #f5f7f6;
  --bg-card: #ffffff;
  --bg-tint: #eef5f2;
  --bg-warm: #fbf9f5;
  --bg-dark: #07261e;
  --bg-dark-elevated: #0d362b;

  --ink-primary: #0f172a;
  --ink-secondary: #334155;
  --ink-muted: #64748b;
  --ink-inverse: #f8fafc;

  --brand-forest: #0a362b;
  --brand-emerald: #0f766e;
  --brand-mint: #10b981;
  --brand-mint-soft: #d1fae5;
  --brand-amber: #b45309;
  --brand-amber-bg: #fef3c7;
  --brand-red: #dc2626;
  --brand-red-soft: #fee2e2;

  --border-subtle: #e2e8f0;
  --border-emerald: #a7f3d0;

  --shadow-sm: 0 2px 8px rgba(10, 54, 43, 0.05);
  --shadow-md: 0 12px 32px -12px rgba(10, 54, 43, 0.1);
  --shadow-lg: 0 24px 48px -16px rgba(7, 38, 30, 0.18);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Source Serif 4', Georgia, Cambria, 'Times New Roman', serif;
  --container-max: 980px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-primary);
  background: var(--bg-page);
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Reading Progress Bar */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-emerald), var(--brand-mint));
  z-index: 1000;
  transition: width 0.1s linear;
}

/* Top Briefing Bar */
.top-briefing-bar {
  background: var(--bg-dark);
  color: #d1fae5;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 9px 16px;
  text-align: center;
  border-bottom: 1px solid rgba(16, 185, 129, 0.25);
}

.top-briefing-bar span {
  color: #34d399;
}

/* Editorial Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 68px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-forest), var(--brand-emerald));
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.25);
}

.brand-text-group {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brand-forest);
}

.brand-sub {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  overflow-x: auto;
  scrollbar-width: none;
}

.header-nav a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-secondary);
  white-space: nowrap;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.header-nav a:hover {
  color: var(--brand-emerald);
  border-bottom-color: var(--brand-mint);
}

.header-cta {
  background: var(--brand-forest);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.15s ease;
}

.header-cta:hover {
  background: var(--brand-emerald);
  transform: translateY(-1px);
}

/* Compact Above-the-Fold Editorial Hero */
.article-hero {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
  padding: 20px 0 22px;
}

.hero-eyebrow-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-tint);
  color: var(--brand-forest);
  border: 1px solid var(--border-emerald);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

.eyebrow-pill .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-mint);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22);
}

.uk-flag-pill {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-secondary);
  background: #f1f5f9;
  padding: 5px 11px;
  border-radius: 999px;
}

.article-title {
  font-family: var(--font-serif);
  font-size: clamp(1.62rem, 2.75vw, 2.38rem);
  line-height: 1.15;
  font-weight: 700;
  color: var(--ink-primary);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  max-width: 920px;
}

.hero-briefing-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 22px;
  align-items: center;
  margin: 14px 0 16px;
}

.hero-editorial-intro {
  margin: 0;
  max-width: 880px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-editorial-intro p {
  margin: 0;
  font-size: 0.97rem;
  color: var(--ink-secondary);
  line-height: 1.54;
}

.hl-hook {
  background: linear-gradient(120deg, rgba(16, 185, 129, 0.16) 0%, rgba(52, 211, 153, 0.22) 100%);
  color: var(--brand-forest);
  font-weight: 700;
  padding: 0 5px;
  border-radius: 5px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero-accord-photo {
  margin: 0;
  max-width: 100%;
  background: #ffffff;
  border: 1px solid #d7e6de;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(13, 47, 36, 0.08);
}

.hero-accord-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 16%;
}

.hero-accord-caption {
  padding: 8px 12px;
  background: #f3faf6;
  border-top: 1px solid #dfece4;
  font-size: 0.77rem;
  line-height: 1.38;
  color: #365046;
}

.hero-accord-caption strong {
  color: var(--brand-forest);
  font-weight: 700;
}

.article-subtitle {
  font-size: 0.99rem;
  color: var(--ink-secondary);
  max-width: 820px;
  margin: 0 0 12px;
  line-height: 1.48;
}

.hero-trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.hero-meta-inline {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-secondary);
}

.byline-authors {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatars {
  display: flex;
}

.avatar-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand-forest);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
}

.avatar-circle:nth-child(2) {
  margin-left: -10px;
  background: var(--brand-emerald);
}

.byline-meta {
  font-size: 0.85rem;
  color: var(--ink-secondary);
}

.byline-meta strong {
  color: var(--ink-primary);
}

.byline-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand-forest);
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 6px 12px;
  border-radius: 8px;
}

.hero-media-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
  background: var(--bg-dark);
}

.hero-media-frame img {
  width: 100%;
  max-height: 490px;
  object-fit: cover;
}

.hero-caption-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: rgba(7, 38, 30, 0.94);
  color: #e2e8f0;
  padding: 13px 20px;
  font-size: 0.82rem;
}

.hero-caption-strip strong {
  color: #34d399;
}

/* Main Single-Column Editorial Shell */
.editorial-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: 22px 0 56px;
  align-items: start;
}

.uk-guarantees-box {
  margin: 18px 0 18px;
}

.uk-guarantees-box h3 {
  margin: 0 0 10px;
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-forest);
}

.editorial-main {
  min-width: 0;
}

/* Sticky Sidebar (Listful-style navigation & quick picks) */
.editorial-sidebar {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.sidebar-card h3 {
  margin: 0 0 12px;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-forest);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-pick-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-pick-item {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.sidebar-pick-item:hover {
  border-color: var(--brand-emerald);
  background: var(--bg-tint);
}

.sidebar-pick-item img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
}

.sidebar-pick-meta {
  min-width: 0;
}

.sidebar-pick-rank {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--brand-emerald);
  text-transform: uppercase;
}

.sidebar-pick-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-pick-price {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-forest);
}

.sidebar-pick-price s {
  color: var(--ink-muted);
  font-weight: 500;
  margin-left: 4px;
}

.sidebar-dark-card {
  background: linear-gradient(160deg, var(--bg-dark), #0c4435);
  color: var(--ink-inverse);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-md);
}

.sidebar-dark-card .kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #34d399;
  margin-bottom: 6px;
}

.sidebar-dark-card h4 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  line-height: 1.3;
}

.sidebar-dark-card p {
  margin: 0 0 14px;
  font-size: 0.84rem;
  color: #cbd5e1;
}

/* Section Cards & Prose Blocks */
.editorial-section {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

.section-kicker {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-emerald);
  margin-bottom: 8px;
}

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.3vw, 2rem);
  line-height: 1.22;
  margin: 0 0 14px;
  color: var(--ink-primary);
}

.section-lead {
  font-size: 1.03rem;
  color: var(--ink-secondary);
  margin: 0 0 22px;
}

/* KPI Stat Strip & Top Results Card */
.results-strip-card {
  padding: 20px 24px;
  margin-bottom: 22px;
}

.results-strip-card .section-heading {
  font-size: clamp(1.28rem, 2vw, 1.58rem);
}

.results-strip-card .kpi-grid {
  margin: 14px 0 12px;
  gap: 12px;
}

.results-strip-card .kpi-box {
  padding: 12px 14px;
}

.results-strip-card .kpi-value {
  font-size: 1.38rem;
  margin-bottom: 4px;
}

.results-trap-note {
  margin: 0;
  font-size: 0.83rem;
  line-height: 1.45;
  color: #7f1d1d;
  background: #fff5f5;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 9px 13px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.kpi-box {
  background: var(--bg-tint);
  border: 1px solid var(--border-emerald);
  border-radius: var(--radius-md);
  padding: 16px;
}

.kpi-value {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--brand-forest);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 6px;
}

.kpi-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-secondary);
  line-height: 1.35;
}

/* Problem Grid (Why Traditional Solutions Fail) */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.problem-card {
  background: #fff8f7;
  border: 1px solid #fecaca;
  border-radius: var(--radius-md);
  padding: 20px;
}

.problem-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-red);
  background: var(--brand-red-soft);
  padding: 3px 9px;
  border-radius: 6px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.problem-card h4 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--ink-primary);
}

.problem-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-secondary);
}

/* Japan Energy Insight Banner */
.japan-story-box {
  background: linear-gradient(135deg, #07261e 0%, #0d4436 100%);
  color: #f8fafc;
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 28px;
  border: 1px solid rgba(16, 185, 129, 0.3);
  box-shadow: var(--shadow-md);
}

.japan-story-box .section-kicker {
  color: #34d399;
}

.japan-story-box .section-heading {
  color: #ffffff;
}

.japan-story-box p {
  color: #d1fae5;
  margin: 0 0 18px;
}

.japan-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.japan-pillar {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: var(--radius-md);
  padding: 18px;
}

.japan-pillar strong {
  display: block;
  color: #6ee7b7;
  font-size: 0.94rem;
  margin-bottom: 6px;
}

.japan-pillar span {
  font-size: 0.85rem;
  color: #e2e8f0;
  display: block;
}

/* Interactive Charts Suite */
.chart-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.ss-sr {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.chart-tab-btn {
  background: #f1f5f9;
  color: var(--ink-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 9px 15px;
  font-size: 0.84rem;
  font-weight: 700;
  transition: all 0.15s ease;
  cursor: pointer;
  user-select: none;
  display: inline-block;
}

.chart-panel {
  display: none;
  background: #f8faf9;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
}

.editorial-section:has(#tab-monthly:checked) label[for="tab-monthly"],
.editorial-section:has(#tab-hourly:checked) label[for="tab-hourly"],
.editorial-section:has(#tab-lab:checked) label[for="tab-lab"] {
  background: var(--brand-forest);
  color: #fff;
  border-color: var(--brand-forest);
}

.editorial-section:has(#tab-monthly:checked) #chart-monthly,
.editorial-section:has(#tab-hourly:checked) #chart-hourly,
.editorial-section:has(#tab-lab:checked) #chart-lab {
  display: block;
}

.chart-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 18px;
}

.chart-header h4 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.chart-header p {
  margin: 0;
  font-size: 0.83rem;
  color: var(--ink-muted);
}

.chart-legend {
  display: flex;
  gap: 14px;
  font-size: 0.78rem;
  font-weight: 600;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-swatch {
  width: 11px;
  height: 11px;
  border-radius: 3px;
}

.svg-chart-wrap {
  width: 100%;
  overflow-x: auto;
}

.chart-footnote {
  margin-top: 12px;
  font-size: 0.76rem;
  color: var(--ink-muted);
}

/* Horizontal Cost Bars (Chart 2) */
.cost-bar-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cost-bar-row {
  display: grid;
  grid-template-columns: 210px 1fr 84px;
  align-items: center;
  gap: 14px;
}

.cost-bar-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.cost-bar-sub {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--ink-muted);
  display: block;
}

.cost-bar-track {
  height: 22px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.cost-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.5s ease;
}

.cost-bar-fill.legacy {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

.cost-bar-fill.jp {
  background: linear-gradient(90deg, #0f766e, #10b981);
}

.cost-bar-val {
  font-size: 0.88rem;
  font-weight: 800;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Interactive Savings Calculator */
.calc-card {
  background: linear-gradient(180deg, #ffffff 0%, #f1f8f5 100%);
  border: 1.5px solid var(--border-emerald);
  border-radius: var(--radius-lg);
  padding: 34px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-md);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 30px;
  align-items: center;
}

.calc-field {
  margin-bottom: 18px;
}

.calc-field label {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: 10px;
}

.calc-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.calc-pill {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-secondary);
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
}

.calc-pill:has(input:checked) {
  background: var(--brand-forest);
  color: #fff;
  border-color: var(--brand-forest);
}

.calc-res {
  display: none;
}

.calc-card:has(#c-h1:checked):has(#c-s1:checked):has(#c-t1:checked) .cr-1-1-1,
.calc-card:has(#c-h1:checked):has(#c-s1:checked):has(#c-t2:checked) .cr-1-1-2,
.calc-card:has(#c-h1:checked):has(#c-s1:checked):has(#c-t3:checked) .cr-1-1-3,
.calc-card:has(#c-h1:checked):has(#c-s2:checked):has(#c-t1:checked) .cr-1-2-1,
.calc-card:has(#c-h1:checked):has(#c-s2:checked):has(#c-t2:checked) .cr-1-2-2,
.calc-card:has(#c-h1:checked):has(#c-s2:checked):has(#c-t3:checked) .cr-1-2-3,
.calc-card:has(#c-h1:checked):has(#c-s3:checked):has(#c-t1:checked) .cr-1-3-1,
.calc-card:has(#c-h1:checked):has(#c-s3:checked):has(#c-t2:checked) .cr-1-3-2,
.calc-card:has(#c-h1:checked):has(#c-s3:checked):has(#c-t3:checked) .cr-1-3-3,
.calc-card:has(#c-h2:checked):has(#c-s1:checked):has(#c-t1:checked) .cr-2-1-1,
.calc-card:has(#c-h2:checked):has(#c-s1:checked):has(#c-t2:checked) .cr-2-1-2,
.calc-card:has(#c-h2:checked):has(#c-s1:checked):has(#c-t3:checked) .cr-2-1-3,
.calc-card:has(#c-h2:checked):has(#c-s2:checked):has(#c-t1:checked) .cr-2-2-1,
.calc-card:has(#c-h2:checked):has(#c-s2:checked):has(#c-t2:checked) .cr-2-2-2,
.calc-card:has(#c-h2:checked):has(#c-s2:checked):has(#c-t3:checked) .cr-2-2-3,
.calc-card:has(#c-h2:checked):has(#c-s3:checked):has(#c-t1:checked) .cr-2-3-1,
.calc-card:has(#c-h2:checked):has(#c-s3:checked):has(#c-t2:checked) .cr-2-3-2,
.calc-card:has(#c-h2:checked):has(#c-s3:checked):has(#c-t3:checked) .cr-2-3-3,
.calc-card:has(#c-h3:checked):has(#c-s1:checked):has(#c-t1:checked) .cr-3-1-1,
.calc-card:has(#c-h3:checked):has(#c-s1:checked):has(#c-t2:checked) .cr-3-1-2,
.calc-card:has(#c-h3:checked):has(#c-s1:checked):has(#c-t3:checked) .cr-3-1-3,
.calc-card:has(#c-h3:checked):has(#c-s2:checked):has(#c-t1:checked) .cr-3-2-1,
.calc-card:has(#c-h3:checked):has(#c-s2:checked):has(#c-t2:checked) .cr-3-2-2,
.calc-card:has(#c-h3:checked):has(#c-s2:checked):has(#c-t3:checked) .cr-3-2-3,
.calc-card:has(#c-h3:checked):has(#c-s3:checked):has(#c-t1:checked) .cr-3-3-1,
.calc-card:has(#c-h3:checked):has(#c-s3:checked):has(#c-t2:checked) .cr-3-3-2,
.calc-card:has(#c-h3:checked):has(#c-s3:checked):has(#c-t3:checked) .cr-3-3-3 {
  display: block;
}

.calc-output {
  background: var(--bg-dark);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 28px;
}

.calc-output-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6ee7b7;
  font-weight: 700;
}

.calc-big-num {
  font-size: 2.75rem;
  font-weight: 800;
  color: #34d399;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 6px 0 10px;
  font-variant-numeric: tabular-nums;
}

.calc-sub-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  margin: 14px 0;
  font-size: 0.88rem;
}

.calc-sub-metrics strong {
  display: block;
  font-size: 1.24rem;
  color: #fff;
}

/* At a Glance Jump Strip */
.glance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.glance-card {
  background: #f8faf9;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.glance-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-emerald);
}

.glance-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--brand-emerald);
}

.glance-card h4 {
  margin: 0;
  font-size: 0.94rem;
}

.glance-card .glance-save {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-forest);
}

/* Product Review Article Cards (Top 5 + 1 Bonus) */
.product-article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-md);
  position: relative;
  scroll-margin-top: 86px;
}

.product-article-card.is-rank-1 {
  border: 2px solid var(--brand-emerald);
}

.product-article-card.is-bonus {
  background: linear-gradient(180deg, #07261e 0%, #0b352a 100%);
  color: #f8fafc;
  border: 2px solid #10b981;
}

.product-card-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.rank-pill {
  display: inline-block;
  background: var(--brand-forest);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.is-bonus .rank-pill {
  background: #10b981;
  color: #042017;
}

.product-title {
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
  margin: 0 0 4px;
  line-height: 1.2;
}

.product-subtitle {
  margin: 0;
  font-size: 0.96rem;
  color: var(--ink-muted);
}

.is-bonus .product-subtitle {
  color: #a7f3d0;
}

.lab-score-pill {
  background: var(--bg-tint);
  border: 1px solid var(--border-emerald);
  border-radius: 12px;
  padding: 8px 14px;
  text-align: center;
  flex-shrink: 0;
}

.is-bonus .lab-score-pill {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(52, 211, 153, 0.4);
}

.lab-score-pill strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1.1;
  color: var(--brand-forest);
}

.is-bonus .lab-score-pill strong {
  color: #34d399;
}

.lab-score-pill span {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
}

.is-bonus .lab-score-pill span {
  color: #d1fae5;
}

.product-hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 20px;
  align-items: stretch;
  margin-bottom: 24px;
}

.product-photo-box {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #f1f5f9;
  display: flex;
}

.product-photo-box img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  display: block;
}

.product-offer-box {
  background: #f8faf9;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.is-bonus .product-offer-box {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(167, 243, 208, 0.25);
}

.offer-discount-tag {
  display: inline-block;
  align-self: flex-start;
  background: #dcfce7;
  color: #166534;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.offer-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}

.offer-price-now {
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand-forest);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.is-bonus .offer-price-now {
  color: #34d399;
}

.offer-price-was {
  font-size: 1rem;
  color: var(--ink-muted);
  text-decoration: line-through;
}

.offer-unit-note {
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-bottom: 14px;
}

.is-bonus .offer-unit-note {
  color: #cbd5e1;
}

.offer-mini-specs {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.82rem;
}

.offer-mini-specs li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  border-bottom: 1px dashed var(--border-subtle);
  padding-bottom: 6px;
}

.offer-mini-specs li span {
  color: var(--ink-muted);
  white-space: nowrap;
}

.offer-mini-specs li strong {
  text-align: right;
}

.is-bonus .offer-mini-specs li {
  border-bottom-color: rgba(255, 255, 255, 0.14);
}

.is-bonus .offer-mini-specs li span {
  color: #a7f3d0;
}

.offer-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  background: linear-gradient(135deg, var(--brand-forest), var(--brand-emerald));
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: 10px;
  padding: 13px 18px;
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 20px -6px rgba(15, 118, 110, 0.45);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.offer-cta-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.07);
}

.is-bonus .offer-cta-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #032219;
}

.offer-trust-micro {
  font-size: 0.72rem;
  text-align: center;
  color: var(--ink-muted);
  margin-top: 8px;
}

.is-bonus .offer-trust-micro {
  color: #a7f3d0;
}

.product-editorial-body {
  font-size: 0.98rem;
  color: var(--ink-secondary);
  margin-bottom: 20px;
}

.is-bonus .product-editorial-body {
  color: #e2e8f0;
}

/* Two Dedicated Callout Boxes: Why You Save + Why Better Than Competitors */
.reason-dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.why-save-box {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: var(--radius-md);
  padding: 18px;
}

.is-bonus .why-save-box {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(52, 211, 153, 0.4);
}

.why-save-box h4,
.vs-comp-box h4 {
  margin: 0 0 8px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 7px;
}

.why-save-box h4 {
  color: #15803d;
}

.is-bonus .why-save-box h4 {
  color: #6ee7b7;
}

.why-save-box p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-secondary);
}

.is-bonus .why-save-box p {
  color: #e2e8f0;
}

.vs-comp-box {
  background: var(--bg-warm);
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  padding: 18px;
}

.is-bonus .vs-comp-box {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(251, 191, 36, 0.35);
}

.vs-comp-box h4 {
  color: var(--brand-amber);
}

.is-bonus .vs-comp-box h4 {
  color: #fcd34d;
}

.vs-comp-box ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.86rem;
  color: var(--ink-secondary);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.is-bonus .vs-comp-box ul {
  color: #e2e8f0;
}

/* Pros & Cons + Lab Note */
.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.pros-box,
.cons-box {
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 0.85rem;
}

.pros-box {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
}

.cons-box {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
}

.is-bonus .pros-box,
.is-bonus .cons-box {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
}

.pros-box strong,
.cons-box strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pros-box ul,
.cons-box ul {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lab-citation-strip {
  background: #f1f5f9;
  border-left: 4px solid var(--brand-emerald);
  padding: 11px 14px;
  border-radius: 0 8px 8px 0;
  font-size: 0.82rem;
  color: var(--ink-secondary);
}

.is-bonus .lab-citation-strip {
  background: rgba(255, 255, 255, 0.08);
  color: #d1fae5;
}

/* Comparison Matrix Table */
.table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.81rem;
  text-align: left;
  min-width: 0;
}

.matrix-table th,
.matrix-table td {
  white-space: nowrap;
}

.matrix-table th {
  background: var(--bg-dark);
  color: #fff;
  padding: 11px 10px;
  font-weight: 700;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.matrix-table td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.matrix-table tr:nth-child(even) td {
  background: #f8faf9;
}

.matrix-table tr.bonus-row td {
  background: #ecfdf5;
}

.matrix-mini-btn {
  background: var(--brand-forest);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 0.78rem;
  font-weight: 700;
}

/* Dedicated #1 Proof Section (Reviews, Photos, Guarantee) */
.proof-section {
  background: #ffffff;
  border: 2px solid var(--brand-emerald);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-lg);
  scroll-margin-top: 86px;
}

.proof-rating-banner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: var(--bg-tint);
  border: 1px solid var(--border-emerald);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 18px 0 24px;
}

.proof-score-big {
  display: flex;
  align-items: center;
  gap: 14px;
}

.proof-score-num {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--brand-forest);
  line-height: 1;
}

.proof-stars {
  color: #eab308;
  font-size: 1.15rem;
  letter-spacing: 2px;
}

.proof-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.proof-photo-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #f8fafc;
}

.proof-photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
}

.proof-photo-caption {
  padding: 10px 12px;
  font-size: 0.78rem;
  color: var(--ink-secondary);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.review-card {
  background: #f8faf9;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
}

.review-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.review-author {
  font-weight: 700;
  font-size: 0.9rem;
}

.review-location {
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.verified-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: #15803d;
  background: #dcfce7;
  padding: 3px 8px;
  border-radius: 999px;
}

.review-card p {
  margin: 8px 0 0;
  font-size: 0.87rem;
  color: var(--ink-secondary);
}

.guarantee-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  background: var(--bg-dark);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
}

.guarantee-item strong {
  display: block;
  font-size: 0.86rem;
  color: #34d399;
  margin-bottom: 4px;
}

.guarantee-item span {
  font-size: 0.78rem;
  color: #cbd5e1;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  background: transparent;
  border: none;
  padding: 16px 20px;
  text-align: left;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--ink-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  list-style: none;
  cursor: pointer;
}

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

.faq-icon {
  font-size: 1.2rem;
  color: var(--brand-emerald);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-content {
  padding: 12px 20px 18px;
  font-size: 0.9rem;
  color: var(--ink-secondary);
  border-top: 1px solid #f1f5f9;
}

/* Footer */
.site-footer {
  background: var(--bg-dark);
  color: #cbd5e1;
  padding: 44px 0 36px;
  font-size: 0.83rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.footer-disclaimer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
  font-size: 0.76rem;
  color: #94a3b8;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 1024px) {
  .editorial-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .editorial-sidebar {
    position: static;
    min-width: 0;
  }
}

@media (max-width: 900px) {
  .product-hero-split {
    grid-template-columns: minmax(0, 1fr);
  }
  .product-photo-box img {
    aspect-ratio: 4 / 3;
    height: auto;
    min-height: 0;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  .header-inner {
    gap: 10px;
  }
  .brand-sub {
    display: none;
  }
  .header-cta {
    padding: 8px 12px;
    font-size: 0.78rem;
  }
  .header-nav {
    display: none;
  }
  .problem-grid,
  .japan-pillars,
  .glance-grid,
  .product-hero-split,
  .reason-dual-grid,
  .pros-cons-grid,
  .calc-grid,
  .proof-photo-grid,
  .reviews-grid,
  .guarantee-strip,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .results-strip-card .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .results-strip-card .kpi-value {
    font-size: 1.18rem;
  }
  .hero-briefing-split {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin: 8px 0 10px;
  }
  .hero-editorial-intro {
    margin: 0;
    gap: 7px;
  }
  .hero-editorial-intro p {
    font-size: 0.90rem;
    line-height: 1.44;
  }
  .eyebrow-pill,
  .uk-flag-pill {
    font-size: 0.68rem;
    padding: 4px 9px;
  }
  .article-title {
    font-size: 1.45rem;
    margin-bottom: 6px;
  }
  .hero-accord-photo {
    order: -1;
    margin: 0;
    max-width: 100%;
    border-radius: 12px;
  }
  .hero-accord-photo img {
    max-height: 215px;
    object-position: center 14%;
  }
  .hero-accord-caption {
    padding: 7px 10px;
    font-size: 0.72rem;
    line-height: 1.32;
  }
  .cost-bar-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .cost-bar-val {
    text-align: left;
  }
  .editorial-section,
  .japan-story-box,
  .calc-card,
  .product-article-card,
  .proof-section {
    padding: 18px;
  }
  .qty-selector-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .matrix-table {
    min-width: 540px;
  }
}

/* Sticky Always-On Jump-to-Offer Button */
.sticky-offer-cta {
  position: fixed;
  right: 22px;
  bottom: 20px;
  z-index: 88;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #064e3b 0%, #0f766e 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(6, 78, 59, 0.34), 0 0 0 1px rgba(255, 255, 255, 0.16) inset;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.sticky-offer-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(6, 78, 59, 0.42);
}

.sticky-offer-badge {
  background: #34d399;
  color: #052e16;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.03em;
}

.sticky-offer-arrow {
  font-size: 1rem;
  line-height: 1;
}

@media (max-width: 768px) {
  .site-footer {
    padding-bottom: 92px;
  }
  .sticky-offer-cta {
    left: 14px;
    right: 14px;
    bottom: 12px;
    justify-content: space-between;
    padding: 13px 16px;
    border-radius: 14px;
    font-size: 0.88rem;
  }
}
