/* Rocket Software Group — Sovereign Cloud & Compute Engineering
   Unified Design System & Editorial Stylesheet */

:root {
    --bg: #f3f4f6;
    --fg: #0b1220;
    --mute: #535c6d;
    --card: #ffffff;
    --line: #d8dce3;
    --acc: #8c6d2a;
    --acc-hover: #75591f;
    --acc-fg: #ffffff;
    --soft: #eaecef;
    --soft-acc: rgba(140, 109, 42, 0.1);
    --ok: #128a47;
    --warn: #b45309;
    --code-bg: #101624;
    --code-fg: #e5e9f0;
    --font-sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #070a11;
        --fg: #ece9e2;
        --mute: #9aa0ad;
        --card: #0c111b;
        --line: #1b2333;
        --acc: #c8ad73;
        --acc-hover: #d8bf89;
        --acc-fg: #14100a;
        --soft: #121928;
        --soft-acc: rgba(200, 173, 115, 0.13);
        --ok: #3ddc84;
        --warn: #f59e0b;
        --code-bg: #05080f;
        --code-fg: #e6edf3;
    }
}

:root[data-theme="dark"] {
    --bg: #070a11;
    --fg: #ece9e2;
    --mute: #9aa0ad;
    --card: #0c111b;
    --line: #1b2333;
    --acc: #c8ad73;
    --acc-hover: #d8bf89;
    --acc-fg: #14100a;
    --soft: #121928;
    --soft-acc: rgba(200, 173, 115, 0.13);
    --ok: #3ddc84;
    --warn: #f59e0b;
    --code-bg: #05080f;
    --code-fg: #e6edf3;
}

html {
    scroll-padding-top: calc(88px + env(safe-area-inset-top, 0px));
    scroll-behavior: smooth;
}

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font: 400 16px/1.65 var(--font-sans);
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(920px 540px at 85% -5%, color-mix(in srgb, var(--acc) 11%, transparent), transparent 70%);
}

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

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

.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4, p {
    margin: 0;
}

h1, h2, h3 {
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.serif,
.hero h1,
.page-hero h1,
.split h2,
.head h2,
.contact h2,
.rows h3,
.plan h3,
.card-title {
    font-family: var(--font-serif);
    font-weight: 400;
}

/* Header & Navigation */
header {
    position: sticky;
    top: env(safe-area-inset-top, 0px);
    z-index: 40;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.nav {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 14px 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-size: 16px;
}

.logo i {
    width: 28px;
    height: 28px;
    border-radius: 3px;
    border: 1px solid var(--acc);
    color: var(--acc);
    display: grid;
    place-items: center;
    font-style: normal;
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: 15px;
}

.nav-links {
    display: flex;
    gap: 24px;
    margin-left: auto;
    font-size: 14.5px;
    color: var(--mute);
    font-weight: 500;
}

.nav-links a {
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    color: var(--fg);
}

.nav-links a[aria-current="page"] {
    border-bottom-color: var(--acc);
}

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

.mob-toggle {
    display: none;
}

.mob-drawer {
    display: none;
    border-top: 1px solid var(--line);
    padding: 16px 0 20px;
    background: var(--bg);
}

.mob-drawer.open {
    display: block;
}

.mob-drawer nav {
    display: grid;
    gap: 10px;
}

.mob-drawer nav a {
    padding: 8px 4px;
    font-size: 15px;
    font-weight: 500;
    color: var(--fg);
    border-bottom: 1px solid color-mix(in srgb, var(--line) 50%, transparent);
}

/* Buttons & Controls */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font: 600 14.5px/1 var(--font-sans);
    padding: 14px 24px;
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: pointer;
    letter-spacing: 0.01em;
    transition: transform 0.15s, background 0.15s, border-color 0.15s, color 0.15s;
}

.btn:active {
    transform: scale(0.985);
}

.btn.p {
    background: var(--acc);
    color: var(--acc-fg);
}

.btn.p:hover {
    background: var(--acc-hover);
}

.btn.g {
    background: transparent;
    border-color: color-mix(in srgb, var(--fg) 28%, transparent);
    color: var(--fg);
}

.btn.g:hover {
    border-color: var(--acc);
    color: var(--acc);
}

.btn.sm {
    padding: 10px 16px;
    font-size: 13.5px;
}

.ico {
    width: 38px;
    height: 38px;
    border-radius: 4px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--mute);
    cursor: pointer;
    display: grid;
    place-items: center;
}

