/* ============================================
   AH5.shop — Premium Organic Design System
   Deep, rich, organic colors. No transparency abuse.
   ============================================ */

:root {
    --ink-900: #070C0A;
    --ink-800: #0A1410;
    --ink-700: #0F1A15;
    --ink-600: #142019;
    --ink-500: #1B2A22;
    --ink-400: #243029;

    --moss-900: #0D2818;
    --moss-800: #143A24;
    --moss-700: #1B4332;
    --moss-600: #2D6A4F;

    --gold-700: #8B6A3A;
    --gold-500: #D4A574;
    --gold-400: #E0BC8F;
    --gold-300: #ECD3AA;

    --copper-500: #B86B4B;
    --copper-400: #C97B4F;

    --cream-700: #F0E8D9;
    --cream-500: #F5F0E6;
    --cream-300: #FAF6EE;

    --ash-500: #9CA59C;
    --ash-400: #B5BCB3;
    --ash-300: #CFD4CC;

    --shadow-deep: 0 30px 80px -30px rgba(0,0,0,0.8);
    --shadow-card: 0 12px 40px -16px rgba(0,0,0,0.7);
    --shadow-glow: 0 0 60px -20px rgba(212,165,116,0.45);

    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 24px;
    --r-xl: 32px;
}

* { box-sizing: border-box; }

html, body { background: var(--ink-800); color: var(--cream-500); }

body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-feature-settings: 'ss01', 'cv01';
    line-height: 1.65;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Scrollbar */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--ink-900); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--moss-700), var(--ink-500));
    border-radius: 10px;
    border: 2px solid var(--ink-900);
}
::-webkit-scrollbar-thumb:hover { background: var(--gold-700); }

/* Container */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

@media (max-width: 640px) {
    .container { padding: 0 16px; }
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -60px;
    left: 12px;
    background: var(--gold-500);
    color: var(--ink-900);
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 700;
    z-index: 200;
    transition: top 0.25s;
}
.skip-link:focus { top: 12px; }

/* Ambient background */
.ambient-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background:
        radial-gradient(ellipse at top, rgba(27,67,50,0.35), transparent 60%),
        radial-gradient(ellipse at bottom right, rgba(139,106,58,0.12), transparent 60%),
        var(--ink-800);
}
.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    animation: orbFloat 20s ease-in-out infinite;
}
.ambient-orb-1 {
    width: 480px; height: 480px;
    background: radial-gradient(circle, var(--moss-600), transparent 70%);
    top: -120px; left: -120px;
}
.ambient-orb-2 {
    width: 540px; height: 540px;
    background: radial-gradient(circle, var(--gold-700), transparent 70%);
    bottom: -160px; right: -160px;
    animation-delay: -8s;
}
.ambient-orb-3 {
    width: 360px; height: 360px;
    background: radial-gradient(circle, var(--copper-500), transparent 70%);
    top: 40%; left: 50%;
    transform: translateX(-50%);
    animation-delay: -14s;
    opacity: 0.18;
}
.ambient-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(212,165,116,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212,165,116,0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -30px) scale(1.08); }
    66% { transform: translate(-30px, 40px) scale(0.95); }
}

/* Top bar */
.topbar {
    background: linear-gradient(90deg, var(--moss-900), var(--ink-700));
    border-bottom: 1px solid rgba(212,165,116,0.12);
    font-size: 13px;
    color: var(--ash-300);
    position: relative;
    z-index: 50;
}
.topbar-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 8px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.topbar-pill {
    background: var(--gold-500);
    color: var(--ink-900);
    padding: 2px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.topbar a {
    color: var(--gold-400);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.topbar a:hover { color: var(--gold-300); }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10,20,16,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212,165,116,0.10);
    transition: all 0.3s ease;
}
.site-header.scrolled {
    background: rgba(7,12,10,0.95);
    box-shadow: 0 10px 40px -20px rgba(0,0,0,0.8);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 14px;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}
