/* ==========================================================================
   Tiny Shoe Media - main stylesheet
   Palette taken from the brand shoe: cerulean leather, sunshine yellow stripe,
   red stitching, caramel sole and cream lining.
   ========================================================================== */

:root {
    --blue: #1d74a6;
    --blue-600: #17628d;
    --blue-800: #0e3f5f;
    --blue-900: #0a2e46;
    --blue-50: #eaf4fa;
    --blue-100: #d3e8f4;
    --yellow: #f5c32c;
    --yellow-600: #deaa12;
    --yellow-50: #fff7dc;
    --red: #b3282f;
    --red-50: #fbeaea;
    --tan: #c6893f;
    --tan-600: #a86f2b;
    --tan-50: #f8eedf;
    --cream: #fbf8f2;
    --white: #ffffff;
    --ink: #13293d;
    --ink-soft: #475b6e;
    --line: #e4e0d6;
    --green: #22855a;
    --green-50: #e7f5ee;

    --radius: 14px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px rgba(10, 46, 70, .06), 0 2px 6px rgba(10, 46, 70, .05);
    --shadow: 0 6px 24px rgba(10, 46, 70, .09);
    --shadow-lg: 0 18px 48px rgba(10, 46, 70, .16);
    --font-head: "Nunito", "Segoe UI", system-ui, sans-serif;
    --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-800); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; color: var(--blue-900); margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 900; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 800; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.sr-only, .hp-field { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px; }
.hp-field { left: -9999px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: var(--ink); padding: 8px 14px; border-radius: 6px; z-index: 100; font-weight: 700; }
.skip-link:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    font-family: var(--font-body); font-weight: 700; font-size: 1rem; line-height: 1;
    padding: .9em 1.4em; border-radius: 999px; border: 2px solid transparent;
    text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease, color .15s;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 4px 0 var(--blue-800); }
