/* ============================================================
   Self-hosted fonts — replaces Google Fonts external requests
   Files live in /assets/fonts/
   ============================================================ */

/* ── Archivo Italic 400 ─────────────────────────────────── */
@font-face {
  font-family: 'Archivo';
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/archivo-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/archivo-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Archivo Normal 400–900 (Variable) ───────────────────── */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/archivo-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/archivo-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Source Serif 4 Italic 300 ───────────────────────────── */
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/source-serif-4-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/source-serif-4-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Source Serif 4 Normal 300–600 (Variable) ────────────── */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/source-serif-4-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/source-serif-4-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* ==========================================================================
   GRIDCUTTER — style.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  --brand:          oklch(47% 0.18 264);
  --brand-dark:     oklch(39% 0.18 264);
  --brand-light:    oklch(94% 0.04 264);
  --brand-xlight:   oklch(97% 0.015 264);
  --surface-0:      oklch(99% 0.005 264);
  --surface-1:      oklch(97% 0.008 264);
  --surface-2:      oklch(94% 0.012 264);
  --surface-3:      oklch(90% 0.016 264);
  --text-primary:   oklch(18% 0.015 264);
  --text-secondary: oklch(45% 0.02  264);
  --text-tertiary:  oklch(62% 0.015 264);
  --border-subtle:  oklch(88% 0.02 264);
  --border-mid:     oklch(80% 0.03 264);
  --green:          oklch(52% 0.15 155);
  --green-surface:  oklch(96% 0.04 155);
  --warning-bg:     oklch(97% 0.05 85);
  --warning-border: oklch(85% 0.08 85);
  --warning-text:   oklch(45% 0.08 85);

  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.25rem;
  --text-xl:   1.625rem;
  --text-2xl:  2.25rem;
  --text-3xl:  clamp(2.5rem, 5vw + 1rem, 4rem);

  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
}


/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Serif 4', Georgia, serif;
  background: var(--surface-0);
  color: var(--text-primary);
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }


/* --------------------------------------------------------------------------
   3. ACCESSIBILITY
   -------------------------------------------------------------------------- */
.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;
}


/* --------------------------------------------------------------------------
   4. TYPOGRAPHY UTILITIES
   -------------------------------------------------------------------------- */
.f-display {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.f-label {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}


/* --------------------------------------------------------------------------
   5. LAYOUT
   -------------------------------------------------------------------------- */
.container {
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: var(--sp-5);
}

@media (min-width: 768px) {
  .container { padding-inline: var(--sp-7); }
}

.section     { padding-block: var(--sp-9); }
.section-alt { background: var(--surface-1); }


/* --------------------------------------------------------------------------
   6. NAV
   -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: color-mix(in oklch, var(--surface-0) 88%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: var(--sp-6);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}

.nav-logo-mark {
  width: 28px;
  height: 28px;
  background: var(--brand);
  border-radius: 7px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding: 5px;
}

.nav-logo-mark span {
  background: white;
  border-radius: 1px;
  display: block;
}

.nav-logo-mark span:nth-child(n+4) { opacity: 0.5; }

.nav-links {
  display: none;
  gap: var(--sp-6);
  align-items: center;
  list-style: none;
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

.nav-links a {
  font-family: 'Archivo', sans-serif;
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--brand); }

.nav-links a.active { font-weight: 700; }

.nav-cta { display: none; }

@media (min-width: 640px) {
  .nav-cta { display: flex; }
}

/* --------------------------------------------------------------------------
   NAV DROPDOWN (Tools menu)
   -------------------------------------------------------------------------- */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'Archivo', sans-serif;
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.15s;
  background: none;
  border: none;
  padding: 0;
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle.active { color: var(--brand); }

.nav-dropdown-toggle.active { font-weight: 700; }

.nav-dropdown-chevron {
  transition: transform 0.2s var(--ease-out-quart);
  flex-shrink: 0;
}

.nav-dropdown:hover .nav-dropdown-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface-0);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  box-shadow: 0 8px 32px oklch(18% 0.015 264 / 0.12), 0 2px 8px oklch(18% 0.015 264 / 0.06);
  padding: 6px;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-4px);
  transition: opacity 0.18s var(--ease-out-quart), transform 0.18s var(--ease-out-quart), visibility 0.18s;
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-family: 'Archivo', sans-serif;
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: var(--surface-2);
  color: var(--brand);
}

.nav-dropdown-menu a.active {
  color: var(--brand);
  font-weight: 700;
  background: var(--brand-xlight);
}

.nav-dropdown-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-tertiary);
  transition: background 0.12s, color 0.12s;
}

.nav-dropdown-menu a:hover .nav-dropdown-icon,
.nav-dropdown-menu a.active .nav-dropdown-icon {
  background: var(--brand-light);
  color: var(--brand);
}

/* Mobile menu tools section */
.mobile-menu-label {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  padding: var(--sp-2) 0 var(--sp-1);
}

.mobile-menu-sub {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: var(--sp-4);
  border-left: 2px solid var(--border-subtle);
}

.nav-dropdown-menu.force-open {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* --------------------------------------------------------------------------
   7. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: var(--text-sm);
  padding: 10px var(--sp-5);
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s var(--ease-out-quart);
  border: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn:hover  { opacity: 0.88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); opacity: 1; }

