/* =================================================================
   Kin — Public Website Theme
   Sage & Rose · Nature-Inspired · Editorial
   ================================================================= */

:root {
  /* ── Backgrounds ── */
  --bg-base: #FAFAF8;
  --bg-surface: #FFFFFF;
  --bg-elevated: #FFFFFF;
  --bg-hover: #F2EDEA;
  --bg-warm: #F8EFE4;

  /* ── Sage — primary brand (nature / health) ── */
  --sage-deep: #2D6A50;
  --accent-sage: #36B880;
  --accent-sage-soft: rgba(54, 184, 128, 0.07);
  --accent-sage-medium: rgba(54, 184, 128, 0.14);
  --accent-sage-strong: rgba(54, 184, 128, 0.22);
  --sage-light: #90D8B4;
  --sage-wash: #F2F8F5;

  /* ── Berry — CTA / action ── */
  --accent-berry: #E0607A;
  --accent-berry-soft: rgba(224, 96, 122, 0.08);
  --accent-berry-medium: rgba(224, 96, 122, 0.16);
  --berry-light: #F0A0B0;

  /* ── Rose — decorative warmth ── */
  --accent-rose: #F0B0BE;
  --accent-rose-soft: rgba(240, 176, 190, 0.10);
  --accent-rose-medium: rgba(240, 176, 190, 0.18);

  /* ── Earth — warm accent (peach / apricot) ── */
  --accent-earth: #E8A878;
  --accent-earth-soft: rgba(232, 168, 120, 0.08);
  --accent-earth-medium: rgba(232, 168, 120, 0.16);
  --accent-peach: #F5CCB0;
  --accent-sand: #F8E8D4;

  /* ── Teal — interactive differentiation ── */
  --accent-teal: #38C4B0;
  --accent-teal-soft: rgba(56, 196, 176, 0.08);

  /* ── Text — warm-tinted ── */
  --text-primary: #2A2826;
  --text-secondary: #6B6460;
  --text-muted: #A89C94;
  --text-on-dark: #F2EDE8;

  /* ── Borders — warm ── */
  --border: #EAE4DE;
  --border-hover: #DED6CE;

  /* ── Status ── */
  --status-success: #36B880;
  --status-warning: #E8A878;
  --status-error: #E0607A;
  --status-info: #38C4B0;

  /* Typography */
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;
  --sp-24: 96px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 150ms;
  --dur-normal: 300ms;
  --dur-slow: 500ms;

  /* Layout */
  --content-max: 1120px;
  --header-h: 64px;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-primary);
  background: var(--sage-wash);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: inherit; color: inherit; background: none; border: none; outline: none; }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* =================================================================
   Organic Background — Rose-to-Sage Wash + Water Ripples
   ================================================================= */

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  filter: blur(18px);
  background:
    radial-gradient(ellipse 60% 50% at 15% 12%, rgba(245, 220, 200, 0.25) 0%, transparent 70%),
    radial-gradient(ellipse 55% 45% at 20% 75%, rgba(242, 212, 195, 0.18) 0%, transparent 65%),
    radial-gradient(ellipse 50% 60% at 35% 45%, rgba(220, 242, 232, 0.28) 0%, transparent 60%),
    radial-gradient(ellipse 25% 20% at 60% 55%, rgba(242, 228, 212, 0.14) 0%, transparent 60%),
    radial-gradient(ellipse 40% 35% at 45% 35%, rgba(235, 248, 240, 0.30) 0%, transparent 65%),
    linear-gradient(135deg, #F8F0E8 0%, #F0F6F0 35%, #ECF5F0 55%, #F2F8F5 100%);
}

/* Water ripple rings — slow, subtle drift */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: transparent;
  pointer-events: none;
}