.btn-primary:hover { background: var(--blue-600); color: #fff; }
.btn-accent { background: var(--yellow); color: var(--blue-900); box-shadow: 0 4px 0 var(--yellow-600); }
.btn-accent:hover { background: #ffd24a; color: var(--blue-900); }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue-50); color: var(--blue-800); }
.btn-ghost-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost-light:hover { background: rgba(255,255,255,.22); color: #fff; }
.btn-danger { background: transparent; color: var(--red); border-color: var(--red-50); }
.btn-danger:hover { background: var(--red-50); color: var(--red); }
.btn-sm { font-size: .88rem; padding: .7em 1.1em; }
.btn-lg { font-size: 1.08rem; padding: 1.05em 1.8em; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- Top bar + header ---------- */
.topbar { background: var(--blue-900); color: #cfe3f0; font-size: .82rem; }
.topbar-inner { display: flex; justify-content: space-between; gap: 1rem; padding-top: 7px; padding-bottom: 7px; }
.topbar i { color: var(--yellow); margin-right: 4px; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 1rem; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--blue-900); flex-shrink: 0; }
.logo-img { height: 48px; width: auto; }
.logo-mark { width: 42px; height: 42px; border-radius: 12px; background: var(--blue); color: var(--yellow); display: grid; place-items: center; font-size: 1.15rem; box-shadow: inset 0 -4px 0 var(--tan); transform: rotate(-6deg); }
.logo-text { font-family: var(--font-head); font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; }
.logo-text strong { color: var(--blue); font-weight: 900; }
.site-nav { display: flex; align-items: center; gap: 1.25rem; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.site-nav ul a { display: block; padding: .55rem .8rem; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .94rem; }
.site-nav ul a i { color: var(--blue); opacity: .75; margin-right: 3px; font-size: .88em; }
.site-nav ul a:hover { background: var(--blue-50); color: var(--blue-800); }
.site-nav ul a.active { background: var(--blue-50); color: var(--blue-800); box-shadow: inset 0 -2px 0 var(--yellow); }
.nav-actions { display: flex; align-items: center; gap: .8rem; }
.cart-link { position: relative; color: var(--blue-900); font-size: 1.25rem; padding: .35rem; }
.cart-badge { position: absolute; top: -4px; right: -8px; background: var(--red); color: #fff; font-size: .7rem; font-weight: 700; min-width: 19px; height: 19px; border-radius: 99px; display: grid; place-items: center; padding: 0 5px; border: 2px solid #fff; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; color: var(--blue-900); cursor: pointer; padding: .4rem; }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden; color: #fff;
    background: radial-gradient(1000px 420px at 85% -10%, rgba(245,195,44,.22), transparent 60%),
                linear-gradient(135deg, var(--blue-800) 0%, var(--blue) 70%, #2a8bc0 100%);
    padding: 84px 0 110px;
}
.hero::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46px;
    background: var(--tan);
    background-image: repeating-linear-gradient(90deg, rgba(0,0,0,.07) 0 10px, transparent 10px 22px);
    border-top: 4px solid var(--tan-600);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3.5rem; align-items: center; position: relative; z-index: 1; }
.hero h1 { color: #fff; }
.hero h1 .hl { color: var(--yellow); }
.hero .lead { font-size: 1.18rem; color: #dbeaf4; max-width: 38em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .5em; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .4em .9em; border-radius: 99px; background: rgba(255,255,255,.12); color: var(--yellow); margin-bottom: 1.1rem; border: 1px dashed rgba(245,195,44,.6); }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 2rem; font-size: .92rem; color: #cfe3f0; }
.hero-trust i { color: var(--yellow); margin-right: 5px; }

.hero-card { background: #fff; color: var(--ink); border-radius: 20px; padding: 1.8rem; box-shadow: var(--shadow-lg); position: relative; border: 2px dashed var(--red); outline: 6px solid #fff; }
.hero-card h2 { font-size: 1.3rem; margin-bottom: .3rem; }
.hero-card p { color: var(--ink-soft); font-size: .95rem; }
.hero-card .tag { position: absolute; top: -14px; right: 20px; background: var(--yellow); color: var(--blue-900); font-weight: 800; font-size: .78rem; padding: .35em .9em; border-radius: 99px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(135deg, var(--blue-800), var(--blue)); color: #fff; padding: 56px 0 60px; position: relative; }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--yellow); box-shadow: 0 8px 0 var(--tan); }
.page-hero h1 { color: #fff; margin-bottom: .35em; }
.page-hero .lead { color: #dbeaf4; font-size: 1.12rem; max-width: 46em; margin: 0; }
.page-hero-sm { padding: 44px 0 50px; }
.updated { margin: .9rem 0 0; font-size: .88rem; color: #bcd6e7; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 1rem; padding: 0; font-size: .86rem; color: #bcd6e7; }
.breadcrumbs li + li::before { content: "/"; margin-right: .35rem; opacity: .6; }
.breadcrumbs a { color: #fff; text-decoration: none; opacity: .85; }
.breadcrumbs a:hover { opacity: 1; text-decoration: underline; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.section-white { background: #fff; }
.section-tint { background: var(--blue-50); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.6rem; }
.section-head p { color: var(--ink-soft); font-size: 1.06rem; }
.kicker { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin-bottom: .6rem; }

.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s; }
.card:hover { box-shadow: var(--shadow); }
.card-link { text-decoration: none; color: inherit; display: block; }
.card-link:hover { transform: translateY(-3px); border-color: var(--blue-100); color: inherit; }
.card p { color: var(--ink-soft); margin-bottom: .6rem; font-size: .96rem; }
.card .more { font-weight: 700; color: var(--blue); font-size: .92rem; }
.icon-tile { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 1rem; }
.icon-blue { background: var(--blue-50); color: var(--blue); }
.icon-yellow { background: var(--yellow-50); color: #b98700; }
.icon-red { background: var(--red-50); color: var(--red); }
.icon-tan { background: var(--tan-50); color: var(--tan-600); }
.icon-green { background: var(--green-50); color: var(--green); }

.steps { counter-reset: step; }
.step { position: relative; padding-left: 64px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--yellow); color: var(--blue-900); font-family: var(--font-head); font-weight: 900; font-size: 1.2rem; display: grid; place-items: center; box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--yellow); }

/* stitched callout */
.stitch-box { background: #fff; border-radius: var(--radius); padding: 2rem; border: 2px dashed var(--red); box-shadow: 0 0 0 6px #fff, var(--shadow); }
.cta-band { background: var(--blue-900); color: #fff; border-radius: 22px; padding: 2.6rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: var(--yellow); opacity: .14; }
.cta-band h2 { color: #fff; margin-bottom: .3rem; }
.cta-band p { color: #c7dbe8; margin: 0; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: .8rem; max-width: 860px; margin: 0 auto; }
.faq { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 1.1rem 1.3rem; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: var(--blue-900); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { color: var(--blue); transition: transform .2s; }
.faq[open] summary i { transform: rotate(180deg); }
.faq[open] summary { border-bottom: 1px dashed var(--line); }
.faq-body { padding: 1rem 1.3rem .3rem; color: var(--ink-soft); }

/* ---------- Alerts ---------- */
.flash-wrap { padding-top: 1.2rem; }
.alert { display: flex; gap: .7rem; align-items: flex-start; padding: 1rem 1.2rem; border-radius: 10px; margin-bottom: 1rem; font-weight: 500; border: 1px solid; }
.alert i { margin-top: .2em; }
.alert-success { background: var(--green-50); border-color: #bfe3cf; color: #145c3c; }
.alert-error { background: var(--red-50); border-color: #f0c5c7; color: #87191e; }
.alert-info { background: var(--blue-50); border-color: var(--blue-100); color: var(--blue-800); }
.alert ul { margin: .3rem 0 0; padding-left: 1.1rem; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border-radius: 18px; padding: 2.2rem; box-shadow: var(--shadow); border: 1px solid var(--line); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: .4rem; color: var(--blue-900); }
.field .req { color: var(--red); }
.field .hint { display: block; font-size: .82rem; color: var(--ink-soft); margin-top: .35rem; }
.input, .select, .textarea {
    width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
    padding: .8rem .95rem; border: 1.5px solid #d6d2c7; border-radius: 10px; background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(29,116,166,.15); }
.textarea { min-height: 170px; resize: vertical; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--blue) 50%), linear-gradient(135deg, var(--blue) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.4rem; }
.input.is-invalid, .textarea.is-invalid, .select.is-invalid { border-color: var(--red); }
.checkbox { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; color: var(--ink-soft); }
.checkbox input { margin-top: .3rem; width: 18px; height: 18px; accent-color: var(--blue); flex-shrink: 0; }
.char-count { float: right; font-weight: 500; color: var(--ink-soft); font-size: .8rem; }

.captcha-box { background: var(--tan-50); border: 2px dashed var(--tan); border-radius: 14px; padding: 1.1rem 1.2rem; margin-bottom: 1.3rem; }
.captcha-row { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.captcha-img { border-radius: 10px; border: 1px solid var(--line); background: #fff; width: 210px; height: 64px; }
.captcha-refresh { background: #fff; border: 1.5px solid var(--line); border-radius: 10px; width: 46px; height: 46px; cursor: pointer; color: var(--blue); font-size: 1.05rem; }
.captcha-refresh:hover { background: var(--blue-50); }
.captcha-input { max-width: 190px; letter-spacing: .45em; font-weight: 800; font-size: 1.25rem; text-align: center; font-family: ui-monospace, Menlo, Consolas, monospace; }
.captcha-status { font-size: .88rem; font-weight: 600; margin-top: .6rem; min-height: 1.3em; }
.captcha-status.ok { color: var(--green); }
.captcha-status.bad { color: var(--red); }

.support-layout { display: grid; grid-template-columns: 1.55fr 1fr; gap: 2rem; align-items: start; }
.side-stack { display: grid; gap: 1.2rem; position: sticky; top: 100px; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.side-card h3 { font-size: 1.05rem; display: flex; gap: .55rem; align-items: center; }
.side-card h3 i { color: var(--blue); }
.side-card p, .side-card li { font-size: .93rem; color: var(--ink-soft); }
.side-card ul { padding-left: 1.1rem; margin: 0; }
.side-card-accent { background: var(--yellow-50); border-color: #f1dd9a; }

/* ---------- Legal pages ---------- */
.legal-layout { display: grid; grid-template-columns: 260px 1fr; gap: 3rem; align-items: start; }
.toc { position: sticky; top: 100px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.3rem 1rem; font-size: .9rem; max-height: calc(100vh - 130px); overflow: auto; }
.toc-title { font-weight: 800; font-family: var(--font-head); color: var(--blue-900); margin-bottom: .6rem; }
.toc ol { margin: 0; padding-left: 1.2rem; }
.toc li { margin-bottom: .4rem; }
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--blue); }
.legal-content { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 2.6rem; }
.legal-content section { scroll-margin-top: 100px; }
.legal-content section + section { margin-top: 2.2rem; padding-top: 2rem; border-top: 1px dashed var(--line); }
.legal-content h2 { font-size: 1.45rem; }
.legal-content h3 { font-size: 1.08rem; margin-top: 1.4rem; }
.legal-content li { margin-bottom: .45rem; }
.legal-content table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.4rem; font-size: .93rem; }
.legal-content th, .legal-content td { text-align: left; padding: .75rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-content th { background: var(--blue-50); color: var(--blue-900); font-weight: 700; }
.note { background: var(--yellow-50); border-left: 4px solid var(--yellow); padding: 1rem 1.2rem; border-radius: 0 10px 10px 0; margin: 1.2rem 0; }
.legal-help { margin-top: 2.6rem; display: flex; gap: 1.2rem; align-items: flex-start; background: var(--blue-50); border-radius: 14px; padding: 1.5rem; }
.legal-help > i { font-size: 1.8rem; color: var(--blue); }
.legal-help p { margin: .2rem 0 .9rem; color: var(--ink-soft); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin: 1.2rem 0; }
.compare > div { border: 1px solid var(--line); border-radius: 14px; padding: 1.3rem; background: var(--cream); }
.compare h3 { margin-top: 0; display: flex; gap: .5rem; align-items: center; }

/* ---------- Store ---------- */
.store-toolbar { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 1.4rem; }
.search-form { display: flex; gap: .6rem; flex: 1; min-width: 260px; max-width: 520px; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.8rem; }
.chip { display: inline-block; padding: .45em .95em; border-radius: 99px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-size: .86rem; font-weight: 600; }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1.6rem; }
.book-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s; }
.book-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.book-cover { aspect-ratio: 2 / 3; background: var(--tan-50); overflow: hidden; display: block; position: relative; }
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.book-title { font-family: var(--font-head); font-weight: 800; font-size: 1.02rem; color: var(--blue-900); text-decoration: none; line-height: 1.3; }
.book-title:hover { color: var(--blue); }
.book-author { font-size: .84rem; color: var(--ink-soft); }
.book-foot { margin-top: auto; padding-top: .7rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.price { font-family: var(--font-head); font-weight: 900; color: var(--red); font-size: 1.2rem; }
.price-lg { font-size: 2.1rem; }
.pagination { display: flex; justify-content: center; gap: .4rem; margin-top: 2.6rem; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; text-decoration: none; font-weight: 700; color: var(--ink); padding: 0 .7rem; }
.pagination .current { background: var(--blue); color: #fff; border-color: var(--blue); }
.empty-state { text-align: center; padding: 3.5rem 1rem; background: #fff; border: 2px dashed var(--line); border-radius: 18px; }
.empty-state i { font-size: 2.6rem; color: var(--tan); margin-bottom: 1rem; }

.product { display: grid; grid-template-columns: 380px 1fr; gap: 3rem; align-items: start; }
.product-cover { position: sticky; top: 100px; }
.product-cover img { border-radius: 14px; box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 2 / 3; object-fit: cover; background: var(--tan-50); }
.product h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: .25em; }
.product .subtitle { font-size: 1.18rem; color: var(--ink-soft); margin-bottom: 1.2rem; }
.buy-box { background: #fff; border: 2px dashed var(--red); outline: 6px solid #fff; box-shadow: var(--shadow); border-radius: 16px; padding: 1.5rem; margin: 1.4rem 0 2rem; }
.buy-row { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.buy-points { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .45rem 1rem; font-size: .9rem; color: var(--ink-soft); }
.buy-points i { color: var(--green); margin-right: 5px; }
.spec-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 2rem; }
.spec-table th, .spec-table td { padding: .75rem 1rem; border-bottom: 1px solid var(--line); text-align: left; font-size: .94rem; vertical-align: top; }
.spec-table th { width: 180px; background: var(--blue-50); color: var(--blue-900); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.description { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.8rem; margin-bottom: 2rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag-pill { font-size: .8rem; background: var(--tan-50); color: var(--tan-600); padding: .3em .75em; border-radius: 99px; font-weight: 600; text-decoration: none; }
.tag-pill:hover { background: var(--tan); color: #fff; }

.cart-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.cart-table th, .cart-table td { padding: 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.cart-table th { background: var(--blue-50); font-size: .86rem; text-transform: uppercase; letter-spacing: .05em; color: var(--blue-900); }
.cart-item { display: flex; gap: 1rem; align-items: center; }
.cart-item img { width: 56px; height: 84px; object-fit: cover; border-radius: 6px; background: var(--tan-50); }
.checkout-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: start; margin-top: 2rem; }
.summary-line { display: flex; justify-content: space-between; padding: .5rem 0; }
.summary-total { border-top: 2px dashed var(--line); margin-top: .5rem; padding-top: .9rem; font-weight: 800; font-size: 1.15rem; }
.download-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.download-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.2rem; display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.download-item .dl-btns { display: flex; gap: .5rem; flex-wrap: wrap; }
.ref-box { font-family: ui-monospace, Menlo, Consolas, monospace; background: var(--yellow-50); border: 1.5px dashed var(--yellow-600); border-radius: 10px; padding: .6rem 1rem; display: inline-block; font-weight: 700; font-size: 1.05rem; word-break: break-all; }

/* ---------- Affiliate cards ---------- */
.program-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.8rem; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; transition: transform .18s, box-shadow .18s; }
.program-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: linear-gradient(90deg, var(--blue), var(--blue) 60%, var(--yellow) 60%, var(--yellow) 80%, var(--tan) 80%); }
.program-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.program-card h3 { font-size: 1.22rem; margin-bottom: .4rem; }
.program-card p { color: var(--ink-soft); font-size: .95rem; }
.program-meta { list-style: none; padding: 0; margin: .3rem 0 1.2rem; font-size: .88rem; display: grid; gap: .35rem; }
.program-meta i { color: var(--blue); width: 18px; }
.program-url { font-size: .82rem; color: var(--ink-soft); word-break: break-all; margin-bottom: 1rem; display: flex; gap: .4rem; align-items: center; }
.program-card .btn { margin-top: auto; white-space: normal; text-align: center; line-height: 1.3; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-900); color: #bdd3e2; margin-top: 0; position: relative; padding-top: 64px; }
.footer-stitch { position: absolute; top: 14px; left: 0; right: 0; border-top: 2px dashed rgba(179,40,47,.9); }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: var(--yellow); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.4rem; padding-bottom: 2.6rem; }
.footer-brand p { font-size: .93rem; margin: 1rem 0 1.3rem; max-width: 34em; }
.logo-footer .logo-text { color: #fff; }
.logo-footer .logo-text strong { color: var(--yellow); }
.footer-title { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer a { color: #bdd3e2; text-decoration: none; font-size: .93rem; }
.site-footer a:hover { color: var(--yellow); }
.site-footer .btn-accent { color: var(--blue-900); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1.3rem; padding-bottom: 1.5rem; font-size: .86rem; flex-wrap: wrap; }
.footer-bottom p { margin: 0; }
.pay-icons { display: flex; gap: .7rem; font-size: 1.7rem; color: #9fbdd1; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; }
.muted { color: var(--ink-soft); }
.small { font-size: .88rem; }
.check-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.check-list li { padding-left: 1.8rem; position: relative; margin-bottom: .55rem; }
.check-list li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; top: .05em; color: var(--green); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .site-nav ul a i { display: none; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
    .nav-toggle { display: block; }
    .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; align-items: stretch; padding: 1rem 20px 1.4rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
    .site-nav.open { display: flex; }
    .site-nav ul { flex-direction: column; }
    .site-nav ul a i { display: inline-block; }
    .nav-actions { justify-content: space-between; padding-top: .8rem; border-top: 1px dashed var(--line); }
    .hero-grid, .support-layout, .checkout-layout, .product, .legal-layout { grid-template-columns: 1fr; }
    .side-stack, .toc, .product-cover { position: static; }
    .product-cover { max-width: 240px; margin: 0 auto; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .cta-band { flex-direction: column; align-items: flex-start; }
    .topbar-right { display: none; }
}
@media (max-width: 640px) {
    body { font-size: 15.5px; }
    .grid-2, .grid-3, .grid-4, .form-row, .compare, .buy-points { grid-template-columns: 1fr; }
    .section { padding: 52px 0; }
    .hero { padding: 56px 0 90px; }
    .form-card, .legal-content { padding: 1.4rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .book-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .book-foot { flex-direction: column; align-items: stretch; }
    .cart-table thead { display: none; }
    .cart-table td { display: block; border-bottom: 0; padding: .5rem 1rem; }
    .cart-table tr { display: block; border-bottom: 1px solid var(--line); padding: .6rem 0; }
}
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; }
}