.ico:hover {
    background: var(--soft);
    color: var(--fg);
}

.ico svg {
    width: 18px;
    height: 18px;
}

/* Badges & Eyebrows */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--acc);
    margin-bottom: 16px;
}

.eyebrow::before {
    content: "";
    width: 18px;
    height: 1px;
    background: var(--acc);
}

.badge {
    display: inline-block;
    align-self: flex-start;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 3px;
    letter-spacing: 0.02em;
    background: var(--acc);
    color: var(--acc-fg);
}

.badge.soft {
    background: var(--soft-acc);
    color: var(--acc);
    border: 1px solid color-mix(in srgb, var(--acc) 30%, transparent);
}

/* Hero & Page Hero */
.hero {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 64px;
    align-items: center;
    padding: 96px 0 112px;
}

.hero h1 {
    font-size: clamp(2.6rem, 5.8vw, 4.7rem);
    line-height: 1.04;
    letter-spacing: -0.03em;
    max-width: 13.5ch;
}

.hero p.lead {
    font-size: 1.125rem;
    color: var(--mute);
    max-width: 34em;
    margin: 24px 0 32px;
}

.cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.trust-note {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 13.5px;
    color: var(--mute);
}

.page-hero {
    padding: 72px 0 56px;
    border-bottom: 1px solid var(--line);
}

.page-hero h1 {
    font-size: clamp(2.3rem, 4.8vw, 3.8rem);
    line-height: 1.06;
    max-width: 18ch;
    margin-bottom: 18px;
}

.page-hero p.lead {
    font-size: 1.125rem;
    color: var(--mute);
    max-width: 44em;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 13px;
    color: var(--mute);
    margin-bottom: 20px;
}

.breadcrumb a:hover {
    color: var(--acc);
    text-decoration: underline;
}

/* Active-Active Mesh Illustration */
.mesh {
    position: relative;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--line);
    border-radius: 6px;
    background:
        linear-gradient(color-mix(in srgb, var(--line) 35%, transparent) 1px, transparent 1px) 0 0 / 48px 48px,
        linear-gradient(90deg, color-mix(in srgb, var(--line) 35%, transparent) 1px, transparent 1px) 0 0 / 48px 48px,
        var(--card);
    box-shadow: 0 40px 80px -40px color-mix(in srgb, var(--acc) 35%, transparent);
    overflow: hidden;
}

.mesh svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.mesh .ln {
    stroke: var(--acc);
    stroke-width: 1.2;
    opacity: 0.6;
    stroke-dasharray: 3 6;
    animation: flow 3s linear infinite;
}

.mesh .nd {
    fill: var(--card);
    stroke: var(--acc);
    stroke-width: 1.6;
}

.mesh .hq {
    fill: var(--acc);
}

.mesh .pl {
    fill: none;
    stroke: var(--acc);
    stroke-width: 1.2;
    transform-box: fill-box;
    transform-origin: center;
    animation: ping 2.8s ease-out infinite;
}

.mesh text {
    fill: var(--mute);
    font: 500 12px var(--font-sans);
}

.mesh text.hl {
    fill: var(--fg);
    font-weight: 700;
}

.status {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: color-mix(in srgb, var(--card) 90%, transparent);
    backdrop-filter: blur(8px);
    font-size: 13.5px;
    font-weight: 500;
}

.status b {
    color: var(--ok);
    font-weight: 600;
}

@keyframes flow {
    to { stroke-dashoffset: -18; }
}

@keyframes ping {
    0% { transform: scale(0.6); opacity: 0.9; }
    100% { transform: scale(2.6); opacity: 0; }
}

/* Proof Strip */
.proof {
    border-block: 1px solid var(--line);
    background: var(--card);
}

.proof .wrap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.proof div {
    padding: 30px 24px;
    border-left: 1px solid var(--line);
}