.ripple-1 {
  width: 180px;
  height: 170px;
  top: 18%;
  left: 42%;
  border-radius: 52% 48% 45% 55% / 48% 52% 48% 52%;
  box-shadow:
    0 0 0 2px rgba(210, 215, 205, 0.35),
    0 0 0 8px rgba(210, 215, 205, 0.20),
    0 0 0 16px rgba(210, 215, 205, 0.12),
    0 0 0 26px rgba(210, 215, 205, 0.07),
    0 0 0 38px rgba(210, 215, 205, 0.03);
  filter: blur(6px);
  animation: ripple-drift 28s ease-in-out infinite;
}

.ripple-2 {
  width: 220px;
  height: 210px;
  top: 12%;
  right: 8%;
  border-radius: 48% 52% 55% 45% / 55% 45% 52% 48%;
  box-shadow:
    0 0 0 2px rgba(190, 205, 195, 0.30),
    0 0 0 9px rgba(190, 205, 195, 0.18),
    0 0 0 18px rgba(190, 205, 195, 0.10),
    0 0 0 30px rgba(190, 205, 195, 0.05),
    0 0 0 44px rgba(190, 205, 195, 0.02);
  filter: blur(8px);
  animation: ripple-drift 34s ease-in-out infinite reverse;
}

.ripple-3 {
  width: 200px;
  height: 190px;
  bottom: 15%;
  left: 5%;
  border-radius: 55% 45% 50% 50% / 50% 55% 45% 50%;
  box-shadow:
    0 0 0 2px rgba(190, 162, 140, 0.28),
    0 0 0 8px rgba(190, 162, 140, 0.16),
    0 0 0 17px rgba(190, 162, 140, 0.09),
    0 0 0 28px rgba(190, 162, 140, 0.04),
    0 0 0 42px rgba(190, 162, 140, 0.02);
  filter: blur(7px);
  animation: ripple-drift 26s ease-in-out infinite;
}

.ripple-4 {
  width: 140px;
  height: 135px;
  bottom: 10%;
  right: 12%;
  border-radius: 50% 50% 45% 55% / 52% 48% 50% 50%;
  box-shadow:
    0 0 0 2px rgba(195, 210, 200, 0.25),
    0 0 0 7px rgba(195, 210, 200, 0.14),
    0 0 0 14px rgba(195, 210, 200, 0.08),
    0 0 0 23px rgba(195, 210, 200, 0.03);
  filter: blur(6px);
  animation: ripple-drift 24s ease-in-out infinite reverse;
}

.ripple-5 {
  width: 160px;
  height: 155px;
  top: 40%;
  right: 25%;
  border-radius: 45% 55% 52% 48% / 50% 50% 50% 50%;
  box-shadow:
    0 0 0 2px rgba(200, 210, 200, 0.22),
    0 0 0 7px rgba(200, 210, 200, 0.12),
    0 0 0 15px rgba(200, 210, 200, 0.06),
    0 0 0 25px rgba(200, 210, 200, 0.02);
  filter: blur(8px);
  animation: ripple-drift 30s ease-in-out infinite;
}

/* Ripple drift — halved movement, doubled duration */
@keyframes ripple-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(3px, -4px) scale(1.008); }
  50% { transform: translate(-2px, 2px) scale(0.992); }
  75% { transform: translate(1px, 1px) scale(1.004); }
}

/* Slow organic float for hero blobs */
@keyframes float-slow {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(4px, -6px) rotate(0.5deg); }
  66% { transform: translate(-3px, 3px) rotate(-0.3deg); }
}

/* Gentle fade-in entrance */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =================================================================
   Site Shell
   ================================================================= */

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

