/* ============================================================
   OTTOLIZE — DESIGN SYSTEM
   Apple-inspired: restraint, translucency, spring-like motion,
   optical type scaling. See design notes inline.
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
ul { list-style: none; }

/* ---------- Design tokens ---------- */
:root {
  /* Brand */
  --brand: #18cb96;
  --brand-strong: #12a67a;
  --brand-soft: rgba(24, 203, 150, 0.12);
  --ink: #373643;

  /* Light theme */
  --bg: #f5f5f7;
  --bg-elevated: #ffffff;
  --bg-elevated-2: #ececee;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.14);
  --glass-bg: rgba(245, 245, 247, 0.72);
  --glass-border: rgba(255, 255, 255, 0.6);
  --shadow-color: rgba(20, 20, 25, 0.10);

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 7rem;

  /* Radius */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-full: 999px;

  /* Motion (critically damped by default, per Apple design notes) */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.35, 0.4, 1); /* gentle overshoot, momentum-only use */
  --dur-fast: 150ms;
  --dur-base: 300ms;
  --dur-slow: 500ms;

  /* Layout */
  --max-width: 1160px;
  --nav-height: 76px;

  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #050505;
  --bg-elevated: #373643;
  --bg-elevated-2: #423f4e;
  --text: #f5f5f7;
  --text-secondary: #a9a7b3;
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);
  --glass-bg: rgba(5, 5, 5, 0.72);
  --glass-border: rgba(255, 255, 255, 0.08);
  --shadow-color: rgba(0, 0, 0, 0.5);
  --brand-soft: rgba(24, 203, 150, 0.16);
  color-scheme: dark;
}

/* ---------- Base ---------- */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

/* ---------- Typography (optical sizing per size, per Apple type notes) ---------- */
h1, h2, h3, h4 { font-weight: 600; line-height: 1.1; }

.display {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 650;
}
h1, .h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}
h2, .h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
}
h3, .h3 {
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  line-height: 1.25;
  letter-spacing: -0.005em;
}
p, li { color: var(--text); }
.text-lg { font-size: 1.15rem; line-height: 1.5; color: var(--text-secondary); }
.text-secondary { color: var(--text-secondary); }
.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
  margin-bottom: var(--space-4);
}
.brand-text { color: var(--brand-strong); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.85rem 1.6rem;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
/* Feedback fires on press, not release */
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--brand);
  color: #06231a;
}
.btn-primary:hover { background: var(--brand-strong); }

.btn-secondary {
  background: var(--glass-bg);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  color: var(--text);
}
.btn-secondary:hover { border-color: var(--border-strong); }

.btn-block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
.nav.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img {
  height: 28px;
  width: auto;
  transition: opacity var(--dur-base) var(--ease-out);
}
.nav-logo { display: flex; align-items: center; width: 150px; justify-content: flex-start; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.nav-links > li { position: relative; }
.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  padding: var(--space-2) 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link .chevron {
  width: 10px; height: 10px;
  transition: transform var(--dur-fast) var(--ease-out);
}
.nav-item-services.open .chevron { transform: rotate(180deg); }

.nav-actions { display: flex; align-items: center; gap: var(--space-4); }

.theme-toggle {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.theme-toggle:active { transform: scale(0.92); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.nav-burger {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
}

.mobile-menu {
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  bottom: 0;
  background: var(--bg);
  padding: var(--space-6) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  overflow-y: auto;
  z-index: 99;
  transition: opacity var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out),
              visibility 0s linear var(--dur-base);
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out),
              visibility 0s linear 0s;
}
.mobile-menu a {
  font-size: 1.05rem;
  font-weight: 500;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--border);
}
.mobile-menu a[href^="services-"] {
  font-size: 0.95rem;
  color: var(--text-secondary);
  padding-left: var(--space-3);
  border-bottom: none;
}

/* Services dropdown (lives outside .nav in the DOM; position is set via
   inline left/top by main.js to track the "Services" trigger, since it's
   no longer a descendant it can't rely on CSS-relative positioning). */
