/* Budget — budget.otherworld.dev
   Static marketing site. No frameworks, no external requests. */

:root {
  --blue: #0082c9;
  --blue-dark: #016aa6;
  --blue-soft: #e8f4fc;
  --green: #2e7d32;
  --red: #b71c1c;
  --ink: #16202b;
  --body: #38495a;
  --muted: #6b7c8c;
  --line: #e4eaf0;
  --bg: #ffffff;
  --bg-soft: #f5f8fb;
  --bg-dark: #0e1a28;
  --bg-dark-2: #13243a;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(16,32,48,.06), 0 12px 32px rgba(16,32,48,.10);
  --shadow-sm: 0 1px 3px rgba(16,32,48,.08), 0 4px 14px rgba(16,32,48,.06);
  --container: 1080px;
  --wide: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
/* height:auto is required — the screenshots carry width/height attributes, and
   without it the HTML height wins and the image stretches as the width scales */
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.wide { max-width: var(--wide); }
.center { text-align: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { color: var(--body); padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: .98rem; }
.nav-links a:hover { background: var(--bg-soft); text-decoration: none; color: var(--ink); }
.nav-links a.active { color: var(--blue-dark); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; transition: .2s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer; transition: .15s; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(0,130,201,.28); }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #c9d4de; background: var(--bg-soft); }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 76px 0 0;
  background:
    radial-gradient(1100px 480px at 50% -120px, var(--blue-soft), transparent 70%);
}
.hero .eyebrow {
  display: inline-block; font-size: .82rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--blue-dark);
  background: var(--blue-soft); padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { max-width: 14ch; margin-inline: auto; }
.hero .lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 60ch; margin: 18px auto 26px; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.spec { margin: 22px 0 0; color: var(--muted); font-size: .92rem; }
.spec b { color: var(--ink); }
.spec span { margin: 0 4px; }

/* ---------- Browser-framed screenshot ---------- */
.shot {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: #fff; box-shadow: var(--shadow);
}
.shot-bar {
  display: flex; align-items: center; gap: 7px; padding: 10px 14px;
  background: var(--bg-soft); border-bottom: 1px solid var(--line);
}
.shot-bar i { width: 11px; height: 11px; border-radius: 50%; background: #d7dee6; display: block; }
.shot-bar i:nth-child(1) { background: #ff5f57; }
.shot-bar i:nth-child(2) { background: #febc2e; }
.shot-bar i:nth-child(3) { background: #28c840; }
.shot img { display: block; width: 100%; height: auto; }
.hero-shot { max-width: 960px; margin: 46px auto 0; transform: translateZ(0); }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-alt { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 56ch; margin: 0 auto 44px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* persona / pill row */
.personas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.personas span {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 18px; font-weight: 500; color: var(--ink); font-size: .96rem; box-shadow: var(--shadow-sm);
}

/* feature card grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); transition: .18s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
a.card { color: var(--body); }
a.card:hover { text-decoration: none; border-color: #cfe0ee; }
.card .ico {
  width: 42px; height: 42px; border-radius: 10px; background: var(--blue-soft);
  display: grid; place-items: center; margin-bottom: 16px; font-size: 22px;
}
.card h3 { margin-bottom: 6px; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }

/* alternating feature rows (features page) */
.feature-row {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center;
  padding: 56px 0; border-top: 1px solid var(--line);
}
.feature-row:first-of-type { border-top: 0; }
.feature-row.flip .feature-copy { order: 2; }
.feature-copy h2 { font-size: 1.7rem; }
.feature-copy ul { margin: 16px 0 0; padding: 0; list-style: none; }
.feature-copy li { position: relative; padding: 6px 0 6px 28px; color: var(--body); }
.feature-copy li::before {
  content: ""; position: absolute; left: 0; top: 13px; width: 16px; height: 16px;
  background: var(--green); border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* docs links under a feature row */
.feature-links { margin: 18px 0 0; font-size: .93rem; color: var(--muted); }
.feature-links a { font-weight: 500; }

/* ---------- Gallery (screenshots page) ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.gallery figure { margin: 0; }
.gallery figcaption { margin-top: 10px; color: var(--muted); font-size: .92rem; text-align: center; }
.gallery .shot { cursor: zoom-in; }
.theme-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 4px; background: #fff; margin: 0 auto 36px; }
.theme-toggle button { border: 0; background: none; padding: 8px 20px; border-radius: 999px; cursor: pointer; font-weight: 600; color: var(--muted); font-size: .95rem; }
.theme-toggle button.active { background: var(--blue); color: #fff; }

/* lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(8,16,26,.86); display: none; place-items: center; z-index: 100; padding: 30px; }
.lightbox.open { display: grid; }
.lightbox img { max-width: 95vw; max-height: 92vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox .close { position: absolute; top: 18px; right: 24px; color: #fff; font-size: 34px; cursor: pointer; line-height: 1; background: none; border: 0; }

/* ---------- Callout / CTA band ---------- */
.cta-band { text-align: center; background: linear-gradient(135deg, var(--blue), #00a1d6); color: #fff; border-radius: 20px; padding: 56px 28px; margin: 0 auto; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 50ch; margin: 0 auto 24px; }
.cta-band .btn-ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.4); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.24); }
.cta-band .btn-primary { background: #fff; color: var(--blue-dark); box-shadow: none; }

/* ---------- Generic prose (install/privacy) ---------- */
.prose { max-width: 720px; margin: 0 auto; }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.req { display: grid; gap: 12px; margin: 8px 0 0; }
.req .item { display: flex; gap: 12px; align-items: baseline; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; }
.req .item b { color: var(--ink); min-width: 130px; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 18px 46px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; background: var(--blue); color: #fff; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .95rem; }
.note { background: var(--blue-soft); border-left: 3px solid var(--blue); border-radius: 8px; padding: 14px 18px; color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); color: #aebcca; padding: 56px 0 30px; margin-top: 20px; }
.site-footer a { color: #cdd9e5; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 1.1rem; margin-bottom: 12px; }
.footer-brand img { width: 28px; height: 28px; }
.footer-col h4 { color: #fff; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 12px; }
.footer-col a { display: block; padding: 4px 0; color: #aebcca; font-size: .95rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 22px; font-size: .85rem; color: #7e8ea0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom .disc { max-width: 60ch; color: #7e8ea0; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 26px; }
  .feature-row.flip .feature-copy { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-links { position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 16px 18px; gap: 2px; display: none; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; }
  .nav-cta { margin: 8px 0 0; }
  .nav-toggle { display: block; }
  .grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  section { padding: 52px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