/* =================================================================
   Header / Navigation
   ================================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--sp-8);
  background: rgba(242, 248, 245, 0.60);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.site-logo {
  font-family: var(--font-display);
  font-size: 26px;
  font-style: italic;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  transition: opacity var(--dur-fast) ease;
}
.site-logo:hover { opacity: 0.7; }

.site-nav {
  display: flex;
  gap: var(--sp-1);
}

.site-nav-link {
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 450;
  color: var(--text-secondary);
  transition: all var(--dur-fast) ease;
}
.site-nav-link:hover { color: var(--text-primary); background: var(--bg-hover); }
.site-nav-link.active { color: var(--accent-sage); }

.site-header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.site-cta-secondary {
  padding: var(--sp-2) var(--sp-4);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: color var(--dur-fast) ease;
}
.site-cta-secondary:hover { color: var(--text-primary); }

.site-cta-primary {
  padding: var(--sp-2) var(--sp-5);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-sage);
  background: transparent;
  border: 1.5px solid var(--accent-sage);
  border-radius: var(--radius-pill);
  transition: all var(--dur-normal) var(--ease-out);
}
.site-cta-primary:hover {
  background: var(--accent-sage);
  color: #FFFFFF;
}

/* =================================================================
   Hero Section
   ================================================================= */

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-10);
  align-items: center;
  padding: var(--sp-12) 0 var(--sp-8);
  position: relative;
  overflow: hidden;
}

/* Organic blob backgrounds — very slow drift */
.hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: var(--accent-sage-medium);
  border-radius: 60% 40% 55% 45% / 55% 60% 40% 45%;
  filter: blur(90px);
  opacity: 0.4;
  pointer-events: none;
  animation: float-slow 22s ease-in-out infinite;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -80px;
  width: 350px;
  height: 350px;
  background: var(--accent-earth-medium);
  border-radius: 45% 55% 40% 60% / 60% 45% 55% 40%;
  filter: blur(90px);
  opacity: 0.35;
  pointer-events: none;
  animation: float-slow 20s ease-in-out infinite reverse;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: var(--sp-5);
  animation: fadeInUp 1.2s var(--ease-out) 0.1s both;
}

.hero-title-accent {
  font-style: italic;
  color: var(--accent-sage);
}

.hero-subtitle {
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: var(--sp-8);
  animation: fadeInUp 1.2s var(--ease-out) 0.3s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  animation: fadeInUp 1.2s var(--ease-out) 0.5s both;
}

.hero-cta-outlined {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-sage);
  border: 1.5px solid var(--accent-sage);
  border-radius: var(--radius-pill);
  transition: all var(--dur-normal) var(--ease-out);
}
.hero-cta-outlined:hover {
  background: var(--accent-sage);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.hero-cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  transition: all var(--dur-normal) var(--ease-out);
}
.hero-cta-ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: var(--bg-hover);
}

/* --- Health Vault Diagram (organic SVG blobs) --- */
.vault-diagram {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInUp 1.4s var(--ease-out) 0.6s both;
}

.vault-diagram-svg {
  width: 100%;
  max-width: 340px;
  height: auto;
}

/* =================================================================
   Section Shared
   ================================================================= */

.section-header {
  text-align: center;
  margin-bottom: var(--sp-6);
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 400;
  letter-spacing: -0.015em;
  margin-bottom: var(--sp-3);
}

.section-subheading {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* =================================================================
   Pillars (Own / Understand / Share)
   ================================================================= */

.pillars-section {
  padding: var(--sp-6) 0 var(--sp-16);
  position: relative;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-10);
  position: relative;
  z-index: 1;
}

.pillar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  animation: fadeInUp 1s var(--ease-out) both;
}
.pillar:nth-child(1) { animation-delay: 0.1s; }
.pillar:nth-child(2) { animation-delay: 0.25s; }
.pillar:nth-child(3) { animation-delay: 0.4s; }

.pillar-word {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(48px, 5.5vw, 72px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.pillar-bar {
  display: block;
  width: 32px;
  height: 3px;
  border-radius: 2px;
  margin: var(--sp-4) 0;
}

.pillar-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}

.pillar-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 320px;
}

/* =================================================================
   Guide Cards (2x2)
   ================================================================= */

.protocols-section {
  padding: var(--sp-20) 0;
}

.protocols-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-5);
}

.protocol-card {
  background: rgba(255, 255, 255, 0.60);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  transition: all var(--dur-normal) var(--ease-out);
  animation: fadeInUp 1s var(--ease-out) both;
}
.protocol-card:nth-child(1) { animation-delay: 0.1s; }
.protocol-card:nth-child(2) { animation-delay: 0.2s; }
.protocol-card:nth-child(3) { animation-delay: 0.3s; }
.protocol-card:nth-child(4) { animation-delay: 0.4s; }

