:root {
    --navy: #2f3850;
    --navy-deep: #20283b;
    --navy-soft: #414d68;
    --cream: #f8f2e6;
    --paper: #fffdf8;
    --paper-warm: #fcf7ed;
    --ink: #293044;
    --muted: #626b7c;
    --peach: #f39d80;
    --peach-dark: #dc7759;
    --peach-pale: #fbe5dc;
    --green: #176b58;
    --green-pale: #e5f2ed;
    --gold: #e9b94f;
    --line: #e4dccd;
    --line-dark: rgba(255, 255, 255, 0.16);
    --shadow: 0 18px 45px rgba(32, 40, 59, 0.12);
    --shadow-sm: 0 8px 24px rgba(32, 40, 59, 0.08);
    --radius: 18px;
    --radius-sm: 12px;
    --max: 1140px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.72;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--peach);
    color: var(--navy-deep);
}

img,
svg {
    max-width: 100%;
}

a {
    color: #8c4937;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--peach-dark);
}

p,
ul,
ol {
    margin-top: 0;
}

strong {
    color: #1e2535;
}

.wrap {
    width: min(100% - 36px, var(--max));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    left: 18px;
    top: -80px;
    z-index: 1000;
    padding: 10px 16px;
    border-radius: 0 0 8px 8px;
    background: var(--peach);
    color: var(--navy-deep);
    font-weight: 800;
}

.skip-link:focus {
    top: 0;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(228, 220, 205, 0.7);
    background: rgba(248, 242, 230, 0.96);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--navy-deep);
    text-decoration: none;
    flex-shrink: 0;
}

.brand:hover {
    color: var(--navy-deep);
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    background: var(--navy);
    color: var(--peach);
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    box-shadow: inset 0 0 0 2px rgba(243, 157, 128, 0.2);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-copy strong {
    font-size: 0.98rem;
    color: var(--navy-deep);
}

.brand-copy small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.primary-nav ul {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.primary-nav a {
    display: block;
    padding: 9px 11px;
    border-radius: 999px;
    color: var(--navy-soft);
    font-size: 0.84rem;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
    background: var(--paper);
    color: var(--navy-deep);
    box-shadow: var(--shadow-sm);
}

/* Code offer bar */
.code-strip {
    background: var(--navy-deep);
    color: var(--paper);
}

.code-strip-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 54px;
    padding-block: 8px;
}

.code-strip p {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    font-size: 0.9rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #7ce0b7;
    box-shadow: 0 0 0 4px rgba(124, 224, 183, 0.13);
}

.inline-code {
    display: inline-block;
    padding: 1px 8px;
    border: 1px dashed rgba(243, 157, 128, 0.75);
    border-radius: 6px;
    background: rgba(243, 157, 128, 0.13);
    color: #ffd4c4;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.code-strip-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.strip-link {
    color: #ffd8ca;
    font-size: 0.84rem;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}

.strip-link:hover {
    color: #fff;
}

/* Buttons */
.button,
button.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 11px 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

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

.button-primary {
    background: var(--peach);
    color: var(--navy-deep);
    box-shadow: 0 8px 22px rgba(220, 119, 89, 0.25);
}

.button-primary:hover {
    background: #f8ad92;
    color: var(--navy-deep);
}

.button-secondary {
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.button-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.button-dark {
    background: var(--navy);
    color: #fff;
}

.button-dark:hover {
    background: var(--navy-deep);
    color: #fff;
}

.button-small {
    min-height: 34px;
    padding: 7px 13px;
    font-size: 0.8rem;
}

.copy-button.is-copied {
    background: #b9ebd9;
    color: #0d473a;
}

/* Homepage hero */
.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(54px, 8vw, 92px) 0 clamp(48px, 7vw, 78px);
    background:
        radial-gradient(circle at 10% 15%, rgba(243, 157, 128, 0.17), transparent 35%),
        radial-gradient(circle at 90% 85%, rgba(233, 185, 79, 0.11), transparent 40%),
        var(--navy);
    color: var(--paper);
}

.hero::after {
    content: "";
    position: absolute;
    right: -100px;
    bottom: -160px;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 50%;
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    align-items: center;
    gap: clamp(34px, 6vw, 72px);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 18px;
    color: #ffd3c3;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    line-height: 1.4;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 24px;
    height: 2px;
    background: var(--peach);
}

.hero h1 {
    max-width: 810px;
    margin: 0;
    color: #fffdf8;
    font-size: clamp(2.2rem, 5vw, 4.15rem);
    font-weight: 850;
    letter-spacing: -0.042em;
    line-height: 1.06;
    text-wrap: balance;
}

.hero-lede {
    max-width: 710px;
    margin: 24px 0 0;
    color: #e2e5ec;
    font-size: clamp(1rem, 1.6vw, 1.16rem);
}

.hero-lede strong {
    color: #fff;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 29px;
}

.trust-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 18px;
    margin: 27px 0 0;
    padding: 0;
    list-style: none;
    color: #d7dbe5;
    font-size: 0.82rem;
    font-weight: 650;
}