.dropdown {
  position: fixed;
  width: 560px;
  max-width: 90vw;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: var(--r-lg);
  box-shadow: 0 20px 50px var(--shadow-color);
  padding: var(--space-5);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-8px);
  transition: opacity var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out),
              visibility 0s linear var(--dur-base);
}
.dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition: opacity var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out),
              visibility 0s linear 0s;
}
.dropdown-item {
  display: block;
  padding: var(--space-3);
  border-radius: var(--r-sm);
  transition: background var(--dur-fast) var(--ease-out);
}
.dropdown-item:hover { background: var(--brand-soft); }
.dropdown-item .title { font-weight: 600; font-size: 0.94rem; margin-bottom: 2px; }
.dropdown-item .desc { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.35; }

/* ---------- Hero ---------- */
.hero {
  padding: calc(var(--nav-height) + var(--space-9)) 0 var(--space-8);
  text-align: center;
}
.hero-headline { margin-bottom: var(--space-5); }
.hero-rotator {
  color: var(--brand-strong);
  display: inline-block;
  min-width: 1ch;
}
.hero-sub {
  max-width: 640px;
  margin: 0 auto var(--space-6);
}
.hero-cta { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section { padding: var(--space-8) 0; }
.section-head { max-width: 620px; margin: 0 auto var(--space-7); text-align: center; }

/* ---------- Cards ---------- */
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-6);
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px var(--shadow-color);
  border-color: var(--border-strong);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-5);
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
@media (max-width: 900px) {
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .pillars-grid { grid-template-columns: 1fr; }
}
.pillar-card .icon {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: var(--brand-soft);
  color: var(--brand-strong);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-4);
}
.pillar-card h3 { margin-bottom: var(--space-2); }
.contact-alt-card .icon {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: var(--brand-soft);
  color: var(--brand-strong);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-4);
}
.pillar-card p { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: var(--space-4); }
.pillar-card .explore-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--brand-strong);
  display: inline-flex; align-items: center; gap: 4px;
  transition: gap var(--dur-fast) var(--ease-out);
}
.pillar-card .explore-link:hover { gap: 8px; }

.service-card h3 { font-size: 1.05rem; margin-bottom: var(--space-2); }
.service-card p { color: var(--text-secondary); font-size: 0.93rem; }

/* Value props */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-6);
}
.value-item h3 { font-size: 1.05rem; margin-bottom: var(--space-2); }
.value-item p { color: var(--text-secondary); font-size: 0.93rem; }

/* ---------- Pillar page hero ---------- */
.pillar-hero { text-align: center; padding-top: calc(var(--nav-height) + var(--space-8)); }
.pillar-hero .tagline { font-size: 1.05rem; color: var(--text-secondary); max-width: 620px; margin: var(--space-4) auto 0; }
.pillar-hero .intro { max-width: 680px; margin: var(--space-5) auto 0; color: var(--text-secondary); }

/* ---------- Pain points ---------- */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
@media (max-width: 900px) {
  .pain-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .pain-grid { grid-template-columns: 1fr; }
}
.pain-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-5);
  font-size: 0.96rem;
  line-height: 1.5;
}