.protocol-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
  border-color: var(--border-hover);
}

.protocol-card-header {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}

.protocol-card-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--accent-earth-soft);
  color: var(--accent-earth);
}
.protocol-card-icon svg { width: 18px; height: 18px; }

.protocol-card-name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.protocol-card-author {
  font-size: 13px;
  color: var(--text-muted);
  display: block;
  margin-top: 1px;
}

.protocol-card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
  margin-bottom: var(--sp-4);
}

.protocol-install-btn {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: var(--sp-2) var(--sp-5);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-berry);
  border: 1.5px solid var(--accent-berry);
  border-radius: var(--radius-pill);
  transition: all var(--dur-normal) var(--ease-out);
}
.protocol-install-btn:hover {
  background: var(--accent-berry);
  color: #FFFFFF;
}

/* =================================================================
   Bottom CTA
   ================================================================= */

.bottom-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--sp-24) 0;
  position: relative;
}

.bottom-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 300px;
  background: radial-gradient(circle, var(--accent-sage-medium) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.6;
}

.bottom-cta-heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 400;
  letter-spacing: -0.015em;
  margin-bottom: var(--sp-6);
  position: relative;
  z-index: 1;
}

.bottom-cta .hero-cta-outlined {
  position: relative;
  z-index: 1;
}

/* =================================================================
   Marketplace Page
   ================================================================= */

/* Hero */
.mkt-hero {
  text-align: center;
  padding: var(--sp-12) 0 var(--sp-8);
  position: relative;
  animation: fadeInUp 1.2s var(--ease-out) 0.1s both;
}

.mkt-hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: var(--sp-5);
}

.mkt-hero-accent {
  font-style: italic;
  color: var(--accent-sage);
}

.mkt-hero-subtitle {
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto var(--sp-8);
  line-height: 1.7;
}

/* Search bar */
.mkt-search-row {
  display: flex;
  justify-content: center;
}

.mkt-search-input {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-pill);
  width: 100%;
  max-width: 520px;
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.mkt-search-input:focus-within {
  border-color: var(--accent-sage);
  box-shadow: 0 0 0 3px var(--accent-sage-soft);
}
.mkt-search-input svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.mkt-search-input input { flex: 1; font-size: 14px; }
.mkt-search-input input::placeholder { color: var(--text-muted); }

/* Featured section */
.mkt-featured-section {
  padding: var(--sp-8) 0 var(--sp-16);
}

.mkt-featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

.mkt-featured-card {
  background: rgba(255, 255, 255, 0.50);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius-xl);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all var(--dur-normal) var(--ease-out);
  animation: fadeInUp 0.5s var(--ease-out) both;
}
.mkt-featured-card:nth-child(1) { animation-delay: 0.05s; }
.mkt-featured-card:nth-child(2) { animation-delay: 0.10s; }
.mkt-featured-card:nth-child(3) { animation-delay: 0.15s; }
.mkt-featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
}

/* Badges row */
.mkt-featured-badges {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-bottom: var(--sp-4);
}

.mkt-featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
}
.mkt-featured-badge svg { width: 12px; height: 12px; }

/* Large circular icon */
.mkt-featured-icon {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-4);
  color: #FFFFFF;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}
.mkt-featured-icon svg { width: 38px; height: 38px; }

.mkt-featured-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: var(--sp-2);
  color: var(--text-primary);
}

.mkt-featured-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: var(--sp-5);
  flex: 1;
}

.mkt-install-btn {
  padding: var(--sp-2) var(--sp-6);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  transition: all var(--dur-normal) var(--ease-out);
  letter-spacing: 0.01em;
}
.mkt-install-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  filter: brightness(1.05);
}

/* Categories section */
.mkt-categories-section {
  padding: 0 0 var(--sp-16);
}

.mkt-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

