/* ============================================================
   Showcase + page-specific styles
   ============================================================ */

/* ============== Snap Sections ============== */
.snap-section {
  min-height: 100vh;
  min-height: calc(var(--vh, 1vh) * 100);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: clamp(32px, 4vw, 56px) 0;
  overflow: hidden;
}
.snap-section + .snap-section {
  border-top: 1px solid var(--hairline);
}

.snap-center {
  text-align: center;
}
.snap-center .lede {
  margin-left: auto;
  margin-right: auto;
}
.snap-center .hero-cta {
  justify-content: center;
}
.snap-center .hero-stats {
  justify-content: center;
}

.snap-hero { padding-bottom: 80px; }
.snap-showcase {
  padding-top: clamp(60px, 8vw, 100px);
  padding-bottom: clamp(60px, 8vw, 100px);
  gap: 40px;
}
.snap-section-head {
  text-align: center;
  margin-bottom: 0;
}

.snap-headline { margin: 22px auto 24px; max-width: 18ch; }
.snap-lede { margin-left: auto; margin-right: auto; }

.snap-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: hintFade 2s 1.5s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes hintFade {
  0% { opacity: 0; transform: translateX(-50%) translateY(8px); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.hint-arrow {
  display: inline-block;
  animation: bounce 1.4s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

.loop-hint {
  margin-top: 48px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-align: center;
}

.snap-port-hero { padding-top: clamp(40px, 4vw, 56px); }

/* ============== Infinite Conveyor ============== */
.conveyor {
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 20px;
  /* Fade edges */
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  padding: 16px 0;
}

.conveyor-track {
  display: flex;
  gap: 20px;
  width: max-content;
  will-change: transform;
}

.conveyor-track--left {
  animation: conveyorLeft 38s linear infinite;
}
.conveyor-track--right {
  animation: conveyorRight 46s linear infinite;
}

@keyframes conveyorLeft {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes conveyorRight {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

.conveyor-card {
  flex-shrink: 0;
  width: clamp(180px, 18vw, 240px);
  cursor: pointer;
  transform: rotate(var(--card-tilt, 0deg));
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), filter 0.3s;
  filter: brightness(1);
}
.conveyor-card.hovered,
.conveyor-card:hover {
  transform: rotate(0deg) translateY(-10px) scale(1.04);
  filter: brightness(1);
  z-index: 10;
  position: relative;
}

.conveyor-card-inner {
  aspect-ratio: 4/5;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 20px 50px -18px rgba(0,0,0,0.7),
    0 0 0 1px rgba(255,255,255,0.06);
  transition: box-shadow 0.35s;
}
.conveyor-card.hovered .conveyor-card-inner,
.conveyor-card:hover .conveyor-card-inner {
  box-shadow:
    0 32px 64px -20px rgba(0,0,0,0.8),
    0 0 0 1px rgba(165,180,252,0.4),
    0 0 40px -10px rgba(165,180,252,0.3);
}

.conveyor-card-label {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  color: var(--ink-mute);
  font-family: var(--mono);
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s, transform 0.3s;
}
.conveyor-card.hovered .conveyor-card-label,
.conveyor-card:hover .conveyor-card-label {
  opacity: 1;
  transform: translateY(0);
}

/* ============== Hero ============== */
.hero {
  padding: clamp(60px, 9vw, 120px) 0 clamp(80px, 10vw, 140px);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
}

.hero h1.h-display {
  margin: 22px 0 24px;
}

.hero-cta {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 8px;
}
@media (max-width: 600px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 40px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
}
.hero-stats .stat-num {
  font-family: var(--mono);
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
}
.hero-stats .stat-num em {
  font-style: normal;
  color: var(--indigo-soft);
}
.hero-stats .stat-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 8px;
}
@media (max-width: 600px) {
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 24px; }
}

/* ============== Showcase ============== */
.showcase {
  position: relative;
  height: clamp(420px, 56vw, 620px);
  perspective: 1400px;
  perspective-origin: 50% 40%;
}

.showcase-stage {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.showcase-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(180px, 22vw, 260px);
  aspect-ratio: 4 / 5;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1), z-index 0s;
  cursor: pointer;
  animation: cardDrift 8s ease-in-out infinite;
  will-change: transform;
}

.showcase-card.active {
  z-index: 100;
}

.showcase-card-inner {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.4) inset,
    0 30px 60px -20px rgba(0,0,0,0.6),
    0 18px 36px -18px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255,255,255,0.06);
  transition: box-shadow 0.4s, outline 0.3s;
  outline: 0px solid rgba(165,180,252,0);
  outline-offset: 0;
}

.showcase-card.active .showcase-card-inner {
  box-shadow:
    0 1px 0 rgba(255,255,255,0.4) inset,
    0 40px 80px -20px rgba(0,0,0,0.7),
    0 0 0 1px rgba(165,180,252,0.5),
    0 0 60px -10px rgba(165,180,252,0.5);
}

.showcase-card-meta {
  position: absolute;
  bottom: -50px;
  left: 0; right: 0;
  text-align: center;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  transform: translateY(-6px);
  pointer-events: none;
}
.showcase-card.active .showcase-card-meta { opacity: 1; transform: translateY(0); }
.showcase-card-name {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
}
.showcase-card-sub {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  margin-top: 4px;
}
.showcase-card-sub .dot-sep { margin: 0 6px; opacity: 0.5; }