/* ---------- Flow diagram ---------- */
.flow-tabs {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}
.flow-tab {
  padding: 0.6rem 1.3rem;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all var(--dur-fast) var(--ease-out);
}
.flow-tab:hover { border-color: var(--border-strong); }
.flow-tab.active { background: var(--brand); color: #06231a; border-color: var(--brand); }

.flow-diagram { display: none; overflow-x: auto; padding: var(--space-2) var(--space-2) var(--space-5); }
.flow-diagram.active { display: flex; align-items: flex-start; gap: var(--space-1); }
@media (min-width: 860px) { .flow-diagram.active { justify-content: center; } }

.flow-step { flex: 0 0 148px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.flow-step .icon {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: var(--brand-soft);
  color: var(--brand-strong);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-3);
}
.flow-step h4 { font-size: 0.88rem; margin-bottom: 4px; }
.flow-step p { font-size: 0.78rem; color: var(--text-secondary); line-height: 1.35; }

.flow-connector {
  flex: 0 0 26px;
  display: flex; align-items: center; justify-content: center;
  padding-top: 22px;
  color: var(--border-strong);
}
.flow-connector svg { width: 16px; height: 16px; }

/* ---------- Service categories (grouped pillar service listing) ---------- */
.service-category { margin-bottom: var(--space-7); }
.service-category:last-child { margin-bottom: 0; }
.service-category h3 { margin-bottom: var(--space-4); }

/* ---------- Tools badges ---------- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-4);
}
.tool-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  text-align: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-5);
}
.tool-badge .icon {
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  background: var(--brand-soft);
  color: var(--brand-strong);
  display: flex; align-items: center; justify-content: center;
}
.tool-badge h4 { font-size: 0.9rem; }
.tool-badge p { font-size: 0.78rem; color: var(--text-secondary); }

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: var(--space-6);
}
.team-card { text-align: center; }
.team-photo {
  width: 250px; height: 250px;
  border-radius: var(--r-lg);
  overflow: hidden;
  margin: 0 auto var(--space-4);
  background: var(--bg-elevated-2);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-size: 1.05rem; margin-bottom: 2px; }
.team-card .role { color: var(--brand-strong); font-size: 0.88rem; font-weight: 600; margin-bottom: var(--space-3); }
.team-card .bio { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: var(--space-3); }
.team-linkedin {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.team-linkedin:hover { background: var(--brand-soft); }
.team-linkedin:active { transform: scale(0.92); }
.team-linkedin svg { width: 15px; height: 15px; }

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  background: var(--bg-elevated);
  border-radius: var(--r-lg);
  padding: var(--space-8) var(--space-5);
}
.cta-band .text-lg { max-width: 480px; margin: var(--space-3) auto var(--space-5); }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: var(--space-4); max-width: 560px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--bg);
}
.field textarea { min-height: 130px; resize: vertical; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-8);
  align-items: start;
}
.contact-alt { display: grid; gap: var(--space-4); }
.contact-alt-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-4);
}
.contact-alt-card h3 { font-size: 1rem; margin-bottom: var(--space-2); }
.contact-alt-card p { color: var(--text-secondary); font-size: 0.92rem; margin-bottom: var(--space-4); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: var(--space-7) 0 var(--space-6);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}
.footer-logo img { height: 34px; }
.footer-links { display: flex; gap: var(--space-7); flex-wrap: wrap; }
.footer-col h4 { font-size: 0.82rem; color: var(--text-secondary); margin-bottom: var(--space-3); font-weight: 600; }
.footer-col a { display: block; font-size: 0.9rem; margin-bottom: var(--space-2); }
.footer-col a:hover { color: var(--brand-strong); }
.footer-socials { display: flex; gap: var(--space-3); }
.footer-socials a {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
}
.footer-socials svg { width: 15px; height: 15px; }
.footer-bottom {
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3);
}
.footer-legal { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.footer-legal a:hover { color: var(--brand-strong); }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: var(--space-4); }
.mt-2 { margin-top: var(--space-6); }
.show-mobile { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .contact-grid { grid-template-columns: 1fr; }
  .hide-mobile { display: none; }
  .show-mobile { display: initial; }
}

/* ---------- Sub-grouped tools (e.g. Marketing platforms by category) ---------- */
.tool-group { margin-bottom: var(--space-6); }
.tool-group:last-child { margin-bottom: 0; }
.tool-group h4.tool-group-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-3);
}

/* ---------- Instagram-style mockup ---------- */
.ig-showcase {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--space-7);
  align-items: center;
}
@media (max-width: 860px) {
  .ig-showcase { grid-template-columns: 1fr; justify-items: center; }
}

.ig-phone-frame {
  width: 300px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: var(--space-4);
  box-shadow: 0 20px 50px var(--shadow-color);
}
.ig-top-bar { display: flex; justify-content: flex-end; gap: 3px; margin-bottom: var(--space-3); }
.ig-top-bar span { width: 3px; height: 3px; border-radius: 50%; background: var(--text-secondary); }

