/* =============================================================
   1. Tokens (same palette as every Kalculia tool, for brand consistency)
   ============================================================= */
:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-2: #eef1f7;
  --text: #12172b;
  --text-muted: #5b6478;
  --border: #e1e5ee;
  --accent: #2f6fed;
  --accent-dark: #1d4fc2;
  --accent-soft: #e8f0ff;
  --money: #0f9d74;
  --money-soft: #e4f7ef;
  --warning: #b8590a;
  --warning-soft: #fdf1e2;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px -12px rgba(18, 23, 43, 0.18);
  --shadow-sm: 0 2px 10px -4px rgba(18, 23, 43, 0.12);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Manrope", var(--sans);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1120; --surface: #161b30; --surface-2: #1e2440;
    --text: #eef1fb; --text-muted: #a2a9c4; --border: #2a3157;
    --accent: #6d97ff; --accent-dark: #8fadff; --accent-soft: #1c2a52;
    --money: #4fd8a6; --money-soft: #123829;
    --warning: #f4a860; --warning-soft: #3a2711;
    --shadow: 0 10px 30px -12px rgba(0,0,0,.5); --shadow-sm: 0 2px 10px -4px rgba(0,0,0,.4);
  }
}
:root[data-theme="dark"] {
  --bg: #0d1120; --surface: #161b30; --surface-2: #1e2440;
  --text: #eef1fb; --text-muted: #a2a9c4; --border: #2a3157;
  --accent: #6d97ff; --accent-dark: #8fadff; --accent-soft: #1c2a52;
  --money: #4fd8a6; --money-soft: #123829;
  --warning: #f4a860; --warning-soft: #3a2711;
  --shadow: 0 10px 30px -12px rgba(0,0,0,.5); --shadow-sm: 0 2px 10px -4px rgba(0,0,0,.4);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--display); text-wrap: balance; line-height: 1.15; letter-spacing: -0.01em; font-weight: 800; }
ul, ol { padding: 0; margin: 0; list-style: none; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: fixed; top: -100px; left: 1rem; padding: .6rem 1rem; background: var(--accent); color: #fff; z-index: 9999; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: 960px; margin-inline: auto; padding-inline: 1.25rem; }

/* =============================================================
   3. Header / footer
   ============================================================= */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.site-header-row { display: flex; align-items: center; justify-content: space-between; padding-block: .6rem; max-width: 960px; margin-inline: auto; padding-inline: 1.25rem; }
.logo { display: flex; align-items: center; gap: .5rem; font-family: var(--display); font-weight: 800; font-size: 1.1rem; }
.site-footer { border-top: 1px solid var(--border); padding-block: 2rem; margin-top: 1rem; }
.footer-row { display: flex; flex-direction: column; gap: 1rem; font-size: .85rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 1.2rem; }
.footer-links a:hover { color: var(--accent); }
@media (min-width: 720px) { .footer-row { flex-direction: row; justify-content: space-between; align-items: center; } }

/* =============================================================
   4. Hub hero
   ============================================================= */
.hub-hero { padding-block: 2.6rem 1.6rem; text-align: center; }
.hub-hero h1 { font-size: clamp(1.8rem, 5vw, 2.7rem); max-width: 22ch; margin-inline: auto; }
.hub-hero p { margin-top: .9rem; color: var(--text-muted); font-size: 1.08rem; max-width: 52ch; margin-inline: auto; }
@media (min-width: 720px) { .hub-hero { padding-block: 3.5rem 2rem; } }

/* =============================================================
   5. Tool grid
   ============================================================= */
.tool-grid { display: grid; grid-template-columns: 1fr; gap: 1.1rem; padding-block: 1rem 3rem; }
@media (min-width: 640px) { .tool-grid { grid-template-columns: repeat(2, 1fr); } }

.hub-card {
  display: flex; flex-direction: column; gap: .6rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out), border-color .18s var(--ease-out);
}
a.hub-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent); }
.hub-card-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.hub-card-icon svg { width: 24px; height: 24px; }
.hub-card h3 { font-size: 1.1rem; }
.hub-card p { font-size: .92rem; color: var(--text-muted); flex-grow: 1; }
.hub-card-cta { font-size: .88rem; font-weight: 700; color: var(--accent-dark); }

.hub-card--soon { opacity: .6; cursor: default; }
.hub-card--soon:hover { transform: none; box-shadow: var(--shadow-sm); border-color: var(--border); }
.hub-badge-soon { display: inline-block; align-self: flex-start; background: var(--surface-2); color: var(--text-muted); font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .25rem .6rem; border-radius: 999px; }

/* =============================================================
   6a. Featured "coming soon" banner (the flagship tool)
   ============================================================= */
.featured-banner {
  display: flex; flex-direction: column-reverse; align-items: center; gap: 1.4rem;
  text-align: center;
  margin-bottom: 2.2rem; padding: 2rem 1.6rem;
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(135deg, var(--accent), var(--money));
  color: #fff;
  box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.featured-banner::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 60%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255,255,255,.25), transparent 70%);
  pointer-events: none;
}
.featured-banner-icon { width: 84px; height: 84px; flex-shrink: 0; color: #fff; opacity: .95; }
.featured-banner-icon svg { width: 100%; height: 100%; }
.featured-banner-text { position: relative; }
.featured-badge {
  display: inline-block; background: rgba(255,255,255,.22); backdrop-filter: blur(4px);
  color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .03em;
  padding: .35rem .8rem; border-radius: 999px; margin-bottom: .8rem;
}
.featured-banner h2 { font-size: clamp(1.35rem, 3.2vw, 1.9rem); color: #fff; max-width: 26ch; margin-inline: auto; }
.featured-banner p { margin-top: .7rem; color: rgba(255,255,255,.92); font-size: .98rem; max-width: 52ch; margin-inline: auto; }

@media (min-width: 720px) {
  .featured-banner { flex-direction: row; text-align: left; padding: 2.6rem 3rem; gap: 2.2rem; }
  .featured-banner-icon { width: 108px; height: 108px; }
  .featured-banner h2, .featured-banner p { margin-inline: 0; }
}

/* =============================================================
   6. Ad slot (same placeholder convention as the tools)
   ============================================================= */
.ad-slot { display: flex; align-items: center; justify-content: center; border: 1.5px dashed var(--border); border-radius: var(--radius-sm); color: var(--text-muted); font-size: .8rem; font-weight: 700; letter-spacing: .08em; background: var(--surface-2); }
.ad-label { opacity: .7; }
.ad-slot--leaderboard { min-height: 90px; margin: 0 auto 2rem; max-width: 960px; }

/* =============================================================
   7. Trust strip
   ============================================================= */
.trust-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.6rem; padding-block: .5rem 2.5rem; color: var(--text-muted); font-size: .88rem; }
.trust-strip span { display: flex; align-items: center; gap: .4rem; }