@keyframes cardDrift {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

@media (hover: none) {
  .showcase-card { animation: none; }
}

/* ============== Modal (card detail) ============== */
.modal-back {
  position: fixed; inset: 0;
  background: rgba(5, 5, 10, 0.85);
  backdrop-filter: blur(12px);
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  animation: fadeIn 0.3s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--bg-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  width: min(720px, 100%);
  max-height: 88vh;
  overflow: auto;
  position: relative;
  animation: modalIn 0.4s cubic-bezier(.2,.8,.2,1);
}
@keyframes modalIn {
  from { transform: translateY(20px) scale(0.97); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--hairline);
  color: var(--ink-mute);
  display: grid; place-items: center;
  font-size: 18px;
  transition: background 0.2s, color 0.2s;
  z-index: 10;
}
.modal-close:hover { background: rgba(255,255,255,0.1); color: var(--ink); }
.modal-preview {
  height: 320px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--hairline);
  padding: 32px;
  display: grid;
  place-items: center;
}
.modal-preview > div {
  width: 80%;
  max-width: 360px;
  aspect-ratio: 4/5;
}
.modal-body { padding: 32px; }

/* Card modal — 2-col side-by-side on desktop */
@media (min-width: 680px) {
  .card-modal {
    width: min(880px, calc(100% - 48px));
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    max-height: 85vh;
  }
  .card-modal .modal-preview {
    height: auto;
    min-height: 400px;
    border-bottom: none;
    border-right: 1px solid var(--hairline);
    align-self: stretch;
    padding: 40px;
  }
  .card-modal .modal-preview > div {
    width: 85%;
    max-width: none;
  }
  .card-modal .modal-body {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
  }
}

/* ============== How it works ============== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
}
.steps::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--hairline-strong) 20%, var(--hairline-strong) 80%, transparent);
}
@media (max-width: 760px) { .steps::before { display: none; } }
.step {
  position: relative;
  background: var(--bg-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  z-index: 1;
}
.step-num {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--hairline-strong);
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 600;
  color: var(--indigo-soft);
  margin-bottom: 24px;
  position: relative;
}
.step-num::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 0%, rgba(165,180,252,0.4), transparent 60%);
  opacity: 0.5;
  z-index: -1;
}
.step h3 { font-size: 22px; margin-bottom: 8px; letter-spacing: -0.02em; }
.step p { color: var(--ink-mute); margin: 0; }
.step-meta {
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--indigo-soft);
}

/* ============== Pricing ============== */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; } }

.price-card {
  background: var(--bg-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  background: linear-gradient(180deg, rgba(165,180,252,0.12), rgba(165,180,252,0.02) 50%, transparent), var(--bg-1);
  border-color: rgba(165,180,252,0.4);
  box-shadow: 0 0 0 1px rgba(165,180,252,0.2), 0 20px 60px -30px rgba(165,180,252,0.4);
}
.price-card .featured-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--indigo);
  color: #0B1020;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  box-shadow: 0 8px 20px -8px rgba(165,180,252,0.6);
}
.price-card .pname {
  font-size: 14px;
  font-family: var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 16px;
}
.price-card .price {
  display: flex; align-items: baseline; gap: 6px;
  margin-bottom: 8px;
}
.price-card .price .amt {
  font-family: var(--sans);
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.price-card .price .per {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-mute);
}
.price-card .pdesc {
  color: var(--ink-mute);
  margin: 0 0 24px;
  font-size: 15px;
}
.price-card .pdelivery {
  margin-bottom: 28px;
}
.price-card ul {
  list-style: none; padding: 0; margin: 0 0 28px;
  display: flex; flex-direction: column; gap: 12px;
  flex: 1;
}
.price-card ul li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 15px;
}
.price-card ul li .check {
  flex-shrink: 0;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(16,185,129,0.15);
  color: var(--green-bright);
  display: grid; place-items: center;
  font-size: 11px;
  margin-top: 2px;
}
.price-card .btn { width: 100%; justify-content: center; }

/* ============== Quotes ============== */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }
.quote {
  background: var(--bg-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex; flex-direction: column;
}
.quote .stars {
  color: var(--amber);
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.quote blockquote {
  margin: 0 0 24px;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  flex: 1;
}
.quote cite {
  font-style: normal;
  display: block;
  border-top: 1px solid var(--hairline);
  padding-top: 16px;
}
.quote cite .name { font-weight: 600; }
.quote cite .biz {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-mute);
  margin-top: 4px;
}

/* ============== Big CTA ============== */
.big-cta {
  text-align: center;
  background: linear-gradient(180deg, rgba(165,180,252,0.08), transparent 60%);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: 80px 32px;
  position: relative;
  overflow: hidden;
}
.big-cta::before {
  content: "";
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(165,180,252,0.3), transparent 60%);
  pointer-events: none;
}