.brand-mark {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 800;
    font-size: 22px;
    color: var(--gold-500);
    background: var(--ink-600);
    border: 1px solid rgba(212,165,116,0.25);
    border-radius: 12px;
    padding: 6px 12px;
    letter-spacing: -0.02em;
    box-shadow: inset 0 1px 0 rgba(212,165,116,0.18);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--cream-300);
    letter-spacing: -0.01em;
}
.brand-sub {
    font-size: 11px;
    color: var(--ash-500);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.primary-nav {
    display: flex;
    gap: 6px;
    align-items: center;
}
.primary-nav a {
    color: var(--ash-300);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 10px;
    transition: all 0.2s ease;
    position: relative;
}
.primary-nav a:hover {
    color: var(--cream-300);
    background: rgba(212,165,116,0.06);
}
.primary-nav a.is-active {
    color: var(--gold-400);
    background: rgba(212,165,116,0.10);
}
.primary-nav a.is-active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px; height: 4px;
    background: var(--gold-500);
    border-radius: 50%;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(212,165,116,0.18);
    border-radius: 10px;
    padding: 8px 10px;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    width: 40px; height: 40px;
    align-items: center;
    justify-content: center;
}
.nav-toggle span {
    display: block;
    width: 18px; height: 2px;
    background: var(--gold-500);
    transition: 0.25s;
    border-radius: 2px;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
    .nav-toggle { display: flex; }
    .primary-nav {
        position: fixed;
        top: 0; right: -100%;
        width: 80%; max-width: 320px;
        height: 100vh;
        background: var(--ink-700);
        border-left: 1px solid rgba(212,165,116,0.15);
        flex-direction: column;
        align-items: stretch;
        padding: 80px 20px 20px;
        gap: 6px;
        transition: right 0.3s cubic-bezier(0.4,0,0.2,1);
        z-index: 99;
        box-shadow: var(--shadow-deep);
    }
    .primary-nav.open { right: 0; }
    .primary-nav a {
        padding: 14px 16px;
        font-size: 16px;
        border-bottom: 1px solid rgba(212,165,116,0.08);
        border-radius: 0;
    }
    .brand-sub { display: none; }
}

/* ============== HERO ============== */
.hero {
    position: relative;
    padding: 90px 0 80px;
    overflow: hidden;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}
@media (max-width: 920px) {
    .hero { padding: 60px 0 50px; }
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212,165,116,0.08);
    border: 1px solid rgba(212,165,116,0.22);
    color: var(--gold-400);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 24px;
    animation: fadeUp 0.7s 0.05s both;
}
.hero-eyebrow .dot {
    width: 6px; height: 6px;
    background: var(--gold-500);
    border-radius: 50%;
    animation: pulseSlow 2s ease-in-out infinite;
}

.hero-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--cream-300);
    margin: 0 0 24px;
    font-weight: 600;
    animation: fadeUp 0.7s 0.12s both;
}
.hero-title .accent {
    background: linear-gradient(120deg, var(--gold-500) 0%, var(--copper-400) 50%, var(--gold-300) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientX 8s ease infinite;
    font-style: italic;
    font-weight: 700;
}
.hero-title .accent::after {
    content: '';
    display: inline-block;
    width: 8px; height: 8px;
    margin-left: 4px;
    border-radius: 50%;
    background: var(--gold-500);
}

.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.18rem);
    color: var(--ash-300);
    max-width: 560px;
    margin: 0 0 36px;
    animation: fadeUp 0.7s 0.2s both;
}

.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    animation: fadeUp 0.7s 0.28s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.btn-primary {
    background: linear-gradient(135deg, var(--gold-500), var(--copper-400));
    color: var(--ink-900);
    box-shadow: 0 12px 30px -12px rgba(212,165,116,0.5);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px -12px rgba(212,165,116,0.65);
}
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}
.btn-primary:hover::after { left: 100%; }

.btn-ghost {
    background: rgba(212,165,116,0.04);
    border-color: rgba(212,165,116,0.22);
    color: var(--cream-300);
}
.btn-ghost:hover {
    background: rgba(212,165,116,0.10);
    border-color: rgba(212,165,116,0.4);
    color: var(--gold-300);
}