.btn-primary {
  background: var(--brand);
  color: white;
  box-shadow: 0 2px 12px oklch(47% 0.18 264 / 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-mid);
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--text-tertiary);
}

.btn-cta-inverse {
  background: white;
  color: var(--brand);
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: var(--text-sm);
  padding: 12px var(--sp-6);
  border-radius: 10px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  transition: opacity 0.15s, transform 0.15s;
  flex-shrink: 0;
}

.btn-cta-inverse:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-submit {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: var(--text-base);
  border-radius: 10px;
}


/* --------------------------------------------------------------------------
   8. MOBILE MENU
   -------------------------------------------------------------------------- */
.mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--border-mid);
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-secondary);
}

@media (min-width: 768px) {
  .mobile-toggle { display: none; }
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5) var(--sp-5);
  border-top: 1px solid var(--border-subtle);
  background: var(--surface-0);
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-family: 'Archivo', sans-serif;
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  padding: var(--sp-2) 0;
}

.mobile-menu a:hover { color: var(--brand); }

.mobile-menu .btn {
  color: white;
  justify-content: center;
  margin-top: var(--sp-2);
}

.mobile-menu .btn:hover {
  color: white;
  opacity: 0.9;
}


/* --------------------------------------------------------------------------
   9. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background: var(--surface-1);
  border-top: 1px solid var(--border-subtle);
  padding-block: var(--sp-7);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--sp-7);
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    gap: var(--sp-8);
  }
}

.footer-brand p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  max-width: 34ch;
  margin-top: var(--sp-3);
  line-height: 1.6;
}

.footer-cols {
  display: flex;
  gap: var(--sp-8);
  flex-wrap: wrap;
}

.footer-col-title {
  font-family: 'Archivo', sans-serif;
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: var(--sp-3);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.footer-col a {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: color 0.15s;
}

.footer-col a:hover { color: var(--brand); }

.footer-bottom {
  margin-top: var(--sp-7);
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-bottom p {
  font-family: 'Archivo', sans-serif;
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.kofi-link {
    display: inline-block;
    margin-top: var(--sp-3);
    font-size: 0.8rem;
    color: var(--muted, #888);
    text-decoration: none;
    opacity: 0.75;
    transition: opacity 0.2s;
}
.kofi-link:hover {
    opacity: 1;
}

/* --------------------------------------------------------------------------
   10. KO-FI CARD COMPONENTS
   -------------------------------------------------------------------------- */
#kofiCard {
    position: fixed;
    bottom: var(--sp-5);
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--surface);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: var(--sp-4) var(--sp-5);
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    box-shadow: 0 4px 32px rgba(0,0,0,0.12);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 999;
}
#kofiCard.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
#kofiCard p { margin: 0; font-size: var(--text-sm); }
#kofiClose {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: var(--text-sm);
    padding: 0;
    line-height: 1;
}
#kofiCorner {
    position: fixed;
    bottom: var(--sp-4);
    right: var(--sp-4);
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    opacity: 0.5;
    transition: opacity 0.2s;
    z-index: 998;
}
#kofiCorner:hover { opacity: 1; }

/* --------------------------------------------------------------------------
   10. SHARED COMPONENTS
   -------------------------------------------------------------------------- */

/* Privacy / status badge */
.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 6px var(--sp-3);
  background: var(--green-surface);
  border-radius: 100px;
}

.privacy-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.privacy-badge span {
  font-family: 'Archivo', sans-serif;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green);
}

/* Eyebrow / hero label pill — same pattern as privacy badge but standalone */
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 6px var(--sp-3);
  background: var(--green-surface);
  border-radius: 100px;
  margin-bottom: var(--sp-5);
}

.eyebrow-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.eyebrow-pill span {
  font-family: 'Archivo', sans-serif;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green);
}

/*
 * Promise / summary highlight card
 * Used on: About, Privacy, Terms pages.
 * Merged from three identical duplicate blocks.
 */
.promise-card,
.summary-card {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-5);
  padding: var(--sp-6);
  background: var(--brand-xlight);
  border: 1px solid oklch(85% 0.06 264);
  border-radius: 16px;
  margin-top: var(--sp-6);
}

.promise-icon,
.summary-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--brand);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.promise-icon svg,
.summary-icon svg { color: white; }

.promise-card h4,
.summary-card h4 {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: var(--text-base);
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}

.promise-card p,
.summary-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.65;
}

/*
 * Sticky table-of-contents sidebar
 * Used on: Privacy, Terms pages.
 * Merged from two identical duplicate blocks.
 */
.toc { display: none; }

@media (min-width: 960px) {
  .toc {
    display: block;
    position: sticky;
    top: 80px;
  }
}

.toc-title {
  font-family: 'Archivo', sans-serif;
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: var(--sp-3);
}

.toc a {
  display: block;
  font-family: 'Archivo', sans-serif;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  padding: var(--sp-2) var(--sp-3);
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
  line-height: 1.4;
}

.toc a:hover        { color: var(--brand); background: var(--brand-xlight); }
.toc a.active       { color: var(--brand); font-weight: 700; background: var(--brand-xlight); }

