/* ==========================================================================
   emaze.com, design system v2 "alive"
   Cool, vivid base (violet → blue → teal) with the warm emaze fan gradient
   (amber → orange → red → maroon) reserved for CTAs and the brand mark.
   ========================================================================== */

:root {
  /* Brand (logo) */
  --amber: #faa000;
  --orange: #e76814;
  --red: #ca0e1c;
  --dark-red: #9d0d1a;
  --maroon: #7e0b32;

  /* Vivid cool set */
  --violet: #7b2ff7;
  --purple: #8a2be2;
  --indigo: #4353ff;
  --blue: #2f7cf6;
  --teal: #00c4cc;
  --magenta: #e93d82;

  /* Semantic */
  --ink: #170f2e;
  --body: #3e3a56;
  --muted: #716c8e;
  --bg: #ffffff;
  --bg-soft: #f6f6fd;
  --bg-deep: #191d63;
  --line: #e9e7f6;
  --card: #ffffff;
  --shadow: 0 2px 8px rgba(35, 20, 90, .06), 0 12px 32px rgba(35, 20, 90, .10);
  --shadow-lg: 0 4px 14px rgba(35, 20, 90, .12), 0 28px 64px rgba(35, 20, 90, .18);

  /* Gradients */
  --grad: linear-gradient(100deg, var(--amber) 0%, var(--orange) 38%, var(--red) 72%, var(--maroon) 100%);
  --grad-cool: linear-gradient(120deg, #4353ff 0%, #7b2ff7 100%);
  --grad-ai: linear-gradient(180deg, #2680EB 0%, #215FAA 100%); /* emaze.ai brand gradient */
  --grad-hero:
    radial-gradient(900px 480px at 10% -12%, rgba(123, 47, 247, .14), transparent 62%),
    radial-gradient(900px 520px at 90% 6%, rgba(0, 196, 204, .12), transparent 62%),
    radial-gradient(760px 460px at 52% 118%, rgba(67, 83, 255, .12), transparent 62%),
    linear-gradient(180deg, #f4f2ff 0%, #fafcff 68%, #ffffff 100%);
  --grad-soft: linear-gradient(135deg, #f2ecff 0%, #eaf2ff 50%, #e7fbfa 100%);

  --radius: 16px;
  --radius-lg: 26px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);

  --font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--indigo); text-decoration: none; }
a:hover { color: #4253ff; }
h1, h2, h3, h4, h5 { color: var(--ink); line-height: 1.18; margin: 0 0 .5em; font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); font-weight: 700; letter-spacing: -.025em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); letter-spacing: -.018em; }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); }
p  { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.grad-text-cool {
  background: var(--grad-cool);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: .8em;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Typography accents ---------- */
.ita { font-style: italic; font-weight: 600; }
h1 .ita, h2 .ita { color: var(--indigo); padding-right: .06em; }

.t-light { font-weight: 300; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 13px 26px; border-radius: 8px;
  font-family: var(--font); font-size: 1rem; font-weight: 600; line-height: 1.2;
  cursor: pointer; border: 2px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .2s;
  text-align: center;
}
.btn-primary { background: var(--indigo); color: #fff; box-shadow: 0 6px 18px rgba(67, 83, 255, .28); }
.btn-primary:hover { transform: translateY(-2px); background: #3040ec; box-shadow: 0 10px 26px rgba(67, 83, 255, .38); color: #fff; }
.btn-cool { background: var(--indigo); color: #fff; box-shadow: 0 6px 18px rgba(67, 83, 255, .28); }
.btn-cool:hover { transform: translateY(-2px); background: #3040ec; color: #fff; box-shadow: 0 10px 26px rgba(67, 83, 255, .38); }
.btn-outline { border-color: var(--indigo); color: var(--indigo); background: transparent; }
.btn-white { background: #fff; color: var(--indigo); }
.btn-white:hover { transform: translateY(-2px); color: #3040ec; box-shadow: var(--shadow-lg); }
.btn-outline:hover { background: var(--indigo); color: #fff; }
.btn-ghost { color: var(--ink); font-weight: 500; padding-inline: 18px; }
.btn-ghost:hover { color: #4253ff; }
.btn-light { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.btn-light:hover { transform: translateY(-2px); color: #4253ff; box-shadow: var(--shadow-lg); }
.btn-lg { padding: 16px 36px; font-size: 1.08rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-bar { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); flex-shrink: 0; }
.brand svg.mark { width: 34px; height: 34px; max-width: none; flex: 0 0 34px; }
.brand .wordmark { font-size: 1.55rem; font-weight: 500; letter-spacing: -.01em; color: var(--ink); line-height: 1; }

.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0 auto 0 8px; padding: 0; }
.nav-menu > li { position: relative; }
.nav-menu > li > a, .nav-menu > li > button {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 10px 14px; border: 0; background: none; border-radius: 10px;
  font-family: var(--font); font-size: .95rem; font-weight: 500; color: var(--ink); cursor: pointer;
}
.nav-menu > li > a:hover, .nav-menu > li > button:hover { background: var(--bg-soft); color: #4253ff; }
.nav-menu .caret { width: 10px; height: 10px; transition: transform .2s; }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-actions .btn { padding: 10px 22px; font-size: .92rem; white-space: nowrap; }

/* Dropdown */
.dropdown {
  list-style: none; margin: 0;
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 300px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); padding: 14px; opacity: 0; visibility: hidden; transition: .18s ease;
}
@media (min-width: 1121px) {
  .nav-menu li:hover > .dropdown,
  .nav-menu li:focus-within > .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
  .nav-menu li:hover > button .caret,
  .nav-menu li:focus-within > button .caret { transform: rotate(180deg); }
}
.dropdown.wide { min-width: 560px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; }
.dropdown a { display: flex; flex-direction: column; gap: 1px; padding: 10px 12px; border-radius: 10px; }
.dropdown a:hover { background: var(--bg-soft); }
.dropdown a strong { color: var(--ink); font-weight: 600; font-size: .93rem; display: flex; align-items: center; gap: 8px; }
.dropdown a:hover strong { color: #4253ff; }
.dropdown a span { color: var(--muted); font-size: .8rem; line-height: 1.45; }
.dropdown .soon { font-size: .62rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--violet); background: #f0e8ff; border-radius: 99px; padding: 2px 8px; }
.dropdown .ext { font-size: .68rem; font-weight: 700; text-transform: lowercase; letter-spacing: .02em; color: #fff; background: var(--grad-ai); border-radius: 99px; padding: 2px 8px; }

/* Mobile nav */
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .25s; }

@media (max-width: 1120px) {
  .nav-toggle { display: block; }
  .nav-menu, .nav-actions { display: none; }
  .site-header.open .nav-bar { flex-wrap: wrap; }
  .site-header.open .nav-menu {
    display: block; order: 3; width: 100%; margin: 0; padding: 8px 0 4px;
    max-height: calc(100vh - 140px); overflow: auto;
  }
  .site-header.open .nav-menu > li > a, .site-header.open .nav-menu > li > button { width: 100%; justify-content: space-between; padding: 13px 8px; font-size: 1.02rem; }
  .site-header.open .dropdown {
    position: static; transform: none !important; left: auto; opacity: 1; visibility: visible; min-width: 0;
    box-shadow: none; border: 0; border-left: 3px solid var(--line);
    border-radius: 0; margin: 0 0 6px 10px; padding: 0 0 0 6px; display: none;
  }
  .site-header.open .nav-menu li.open .dropdown { display: block; }
  .dropdown.wide { min-width: 0; grid-template-columns: 1fr; }
  .site-header.open .nav-menu li.open .dropdown.wide { display: grid; }
  .site-header.open .nav-actions { display: flex; order: 4; width: 100%; padding: 10px 0 16px; flex-wrap: wrap; }
  .site-header.open .nav-actions .btn { flex: 1 1 100%; width: 100%; }
  .site-header.open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .site-header.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

/* ---------- Hero (vivid) ---------- */
.hero { position: relative; overflow: hidden; background: var(--grad-hero); }
.hero .wrap { position: relative; z-index: 1; padding-block: clamp(56px, 8vw, 92px); }
.hero-center { text-align: center; max-width: 880px; margin-inline: auto; }
.hero h1 { color: var(--ink); }
.hero p.lead { font-size: clamp(1.05rem, 2vw, 1.28rem); color: var(--body); max-width: 660px; margin: 0 auto 1.6em; }
.hero .eyebrow { color: var(--violet); }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.hero-note { font-size: .88rem; color: var(--muted); margin-top: 14px; }
.hero-blob { display: none; }
.hero .btn-outline { border-color: var(--indigo); color: var(--indigo); background: #fff; }
.hero .btn-outline:hover { background: var(--indigo); color: #fff; }
.hero .pill { background: #fff; border-color: var(--line); }
.hero .pill:hover { color: #4253ff; transform: translateY(-2px); }
@media (max-width: 640px) {
  .hero-cta { flex-direction: column; align-items: stretch; width: 100%; max-width: 340px; margin-inline: auto; }
  .hero-cta .btn { width: 100%; }
}
.hero-media {
  width: fit-content; max-width: min(980px, 100%);
  margin: clamp(32px, 5vw, 56px) auto 0;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); background: #fff; line-height: 0;
}
.hero-media img { width: auto; max-width: 100%; max-height: 540px; display: block; }
.hero-media .img-ph { display: none; }

/* Interior pages share the same hero look */

/* Floating tiles (Canva-style) */
/* ---- Hero 3D arc: content types as miniature objects on a curved shelf ---- */
.arc3d {
  position: relative; display: flex; justify-content: center; align-items: flex-end;
  margin-top: clamp(34px, 5vw, 56px); padding-bottom: 16px; gap: clamp(6px, .9vw, 12px);
  perspective: 950px; perspective-origin: 50% 14%;
}
.hc-w {
  position: relative; flex: 0 0 auto; transform-style: preserve-3d;
  animation: hcBob 5.5s ease-in-out infinite; animation-delay: var(--fd, 0s);
}
.hc-w:hover { animation-play-state: paused; }
@keyframes hcBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.hc {
  position: relative; display: flex; width: clamp(90px, 8.4vw, 116px);
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 9px 8px 8px; flex-direction: column; gap: 7px; align-items: center;
  text-decoration: none; box-shadow: 0 16px 32px rgba(28, 21, 51, .13);
  transform: translateZ(var(--tz, 0)) rotateY(var(--ry, 0deg));
  transition: transform .35s cubic-bezier(.2, .8, .3, 1.15), box-shadow .35s;
  animation: hcIn .7s cubic-bezier(.2, .8, .3, 1.1) both;
  animation-delay: var(--d, 0s);
}
@keyframes hcIn {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateZ(var(--tz, 0)) rotateY(var(--ry, 0deg)); }
}
.hc:hover, .hc:focus-visible {
  transform: translateZ(48px) rotateY(calc(var(--ry, 0deg) * .2)) translateY(-6px);
  box-shadow: 0 26px 48px rgba(28, 21, 51, .22); z-index: 300 !important;
}
.hc-art { width: 100%; }
.hc-art svg { width: 100%; height: auto; display: block; }
.hc-l { font-size: clamp(.56rem, .78vw, .67rem); font-weight: 600; color: var(--ink); white-space: nowrap; max-width: 100%; overflow: hidden; }
.arc3d-floor {
  position: absolute; left: 50%; bottom: -22px; transform: translateX(-50%);
  width: min(880px, 94%); height: 46px; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(67, 83, 255, .16), transparent 70%);
  filter: blur(2px);
}
@media (max-width: 900px) {
  .arc3d { perspective: none; justify-content: flex-start; overflow-x: auto; gap: 10px;
    padding: 4px 16px 20px; margin-left: -16px; margin-right: -16px;
    scroll-snap-type: x proximity; scrollbar-width: none; }
  .arc3d::-webkit-scrollbar { display: none; }
  .hc-w { animation: none; }
  .hc { margin: 0; transform: none; scroll-snap-align: center; width: 104px; animation: none; }
  .hc:hover { transform: translateY(-4px); }
  .arc3d-floor { display: none; }
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(52px, 8vw, 96px); }
.section.warm { background: var(--bg-soft); }
.section.deep { background: linear-gradient(180deg, #171b5e 0%, #232468 100%); position: relative; overflow: hidden; }
.section.deep h2, .section.deep h3 { color: #fff; }
.section.deep p { color: #ccd3f5; }
.section-head { text-align: center; max-width: 780px; margin: 0 auto clamp(32px, 5vw, 56px); }
.section-head p { font-size: 1.08rem; color: var(--muted); }
.section.deep .section-head p { color: #c9c2ea; }

/* Cards grid */
.grid { display: grid; gap: 22px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; transition: transform .18s ease, box-shadow .18s ease;
  display: flex; flex-direction: column;
}
a.card { color: var(--body); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .icon {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: var(--grad-soft); margin-bottom: 18px;
}
.card .icon svg { width: 30px; height: 30px; }
.card h3 { margin-bottom: .4em; }
.card p { font-size: .95rem; color: var(--muted); flex: 1; }
.card .more { font-weight: 600; font-size: .92rem; color: var(--indigo); margin-top: 10px; }
.card:hover .more { color: #4253ff; }

/* ---------- Carousel (mosaic tool cards, 2 rows) ---------- */
.carousel { position: relative; }
.car-track {
  display: grid; grid-auto-flow: column;
  grid-template-rows: repeat(2, minmax(280px, 1fr));
  grid-auto-columns: 152px;
  gap: 20px; overflow-x: auto; scroll-snap-type: x proximity;
  padding: 8px 4px 22px; scrollbar-width: none;
}
.car-track::-webkit-scrollbar { display: none; }
.tool-card {
  scroll-snap-align: start;
  border-radius: 18px; padding: 26px 26px 0; color: #fff;
  display: flex; flex-direction: column; overflow: hidden;
  position: relative; transition: transform .18s ease, box-shadow .18s ease;
}
.tool-card.sm { padding-bottom: 24px; }
.tool-card.sm .wm {
  position: absolute; right: -26px; bottom: -30px; width: 150px; height: 150px; opacity: .16; pointer-events: none;
}
.tool-card.sm .wm svg { width: 100%; height: 100%; }
@media (max-width: 700px) {
  .car-track { display: flex; }
  .tool-card { flex: 0 0 86vw; min-height: 360px; }
  .tool-card.sm { min-height: 0; }
}
.tool-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.tool-card h3 { color: #fff; font-size: 1.25rem; max-width: 340px; }
.tool-card p.tc-sub { color: rgba(255,255,255,.88); font-size: .93rem; max-width: 330px; }
.tool-card .tc-icon { width: 46px; height: 46px; border-radius: 14px; background: rgba(255,255,255,.18); display: grid; place-items: center; margin-bottom: 16px; backdrop-filter: blur(4px); }
.tool-card .tc-icon svg { width: 26px; height: 26px; }
.tool-card .btn { align-self: flex-start; background: rgba(255,255,255,.94); color: var(--ink); padding: 9px 18px; font-size: .88rem; margin: 4px 0 20px; box-shadow: none; }
.tool-card .btn:hover { background: #fff; color: #4253ff; transform: translateY(-2px); }
.tool-card .tc-media { margin-top: auto; border-radius: 14px 14px 0 0; overflow: hidden; box-shadow: 0 -6px 30px rgba(0,0,0,.25); }
.tool-card .tc-media img, .tool-card .tc-media .img-ph { width: 100%; height: 150px; object-fit: cover; object-position: top; min-height: 0; border-radius: 0; }
.car-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; box-shadow: var(--shadow-lg); cursor: pointer;
  display: grid; place-items: center; color: var(--ink); transition: opacity .15s, color .15s;
}
.car-btn:hover { color: #4253ff; }
.car-btn.prev { left: -12px; }
.car-btn.next { right: -12px; }
.car-btn svg { width: 18px; height: 18px; }
.car-btn[disabled] { opacity: 0; pointer-events: none; }
@media (max-width: 640px) { .car-btn { display: none; } }

/* Gradient recipes for tool cards */
.tg-violet   { background: linear-gradient(135deg, #7b2ff7, #c22ee0); }
.tg-blue     { background: linear-gradient(135deg, #2853f0, #19a4e8); }
.tg-teal     { background: linear-gradient(135deg, #0798a8, #2fd4a0); }
.tg-magenta  { background: linear-gradient(135deg, #e93d82, #ff6a5c); }
.tg-indigo   { background: linear-gradient(135deg, #2d2a8f, #4353ff); }
.tg-sunset   { background: linear-gradient(135deg, #ff8a00, #e93d82); }
.tg-brand    { background: linear-gradient(135deg, #faa000, #ca0e1c); }
.tg-deep     { background: linear-gradient(135deg, #150f2e, #5b2a86); }
.tg-sky      { background: linear-gradient(135deg, #0d7de8, #00c4cc); }
.tg-grape    { background: linear-gradient(135deg, #5b2a86, #9d44c0); }

/* ---------- 3D premium section ---------- */
.badge-premium {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #1c1533; background: linear-gradient(100deg, #ffd76e, #faa000); border-radius: 99px; padding: 6px 14px;
  box-shadow: 0 4px 14px rgba(250, 160, 0, .4); margin-bottom: 1em;
}
.badge-premium svg { width: 16px; height: 16px; flex: 0 0 16px; }
/* Continuous mid-page zone: one background, sections flow into each other */
.zone { background: var(--bg-soft); }
.zone.z-top { padding-block: clamp(52px, 8vw, 96px) clamp(20px, 3vw, 36px); }
.zone.z-mid { padding-block: clamp(20px, 3vw, 36px); }
.zone.z-end { padding-block: clamp(20px, 3vw, 36px) clamp(52px, 8vw, 96px); }

/* White panel card (3D lives here) */
.panel {
  background: #fff; border: 1px solid var(--line); border-radius: 24px;
  padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow);
}

/* Deep indigo accent card (emaze.ai) — echoes the footer and video frame */
.ai-card {
  background: linear-gradient(120deg, #1e2464 0%, #2b2f8f 100%);
  border-radius: 24px; padding: clamp(28px, 4.5vw, 52px); color: #d9defa;
}
.ai-card h2 { color: #fff; }
.ai-card .eyebrow { color: #9fb2ff; }
.ai-card p { color: #d9defa; }
.threed-grid {
  display: grid; gap: clamp(24px, 4vw, 48px); align-items: center; position: relative; z-index: 1;
  grid-template-columns: 1.05fr 1fr;
  grid-template-areas: "copy media" "ctas media";
}
.threed-grid .t-copy { grid-area: copy; align-self: end; }
.threed-grid .t-media { grid-area: media; }
.threed-grid .t-ctas { grid-area: ctas; align-self: start; }
.t-ctas .hero-cta { justify-content: flex-start; margin-top: 0; }
.t-note { font-size: .88rem; color: var(--muted); margin: 12px 0 0; }
@media (max-width: 860px) {
  .threed-grid { grid-template-columns: 1fr; grid-template-areas: "copy" "media" "ctas"; }
  .t-ctas .hero-cta { justify-content: center; }
  .t-note { text-align: center; }
}
.threed-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.threed-gallery figure { margin: 0; border-radius: 18px; overflow: hidden; box-shadow: 0 18px 44px rgba(0,0,0,.45); transform: rotate(-1.6deg); transition: transform .25s ease; }
.threed-gallery figure:nth-child(2) { transform: rotate(1.8deg) translateY(16px); }
.threed-gallery figure:nth-child(3) { transform: rotate(1.2deg); }
.threed-gallery figure:nth-child(4) { transform: rotate(-1.8deg) translateY(16px); }
.threed-gallery figure:hover { transform: scale(1.04) rotate(0deg); z-index: 2; }
.threed-gallery img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }

/* 3D embed frame */
.embed-frame {
  position: relative; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line); background: #0e1030;
  box-shadow: 0 18px 44px rgba(35, 20, 90, .22);
}
.embed-frame img, .embed-frame iframe, .embed-frame .img-ph { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; border: 0; min-height: 0; border-radius: 0; }
.embed-frame .live-chip {
  pointer-events: none;
  position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 7px;
  background: rgba(12, 8, 33, .78); color: #fff; backdrop-filter: blur(6px);
  font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 7px 13px; border-radius: 8px; border: 1px solid rgba(255,255,255,.22);
}
.embed-frame .live-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2fd4a0; box-shadow: 0 0 10px #2fd4a0; }

/* Feature split rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 72px); align-items: center; }
.split + .split { margin-top: clamp(48px, 7vw, 88px); }
.split.rev > .split-media { order: 2; }
@media (max-width: 820px) {
  .split, .split.rev { grid-template-columns: 1fr; }
  .split.rev > .split-media { order: 0; }
}
.split-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--grad-soft); }
.split-media img { width: 100%; object-fit: cover; }
.split-copy .checks { list-style: none; padding: 0; margin: 0 0 1.4em; }
.split-copy .checks li { padding-left: 32px; position: relative; margin-bottom: .7em; }
.split-copy .checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--grad-cool); mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.2 14.5-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4-7 7z"/></svg>') center/contain no-repeat;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.2 14.5-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4-7 7z"/></svg>') center/contain no-repeat;
}

/* Accordion with images */
.acc-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .acc-grid { grid-template-columns: 1fr; } }
.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item > button {
  width: 100%; display: flex; align-items: center; gap: 14px; text-align: left;
  background: none; border: 0; cursor: pointer; padding: 20px 4px;
  font-family: var(--font); font-size: 1.12rem; font-weight: 600; color: var(--ink);
}
.acc-item > button .acc-ic { width: 40px; height: 40px; border-radius: 10px; background: var(--grad-soft); display: grid; place-items: center; flex: 0 0 40px; }
.acc-item > button .acc-ic svg { width: 22px; height: 22px; }
.acc-item > button::after { content: "+"; margin-left: auto; font-size: 1.5rem; font-weight: 300; color: var(--indigo); transition: transform .2s; }
.acc-item.open > button::after { transform: rotate(45deg); }
.acc-body { display: none; padding: 0 4px 20px 58px; color: var(--muted); font-size: .96rem; }
.acc-body a { font-weight: 600; }
.acc-item.open .acc-body { display: block; }
.acc-item.open > button { color: var(--indigo); }
.acc-media { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--grad-soft); }
.acc-media img { width: 100%; aspect-ratio: 16/11; object-fit: cover; display: none; }
.acc-media img.show { display: block; }

/* Feature explorer (product pages): title + kicker rows, media hides when the open item has no image */
.acc-grid.fx { align-items: start; }
.acc-grid.fx .acc-item > button { align-items: flex-start; }
.acc-t { display: flex; flex-direction: column; gap: 2px; text-align: left; }
.acc-kick { font-size: .74rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--indigo); }
.acc-grid.fx .acc-body { padding-left: 4px; }
.acc-grid.fx .acc-body .checks { margin: 10px 0 14px; }
.acc-grid.fx .acc-body .btn { margin-top: 4px; }
.acc-grid.media-empty { grid-template-columns: 1fr; max-width: 760px; margin-inline: auto; }
.acc-grid.media-empty .acc-media { display: none; }
@media (max-width: 860px) { .acc-grid.media-empty { max-width: none; margin-inline: 0; } }

.band-grid { display: grid; grid-template-columns: 1.5fr auto; gap: 28px; align-items: center; }
@media (max-width: 760px) { .band-grid { grid-template-columns: 1fr; } }

/* Light stats strip */
.stats-light { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
@media (max-width: 640px) { .stats-light { grid-template-columns: 1fr; } }
.stats-light .stat b { color: var(--indigo); }
.stats-light .stat > span { color: var(--muted); }

/* Stats band */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; } }
.stat b { display: block; font-size: clamp(2.6rem, 6vw, 4rem); font-weight: 700; line-height: 1.1; }
.stat b.grad-text { background: linear-gradient(100deg, #ffd76e, #ff8a5c, #ff5c8a); -webkit-background-clip: text; background-clip: text; }
.stat > span { font-size: 1.02rem; color: #c9c2ea; }
.stat b span { font-size: inherit; color: inherit; }

/* Tabs / pills */
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff;
  font-family: var(--font); font-size: .93rem; font-weight: 500; color: var(--ink); cursor: pointer;
  transition: color .15s, border-color .15s, transform .15s;
}
.pill svg { width: 17px; height: 17px; }
.pill:hover { border-color: #4253ff; color: #4253ff; }
.pill[aria-selected="true"], .pill.active { background: var(--grad-cool); border-color: transparent; color: #fff; }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; }
.faq details { border: 1px solid var(--line); border-radius: 14px; padding: 4px 22px; margin-bottom: 12px; background: #fff; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); padding: 14px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--violet); transition: transform .2s; flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p, .faq details > ul { padding-bottom: 16px; margin-top: 0; }

/* FAQ (two-column, exclusive accordion) */
.faq-grid { display: grid; grid-template-columns: 2fr 3fr; gap: clamp(28px, 6vw, 80px); align-items: start; }
@media (max-width: 820px) {
  .faq-grid { grid-template-columns: 1fr; gap: 20px; }
  .faq-side p { display: none; }
}
.faq-side { max-width: 320px; }
.faq-side h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.22; margin-bottom: .3em; }
.faq-side p { color: var(--muted); margin: 0; }
.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-item:first-child { padding-top: 0; }
.faq-item > button {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%;
  background: none; border: 0; padding: 0; cursor: pointer; text-align: left;
  font-family: var(--font); font-size: 1.08rem; font-weight: 600; color: var(--ink);
  transition: color .15s;
}
.faq-item > button:hover { color: var(--indigo); }
.faq-item .chev { width: 20px; height: 20px; flex: 0 0 20px; color: var(--muted); transition: transform .3s ease; }
.faq-item > button:hover .chev { color: var(--indigo); }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-panel { overflow: hidden; }
.js .faq-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.js .faq-item.open .faq-panel { grid-template-rows: 1fr; }
.faq-inner { overflow: hidden; min-height: 0; }
.faq-panel p { padding-top: 12px; margin: 0; color: var(--muted); font-size: .97rem; }

/* CTA band */
.cta-band { background: var(--grad-cool); border-radius: var(--radius-lg); padding: clamp(36px, 6vw, 64px); text-align: center; color: #fff; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #eef2ff; font-size: 1.1rem; max-width: 560px; margin-inline: auto; }

/* ---------- Footer ---------- */
.site-footer { background: #14173f; color: #c9c2ea; padding: clamp(48px, 7vw, 72px) 0 28px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 36px; margin-bottom: 44px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand .wordmark { color: #fff; }
.footer-brand p { color: #a79ecf; margin-top: 14px; max-width: 260px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 1em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: .6em; }
.site-footer a { color: #c9c2ea; }
.site-footer a:hover { color: #ffffff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 20px; }
.social-row { display: flex; gap: 14px; }
.social-row a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); }
.social-row a:hover { background: rgba(255,255,255,.2); }
.social-row svg { width: 17px; height: 17px; fill: #fff; }

/* ---------- Auth modal ---------- */
.auth-overlay {
  position: fixed; inset: 0; z-index: 400; background: rgba(16, 8, 44, .62);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.auth-overlay.open { display: flex; }
.auth-modal {
  background: #fff; border-radius: 22px; width: 100%; max-width: 420px;
  padding: 34px 34px 30px; position: relative; box-shadow: 0 40px 120px rgba(0,0,0,.45);
  max-height: calc(100vh - 40px); overflow: auto;
}
.auth-close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: var(--bg-soft); color: var(--muted); font-size: 1.2rem; cursor: pointer; line-height: 1;
}
.auth-close:hover { color: var(--ink); }
.auth-modal .brand { margin-bottom: 14px; }
.auth-modal h2 { font-size: 1.4rem; margin-bottom: 4px; }
.auth-modal .auth-sub { color: var(--muted); font-size: .92rem; margin-bottom: 20px; }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 22px; background: var(--bg-soft); border-radius: 12px; padding: 5px; }
.auth-tabs button {
  flex: 1; border: 0; background: none; padding: 9px; border-radius: 9px; cursor: pointer;
  font-family: var(--font); font-weight: 600; font-size: .92rem; color: var(--muted);
}
.auth-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.auth-form label { display: block; font-weight: 600; font-size: .85rem; color: var(--ink); margin: 0 0 6px; }
.auth-form input {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px;
  font-family: var(--font); font-size: .96rem; color: var(--ink); margin-bottom: 14px; background: #fff;
}
.auth-form input:focus { outline: none; border-color: var(--violet); }
.auth-form .btn { width: 100%; margin-top: 4px; }
.auth-err { color: var(--red); font-size: .84rem; margin: -8px 0 12px; display: none; }
.auth-ok { color: #0a8f6c; font-size: .88rem; margin: 10px 0 0; display: none; }
.auth-alt { text-align: center; font-size: .86rem; color: var(--muted); margin-top: 16px; }
.auth-alt a, .auth-alt button { color: var(--indigo); background: none; border: 0; font: inherit; font-weight: 600; cursor: pointer; padding: 0; }
.auth-alt a:hover, .auth-alt button:hover { color: #4253ff; }
.btn.loading { pointer-events: none; opacity: .8; }
.btn.loading::after {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
body.modal-open { overflow: hidden; }

/* ---------- Cookie consent ---------- */
.cookie-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 350;
  background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -10px 40px rgba(35, 20, 90, .14); padding: 16px var(--gutter);
}
.cookie-inner { max-width: var(--wrap); margin-inline: auto; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.cookie-inner p { margin: 0; font-size: .9rem; color: var(--body); flex: 1 1 380px; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 10px 18px; font-size: .88rem; }
@media (max-width: 640px) {
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1 1 100%; width: 100%; }
}
.cookie-cats { display: grid; gap: 12px; margin: 0 0 20px; }
.cookie-cat { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; color: var(--muted); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; }
.cookie-cat strong { color: var(--ink); }
.cookie-cat input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--indigo); flex: 0 0 16px; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.linklike:hover { color: #ffffff; }

/* Footer SOC 2 badge */
.soc2 { margin-bottom: 22px; }
.soc2 a { display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; color: #c9c2ea; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; padding: 10px 16px; }
.soc2 a:hover { color: #ffffff; border-color: rgba(255,255,255,.4); }
.soc2 svg { width: 20px; height: 20px; flex: 0 0 20px; }

/* ---------- Account page (full-page auth) ---------- */
.auth-page { height: 100vh; height: 100dvh; background: #fff; overflow: hidden; }
.auth-grid { display: grid; grid-template-columns: minmax(400px, 44%) 1fr; height: 100%; }
.auth-panel {
  padding: clamp(24px, 4vh, 48px) clamp(20px, 5vw, 72px);
  max-width: 560px; width: 100%; margin-inline: auto;
  display: flex; flex-direction: column; justify-content: center;
  overflow-y: auto; height: 100%;
}
.auth-visual { height: 100%; }
.auth-panel .brand { margin-bottom: 26px; }
.auth-h1 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: .25em; }
.auth-panel .auth-sub { margin-bottom: 22px; }
.btn-google {
  width: 100%; background: #fff; border: 1.5px solid var(--line); color: var(--ink);
  font-weight: 600; gap: 10px;
}
.btn-google:hover { border-color: var(--indigo); color: var(--indigo); transform: translateY(-1px); }
.btn-google svg { width: 19px; height: 19px; flex: 0 0 19px; }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--muted); font-size: .82rem; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.code-input { letter-spacing: .5em; font-size: 1.3rem; text-align: center; font-weight: 600; }
.auth-visual {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: clamp(28px, 4vw, 64px);
  background:
    radial-gradient(700px 460px at 80% 10%, rgba(123, 47, 247, .35), transparent 62%),
    radial-gradient(700px 500px at 15% 90%, rgba(0, 196, 204, .28), transparent 62%),
    linear-gradient(150deg, #2b2f8f 0%, #4353ff 55%, #3f8fe0 100%);
}
.auth-collage { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 620px; width: 100%; }
.auth-collage figure { margin: 0; border-radius: 16px; overflow: hidden; box-shadow: 0 22px 54px rgba(10, 8, 50, .45); transform: rotate(-2deg); transition: transform .25s ease; }
.auth-collage figure:nth-child(2) { transform: rotate(2.2deg) translateY(18px); }
.auth-collage figure:nth-child(3) { transform: rotate(1.6deg); }
.auth-collage figure:nth-child(4) { transform: rotate(-2.2deg) translateY(18px); }
.auth-collage figure:hover { transform: scale(1.04) rotate(0deg); }
.auth-collage img, .auth-collage .img-ph { width: 100%; aspect-ratio: 16/10; object-fit: cover; min-height: 0; }
.auth-tag { color: #eef2ff; font-size: 1.02rem; max-width: 460px; text-align: center; margin: 34px 0 0; }
@media (max-width: 900px) {
  .auth-grid { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-panel { justify-content: flex-start; padding-top: 32px; }
}

/* ---------- Legal / prose pages ---------- */
.prose { max-width: 820px; margin-inline: auto; }
.prose h1 { margin-bottom: .3em; }
.prose .updated { color: var(--muted); font-size: .9rem; margin-bottom: 2.4em; }
.prose h2 { font-size: 1.45rem; margin-top: 2em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.6em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .92rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-soft); color: var(--ink); }

/* Breadcrumbs */
.crumbs { font-size: .85rem; color: var(--muted); padding-top: 18px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--line); }

/* Blog */
.post-meta { color: var(--muted); font-size: .9rem; margin-bottom: 2em; }
.post-hero { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 2.5em; box-shadow: var(--shadow); }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.price-grid.cols3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1020px) { .price-grid, .price-grid.cols3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .price-grid, .price-grid.cols3 { grid-template-columns: 1fr; } }
.price-card { position: relative; border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 30px 26px; background: #fff; display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--violet); box-shadow: var(--shadow-lg); }
.price-card .plan-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad-cool); color: #fff; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 5px 14px; border-radius: 99px; white-space: nowrap; }
.price-card h3 { font-size: 1.25rem; }
.price-card .amount { font-size: 2.4rem; font-weight: 700; color: var(--ink); }
.price-card .amount small { font-size: .95rem; font-weight: 400; color: var(--muted); }
.price-card ul { list-style: none; padding: 0; margin: 18px 0 24px; flex: 1; }
.price-card ul li { padding: 7px 0 7px 28px; position: relative; font-size: .92rem; border-bottom: 1px dashed var(--line); }
.price-card ul li:last-child { border-bottom: 0; }
.price-card ul li::before { content: "✓"; position: absolute; left: 2px; color: var(--teal); font-weight: 700; }

/* Plan comparison tables */
.cmp-group h3 { margin: 1.8em 0 .6em; }
.table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line); border-radius: 14px; background: #fff;
}
table.cmp-t { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .92rem; }
table.cmp-t.cols-3 { min-width: 560px; }
table.cmp-t.cols-4 { min-width: 680px; }
.cmp-t th, .cmp-t td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: center; }
.cmp-t tbody tr:last-child th, .cmp-t tbody tr:last-child td { border-bottom: 0; }
.cmp-t thead th { background: var(--bg-soft); color: var(--ink); font-weight: 600; font-size: .88rem; }
.cmp-t th[scope="row"], .cmp-t thead th.feat {
  text-align: left; font-weight: 500; color: var(--ink);
  position: sticky; left: 0; background: #fff; min-width: 210px; max-width: 300px;
  box-shadow: 1px 0 0 var(--line);
}
.cmp-t thead th.feat { background: var(--bg-soft); font-weight: 600; }
.cmp-t tbody tr:nth-child(even) td, .cmp-t tbody tr:nth-child(even) th[scope="row"] { background: #fbfbff; }
.cmp-t td.yes { color: var(--teal); }
.cmp-t td.yes .ck { width: 18px; height: 18px; display: inline-block; vertical-align: middle; }
.cmp-t td.no { color: #c3c0d8; font-size: 1.05rem; }
.cmp-t td.val { color: var(--body); font-weight: 500; font-size: .88rem; white-space: nowrap; }
.cmp-note { color: var(--muted); font-size: .84rem; margin-top: 14px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 72px); }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: 6px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px;
  font-family: var(--font); font-size: .96rem; color: var(--ink); background: #fff; transition: border-color .15s;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-color: var(--violet); }

/* Image placeholder (when an archived asset is unavailable) */
.img-ph {
  width: 100%; min-height: 260px; border-radius: var(--radius);
  background:
    radial-gradient(circle at 20% 25%, rgba(123, 47, 247, .30), transparent 55%),
    radial-gradient(circle at 80% 75%, rgba(0, 196, 204, .28), transparent 55%),
    var(--grad-soft);
}

/* Steps */
.steps-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
@media (max-width: 900px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps-grid { grid-template-columns: 1fr; } }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; position: relative; }
.step h3 { font-size: 1.08rem; margin: 14px 0 6px; }
.step p { font-size: .92rem; color: var(--muted); margin: 0; }
.step-num {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--grad-cool); color: #fff; font-weight: 700; font-size: 1.15rem;
}

/* Template tab panels */
.tpanels { margin-top: 28px; }
.tpanel .split-media img, .tpanel .split-media .img-ph { aspect-ratio: 16 / 10; object-fit: cover; }

/* Gallery grid */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .gallery-grid { grid-template-columns: 1fr; } }
.gallery-grid figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery-grid img, .gallery-grid .img-ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; min-height: 0; }

/* Utility */
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .hc-w { animation: none; } }

/* UserWay accessibility widget: pin the trigger to the bottom-right corner */
.uwy, .uwy .userway_buttons_wrapper {
  top: auto !important;
  left: auto !important;
  bottom: 18px !important;
  right: 18px !important;
  transform: none !important;
}

/* ---- Spanish pages: slim localized header/footer ---- */
.es-head { position: sticky; top: 0; z-index: 500; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.es-head .head-in { display: flex; align-items: center; gap: 22px; padding: 12px 0; }
.es-nav { display: flex; gap: 20px; margin-left: 8px; }
.es-nav a { font-weight: 600; font-size: .95rem; color: var(--body); }
.es-nav a:hover { color: #4253ff; }
.es-head .head-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
@media (max-width: 720px) {
  .es-nav { display: none; }
  .es-head .head-cta .btn-ghost { display: none; }
}
.cic { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--bg-soft); margin-bottom: 12px; }
.cic svg { width: 24px; height: 24px; }
.es-foot { padding: 34px 0; }
.es-foot-row { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.es-foot-row nav { display: flex; gap: 18px; flex-wrap: wrap; }
.es-foot-row a, .es-foot-row .linklike { color: rgba(255,255,255,.75); font-size: .92rem; }
.es-foot-row a:hover, .es-foot-row .linklike:hover { color: #ffffff; }
.es-foot-note { color: rgba(255,255,255,.45); font-size: .82rem; margin: 18px 0 0; }