.mkt-category-card {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  background: rgba(255, 255, 255, 0.50);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-lg);
  padding: var(--sp-4) var(--sp-5);
  transition: all var(--dur-normal) var(--ease-out);
  animation: fadeInUp 0.4s var(--ease-out) both;
}
.mkt-category-card:nth-child(1) { animation-delay: 0.05s; }
.mkt-category-card:nth-child(2) { animation-delay: 0.08s; }
.mkt-category-card:nth-child(3) { animation-delay: 0.11s; }
.mkt-category-card:nth-child(4) { animation-delay: 0.14s; }
.mkt-category-card:nth-child(5) { animation-delay: 0.17s; }
.mkt-category-card:nth-child(6) { animation-delay: 0.20s; }
.mkt-category-card:hover {
  background: rgba(255, 255, 255, 0.70);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.mkt-category-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  flex-shrink: 0;
}
.mkt-category-icon svg { width: 22px; height: 22px; }

.mkt-category-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.mkt-category-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.mkt-category-count {
  font-size: 12px;
  color: var(--text-muted);
}

.mkt-category-arrow {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform var(--dur-fast) ease, color var(--dur-fast) ease;
}
.mkt-category-arrow svg { width: 16px; height: 16px; }
.mkt-category-card:hover .mkt-category-arrow {
  transform: translateX(2px);
  color: var(--text-secondary);
}

/* Creator CTA (matches home page bottom-cta pattern) */
.mkt-creator-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--sp-20) 0;
  position: relative;
}

.mkt-creator-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 300px;
  background: radial-gradient(circle, var(--accent-sage-medium) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.6;
}

.mkt-creator-cta-heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 400;
  letter-spacing: -0.015em;
  margin-bottom: var(--sp-3);
  position: relative;
  z-index: 1;
}

.mkt-creator-cta-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 440px;
  margin: 0 auto var(--sp-6);
  position: relative;
  z-index: 1;
}

.mkt-creator-cta .hero-cta-outlined {
  position: relative;
  z-index: 1;
}

/* =================================================================
   Category Page
   ================================================================= */

/* Breadcrumb */
.cat-breadcrumb {
  padding: var(--sp-4) 0 var(--sp-2);
  animation: fadeInUp 0.4s var(--ease-out) both;
}

.cat-breadcrumb-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: 14px;
  font-weight: 450;
  color: var(--text-muted);
  transition: color var(--dur-fast) ease;
}
.cat-breadcrumb-link svg { width: 16px; height: 16px; }
.cat-breadcrumb-link:hover { color: var(--text-primary); }

/* Hero */
.cat-hero {
  text-align: center;
  padding: var(--sp-6) 0 var(--sp-10);
  animation: fadeInUp 0.6s var(--ease-out) 0.05s both;
}

.cat-hero-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  margin: 0 auto var(--sp-5);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}
.cat-hero-icon svg { width: 30px; height: 30px; }

.cat-hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: var(--sp-4);
}

.cat-hero-accent {
  color: var(--text-muted);
}

.cat-hero-subtitle {
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto var(--sp-4);
  line-height: 1.7;
}

.cat-hero-count {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.5);
  padding: var(--sp-1) var(--sp-4);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Guides grid */
.cat-skills-section {
  padding-bottom: var(--sp-12);
}

.cat-skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-5);
}

.cat-skill-card {
  background: rgba(255, 255, 255, 0.60);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  transition: all var(--dur-normal) var(--ease-out);
  animation: fadeInUp 1s var(--ease-out) both;
}
.cat-skill-card:nth-child(1) { animation-delay: 0.1s; }
.cat-skill-card:nth-child(2) { animation-delay: 0.2s; }
.cat-skill-card:nth-child(3) { animation-delay: 0.3s; }
.cat-skill-card:nth-child(4) { animation-delay: 0.4s; }
.cat-skill-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
  border-color: var(--border-hover);
}

.cat-skill-card-header {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}

.cat-skill-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}

.cat-skill-name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.cat-skill-author {
  font-size: 13px;
  color: var(--text-muted);
  display: block;
  margin-top: 1px;
}

.cat-skill-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
  margin-bottom: var(--sp-5);
}

