/*
 * Shared styles for the static SEO pages under /calculators and /guides.
 *
 * This file holds the CSS rules that were previously duplicated inline in the
 * <style> block of every calculator and guide page (design tokens, reset,
 * base typography, layout, buttons, site header and footer). Each page links
 * to it via <link rel="stylesheet" href="/styles/static-pages.css"> and keeps
 * only its own page-specific rules inline.
 *
 * Generated from the shared rules common to all static pages; do not add
 * page-specific styles here.
 */

/* ---------- Design tokens (Iris design system — mirrors landing.html) ---------- */

:root {
        color-scheme: light dark;
        --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          Helvetica, Arial, sans-serif;

        --bg: #ffffff;
        --bg-subtle: #f7f9fc;
        --bg-elevated: #ffffff;
        --surface: #f4f6fb;
        --border: #e5eaf3;
        --border-strong: #d5deee;
        --text: #172033;
        --text-muted: #526070;
        --text-faint: #7c8aa0;

        --brand: #2563eb;
        --brand-strong: #1d4ed8;
        --brand-deep: #1e3a8a;
        --brand-soft: #eef4ff;
        --brand-contrast: #ffffff;

        --positive: #047857;
        --positive-soft: #ecfdf5;
        --warn: #b45309;
        --warn-soft: #fffbeb;

        --shadow-sm: 0 1px 2px rgba(23, 32, 51, 0.06);
        --shadow-md: 0 12px 30px -12px rgba(23, 32, 51, 0.18);
        --shadow-lg: 0 40px 80px -32px rgba(23, 32, 51, 0.3);

        --radius-sm: 8px;
        --radius-md: 12px;
        --radius-lg: 18px;
        --radius-xl: 26px;

        --maxw: 1120px;
        --gutter: clamp(20px, 5vw, 48px);
      }

@media (prefers-color-scheme: dark) {
        :root {
          --bg: #0b1120;
          --bg-subtle: #0e1526;
          --bg-elevated: #12203a;
          --surface: #12203a;
          --border: rgba(157, 184, 240, 0.16);
          --border-strong: rgba(157, 184, 240, 0.28);
          --text: #e8edf6;
          --text-muted: #9db8f0;
          --text-faint: #7f93b8;

          --brand: #4f8cff;
          --brand-strong: #6aa0ff;
          --brand-deep: #9db8f0;
          --brand-soft: rgba(79, 140, 255, 0.12);
          --brand-contrast: #0b1120;

          --positive: #34d399;
          --positive-soft: rgba(52, 211, 153, 0.12);
          --warn: #fbbf24;
          --warn-soft: rgba(251, 191, 36, 0.12);

          --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
          --shadow-md: 0 12px 30px -12px rgba(0, 0, 0, 0.55);
          --shadow-lg: 0 40px 90px -30px rgba(0, 0, 0, 0.7);
        }
      }

/* ---------- Reset / base ---------- */

*,
      *::before,
      *::after {
        box-sizing: border-box;
      }

html {
        -webkit-text-size-adjust: 100%;
      }

body {
        margin: 0;
        font-family: var(--font-sans);
        background: var(--bg);
        color: var(--text);
        line-height: 1.6;
        -webkit-font-smoothing: antialiased;
        text-rendering: optimizeLegibility;
        overflow-x: hidden;
      }

h1,
      h2,
      h3 {
        line-height: 1.14;
        letter-spacing: -0.02em;
        margin: 0;
        font-weight: 800;
      }

p {
        margin: 0;
      }

a {
        color: inherit;
        text-decoration: none;
      }

svg {
        max-width: 100%;
        display: block;
      }

:focus-visible {
        outline: 3px solid var(--brand);
        outline-offset: 2px;
        border-radius: 6px;
      }

/* ---------- Layout helpers ---------- */

.wrap {
        width: 100%;
        max-width: var(--maxw);
        margin-inline: auto;
        padding-inline: var(--gutter);
      }

.eyebrow {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 0.8rem;
        font-weight: 600;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: var(--brand);
      }

.eyebrow::before {
        content: "";
        width: 22px;
        height: 2px;
        border-radius: 2px;
        background: var(--brand);
        opacity: 0.6;
      }

/* ---------- Buttons ---------- */

.btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-family: inherit;
        font-size: 0.98rem;
        font-weight: 600;
        line-height: 1;
        padding: 13px 22px;
        border-radius: var(--radius-md);
        border: 1px solid transparent;
        cursor: pointer;
        transition: transform 0.15s ease, box-shadow 0.15s ease,
          background 0.15s ease, border-color 0.15s ease;
        white-space: nowrap;
      }

.btn:hover {
        transform: translateY(-1px);
      }

.btn-primary {
        background: var(--brand);
        color: var(--brand-contrast);
        box-shadow: var(--shadow-md);
      }

.btn-primary:hover {
        background: var(--brand-strong);
      }

.btn .arrow {
        transition: transform 0.15s ease;
      }

.btn:hover .arrow {
        transform: translateX(2px);
      }

/* ---------- Header ---------- */

.skip-link {
        position: absolute;
        left: 12px;
        top: -60px;
        z-index: 100;
        background: var(--brand);
        color: var(--brand-contrast);
        padding: 10px 16px;
        border-radius: var(--radius-sm);
        font-weight: 600;
        transition: top 0.15s ease;
      }

.skip-link:focus {
        top: 12px;
      }

.site-header {
        position: sticky;
        top: 0;
        z-index: 50;
        background: color-mix(in srgb, var(--bg) 82%, transparent);
        backdrop-filter: saturate(1.4) blur(12px);
        border-bottom: 1px solid var(--border);
      }

.header-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        height: 66px;
      }

.brand {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        font-weight: 700;
        font-size: 1.05rem;
        letter-spacing: -0.01em;
      }

.brand-mark {
        width: 30px;
        height: 30px;
        border-radius: 9px;
        background: linear-gradient(160deg, #2563eb, #1e3a8a);
        display: grid;
        place-items: center;
        box-shadow: var(--shadow-sm);
        flex: none;
      }

.header-nav {
        display: flex;
        align-items: center;
        gap: 8px;
      }

.header-nav a.navlink {
        padding: 8px 12px;
        border-radius: var(--radius-sm);
        color: var(--text-muted);
        font-size: 0.94rem;
        font-weight: 500;
        transition: color 0.15s ease, background 0.15s ease;
      }

.header-nav a.navlink:hover {
        color: var(--text);
        background: var(--surface);
      }

.header-cta {
        padding: 10px 18px;
      }

@media (max-width: 640px) {
        .header-nav a.navlink {
          display: none;
        }
      }

/* ---------- Footer ---------- */

.footer-inner {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        align-items: center;
        justify-content: space-between;
        padding-block: 34px;
      }

.footer-links {
        display: flex;
        flex-wrap: wrap;
        gap: 8px 22px;
      }

.footer-links a {
        color: var(--text-muted);
        font-size: 0.9rem;
        font-weight: 500;
      }

.footer-links a:hover {
        color: var(--brand);
      }

.footer-meta {
        color: var(--text-faint);
        font-size: 0.84rem;
        width: 100%;
        padding-bottom: 30px;
      }
