/* Coccaro Studio — studio.coccarohome.com. One stylesheet for the landing,
   the sign-in screens and the designer portal. Plain CSS, no build step. */

:root {
    color-scheme: only light;
    --ink: #141c26;
    --ink-2: #1d2733;
    --ink-3: #2a3644;
    --cream: #f6f1e9;
    --cream-2: #ede4d6;
    --paper: #fffdf9;
    --line: #e5dccd;
    --line-dark: rgba(246, 241, 233, .12);
    --muted: #6e665b;
    --muted-dark: #a9a397;
    --terra: #c2562f;
    --terra-2: #a8461f;
    --gold: #d4a35a;
    --olive: #6f7a3d;
    --ok: #2f7d4f;
    --warn: #b7791f;
    --danger: #b3261e;
    --radius: 18px;
    --shadow: 0 24px 60px -24px rgba(20, 28, 38, .35);
    --display: 'Fraunces', Georgia, serif;
    --sans: 'Manrope', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--cream); line-height: 1.55; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; line-height: 1.1; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.eyebrow { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--terra); }
.on-dark .eyebrow { color: var(--gold); }
.lead { font-size: 18px; color: var(--muted); max-width: 620px; }
.on-dark .lead { color: var(--muted-dark); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s, border-color .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--terra); color: #fff; box-shadow: 0 10px 24px -10px rgba(194, 86, 47, .7); }
.btn-primary:hover { background: var(--terra-2); }
.btn-ghost { border-color: currentColor; background: transparent; }
.btn-light { background: var(--cream); color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- Public nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s; }
.nav.scrolled { background: rgba(20, 28, 38, .92); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line-dark); }
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: inline-flex; align-items: baseline; gap: 6px; text-decoration: none; font-family: var(--display); font-size: 22px; color: var(--cream); }
.brand b { font-weight: 500; color: var(--gold); font-style: italic; }
.brand-dark { color: var(--ink); }
.brand-dark b { color: var(--terra); }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--cream); text-decoration: none; font-size: 14px; font-weight: 600; opacity: .8; }
.nav-links a:hover { opacity: 1; }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-cta .signin { color: var(--cream); text-decoration: none; font-weight: 600; font-size: 14px; }
@media (max-width: 860px) { .nav-links { display: none; } .nav-cta .signin { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; background: radial-gradient(1200px 600px at 80% -10%, #3a2a22 0%, transparent 60%), radial-gradient(900px 500px at -10% 110%, #25331f 0%, transparent 60%), var(--ink); color: var(--cream); padding: 140px 0 90px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 72px); margin: 18px 0 22px; }
.hero h1 em { color: var(--gold); font-style: italic; }
.hero .lead { margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; margin-top: 44px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--display); font-size: 34px; font-weight: 500; color: var(--cream); }
.hero-stats span { font-size: 13px; color: var(--muted-dark); }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding-top: 110px; } }