/* Hero stats */
.hero-stats {
    display: flex;
    gap: 36px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(212,165,116,0.12);
    animation: fadeUp 0.7s 0.36s both;
    flex-wrap: wrap;
}
.hero-stat .num {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gold-400);
    line-height: 1;
}
.hero-stat .lbl {
    font-size: 13px;
    color: var(--ash-500);
    margin-top: 6px;
    letter-spacing: 0.04em;
}

/* Hero visual */
.hero-visual {
    position: relative;
    aspect-ratio: 1 / 1;
    max-width: 520px;
    margin-left: auto;
    animation: fadeIn 1s 0.3s both;
}
.hero-card {
    position: absolute;
    background: linear-gradient(145deg, var(--ink-600), var(--ink-700));
    border: 1px solid rgba(212,165,116,0.18);
    border-radius: var(--r-lg);
    padding: 20px;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(10px);
    transition: transform 0.4s ease;
}
.hero-card-1 {
    top: 6%; left: 4%; right: 30%; bottom: 50%;
    animation: float 6s ease-in-out infinite;
}
.hero-card-2 {
    top: 38%; right: 4%; left: 30%; bottom: 22%;
    animation: float 7s ease-in-out infinite -2s;
}
.hero-card-3 {
    bottom: 6%; left: 8%; right: 28%; top: 65%;
    animation: float 8s ease-in-out infinite -4s;
}
.hero-card .hc-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ash-500);
    margin-bottom: 8px;
}
.hero-card .hc-value {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.6rem;
    color: var(--gold-400);
    font-weight: 700;
}
.hero-card .hc-bar {
    height: 6px;
    background: rgba(212,165,116,0.12);
    border-radius: 3px;
    margin-top: 10px;
    overflow: hidden;
}
.hero-card .hc-bar > span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--gold-500), var(--copper-400));
    border-radius: 3px;
    animation: shimmer 3s linear infinite;
    background-size: 200% 100%;
}

/* ============== SECTIONS ============== */
.section {
    padding: 80px 0;
    position: relative;
}
@media (max-width: 640px) { .section { padding: 56px 0; } }

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
}
.section-eyebrow {
    display: inline-block;
    color: var(--gold-500);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 14px;
    padding-bottom: 14px;
    position: relative;
}
.section-eyebrow::after {
    content: '';
    position: absolute;
    left: 50%; bottom: 0;
    transform: translateX(-50%);
    width: 32px; height: 2px;
    background: var(--gold-500);
}
.section-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(1.9rem, 3.6vw, 2.8rem);
    line-height: 1.15;
    color: var(--cream-300);
    margin: 0 0 16px;
    font-weight: 600;
    letter-spacing: -0.02em;
}
.section-desc {
    color: var(--ash-400);
    font-size: 1.05rem;
}

/* ============== TOOL GRID ============== */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.tool-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: linear-gradient(160deg, var(--ink-600), var(--ink-700));
    border: 1px solid rgba(212,165,116,0.12);
    border-radius: var(--r-lg);
    padding: 26px;
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
    min-height: 200px;
}
.tool-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(212,165,116,0.08), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
}
.tool-card:hover {
    transform: translateY(-6px);
    border-color: rgba(212,165,116,0.35);
    box-shadow: 0 24px 50px -20px rgba(0,0,0,0.7), 0 0 0 1px rgba(212,165,116,0.2);
}
.tool-card:hover::before { opacity: 1; }