/* ============== Portfolio page grid ============== */
.port-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.port-filter button {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--hairline);
  font-size: 13px;
  font-family: var(--mono);
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.port-filter button:hover { color: var(--ink); }
.port-filter button.active {
  background: rgba(165,180,252,0.15);
  border-color: rgba(165,180,252,0.4);
  color: var(--indigo-soft);
}
.port-filter .count {
  margin-left: 6px;
  opacity: 0.6;
  font-size: 11px;
}

.port-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .port-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .port-grid { grid-template-columns: 1fr; } }

.port-card {
  background: var(--bg-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 16px;
  cursor: pointer;
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
}
.port-card:hover {
  transform: translateY(-4px);
  border-color: rgba(165,180,252,0.35);
  background: rgba(165,180,252,0.03);
}
.port-card-screen {
  aspect-ratio: 4/5;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 14px 30px -16px rgba(0,0,0,0.7);
}
.port-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 4px;
}
.port-card-name { font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.port-card-type { font-family: var(--mono); font-size: 12px; color: var(--ink-mute); margin-top: 4px; }
.port-card-flag { font-size: 18px; }

/* ============== About ============== */
.about-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin: 48px 0;
  background: var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
}
@media (max-width: 600px) {
  .about-stats-strip { grid-template-columns: repeat(2, 1fr); }
}
.about-stat {
  background: var(--bg-1);
  padding: 28px 20px;
  text-align: center;
}
.about-stat-num {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 4px;
}
.about-stat-lab {
  font-size: 12px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.about-hero h1 {
  font-size: clamp(40px, 5.5vw, 72px);
  letter-spacing: -0.04em;
  line-height: 1;
  font-weight: 800;
}
.about-hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--ink-mute);
}
.about-story {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 760px) { .about-story { grid-template-columns: 1fr; gap: 16px; } }
.about-story h3 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}
.about-story p {
  font-size: 19px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  color: var(--ink);
  max-width: 60ch;
  margin: 0 0 20px;
}
.about-story p.dim { color: var(--ink-mute); }

.values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 760px) { .values { grid-template-columns: 1fr; } }
.value {
  border: 1px solid var(--hairline);
  background: var(--bg-1);
  border-radius: var(--r-lg);
  padding: 32px 28px;
}
.value .v-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--indigo-soft);
  letter-spacing: 0.14em;
  margin-bottom: 16px;
}
.value h4 { font-size: 22px; margin-bottom: 12px; letter-spacing: -0.02em; }
.value p { color: var(--ink-mute); margin: 0; }

.markets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 760px) { .markets { grid-template-columns: 1fr; } }
.market {
  background: var(--bg-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
}
.market .flag {
  font-size: 40px;
  margin-bottom: 16px;
  display: inline-block;
}
.market h3 { font-size: 28px; letter-spacing: -0.02em; margin-bottom: 12px; }
.market p { color: var(--ink-mute); margin: 0 0 24px; max-width: 36ch; }
.market .market-stats {
  display: flex; gap: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
}
.market .market-stats div {
  font-family: var(--mono);
  font-size: 13px;
}
.market .market-stats .num {
  display: block;
  font-size: 22px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}
.market .market-stats .lab {
  color: var(--ink-mute);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============== Contact ============== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }

.contact-side h1 {
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing: -0.035em;
  margin-bottom: 24px;
  line-height: 1;
}
.contact-side h1 em { font-style: italic; font-weight: 400; color: var(--indigo-soft); }
.contact-side p { color: var(--ink-mute); font-size: 18px; max-width: 36ch; }

.contact-channels {
  margin-top: 40px;
  display: flex; flex-direction: column;
  gap: 12px;
}
.channel {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px;
  background: var(--bg-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  transition: border-color 0.2s, background 0.2s;
}
.channel:hover { border-color: var(--hairline-strong); background: var(--bg-2); }
.channel .ico {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--bg-2);
  border: 1px solid var(--hairline);
  display: grid; place-items: center;
  font-size: 18px;
}
.channel .lab {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.channel .val { font-weight: 600; margin-top: 2px; }

.form {
  background: var(--bg-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 40px;
}
.form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.form label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
}
.form input, .form select, .form textarea {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  font: 500 15px var(--sans);
  color: var(--ink);
  transition: border-color 0.2s, background 0.2s;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: 0;
  border-color: rgba(165,180,252,0.5);
  background: rgba(165,180,252,0.04);
}
.form select option { background: var(--bg-2); color: var(--ink); }
.form textarea { resize: vertical; min-height: 120px; }
.form .field { margin-bottom: 20px; }
.form .actions {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
}
.form .actions .btn-primary { padding: 14px 28px; }

.success {
  text-align: center;
  padding: 40px 20px;
}
.success .check-anim {
  width: 80px; height: 80px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.4);
  display: grid; place-items: center;
  color: var(--green-bright);
  font-size: 36px;
  animation: checkPop 0.5s cubic-bezier(.2,1.6,.4,1) both;
}
@keyframes checkPop {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}
.success h3 { font-size: 28px; margin-bottom: 12px; }
.success p { color: var(--ink-mute); margin: 0 0 24px; }

/* ============== Magnetic button ============== */
.mag-btn {
  display: inline-block;
  position: relative;
}

/* ============================================================
   Vertical Home — CSS Scroll Snap fullscreen panels
   ============================================================ */

/* Hide global chrome on home */
[data-route="home"] .nav,
[data-route="home"] .footer,
[data-route="home"] .wa-stick { display: none !important; }

/* Outer: fixed viewport cover — no overflow, no scroll */
#home-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 100;
  overflow: hidden;
}