/*
 * Inline CTA strip at bottom of legal/info pages.
 * Used on: Privacy, Terms pages.
 * Merged from two structurally identical duplicate blocks.
 */
.page-cta {
  background: var(--surface-1);
  border-radius: 16px;
  padding: var(--sp-7);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  align-items: flex-start;
  border: 1px solid var(--border-subtle);
  margin-top: var(--sp-5);
}

@media (min-width: 640px) {
  .page-cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.page-cta h4 {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: var(--text-lg);
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}

.page-cta p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  max-width: 40ch;
  line-height: 1.6;
}

/*
 * Numbered-item list pattern (rights, clauses, process steps).
 * Used on: Privacy (.right-item), Terms (.clause), Data Processing (.process-item).
 * All three were structurally identical — unified here.
 */
.numbered-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  margin-top: var(--sp-5);
}

.numbered-item {
  display: flex;
  gap: var(--sp-4);
}

.numbered-item-num {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: var(--text-xs);
  color: var(--brand);
  background: var(--brand-xlight);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.02em;
  margin-top: 2px;
}

/* The data-processing variant uses a slightly larger num badge (40px) */
.numbered-item-num--lg {
  width: 40px;
  height: 40px;
  font-size: var(--text-sm);
}

.numbered-item h4 {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}

.numbered-item p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* --------------------------------------------------------------------------
   11. REVEAL ANIMATION
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s var(--ease-out-quart),
              transform 0.55s var(--ease-out-quart);
}

.reveal.is-visible { opacity: 1; transform: none; }

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .phone-frame,
  .chip { animation: none; transition: opacity 0.3s; }
}


/* ==========================================================================
   INDEX PAGE
   ========================================================================== */

/* HERO */
.hero { padding-block: var(--sp-9); }

.hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  align-items: center;
}

@media (min-width: 900px) {
  .hero-layout { grid-template-columns: 1fr 400px; }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 6px var(--sp-3);
  background: var(--green-surface);
  border-radius: 100px;
  margin-bottom: var(--sp-5);
}

.hero-eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.hero-eyebrow span {
  font-family: 'Archivo', sans-serif;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green);
}

.hero h1 {
  font-size: var(--text-3xl);
  margin-bottom: var(--sp-5);
  max-width: 14ch;
}

.hero h1 em { font-style: italic; color: var(--brand); }

.hero-body {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 52ch;
  margin-bottom: var(--sp-6);
  font-weight: 300;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-bottom: var(--sp-7);
}

.hero-link {
  font-family: 'Archivo', sans-serif;
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s;
}

.hero-link:hover { color: var(--brand); }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: 'Archivo', sans-serif;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
}


/* PHONE MOCKUP */
.hero-visual {
  position: relative;
  padding-inline: 28px;
}

.phone-frame {
  position: relative;
  z-index: 1;
  background: white;
  border-radius: 28px;
  border: 1px solid var(--border-subtle);
  box-shadow:
    0 24px 80px oklch(18% 0.015 264 / 0.12),
    0 4px 16px oklch(18% 0.015 264 / 0.06);
  overflow: hidden;
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

.phone-notch {
  width: 80px;
  height: 20px;
  background: var(--surface-2);
  border-radius: 0 0 14px 14px;
  margin: 12px auto 0;
}

.phone-ig-header {
  padding: var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  border-bottom: 1px solid var(--border-subtle);
}

.ig-avatar-ring {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  padding: 2px;
  background: conic-gradient(from 0deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888, #f09433);
  flex-shrink: 0;
}

.ig-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid white;
}

.ig-meta { flex: 1; }

.ig-username {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--text-primary);
}

.ig-stats-row { display: flex; gap: var(--sp-4); }

.ig-stat {
  font-family: 'Archivo', sans-serif;
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.ig-stat strong { color: var(--text-secondary); }

.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border-subtle);
}

.ig-cell { aspect-ratio: 1; overflow: hidden; }

.ig-cell-fill { width: 100%; height: 100%; }

.ig-cell:nth-child(1) .ig-cell-fill { background: oklch(82% 0.12 264); }
.ig-cell:nth-child(2) .ig-cell-fill { background: oklch(72% 0.14 264); }
.ig-cell:nth-child(3) .ig-cell-fill { background: oklch(62% 0.16 264); }
.ig-cell:nth-child(4) .ig-cell-fill { background: oklch(78% 0.13 264); }
.ig-cell:nth-child(5) .ig-cell-fill { background: oklch(55% 0.17 264); }
.ig-cell:nth-child(6) .ig-cell-fill { background: oklch(48% 0.18 264); }
.ig-cell:nth-child(7) .ig-cell-fill { background: oklch(70% 0.14 264); }
.ig-cell:nth-child(8) .ig-cell-fill { background: oklch(50% 0.17 264); }
.ig-cell:nth-child(9) .ig-cell-fill { background: oklch(40% 0.18 264); }

.phone-badge {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  margin: var(--sp-3);
  background: var(--green-surface);
  border-radius: 10px;
}

.phone-badge span {
  font-family: 'Archivo', sans-serif;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--green);
}

.chip {
  position: absolute;
  z-index: 10;
  background: white;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: var(--sp-2) var(--sp-3);
  box-shadow: 0 4px 16px oklch(18% 0.015 264 / 0.1);
}

