/* Base + Design Tokens */
:root {
  /* Color scale: Primary */
  --color-primary-100: #090a2a;
  --color-primary-200: #121454;
  --color-primary-300: #1b1e7e;
  --color-primary-400: #2e33d1;
  --color-primary-500: #585cda;
  --color-primary-600: #8285e3;
  --color-primary-700: #a7a9f1;
  --color-primary-800: #d5d6f6;
  --color-primary-900: #f5eef6;

  /* Color scale: Neutral */
  --color-neutral-100: #191A1A;
  --color-neutral-200: #252727;
  --color-neutral-300: #3e4242;
  --color-neutral-400: #575c5c;
  --color-neutral-500: #595f5f;
  --color-neutral-600: #747b7b;
  --color-neutral-700: #abb0b0;
  --color-neutral-800: #d0d2d2;
  --color-neutral-900: #e5e6e6;

  /* Fonts */
  --font-sono: "Sono", sans-serif;
  --font-manrope: "Manrope", sans-serif;
  --font-voces: "Voces", sans-serif;

  /* Radii */
  --radius-3xl: 24px;

  /* Semantic tokens mapped to the scale */
  --bg: var(--color-neutral-100);
  --surface: var(--color-neutral-200);
  --muted: var(--color-neutral-700);
  --text: var(--color-neutral-900);
  --primary: var(--color-primary-500);
  --primary-700: var(--color-primary-400);
  --ring: var(--color-primary-600);

  --shadow: 0 10px 30px rgba(0,0,0,.45);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  font-family: var(--font-manrope), system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: 
    radial-gradient(1200px 800px at 70% -10%, #1b1a22 0%, var(--bg) 60%),
    var(--bg);
  line-height: 1.6;
}

/* Smooth anchor scrolling and offset for sticky header */
html { scroll-behavior: smooth; }

/* Prevent background scroll when mobile menus/modals are open */
body.no-scroll { overflow: hidden; }

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

.section { padding: clamp(40px, 6vw, 96px) 0; }
.section.app-shot { padding-top: 0; margin-top: -160px; }
.section { scroll-margin-top: 96px; }
.anchor-placeholder { padding: 0; margin: 0; height: 1px; }
.text-center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; clip-path: inset(50%); }