.ig-header { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); }
.ig-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--ink));
  flex-shrink: 0;
}
.ig-username { font-weight: 700; font-size: 0.92rem; margin-bottom: 2px; }
.ig-stats { display: flex; gap: var(--space-3); font-size: 0.72rem; color: var(--text-secondary); }
.ig-stats strong { color: var(--text); }

.ig-bio { font-size: 0.78rem; line-height: 1.4; margin-bottom: var(--space-4); }
.ig-bio strong { font-weight: 700; }
.ig-bio .ig-link { color: var(--brand-strong); font-weight: 600; }

.ig-highlights { display: flex; gap: var(--space-3); overflow-x: auto; margin-bottom: var(--space-4); padding-bottom: 2px; }
.ig-highlight { display: flex; flex-direction: column; align-items: center; gap: 4px; flex-shrink: 0; }
.ig-highlight .circle {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  background: var(--bg-elevated-2);
}
.ig-highlight span { font-size: 0.62rem; color: var(--text-secondary); }

.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; border-radius: var(--r-sm); overflow: hidden; }
.ig-tile {
  aspect-ratio: 1 / 1;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 4px;
}
.ig-tile .badge { color: #fff; }
.ig-tile .badge svg { width: 12px; height: 12px; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4)); }
.ig-tile .pin {
  position: absolute; top: 4px; right: 4px;
  color: #fff;
}
.ig-tile .pin svg { width: 11px; height: 11px; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4)); }
.ig-tile.g1 { background: linear-gradient(135deg, var(--brand), #0d8f6b); }
.ig-tile.g2 { background: linear-gradient(135deg, var(--ink), #55536a); }
.ig-tile.g3 { background: linear-gradient(135deg, #12a67a, var(--ink)); }
.ig-tile.g4 { background: linear-gradient(135deg, var(--brand-soft), var(--brand)); }
.ig-tile.g5 { background: linear-gradient(135deg, #55536a, var(--brand)); }
.ig-tile.g6 { background: linear-gradient(135deg, var(--ink), var(--brand-strong)); }

/* Callout lists, used by both the IG mockup and the ad poster */
.callout-list { display: grid; gap: var(--space-4); }
.callout-list li { display: flex; gap: var(--space-3); align-items: flex-start; list-style: none; }
.callout-num {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--brand);
  color: #06231a;
  font-weight: 700;
  font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center;
}
.callout-list p { font-size: 0.94rem; color: var(--text-secondary); margin: 0; padding-top: 3px; }

/* ---------- Annotated ad poster ---------- */
.ad-showcase {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--space-7);
  align-items: center;
}
@media (max-width: 860px) {
  .ad-showcase { grid-template-columns: 1fr; justify-items: center; }
}
.ad-creative {
  position: relative;
  width: 320px;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(160deg, var(--ink), var(--brand-strong));
  box-shadow: 0 20px 50px var(--shadow-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-5);
}
.ad-badge {
  align-self: flex-start;
  background: var(--brand);
  color: #06231a;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--r-full);
}
.ad-copy { color: #fff; }
.ad-headline { font-size: 1.4rem; font-weight: 700; line-height: 1.2; margin-bottom: var(--space-2); }
.ad-subtext { font-size: 0.82rem; opacity: 0.85; margin-bottom: var(--space-4); }
.ad-cta {
  align-self: flex-start;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.7rem 1.3rem;
  border-radius: var(--r-full);
}
.ad-num {
  position: absolute;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.ad-num.n1 { top: var(--space-5); left: var(--space-5); }
.ad-num.n2 { top: var(--space-5); right: var(--space-5); }
.ad-num.n3 { bottom: calc(var(--space-5) + 3.2rem); left: var(--space-5); }
.ad-num.n4 { bottom: var(--space-5); left: var(--space-5); }

/* ---------- Browser window website mockup ---------- */
.browser-showcase {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-7);
  align-items: center;
}
@media (max-width: 860px) {
  .browser-showcase { grid-template-columns: 1fr; }
}

.browser-frame {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px var(--shadow-color);
}
.browser-topbar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
}
.browser-dots { display: flex; gap: 6px; }
.browser-dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.browser-address {
  flex: 1;
  background: var(--bg-elevated-2);
  border-radius: var(--r-full);
  padding: 0.3rem 0.9rem;
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.browser-body { padding: var(--space-5); }
.mock-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-6); }
.mock-logo { width: 70px; height: 10px; border-radius: var(--r-full); background: var(--brand); }
.mock-links { display: flex; gap: var(--space-3); }
.mock-links span { width: 34px; height: 8px; border-radius: var(--r-full); background: var(--bg-elevated-2); }

.mock-hero { text-align: center; padding: var(--space-6) 0; }
.mock-bar { height: 12px; border-radius: var(--r-full); background: var(--bg-elevated-2); margin: 0 auto var(--space-3); }
.mock-bar.lg { width: 70%; height: 16px; }
.mock-bar.md { width: 50%; }
.mock-cta { width: 130px; height: 30px; border-radius: var(--r-full); background: var(--brand); margin: var(--space-4) auto 0; }

.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); margin-top: var(--space-6); }
.mock-card { background: var(--bg-elevated-2); border-radius: var(--r-md); padding: var(--space-3); }
.mock-card .mock-icon { width: 22px; height: 22px; border-radius: var(--r-sm); background: var(--brand-soft); margin-bottom: var(--space-2); }
.mock-card .mock-bar { margin: 0 0 6px; }

.mock-footer { height: 24px; border-radius: var(--r-sm); background: var(--bg-elevated-2); margin-top: var(--space-6); }

/* ---------- Financial dashboard mockup ---------- */
.dash-showcase {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-7);
  align-items: center;
}
@media (max-width: 860px) {
  .dash-showcase { grid-template-columns: 1fr; }
}

.dash-frame {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-5);
  box-shadow: 0 20px 50px var(--shadow-color);
}

.dash-stats { display: flex; gap: var(--space-3); margin-bottom: var(--space-5); flex-wrap: wrap; }
.dash-stat { flex: 1; min-width: 130px; background: var(--bg-elevated-2); border-radius: var(--r-md); padding: var(--space-4); }
.dash-stat .label { font-size: 0.7rem; color: var(--text-secondary); margin-bottom: 4px; }
.dash-stat .value { font-size: 1.35rem; font-weight: 700; }
.dash-stat .value.brand { color: var(--brand-strong); }

.dash-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 90px;
  padding: var(--space-3);
  background: var(--bg-elevated-2);
  border-radius: var(--r-md);
  margin-bottom: var(--space-5);
}
.dash-chart .bar { flex: 1; background: var(--brand); border-radius: 3px 3px 0 0; opacity: 0.85; }