/* Inner: full-size scroll-snap container */
#home-scroll {
  width: 100%;
  height: 100%;
  overflow-y: scroll;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  overscroll-behavior: none;
  scrollbar-width: none; /* Firefox */
}
#home-scroll::-webkit-scrollbar { display: none; } /* Chrome/Safari/Edge */

/* Prevent body scroll when home-scroll owns the page */
[data-route="home"] body { overflow: hidden; }

/* Floating brand — top left, only visible on home route */
.h-brand {
  position: fixed;
  top: calc(6px + env(safe-area-inset-top));
  left: calc(12px + env(safe-area-inset-left));
  z-index: 110;
  display: none;
  align-items: center;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
}
[data-route="home"] .h-brand { display: flex; }

/* Floating CTA — top right, only visible on home route */
.h-cta-btn {
  position: fixed;
  top: calc(14px + env(safe-area-inset-top));
  right: calc(24px + env(safe-area-inset-right));
  z-index: 110;
  display: none;
  padding: 10px 18px;
  font-size: 14px;
}
[data-route="home"] .h-cta-btn { display: flex; }

.h-panel {
  width: 100%;
  min-width: 0;
  height: 100vh;
  height: 100svh;
  height: calc(var(--vh, 1svh) * 100);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  box-sizing: border-box;
  background: var(--bg);
  padding-top:    calc(env(safe-area-inset-top)    + 96px);
  padding-bottom: calc(env(safe-area-inset-bottom) + 48px);
}

/* Container inside every panel: flex column so content fills height top-to-bottom */
.h-panel .container {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  max-width: 560px; /* keep a focused column on wide screens */
}
.h-panel .container > .pill { align-self: center; }

/* Hero + CTA panels: stack CTA buttons on all screen sizes */
.h-panel--hero .hero-cta,
.h-panel--cta .hero-cta {
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 28px;
}
.h-panel--hero .hero-cta .btn,
.h-panel--cta .hero-cta .btn {
  width: 100%;
  justify-content: center;
  padding: 16px 20px;
  font-size: 16px;
}

/* Stats anchor to bottom of hero panel */
.h-panel .hero-stats {
  margin-top: auto !important;
  padding-top: 20px !important;
  padding-bottom: 8px;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 8px !important;
}

/* Pricing: constrained column so cards don't stretch across a wide screen */
.h-panel--pricing .container {
  max-width: 600px;
}

/* Footer: full container width */
.h-panel--footer .container {
  max-width: var(--max);
}

/* Hero: wider column so content doesn't look lost on large screens */
.h-panel--hero .container { max-width: 720px; }

/* CTA accordion: needs a bit more width for 2-col grid in each item */
.h-panel--cta .container { max-width: 760px; }

.h-panel--hero {
  background: var(--bg);
  padding-top: calc(env(safe-area-inset-top) + 140px);
}
.h-panel--hero .hero-stats {
  margin-top: 36px !important;
}

/* Grid layout overrides inherited flex from .h-panel — 2 rows: heading | conveyor */
.h-panel--showcase {
  align-items: center;
  overflow-y: auto;
  gap: 20px;
  padding-top:    calc(env(safe-area-inset-top)    + 96px);
  padding-bottom: calc(env(safe-area-inset-bottom) + 48px);
}

.h-panel--showcase .container {
  width: 100%;
  max-width: 680px;
  flex: 1;
}

.h-panel--showcase .h-section-head {
  flex: 0 0 auto;
}

.h-panel--showcase .conveyor {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
  touch-action: pan-y;
}

.h-panel--footer {
  justify-content: flex-start;
  overflow-y: auto;
  padding-top:    calc(env(safe-area-inset-top)    + 100px);
  padding-bottom: calc(env(safe-area-inset-bottom) + 48px);
  color: var(--ink-mute);
  font-size: 14px;
}

/* Centering helpers for panels */
.h-center { text-align: center; }
.h-center .lede { margin-left: auto; margin-right: auto; }
.h-center .hero-cta { justify-content: center; }
.h-center .hero-stats { justify-content: center; }
.h-section-head { text-align: center; align-items: center; }

/* Scroll hint — fixed bottom right, only visible on hero panel */
.h-scroll-hint {
  position: fixed;
  bottom: calc(40px + env(safe-area-inset-bottom));
  right: 40px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  display: none;
  align-items: center;
  gap: 8px;
  z-index: 60;
  animation: hintFade 2s 1.5s cubic-bezier(.2,.8,.2,1) both;
  pointer-events: none;
}
[data-route="home"] .h-scroll-hint { display: flex; }
.h-scroll-hint::before { content: "scroll"; }
@media (hover: none) {
  .h-scroll-hint::before { content: "swipe"; }
}
.h-hint-arr {
  display: inline-block;
  animation: hintBounceD 1.4s ease-in-out infinite;
}
@keyframes hintBounceD {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(4px); }
}

