/* ============================================================ *\
   Canvas Print — Zendeeps-inspired design system
   Big Shoulders Text (display) + Inter (body)
   Light + dark themes via [data-theme]
\* ============================================================ */

:root {
    --font-display: "Big Shoulders Text", "Inter", system-ui, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

    /* Brand accents (shared across themes) */
    --tomato: #ea5b3a;
    --tomato-soft: #ffd9ce;
    --lime: #f5f5f7;
    --forest: #111113;
    --blue: #2563eb;
    --blue-soft: #dce6ff;

    /* Light theme tokens */
    --bg: #ecedf2;
    --panel: #ffffff;
    --panel-2: #f6f6f9;
    --ink: #14171a;
    --ink-2: #565d66;
    --ink-3: #8a929c;
    --border: #e6e7ee;
    --border-strong: #d7d9e3;
    --btn: #14171a;
    --btn-ink: #ffffff;
    --ring: rgba(20, 23, 26, 0.12);
    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: none;

    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --radius-pill: 999px;

    --container: 1200px;
    --gutter: clamp(16px, 4vw, 40px);
    --section-y: clamp(28px, 3.5vw, 52px);
}

[data-theme="dark"] {
    --bg: #0c0e10;
    --panel: #15181b;
    --panel-2: #1c2024;
    --ink: #f4f5f7;
    --ink-2: #adb4bd;
    --ink-3: #79818b;
    --border: #262b30;
    --border-strong: #333a41;
    --btn: #f4f5f7;
    --btn-ink: #14171a;
    --ring: rgba(255, 255, 255, 0.16);
    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: none;
}

/* ----------------------------- Reset ----------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    transition: background-color 0.3s ease, color 0.3s ease;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }

:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 2px;
    border-radius: 4px;
}

::selection { background: var(--forest); color: var(--lime); }

/* ---------------------------- Layout ---------------------------- */
.container {
    width: 100%;
    margin-inline: auto;
    padding-inline: 3%;
}
@media (min-width: 768px) { .container { padding-inline: 5%; } }
@media (min-width: 1024px) { .container { padding-inline: 8%; } }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(20px, 2.5vw, 36px); }

.stack > * + * { margin-top: 1rem; }

.grid { display: grid; gap: clamp(16px, 2.5vw, 28px); }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 899px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }

/* --------------------------- Typography -------------------------- */
.display {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 0.96;
    letter-spacing: -0.02em;
    text-transform: none;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1; letter-spacing: -0.015em; }

.h-hero { font-size: clamp(2.8rem, 8vw, 6rem); }
.h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
.h2 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
.h3 { font-size: clamp(1.4rem, 3vw, 2rem); }

.lede { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--ink-2); line-height: 1.55; }
.muted { color: var(--ink-2); }
.text-balance { text-wrap: balance; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-2);
}
.eyebrow::before {
    content: "";
    width: 26px;
    height: 2px;
    border-radius: 2px;
    background: var(--tomato);
}

.highlight {
    background: var(--forest);
    color: #ffffff;
    padding: 0.04em 0.22em;
    border-radius: 8px;
    box-decoration-break: clone;
}

/* ----------------------------- Panels ---------------------------- */
.panel {
    background: var(--panel);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}
.panel--flat { box-shadow: none; }
.panel-pad { padding: clamp(24px, 4vw, 56px); }

.card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }

/* ----------------------------- Buttons --------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.98rem;
    letter-spacing: -0.01em;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    border: 1.5px solid transparent;
    white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn .icon { width: 18px; height: 18px; }

.btn-primary { background: var(--btn); color: var(--btn-ink); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-secondary { background: var(--panel); color: var(--ink); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--ink); transform: translateY(-2px); }

.btn-accent { background: var(--tomato); color: #ffffff; }
.btn-accent:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-ghost { color: var(--ink); padding-inline: 8px; }
.btn-ghost:hover { color: var(--tomato); }

.btn-sm { padding: 9px 16px; font-size: 0.88rem; }
.btn-lg { padding: 17px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--ink);
}
.link-arrow .icon { width: 18px; height: 18px; transition: transform 0.2s ease; }
.link-arrow:hover { color: var(--tomato); }
.link-arrow:hover .icon { transform: translate(3px, -3px); }

/* ------------------------------ Badge ---------------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: var(--radius-pill);
    background: var(--panel);
    border: 1px solid var(--border);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink-2);
    box-shadow: var(--shadow-sm);
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tomato); }

.chip {
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--border-strong);
    background: var(--panel);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink-2);
    transition: all 0.2s ease;
}
.chip:hover { color: var(--ink); border-color: var(--ink); }
.chip.is-active { background: var(--forest); color: #fff; border-color: var(--forest); }

/* --------------------------- Section head ------------------------ */
.section-head { max-width: 680px; margin-bottom: clamp(24px, 3vw, 40px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head .lede { margin-top: 16px; }

/* ------------------------------ Stars ---------------------------- */
.stars { display: inline-flex; gap: 2px; color: var(--tomato); }
.star-icon { width: 18px; height: 18px; }

/* --------------------------- Reveal anim ------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1 !important; transform: none !important; }
    html { scroll-behavior: auto; }
    * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* utility */
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: 10px; }
.gap-md { gap: 16px; }
.wrap { flex-wrap: wrap; }
.mt-lg { margin-top: clamp(28px, 4vw, 48px); }
.full-bleed-art { aspect-ratio: 10 / 9; width: 100%; border-radius: inherit; object-fit: cover; }