.dash-list { display: grid; gap: var(--space-2); }
.dash-list .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-elevated-2);
  border-radius: var(--r-sm);
  padding: var(--space-3);
}
.dash-list .name-bar { width: 45%; height: 8px; border-radius: var(--r-full); background: var(--border-strong); }
.dash-list .status {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--r-full);
  background: var(--brand-soft);
  color: var(--brand-strong);
}

/* ---------- Live chat support mockup ---------- */
.chat-showcase {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: var(--space-7);
  align-items: center;
}
@media (max-width: 860px) {
  .chat-showcase { grid-template-columns: 1fr; justify-items: center; }
}

.chat-frame {
  width: 340px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: 0 20px 50px var(--shadow-color);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border);
}
.chat-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--ink));
  flex-shrink: 0;
}
.chat-name { font-weight: 600; font-size: 0.88rem; }
.chat-status { display: flex; align-items: center; gap: 5px; font-size: 0.72rem; color: var(--text-secondary); }
.chat-status .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }

.chat-body {
  padding: var(--space-4) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.chat-bubble {
  max-width: 82%;
  padding: 0.6rem 0.85rem;
  border-radius: var(--r-md);
  font-size: 0.8rem;
  line-height: 1.4;
}
.chat-bubble.in {
  align-self: flex-start;
  background: var(--bg-elevated-2);
  border-bottom-left-radius: 4px;
}
.chat-bubble.out {
  align-self: flex-end;
  background: var(--brand);
  color: #06231a;
  border-bottom-right-radius: 4px;
}

.chat-typing {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  background: var(--bg-elevated-2);
  padding: 0.7rem 0.85rem;
  border-radius: var(--r-md);
  border-bottom-left-radius: 4px;
}
.chat-typing span {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--text-secondary);
  opacity: 0.6;
}