.proof div:first-child {
    border-left: 0;
    padding-left: 0;
}

.proof strong {
    display: block;
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 2.4rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.proof span {
    font-size: 13.5px;
    color: var(--mute);
}

/* Sections & Layouts */
section {
    padding: 112px 0;
}

section.bordered {
    border-top: 1px solid var(--line);
}

.split {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 64px;
}

.split h2 {
    font-size: clamp(2.1rem, 4vw, 3.2rem);
    line-height: 1.08;
    position: sticky;
    top: 110px;
    align-self: start;
}

.head {
    max-width: 680px;
    margin-bottom: 48px;
}

.head h2 {
    font-size: clamp(2.1rem, 4vw, 3.2rem);
    line-height: 1.08;
    margin-bottom: 14px;
}

.head p {
    color: var(--mute);
    font-size: 1.05rem;
}

.head-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.head-row .head {
    margin-bottom: 0;
}

.rows > div {
    padding: 34px 0;
    border-top: 1px solid var(--line);
}

.rows > div:last-child {
    border-bottom: 1px solid var(--line);
}

.rows h3 {
    font-size: 1.7rem;
    margin-bottom: 10px;
}

.rows p {
    color: var(--mute);
    max-width: 40em;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    padding: 0;
    list-style: none;
}

.tags li {
    font-size: 13px;
    font-weight: 500;
    padding: 5px 11px;
    border-radius: 3px;
    border: 1px solid var(--line);
    color: var(--fg);
}

/* Cards & Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.card {
    display: flex;
    flex-direction: column;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--card);
    transition: border-color 0.18s, transform 0.18s;
}

a.card:hover,
.card.hoverable:hover {
    border-color: var(--acc);
    transform: translateY(-2px);
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    color: var(--mute);
    margin-bottom: 14px;
}

.card-title {
    font-size: 1.55rem;
    line-height: 1.18;
    margin-bottom: 12px;
}

.card p {
    color: var(--mute);
    font-size: 15px;
    flex-grow: 1;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 22px;
    font-size: 14px;
    font-weight: 600;
    color: var(--acc);
}

/* Engagement Plans */
.plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}

.plan {
    display: flex;
    flex-direction: column;
    padding: 40px 34px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--card);
}

.plan.f {
    background: linear-gradient(180deg, var(--soft), var(--card));
    border-color: var(--acc);
    box-shadow: 0 0 0 1px var(--acc), 0 40px 80px -40px color-mix(in srgb, var(--acc) 40%, transparent);
}

.plan h3 {
    font-size: 1.6rem;
}

.plan .d {
    color: var(--mute);
    margin: 10px 0 26px;
    font-size: 15px;
    flex-grow: 1;
}

.plan .pr {
    font-family: var(--font-serif);
    font-size: 3.1rem;
    font-weight: 400;
    letter-spacing: -0.03em;
    line-height: 1;
}

.plan .pr small {
    font-family: var(--font-sans);
    font-size: 14.5px;
    font-weight: 500;
    color: var(--mute);
    letter-spacing: 0;
}

.plan ul {
    list-style: none;
    padding: 0;
    margin: 26px 0 30px;
    display: grid;
    gap: 12px;
    font-size: 15px;
}

.plan li {
    display: flex;
    gap: 10px;
}

.plan li::before {
    content: "";
    flex: none;
    width: 16px;
    height: 16px;
    margin-top: 4px;
    border-radius: 50%;
    background: var(--acc) center / 10px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.5l2.2 2.2L9.5 3.8' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Interactive Engineering Tools */
.tool-shell {
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--card);
    overflow: hidden;
}

.tool-header {
    padding: 28px 32px;
    border-bottom: 1px solid var(--line);
    background: var(--soft);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.tool-header h2,
.tool-header h3 {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 1.85rem;
    margin-bottom: 6px;
}

.tool-header p {
    color: var(--mute);
    font-size: 15px;
    max-width: 52em;
}

.tool-body {
    display: grid;
    grid-template-columns: 1fr 1.08fr;
}

.tool-inputs {
    padding: 32px;
    border-right: 1px solid var(--line);
    display: grid;
    gap: 20px;
    align-content: start;
}

.tool-outputs {
    padding: 32px;
    display: grid;
    gap: 20px;
    align-content: start;
    background: color-mix(in srgb, var(--soft) 45%, var(--card));
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.metric-box {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--card);
}

.metric-box .lbl {
    font-size: 12.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--mute);
    margin-bottom: 6px;
}

