/* Real Kitchen Labs: same look as the main site (/styles.css), arranged as a
   single-column landing page instead of docs. Header/footer use their own
   class names so tools/sync_layout.py leaves this page alone. */

/* Default accent: violet (passes WCAG AA, 4.81:1 with white) */
:root {
  --link: #7c4dff;
  --link-hover: #6a3de0;
  --nav-active-text: #7c4dff;
  --nav-active-bg: #efeaff;
  --note-bg: #efeaff;
  --note-border: #7c4dff;
}

.rkl-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.rkl-header .header-right { margin-left: auto; }

.page { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

.page section { padding: 56px 0; border-top: 1px solid var(--border); }
.page section:first-of-type { border-top: 0; }
.page h2 { margin-top: 0; padding-top: 0; }
.section-lede { font-size: 18px; color: var(--text-muted); margin: 0 0 24px; max-width: 720px; }

/* Hero */
.hero-split {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
  padding: 56px 0 48px;
}
.hero-split h1 { font-size: 42px; line-height: 1.2; }
.hero-split .lede { margin-bottom: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-split .photo-placeholder { aspect-ratio: 4 / 3; }

/* At a glance */
.glance {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 0 0 8px;
}
.glance > div { padding: 14px 18px; border-right: 1px solid var(--border); }
.glance > div:last-child { border-right: 0; }
.glance .k { font-size: 13px; color: var(--text-muted); }
.glance .v { font-family: var(--font-display); font-size: 18px; margin-top: 2px; }

/* Stat row */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 16px 0 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.stat { padding: 16px 18px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: 0; }
.stat .num { font-family: var(--font-display); font-size: 32px; line-height: 1.1; color: var(--nav-active-text); }
.stat .what { font-size: 14px; color: var(--text-muted); margin-top: 4px; }
.source { font-size: 13px; color: var(--text-muted); margin: 0 0 24px; }
.source a { color: var(--text-muted); text-decoration: underline; }

/* Static cards (not links) */
.card.static { cursor: default; }
.card.static:hover { box-shadow: none; }
.card-body ul { margin: 8px 0 0; padding-left: 18px; font-size: 14px; color: var(--text-muted); }

/* Appliance label photos */
.label-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0 0 24px; }
.label-grid figure { margin: 0; }
.label-grid .photo-placeholder { aspect-ratio: 4 / 3; padding: 16px; text-align: center; }
.label-grid figcaption { margin-top: 8px; font-size: 14px; color: var(--text-muted); }

/* Two-column text block */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }

/* Sample report */
.report { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin: 0 0 8px; }
.report-head {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; background: var(--bg-subtle); border-bottom: 1px solid var(--border); font-size: 14px;
}
.report-head strong { font-weight: 500; }
.report table { margin: 0; }
.report td, .report th { font-size: 14px; }
.flag { font-family: var(--font-mono); font-size: 12px; padding: 1px 6px; border-radius: 4px; white-space: nowrap; }
.flag.ok { background: var(--tip-bg); color: #137333; }
.flag.warn { background: var(--caution-bg); color: #b06000; }
.flag.bad { background: #fce8e6; color: #c5221f; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 16px 0; }
.plan { border: 1px solid var(--border); border-radius: 8px; padding: 20px; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--link); box-shadow: 0 0 0 1px var(--link) inset; }
.plan h3 { margin: 0 0 4px; }
.plan .price { font-family: var(--font-display); font-size: 30px; margin: 4px 0; }
.plan .price small { font-size: 15px; color: var(--text-muted); }
.plan ul { padding-left: 18px; margin: 12px 0 16px; font-size: 15px; flex: 1; }
.plan li { margin: 4px 0; }

details { border-bottom: 1px solid var(--border); padding: 12px 0; }
details summary { cursor: pointer; font-weight: 500; }
details p { margin: 8px 0 0; color: var(--text-muted); }

/* Closing CTA */
.cta {
  margin: 8px 0 56px;
  padding: 28px 32px;
  background: var(--note-bg);
  border-radius: 8px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.cta h2 { font-size: 24px; margin: 0 0 4px; }
.cta p { margin: 0; color: var(--text-muted); }

.rkl-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
  padding: 24px;
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
}

/* Accent hover states follow the chosen accent */
.rkl-header .header-right a:hover,
.btn-primary:hover { background: var(--link-hover, #1765cc); border-color: var(--link-hover, #1765cc); }

/* Temporary dev tools (devtools.js) */
/* Docked to the bottom-right edge; the tab sits on top of the panel */
.rkl-dev { position: fixed; right: 0; bottom: 0; z-index: 50; display: flex; flex-direction: column; align-items: flex-end; font-size: 14px; }
.rkl-dev-tab { font: 500 13px/1 var(--font); padding: 8px 14px; margin-right: 12px; border: 1px solid var(--border); border-bottom: 0; border-radius: 6px 6px 0 0; background: var(--bg-subtle); color: var(--text); cursor: pointer; position: relative; top: 1px; }
.rkl-dev-tab[aria-expanded="false"] { top: 0; border-bottom: 1px solid var(--border); border-radius: 6px 6px 0 0; }
.rkl-dev-panel { width: 260px; padding: 12px; background: var(--bg-subtle); border: 1px solid var(--border); border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.rkl-dev-panel[hidden] { display: none; }
.rkl-dev-title { font-size: 12px; font-weight: 500; letter-spacing: .8px; text-transform: uppercase; color: var(--text-muted); margin: 0 0 8px; }
.rkl-dev-panel button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 1px solid transparent; border-radius: 6px; background: none; font: 400 14px var(--font); color: var(--text); cursor: pointer; text-align: left; }
.rkl-dev-panel button:hover { background: var(--bg); }
.rkl-dev-panel button[aria-pressed="true"] { border-color: var(--border); background: var(--bg); font-weight: 500; }
.rkl-dev-panel button span { width: 18px; height: 18px; border-radius: 50%; flex: none; }
.rkl-dev-panel button code { margin-left: auto; font-size: 11px; }

@media (max-width: 840px) {
  .rkl-header { padding: 0 16px; gap: 16px; }
  .page { padding: 0 16px; }
  .hero-split, .two-col, .label-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-split h1 { font-size: 32px; }
  .glance, .stats { grid-template-columns: 1fr 1fr; }
  .glance > div:nth-child(2), .stat:nth-child(2) { border-right: 0; }
  .glance > div:nth-child(-n+2), .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .plans { grid-template-columns: 1fr; }
  .page section { padding: 40px 0; }
  .report, table { display: block; overflow-x: auto; }
}