/* Panel dot indicators — bottom centre */
.h-dots {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 110;
  display: none;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
[data-route="home"] .h-dots { display: flex; }

.h-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-dim);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, width 0.25s, border-radius 0.25s;
}
.h-dot.active {
  background: var(--ink);
  height: 22px;
  border-radius: 3px;
}

/* ============== Pricing panel — stacked tappable rows ============== */
.h-panel--pricing {
  overflow-y: auto;
}

/* Vertical stack of plan rows */
.h-price-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

/* Each row card */
.h-price-row-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--bg-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  cursor: pointer;
  text-align: left;
  width: 100%;
  position: relative;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.h-price-row-card:hover {
  border-color: rgba(165,180,252,0.4);
  background: rgba(165,180,252,0.04);
  transform: translateY(-2px);
}
.h-price-row-card:active { transform: scale(0.985); }
.h-price-row-card.featured {
  background: linear-gradient(135deg, rgba(165,180,252,0.1), rgba(165,180,252,0.02)), var(--bg-1);
  border-color: rgba(165,180,252,0.4);
  box-shadow: 0 0 0 1px rgba(165,180,252,0.15), 0 8px 28px -12px rgba(165,180,252,0.4);
}
.h-price-row-card .featured-badge {
  position: absolute;
  top: -10px; left: 18px;
  background: var(--indigo);
  color: #0B1020;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 4px 12px -4px rgba(165,180,252,0.6);
}

.hprc-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.hprc-left .pname {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hprc-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}
.hprc-price .amt {
  font-family: var(--sans);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}
.hprc-price .per {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
  margin-top: 3px;
  text-align: right;
}
.hprc-arr {
  color: var(--ink-dim);
  font-size: 18px;
  margin-left: 8px;
  flex-shrink: 0;
  transition: transform 0.2s, color 0.2s;
}
.h-price-row-card:hover .hprc-arr {
  transform: translateX(4px);
  color: var(--ink);
}

/* Tap hint below the stack */
.h-price-tap-hint {
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-top: 16px;
}

/* Price modal */
.price-modal-head {
  padding: 36px 32px 28px;
  border-bottom: 1px solid var(--hairline);
  background: linear-gradient(180deg, rgba(165,180,252,0.07), transparent);
}
.price-modal-head .pname {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 12px;
}
.price-modal-head .price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.price-modal-head .price .amt {
  font-size: clamp(48px, 8vw, 64px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.price-modal-head .price .per {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink-mute);
}

/* Feature list inside price modal */
.price-modal-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.price-modal-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
}
.price-modal-features li .check {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(16,185,129,0.15);
  color: var(--green-bright);
  display: grid; place-items: center;
  font-size: 11px;
  margin-top: 2px;
}

/* ============================================================
   AccordionCTA — "Ready when you are" panel
   ============================================================ */

.acc-wrap {
  width: 100%;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.acc-item {
  position: relative;
  border-bottom: 1px solid var(--hairline);
}
.acc-item:last-child { border-bottom: none; }

/* Trigger row */
.acc-trigger {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 20px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  transition: background 0.18s;
}
.acc-trigger:hover { background: rgba(255,255,255,0.025); }
.acc-item.open .acc-trigger { background: rgba(165,180,252,0.04); }

.acc-n {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-dim);
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.acc-ttl {
  flex: 1;
  font-size: clamp(14px, 2vw, 17px);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.acc-chevron {
  color: var(--ink-mute);
  flex-shrink: 0;
  transition: transform 0.28s cubic-bezier(.2,.8,.2,1);
}
.acc-chevron.open { transform: rotate(180deg); }

/* Smooth expand using grid trick */
.acc-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s cubic-bezier(.2,.8,.2,1);
}
.acc-item.open .acc-body {
  grid-template-rows: 1fr;
}

/* The single grid child — overflow hidden clips the expanding content */
.acc-body-clip {
  overflow: hidden;
}

/* Two-column grid: text left, visual right */
.acc-body-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  min-height: 0;
}

.acc-body-text {
  padding: 16px 20px 20px;
}
.acc-body-text p {
  color: var(--ink-mute);
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
}

.acc-body-vis {
  border-left: 1px solid var(--hairline);
  background: rgba(255,255,255,0.015);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  min-height: 120px;
}