.metric-box .val {
    font-family: var(--font-mono);
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--fg);
    line-height: 1.2;
}

.metric-box .val.accent {
    color: var(--acc);
}

.metric-box .val.ok {
    color: var(--ok);
}

.metric-box .sub {
    font-size: 12.5px;
    color: var(--mute);
    margin-top: 6px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: var(--card);
    border: 1px solid var(--line);
}

.data-table th,
.data-table td {
    text-align: left;
    padding: 11px 14px;
    border-bottom: 1px solid var(--line);
}

.data-table th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--mute);
    background: var(--soft);
    font-weight: 600;
}

.data-table td.mono {
    font-family: var(--font-mono);
    font-size: 13px;
}

.formula-note {
    padding: 16px 18px;
    border-left: 3px solid var(--acc);
    background: var(--card);
    border-top: 1px solid var(--line);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    font-size: 13.5px;
    color: var(--mute);
}

.formula-note strong {
    color: var(--fg);
}

.formula-note code {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--fg);
    background: var(--soft);
    padding: 2px 5px;
    border-radius: 3px;
}

.range-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
}

.range-row output {
    font-family: var(--font-mono);
    font-size: 13.5px;
    color: var(--acc);
}

input[type="range"] {
    padding: 0;
    accent-color: var(--acc);
    cursor: pointer;
    height: 6px;
}

.check-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.check-pill {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--bg);
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
}

.check-pill input {
    width: auto;
    margin: 0;
    accent-color: var(--acc);
}

/* Editorial Articles & Documentation */
.article-wrap {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 56px;
    padding: 64px 0 112px;
    align-items: start;
}

.toc {
    position: sticky;
    top: 104px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--card);
    font-size: 13.5px;
}

.toc h4 {
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--mute);
    margin-bottom: 12px;
}

.toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 9px;
}

.toc a {
    color: var(--mute);
    display: block;
    line-height: 1.35;
}

.toc a:hover {
    color: var(--acc);
}

.prose {
    max-width: 760px;
    font-size: 16.5px;
    line-height: 1.75;
}

.prose h2 {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 2rem;
    margin: 48px 0 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.prose h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.prose h3 {
    font-size: 1.25rem;
    font-weight: 650;
    margin: 32px 0 12px;
}

.prose p {
    margin-bottom: 18px;
    color: var(--fg);
}

.prose ul,
.prose ol {
    margin: 0 0 22px;
    padding-left: 22px;
}

.prose li {
    margin-bottom: 8px;
}

.prose li strong {
    color: var(--fg);
}

.prose code {
    font-family: var(--font-mono);
    font-size: 0.88em;
    background: var(--soft);
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid var(--line);
}

.prose pre {
    background: var(--code-bg);
    color: var(--code-fg);
    padding: 20px 22px;
    border-radius: 6px;
    border: 1px solid var(--line);
    overflow-x: auto;
    margin: 22px 0 26px;
    font: 400 13.5px/1.6 var(--font-mono);
}

.prose pre code {
    background: none;
    border: 0;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

.callout {
    padding: 20px 22px;
    border-left: 3px solid var(--acc);
    background: var(--card);
    border-top: 1px solid var(--line);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-radius: 0 6px 6px 0;
    margin: 26px 0;
    font-size: 15px;
}

.callout strong {
    display: block;
    margin-bottom: 6px;
    color: var(--fg);
}

.callout p:last-child {
    margin-bottom: 0;
    color: var(--mute);
}

.author-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 22px 24px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--card);
    margin-bottom: 36px;
    font-size: 14px;
}

.author-box b {
    display: block;
    font-size: 15px;
}

.author-box span {
    color: var(--mute);
}

.arch-diagram {
    margin: 28px 0;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--card);
}

.arch-diagram figcaption {
    margin-top: 12px;
    font-size: 13px;
    color: var(--mute);
    text-align: center;
}

