/* Click for Curtains -- sister brand to Click for Shutters.
   Same "Considered Home" system (see DESIGN.md): one typeface across every
   level via the optical-size axis, bone-cream ground, charcoal ink, copper
   accent kept to <=10% of any screen. */

:root {
    --copper: #b87333;
    --copper-dark: #8f5a28;
    --copper-tint: #fdf8f1;
    --ink: #1a1a1a;
    --charcoal: #2a2a2a;
    --text-2: #6b6560;
    --text-3: #8a847e;
    --cream: #faf8f5;
    --cream-deep: #f0ece6;
    --warm-white: #fdfcfa;
    --line: #e8e4de;
    --line-deep: #c4bfb6;
    --white: #ffffff;
    --error: #a33a2a;
    --ok: #3f6b4a;
    --radius: 8px;
    --radius-lg: 14px;
    --font: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --section: clamp(72px, 11vw, 128px);
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --shadow: 0 1px 2px rgba(26, 26, 26, 0.04), 0 8px 24px rgba(26, 26, 26, 0.05);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
    margin: 0;
    font-family: var(--font);
    font-variation-settings: 'opsz' 14;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0 0 0.5em; font-weight: 400; letter-spacing: -0.02em; line-height: 1.1; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.2rem); font-variation-settings: 'opsz' 96; letter-spacing: -0.03em; line-height: 1.03; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-variation-settings: 'opsz' 72; }