.trust-list li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.trust-list li::before {
    content: "✓";
    color: var(--peach);
    font-weight: 900;
}

.code-card {
    position: relative;
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    background: var(--paper);
    color: var(--ink);
    box-shadow: 0 30px 65px rgba(12, 17, 28, 0.28);
    transform: rotate(1.1deg);
}

.code-card::before {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px dashed #e3cbbb;
    border-radius: 18px;
    pointer-events: none;
}

.code-card > * {
    position: relative;
    z-index: 1;
}

.code-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--green-pale);
    color: var(--green);
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.04em;
}

.code-label {
    margin: 26px 0 8px;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 750;
    text-transform: uppercase;
}

.code-display {
    display: block;
    margin: 0;
    color: var(--navy-deep);
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: clamp(2.25rem, 5vw, 3.2rem);
    font-weight: 900;
    letter-spacing: 0.13em;
    line-height: 1.2;
    text-align: center;
    -webkit-user-select: all;
    user-select: all;
}

.code-card .button {
    width: 100%;
    margin-top: 17px;
}

.code-note {
    margin: 13px 0 0;
    color: var(--muted);
    font-size: 0.75rem;
    line-height: 1.55;
    text-align: center;
}

.hero-smallprint {
    margin: 18px 0 0;
    color: #aeb5c3;
    font-size: 0.75rem;
}

/* Page headers */
.page-hero {
    padding: clamp(42px, 6vw, 66px) 0 clamp(34px, 5vw, 50px);
    background: var(--navy);
    color: var(--paper);
}

.page-hero .wrap {
    max-width: 940px;
}

.page-hero h1 {
    max-width: 900px;
    margin: 0;
    color: #fffdf8;
    font-size: clamp(2rem, 4.4vw, 3.35rem);
    font-weight: 850;
    letter-spacing: -0.035em;
    line-height: 1.1;
    text-wrap: balance;
}

.page-hero .hero-lede {
    margin-top: 17px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    margin-top: 19px;
    color: #b9c0ce;
    font-size: 0.8rem;
    font-weight: 650;
}

.article-meta span + span::before {
    content: "·";
    margin-right: 18px;
    color: var(--peach);
}

/* Breadcrumbs */
.breadcrumbs {
    padding-top: 18px;
    color: var(--muted);
    font-size: 0.78rem;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.breadcrumbs li {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.breadcrumbs li + li::before {
    content: "/";
    color: #a8a192;
}

.breadcrumbs a {
    color: var(--muted);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--peach-dark);
    text-decoration: underline;
}

/* Sections and content */
.section {
    padding: clamp(34px, 5vw, 58px) 0;
}

.section-tight {
    padding: 24px 0 0;
}

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 292px;
    align-items: start;
    gap: clamp(28px, 5vw, 58px);
    padding-top: clamp(38px, 6vw, 60px);
    padding-bottom: clamp(54px, 8vw, 90px);
}

.article-body {
    min-width: 0;
}

.article-body > section {
    margin-bottom: 42px;
}

.article-body > section:last-child {
    margin-bottom: 0;
}

.article-body h2,
.section-heading {
    margin: 0 0 15px;
    color: var(--navy-deep);
    font-size: clamp(1.55rem, 2.7vw, 2.25rem);
    font-weight: 850;
    letter-spacing: -0.026em;
    line-height: 1.2;
    text-wrap: balance;
}

.article-body h3 {
    margin: 27px 0 9px;
    color: var(--navy-deep);
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: -0.012em;
    line-height: 1.35;
}

.article-body p,
.article-body li {
    color: #3d4558;
}

.article-body ul,
.article-body ol {
    padding-left: 22px;
}

.article-body li {
    margin-bottom: 8px;
}