.cat-skill-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cat-skill-meta {
  display: flex;
  gap: var(--sp-4);
}

.cat-skill-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}
.cat-skill-badge svg { width: 12px; height: 12px; }

/* Not found */
.cat-not-found {
  text-align: center;
  padding: var(--sp-20) 0;
}
.cat-not-found h1 {
  font-family: var(--font-display);
  font-size: 32px;
  margin-bottom: var(--sp-3);
}
.cat-not-found p {
  color: var(--text-secondary);
  margin-bottom: var(--sp-6);
}
.cat-back-link {
  display: inline-flex;
  padding: var(--sp-2) var(--sp-5);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-sage);
  border: 1.5px solid var(--accent-sage);
  border-radius: var(--radius-pill);
  transition: all var(--dur-normal) var(--ease-out);
}
.cat-back-link:hover {
  background: var(--accent-sage);
  color: #FFFFFF;
}

/* Back CTA */
.cat-back-cta {
  display: flex;
  justify-content: center;
  padding: 0 0 var(--sp-16);
}

/* =================================================================
   Company Page
   ================================================================= */

.company-page {
  padding: var(--sp-12) 0 var(--sp-8);
}

/* Hero */
.company-hero {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--sp-12);
  animation: fadeInUp 0.6s var(--ease-out) both;
}

.company-hero-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-5);
}

.company-hero-accent {
  font-style: italic;
  color: var(--accent-sage);
}

.company-hero-subtitle {
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto;
}

/* Photo */
.company-photo-section {
  margin-bottom: var(--sp-16);
  animation: fadeInUp 0.6s var(--ease-out) 0.1s both;
}

.company-photo {
  border-radius: var(--radius-xl);
  overflow: hidden;
  max-height: 420px;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.10);
}

.company-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* Team backgrounds */
.company-team-section {
  text-align: center;
  margin-bottom: var(--sp-16);
  animation: fadeInUp 0.5s var(--ease-out) 0.15s both;
}

.company-section-heading {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 400;
  letter-spacing: -0.015em;
  margin-bottom: var(--sp-3);
}

.company-section-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto var(--sp-8);
}

.company-logos-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.company-logo-img {
  height: 28px;
  width: auto;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity var(--dur-normal) var(--ease-out);
}
.company-logo-img:hover {
  opacity: 1;
}

/* Values */
.company-values-section {
  margin-bottom: var(--sp-16);
}

.company-values-section .company-section-heading {
  text-align: center;
  margin-bottom: var(--sp-10);
}

.company-values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

.company-value-card {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-xl);
  padding: var(--sp-6);
  text-align: center;
  transition: all var(--dur-normal) var(--ease-out);
  animation: fadeInUp 0.5s var(--ease-out) both;
}
.company-value-card:nth-child(1) { animation-delay: 0.05s; }
.company-value-card:nth-child(2) { animation-delay: 0.10s; }
.company-value-card:nth-child(3) { animation-delay: 0.15s; }
.company-value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.company-value-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-sage-soft);
  color: var(--accent-sage);
}
.company-value-icon svg { width: 26px; height: 26px; }

.company-value-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: var(--sp-2);
}

.company-value-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* CTA */
.company-cta {
  text-align: center;
  padding: var(--sp-16) 0;
  position: relative;
}

.company-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 350px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, transparent 65%);
  pointer-events: none;
}

.company-cta-heading {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 400;
  letter-spacing: -0.015em;
  margin-bottom: var(--sp-3);
  position: relative;
  z-index: 1;
}

.company-cta-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 440px;
  margin: 0 auto var(--sp-6);
  position: relative;
  z-index: 1;
}

.company-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: var(--sp-3) var(--sp-6);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-sage);
  border: 1.5px solid var(--accent-sage);
  border-radius: var(--radius-pill);
  transition: all var(--dur-normal) var(--ease-out);
  position: relative;
  z-index: 1;
}
.company-cta-btn:hover {
  background: var(--accent-sage);
  color: #FFFFFF;
  transform: translateY(-1px);
}