.tool-icon {
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--moss-700), var(--ink-500));
    border: 1px solid rgba(212,165,116,0.18);
    color: var(--gold-400);
    margin-bottom: 18px;
    transition: all 0.3s;
}
.tool-card:hover .tool-icon {
    transform: rotate(-6deg) scale(1.08);
    box-shadow: var(--shadow-glow);
}
.tool-cat {
    position: absolute;
    top: 22px; right: 22px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ash-500);
    background: var(--ink-500);
    border: 1px solid rgba(212,165,116,0.12);
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 600;
}
.tool-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.18rem;
    color: var(--cream-300);
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}
.tool-excerpt {
    color: var(--ash-400);
    font-size: 14px;
    line-height: 1.55;
    margin: 0 0 18px;
}
.tool-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gold-400);
    font-size: 13px;
    font-weight: 600;
    transition: gap 0.25s;
}
.tool-card:hover .tool-cta { gap: 12px; color: var(--gold-300); }

/* ============== ARTICLE GRID ============== */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}
.article-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: linear-gradient(160deg, var(--ink-600), var(--ink-700));
    border: 1px solid rgba(212,165,116,0.12);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
}
.article-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212,165,116,0.35);
    box-shadow: var(--shadow-card);
}
.article-cover {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--moss-700), var(--ink-500));
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.article-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(212,165,116,0.25), transparent 60%);
}
.article-cover .ac-glyph {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 3.5rem;
    color: var(--gold-500);
    font-weight: 700;
    font-style: italic;
    opacity: 0.85;
    text-shadow: 0 4px 30px rgba(0,0,0,0.5);
    position: relative;
    z-index: 2;
}
.article-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--ash-500);
    margin-bottom: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 600;
}
.article-meta .cat {
    color: var(--gold-400);
}
.article-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.3rem;
    line-height: 1.3;
    color: var(--cream-300);
    margin: 0 0 10px;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.article-card:hover .article-title { color: var(--gold-300); }
.article-excerpt {
    color: var(--ash-400);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 16px;
    flex: 1;
}
.article-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--ash-500);
    padding-top: 14px;
    border-top: 1px solid rgba(212,165,116,0.08);
}
.article-foot .read {
    color: var(--gold-400);
    font-weight: 600;
}

/* ============== CALCULATOR PAGE ============== */
.calc-wrap {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 36px;
    padding: 56px 0;
}
@media (max-width: 960px) {
    .calc-wrap { grid-template-columns: 1fr; }
}

.breadcrumbs {
    font-size: 13px;
    color: var(--ash-500);
    margin-bottom: 24px;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.breadcrumbs a { color: var(--ash-400); text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold-400); }
.breadcrumbs .sep { color: rgba(212,165,116,0.3); }

.page-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--cream-300);
    margin: 0 0 16px;
    font-weight: 600;
}
.page-lead {
    color: var(--ash-300);
    font-size: 1.08rem;
    max-width: 720px;
    margin: 0 0 36px;
}

.calc-shell {
    background: linear-gradient(160deg, var(--ink-600), var(--ink-700));
    border: 1px solid rgba(212,165,116,0.15);
    border-radius: var(--r-xl);
    padding: 36px;
    box-shadow: var(--shadow-card);
}
@media (max-width: 640px) { .calc-shell { padding: 22px; border-radius: var(--r-lg); } }

/* Form controls */
.field {
    margin-bottom: 22px;
}
.field-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ash-300);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}
.field-hint {
    font-size: 12px;
    color: var(--ash-500);
    margin-top: 6px;
}
.input, .select, .textarea {
    width: 100%;
    background: var(--ink-800);
    border: 1px solid rgba(212,165,116,0.18);
    border-radius: var(--r-sm);
    padding: 12px 14px;
    color: var(--cream-300);
    font-family: inherit;
    font-size: 15px;
    transition: all 0.2s;
    font-weight: 500;
}
.input:focus, .select:focus, .textarea:focus {
    outline: none;
    border-color: var(--gold-500);
    box-shadow: 0 0 0 4px rgba(212,165,116,0.10);
    background: var(--ink-700);
}
.select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D4A574' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 40px;
}
.textarea { resize: vertical; min-height: 100px; }

.input-group {
    display: flex;
    align-items: stretch;
}
.input-group .input { border-radius: var(--r-sm) 0 0 var(--r-sm); }
.input-group .addon {
    background: var(--ink-500);
    border: 1px solid rgba(212,165,116,0.18);
    border-left: none;
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    padding: 0 14px;
    color: var(--gold-400);
    font-weight: 600;
    font-size: 14px;
    display: flex; align-items: center;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }

