/* ============================================================
   Frugal · frugal.run — clean light theme (shared across pages)
   ============================================================ */
:root {
  --bg:        #ffffff;
  --bg-soft:   #f8fafc;   /* slate-50  — alternating sections */
  --bg-code:   #f1f5f9;   /* slate-100 — code blocks */
  --text:      #0f172a;   /* slate-900 — headings */
  --body:      #475569;   /* slate-600 — body */
  --muted:     #64748b;   /* slate-500 — labels/captions */
  --border:    #e2e8f0;   /* slate-200 */
  --border-2:  #cbd5e1;   /* slate-300 */
  --accent:    #0891b2;   /* cyan-600 */
  --accent-d:  #0e7490;   /* cyan-700 */
  --accent-soft: #ecfeff; /* cyan-50  */
  --ok:        #059669;   /* emerald-600 */
  --radius:    12px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,0.04), 0 1px 3px rgba(15,23,42,0.06);
  --shadow-md: 0 10px 30px -14px rgba(15,23,42,0.18);
  --shadow-lg: 0 30px 60px -30px rgba(15,23,42,0.28);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--body);
  font-family: var(--sans); line-height: 1.65; font-size: 16px;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3 { color: var(--text); line-height: 1.15; letter-spacing: -0.01em; }
a { color: var(--accent-d); text-decoration: none; }
a:hover { color: var(--accent); text-decoration: underline; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(52px, 8vw, 96px) 0; }
.section--soft { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.center { text-align: center; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* ---- top nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.85); backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav .wrap { display: flex; align-items: center; gap: 20px; height: 62px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px;
  color: var(--text); text-decoration: none; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 26px; height: 26px; border-radius: 7px; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--body); font-size: 14.5px; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links .btn { margin-left: 4px; }
@media (max-width: 680px) { .nav-links a:not(.btn) { display: none; } }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 9px; font-weight: 600; font-size: 14.5px;
  background: var(--accent); color: #fff; border: 1px solid var(--accent);
  box-shadow: var(--shadow-sm); transition: background .15s, transform .04s, box-shadow .15s;
}
.btn:hover { background: var(--accent-d); color: #fff; text-decoration: none; box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: #fff; color: var(--text); border-color: var(--border-2); box-shadow: none; }
.btn--ghost:hover { background: var(--bg-soft); color: var(--text); border-color: var(--muted); }

/* ---- hero ---- */
.hero { padding: clamp(56px, 9vw, 104px) 0 clamp(40px, 6vw, 72px); text-align: center; }
.eyebrow { font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-d); font-weight: 700; margin: 0 0 14px; }
.hero h1 { margin: 0 auto 18px; max-width: 16ch; font-weight: 800;
  font-size: clamp(34px, 6vw, 60px); }
.lede { margin: 0 auto 26px; max-width: 62ch; font-size: clamp(17px, 2.2vw, 20px); color: var(--body); }
.lede strong { color: var(--text); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 6px; }

/* ---- code / install block ---- */
.cmd {
  margin: 30px auto 0; max-width: 760px; text-align: left;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow-md); overflow: hidden;
}
.cmd-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px;
  background: var(--bg-soft); border-bottom: 1px solid var(--border);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.cmd-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-2); }
.cmd-bar a { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 12.5px; }
.cmd-body { display: flex; align-items: center; gap: 12px; padding: 15px 16px; }
.cmd-body code { flex: 1; min-width: 0; font-family: var(--mono); font-size: clamp(12.5px, 1.7vw, 14.5px);
  color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.cmd-body code b { color: var(--accent-d); font-weight: 700; }
.copy { flex-shrink: 0; cursor: pointer; font-family: var(--sans); font-weight: 600; font-size: 12.5px;
  color: var(--text); background: #fff; border: 1px solid var(--border-2); padding: 7px 13px;
  border-radius: 8px; transition: background .15s; }
.copy:hover { background: var(--bg-soft); }
@media (max-width: 560px) { .cmd-body { flex-direction: column; align-items: stretch; } .copy { align-self: flex-end; } }

/* ---- section headers ---- */
.shead { margin: 0 0 8px; font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-d); font-weight: 700; }
.stitle { margin: 0 0 14px; font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; }
.sintro { margin: 0 0 34px; max-width: 66ch; font-size: 17px; color: var(--body); }
.sintro strong { color: var(--text); font-weight: 600; }

/* ---- feature grid ---- */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card { border: 1px solid var(--border); border-radius: var(--radius); background: #fff;
  padding: 22px; box-shadow: var(--shadow-sm); transition: transform .16s, box-shadow .16s, border-color .16s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-2); }
.card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 9px; }
.card p { margin: 0; font-size: 14.5px; color: var(--body); }
.card p strong { color: var(--text); font-weight: 600; }
.ico { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; }

/* NEW badge */
.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700;
  color: var(--accent-d); background: var(--accent-soft); border: 1px solid #a5f3fc; }

