/* Lighthouse (LHP) pages: the Lighthouse brand from lighthouse.localfirst.group
   (og-backend public/developer/assets/style.css): light by default with a dark toggle, blue/peach
   page gradient, dark top bar, white cards with soft depth, orange pill CTAs, blue accent. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
:root {
  --bg-page: linear-gradient(150deg, #d2edf3 0%, #ffdcb9 100%);
  --bg-card: #ffffff;
  --bg-header: #0d1117;
  --bg-soft: #f3f7fb;
  --text: #16233b;
  --soft: #56657d;
  --dim: #7b8aa0;
  --accent: #1f6fd6;
  --accent-soft: rgba(31, 111, 214, 0.10);
  --border: rgba(10, 30, 60, 0.10);
  --shadow-sm: 0 2px 10px rgba(20, 40, 80, 0.08);
  --shadow-md: 0 8px 24px rgba(20, 40, 80, 0.12);
  --orange: #ff8c00;
  --orange-hover: #e67e00;
  --ok: #1ca65b;
  --bad: #d83a52;
  --radius: 16px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
[data-theme="dark"] {
  --bg-page: linear-gradient(150deg, #0d1117 0%, #16213e 100%);
  --bg-card: #0f2744;
  --bg-header: #060d18;
  --bg-soft: #0a1f38;
  --text: #e8f4fd;
  --soft: #8aafc8;
  --dim: #6f8fa8;
  --accent: #4895ef;
  --accent-soft: rgba(72, 149, 239, 0.14);
  --border: rgba(255, 255, 255, 0.08);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --orange: #ff9800;
  --orange-hover: #f57c00;
  --bad: #ff6b81;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  background: var(--bg-page); background-attachment: fixed; color: var(--text); font-family: var(--sans);
  display: flex; flex-direction: column; min-height: 100vh; overflow-x: hidden; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }

/* top bar */
.hdr {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 22px; height: 64px; background: var(--bg-header); color: #e8f4fd;
}
.hdr-left { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; font-size: 17px; color: #fff; text-decoration: none; }
.hdr-left img { width: 34px; height: 34px; object-fit: contain; }
.hdr-left small { display: block; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: #7a9bb5; font-weight: 600; margin-top: -2px; }
.hdr-right, .hdr-nav a { font-size: 14px; font-weight: 500; color: #b9cbe2; text-decoration: none; }
.hdr-right:hover, .hdr-nav a:hover { color: #fff; }
.hdr-nav { display: flex; align-items: center; gap: 20px; }
.theme-toggle {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06); color: #fff; cursor: pointer; font-size: 15px; line-height: 1;
}
.theme-toggle:hover { background: rgba(255, 255, 255, 0.12); }

main { flex: 1; width: 100%; max-width: 980px; margin: 0 auto; padding: 48px 18px 80px; }

/* labels and headings */
.eyebrow { font-weight: 700; font-size: 12px; letter-spacing: 0.18em; color: var(--accent); text-transform: uppercase; }
.eyebrow.ripe { color: var(--accent); }
h1 { font-size: clamp(2rem, 6vw, 3.3rem); line-height: 1.06; font-weight: 800; letter-spacing: -0.03em; margin: 14px 0 18px; }
h1 .grad, h2 .grad { background: linear-gradient(115deg, var(--orange), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; margin: 8px 0 14px; }
.lede { font-size: 1.08rem; color: var(--soft); max-width: 680px; }
section { margin-top: 64px; }

/* buttons */
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  padding: 11px 22px; border-radius: 50px; font-family: inherit; font-size: 15px; font-weight: 600; text-decoration: none;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
}
.btn-primary { background: var(--orange); border: 1px solid var(--orange); color: #2b1a00; box-shadow: 0 4px 14px rgba(255, 140, 0, 0.30); }
.btn-primary:hover { background: var(--orange-hover); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(255, 140, 0, 0.40); }
.btn-primary:disabled { opacity: 0.55; cursor: wait; transform: none; }
.btn-ghost { background: transparent; border: 1px solid var(--accent); color: var(--accent); font-size: 14px; padding: 9px 18px; }
.btn-ghost:hover { background: var(--accent-soft); transform: translateY(-2px); }
.btn-ghost.danger { border-color: var(--bad); color: var(--bad); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* cards and grids */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stat { padding: 18px; }
.stat b { display: block; font-size: 2rem; font-weight: 800; color: var(--accent); line-height: 1.1; margin-bottom: 6px; }
.stat span { font-size: 0.88rem; color: var(--soft); }
.callout { margin-top: 16px; padding: 16px 18px; border-left: 4px solid var(--orange); border-radius: var(--radius-sm); background: var(--bg-card); box-shadow: var(--shadow-sm); }
.source { margin-top: 10px; font-size: 0.8rem; color: var(--dim); }

.offers { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 18px; }
.offer { padding: 18px 20px; }
.offer h3 { font-size: 1rem; margin-bottom: 4px; }
.offer h3::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); margin: 0 8px 2px 0; }
.offer p { font-size: 0.9rem; color: var(--soft); }

.compare { padding: 16px 20px; display: grid; grid-template-columns: 120px 1fr; gap: 6px 14px; margin-bottom: 10px; }
.compare .k { font-weight: 700; font-size: 11px; letter-spacing: 0.14em; padding-top: 4px; color: var(--dim); }
.compare .k.ripe { color: var(--accent); }
.compare .v { font-size: 0.95rem; color: var(--soft); }
.compare .v.us { color: var(--text); font-weight: 600; }

/* account card */
.auth { max-width: 440px; margin: 0 auto; }
.tabs { display: flex; border-bottom: 1px solid var(--border); }
.tab {
  flex: 1; padding: 14px; background: none; border: none; border-bottom: 2px solid transparent; cursor: pointer;
  font-family: inherit; font-weight: 600; font-size: 14px; color: var(--dim);
}
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.form-body { padding: 1.5rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: 13px; color: var(--soft); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); outline: none;
  background: var(--bg-soft); color: var(--text); font-family: inherit; font-size: 15px;
  transition: border 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field select { -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 34px;
  background: var(--bg-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%231f6fd6'/%3E%3C/svg%3E") no-repeat right 14px center; }
.form-body .btn-primary { width: 100%; }
.msg { min-height: 1.2em; margin-top: 12px; font-size: 0.88rem; color: var(--bad); }
.msg.ok { color: var(--ok); }
.status-bar {
  display: flex; justify-content: space-between; align-items: center; padding: 10px 1.5rem; border-top: 1px solid var(--border);
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em; color: var(--dim);
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); display: inline-block; margin-right: 6px; }
.row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.row .k { color: var(--dim); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; }
.hidden { display: none !important; }

footer { padding: 22px 16px 34px; text-align: center; font-size: 13px; line-height: 1.7; color: var(--soft); }

/* what is lighthouse */
.lede + .lede { margin-top: 14px; }
.three { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 18px; }
.tool { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.tool h3 { font-size: 1.1rem; }
.tool p { font-size: 0.92rem; color: var(--soft); }
.tool .use { color: var(--text); }
.tool .cost { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); font-size: 0.86rem; }
.tool .cost span, .badge { font-weight: 700; font-size: 11px; letter-spacing: 0.12em; color: var(--dim); }
.tool .cost span { display: block; margin-bottom: 4px; }
.figure { margin-top: 20px; }
.figure img { display: block; width: 100%; height: auto; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-md); }
.figure figcaption { margin-top: 12px; font-size: 0.88rem; color: var(--soft); }

/* research pieces */
.paper { padding: 26px; margin-top: 18px; }
.paper-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.badge { background: var(--accent-soft); color: var(--accent); border-radius: 50px; padding: 4px 11px; letter-spacing: 0.06em; }
.paper h3 { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.01em; margin: 8px 0 6px; }
.paper-sub { color: var(--soft); font-size: 0.96rem; }
.grid.mini { margin-top: 16px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.grid.mini .stat { background: var(--bg-soft); border-radius: var(--radius-sm); padding: 14px; }
.grid.mini .stat b { font-size: 1.5rem; }
.points { margin: 16px 0 0 18px; display: grid; gap: 8px; color: var(--soft); font-size: 0.96rem; }
.points li::marker { color: var(--orange); }
.status { margin-top: 14px; font-size: 0.86rem; color: var(--dim); }
.paper-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* published work */
h3.group { font-size: 1.05rem; margin: 30px 0 12px; }
.quotes { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.quote { margin: 0; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.quote blockquote { font-size: 1.02rem; line-height: 1.5; border-left: 3px solid var(--orange); padding-left: 14px; }
.quote figcaption { display: flex; flex-direction: column; gap: 6px; margin-top: auto; font-size: 0.83rem; color: var(--soft); }
.quote figcaption b { color: var(--text); font-size: 0.9rem; }
.quote .why { color: var(--dim); }
.quote a, .refs a { font-family: var(--mono); font-size: 0.75rem; word-break: break-all; }
.refs { margin-top: 16px; padding: 18px 20px; }
.refs summary { cursor: pointer; font-weight: 600; }
.refs ul { margin: 14px 0 0 18px; display: grid; gap: 8px; font-size: 0.86rem; color: var(--soft); }

/* paper request form */
.auth-card { max-width: 580px; }
.opt { font-weight: 400; color: var(--dim); }
#req-done { padding: 1.5rem; font-size: 0.95rem; }

@media (max-width: 760px) {
  .hdr-nav a:not(:last-of-type) { display: none; }
}
@media (max-width: 520px) {
  .hdr { padding: 0 16px; }
  .compare { grid-template-columns: 1fr; }
  .paper { padding: 20px 16px; }
}
.paper .doi { margin-top: 8px; }
.paper .doi a { font-family: var(--mono); font-size: 0.8rem; }