/* ── Visual panel contents ── */
.acc-vis {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

/* Feature checklist */
.acc-vis-feat {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: var(--ink-mute);
}
.acc-vis-chk {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(16,185,129,0.14);
  color: var(--green-bright);
  display: grid;
  place-items: center;
  font-size: 9px;
  flex-shrink: 0;
}

/* Stat (big number) */
.acc-vis--stat {
  align-items: center;
  text-align: center;
  gap: 4px;
}
.acc-vis-big {
  font-family: var(--mono);
  font-size: clamp(36px, 6vw, 52px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.acc-vis-sub {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* WhatsApp icon circle */
.acc-vis-wa-ico {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(37,211,102,0.12);
  border: 1px solid rgba(37,211,102,0.3);
  color: #25D366;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
}

/* Price rows */
.acc-vis--price { gap: 0; }
.acc-vis-prow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 13px;
}
.acc-vis-prow:last-child { border-bottom: none; }
.acc-vis-pn { color: var(--ink-mute); }
.acc-vis-pa {
  font-weight: 700;
  color: var(--ink);
  font-family: var(--mono);
}

/* Markets */
.acc-vis--markets { gap: 10px; }
.acc-vis-mkt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.acc-vis-mkt span:first-child { font-size: 18px; }

/* Mobile: stack the columns */
@media (max-width: 540px) {
  .acc-body-grid { grid-template-columns: 1fr; }
  .acc-body-vis {
    border-left: none;
    border-top: 1px solid var(--hairline);
    min-height: 80px;
  }
}

/* ============================================================
   PricingMorph — morphing card stack component
   ============================================================ */

.pm-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.pm-toggle {
  display: flex;
  gap: 4px;
  background: var(--bg-2);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 4px;
}

.pm-toggle-btn {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  color: var(--ink-dim);
  display: grid;
  place-items: center;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
  border: none;
  background: none;
}

.pm-toggle-btn:hover { color: var(--ink-mute); }

.pm-toggle-btn.active {
  background: var(--bg-1);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.pm-cards {
  width: 100%;
  position: relative;
}

.pm-cards--stack {
  height: 380px;
  cursor: grab;
}
.pm-cards--stack:active { cursor: grabbing; }

.pm-cards--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pm-cards--list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pm-card {
  background: var(--bg-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 20px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  user-select: none;
  box-sizing: border-box;
}

.pm-card:hover {
  border-color: rgba(165,180,252,0.4);
}

.pm-card.featured {
  background: linear-gradient(135deg, rgba(165,180,252,0.1), rgba(165,180,252,0.02)), var(--bg-1);
  border-color: rgba(165,180,252,0.4);
  box-shadow: 0 0 0 1px rgba(165,180,252,0.15), 0 8px 28px -12px rgba(165,180,252,0.35);
}

/* Stack mode: back cards are faded and non-interactive */
.pm-cards--stack .pm-card {
  opacity: 0.5;
  pointer-events: none;
}
.pm-cards--stack .pm-card.top {
  opacity: 1;
  pointer-events: auto;
}

.pm-card-badge {
  position: absolute;
  top: -10px;
  left: 16px;
  background: var(--indigo);
  color: #0B1020;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 4px 12px -4px rgba(165,180,252,0.6);
}

.pm-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pm-card-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.pm-card-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.pm-amt {
  font-family: var(--sans);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}

.pm-per {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-mute);
}

.pm-amt--custom {
  font-size: 24px;
  background: linear-gradient(135deg, #818cf8, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pm-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.pm-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-mute);
}

.pm-check {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(16,185,129,0.15);
  color: var(--green-bright);
  display: grid;
  place-items: center;
  font-size: 10px;
  margin-top: 1px;
}

.pm-card-foot {
  border-top: 1px solid var(--hairline);
  padding-top: 10px;
  margin-top: auto;
}

.pm-choose {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--indigo-soft);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.pm-card:hover .pm-choose { color: var(--ink); }

/* ── Portfolio card (reuses pm-card shell) ── */
.port-pm-grid {
  max-width: 680px;
  margin: 0 auto;
}

/* Hide text on stacked-behind cards so it doesn't bleed through */
.pm-cards--stack .pm-card.behind .port-card-info,
.pm-cards--stack .pm-card.behind .pm-card-foot {
  visibility: hidden;
}

/* Top card drag/hover states */
.pm-cards--stack .pm-card.top { cursor: grab; }
.pm-cards--stack .pm-card.top:active { cursor: grabbing; }
.pm-cards--stack .pm-card.top:hover {
  border-color: rgba(99, 102, 241, 0.55);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.25), 0 8px 32px rgba(99, 102, 241, 0.12);
}

.port-stack { height: 380px; }
@media (max-width: 480px) { .port-stack { height: 340px; } }

.port-card { padding: 12px; gap: 10px; }

.port-card-preview {
  width: 100%;
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
@media (max-width: 480px) { .port-card-preview { height: 160px; } }

.port-card-info { display: flex; flex-direction: column; gap: 4px; }

.port-card-tagline {
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.4;
}

.port-card-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-dim);
  letter-spacing: 0.04em;
}

.pm-swipe-hint {
  position: absolute;
  bottom: 10px;
  right: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  pointer-events: none;
}

.pm-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.pm-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-dim);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, width 0.2s, border-radius 0.2s;
}

.pm-dot.active {
  background: var(--indigo-soft);
  width: 18px;
  border-radius: 3px;
}

@media (max-width: 480px) {
  .pm-cards--grid { grid-template-columns: 1fr; }
  .pm-cards--stack { height: 340px; }
  .pm-amt { font-size: 26px; }
}

/* ============================================================
   Mobile-first responsive — horizontal home panels
   ============================================================ */

/* ── Mobile: shrink brand logo + reduce panel top padding to gain content space ── */
@media (max-width: 768px) {
  .h-brand .brand-logo { height: 96px; }
  .h-panel {
    padding-top: calc(env(safe-area-inset-top) + 108px);
  }
  .h-panel--showcase {
    padding-top: calc(env(safe-area-inset-top) + 108px);
  }
  .h-panel--footer {
    padding-top: calc(env(safe-area-inset-top) + 116px);
  }
}

/* ── Small phones: hide floating CTA (hero panel already has one) ── */
@media (max-width: 479px) {
  .h-cta-btn { display: none !important; }
  .h-brand { font-size: 14px; left: calc(16px + env(safe-area-inset-left)); }
}

@media (min-width: 480px) and (max-width: 600px) {
  .h-brand  { font-size: 14px; left: calc(16px + env(safe-area-inset-left)); }
  .h-cta-btn { font-size: 12px; padding: 8px 14px; right: calc(14px + env(safe-area-inset-right)); }
}

/* ── Core mobile layout fix: content stretches to fill the panel ── */
@media (max-width: 768px) {

  /* Panel: mobile font/spacing tweaks only — layout now lives in base styles */
  .h-panel .hero-stats .stat-num {
    font-size: clamp(20px, 5vw, 28px) !important;
  }
  .h-panel .hero-stats .stat-label {
    font-size: 10px !important;
    letter-spacing: 0.08em !important;
  }

  /* Headings — right-sized for mobile screen width */
  .snap-headline {
    font-size: clamp(32px, 8.5vw, 44px) !important;
    margin: 14px 0 16px !important;
    max-width: 100% !important;
  }
  .snap-lede { font-size: 15px !important; max-width: 100% !important; }

  /* CTA panel */
  .h-panel--cta .h-display {
    font-size: clamp(30px, 8vw, 44px) !important;
  }
  .h-panel--cta .lede { font-size: 14px !important; }

  /* 8. Footer panel */
  .h-panel--footer .container {
    display: block;
  }
  .h-panel--footer .footer-bottom {
    flex-direction: column !important;
    gap: 4px !important;
    font-size: 11px !important;
  }

  /* 9. Pricing: stacked rows — natural vertical layout on mobile */
  .h-panel--pricing {
    justify-content: flex-start;
    overflow-y: auto;
  }
  .h-price-row-card { padding: 16px 16px; }
  .hprc-left .pname  { font-size: 17px; }
  .hprc-price .amt   { font-size: 24px; }

  /* 10. Dot indicators — bigger tap area on touch */
  .h-dot { width: 8px; height: 8px; }
  .h-dot.active { width: 8px; height: 26px; }

  /* 11. Scroll hint — tuck closer to edge on small screens */
  .h-scroll-hint { right: 16px; bottom: calc(52px + env(safe-area-inset-bottom)); }

  /* 12. Showcase heading size */
  .h-section-head .h-section { font-size: clamp(28px, 7vw, 38px) !important; }
}

/* ── Desktop / tablet: centered layout ── */
@media (min-width: 769px) {
  /* Vertically centre content — desktop panels have room to breathe */
  .h-panel--hero,
  .h-panel--cta,
  .h-panel--pricing {
    justify-content: center;
    padding-top:    calc(env(safe-area-inset-top)    + 72px);
    padding-bottom: calc(env(safe-area-inset-bottom) + 48px);
  }
  .h-panel--showcase {
    padding-top: calc(env(safe-area-inset-top) + 72px);
  }
  .h-panel--footer {
    justify-content: center;
    padding-top:    calc(env(safe-area-inset-top)    + 80px);
    padding-bottom: calc(env(safe-area-inset-bottom) + 48px);
  }

  /* Hero: shrink-wrap so justify-content: center works */
  .h-panel--hero .container { flex: 0 0 auto; }

  /* CTA: shrink-wrap so justify-content: center works */
  .h-panel--cta .container { flex: 0 0 auto; }

  /* Stats: sit directly below the button with normal gap */
  .h-panel .hero-stats { margin-top: 40px !important; }

  /* Scale display headings for desktop */
  .h-panel--hero .h-display,
  .h-panel--cta  .h-display {
    font-size: clamp(36px, 4.8vw, 58px) !important;
  }

  /* CTA row: side-by-side on desktop */
  .h-panel--hero .hero-cta,
  .h-panel--cta  .hero-cta { flex-direction: row !important; justify-content: center; width: auto; }

  /* Single button shouldn't stretch full width on desktop */
  .h-panel--hero .hero-cta .btn,
  .h-panel--cta  .hero-cta .btn {
    width: auto !important;
    min-width: 200px;
  }
}


/* ── Landscape (any device): tight padding, full-screen, scrollable ── */
@media (orientation: landscape) and (max-height: 600px) {
  /* Shrink logo so it doesn't eat vertical space in landscape */
  .h-brand .brand-logo { height: 44px !important; }
  .h-brand { top: calc(6px + env(safe-area-inset-top)) !important; }

  /* Panels: minimal padding, vertically centred, scrollable if overflow */
  .h-panel {
    justify-content: center !important;
    padding-top:    calc(env(safe-area-inset-top)    + 48px) !important;
    padding-bottom: calc(env(safe-area-inset-bottom) + 16px) !important;
    overflow-y: auto;
  }
  .h-panel--showcase {
    padding-top: calc(env(safe-area-inset-top) + 48px) !important;
    overflow-y: auto !important;
  }
  .h-panel--footer {
    justify-content: flex-start !important;
    padding-top: calc(env(safe-area-inset-top) + 56px) !important;
  }

  /* Conveyor: single row + smaller cards so they fit in short landscape height */
  .conveyor-track--right { display: none; }
  .conveyor { gap: 0; padding: 6px 0; }
  .conveyor-card { width: clamp(110px, 15vw, 140px); }

  /* Portfolio page: allow rotated cards to breathe past section edges */
  .snap-section { overflow: visible; }

  /* Headline: smaller, tighter */
  .snap-headline {
    font-size: 22px !important;
    margin: 4px 0 8px !important;
    max-width: 100% !important;
  }
  .snap-lede { font-size: 13px !important; margin-bottom: 10px !important; }

  /* CTA panel heading */
  .h-panel--cta .h-display {
    font-size: 22px !important;
    margin: 4px auto 10px !important;
  }
  .h-panel--cta .lede { font-size: 13px !important; margin-bottom: 14px !important; }

  /* Buttons side-by-side instead of stacked — saves ~42px */
  .h-panel--hero .hero-cta,
  .h-panel--cta  .hero-cta {
    flex-direction: row !important;
    gap: 10px !important;
  }
  .h-panel--hero .hero-cta .btn,
  .h-panel--cta  .hero-cta .btn {
    width: auto !important;
    flex: 1 !important;
    padding: 11px 14px !important;
    font-size: 13px !important;
  }

  /* Hide stats — not enough room */
  .h-panel .hero-stats { display: none !important; }

  /* Brand, dots, CTA btn positions */
  .h-brand   { top: calc(4px + env(safe-area-inset-top)); }
  .h-cta-btn { top: calc(4px + env(safe-area-inset-top)); }
  .h-dots    { right: calc(10px + env(safe-area-inset-right)); }
}

/* ============================================================
   Portfolio Modal
   ============================================================ */
.portfolio-modal {
  width: min(720px, 100%);
  max-height: 88vh;
  overflow-y: auto;
}

.port-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (max-width: 540px) {
  .port-modal-grid { grid-template-columns: 1fr; }
}

.port-modal-card {
  background: var(--surface, var(--bg-1));
  border: 1px solid var(--hairline);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s;
  padding: 0;
}
.port-modal-card:hover { border-color: var(--hairline-strong); }

.port-modal-preview {
  background: var(--bg-2);
  padding: 12px;
  display: flex;
  justify-content: center;
}

.port-modal-info {
  padding: 10px 14px 12px;
}
.port-modal-name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
}
.port-modal-meta {
  font-size: 12px;
  color: var(--ink-mute);
}