.chat-handoff {
  align-self: center;
  font-size: 0.66rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.chat-csat {
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--border);
  text-align: center;
}
.chat-csat p { font-size: 0.78rem; color: var(--text-secondary); margin-bottom: 6px; }
.chat-stars { font-size: 1.1rem; color: var(--brand); letter-spacing: 3px; }

/* ---------- Growth funnel mockup ---------- */
.funnel-showcase {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-7);
  align-items: center;
}
@media (max-width: 860px) {
  .funnel-showcase { grid-template-columns: 1fr; }
}

.funnel-frame {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-6) var(--space-5);
  box-shadow: 0 20px 50px var(--shadow-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.funnel-stage {
  width: 100%;
  max-width: 420px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  background: var(--brand);
  color: #06231a;
  border-radius: var(--r-md);
  padding: 0.75rem 1.15rem;
}
.funnel-stage .funnel-label { font-size: 0.82rem; font-weight: 600; }
.funnel-stage .funnel-value { font-size: 0.82rem; font-weight: 700; }
.funnel-stage:nth-child(1) { opacity: 1; }
.funnel-stage:nth-child(2) { max-width: 360px; opacity: 0.85; }
.funnel-stage:nth-child(3) { max-width: 300px; opacity: 0.7; }
.funnel-stage:nth-child(4) { max-width: 240px; opacity: 0.58; }
.funnel-stage:nth-child(5) { max-width: 180px; opacity: 0.46; }

/* ---------- Legal page prose (Terms & Conditions, Privacy Policy) ---------- */
.legal-content { max-width: 720px; margin: 0 auto; }
.legal-content .updated { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: var(--space-6); }
.legal-content h2 { margin-top: var(--space-7); margin-bottom: var(--space-3); }
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content h3 { margin-top: var(--space-5); margin-bottom: var(--space-2); }
.legal-content p { color: var(--text-secondary); margin-bottom: var(--space-4); }
.legal-content ul, .legal-content ol { color: var(--text-secondary); margin: 0 0 var(--space-4); padding-left: 1.3rem; }
.legal-content ul { list-style: disc; }
.legal-content ol { list-style: decimal; }
.legal-content li { margin-bottom: var(--space-2); }
.legal-content a { color: var(--brand-strong); text-decoration: underline; text-underline-offset: 2px; }
.legal-content strong { font-weight: 600; color: var(--text); }

/* ---------- Cookie consent banner ---------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid var(--border);
  padding: var(--space-4) var(--space-5);
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--dur-base) var(--ease-out),
              opacity var(--dur-base) var(--ease-out),
              visibility 0s linear var(--dur-base);
}
.cookie-banner.visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition: transform var(--dur-base) var(--ease-out),
              opacity var(--dur-base) var(--ease-out),
              visibility 0s linear 0s;
}
.cookie-banner-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.cookie-banner p { font-size: 0.88rem; color: var(--text-secondary); margin: 0; max-width: 560px; }
.cookie-banner p a { color: var(--brand-strong); font-weight: 600; }
.cookie-banner-actions { display: flex; gap: var(--space-3); flex-shrink: 0; }
.cookie-banner-actions .btn { padding: 0.6rem 1.2rem; font-size: 0.88rem; }

/* ---------- Accessibility & reduced-motion (per Apple design notes) ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 200ms !important;
  }
  .card:hover { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav.scrolled, .dropdown, .btn-secondary {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--bg-elevated);
  }
}
@media (prefers-contrast: more) {
  :root { --border: rgba(0,0,0,0.35); }
  html[data-theme="dark"] { --border: rgba(255,255,255,0.4); }
  .card, .btn-secondary, .field input, .field textarea, .field select { border-width: 1.5px; }
}