.article-body li::marker {
    color: var(--peach-dark);
    font-weight: 800;
}

.article-body a {
    font-weight: 650;
}

.article-body .button {
    font-weight: 800;
}

.lede {
    color: #414a5e;
    font-size: 1.08rem;
}

.small-note {
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.65;
}

.section-eyebrow {
    margin: 0 0 8px;
    color: #9b5a45;
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.quick-answer {
    position: relative;
    padding: clamp(24px, 4vw, 34px);
    border: 1px solid #ead7c9;
    border-left: 5px solid var(--peach-dark);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow-sm);
}

.quick-answer h2 {
    margin-bottom: 10px;
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
}

.quick-answer p:last-child {
    margin-bottom: 0;
}

.fact-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.fact {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper-warm);
}

.fact span {
    display: block;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.fact strong {
    display: block;
    margin-top: 4px;
    color: var(--navy-deep);
    font-size: 0.92rem;
    line-height: 1.35;
}

.callout {
    margin: 26px 0;
    padding: 20px 22px;
    border: 1px solid #e8d6c9;
    border-radius: var(--radius-sm);
    background: var(--peach-pale);
}

.callout p:last-child {
    margin-bottom: 0;
}

.callout-green {
    border-color: #c7e2d8;
    background: var(--green-pale);
}

.callout h3 {
    margin-top: 0;
}

.disclosure-box {
    margin: 26px 0;
    padding: 17px 19px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 253, 248, 0.72);
}

.disclosure-box p {
    margin: 0;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.65;
}

/* Steps */
.steps {
    display: grid;
    gap: 13px;
    margin: 22px 0;
    padding: 0 !important;
    list-style: none;
    counter-reset: step;
}

.steps li {
    position: relative;
    min-height: 55px;
    margin: 0;
    padding: 15px 18px 15px 65px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--paper);
    counter-increment: step;
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 16px;
    top: 14px;
    display: grid;
    width: 33px;
    height: 33px;
    place-items: center;
    border-radius: 50%;
    background: var(--navy);
    color: var(--peach);
    font-size: 0.85rem;
    font-weight: 900;
}

.steps li strong {
    display: block;
    margin-bottom: 2px;
    color: var(--navy-deep);
}

/* Tables */
.table-wrap {
    margin: 22px 0;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

th,
td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    background: #f1eadc;
    color: var(--navy-deep);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

td {
    color: #3d4558;
}

tbody tr:last-child td {
    border-bottom: 0;
}

tbody tr:hover {
    background: #fffaf1;
}

.table-note {
    margin: -7px 0 25px;
    color: var(--muted);
    font-size: 0.77rem;
}

/* Cards and link grids */
.plan-grid,
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    margin: 22px 0;
}

.info-card,
.plan-card {
    display: flex;
    flex-direction: column;
    padding: 21px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--paper);
    box-shadow: 0 4px 16px rgba(32, 40, 59, 0.035);
}

.info-card h3,
.plan-card h3 {
    margin: 0 0 7px;
    color: var(--navy-deep);
    font-size: 1.03rem;
}

.info-card p,
.plan-card p {
    margin-bottom: 10px;
    font-size: 0.89rem;
}

.info-card a,
.plan-card a {
    margin-top: auto;
    font-size: 0.85rem;
    font-weight: 800;
}

.plan-card .price {
    margin-bottom: 4px;
    color: var(--navy-deep);
    font-size: 1.65rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.plan-card .price small {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0;
}

.plan-card .tag {
    align-self: flex-start;
    margin-bottom: 12px;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--peach-pale);
    color: #8d4a38;
    font-size: 0.67rem;
    font-weight: 850;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 20px 0;
    padding: 0;
    list-style: none;
}

.link-grid li {
    margin: 0;
}

.link-grid a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 54px;
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--paper);
    color: #6f3d2f;
    font-size: 0.9rem;
    font-weight: 750;
    text-decoration: none;
    transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.link-grid a::after {
    content: "→";
    color: var(--peach-dark);
    font-weight: 900;
}

.link-grid a:hover {
    border-color: #ddb7a6;
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 148px;
    display: grid;
    gap: 16px;
}

.sidebar-card {
    padding: 21px;
    border: 1px solid #e3d3c5;
    border-radius: var(--radius-sm);
    background: var(--paper);
    box-shadow: var(--shadow-sm);
}