/* ============================================================
   Quote Modal
   ============================================================ */
.qmodal-back {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(5, 5, 10, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  padding: 20px;
  overflow-y: auto;
  animation: fadeIn 0.25s ease;
}

.qmodal {
  background: var(--bg-1);
  border: 1px solid var(--hairline-strong);
  border-radius: 20px;
  width: min(560px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 40px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255,255,255,0.04) inset;
  animation: modalIn 0.35s cubic-bezier(.2,.8,.2,1);
}

.qmodal-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--hairline-strong);
  color: var(--ink-mute);
  font-size: 20px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  z-index: 2;
}
.qmodal-close:hover { background: rgba(255,255,255,0.1); color: var(--ink); }

.qmodal-head { margin-bottom: 28px; }
.qmodal-head h2 {
  font-size: clamp(26px, 5vw, 36px);
  letter-spacing: -0.03em;
  margin: 12px 0 0;
}
.qmodal-sub {
  color: var(--ink-mute);
  font-size: 14px;
  margin: 8px 0 0;
}

.qmodal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.qmodal-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.qmodal-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.qmodal-field label {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--mono);
}
.qmodal-field input,
.qmodal-field select,
.qmodal-field textarea {
  background: var(--bg-2);
  border: 1px solid var(--hairline-strong);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.qmodal-field input:focus,
.qmodal-field select:focus,
.qmodal-field textarea:focus {
  border-color: var(--indigo-soft);
  box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.12);
}
.qmodal-field input::placeholder,
.qmodal-field textarea::placeholder { color: var(--ink-dim); }
.qmodal-field textarea { resize: vertical; min-height: 84px; }
.qmodal-field select { cursor: pointer; }
.qmodal-field select option { background: var(--bg-1); color: var(--ink); }

.qmodal-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.qmodal-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--whatsapp);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.15s;
  flex: 1;
  white-space: nowrap;
}
.qmodal-wa:hover { opacity: 1; }

/* Success state */
.qmodal-success {
  text-align: center;
  padding: 20px 0;
}
.check-anim {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: var(--green-bright);
  font-size: 28px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
}
.qmodal-success h3 {
  font-size: 28px;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.qmodal-success p {
  color: var(--ink-mute);
  margin: 0 0 8px;
}

@media (max-width: 540px) {
  .qmodal {
    padding: 28px 20px;
    border-radius: 16px;
    max-height: 95vh;
  }
  .qmodal-row { grid-template-columns: 1fr; }
  .qmodal-actions { flex-direction: column; align-items: stretch; }
  .qmodal-wa { justify-content: center; }
}