/* =================================================================
   Footer
   ================================================================= */

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(242, 248, 245, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--sp-8) var(--sp-6);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--sp-8);
  flex-wrap: wrap;
}

.footer-link {
  font-size: 13px;
  color: var(--text-muted);
  transition: color var(--dur-fast) ease;
}
.footer-link:hover { color: var(--text-primary); }

.footer-bottom {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--sp-5) var(--sp-6);
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}

/* =================================================================
   Guide Detail Page
   ================================================================= */

.skd-page {
  padding: var(--sp-4) 0 0;
}

/* Not found */
.skd-not-found {
  text-align: center;
  padding: var(--sp-20) 0;
}
.skd-not-found h1 {
  font-family: var(--font-display);
  font-size: 32px;
  margin-bottom: var(--sp-3);
}
.skd-not-found p {
  color: var(--text-secondary);
  margin-bottom: var(--sp-6);
}
.skd-back-link {
  display: inline-flex;
  padding: var(--sp-2) var(--sp-5);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-sage);
  border: 1.5px solid var(--accent-sage);
  border-radius: var(--radius-pill);
  transition: all var(--dur-normal) var(--ease-out);
}
.skd-back-link:hover {
  background: var(--accent-sage);
  color: #FFFFFF;
}

/* Hero */
.skd-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-8);
  padding-bottom: var(--sp-8);
  animation: fadeInUp 0.6s var(--ease-out) both;
}

.skd-hero-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-3);
}

.skd-hero-subtitle {
  font-size: clamp(14px, 1.4vw, 16px);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 560px;
}

.skd-hero-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  flex-shrink: 0;
}

.skd-install-btn {
  padding: var(--sp-3) var(--sp-8);
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: 0.01em;
  transition: all var(--dur-normal) var(--ease-out);
}
.skd-install-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  filter: brightness(1.05);
}

.skd-installs {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.skd-installs svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}
.skd-installs-text {
  display: flex;
  flex-direction: column;
}
.skd-installs-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}
.skd-installs-label {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.2;
}

/* Bento grid */
.skd-bento {
  display: grid;
  grid-template-columns: 2fr 3fr;
  grid-template-rows: auto auto auto;
  gap: var(--sp-4);
}

.skd-card {
  background: rgba(255, 255, 255, 0.50);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius-xl);
  padding: var(--sp-6);
  animation: fadeInUp 0.5s var(--ease-out) both;
}

.skd-card-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--sp-4);
}

/* About card */
.skd-about {
  grid-row: 1 / 3;
  animation-delay: 0.05s;
}

.skd-about-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--sp-4);
}

.skd-cap-heading {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--sp-4);
  margin-top: var(--sp-4);
}

.skd-cap-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.skd-cap-item {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
}

.skd-cap-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  flex-shrink: 0;
}
.skd-cap-icon svg {
  width: 16px;
  height: 16px;
}

.skd-cap-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.skd-cap-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.skd-cap-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Preview card */
.skd-preview {
  grid-column: 2;
  grid-row: 1;
  animation-delay: 0.10s;
}

.skd-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: var(--sp-3);
}

.skd-mock-card {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(220, 215, 205, 0.5);
  border-radius: var(--radius-lg);
  padding: var(--sp-3) var(--sp-4);
  overflow: hidden;
}

.skd-mock-card--small {
  /* no extra rules, second row left column */
}

.skd-mock-card--tall {
  grid-row: 1 / 3;
  grid-column: 2;
}

.skd-mock-header {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-2);
}

.skd-mock-brand {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 12px;
  color: var(--text-muted);
}

.skd-mock-subtitle-tag {
  font-size: 10px;
  color: var(--text-muted);
  margin-left: auto;
}

.skd-mock-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}

.skd-mock-metric {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: var(--sp-2);
}

.skd-mock-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1;
}

.skd-mock-unit {
  font-size: 13px;
  color: var(--text-muted);
}

.skd-mock-metric--sm .skd-mock-value {
  font-size: 22px;
}

.skd-mock-chart-line {
  width: 100%;
  height: 32px;
  display: block;
}