.sidebar-card h2,
.sidebar-card h3 {
    margin: 0 0 8px;
    color: var(--navy-deep);
    font-size: 1rem;
    line-height: 1.35;
}

.sidebar-card p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.6;
}

.sidebar-code {
    display: block;
    margin: 12px 0;
    padding: 10px;
    border: 1px dashed #dbb29f;
    border-radius: 9px;
    background: var(--peach-pale);
    color: var(--navy-deep);
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    line-height: 1.3;
    text-align: center;
}

.sidebar-card .button {
    width: 100%;
}

.sidebar-nav {
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(255, 253, 248, 0.58);
}

.sidebar-nav h2 {
    margin: 0 0 9px;
    color: var(--navy-deep);
    font-size: 0.8rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.sidebar-nav ul {
    display: grid;
    gap: 3px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sidebar-nav li {
    margin: 0;
}

.sidebar-nav a {
    display: block;
    padding: 5px 0;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 650;
    text-decoration: none;
}

.sidebar-nav a:hover {
    color: var(--peach-dark);
    text-decoration: underline;
}

/* FAQ */
.faq-list {
    display: grid;
    gap: 10px;
    margin: 22px 0;
}

.faq-item {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
}

.faq-item summary {
    position: relative;
    padding: 16px 46px 16px 18px;
    color: var(--navy-deep);
    font-size: 0.94rem;
    font-weight: 800;
    line-height: 1.45;
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 18px;
    top: 50%;
    color: var(--peach-dark);
    font-size: 1.25rem;
    line-height: 1;
    transform: translateY(-50%);
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item .faq-answer {
    padding: 0 18px 17px;
    color: #4b5365;
    font-size: 0.89rem;
}

.faq-item .faq-answer p:last-child {
    margin-bottom: 0;
}

/* CTA panels */
.cta-panel {
    position: relative;
    overflow: hidden;
    padding: clamp(26px, 4.5vw, 42px);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 90% 20%, rgba(243, 157, 128, 0.2), transparent 34%),
        var(--navy);
    color: #fff;
}

.cta-panel h2 {
    margin: 0 0 10px;
    color: #fffdf8;
    font-size: clamp(1.5rem, 2.8vw, 2.15rem);
}

.cta-panel p {
    max-width: 660px;
    margin-bottom: 18px;
    color: #dfe3eb;
}

.cta-panel strong {
    color: #fff;
}

.cta-panel .button {
    margin-right: 8px;
    margin-bottom: 8px;
}

/* Blog */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 26px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow-sm);
}

.blog-card-top {
    min-height: 105px;
    padding: 22px;
    background:
        linear-gradient(135deg, rgba(243, 157, 128, 0.22), transparent 62%),
        var(--navy);
    color: var(--peach);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.blog-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px;
}

.blog-card h2,
.blog-card h3 {
    margin: 0 0 9px;
    font-size: 1.09rem;
    line-height: 1.35;
}

.blog-card h2 a,
.blog-card h3 a {
    color: var(--navy-deep);
    text-decoration: none;
}

.blog-card h2 a:hover,
.blog-card h3 a:hover {
    color: #8c4937;
    text-decoration: underline;
}

.blog-card p {
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 0.86rem;
}

.blog-card .read-more {
    margin-top: auto;
    color: #8c4937;
    font-size: 0.82rem;
    font-weight: 850;
    text-decoration: none;
}

.blog-card .read-more::after {
    content: " →";
}

/* Related articles */
.related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
    margin-top: 20px;
}

.related-card {
    display: block;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
    text-decoration: none;
}

.related-card strong {
    display: block;
    margin-bottom: 4px;
    color: var(--navy-deep);
    font-size: 0.92rem;
    line-height: 1.4;
}

.related-card span {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.5;
}

.related-card:hover {
    border-color: #d9b3a1;
    box-shadow: var(--shadow-sm);
}

/* Footer */
.site-footer {
    padding: 52px 0 26px;
    background: var(--navy-deep);
    color: #d7dce6;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.25fr repeat(3, 1fr);
    gap: 38px;
}

.footer-brand .brand {
    color: #fff;
}

.footer-brand .brand-copy strong {
    color: #fff;
}

.footer-brand .brand-copy small {
    color: #aab3c4;
}

.footer-brand p {
    max-width: 330px;
    margin: 17px 0 0;
    color: #aeb6c5;
    font-size: 0.82rem;
    line-height: 1.7;
}