h3 { font-size: 1.25rem; font-weight: 500; font-variation-settings: 'opsz' 24; letter-spacing: -0.005em; line-height: 1.3; }
h4 { font-size: 1rem; font-weight: 600; letter-spacing: 0; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--charcoal); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 780px; }
.section { padding: var(--section) 0; }
.section-tight { padding: calc(var(--section) * 0.6) 0; }
.section-alt { background: var(--warm-white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--copper-dark); margin-bottom: 14px; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text-2); max-width: 60ch; }
.muted { color: var(--text-2); }
.small { font-size: 0.875rem; }
.placeholder-note {
    display: inline-flex; gap: 6px; align-items: center;
    font-size: 0.75rem; color: var(--copper-dark); background: var(--copper-tint);
    border: 1px dashed rgba(184, 115, 51, 0.45); border-radius: 999px; padding: 2px 10px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 24px;
    font: inherit; font-weight: 500; font-size: 0.98rem; text-decoration: none;
    border-radius: 999px; border: 1.5px solid transparent; cursor: pointer;
    transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn-primary { background: var(--charcoal); color: #fff; }
.btn-primary:hover { background: #000; }
.btn-copper { background: var(--copper); color: #fff; }
.btn-copper:hover { background: var(--copper-dark); }
.btn-outline { background: transparent; color: var(--charcoal); border-color: var(--line-deep); }
.btn-outline:hover { border-color: var(--charcoal); }
.btn-ghost { background: transparent; color: var(--text-2); padding: 0 12px; }
.btn-ghost:hover { color: var(--ink); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn-block { width: 100%; }
.link-arrow { color: var(--ink); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line-deep); padding-bottom: 2px; }
.link-arrow:hover { border-color: var(--copper); }

/* ---------- Header ---------- */
/* Under-construction notice (temporary, remove at full launch). Bottom-left so
   it never covers the chat bubble, which sits bottom-right. */
.site-status-badge {
    position: fixed; left: 16px; bottom: 16px; z-index: 55;
    display: flex; align-items: center; gap: 9px;
    background: var(--charcoal); color: #fff; border: 1.5px solid var(--copper);
    font-size: 0.88rem; font-weight: 700; letter-spacing: 0.01em;
    padding: 12px 18px; border-radius: 999px; box-shadow: var(--shadow);
    pointer-events: none;
}
/* Lift it clear of the samples page's sticky "send my samples" bar. */
body:has(.sample-counter:not([hidden])) .site-status-badge { bottom: 92px; }
.site-status-dot {
    width: 9px; height: 9px; border-radius: 50%; background: var(--copper); flex-shrink: 0;
    animation: site-status-pulse 2s var(--ease) infinite;
}
@keyframes site-status-pulse {
    0% { box-shadow: 0 0 0 0 rgba(184, 115, 51, 0.55); }
    70% { box-shadow: 0 0 0 7px rgba(184, 115, 51, 0); }
    100% { box-shadow: 0 0 0 0 rgba(184, 115, 51, 0); }
}
@media (max-width: 640px) {
    .site-status-badge {
        left: 12px; bottom: 12px; max-width: calc(100vw - 96px);
        font-size: 0.78rem; padding: 10px 14px; border-radius: 16px; line-height: 1.35; align-items: flex-start;
    }
    .site-status-badge .site-status-dot { margin-top: 5px; }
}
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(250, 248, 245, 0.96);
    border-bottom: 1px solid var(--line);
}
.header-inner { position: relative; display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 34px; height: 34px; color: var(--charcoal); flex: none; }
.brand-name { font-size: 1.12rem; font-weight: 500; letter-spacing: -0.01em; font-variation-settings: 'opsz' 24; }
.brand-name em { font-style: normal; color: var(--copper-dark); }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.main-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; color: var(--text-2); font-size: 0.95rem; border-radius: 999px; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--ink); }
.main-nav .nav-phone a { color: var(--ink); font-weight: 500; }
.main-nav .btn { margin-left: 6px; min-height: 42px; color: #fff; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; border-radius: 8px; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--ink); margin: 5px auto; }
.has-dropdown { position: relative; }
.dropdown { display: none; position: absolute; top: 100%; left: 0; min-width: 230px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 8px; }
/* Needs .main-nav in the selector to outrank `.main-nav ul { display: flex }`,
   which would otherwise keep the dropdown permanently open. */
.main-nav .dropdown { display: none; flex-direction: column; align-items: stretch; gap: 0; }
.dropdown a { display: flex; width: 100%; border-radius: 8px; }
.dropdown a:hover { background: var(--cream); }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { display: flex; }

@media (max-width: 1020px) {
    .nav-toggle { display: block; }
    .main-nav { display: none; position: absolute; top: 100%; left: -24px; right: -24px; background: var(--cream); border-bottom: 1px solid var(--line); padding: 8px 24px 20px; max-height: calc(100vh - 80px); overflow-y: auto; }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
    .main-nav a { width: 100%; padding: 0 8px; }
    .main-nav .btn { margin: 10px 0 0; width: 100%; }
    .main-nav .dropdown { display: flex; position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; background: transparent; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 9vw, 112px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero p.lede { margin: 20px 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-facts { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--text-2); font-size: 0.92rem; }
.hero-facts li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--copper); margin-right: 10px; vertical-align: middle; }
.hero-art { position: relative; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; background: #f3efe8; }
.hero-art svg { width: 100%; height: 100%; }
.hero-art img, .type-card .art img, .art-panel img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-art .placeholder-note { position: absolute; left: 16px; bottom: 16px; background: rgba(253, 248, 241, 0.92); }
@media (max-width: 860px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-art { aspect-ratio: 1 / 1; }
}

/* ---------- Page header (inner pages) ---------- */
.page-head { padding: clamp(40px, 7vw, 80px) 0 clamp(24px, 4vw, 40px); }
.page-head h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.breadcrumbs { font-size: 0.85rem; color: var(--text-3); margin-bottom: 18px; }
.breadcrumbs a { color: var(--text-2); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); }

/* ---------- Grids & cards ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.section-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }

.type-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: border-color 0.2s, transform 0.3s var(--ease); }
.type-card:hover { border-color: var(--line-deep); transform: translateY(-2px); }
.type-card .art { aspect-ratio: 4 / 3; background: #f3efe8; }
.type-card .art svg { width: 100%; height: 100%; }
.type-card .body { padding: 22px 24px 26px; }
.type-card .body p { color: var(--text-2); font-size: 0.94rem; margin-bottom: 14px; }

.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.steps li { counter-increment: step; border-top: 1px solid var(--line-deep); padding-top: 22px; }
.steps li::before { content: "0" counter(step); display: block; font-size: 0.8rem; letter-spacing: 0.12em; color: var(--copper-dark); font-weight: 600; margin-bottom: 14px; }
.steps p { color: var(--text-2); font-size: 0.94rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.art-panel { border-radius: 18px; background: #f3efe8; aspect-ratio: 5 / 4; overflow: hidden; position: relative; }
.art-panel svg { width: 100%; height: 100%; }

.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
.photo-grid figure { margin: 0; aspect-ratio: 1 / 1; border-radius: var(--radius-lg); overflow: hidden; background: #f3efe8; }
.photo-grid img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .photo-grid { grid-template-columns: repeat(2, 1fr); } }

.check-list { list-style: none; padding: 0; margin: 0 0 24px; }
.check-list li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.check-list li::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 12px; height: 7px; border-left: 1.5px solid var(--copper); border-bottom: 1.5px solid var(--copper); transform: rotate(-45deg); }

/* ---------- Heading gallery ---------- */
.heading-tile { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 18px 20px; }
.heading-tile .art { height: 120px; background: #f3efe8; border-radius: 10px; margin-bottom: 14px; display: flex; align-items: center; justify-content: center; }
.heading-tile .art svg { height: 100%; }
.heading-tile h3 { font-size: 1.05rem; margin-bottom: 4px; }
.heading-tile p { font-size: 0.88rem; color: var(--text-2); margin: 0; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 64px; padding: 14px 0; font-size: 1.05rem; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; font-weight: 300; color: var(--text-2); transition: transform 0.2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 22px; color: var(--text-2); max-width: 70ch; }
.faq-group h2 { font-size: 1.4rem; margin: 48px 0 12px; }
.faq-group:first-child h2 { margin-top: 0; }

/* ---------- Guides (measure / install) ---------- */
.guide-step { display: grid; grid-template-columns: 320px 1fr; gap: clamp(24px, 4vw, 56px); padding: 40px 0; border-top: 1px solid var(--line); align-items: start; }
.guide-step:first-of-type { border-top: 0; }
.guide-step .art { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px; }
.guide-step .num { font-size: 0.8rem; letter-spacing: 0.12em; color: var(--copper-dark); font-weight: 600; margin-bottom: 8px; display: block; }
.guide-step ul { padding-left: 18px; color: var(--text-2); }
.guide-step li { margin-bottom: 6px; }
@media (max-width: 760px) { .guide-step { grid-template-columns: 1fr; } .guide-step .art { max-width: 360px; } }
.callout { background: var(--copper-tint); border: 1px solid rgba(184, 115, 51, 0.22); border-radius: var(--radius-lg); padding: 20px 24px; }
.callout h4 { margin-bottom: 6px; }
.callout p:last-child { margin-bottom: 0; }
.toolkit { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.toolkit li { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 0.92rem; }
.video-slot { aspect-ratio: 16 / 9; border-radius: var(--radius-lg); background: var(--cream-deep); border: 1px dashed var(--line-deep); display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; text-align: center; color: var(--text-2); padding: 24px; }
.guide-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.guide-tabs a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 18px; border: 1px solid var(--line-deep); border-radius: 999px; text-decoration: none; font-size: 0.94rem; }
.guide-tabs a:hover { border-color: var(--charcoal); }

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field label, .field .label { display: block; font-size: 0.88rem; font-weight: 500; margin-bottom: 6px; }
.field .hint { display: block; font-size: 0.82rem; color: var(--text-2); margin-top: 6px; }
.input, select.input, textarea.input {
    width: 100%; min-height: 48px; padding: 11px 14px;
    font: inherit; font-size: 1rem; color: var(--ink);
    background: var(--white); border: 1.5px solid var(--line); border-radius: 10px;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus { outline: none; border-color: var(--copper); box-shadow: 0 0 0 3px rgba(184, 115, 51, 0.14); }
.input[aria-invalid="true"] { border-color: var(--error); }
textarea.input { min-height: 96px; resize: vertical; }
.input-suffix { position: relative; }
.input-suffix .input { padding-right: 48px; }
.input-suffix span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); font-size: 0.9rem; pointer-events: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row, .form-row-3 { grid-template-columns: 1fr; gap: 0; } }
.form-msg { border-radius: 10px; padding: 12px 16px; font-size: 0.92rem; margin: 12px 0; }
.form-msg.error { background: #fbecea; color: var(--error); }
.form-msg.ok { background: #ecf3ee; color: var(--ok); }
.form-msg:empty { display: none; }

/* ---------- Choice tiles (designer + samples) ---------- */
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.choices.choices-wide { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.choice .tile {
    display: flex; flex-direction: column; gap: 8px; height: 100%;
    background: var(--white); border: 1.5px solid var(--line); border-radius: 12px; padding: 14px;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.choice .tile .art { height: 96px; display: flex; align-items: center; justify-content: center; background: #f3efe8; border-radius: 8px; margin-bottom: 4px; overflow: hidden; }
.choice .tile .art svg { width: 100%; height: 100%; }
.choice .tile strong { font-weight: 500; }
.choice .tile .desc { font-size: 0.84rem; color: var(--text-2); line-height: 1.45; }
.choice input:hover + .tile { border-color: var(--line-deep); }
.choice input:checked + .tile { border-color: var(--charcoal); box-shadow: inset 0 0 0 1px var(--charcoal); }
.choice input:focus-visible + .tile { outline: 2px solid var(--copper); outline-offset: 2px; }

.swatches { display: flex; flex-wrap: wrap; gap: 10px 6px; }
.swatch { position: relative; }
.swatch input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.swatch .chip { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 76px; padding: 4px 0; font-size: 0.8rem; color: var(--text-2); text-align: center; }
.swatch .dot { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.12); box-shadow: inset 0 -6px 12px rgba(0, 0, 0, 0.06); transition: box-shadow 0.15s; }
.swatch input:checked + .chip { color: var(--ink); font-weight: 500; }
.swatch input:checked + .chip .dot { box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--charcoal); }
.swatch input:focus-visible + .chip .dot { outline: 2px solid var(--copper); outline-offset: 5px; }
.fabric-pick { border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-bottom: 12px; }
.fabric-pick.is-selected { border-color: var(--charcoal); }
.fabric-pick h3 { font-size: 1.05rem; margin-bottom: 2px; }
.fabric-pick .meta { font-size: 0.86rem; color: var(--text-2); margin-bottom: 12px; }

/* ---------- Designer ---------- */
.designer { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: start; padding-bottom: 80px; }
@media (max-width: 960px) { .designer { grid-template-columns: 1fr; gap: 20px; } }
.designer-aside { position: sticky; top: 96px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
@media (max-width: 960px) { .designer-aside { position: static; order: 2; } .designer-aside .step-list { display: none; } }
.designer-preview { background: #f3efe8; border-radius: 10px; height: 200px; margin-bottom: 14px; overflow: hidden; }
.designer-preview svg { width: 100%; height: 100%; }
@media (max-width: 960px) { .designer-preview { height: 150px; } }
.designer-aside .name { font-weight: 500; margin-bottom: 2px; }
.designer-aside .spec { font-size: 0.82rem; color: var(--text-2); margin-bottom: 12px; }
.price-box { border-top: 1px solid var(--line); padding-top: 14px; }
.price-box .price { font-size: 2rem; font-variation-settings: 'opsz' 48; letter-spacing: -0.02em; line-height: 1.1; }
.price-box .price-note { font-size: 0.8rem; color: var(--text-2); }
.price-lines { list-style: none; padding: 0; margin: 10px 0 0; font-size: 0.8rem; color: var(--text-2); }
.price-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; }
.step-list { list-style: none; padding: 0; margin: 18px 0 0; border-top: 1px solid var(--line); padding-top: 12px; }
.step-list button { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 4px 6px; background: none; border: 0; font: inherit; font-size: 0.92rem; color: var(--text-3); text-align: left; cursor: pointer; border-radius: 8px; }
.step-list button:hover:not([disabled]) { color: var(--ink); background: var(--cream); }
.step-list button[disabled] { cursor: default; }
.step-list .n { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-deep); font-size: 0.72rem; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.step-list .done button { color: var(--text-2); }
.step-list .done .n { background: var(--charcoal); border-color: var(--charcoal); color: #fff; }
.step-list .current button { color: var(--ink); font-weight: 500; }
.step-list .current .n { border-color: var(--copper); color: var(--copper-dark); }
.designer-main { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 40px); min-height: 520px; display: flex; flex-direction: column; }
.designer-main .panel { flex: 1; }
.designer-main .panel h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 8px; }
.designer-main .panel > p.muted { margin-bottom: 26px; }
.designer-main .step-count { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--copper-dark); font-weight: 600; margin-bottom: 10px; display: block; }
.designer-main h3.sub { font-size: 1rem; font-weight: 600; margin: 28px 0 12px; }
.designer-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 22px; margin-top: 32px; }
.designer-nav[hidden] { display: none; }
.basket { list-style: none; padding: 0; margin: 0 0 20px; border-top: 1px solid var(--line); }
.basket li { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.basket .spec { font-size: 0.86rem; color: var(--text-2); }
.basket .right { text-align: right; flex: none; }
.basket .actions { display: flex; gap: 4px; justify-content: flex-end; }
.basket .actions button { background: none; border: 0; font: inherit; font-size: 0.85rem; color: var(--text-2); text-decoration: underline; cursor: pointer; min-height: 44px; padding: 0 6px; }
.totals { display: flex; justify-content: space-between; font-size: 1.1rem; padding: 6px 0 4px; }
.success-box { text-align: center; padding: 40px 10px; }
.tick { width: 56px; height: 56px; border-radius: 50%; background: var(--copper-tint); color: var(--copper-dark); display: inline-flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 18px; }

/* ---------- Samples page ---------- */
.sample-fabric { padding: 28px 0; border-top: 1px solid var(--line); }
.sample-fabric:first-child { border-top: 0; padding-top: 0; }
.sample-fabric .meta { color: var(--text-2); font-size: 0.9rem; margin-bottom: 14px; }
.sample-counter { position: sticky; bottom: 16px; z-index: 5; margin-top: 24px; background: var(--charcoal); color: #fff; border-radius: 999px; padding: 8px 8px 8px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; box-shadow: var(--shadow); }
.sample-counter .btn { background: #fff; color: var(--ink); min-height: 44px; }

/* ---------- Transactional pages (pay / track) ---------- */
.narrow-wrap { max-width: 520px; margin: 0 auto; }
.state { text-align: center; padding: 40px 0; color: var(--text-2); }
.state-icon { width: 48px; height: 48px; margin: 0 auto 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; background: var(--cream-deep); color: var(--ink); }
.state-icon.ok { background: var(--copper-tint); color: var(--copper-dark); }
.summary-box { background: var(--warm-white); border: 1px solid rgba(184, 115, 51, 0.2); border-radius: var(--radius-lg); padding: 22px 24px; margin-bottom: 28px; }
.summary-box .amount { font-size: 2.1rem; font-variation-settings: 'opsz' 48; }
#payCardElement { padding: 14px; background: var(--white); border: 1.5px solid var(--line); border-radius: 10px; }
.reassure { font-size: 0.82rem; color: var(--text-3); text-align: center; margin-top: 14px; }
.track-steps { list-style: none; margin: 0 0 32px; padding: 0; }
.track-step { position: relative; display: flex; gap: 16px; padding-bottom: 22px; color: var(--text-3); }
.track-step:last-child { padding-bottom: 0; }
.track-step::before { content: ""; position: absolute; left: 11px; top: 26px; bottom: 2px; width: 2px; background: var(--line); }
.track-step:last-child::before { display: none; }
.track-step.is-done::before { background: var(--copper); }
.track-dot { flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-deep); background: var(--warm-white); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; }
.track-step.is-done .track-dot { background: var(--copper); border-color: var(--copper); color: #fff; }
.track-step.is-current .track-dot { border-color: var(--copper); box-shadow: 0 0 0 4px rgba(184, 115, 51, 0.14); }
.track-step.is-current .track-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--copper); }
.track-step.is-done .track-label, .track-step.is-current .track-label { color: var(--ink); }
.track-step.is-current .track-label { font-weight: 600; }
.track-note { display: block; font-size: 0.82rem; color: var(--text-2); margin-top: 2px; font-weight: 400; }
.track-events { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.track-event { padding: 12px 0; border-bottom: 1px solid var(--line); }
.track-event-meta { font-size: 0.8rem; color: var(--text-3); margin-top: 2px; }
.track-pod { display: inline-block; }
.track-pod[hidden] { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: #cfc9c1; padding: 64px 0 28px; font-size: 0.92rem; }
.site-footer a { color: #e9e5df; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h3 { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: #a8a199; font-weight: 600; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand .brand-mark { color: #fff; }
.footer-brand .brand-name em { color: #e2b285; }
.footer-sister { margin-top: 18px; font-size: 0.86rem; }
.footer-bottom { border-top: 1px solid #44403c; margin-top: 44px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.82rem; color: #a8a199; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Prose (policy pages) ---------- */
.prose h2 { font-size: 1.5rem; margin-top: 40px; }
.prose h3 { margin-top: 28px; }
.prose p, .prose li { color: #3b3733; }
.prose ul { padding-left: 20px; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ---------- Chat bubble ---------- */
.chat-fab-wrap { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.how-chat-panel { width: min(360px, calc(100vw - 40px)); max-height: min(520px, calc(100vh - 110px)); display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.how-chat-panel[hidden] { display: none; }
.how-chat-header { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 20px; background: var(--charcoal); color: #fff; }
.how-chat-title { font-weight: 500; }
.how-chat-close { background: none; border: 0; color: #fff; font-size: 1.4rem; cursor: pointer; min-width: 44px; min-height: 44px; }
.how-chat-messages { flex: 1; padding: 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; background: var(--cream); }
.how-chat-msg { max-width: 84%; padding: 10px 14px; border-radius: 14px; font-size: 0.92rem; line-height: 1.5; }
.how-chat-msg a { color: var(--copper-dark); }
.how-chat-msg-bot { align-self: flex-start; background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.how-chat-msg-user { align-self: flex-end; background: var(--charcoal); color: #fff; border-bottom-right-radius: 4px; }
.how-chat-form { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); }
.how-chat-form input { flex: 1; min-height: 44px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; }
.how-chat-form input:focus { outline: none; border-color: var(--copper); }
.how-chat-form .btn { min-height: 44px; padding: 0 16px; }
.how-chat-note { font-size: 0.78rem; color: var(--text-2); padding: 0 14px 12px; margin: 0; }
.how-chat-note a { color: var(--copper-dark); }
.chat-fab { width: 56px; height: 56px; border-radius: 50%; background: var(--charcoal); color: #fff; border: 0; box-shadow: var(--shadow); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.chat-fab:hover { background: #000; }
.chat-fab-icon { width: 26px; height: 26px; }
.chat-fab-icon-close, .chat-fab[aria-expanded="true"] .chat-fab-icon-open { display: none; }
.chat-fab[aria-expanded="true"] .chat-fab-icon-close { display: block; }
@media (max-width: 600px) { .chat-fab-wrap { right: 14px; bottom: 14px; } }
@media print { .chat-fab-wrap, .site-status-badge { display: none; } }
.nav-price { display: none; font-size: 1.05rem; font-weight: 500; }
@media (max-width: 960px) { .nav-price { display: block; } }