.skd-mock-bar-chart {
  width: 100%;
  height: auto;
  display: block;
  margin-top: var(--sp-2);
}

/* Checklist mock */
.skd-mock-checklist {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.skd-mock-check-row {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.skd-mock-checkbox {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1.5px solid var(--border-hover);
  flex-shrink: 0;
}

.skd-mock-checkbox--done {
  background: var(--accent-sage);
  border-color: var(--accent-sage);
}

.skd-mock-check-line {
  height: 8px;
  border-radius: 4px;
  background: var(--border);
}

/* Creator card */
.skd-creator {
  grid-column: 2;
  grid-row: 2;
  animation-delay: 0.15s;
}

.skd-creator-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: var(--sp-2);
}

.skd-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--accent-sage);
  margin-bottom: var(--sp-2);
}
.skd-verified-badge svg {
  width: 14px;
  height: 14px;
}

.skd-creator-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}

.skd-creator-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Reviews card */
.skd-reviews {
  grid-column: 1 / -1;
  grid-row: 3;
  animation-delay: 0.20s;
}

.skd-reviews-layout {
  display: flex;
  gap: var(--sp-6);
  align-items: flex-start;
}

.skd-rating-big {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  min-width: 80px;
}

.skd-rating-number {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1;
}

.skd-rating-slash {
  font-size: 16px;
  color: var(--text-muted);
  margin-top: 2px;
}

.skd-rating-stars {
  display: flex;
  gap: 2px;
  margin-top: var(--sp-2);
}
.skd-rating-stars svg {
  width: 14px;
  height: 14px;
}

.skd-review-card {
  flex: 1;
  min-width: 0;
}

.skd-review-quote {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
  line-height: 1.4;
}

.skd-review-detail {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* =================================================================
   Responsive
   ================================================================= */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: var(--sp-10) 0 var(--sp-6);
  }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .vault-diagram { order: -1; }
  .pillars-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-10);
  }
  .protocols-grid {
    grid-template-columns: 1fr;
  }
  /* Marketplace */
  .mkt-featured-grid { grid-template-columns: repeat(2, 1fr); }
  .mkt-categories-grid { grid-template-columns: repeat(2, 1fr); }
  /* Category */
  .cat-skills-grid { grid-template-columns: 1fr; }
  /* Guide Detail */
  .skd-bento { grid-template-columns: 1fr; }
  .skd-about { grid-row: auto; }
  .skd-preview { grid-column: 1; grid-row: auto; }
  .skd-creator { grid-column: 1; grid-row: auto; }
  .skd-reviews { grid-column: 1; grid-row: auto; }
  .skd-hero { flex-direction: column; gap: var(--sp-4); }
  /* Company */
  .company-values-grid { grid-template-columns: 1fr; }
  .company-logos-row { flex-wrap: wrap; justify-content: center; }
  .company-hero-title { font-size: 2.2rem; }
}

@media (max-width: 640px) {
  .site-header {
    padding: 0 var(--sp-4);
  }
  .site-nav {
    display: none;
  }
  .hero {
    padding: var(--sp-8) 0 var(--sp-6);
  }
  .hero-actions {
    flex-direction: column;
  }
  .vault-diagram-svg {
    max-width: 280px;
  }
  /* Marketplace */
  .mkt-featured-grid { grid-template-columns: 1fr; }
  .mkt-categories-grid { grid-template-columns: 1fr; }
  .mkt-search-input { max-width: 100%; }
  /* Guide Detail */
  .skd-preview-grid { grid-template-columns: 1fr; }
  .skd-mock-card--tall { grid-row: auto; grid-column: auto; }
  .skd-reviews-layout { flex-direction: column; }
  .skd-hero-actions { flex-direction: column; align-items: flex-start; }
  /* Company */
  .company-photo img { height: 240px; }
  .company-logo-img { height: 22px; }
  .company-hero-title { font-size: 1.8rem; }
  .company-cta-heading { font-size: 1.5rem; }
  .footer-inner {
    gap: var(--sp-4);
  }
}