.chip-label {
  font-family: 'Archivo', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.chip-value {
  font-family: 'Archivo', sans-serif;
  font-size: var(--text-sm);
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.02em;
}

.chip-left  { left: 0; top: 40%; animation: float 8s 1s ease-in-out infinite; }
.chip-right { right: 0; top: 22%; animation: float 6s 0.5s ease-in-out infinite reverse; }

@media (max-width: 900px) {
  .chip { display: none; }
}


/* GRID TYPES SECTION */
.grid-types-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  margin-top: var(--sp-7);
}

@media (min-width: 640px) {
  .grid-types-layout { grid-template-columns: repeat(3, 1fr); }
}

.grid-type {
  padding: var(--sp-6);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
  display: block;
}

.grid-type:hover {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px oklch(47% 0.18 264 / 0.08);
}

.grid-type.featured {
  border-color: var(--brand);
  background: var(--brand-xlight);
}

.mini-preview {
  display: grid;
  gap: 2px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: var(--sp-5);
  width: 100%;
  max-width: 120px;
  grid-template-columns: repeat(3, 1fr);
}

.mini-cell { aspect-ratio: 3/4; background: var(--surface-2); border-radius: 2px; }

.mini-cell.on       { background: var(--brand); }
.mini-cell.on-med   { background: oklch(65% 0.16 264); }
.mini-cell.on-light { background: oklch(78% 0.12 264); }

.grid-type-name {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: var(--text-lg);
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}

.grid-type-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 32ch;
}

.grid-type-count {
  margin-top: var(--sp-4);
  font-family: 'Archivo', sans-serif;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--brand);
}


/* HOW IT WORKS SECTION */
.how-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  align-items: start;
}

@media (min-width: 900px) {
  .how-layout { grid-template-columns: 1fr 1fr; }
}

.how-steps { display: flex; flex-direction: column; }

.how-step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: var(--sp-4);
  padding-bottom: var(--sp-6);
  position: relative;
}

.how-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 40px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--border-mid), transparent);
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand);
  color: white;
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-body { padding-top: 8px; }

.step-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}

.step-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  max-width: 42ch;
  line-height: 1.65;
}

.demo-panel {
  background: var(--surface-0);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: var(--sp-5);
  box-shadow: 0 8px 32px oklch(18% 0.015 264 / 0.06);
}

.demo-panel-label {
  font-family: 'Archivo', sans-serif;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: var(--sp-4);
}

.demo-dropzone {
  border: 1.5px dashed var(--border-mid);
  border-radius: 12px;
  padding: var(--sp-6) var(--sp-4);
  text-align: center;
  margin-bottom: var(--sp-4);
  background: var(--surface-1);
}

.demo-dropzone-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto var(--sp-3);
  background: var(--surface-2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-dropzone p {
  font-family: 'Archivo', sans-serif;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
}

.demo-dropzone small {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.demo-tabs {
  display: flex;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}

.demo-tab {
  flex: 1;
  padding: 8px;
  border-radius: 8px;
  font-family: 'Archivo', sans-serif;
  font-size: var(--text-xs);
  font-weight: 700;
  text-align: center;
}

.demo-tab.active        { background: var(--brand); color: white; }
.demo-tab:not(.active)  { background: var(--surface-2); color: var(--text-secondary); }

.demo-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: var(--sp-4);
}

.demo-mini-cell { aspect-ratio: 3/4; }
.demo-mini-cell:nth-child(1) { background: oklch(82% 0.12 264); }
.demo-mini-cell:nth-child(2) { background: oklch(65% 0.16 264); }
.demo-mini-cell:nth-child(3) { background: oklch(47% 0.18 264); }


/* FEATURES GRID */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  overflow: hidden;
  margin-top: var(--sp-7);
}

@media (min-width: 640px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-item {
  background: var(--surface-0);
  padding: var(--sp-6);
  transition: background 0.2s;
}

.feature-item:hover { background: var(--brand-xlight); }

.feature-number {
  font-family: 'Archivo', sans-serif;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--brand);
  margin-bottom: var(--sp-4);
  letter-spacing: 0.04em;
}

.feature-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--text-primary);
  margin-bottom: var(--sp-3);
  line-height: 1.3;
}

.feature-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 38ch;
}


/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.faq-item { padding: var(--sp-6); }

.faq-item summary {
  font-family: 'Archivo', sans-serif;
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: var(--sp-3);
}

.faq-chevron { transition: transform 0.2s ease; flex-shrink: 0; }

.faq-item[open] .faq-chevron { transform: rotate(180deg); }


/* BLOG LIST */
.blog-list {
  margin-top: var(--sp-7);
  border-top: 1px solid var(--border-subtle);
}

.blog-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-2);
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--border-subtle);
}

@media (min-width: 640px) {
  .blog-item {
    grid-template-columns: 100px 1fr auto;
    align-items: baseline;
    gap: var(--sp-6);
  }
}

.blog-item:hover .blog-title { color: var(--brand); }

.blog-category {
  font-family: 'Archivo', sans-serif;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.blog-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--text-primary);
  transition: color 0.15s;
  line-height: 1.4;
}

.blog-arrow {
  color: var(--text-tertiary);
  font-family: 'Archivo', sans-serif;
  font-size: var(--text-sm);
  transition: color 0.15s, transform 0.15s;
  white-space: nowrap;
}