/* Typography */
.h1 { font-size: clamp(24px, 4.2vw, 48px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 16px; font-weight: 800; }
.h2 { font-size: clamp(22px, 3.6vw, 36px); line-height: 1.2; margin: 0 0 8px; font-weight: 700; }
.lead { font-size: clamp(16px, 2.2vw, 20px); color: var(--muted); max-width: 60ch; }
.u { text-decoration: underline; text-decoration-color: var(--primary); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.link { color: #9aa0ff; text-decoration: underline; text-decoration-color: #9aa0ff66; text-underline-offset: 3px; }
.link:hover { color: #b5b9ff; }

/* Header */
.site-header { 
  position: sticky; 
  top: 0; 
  z-index: 9999;
  isolation: isolate; /* ensure header paints in its own stacking context above content */
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
}

.site-header.is-scrolled {
  /* Subtle frosted glass effect for contrast on scroll */
  background: linear-gradient(180deg, rgba(17, 17, 23, 0.76) 0%, rgba(17, 17, 23, 0.64) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.nav { 
  display: flex; 
  align-items: center; 
  padding: 20px 0; 
  gap: 12px; 
  position: relative;
  transition: padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.is-scrolled .nav {
  padding: 12px 0;
}

.brand { 
  display: flex; 
  align-items: center; 
  gap: 10px; 
  color: var(--text); 
  text-decoration: none; 
  font-weight: 800; 
  letter-spacing: 0.2px;
  z-index: 10;
}

.brand__logo { 
  width: 40px; 
  height: 40px; 
  display: block;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.is-scrolled .brand__logo {
  width: 32px;
  height: 32px;
}

.brand__logo.small { width: 30px; height: 30px; }

.brand__name {
  font-weight: 800;
  text-transform: lowercase;
  font-family: var(--font-voces);
  font-size: 28px;
  transition: font-size 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease, opacity 0.3s ease;
}

.site-header.is-scrolled .brand__name {
  font-size: 22px;
  color: var(--muted);
  opacity: 0.95;
}

/* Announcement Bar */
.announcement {
  position: relative;
  z-index: 5;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.announcement__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 0;
  flex-wrap: wrap;
}
.announcement__dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: var(--primary);
  box-shadow: 0 0 0 0 rgba(88,92,218,0.35);
  animation: ann-pulse 2.2s ease-out infinite;
}
.announcement__text {
  color: rgba(255,255,255,0.9);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.2px;
}
.announcement__link {
  color: #e6e6ff;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  transition: border-color .2s ease, background .2s ease, transform .1s ease;
}
.announcement__link:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--primary);
  transform: translateY(-1px);
}
@keyframes ann-pulse {
  0% { box-shadow: 0 0 0 0 rgba(88,92,218,0.35); }
  70% { box-shadow: 0 0 0 8px rgba(88,92,218,0); }
  100% { box-shadow: 0 0 0 0 rgba(88,92,218,0); }
}

.nav__links { 
  display: flex; 
  gap: clamp(16px, 4vw, 40px); 
  align-items: center; 
  position: absolute; 
  left: 50%; 
  transform: translateX(-50%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.is-scrolled .nav__links {
  opacity: 1;
  transform: translateX(-50%);
  pointer-events: auto;
}

.nav__pill {
  display: flex;
  background: rgba(42, 40, 53, 0.8);
  border: 1px solid rgba(58, 56, 71, 0.6);
  border-radius: 30px;
  padding: 8px;
  gap: 8px;
  justify-content: space-around;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3), 0 2px 0 rgba(255,255,255,0.04) inset;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.is-scrolled .nav__pill {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
  padding: 0;
  gap: 18px;
}

/* Desktop: transform pill links into clean text links on scroll */
@media (min-width: 821px) {
  .site-header.is-scrolled .nav__pill a {
    color: #d6d4e8;
    padding: 6px 2px;
    background: transparent !important;
    transform: none;
    box-shadow: none;
  }
  .site-header.is-scrolled .nav__pill a:hover {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
    background: transparent !important;
    transform: none;
    box-shadow: none;
  }
  .site-header.is-scrolled .nav__pill a:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: 4px;
  }
}

.nav__buy-btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%) translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 10px 16px;
  font-size: 14px;
  z-index: 10;
}

.site-header.is-scrolled .nav__buy-btn {
  opacity: 1;
  transform: translateY(-50%) translateY(0);
  pointer-events: auto;
}

.nav__pill a { 
  color: #b7b4c8; 
  text-decoration: none; 
  font-weight: 600; 
  padding: 12px 24px;
  border-radius: 18px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  font-size: 14px;
  letter-spacing: 0.2px;
}

.nav__pill a:hover { 
  color: white;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-700) 100%);
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(88, 92, 218, 0.4);
}
.nav__toggle { display: none; background: transparent; color: var(--text); border: 0; padding: 8px; border-radius: 8px; }
.nav__toggle:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

@media (max-width: 820px) {
  .nav__toggle { display: inline-flex; }
  .nav__links { 
    position: absolute; 
    inset: 58px 0 auto 0; 
    background: rgba(20,19,26,.95); 
    border-bottom: 1px solid #252332; 
    padding: 14px 24px; 
    display: none;
    transform: none;
    left: auto;
  }
  .nav__links.is-open { display: flex; flex-direction: column; opacity: 1; transform: none; }
  .nav__pill {
    flex-direction: column;
    border-radius: 16px;
    padding: 8px;
    gap: 2px;
    background: rgba(42, 40, 53, 0.95);
  }
  .nav__pill a {
    padding: 12px 20px;
    border-radius: 12px;
    text-align: center;
  }
  
  .nav__buy-btn {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    margin-left: auto;
  }
  
  .site-header.is-scrolled .nav__links {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  
  .site-header.is-scrolled .nav__links.is-open {
    inset: 46px 0 auto 0;
  }
}

/* Hero */
.hero {
  padding-top: 0;
  padding-bottom: clamp(40px, 6vw, 80px);
  margin-top: -60px;
}
.announcement + main .hero { margin-top: 0; padding-top: clamp(16px, 4vh, 28px); }
.grid-hero { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: clamp(16px, 2vw, 32px); }
.hero__text { padding: 8px 0; }
.cta { display: flex; gap: 14px; margin-top: 22px; flex-wrap: wrap; }

.btn { --b: 1px; display: inline-flex; align-items: center; justify-content: center; padding: 12px 18px; border-radius: 12px; font-weight: 700; text-decoration: none; transition: transform .08s ease, box-shadow .2s ease, background .2s ease; box-shadow: 0 2px 0 rgba(255,255,255,0.04) inset, var(--shadow); border: var(--b) solid transparent; }
.btn:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.btn--primary { background: linear-gradient(180deg, var(--primary) 0%, var(--primary-700) 100%); color: white; }
.btn--primary:hover { transform: translateY(-1px); }
.btn--ghost { background: #2a2835; border-color: #3a3847; color: #d6d4e4; }
.btn--ghost:hover { background: #333042; }

.hero__image-wrap { position: relative; }
.hero__image { width: 100%; height: auto; max-height: clamp(600px, 90vh, 1100px); object-fit: contain; display: block; }

/* Layered images for animated swap (chaos -> calm) */
.hero__image--base,
.hero__image--alt { filter: drop-shadow(0 40px 80px rgba(0,0,0,.55)); transition: opacity .5s ease, transform .5s ease, filter .5s ease; }

/* The calm image sits on top and is revealed on hover */
.hero__image--alt {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(1.02);
  filter: blur(2px) drop-shadow(0 40px 80px rgba(0,0,0,.55));
}

/* When organizing (hover/focus on CTAs), fade chaos out, calm in */
.hero__image-wrap.is-organizing .hero__image--alt {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0) drop-shadow(0 40px 80px rgba(0,0,0,.55));
}
.hero__image-wrap.is-organizing .hero__image--base {
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  filter: blur(2px) drop-shadow(0 40px 80px rgba(0,0,0,.55));
}

@media (prefers-reduced-motion: reduce) {
  .hero__image--base, .hero__image--alt { transition: opacity .25s linear; transform: none !important; filter: drop-shadow(0 40px 80px rgba(0,0,0,.55)); }
}

@media (max-width: 980px) {
  .grid-hero { grid-template-columns: 1fr; }
  .hero__image-wrap { order: -1; }
  .lead { max-width: 52ch; }
}

/* Mobile & tablet: fix hero overlap and sizing, smooth app preview spacing */
@media (max-width: 980px) {
  .hero { margin-top: 0; padding-top: clamp(16px, 4vh, 28px); }
  .hero__image { max-height: clamp(280px, 50vh, 560px); }
  .section.app-shot { margin-top: 0; padding-top: clamp(8px, 2vh, 16px); }
}

@media (max-width: 640px) {
  .grid-hero { gap: 18px; }
  .hero__text { text-align: center; }
  .cta { justify-content: center; }
  .hero__image-wrap { margin-inline: auto; max-width: 520px; }
}

/* App preview */
.preview { border-radius: var(--radius-3xl); background: #0f0e14; border: 1px solid #242231; box-shadow: var(--shadow); overflow: hidden; margin: 0; }
.preview img { display: block; width: 100%; height: auto; }

/* Features (enhanced cards) */
.features__title { margin: 8px 0 24px; }
.features-grid { display: grid; gap: 28px; align-items: stretch; }
@media (min-width: 860px){ .features-grid{ grid-template-columns: repeat(3, 1fr); } }

.feature-card{
  position: relative;
  background:
    linear-gradient(180deg, rgba(130,133,227,.06), rgba(88,92,218,.04) 18%, transparent 52%),
    linear-gradient(180deg, var(--surface), #0E0F14);
  border: 1px solid #242231;
  border-radius: var(--radius-3xl);
  box-shadow: var(--shadow);
  padding: 28px;
  min-height: 300px;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 16px;
}
.feature-card::after{
  content: "";
  position: absolute; inset: auto -40% -40% -40%;
  height: 120px;
  background: radial-gradient(60% 120% at 50% 0%, rgba(88,92,218,.12), transparent 70%);
  filter: blur(18px);
  z-index: -1;
}
.feature-card h3{ margin: 6px 0 4px; font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; letter-spacing: .005em; }
.feature-card p{ margin: 0; font-size: 16px; line-height: 1.7; color: var(--muted); }
.feature-card:hover{ border-color:#2A2E3F; transform: translateY(-1px); transition: transform .2s ease, border-color .2s ease; }

.badge{
  display:inline-grid; place-items:center; width:52px; height:52px; border-radius:14px;
  background: linear-gradient(180deg, var(--color-primary-600), var(--primary));
  color:#fff; font-weight:800; font-size:22px;
  box-shadow: 0 8px 18px rgba(88,92,218,.35), inset 0 0 0 1px rgba(255,255,255,.12);
}

/* Search demo inside Card 1 */
.feature-search{
  margin-top:8px; background:#161823; border:1px solid #222635; border-radius:16px; padding:14px 16px 14px 18px;
  display:flex; align-items:center; gap:12px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.02); max-width:92%;
}
.feature-search input{ flex:1; background:transparent; border:0; outline:0; color:#D8DAE7; font-size:16px; }
.feature-search .icon{ width:22px; height:22px; opacity:.9; }
.feature-search:focus-within{
  border-color: rgba(130,133,227,.7);
  box-shadow: 0 0 0 4px rgba(130,133,227,.10), inset 0 0 0 1px rgba(130,133,227,.3);
}

.kbd{ background:#1B1E2A; border:1px solid #2A2E3F; color:#C9CAE0; border-radius:8px; padding:2px 6px; font-size:12px; font-weight:700; }

/* Illustration sizing */
.stack{ position:absolute; right:16px; bottom:16px; opacity:.92; pointer-events:none; width:clamp(120px, 42%, 180px); height:auto; transform: translateZ(0); }

/* Auto-organize visual */
.feature-visual{ display:flex; align-items:center; justify-content:center; }
.organize-container{ position: relative; width: clamp(240px, 80%, 300px); height: 180px; display:flex; flex-direction:column; align-items:center; justify-content:space-between; margin-top:4px; }
.download-arrow{ animation: bounce 2s infinite; transform-origin:center; }
.falling-files{ position: relative; display:flex; gap:10px; align-items:center; justify-content:center; height:40px; }
.file{ width:24px; height:30px; border-radius:4px; position:relative; animation: fall 3s infinite; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.file::before{ content:""; position:absolute; top:0; right:0; width:6px; height:6px; background: rgba(255,255,255,.18); clip-path: polygon(0 0, 100% 0, 0 100%); }
.file-pdf{ background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); animation-delay:0s; }
.file-image{ background: linear-gradient(135deg, #10b981 0%, #059669 100%); animation-delay:1s; }
.file-doc{ background: linear-gradient(135deg, var(--color-primary-600) 0%, var(--primary) 100%); animation-delay:2s; }

.folders-container{ display:flex; gap:12px; align-items:center; justify-content:center; }
.folder{ display:flex; flex-direction:column; align-items:center; gap:4px; transition: transform .3s ease; }
.folder span{ font-size:.75rem; color:#9ca3af; font-weight:600; letter-spacing:.01em; }
.folder-icon{ width:32px; height:28px; border-radius:4px 4px 2px 2px; position:relative; background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%); box-shadow: 0 2px 8px rgba(0,0,0,.25); transition: box-shadow .3s ease, transform .3s ease; }
.folder-icon::before{ content:""; position:absolute; top:-4px; left:2px; width:12px; height:4px; border-radius:2px 2px 0 0; background: inherit; }
.folder-docs .folder-icon{ background: linear-gradient(135deg, var(--color-primary-600) 0%, var(--primary) 100%); }
.folder-images .folder-icon{ background: linear-gradient(135deg, #10b981 0%, #059669 100%); }

.feature-card:hover .folder{ transform: translateY(-2px); }
.feature-card:hover .folder-icon{ box-shadow: 0 4px 12px rgba(0,0,0,.35); }
.feature-card:hover .download-arrow{ animation-duration: 1.2s; }

@keyframes bounce{
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) }
  40% { transform: translateY(-8px) }
  60% { transform: translateY(-4px) }
}
@keyframes fall{
  0%{ opacity:0; transform: translateY(-20px) scale(.8) }
  50%{ opacity:1; transform: translateY(10px) scale(1) }
  100%{ opacity:0; transform: translateY(40px) scale(.92) }
}

@media (max-width: 859px){
  .feature-card{ min-height: 280px }
  .stack{ width:clamp(120px, 48%, 200px) }
  .organize-container{ width: clamp(220px, 90%, 320px) }
}

/* FAQ */
.faq-section { position: relative; }
.faq-intro { margin-bottom: 18px; }
.faq-kicker { display:inline-flex; align-items:center; gap:8px; font-size:12px; color: rgba(255,255,255,0.7); border:1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.04); padding:4px 10px; border-radius:999px; }
.faq-kicker .dot { width:6px; height:6px; border-radius:999px; background: var(--primary); display:inline-block; }
.faq-sub { margin: 6px 0 0; color: rgba(255,255,255,0.7); }

.faq-list { display: grid; gap: 12px; margin-top: 16px; }
.faq-item { 
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 0;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.faq-item:hover { border-color: rgba(255,255,255,0.16); box-shadow: 0 8px 24px rgba(0,0,0,0.25); }

.faq-item summary { 
  list-style: none; 
  cursor: pointer; 
  font-weight: 700; 
  letter-spacing: -0.01em;
  padding: 16px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  width: 18px; height: 18px; flex: 0 0 18px;
  border-radius: 6px;
  background: conic-gradient(from 180deg, rgba(255,255,255,0.2), rgba(255,255,255,0.04));
  mask: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 8l5 5 5-5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 8l5 5 5-5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
  transform: rotate(0deg);
  transition: transform .25s ease, background .25s ease;
  opacity: 0.9;
}
.faq-item[open] summary::after { transform: rotate(180deg); background: conic-gradient(from 180deg, var(--primary), rgba(255,255,255,0.08)); }
.faq-item summary:focus-visible { outline: 2px solid var(--ring); outline-offset: 4px; border-radius: 10px; }

.faq-item .faq-body { padding: 0 18px 16px; color: rgba(255,255,255,0.8); }
.faq-item .faq-body p { margin: 0; color: rgba(255,255,255,0.78); }
.faq-item .faq-body p + p { margin-top: 10px; }
.faq-item .faq-body ul { margin: 8px 0 0 18px; padding: 0; color: rgba(255,255,255,0.78); }
.faq-item .faq-body li { margin: 4px 0; }

/* Local-first section */
.local-first {
  position: relative;
  text-align: center;
  padding: clamp(32px, 4vw, 48px) 0;
  overflow: hidden;
  isolation: isolate;
}

/* Subtle background accent */
.local-first::before {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(800px 400px at 50% 50%, rgba(88,92,218,0.04) 0%, transparent 60%),
    linear-gradient(180deg, rgba(130,133,227,.02) 0%, rgba(88,92,218,.01) 50%, transparent);
  pointer-events: none;
  z-index: -1;
}

.local-first__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, 2vw, 16px);
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

/* Add a subtle badge/pill for "Local-First" */
.local-first__content::before {
  content: "🔒 Privacy First";
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(130,133,227,0.9);
  border: 1px solid rgba(130,133,227,0.2);
  background: rgba(130,133,227,0.08);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 8px;
}

.local-first__title {
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 800;
  margin: 0;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.local-first__desc {
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.6;
  max-width: 52ch;
  font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .local-first {
    padding: clamp(24px, 3vw, 32px) 0;
  }
  
  .local-first__content {
    gap: 10px;
  }
}

.faq-note {
  margin-top: 24px;
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 20px; border-radius: 14px;
  border: 1px solid rgba(130, 133, 227, 0.25);
  background: linear-gradient(180deg, rgba(130, 133, 227, 0.08), rgba(88, 92, 218, 0.06));
  color: rgba(255,255,255,0.9);
  box-shadow: 0 4px 12px rgba(88, 92, 218, 0.12);
}
.faq-note__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 8px;
  background: linear-gradient(180deg, var(--color-primary-600), var(--primary));
  color: #fff; font-weight: 700; font-size: 14px; line-height: 1;
  box-shadow: 0 2px 8px rgba(88, 92, 218, 0.3);
  flex-shrink: 0;
}
.faq-note__content {
  flex: 1; line-height: 1.6;
}
@media (min-width: 640px) { .faq-list { gap: 14px; } }

/* Footer */
.site-footer { 
  position: relative;
  isolation: isolate;
  border-top: 1px solid #1d1b24;
  padding: 26px 0 44px;
  color: #c7c4d6;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.00));
}
/* Accent line + soft top glow */
.site-footer::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(130,133,227,0.55) 25%, rgba(88,92,218,0.65) 50%, rgba(130,133,227,0.55) 75%, transparent);
  opacity: 0.9; pointer-events: none;
}
.site-footer::after {
  content: "";
  position: absolute; left: 50%; transform: translateX(-50%);
  top: -48px; width: min(640px, 86%); height: 160px;
  background: radial-gradient(50% 60% at 50% 0%, rgba(88,92,218,0.28), rgba(130,133,227,0.10) 40%, rgba(88,92,218,0.0) 70%);
  filter: blur(20px); pointer-events: none; z-index: -1;
}

.footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer__left { display: flex; align-items: center; gap: 10px; }
.footer__right { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.footer__nav { display: flex; gap: 12px; flex-wrap: wrap; }
.footer__link { 
  color: #a8a5b9; 
  text-decoration: none; 
  font-weight: 500;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  position: relative;
}
.footer__link:hover { 
  color: var(--text); 
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}
.footer__link:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
/* Animated underline accent on hover */
.footer__link::after {
  content: "";
  position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px;
  background: linear-gradient(90deg, var(--color-primary-600), var(--primary));
  transform: scaleX(0); transform-origin: left;
  transition: transform .22s ease;
  opacity: .9;
}
.footer__link:hover::after { transform: scaleX(1); }

/* Subtle hover affordance on logo in footer */
.site-footer .brand__logo.small { filter: drop-shadow(0 4px 10px rgba(0,0,0,.35)); transition: transform .15s ease, filter .2s ease; }
.site-footer .brand__logo.small:hover { transform: translateY(-1px) scale(1.02); filter: drop-shadow(0 10px 20px rgba(0,0,0,.45)); }

/* Footer responsive tweaks */
@media (max-width: 640px) {
  .footer { justify-content: center; text-align: center; gap: 14px; }
  .footer__right { justify-content: center; }
}

/* Pricing */
.pricing { position: relative; }
.pricing__header { margin-bottom: 18px; }
.pricing__kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; color: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  padding: 4px 10px; border-radius: 999px;
}

.pricing__kicker--primary {
  border-color: var(--primary);
  background: rgba(88, 92, 218, 0.1);
  color: var(--primary);
  padding: 8px 10px;
  margin-bottom: 10px;
}
.pricing__sub { margin: 6px 0 0; color: rgba(255,255,255,0.7); }

.pricing__card {
  background:
    linear-gradient(180deg, rgba(130,133,227,.06), rgba(88,92,218,.04) 18%, transparent 52%),
    linear-gradient(180deg, var(--surface), #0E0F14);
  border: 1px solid #242231;
  border-radius: var(--radius-3xl);
  box-shadow: var(--shadow);
  padding: clamp(20px, 4vw, 32px);
  max-width: 620px;
  margin: 0 auto;
  display: grid; gap: 10px; justify-items: center;
  text-align: center;
}
.pricing__title { margin: 0; font-size: clamp(18px, 2vw, 22px); font-weight: 800; letter-spacing: .005em; }
.pricing__desc { margin: 4px 0 0; color: var(--muted); font-size: 15px; }

.pricing__price { display: inline-flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.pricing__amount { font-size: clamp(36px, 6vw, 56px); font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.pricing__period { color: var(--muted); font-weight: 700; }

.pricing__cta { margin-top: 8px; min-width: 180px; }
.pricing__note { margin: 8px 0 0; color: rgba(255,255,255,0.7); font-size: 13px; }

/* Tutorials (Bento grid) */
.tutorials-section { position: relative; --accent: var(--primary); }
.tutorials-section .t-top-glow {
  pointer-events: none;
  position: absolute;
  left: 0; right: 0;
  top: -3rem; height: 6rem;
  background: radial-gradient(60% 60% at 50% 0%, rgba(88,92,218,0.18), transparent 60%);
  mask-image: linear-gradient(to bottom, black, transparent);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent);
}

.tutorials-section .t-header { margin-bottom: clamp(20px, 3vw, 36px); }
.tutorials-section .t-badge {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  padding: 4px 12px; font-size: 12px;
  color: rgba(255,255,255,0.75);
  backdrop-filter: blur(8px);
}
.tutorials-section .t-badge-dot { width: 4px; height: 4px; border-radius: 9999px; background: var(--accent); }
.tutorials-section .t-main-title { margin: 10px 0 0; font-size: clamp(24px, 3.2vw, 40px); font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.tutorials-section .t-main-desc { margin-top: 8px; max-width: 52ch; color: rgba(255,255,255,0.7); font-size: clamp(14px, 1.6vw, 16px); }

.tutorials-section .t-bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  /* Responsive breathing room between tiles */
  gap: clamp(14px, 3vw, 24px);
  /* Responsive base row height so spans scale nicely on small screens */
  grid-auto-rows: clamp(9rem, 26vw, 12rem);
}
@media (min-width: 480px) {
  .tutorials-section .t-bento-grid {
    gap: clamp(16px, 3vw, 24px);
    grid-auto-rows: clamp(10rem, 22vw, 12rem);
  }
}
@media (min-width: 640px) {
  .tutorials-section .t-bento-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: clamp(16px, 2.4vw, 24px);
    grid-auto-rows: clamp(10rem, 14vw, 12rem);
  }
}
@media (min-width: 1024px) {
  .tutorials-section .t-bento-grid {
    gap: clamp(20px, 2vw, 28px);
    /* Stabilize row height on larger screens for consistent rhythm */
    grid-auto-rows: 12rem;
  }
}

.tutorials-section .t-bento-card {
  position: relative; border-radius: 16px;
  background: rgba(23, 23, 23, 0.8);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}
.tutorials-section .t-bento-card:hover { border-color: rgba(255,255,255,0.2); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.3); }
.tutorials-section .t-bento-card:focus-within { border-color: rgba(255, 255, 255, 0.2); }

.tutorials-section .t-card-glow { pointer-events:none; position:absolute; inset:-1px; border-radius:16px; opacity:0; filter: blur(4px); transition: opacity .3s ease; background: radial-gradient(120% 80% at 10% 0%, rgba(88,92,218,0.18), transparent 60%); }
.tutorials-section .t-bento-card:hover .t-card-glow { opacity:1; }

.tutorials-section .t-card-content { position:relative; height:100%; padding: clamp(12px, 1.6vw, 20px); display:flex; flex-direction:column; gap: clamp(8px, 1.4vw, 14px); }
.tutorials-section .t-card-header { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.tutorials-section .t-card-title { color:#fff; font-weight:700; letter-spacing:-0.02em; font-size: clamp(16px, 1.8vw, 20px); }
.tutorials-section .t-card-desc { margin-top:4px; color: rgba(255,255,255,0.68); font-size: 14px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tutorials-section .t-card-icon { margin-top:2px; display:inline-flex; height:28px; width:28px; flex-shrink:0; align-items:center; justify-content:center; border-radius:12px; border:1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.05); font-size: 12px; font-weight:600; color: rgba(255,255,255,0.75); }

.tutorials-section .t-media-container { position:relative; margin-top: clamp(10px, 1.6vw, 14px); overflow:hidden; border-radius:12px; border:1px solid rgba(255,255,255,0.1); background: rgba(10,10,10,0.4); aspect-ratio: 5/3; }
.tutorials-section .t-media-container img, 
.tutorials-section .t-media-container video { width:100%; height:100%; object-fit:cover; display:block; }
.tutorials-section .t-media-overlay { pointer-events:none; position:absolute; inset:0; background: linear-gradient(to top, rgba(0,0,0,0.35), rgba(0,0,0,0.0) 35%); }

.tutorials-section .t-card-footer { margin-top: clamp(8px, 1.4vw, 12px); display:flex; align-items:center; gap:8px; font-size:12px; color: rgba(255,255,255,0.7); }
.tutorials-section .t-footer-badge { display:inline-flex; align-items:center; gap:6px; border-radius:6px; padding:4px 8px; border:1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.05); box-shadow: 0 0 0 1px rgba(255,255,255,0.05) inset; }
.tutorials-section .t-footer-dot { width:6px; height:6px; border-radius:9999px; background: var(--accent); }
.tutorials-section .t-footer-text { text-overflow:ellipsis; overflow:hidden; white-space:nowrap; }
.tutorials-section .t-footer-divider { display: none; }

@media (min-width: 640px){ .tutorials-section .t-footer-divider { display:inline; } }

/* Harmonize internal spacing by letting the content define gaps */
.tutorials-section .t-card-content > .t-media-container,
.tutorials-section .t-card-content > .t-card-footer { margin-top: 0; }

/* Adjust description length for different card sizes */
@media (max-width: 479px){
  .tutorials-section .t-card-desc { -webkit-line-clamp: 2; }
}
@media (min-width: 640px){
  .tutorials-section .t-row-span-2 .t-card-desc { -webkit-line-clamp: 4; }
}

/* Make taller tiles showcase a slightly wider preview */
@media (min-width: 640px){
  .tutorials-section .t-row-span-2 .t-media-container { aspect-ratio: 16 / 9; }
}

/* Image rendering modifiers for specific cases */
.tutorials-section .t-media-item--contain { object-fit: contain !important; image-rendering: auto; }
.tutorials-section .t-media-container--no-overlay .t-media-overlay { display: none; }

/* Grid spans */
@media (min-width: 640px){
  .tutorials-section .t-col-span-2 { grid-column: span 2; }
  .tutorials-section .t-col-span-3 { grid-column: span 3; }
  .tutorials-section .t-col-span-4 { grid-column: span 4; }
  .tutorials-section .t-row-span-2 { grid-row: span 2; }
}

/*
  Wide screens: spread content
  - Increase max container width progressively on large viewports
  - Loosen gaps so layouts breathe on desktops/ultrawides
*/
@media (min-width: 1280px) {
  .container { width: min(1280px, 90%); }
  .grid-hero { gap: clamp(28px, 4vw, 72px); }
  .features-grid { gap: 32px; }
}

@media (min-width: 1600px) {
  .container { width: min(1440px, 88%); }
}

@media (min-width: 1920px) {
  .container { width: min(1600px, 84%); }
}

/* --- Toasts (global notifications) --- */
.toast-container {
  position: fixed;
  right: clamp(12px, 4vw, 24px);
  bottom: clamp(12px, 4vh, 24px);
  display: grid;
  gap: 10px;
  z-index: 10000; /* above header */
}

.toast {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  max-width: min(420px, 86vw);
  padding: 12px 12px 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  transform: translateY(8px);
  opacity: 0;
  transition: transform .2s ease, opacity .2s ease, filter .2s ease;
}
.toast.is-in { opacity: 1; transform: translateY(0); }
.toast.is-out { opacity: 0; filter: blur(1px); }

.toast__icon { width: 18px; height: 18px; display: inline-grid; place-items: center; font-weight: 800; }
.toast__text { font-size: 14px; line-height: 1.5; color: rgba(255,255,255,0.92); }
.toast__close { background: transparent; color: rgba(255,255,255,0.9); border: 0; font-size: 18px; line-height: 1; padding: 4px 6px; border-radius: 8px; cursor: pointer; }
.toast__close:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

.toast.toast--success { border-color: rgba(16, 185, 129, 0.35); background: linear-gradient(180deg, rgba(16,185,129,0.18), rgba(16,185,129,0.10)); }
.toast.toast--error { border-color: rgba(239, 68, 68, 0.35); background: linear-gradient(180deg, rgba(239,68,68,0.18), rgba(239,68,68,0.10)); }
.toast.toast--info { border-color: rgba(130,133,227,0.35); background: linear-gradient(180deg, rgba(130,133,227,0.18), rgba(130,133,227,0.10)); }

@media (prefers-reduced-motion: reduce) {
  .toast { transition: none; transform: none !important; }
}

/* --- Tutorials: Carousel --- */
.tutorials-section .t-carousel { position: relative; }
.tutorials-section .t-carousel-viewport {
  overflow-x: auto; overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding: 4px 2px;
}
.tutorials-section .t-carousel-viewport::-webkit-scrollbar { height: 0px; }
.tutorials-section .t-carousel-track {
  display: flex; align-items: stretch;
  gap: clamp(14px, 3vw, 24px);
  list-style: none; margin: 0; padding: 0;
}
.tutorials-section .t-slide { flex: 0 0 auto; width: clamp(260px, 85%, 560px); scroll-snap-align: start; }
@media (min-width: 640px){ .tutorials-section .t-slide { width: clamp(320px, 48%, 560px); } }
@media (min-width: 1024px){ .tutorials-section .t-slide { width: clamp(360px, 33%, 560px); } }

.tutorials-section .t-slide-card {
  position: relative; border-radius: 16px;
  background: rgba(23, 23, 23, 0.8);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
  height: 100%; display: flex; flex-direction: column;
}
.tutorials-section .t-slide-card:hover { border-color: rgba(255,255,255,0.2); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.3); transform: translateY(-1px); }

/* Make it clear the whole card can be clicked when a video is available */
.tutorials-section .t-slide-card--clickable { cursor: pointer; }
.tutorials-section .t-slide-card--clickable:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 4px;
}

.tutorials-section .t-slide-media { position: relative; margin: clamp(10px, 1.6vw, 14px); border-radius: 12px; overflow: hidden; border:1px solid rgba(255,255,255,0.1); background: rgba(10,10,10,0.4); aspect-ratio: 16/9; }
.tutorials-section .t-video-thumb {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.tutorials-section .t-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .18s ease, filter .18s ease;
}
.tutorials-section .t-video-thumb .t-media-overlay { position:absolute; inset:0; background: linear-gradient(to top, rgba(0,0,0,0.35), rgba(0,0,0,0.0) 35%); pointer-events: none; }
.tutorials-section .t-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 9999px;
  background: var(--accent); color: #0d0d0d; font-weight: 700;
  box-shadow: 0 10px 20px rgba(0,0,0,0.35), 0 0 0 2px rgba(0,0,0,0.25) inset;
  transition: transform .2s ease, box-shadow .2s ease;
}

/* Hover affordances on cards with video */
.tutorials-section .t-slide-card:hover .t-video-thumb img { transform: scale(1.004); }
.tutorials-section .t-slide-card:hover .t-play { transform: translate(-50%, -50%) scale(1.02); }
.tutorials-section .t-slide-card:hover .t-media-overlay { background: linear-gradient(to top, rgba(0,0,0,0.38), rgba(0,0,0,0.0) 35%); }

/* Ensure pointer cursor on entire clickable card area */
.tutorials-section .t-slide-card--clickable,
.tutorials-section .t-slide-card--clickable .t-video-thumb,
.tutorials-section .t-slide-card--clickable .t-slide-meta { cursor: pointer; }

/* Keyboard focus for the inline button if used directly */
.tutorials-section .t-video-thumb:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: 8px; }

@media (prefers-reduced-motion: reduce) {
  .tutorials-section .t-video-thumb img { transition: none; }
  .tutorials-section .t-play { transition: none; }
}

.tutorials-section .t-slide-meta { padding: 0 clamp(12px, 1.6vw, 16px) clamp(12px, 1.6vw, 16px); display: grid; gap: 6px; }
.tutorials-section .t-slide-title { color:#fff; font-weight:700; letter-spacing:-0.02em; font-size: clamp(16px, 1.8vw, 20px); margin: 0; }
.tutorials-section .t-slide-desc { margin: 0; color: rgba(255,255,255,0.68); font-size: 14px; line-height: 1.6; }

.tutorials-section .t-c-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: #fff; font-size: 20px; font-weight: 600;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05) inset;
  cursor: pointer; transition: transform .2s ease, opacity .2s ease, background .2s ease;
  z-index: 3; /* ensure arrows stay above slides while scrolling */
}
.tutorials-section .t-c-arrow:hover { background: rgba(255,255,255,0.12); transform: translateY(-50%) scale(1.05); }
.tutorials-section .t-c-arrow:disabled { opacity: 0.5; cursor: default; }
.tutorials-section .t-c-prev { left: -30px; }
.tutorials-section .t-c-next { right: -40px; }

@media (max-width: 639px){
  .tutorials-section .t-c-arrow { width: 36px; height: 36px; font-size: 18px; }
  .tutorials-section .t-c-prev { left: -4px; }
  .tutorials-section .t-c-next { right: -4px; }
}

/* --- Video Modal --- */
.video-modal {
  position: fixed; inset: 0; z-index: 10000;
  display: none; place-items: center;
}
.video-modal.is-open { display: grid; }
.video-backdrop {
  position: absolute; inset: 0;
  background: rgba(13,13,19,0.64);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.video-content {
  position: relative;
  /* Larger, but still responsive to viewport */
  width: min(1280px, 96vw, calc(90vh * (16 / 9)));
  border-radius: 16px;
  overflow: hidden;
  background: rgba(23,23,23,0.92);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow);
  transform: scale(0.98);
  opacity: 0;
  transition: transform .2s ease, opacity .2s ease;
}
.video-modal.is-open .video-content { transform: scale(1); opacity: 1; }
.video-aspect { position: relative; aspect-ratio: 16 / 9; background: #0f0e14; max-height: 90vh; }
.video-aspect iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-close {
  position: absolute; top: 8px; right: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: #fff; font-size: 20px; font-weight: 700;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05) inset;
  cursor: pointer; transition: transform .2s ease, opacity .2s ease, background .2s ease;
}
.video-close:hover { background: rgba(255,255,255,0.12); transform: scale(1.05); }
.video-close:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

/* --- Contact Modal --- */
.contact-modal {
  position: fixed; inset: 0; z-index: 10000;
  display: none; place-items: center;
}
.contact-modal.is-open { display: grid; }
.contact-backdrop {
  position: absolute; inset: 0;
  background: rgba(13,13,19,0.64);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.contact-content {
  position: relative;
  width: min(640px, 94vw);
  border-radius: 16px;
  background: rgba(23,23,23,0.92);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow);
  padding: clamp(16px, 2.4vw, 24px);
  transform: translateY(6px);
  opacity: 0;
  transition: transform .2s ease, opacity .2s ease;
}
.contact-modal.is-open .contact-content { transform: translateY(0); opacity: 1; }
.contact-close {
  position: absolute; top: 8px; right: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: #fff; font-size: 20px; font-weight: 700;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05) inset;
  cursor: pointer; transition: transform .2s ease, opacity .2s ease, background .2s ease;
}
.contact-close:hover { background: rgba(255,255,255,0.12); transform: scale(1.05); }
.contact-close:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

.contact-header { margin: 8px 0 12px; }
.contact-header .tiny { font-size: 12px; color: rgba(255,255,255,0.7); margin: 4px 0 0; }

.contact-form { display: grid; gap: 12px; }
.contact-form .hidden { display: none; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 14px; color: #d6d4e4; }
.field input, .field textarea, .field select {
  appearance: none; width: 100%;
  background: #161823; color: #D8DAE7;
  border: 1px solid #222635; border-radius: 10px;
  padding: 12px 14px; font-size: 14px; line-height: 1.5;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--ring); outline-offset: 2px; }
.field textarea { resize: vertical; min-height: 120px; }

.contact-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.contact-actions .btn { cursor: pointer; }
.contact-status { margin: 4px 0 0; font-size: 14px; color: rgba(255,255,255,0.8); min-height: 1.2em; }