.btn-calc {
    background: linear-gradient(135deg, var(--gold-500), var(--copper-400));
    color: var(--ink-900);
    border: none;
    padding: 14px 28px;
    border-radius: var(--r-sm);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 10px 24px -10px rgba(212,165,116,0.5);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-calc:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -10px rgba(212,165,116,0.65); }
.btn-calc:active { transform: translateY(0); }

.btn-soft {
    background: rgba(212,165,116,0.08);
    border: 1px solid rgba(212,165,116,0.2);
    color: var(--gold-300);
    padding: 12px 22px;
    border-radius: var(--r-sm);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-soft:hover { background: rgba(212,165,116,0.14); }

/* Results panel */
.result-panel {
    margin-top: 32px;
    padding: 28px;
    background: linear-gradient(160deg, var(--moss-900), var(--ink-700));
    border: 1px solid rgba(212,165,116,0.2);
    border-radius: var(--r-lg);
    display: none;
}
.result-panel.show { display: block; animation: fadeUp 0.5s both; }
.result-headline {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold-400);
    font-weight: 700;
    margin-bottom: 12px;
}
.result-amount {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    color: var(--cream-300);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}
.result-amount .currency {
    font-size: 0.5em;
    color: var(--gold-500);
    vertical-align: super;
    margin-right: 6px;
}
.result-note {
    color: var(--ash-400);
    font-size: 14px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(212,165,116,0.12);
}

/* Comparison table */
.compare-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 24px;
    background: var(--ink-700);
    border-radius: var(--r-md);
    overflow: hidden;
    font-size: 14px;
}
.compare-table thead {
    background: linear-gradient(90deg, var(--moss-800), var(--ink-500));
}
.compare-table th, .compare-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(212,165,116,0.08);
}
.compare-table th {
    color: var(--gold-400);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.compare-table tbody tr:hover { background: rgba(212,165,116,0.04); }
.compare-table td.highlight { color: var(--gold-300); font-weight: 600; }
.compare-table .num { font-family: 'JetBrains Mono', monospace; }

.compare-table-wrap {
    overflow-x: auto;
    border-radius: var(--r-md);
    border: 1px solid rgba(212,165,116,0.12);
}

/* Sidebar */
.sidebar-card {
    background: linear-gradient(160deg, var(--ink-600), var(--ink-700));
    border: 1px solid rgba(212,165,116,0.12);
    border-radius: var(--r-lg);
    padding: 22px;
    margin-bottom: 20px;
}
.sidebar-card h4 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.05rem;
    color: var(--cream-300);
    margin: 0 0 14px;
    font-weight: 600;
}
.sidebar-card ul { list-style: none; padding: 0; margin: 0; }
.sidebar-card li { margin-bottom: 10px; }
.sidebar-card a {
    color: var(--ash-300);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
    line-height: 1.4;
    display: block;
}
.sidebar-card a:hover { color: var(--gold-400); }