.scan { position: relative; border-radius: 22px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); aspect-ratio: 16 / 9; background: var(--ink-2); }
.scan img { width: 100%; height: 100%; object-fit: cover; }
.scan-line { position: absolute; inset: 0 auto 0 0; width: 3px; background: linear-gradient(180deg, transparent, var(--gold), transparent); box-shadow: 0 0 24px 6px rgba(212, 163, 90, .55); }
.scan-box { position: absolute; border: 2px solid var(--gold); border-radius: 8px; opacity: 0; box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0); }
.scan-box span { position: absolute; top: -26px; left: -2px; background: var(--gold); color: var(--ink); font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.chip-stack { position: absolute; right: -14px; bottom: -22px; display: flex; flex-direction: column; gap: 8px; }
.chip { display: flex; align-items: center; gap: 10px; background: var(--paper); color: var(--ink); border-radius: 14px; padding: 8px 14px 8px 8px; box-shadow: var(--shadow); font-size: 13px; font-weight: 700; opacity: 0; }
.chip img { width: 40px; height: 40px; border-radius: 10px; background: #fff; object-fit: contain; }
.chip small { display: block; font-weight: 600; color: var(--muted); font-size: 11px; }
.hero-visual { position: relative; }
@media (max-width: 600px) { .chip-stack { right: 8px; bottom: 8px; } .chip { font-size: 12px; } .chip:nth-child(n+3) { display: none; } }

/* ---------- Sections ---------- */
section { padding: 100px 0; }
.section-head { text-align: center; margin: 0 auto 56px; max-width: 720px; }
.section-head h2 { font-size: clamp(32px, 4.5vw, 50px); margin: 14px 0 16px; }
.section-head .lead { margin-inline: auto; }
.on-dark { background: var(--ink); color: var(--cream); }

.trust { padding: 28px 0; background: var(--ink-2); color: var(--muted-dark); }
.trust .container { display: flex; justify-content: center; gap: 44px; flex-wrap: wrap; font-size: 14px; font-weight: 600; }
.trust i { color: var(--gold); margin-right: 8px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; position: relative; }
.step .num { font-family: var(--display); font-size: 15px; color: var(--terra); font-style: italic; }
.step h3 { font-size: 26px; margin: 18px 0 10px; }
.step p { color: var(--muted); }
.step svg { width: 64px; height: 64px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Before / after */
.ba-tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 26px; }
.ba-tabs button { border: 1.5px solid var(--line-dark); background: transparent; color: var(--cream); padding: 9px 18px; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: 14px; }
.ba-tabs button.active { background: var(--cream); color: var(--ink); }
.ba { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 9; user-select: none; touch-action: pan-y; box-shadow: var(--shadow); background: #fff; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .ba-before { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; background: #fff; transform: translateX(-1px); }
.ba-handle::after { content: '\2194'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; font-size: 20px; font-weight: 800; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); cursor: ew-resize; }
.ba-label { position: absolute; top: 16px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ba-label.l { left: 16px; background: rgba(20, 28, 38, .75); color: #fff; }
.ba-label.r { right: 16px; background: var(--gold); color: var(--ink); }
.ba input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }

/* Output table */
.output { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
@media (max-width: 960px) { .output { grid-template-columns: 1fr; } }
.sheet { background: var(--paper); border-radius: 22px; box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); gap: 12px; }
.sheet-head h4 { font-size: 18px; }
.sheet-head small { color: var(--muted); font-size: 12px; }
.sheet-rows { max-height: 420px; overflow: auto; }
.row { display: grid; grid-template-columns: 52px 1fr auto auto; gap: 14px; align-items: center; padding: 10px 22px; border-bottom: 1px solid var(--cream-2); font-size: 14px; }
.row img { width: 52px; height: 52px; object-fit: contain; background: #fff; border-radius: 10px; border: 1px solid var(--cream-2); }
.row .name { font-weight: 700; }
.row .cat { font-size: 12px; color: var(--muted); }
.row .qty { color: var(--muted); font-weight: 600; }
.row .price { font-weight: 800; text-align: right; min-width: 96px; }
.sheet-foot { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; background: var(--cream); gap: 12px; flex-wrap: wrap; }
.sheet-foot strong { font-family: var(--display); font-size: 26px; font-weight: 500; }
@media (max-width: 520px) { .row { grid-template-columns: 44px 1fr auto; } .row .qty { display: none; } .row img { width: 44px; height: 44px; } }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks i { color: var(--terra); margin-top: 4px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 30px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line-dark); }
.feature .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(212, 163, 90, .14); color: var(--gold); font-size: 20px; margin-bottom: 18px; }
.feature h3 { font-size: 22px; margin-bottom: 10px; color: var(--cream); }
.feature p { color: var(--muted-dark); font-size: 15px; }
@media (max-width: 960px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }

.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.benefit { text-align: center; padding: 28px 18px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.benefit strong { display: block; font-family: var(--display); font-size: 48px; font-weight: 500; color: var(--terra); }
.benefit span { color: var(--muted); font-size: 14px; }
@media (max-width: 860px) { .benefits { grid-template-columns: 1fr 1fr; } }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.plan { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 30px 26px; display: flex; flex-direction: column; position: relative; }
.plan.featured { background: var(--ink); color: var(--cream); border-color: var(--ink); transform: translateY(-10px); box-shadow: var(--shadow); }
.plan .tag { position: absolute; top: -12px; left: 26px; background: var(--gold); color: var(--ink); font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px; letter-spacing: .08em; text-transform: uppercase; }
.plan h3 { font-size: 26px; }
.plan .tagline { font-size: 14px; color: var(--muted); margin: 6px 0 22px; }
.plan.featured .tagline { color: var(--muted-dark); }
.plan .price { font-family: var(--display); font-size: 40px; }
.plan .price small { font-family: var(--sans); font-size: 14px; color: var(--muted); font-weight: 600; }
.plan.featured .price small { color: var(--muted-dark); }
.plan .credits { font-weight: 800; color: var(--terra); margin: 6px 0 20px; }
.plan.featured .credits { color: var(--gold); }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; font-size: 14px; flex: 1; }
.plan li::before { content: '\2713'; color: var(--olive); font-weight: 800; margin-right: 8px; }
.plan.featured li::before { color: var(--gold); }
@media (max-width: 1060px) { .plans { grid-template-columns: 1fr 1fr; } .plan.featured { transform: none; } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }
.plans-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 26px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; color: var(--terra); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { margin-top: 12px; color: var(--muted); }

.cta { text-align: center; padding: 110px 0; background: radial-gradient(800px 400px at 50% 0%, #3a2a22 0%, transparent 70%), var(--ink); color: var(--cream); }
.cta h2 { font-size: clamp(34px, 5vw, 58px); margin-bottom: 18px; }
.cta .lead { margin: 0 auto 32px; }

.footer { background: #0e141b; color: var(--muted-dark); padding: 36px 0; font-size: 14px; }
.footer .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.footer a { color: var(--muted-dark); text-decoration: none; margin-left: 18px; }

/* ---------- Auth screens ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { position: relative; background: var(--ink); color: var(--cream); padding: 48px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.auth-side::before { content: ''; position: absolute; inset: 0; background: url('/studio/img/living-before.webp') center / cover; opacity: .35; }
.auth-side > * { position: relative; }
.auth-side h2 { font-size: 40px; max-width: 460px; }
.auth-side h2 em { color: var(--gold); }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 48px 16px; background: var(--cream); }
.auth-card { width: min(520px, 100%); }
.auth-card h1 { font-size: 36px; margin-bottom: 8px; }
.auth-card .sub { color: var(--muted); margin-bottom: 28px; }
.auth-card .switch { margin-top: 22px; text-align: center; color: var(--muted); font-size: 14px; }
.auth-card .switch a { color: var(--terra); font-weight: 700; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-side { display: none; } }

/* Forms */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 700; }
.field .hint { font-size: 12px; color: var(--muted); }
.input, .select, .textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font-size: 15px; transition: border-color .15s, box-shadow .15s; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--terra); box-shadow: 0 0 0 4px rgba(194, 86, 47, .12); }
.textarea { min-height: 110px; resize: vertical; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } }
.error { color: var(--danger); font-size: 13px; font-weight: 600; }
.input.has-error, .select.has-error { border-color: var(--danger); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { margin-top: 3px; accent-color: var(--terra); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.plan-pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
.plan-pick label { position: relative; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; cursor: pointer; background: #fff; display: block; }
.plan-pick input { position: absolute; opacity: 0; }
.plan-pick strong { display: block; font-size: 15px; }
.plan-pick span { font-size: 12px; color: var(--muted); }
.plan-pick input:checked + div { color: var(--terra); }
.plan-pick label:has(input:checked) { border-color: var(--terra); box-shadow: 0 0 0 4px rgba(194, 86, 47, .1); }

.otp { display: flex; gap: 10px; justify-content: space-between; margin: 8px 0 18px; }
.otp input { width: 100%; max-width: 62px; aspect-ratio: 1; text-align: center; font-size: 26px; font-weight: 800; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; }
.otp input:focus { outline: none; border-color: var(--terra); box-shadow: 0 0 0 4px rgba(194, 86, 47, .12); }

.alert { padding: 13px 16px; border-radius: 12px; font-size: 14px; font-weight: 600; margin-bottom: 18px; display: flex; gap: 10px; align-items: flex-start; }
.alert-ok { background: #e6f2ea; color: #1f5c38; }
.alert-err { background: #fbe9e7; color: #8c1d16; }
.alert-warn { background: #fdf3df; color: #7a4f0e; }
.alert-info { background: #e9eef5; color: #2a3f5c; }

/* ---------- Portal ---------- */
.app { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar { background: var(--ink); color: var(--cream); padding: 26px 18px; display: flex; flex-direction: column; gap: 26px; position: sticky; top: 0; height: 100vh; }
.sidebar nav { display: grid; gap: 4px; }
.sidebar nav a { display: flex; gap: 12px; align-items: center; padding: 11px 14px; border-radius: 12px; text-decoration: none; color: var(--muted-dark); font-weight: 600; font-size: 15px; }
.sidebar nav a i { width: 18px; text-align: center; }
.sidebar nav a:hover { background: var(--ink-2); color: var(--cream); }
.sidebar nav a.active { background: var(--ink-3); color: var(--cream); }
.sidebar .credits-card { margin-top: auto; background: linear-gradient(135deg, #2c2219, #1d2733); border: 1px solid var(--line-dark); border-radius: 16px; padding: 18px; }
.credits-card small { color: var(--muted-dark); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.credits-card strong { display: block; font-family: var(--display); font-size: 34px; font-weight: 500; color: var(--gold); margin: 4px 0 12px; }
.main { padding: 28px 36px 60px; min-width: 0; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; gap: 16px; flex-wrap: wrap; }
.topbar h1 { font-size: 34px; }
.topbar .who { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--terra); color: #fff; display: grid; place-items: center; font-weight: 800; }
.mobile-bar { display: none; }
@media (max-width: 900px) {
    .app { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .main { padding: 18px 16px 90px; }
    .mobile-bar { display: flex; position: fixed; inset: auto 0 0; background: var(--ink); z-index: 40; justify-content: space-around; padding: 10px 4px calc(10px + env(safe-area-inset-bottom)); }
    .mobile-bar a { color: var(--muted-dark); text-decoration: none; font-size: 11px; display: grid; justify-items: center; gap: 4px; font-weight: 700; }
    .mobile-bar a.active { color: var(--gold); }
    .mobile-bar i { font-size: 18px; }
    .topbar h1 { font-size: 28px; }
}

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card + .card { margin-top: 20px; }
.card h2 { font-size: 22px; margin-bottom: 14px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-head h2 { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.stat small { color: var(--muted); font-size: 13px; font-weight: 600; }
.stat strong { display: block; font-family: var(--display); font-size: 32px; font-weight: 500; margin-top: 4px; }
@media (max-width: 1000px) { .stats { grid-template-columns: 1fr 1fr; } }
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
@media (max-width: 1100px) { .two-col { grid-template-columns: 1fr; } }

.status-banner { display: flex; gap: 18px; align-items: center; padding: 22px 24px; border-radius: var(--radius); margin-bottom: 22px; background: linear-gradient(135deg, #fdf3df, #f8e7c9); border: 1px solid #efd6a8; }
.status-banner .ic { width: 52px; height: 52px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--warn); font-size: 22px; flex-shrink: 0; }
.status-banner h3 { font-size: 20px; margin-bottom: 4px; }
.status-banner p { color: #6b5021; font-size: 14px; }
.status-banner.ok { background: linear-gradient(135deg, #e6f2ea, #d5eadc); border-color: #b8dbc4; }
.status-banner.ok .ic { color: var(--ok); }
.status-banner.ok p { color: #1f5c38; }

.timeline { display: flex; gap: 0; margin-top: 14px; }
.timeline div { flex: 1; font-size: 12px; font-weight: 700; color: var(--muted); padding-top: 10px; border-top: 3px solid var(--line); }
.timeline div.done { color: var(--ink); border-color: var(--terra); }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.badge-draft { background: var(--cream-2); color: var(--muted); }
.badge-processing { background: #fdf3df; color: #7a4f0e; }
.badge-ready, .badge-paid { background: #e6f2ea; color: #1f5c38; }
.badge-pending { background: var(--cream-2); color: var(--muted); }
.badge-needs_attention { background: #fbe9e7; color: #8c1d16; }

.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.project { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.project:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.project .thumb { aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--cream-2), var(--cream)); display: grid; place-items: center; color: var(--muted); font-size: 34px; overflow: hidden; }
.project .thumb img { width: 100%; height: 100%; object-fit: cover; }
.project .body { padding: 16px 18px; display: grid; gap: 6px; }
.project h3 { font-size: 19px; }
.project .meta { font-size: 13px; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; }
.empty { text-align: center; padding: 56px 20px; }
.empty .ic { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; background: var(--cream-2); display: grid; place-items: center; font-size: 28px; color: var(--terra); }
.empty h3 { font-size: 24px; margin-bottom: 8px; }
.empty p { color: var(--muted); margin-bottom: 20px; }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px; border-bottom: 1px solid var(--cream-2); vertical-align: middle; }
.table-wrap { overflow-x: auto; }

.dropzone { display: block; border: 2px dashed var(--line); border-radius: var(--radius); padding: 34px 20px; text-align: center; background: #fff; cursor: pointer; transition: border-color .2s, background .2s; }
.dropzone.drag { border-color: var(--terra); background: #fdf6f2; }
.dropzone i { font-size: 30px; color: var(--terra); }
.dropzone strong { display: block; margin: 10px 0 4px; }
.dropzone span { color: var(--muted); font-size: 13px; }
.file-list { display: grid; gap: 8px; margin-top: 14px; }
.file-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 14px; }
.file-item .fi { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--cream-2); color: var(--terra); flex-shrink: 0; overflow: hidden; }
.file-item .fi img { width: 100%; height: 100%; object-fit: cover; }
.file-item .fname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.file-item small { color: var(--muted); }
.file-item.bad { border-color: var(--danger); background: #fdf3f2; }
.file-item.bad small { color: var(--danger); }
.link-btn { background: none; border: 0; color: var(--danger); cursor: pointer; font-weight: 700; font-size: 13px; padding: 4px; }
.estimate { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-radius: 14px; background: var(--ink); color: var(--cream); margin-top: 18px; gap: 12px; flex-wrap: wrap; }
.estimate strong { font-family: var(--display); font-size: 26px; font-weight: 500; color: var(--gold); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.gallery a { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--cream-2); border: 1px solid var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery .pdf { display: grid; place-items: center; text-align: center; padding: 10px; color: var(--terra); font-size: 12px; font-weight: 700; text-decoration: none; }
.gallery .pdf i { font-size: 28px; display: block; margin-bottom: 6px; }

.processing { display: flex; gap: 20px; align-items: center; }
.processing svg { width: 84px; height: 84px; flex-shrink: 0; }
.spin { transform-origin: center; animation: spin 2.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pulse { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.sample-tag { display: inline-block; background: var(--cream-2); color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }

.mini-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .mini-plans { grid-template-columns: 1fr; } }
.mini-plan { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; display: flex; flex-direction: column; gap: 6px; }
.mini-plan.featured { border-color: var(--terra); }
.mini-plan h3 { font-size: 22px; }
.mini-plan .price { font-family: var(--display); font-size: 30px; }
.mini-plan .credits { color: var(--terra); font-weight: 800; font-size: 14px; }
.mini-plan form { margin-top: 12px; }

.reveal { opacity: 0; transform: translateY(24px); }
.no-js .reveal, .reduced .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .spin, .pulse { animation: none; } }