.blog-item:hover .blog-arrow {
  color: var(--brand);
  transform: translateX(3px);
}


/* CTA STRIP */
.cta-strip {
  background: var(--brand);
  border-radius: 20px;
  padding: var(--sp-7);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  align-items: flex-start;
}

@media (min-width: 640px) {
  .cta-strip {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cta-strip h2 { font-size: var(--text-2xl); color: white; max-width: 22ch; }

.cta-strip p {
  color: oklch(87% 0.06 264);
  font-size: var(--text-sm);
  font-weight: 300;
  max-width: 38ch;
  margin-top: var(--sp-2);
}


/* ==========================================================================
   GRIDCUTTER TOOL PAGE
   ========================================================================== */

/* TOOL LAYOUT */
.tool-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-5);
  padding-block: var(--sp-5);
  align-items: start;
}

@media (min-width: 768px) {
  .tool-wrap {
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    gap: var(--sp-5);
    padding-block: var(--sp-6);
  }
}

@media (min-width: 1100px) {
  .tool-wrap {
    grid-template-columns: 320px minmax(0, 1fr);
    gap: var(--sp-6);
  }
}


/* SIDEBAR */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  min-width: 0;
}

@media (min-width: 768px) {
  .sidebar { position: sticky; top: 80px; }
}

.panel {
  background: var(--surface-0);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: var(--sp-5);
}

.panel-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: var(--text-base);
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.panel-title svg { color: var(--brand); flex-shrink: 0; }


/* UPLOAD ZONE */
.upload-zone {
  border: 1.5px dashed var(--border-mid);
  border-radius: 12px;
  padding: var(--sp-6) var(--sp-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--sp-3);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: var(--surface-1);
  min-height: 140px;
}

.upload-zone:hover     { border-color: var(--brand); background: var(--brand-xlight); }

.upload-zone.drag-over {
  border-color: var(--brand);
  border-style: solid;
  background: var(--brand-xlight);
}

.upload-icon {
  width: 40px;
  height: 40px;
  background: var(--surface-2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-zone p {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.upload-zone small {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.upload-zone input { display: none; }

.file-info {
  display: none;
  margin-top: var(--sp-3);
  padding: var(--sp-3);
  background: var(--green-surface);
  border-radius: 10px;
  align-items: center;
  gap: var(--sp-2);
}

.file-info.show { display: flex; }


/* GRID PICKER */
.grid-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-2);
}

.grid-option {
  border: 1.5px solid var(--border-subtle);
  border-radius: 10px;
  padding: var(--sp-3) var(--sp-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  background: var(--surface-1);
}

.grid-option:hover,
.grid-option.active { border-color: var(--brand); background: var(--brand-xlight); }

.grid-option-preview {
  display: grid;
  gap: 2px;
  border-radius: 4px;
  overflow: hidden;
  width: 48px;
}

.gc { border-radius: 1px; background: var(--surface-3); aspect-ratio: 3/4; }

.gc.on       { background: var(--brand); }
.gc.on-med   { background: oklch(65% 0.16 264); }
.gc.on-light { background: oklch(78% 0.12 264); }

.grid-option-label {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: var(--text-xs);
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}

.grid-option.active .grid-option-label { color: var(--brand); }

.grid-option-count {
  font-family: 'Archivo', sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-tertiary);
}

.grid-option.active .grid-option-count { color: oklch(60% 0.16 264); }


/* FORMAT PILLS */
.format-pills {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.pill {
  font-family: 'Archivo', sans-serif;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 6px var(--sp-3);
  border-radius: 100px;
  border: 1.5px solid var(--border-mid);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
  background: transparent;
}

.pill:hover  { border-color: var(--brand); color: var(--brand); }
.pill.active { background: var(--brand); border-color: var(--brand); color: white; }


/* STATS ROW */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-2);
}

.stat-item {
  background: var(--surface-1);
  border-radius: 10px;
  padding: var(--sp-3);
}

.stat-label {
  font-family: 'Archivo', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}

.stat-value {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: var(--text-sm);
  color: var(--text-primary);
  letter-spacing: -0.02em;
}


/* CANVAS AREA */
.canvas-area {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  min-width: 0;
}

.canvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.canvas-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: var(--text-xl);
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.canvas-sub {
  font-family: 'Archivo', sans-serif;
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-top: 2px;
}

.canvas-stage {
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  position: relative;
  overflow: hidden;
}

@media (min-width: 640px) {
  .canvas-stage { padding: var(--sp-5); min-height: 380px; }
}

@media (min-width: 960px) {
  .canvas-stage { padding: var(--sp-6); min-height: 420px; }
}

.canvas-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
  text-align: center;
}

.canvas-empty-icon {
  width: 64px;
  height: 64px;
  background: var(--surface-2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.canvas-empty h3 {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--text-primary);
}

.canvas-empty p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  max-width: 32ch;
}


/* PREVIEW GRID */
.preview-wrap { display: none; margin: auto; flex: 0 0 auto; }

.preview-grid {
  display: grid;
  gap: 3px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 40px oklch(18% 0.015 264 / 0.15);
}