/* ============== ARTICLE PROSE ============== */
.prose {
    max-width: 760px;
    margin: 0 auto;
    color: var(--ash-300);
    font-size: 1.08rem;
    line-height: 1.8;
}
.prose h2 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.9rem;
    color: var(--cream-300);
    margin: 48px 0 18px;
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.25;
    scroll-margin-top: 100px;
}
.prose h2::before {
    content: '';
    display: block;
    width: 40px; height: 3px;
    background: linear-gradient(90deg, var(--gold-500), transparent);
    margin-bottom: 14px;
    border-radius: 2px;
}
.prose h3 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.4rem;
    color: var(--cream-300);
    margin: 36px 0 14px;
    font-weight: 600;
}
.prose p { margin: 0 0 22px; }
.prose ul, .prose ol { margin: 0 0 22px; padding-left: 24px; }
.prose li { margin-bottom: 10px; }
.prose a { color: var(--gold-400); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--gold-300); }
.prose strong { color: var(--cream-300); font-weight: 600; }
.prose blockquote {
    border-left: 3px solid var(--gold-500);
    padding: 8px 0 8px 22px;
    margin: 28px 0;
    font-family: 'Fraunces', Georgia, serif;
    font-style: italic;
    font-size: 1.15rem;
    color: var(--cream-700);
}
.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
    font-size: 0.95rem;
    background: var(--ink-700);
    border-radius: var(--r-md);
    overflow: hidden;
}
.prose table th, .prose table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(212,165,116,0.08);
    text-align: left;
}
.prose table th {
    background: var(--ink-500);
    color: var(--gold-400);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.prose code {
    background: var(--ink-900);
    color: var(--gold-400);
    padding: 2px 8px;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9em;
}
.prose .callout {
    background: linear-gradient(160deg, var(--moss-900), var(--ink-700));
    border: 1px solid rgba(212,165,116,0.18);
    border-left: 4px solid var(--gold-500);
    border-radius: var(--r-md);
    padding: 20px 24px;
    margin: 28px 0;
}
.prose .callout-title {
    color: var(--gold-400);
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Table of contents */
.toc {
    background: linear-gradient(160deg, var(--ink-600), var(--ink-700));
    border: 1px solid rgba(212,165,116,0.12);
    border-radius: var(--r-lg);
    padding: 22px 26px;
    margin: 32px 0;
}
.toc-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.1rem;
    color: var(--cream-300);
    margin: 0 0 12px;
    font-weight: 600;
}
.toc ol { margin: 0; padding-left: 22px; }
.toc li { margin-bottom: 6px; font-size: 14px; }
.toc a { color: var(--ash-300); text-decoration: none; transition: color 0.2s; }
.toc a:hover { color: var(--gold-400); }

/* Article header */
.article-header {
    padding: 48px 0 32px;
    text-align: center;
    border-bottom: 1px solid rgba(212,165,116,0.08);
    margin-bottom: 40px;
}
.article-header .cat {
    color: var(--gold-500);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 18px;
    display: inline-block;
}
.article-header h1 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(2.2rem, 4.6vw, 3.4rem);
    line-height: 1.1;
    color: var(--cream-300);
    margin: 0 0 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
}
.article-header .lead {
    font-size: 1.18rem;
    color: var(--ash-300);
    max-width: 680px;
    margin: 0 auto 24px;
    line-height: 1.55;
}
.article-header .meta {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    color: var(--ash-500);
    font-size: 13px;
    flex-wrap: wrap;
    justify-content: center;
}
.article-header .meta .dot { width: 4px; height: 4px; background: var(--ash-500); border-radius: 50%; }

/* Newsletter / CTA */
.cta-band {
    background: linear-gradient(135deg, var(--moss-800), var(--ink-500));
    border: 1px solid rgba(212,165,116,0.22);
    border-radius: var(--r-xl);
    padding: 48px;
    text-align: center;
    margin: 64px 0;
    position: relative;
    overflow: hidden;
}
.cta-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(212,165,116,0.18), transparent 50%);
    pointer-events: none;
}
.cta-band h3 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--cream-300);
    margin: 0 0 12px;
    font-weight: 600;
    position: relative;
}
.cta-band p {
    color: var(--ash-300);
    margin: 0 0 24px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}
.cta-band .btn { position: relative; }

/* ============== FOOTER ============== */
.site-footer {
    background: var(--ink-900);
    border-top: 1px solid rgba(212,165,116,0.12);
    padding: 64px 0 28px;
    margin-top: 80px;
    position: relative;
    z-index: 2;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}