/* ---- showcase (feature + screenshot) ---- */
.showcase { display: grid; gap: 40px; align-items: center; grid-template-columns: 1fr 1.1fr; }
.showcase.rev { grid-template-columns: 1.1fr 1fr; }
.showcase.rev .showcase-text { order: 2; }
@media (max-width: 860px) { .showcase, .showcase.rev { grid-template-columns: 1fr; }
  .showcase.rev .showcase-text { order: 0; } }
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin: 18px 0 0; padding: 0; list-style: none; }
.chips li { font-size: 13px; color: var(--body); border: 1px solid var(--border); border-radius: 8px;
  padding: 6px 11px; background: var(--bg-soft); }
.chips li b { color: var(--text); font-weight: 600; }
.shot { margin: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: #0b1220; box-shadow: var(--shadow-lg); }
.shot img { width: 100%; height: auto; }
.shotcap { margin: 12px 2px 0; font-size: 13px; color: var(--muted); }

/* ---- callout / note ---- */
.callout { border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 10px;
  background: var(--bg-soft); padding: 16px 20px; color: var(--body); font-size: 15px; }
.callout strong { color: var(--text); }
.note { border: 1px solid #bae6fd; background: var(--accent-soft); border-radius: 10px;
  padding: 12px 16px; font-size: 14px; color: #0c4a6e; }
.note b { color: #0c4a6e; }

/* ---- pricing ---- */
.price { max-width: 640px; margin: 0 auto; text-align: center; border: 1px solid var(--border);
  border-radius: 16px; background: #fff; padding: clamp(30px, 5vw, 48px); box-shadow: var(--shadow-md); }
.price .fig { font-size: clamp(44px, 8vw, 66px); font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.price .fig small { font-size: 0.32em; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.price p { max-width: 48ch; margin: 12px auto 0; color: var(--body); }
.price .sub-hint { margin-top: 16px; font-size: 13.5px; color: var(--muted); }

/* ---- docs layout ---- */
.doc { display: grid; grid-template-columns: 210px 1fr; gap: 44px; align-items: start; }
@media (max-width: 820px) { .doc { grid-template-columns: 1fr; } .toc { position: static !important; } }
.toc { position: sticky; top: 82px; font-size: 14px; }
.toc-title { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.toc a { display: block; padding: 5px 0; color: var(--body); }
.toc a:hover { color: var(--accent-d); text-decoration: none; }
.blk { padding: 8px 0 30px; border-bottom: 1px solid var(--border); margin-bottom: 30px; }
.blk:last-child { border-bottom: 0; }
.blk h2 { font-size: 24px; margin: 0 0 12px; }
.blk p, .blk li { color: var(--body); }
.blk ul, .blk ol { padding-left: 20px; }
.blk li { margin: 6px 0; }
.blk code, .inline { font-family: var(--mono); font-size: 0.9em; background: var(--bg-code);
  padding: 2px 6px; border-radius: 5px; color: var(--accent-d); }
.blk strong, .blk b { color: var(--text); font-weight: 600; }
.blk h2 .n { color: var(--muted); margin-right: 8px; font-weight: 700; }
.blk em { font-style: italic; color: var(--body); }
.updated { color: var(--muted); font-size: 13px; margin: -4px 0 24px; }

/* ---- faq ---- */
.faq details { border: 1px solid var(--border); border-radius: 10px; background: #fff; padding: 2px 18px; margin: 0 0 12px; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; padding: 15px 0; font-weight: 600; color: var(--text); font-size: 16px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--accent); font-weight: 700; }
.faq details[open] summary::after { content: "\2013"; }
.faq details[open] summary { border-bottom: 1px solid var(--border); }
.faq p { padding: 12px 0 4px; margin: 0; color: var(--body); font-size: 15px; }

/* ---- pillars (finops) ---- */
.pillars { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* ---- docs code blocks, callouts, pills ---- */
pre.code { margin: 12px 0; padding: 14px 16px; overflow-x: auto; background: var(--bg-code);
  border: 1px solid var(--border); border-radius: 8px; font-family: var(--mono);
  font-size: 13px; line-height: 1.6; color: var(--text); }
pre.code b { color: var(--accent-d); font-weight: 700; }
pre.code .c { color: var(--muted); }
.note b, .warn b { display: block; margin-bottom: 3px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.warn { margin: 14px 0; padding: 12px 16px; border-radius: 10px; font-size: 14px;
  border: 1px solid #fde68a; background: #fffbeb; color: #92400e; }
.warn b { color: #b45309; }
.pill { display: inline-block; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: #fff; background: var(--accent); border-radius: 5px; padding: 1px 8px; font-weight: 700; vertical-align: middle; }
.pill.v { background: transparent; color: var(--muted); border: 1px solid var(--border-2); }

/* ---- footer ---- */
.footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding: 40px 0; }
.footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.footer .brand { font-size: 16px; }
.footer nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer nav a { color: var(--body); font-size: 14px; }
.footer .tagline { flex-basis: 100%; margin-top: 8px; color: var(--muted); font-size: 13px; }
.fine { margin-top: 22px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.fine b { color: var(--body); }