/* AdSense Semantic Container */
.ad-container {
    margin: 40px 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--card);
    overflow: hidden;
}

.ad-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--mute);
    margin-bottom: 8px;
}

/* Contact & Forms */
.contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact h2 {
    font-size: clamp(2.2rem, 4.4vw, 3.3rem);
    margin-bottom: 18px;
}

.contact p {
    color: var(--mute);
    max-width: 32em;
}

.meta {
    margin-top: 32px;
    display: grid;
    gap: 18px;
}

.meta b {
    display: block;
    font-weight: 600;
}

.meta span,
.meta a {
    color: var(--mute);
    font-size: 15px;
}

.meta a:hover {
    color: var(--acc);
    text-decoration: underline;
}

form.card-form {
    padding: 38px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--card);
    display: grid;
    gap: 18px;
}

.r2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

label {
    display: grid;
    gap: 7px;
    font-size: 13.5px;
    font-weight: 600;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
select,
textarea {
    font: 400 15.5px/1.4 var(--font-sans);
    color: var(--fg);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 12px 14px;
    width: 100%;
}

textarea {
    resize: vertical;
    min-height: 112px;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--acc);
    outline-offset: 0;
    border-color: transparent;
}

.form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.form-actions .btn {
    flex: 1 1 180px;
}

.fine {
    font-size: 12.5px;
    color: var(--mute);
    line-height: 1.5;
}

/* Footer */
footer {
    border-top: 1px solid var(--line);
    background: var(--card);
    padding: 64px 0 44px;
    font-size: 14.5px;
    color: var(--mute);
}

.fg {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1.1fr 0.9fr;
    gap: 40px;
    margin-bottom: 48px;
}

.fg h4 {
    margin: 0 0 14px;
    color: var(--fg);
    font-size: 14px;
    font-weight: 650;
}

.fg a {
    display: block;
    padding: 4px 0;
}

.fg a:hover {
    color: var(--acc);
}

.fb {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-size: 13.5px;
}

.fb-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.fb-links a:hover {
    color: var(--fg);
    text-decoration: underline;
}

/* Toast & Cookie Consent Bar */
#toast {
    position: fixed;
    left: 50%;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    transform: translate(-50%, 20px);
    z-index: 90;
    padding: 12px 20px;
    border-radius: 4px;
    background: var(--fg);
    color: var(--bg);
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transition: 0.25s;
    max-width: 90vw;
    text-align: center;
}

#toast.on {
    opacity: 1;
    transform: translate(-50%, 0);
}

.cookie-bar {
    position: fixed;
    right: 20px;
    bottom: 20px;
    left: 20px;
    max-width: 520px;
    margin-left: auto;
    z-index: 75;
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--card);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
    font-size: 13.5px;
    display: none;
}

.cookie-bar.on {
    display: block;
}

.cookie-bar p {
    color: var(--mute);
    margin-bottom: 14px;
    line-height: 1.55;
}

.cookie-bar a {
    color: var(--acc);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
    .nav-links {
        display: none;
    }

    .nav .act {
        margin-left: auto;
    }

    .mob-toggle {
        display: grid;
    }

    .hero,
    .split,
    .contact,
    .tool-body,
    .article-wrap {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .tool-inputs {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .toc {
        position: static;
    }

    .hero {
        padding: 48px 0 68px;
    }

    .split h2 {
        position: static;
    }

    .proof .wrap {
        grid-template-columns: 1fr 1fr;
    }

    .proof div:nth-child(3) {
        border-left: 0;
        padding-left: 0;
    }

    .proof div:nth-child(n+3) {
        border-top: 1px solid var(--line);
    }

    .plans,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .fg {
        grid-template-columns: 1fr 1fr;
    }

    section {
        padding: 76px 0;
    }
}

@media (max-width: 560px) {
    .r2,
    .metric-grid,
    .check-grid {
        grid-template-columns: 1fr;
    }

    .hide-s {
        display: none;
    }

    .fg {
        grid-template-columns: 1fr;
    }

    form.card-form,
    .tool-inputs,
    .tool-outputs {
        padding: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }

    html {
        scroll-behavior: auto;
    }
}