@media (max-width: 860px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 540px) {
    .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand .brand { margin-bottom: 18px; }
.footer-tag {
    color: var(--ash-400);
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 18px;
    max-width: 380px;
}
.footer-contact a { color: var(--gold-400); text-decoration: none; font-weight: 600; font-size: 15px; }
.footer-contact a:hover { color: var(--gold-300); }
.footer-col h4 {
    font-family: 'Fraunces', Georgia, serif;
    color: var(--cream-300);
    font-size: 1rem;
    margin: 0 0 18px;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
    color: var(--ash-400);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}
.footer-col a:hover { color: var(--gold-400); }
.footer-bottom {
    border-top: 1px solid rgba(212,165,116,0.08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
    color: var(--ash-500);
}
.footer-meta { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-meta a { color: var(--ash-400); text-decoration: none; }
.footer-meta a:hover { color: var(--gold-400); }

/* ============== ADS ============== */
.adsense-placeholder {
    background: var(--ink-700);
    border: 1px dashed rgba(212,165,116,0.2);
    border-radius: var(--r-md);
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ash-500);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 28px 0;
}
.ad-block {
    margin: 36px 0;
    text-align: center;
}

/* ============== UTILS ============== */
.fade-in-up { animation: fadeUp 0.7s both; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s, transform 0.7s; }
.reveal.in { opacity: 1; transform: translateY(0); }

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(212,165,116,0.08);
    border: 1px solid rgba(212,165,116,0.22);
    color: var(--gold-400);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212,165,116,0.22), transparent);
    margin: 56px 0;
}

/* Filter chips */
.filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 40px;
}
.chip {
    background: var(--ink-600);
    border: 1px solid rgba(212,165,116,0.14);
    color: var(--ash-300);
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}
.chip:hover { border-color: rgba(212,165,116,0.3); color: var(--gold-400); }
.chip.active {
    background: linear-gradient(135deg, var(--gold-500), var(--copper-400));
    color: var(--ink-900);
    border-color: transparent;
    font-weight: 600;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px; right: 24px;
    background: linear-gradient(135deg, var(--moss-700), var(--ink-500));
    border: 1px solid rgba(212,165,116,0.3);
    color: var(--cream-300);
    padding: 14px 22px;
    border-radius: var(--r-md);
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-deep);
    transform: translateY(120%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    z-index: 200;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* Search */
.search-box {
    position: relative;
    max-width: 520px;
    margin: 0 auto 36px;
}
.search-box input {
    width: 100%;
    background: var(--ink-700);
    border: 1px solid rgba(212,165,116,0.18);
    border-radius: 999px;
    padding: 14px 22px 14px 50px;
    color: var(--cream-300);
    font-family: inherit;
    font-size: 15px;
    transition: all 0.2s;
}
.search-box input:focus {
    outline: none;
    border-color: var(--gold-500);
    box-shadow: 0 0 0 4px rgba(212,165,116,0.10);
}
.search-box svg {
    position: absolute;
    left: 18px; top: 50%;
    transform: translateY(-50%);
    color: var(--ash-500);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--ash-500);
}

/* Mobile tweaks */
@media (max-width: 640px) {
    .hero-stats { gap: 22px; }
    .hero-stat .num { font-size: 1.7rem; }
    .cta-band { padding: 32px 22px; }
    .calc-shell { padding: 18px; }
}

/* ============================================
   HEADER SEARCH (live dropdown)
   ============================================ */
.header-search {
    position: relative;
    flex: 1;
    max-width: 280px;
    margin: 0 12px;
}
@media (max-width: 1024px) {
    .header-search { max-width: 200px; }
}
@media (max-width: 860px) {
    .header-search {
        order: 3;
        max-width: none;
        width: 100%;
        margin: 12px 0 0;
    }
}
.header-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--ink-700);
    border: 1px solid rgba(212,165,116,0.18);
    border-radius: 999px;
    padding: 8px 14px;
    color: var(--ash-500);
    transition: all 0.2s;
}
.header-search-box:focus-within {
    border-color: var(--gold-500);
    background: var(--ink-800);
    box-shadow: 0 0 0 4px rgba(212,165,116,0.10);
}
.header-search-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--cream-300);
    font-family: inherit;
    font-size: 14px;
    min-width: 0;
}
.header-search-box input::placeholder { color: var(--ash-500); }
.header-search-clear {
    background: transparent;
    border: none;
    color: var(--ash-500);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.2s;
}
.header-search-clear:hover { color: var(--gold-400); }