.preview-cell { aspect-ratio: 3/4; overflow: hidden; position: relative; }

.preview-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }

.cell-badge {
  position: absolute;
  top: var(--sp-2);
  left: var(--sp-2);
  background: oklch(10% 0.01 264 / 0.6);
  color: white;
  font-family: 'Archivo', sans-serif;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 100px;
  backdrop-filter: blur(4px);
}


/* AD SLOTS */
.ad-slot {
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
}

.ad-slot-label {
  font-family: 'Archivo', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.ad-slot-728 { width: 100%; max-width: 728px; height: 90px; margin-inline: auto; }
.ad-slot-300 { width: 100%; height: 250px; }


/* DOWNLOAD PANEL */
.download-panel {
  background: var(--brand-xlight);
  border: 1.5px solid oklch(85% 0.06 264);
  border-radius: 16px;
  padding: var(--sp-5);
  flex-direction: column;
  gap: var(--sp-4);
  display: none;
}

.download-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
}

@media (min-width: 640px) {
  .download-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  .download-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.download-thumb {
  background: var(--surface-0);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.15s, transform 0.15s;
}

.download-thumb:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px oklch(47% 0.18 264 / 0.2);
}

.download-thumb-img { aspect-ratio: 3/4; background: var(--surface-2); overflow: hidden; }
.download-thumb-img img { width: 100%; height: 100%; object-fit: cover; }

.download-thumb-foot {
  padding: var(--sp-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.download-thumb-num {
  font-family: 'Archivo', sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-tertiary);
}


/* POSTING NOTE */
.posting-note {
  background: var(--surface-0);
  border-radius: 10px;
  padding: var(--sp-3) var(--sp-4);
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  border: 1px solid var(--border-subtle);
}

.posting-note svg { flex-shrink: 0; margin-top: 2px; color: var(--brand); }

.posting-note p {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: 1.6;
}

.posting-note strong {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  color: var(--text-primary);
}


/* ==========================================================================
   ABOUT PAGE
   ========================================================================== */

.about-header {
  padding-block: var(--sp-9) var(--sp-7);
  border-bottom: 1px solid var(--border-subtle);
}

.about-header .f-label {
  margin-bottom: var(--sp-4);
  display: block;
}

.about-header h1 {
  font-size: clamp(2.25rem, 4vw + 1rem, 3.5rem);
  max-width: 18ch;
  margin-bottom: var(--sp-5);
}

.about-header h1 em { font-style: italic; color: var(--brand); }

.about-header-lead {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 58ch;
  font-weight: 300;
  line-height: 1.6;
}

.origin-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  padding-block: var(--sp-9);
  align-items: start;
}

@media (min-width: 860px) {
  .origin-layout {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-9);
    align-items: center;
  }
}

.origin-text h2 {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: var(--text-2xl);
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: var(--sp-5);
  line-height: 1.15;
}

.origin-text h2 em { font-style: italic; color: var(--brand); }

.origin-text p {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: var(--sp-4);
  max-width: 54ch;
}

.origin-text p:last-child { margin-bottom: 0; }

.about-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-6) var(--sp-8);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border-subtle);
  margin-top: var(--sp-6);
}

.about-stat-value {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: var(--text-2xl);
  letter-spacing: -0.04em;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 4px;
}

.about-stat-label {
  font-family: 'Archivo', sans-serif;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.origin-visual {
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: var(--sp-5);
}

.origin-visual-label {
  font-family: 'Archivo', sans-serif;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: var(--sp-4);
}

.about-grid-demo {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: var(--sp-4);
}

.about-grid-cell { aspect-ratio: 3/4; }

.about-grid-cell:nth-child(1) { background: oklch(82% 0.12 264); }
.about-grid-cell:nth-child(2) { background: oklch(72% 0.14 264); }
.about-grid-cell:nth-child(3) { background: oklch(62% 0.16 264); }
.about-grid-cell:nth-child(4) { background: oklch(78% 0.13 264); }
.about-grid-cell:nth-child(5) { background: oklch(55% 0.17 264); }
.about-grid-cell:nth-child(6) { background: oklch(48% 0.18 264); }
.about-grid-cell:nth-child(7) { background: oklch(70% 0.14 264); }
.about-grid-cell:nth-child(8) { background: oklch(50% 0.17 264); }
.about-grid-cell:nth-child(9) { background: oklch(40% 0.18 264); }

.origin-visual-caption {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  line-height: 1.5;
}

.principles-section {
  padding-block: var(--sp-9);
  border-top: 1px solid var(--border-subtle);
}

.principles-header { margin-bottom: var(--sp-7); }

.principles-header h2 {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: var(--text-2xl);
  letter-spacing: -0.03em;
  margin-top: var(--sp-2);
}

.principles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  overflow: hidden;
}

@media (min-width: 640px) {
  .principles-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .principles-grid { grid-template-columns: repeat(3, 1fr); }
}

.principle-item {
  background: var(--surface-0);
  padding: var(--sp-6);
  transition: background 0.2s;
}

.principle-item:hover { background: var(--brand-xlight); }

.principle-num {
  font-family: 'Archivo', sans-serif;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.04em;
  margin-bottom: var(--sp-4);
}

.principle-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--text-primary);
  margin-bottom: var(--sp-3);
}