.footer-heading {
    margin: 0 0 13px;
    color: #fff;
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.footer-links {
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links li {
    margin: 0;
}

.footer-links a {
    color: #b8c1d0;
    font-size: 0.81rem;
    text-decoration: none;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 38px;
    padding-top: 19px;
    border-top: 1px solid var(--line-dark);
    color: #8f99ab;
    font-size: 0.73rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-disclosure {
    max-width: 700px;
    margin-top: 10px !important;
    color: #8f99ab;
    font-size: 0.7rem;
    line-height: 1.6;
}

/* Utility */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.text-center {
    text-align: center;
}

.mt-0 {
    margin-top: 0 !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

/* Responsive */
@media (max-width: 980px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 0.65fr);
        gap: 34px;
    }

    .content-layout {
        grid-template-columns: minmax(0, 1fr) 260px;
        gap: 30px;
    }

    .fact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: 1.3fr 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .header-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        padding: 13px 0 9px;
    }

    .primary-nav {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .primary-nav::-webkit-scrollbar {
        display: none;
    }

    .primary-nav ul {
        width: max-content;
    }

    .primary-nav a {
        padding: 7px 10px;
        background: rgba(255, 253, 248, 0.55);
        font-size: 0.78rem;
    }

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

    .code-card {
        width: min(100%, 420px);
        transform: none;
    }

    .content-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        grid-row: 1;
        grid-template-columns: 1fr 1fr;
    }

    .sidebar-nav {
        display: none;
    }

    .plan-grid,
    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .code-strip-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        padding-block: 10px;
    }

    .code-strip-actions {
        width: 100%;
        justify-content: space-between;
    }

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

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 16px;
    }

    .wrap {
        width: min(100% - 26px, var(--max));
    }

    .brand-mark {
        width: 37px;
        height: 37px;
    }

    .brand-copy strong {
        font-size: 0.9rem;
    }

    .brand-copy small {
        font-size: 0.64rem;
    }

    .hero {
        padding-top: 40px;
    }

    .hero h1 {
        font-size: 2.2rem;
        letter-spacing: -0.035em;
    }

    .hero-actions .button {
        width: 100%;
    }

    .trust-list {
        gap: 7px 14px;
    }

    .code-card {
        padding: 21px;
    }

    .code-display {
        font-size: 2.5rem;
    }

    .fact-grid,
    .plan-grid,
    .card-grid,
    .link-grid,
    .related-grid,
    .blog-grid,
    .sidebar {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-brand {
        grid-column: auto;
    }

    .article-body h2 {
        font-size: 1.55rem;
    }

    .page-hero h1 {
        font-size: 2.1rem;
    }

    .article-meta span + span::before {
        display: none;
    }

    .cta-panel .button {
        width: 100%;
        margin-right: 0;
    }

    table {
        min-width: 590px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* Accessible visited-link colors across every page */
a:visited { color: #6f3527; }
a:visited:hover { color: var(--peach-dark); }
.primary-nav a:visited { color: var(--navy-soft); }
.primary-nav a[aria-current="page"]:visited { color: var(--navy-deep); }
.brand:visited { color: var(--navy-deep); }
.sidebar-nav a:visited,
.article-body a:visited,
.link-grid a:visited,
.related-card:visited,
.breadcrumbs a:visited { color: #6f3527; }
.blog-card h2 a:visited,
.blog-card h3 a:visited { color: var(--navy-deep); }
.code-strip a:not(.button):visited,
.hero a:not(.button):visited,
.page-hero a:not(.button):visited,
.cta-panel a:not(.button):visited { color: #ffe1d6; }
.footer-links a:visited { color: #e3e9f3; }
.site-footer .brand:visited { color: #ffffff; }
.button-primary:visited { color: var(--navy-deep); }
.button-secondary:visited { color: #ffffff; }
.hero-lede,
.page-hero .hero-lede,
.cta-panel p { color: #f3f4f7; }
.hero .eyebrow,
.page-hero .eyebrow { color: #ffd8ca; }
.trust-list { color: #eef1f5; }
.footer-bottom,
.footer-disclosure { color: #b8c2d1; }
.inline-code {
    color: #fff0e9;
    border-color: #ffbca2;
    background: rgba(255, 188, 162, 0.18);
}
.strip-link,
.strip-link:visited { color: #ffe1d6; }
.related-card strong { color: var(--navy-deep); }