.search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--ink-700);
    border: 1px solid rgba(212,165,116,0.25);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-deep);
    max-height: 420px;
    overflow-y: auto;
    z-index: 90;
    display: none;
    padding: 6px;
}
.search-dropdown.show { display: block; animation: fadeIn 0.2s ease; }
.search-result {
    display: block;
    padding: 10px 14px;
    border-radius: var(--r-sm);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
    border-bottom: 1px solid rgba(212,165,116,0.06);
}
.search-result:last-child { border-bottom: none; }
.search-result:hover,
.search-result.active { background: rgba(212,165,116,0.08); }
.search-result-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.search-result-type {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--ink-500);
    color: var(--gold-400);
}
.search-result-type.guide {
    background: var(--moss-700);
    color: var(--gold-300);
}
.search-result-cat {
    font-size: 11px;
    color: var(--ash-500);
}
.search-result-title {
    font-size: 14px;
    color: var(--cream-300);
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
}
.search-result-title mark {
    background: rgba(212,165,116,0.25);
    color: var(--gold-300);
    padding: 0 2px;
    border-radius: 2px;
}
.search-result-excerpt {
    font-size: 12px;
    color: var(--ash-400);
    line-height: 1.4;
    margin: 4px 0 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}
.search-empty {
    padding: 24px;
    text-align: center;
    color: var(--ash-500);
    font-size: 13px;
}

/* ============================================
   COOKIE CONSENT BANNER (GDPR)
   ============================================ */
.cookie-banner {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    max-width: 720px;
    margin: 0 auto;
    background: linear-gradient(160deg, var(--ink-600), var(--ink-700));
    border: 1px solid rgba(212,165,116,0.3);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-deep);
    z-index: 250;
    animation: cookieSlideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}
.cookie-banner[hidden] { display: none; }
@keyframes cookieSlideUp {
    from { transform: translateY(120%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.cookie-banner-inner {
    padding: 20px 24px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}
.cookie-banner-text {
    display: flex;
    gap: 14px;
    flex: 1;
    min-width: 280px;
}
.cookie-banner-icon {
    color: var(--gold-500);
    flex-shrink: 0;
    margin-top: 2px;
}
.cookie-banner h4 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1rem;
    color: var(--cream-300);
    margin: 0 0 6px;
    font-weight: 600;
}
.cookie-banner p {
    color: var(--ash-400);
    font-size: 13px;
    line-height: 1.55;
    margin: 0;
}
.cookie-banner p a {
    color: var(--gold-400);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    align-items: center;
}
.cookie-banner-actions .btn-soft,
.cookie-banner-actions .btn-calc {
    padding: 10px 18px;
    font-size: 13px;
    white-space: nowrap;
}
@media (max-width: 640px) {
    .cookie-banner { left: 8px; right: 8px; }
    .cookie-banner-inner { padding: 16px; flex-direction: column; }
    .cookie-banner-actions { width: 100%; }
    .cookie-banner-actions .btn-soft,
    .cookie-banner-actions .btn-calc { flex: 1; }
}

/* ============================================
   FOOTER SOCIAL LINKS
   ============================================ */
.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(212,165,116,0.08);
}
.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--ink-600);
    border: 1px solid rgba(212,165,116,0.15);
    color: var(--ash-300);
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.footer-social-link:hover {
    background: linear-gradient(135deg, var(--gold-500), var(--copper-400));
    color: var(--ink-900);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -8px rgba(212,165,116,0.5);
}
.footer-social-link svg {
    transition: transform 0.25s;
}
.footer-social-link:hover svg {
    transform: scale(1.15);
}

/* External link indicator (subtle arrow) */
a[rel~="external"]::after {
    content: ' ↗';
    font-size: 0.75em;
    color: var(--ash-500);
    text-decoration: none;
    margin-left: 1px;
}