.principle-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 38ch;
}

.about-cta {
  padding-block: var(--sp-9);
  border-top: 1px solid var(--border-subtle);
}


/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  padding-block: var(--sp-9);
  align-items: start;
}

@media (min-width: 960px) {
  .contact-wrap { grid-template-columns: 1fr 1fr; }
}

.contact-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 6px var(--sp-3);
  background: var(--green-surface);
  border-radius: 100px;
  margin-bottom: var(--sp-5);
}

.contact-eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.contact-eyebrow span {
  font-family: 'Archivo', sans-serif;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green);
}

.contact-heading {
  font-size: var(--text-3xl);
  margin-bottom: var(--sp-5);
  max-width: 14ch;
}

.contact-heading em { font-style: italic; color: var(--brand); }

.contact-body {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 46ch;
  margin-bottom: var(--sp-7);
  font-weight: 300;
  line-height: 1.6;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  margin-bottom: var(--sp-7);
}

.contact-detail { display: flex; align-items: flex-start; gap: var(--sp-4); }

.contact-detail-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-label {
  font-family: 'Archivo', sans-serif;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 3px;
}

.contact-detail-value {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--text-primary);
}

.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}

.contact-card {
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: var(--sp-5);
  transition: border-color 0.2s, background 0.2s;
}

.contact-card:hover { border-color: var(--brand); background: var(--brand-xlight); }

.contact-card h3 {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}

.contact-card p {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--sp-3);
}

.contact-card a {
  font-family: 'Archivo', sans-serif;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.15s;
}

.contact-card a:hover { gap: 8px; }

.form-panel {
  background: var(--surface-0);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: var(--sp-6);
  box-shadow: 0 8px 40px oklch(18% 0.015 264 / 0.06);
}

@media (min-width: 640px) {
  .form-panel { padding: var(--sp-7); }
}

.form-panel-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: var(--text-xl);
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}

.form-panel-sub {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--sp-6);
  font-weight: 300;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}

@media (min-width: 640px) {
  .form-grid-2 { grid-template-columns: 1fr 1fr; }
}

.field { display: flex; flex-direction: column; gap: var(--sp-2); }

.field-label {
  font-family: 'Archivo', sans-serif;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.field input,
.field select,
.field textarea {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: var(--text-sm);
  color: var(--text-primary);
  background: var(--surface-1);
  border: 1.5px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px var(--sp-4);
  outline: none;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand);
  background: var(--surface-0);
  box-shadow: 0 0 0 3px oklch(47% 0.18 264 / 0.08);
}

.field input::placeholder,
.field textarea::placeholder { color: var(--text-tertiary); }

.field textarea { resize: vertical; min-height: 140px; line-height: 1.65; }

.field-select-wrap { position: relative; }

.field-select-wrap::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--text-tertiary);
  pointer-events: none;
}

.form-note {
  font-family: 'Archivo', sans-serif;
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  text-align: center;
  margin-top: var(--sp-3);
}

.form-note a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-4);
  padding: var(--sp-7) var(--sp-5);
}

.form-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green-surface);
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-success h3 {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: var(--text-xl);
  color: var(--text-primary);
}

.form-success p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  max-width: 32ch;
}


/* ==========================================================================
   DATA PROCESSING PAGE
   ========================================================================== */

.dp-header {
  padding-block: var(--sp-9) var(--sp-7);
  border-bottom: 1px solid var(--border-subtle);
}

.dp-header h1 {
  font-size: var(--text-3xl);
  margin-top: var(--sp-4);
  max-width: 20ch;
}

.dp-header-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
  flex-wrap: wrap;
}

.dp-header-meta span {
  font-family: 'Archivo', sans-serif;
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.dp-header-meta .sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border-mid);
}

.dp-content {
  padding-block: var(--sp-9);
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}

.dp-section { scroll-margin-top: 90px; }

.dp-section h2 {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: var(--text-2xl);
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--border-subtle);
}

.dp-section p {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: var(--sp-4);
}

.dp-section p:last-child { margin-bottom: 0; }

.dp-section a:not(.btn) {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dp-section a:not(.btn):hover { opacity: 0.8; }

.dp-contact {
  background: var(--surface-1);
  border-radius: 16px;
  padding: var(--sp-7);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  align-items: flex-start;
  border: 1px solid var(--border-subtle);
  margin-top: var(--sp-5);
}

@media (min-width: 640px) {
  .dp-contact {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.dp-contact h4 {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: var(--text-lg);
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}

.dp-contact p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  max-width: 40ch;
  line-height: 1.6;
}

.dpa-info {
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: var(--sp-5);
  margin-top: var(--sp-5);
}

.dpa-info h5 {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--text-primary);
  margin-bottom: var(--sp-3);
}

.dpa-info p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: 0;
}


/* ==========================================================================
   PRIVACY PAGE
   ========================================================================== */

.privacy-header {
  padding-block: var(--sp-9) var(--sp-7);
  border-bottom: 1px solid var(--border-subtle);
}

.privacy-header-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
  flex-wrap: wrap;
}

.privacy-header-meta span {
  font-family: 'Archivo', sans-serif;
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.privacy-header-meta .sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border-mid);
}

.privacy-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  padding-block: var(--sp-8);
  align-items: start;
}

@media (min-width: 960px) {
  .privacy-layout { grid-template-columns: 200px 1fr; gap: var(--sp-9); }
}

.privacy-content {
  display: flex;
  flex-direction: column;
  gap: var(--sp-9);
}

.privacy-section { scroll-margin-top: 90px; }

.privacy-section h2 {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: var(--text-2xl);
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--border-subtle);
}

.privacy-section p {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: var(--sp-4);
}

.privacy-section p:last-child { margin-bottom: 0; }

.privacy-section a:not(.btn) {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacy-section a:not(.btn):hover { opacity: 0.8; }

.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  margin-top: var(--sp-5);
}

@media (min-width: 640px) {
  .info-grid { grid-template-columns: repeat(2, 1fr); }
}

.info-card {
  padding: var(--sp-5);
  background: var(--surface-1);
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}

.info-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brand-xlight);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-3);
}

.info-card-icon svg { color: var(--brand); }

.info-card h4 {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}

.info-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}


/* ==========================================================================
   TERMS PAGE
   ========================================================================== */

.terms-header {
  padding-block: var(--sp-9) var(--sp-7);
  border-bottom: 1px solid var(--border-subtle);
}

.terms-header-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
  flex-wrap: wrap;
}

.terms-header-meta span {
  font-family: 'Archivo', sans-serif;
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.terms-header-meta .sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border-mid);
}

.terms-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  padding-block: var(--sp-8);
  align-items: start;
}

@media (min-width: 960px) {
  .terms-layout { grid-template-columns: 200px 1fr; gap: var(--sp-9); }
}

.terms-content {
  display: flex;
  flex-direction: column;
  gap: var(--sp-9);
}

.terms-section { scroll-margin-top: 90px; }

.terms-section h2 {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: var(--text-2xl);
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--border-subtle);
}

.terms-section p {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: var(--sp-4);
}

.terms-section p:last-child { margin-bottom: 0; }

.terms-section a:not(.btn) {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.terms-section a:not(.btn):hover { opacity: 0.8; }

.terms-section ul {
  margin: var(--sp-3) 0 var(--sp-4) var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.terms-section ul li {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.65;
}

.callout {
  background: var(--surface-1);
  border-left: 3px solid var(--brand);
  border-radius: 0 12px 12px 0;
  padding: var(--sp-4) var(--sp-5);
  margin: var(--sp-5) 0;
}

.callout p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

.callout strong {
  font-family: 'Archivo', sans-serif;
  color: var(--text-primary);
}


/* ==========================================================================
   MOBILE OVERRIDES
   ========================================================================== */
@media (max-width: 767px) {
  .tool-wrap { gap: var(--sp-4); }

  .tool-wrap > .sidebar,
  .tool-wrap > .canvas-area { display: contents; }

  /* gridcutter & carousel Panel ordering on mobile */
  .tool-panel               { order: 10; }
  .tool-panel-upload        { order: 1; }
  .tool-panel-preview-head  { order: 2; }
  .tool-panel-preview-stage { order: 3; }
  .tool-panel-reset         { order: 4; }
  .tool-panel-error         { order: 5; }
  .tool-panel-ratio         { order: 6; }
  .tool-panel-slides        { order: 7; }
  .tool-panel-grid          { order: 7; }
  .tool-panel-format        { order: 8; }
  .tool-panel-info          { order: 9; }
  .tool-panel-downloads     { order: 10; }
  .tool-panel-summary       { order: 11; }
  .tool-panel-advanced      { order: 12; }

  .canvas-area   { gap: var(--sp-4); }
  .canvas-header { margin-bottom: calc(var(--sp-4) * -1); }
  .panel         { padding: var(--sp-4); }
  .download-panel { padding: var(--sp-4); }

  .download-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 400px;
    margin-inline: auto;
    gap: 10px;
  }

  .download-thumb-img { aspect-ratio: 3/4; }

  .download-thumb-foot {
    padding: 8px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .download-thumb-foot .btn {
    width: 100%;
    justify-content: center;
    padding: 7px 8px;
  }

  .download-thumb-num { text-align: center; }

  .posting-note { padding: var(--sp-3); }

  .ad-slot-300 { display: none; }

  #cookieBanner .cookie-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  #cookieBanner .cookie-bottom-bar p,
  #cookieBanner .cookie-bottom-bar .cookie-buttons { width: 100%; }
}

/* Responsive Download Panel Buttons */
.download-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.download-buttons-group {
  display: flex;
  gap: var(--sp-3);
  flex-shrink: 1;
  min-width: 0;
}

.download-buttons-group .btn {
  flex: 1 1 0;
  min-width: 0;
  white-space: nowrap;
  justify-content: center;
}

@media (max-width: 640px) {
  .download-panel-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .download-buttons-group {
    flex-basis: 100%;
    width: 100%;
  }
  
  .download-buttons-group .btn {
    font-size: 0.75rem;
    padding: 8px 12px;
    gap: 4px;
  }
  
  .download-buttons-group .btn svg {
    width: 12px;
    height: 12px;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .download-buttons-group .btn {
    font-size: 0.8rem;
    padding: 8px 14px;
  }
  
  .download-buttons-group .btn svg {
    width: 13px;
    height: 13px;
  }
}