:root {
  --cf-bg: #0F2430;
  --cf-ink: #f4f8fc;
  --cf-muted: #93a4b8;
  --cf-accent: #9BC65A;
  --cf-accent-deep: #7aa83f;
  --cf-navy: #0F2430;
  --cf-line: rgba(255,255,255,0.1);
  --cf-font: "Outfit", system-ui, sans-serif;
  --cf-display: "Syne", "Outfit", system-ui, sans-serif;
  --brand-primary: #9BC65A;
  --brand-secondary: #0F2430;
  --brand-accent: #9BC65A;
  --surface: rgba(15, 36, 48, 0.88);
  --text: #f4f8fc;
  --muted: #93a4b8;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.cf-public {
  margin: 0;
  font-family: var(--cf-font);
  background: var(--cf-bg);
  color: var(--cf-ink);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.cf-mkt-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.9rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(15, 36, 48, 0.88); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cf-line);
  transition: background .25s ease, box-shadow .25s ease, padding .25s ease;
}
.cf-mkt-nav.is-scrolled {
  background: rgba(10, 24, 32, 0.94);
  box-shadow: 0 12px 40px rgba(0,0,0,0.28);
  padding-top: 0.7rem; padding-bottom: 0.7rem;
}
.cf-mkt-links a {
  position: relative;
  transition: color .2s ease;
}
.cf-mkt-links a.is-active { color: var(--cf-accent); }
.cf-mkt-links a.is-active::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -0.45rem;
  height: 2px; border-radius: 2px; background: var(--cf-accent);
}
.cf-mkt-brand {
  font-family: var(--cf-display); font-weight: 800; font-size: 1.25rem;
  display: flex; align-items: center; gap: 0.55rem;
  letter-spacing: -0.03em;
}
.cf-mkt-brand img,
.cf-mkt-logo,
.cf-logo-full {
  height: 1.85rem; width: auto; display: block;
}
.cf-mkt-mark,
.cf-logo-mark {
  width: 1.75rem; height: 1.75rem; border-radius: 0.45rem;
  object-fit: contain;
  background: transparent;
}
.cf-auth-logo { height: 2.15rem; width: auto; }
.cf-footer-brand { margin-bottom: 0.65rem; }
.cf-footer-logo { height: 1.65rem; width: auto; opacity: 0.92; }
.cf-mkt-links { display: flex; gap: 1.1rem; align-items: center; color: var(--cf-muted); font-size: 0.95rem; }
.cf-mkt-links a:hover { color: var(--cf-accent); }
.cf-mkt-burger {
  display: none; border: 1px solid var(--cf-line); background: transparent;
  color: var(--cf-ink); border-radius: 0.55rem; padding: 0.4rem 0.65rem; cursor: pointer;
}
@media (max-width: 800px) {
  .cf-mkt-burger { display: inline-flex; }
  .cf-mkt-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; padding: 1rem;
    background: #0a1520; border-bottom: 1px solid var(--cf-line);
  }
  .cf-mkt-links.open { display: flex; }
}

.cf-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.7rem 1.2rem; border-radius: 999px; font-weight: 700;
  background: linear-gradient(135deg, var(--cf-accent), var(--cf-accent-deep, #7aa83f)); color: #0F2430;
  border: none; cursor: pointer;
}
.cf-btn-ghost {
  background: transparent; border: 1px solid var(--cf-line); color: var(--cf-ink);
}
.cf-btn-pulse { animation: cfPulse 2.4s ease-in-out infinite; }
@keyframes cfPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(155,198,90,0.35); }
  50% { box-shadow: 0 0 0 12px rgba(155,198,90,0); }
}

.cf-hero {
  position: relative; min-height: min(92vh, 860px);
  display: grid; align-items: center;
  padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 4vw, 2.5rem);
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(155,198,90,0.18), transparent 55%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(15,36,48,0.5), transparent 50%),
    linear-gradient(160deg, #0F2430 0%, #132a38 50%, #0c1c26 100%);
}
.cf-hero-ambient {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.cf-hero-orb {
  position: absolute; border-radius: 50%;
  filter: blur(48px); opacity: 0.55;
  animation: cfOrbDrift 14s ease-in-out infinite;
}
.cf-hero-orb-a {
  width: min(48vw, 420px); height: min(48vw, 420px);
  top: -8%; right: 8%;
  background: rgba(155,198,90,0.28);
}
.cf-hero-orb-b {
  width: min(36vw, 300px); height: min(36vw, 300px);
  bottom: 5%; left: 4%;
  background: rgba(61, 140, 180, 0.18);
  animation-delay: -6s;
}
.cf-hero-gridlines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  opacity: 0.5;
}
@keyframes cfOrbDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-3%, 4%) scale(1.08); }
}
.cf-enter {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .75s cubic-bezier(.2,.8,.2,1), transform .75s cubic-bezier(.2,.8,.2,1);
}
.cf-enter.is-in { opacity: 1; transform: none; }
.cf-hero-hint {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--cf-muted);
  max-width: 28rem;
  animation: cfFadeUp .6s ease both;
}
.cf-hero-hint strong { color: var(--cf-accent); }
.cf-btn-play {
  gap: 0.45rem;
}
.cf-play-ico {
  width: 0; height: 0;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent currentColor;
  opacity: 0.85;
}
.cf-hero-scroll {
  position: absolute; left: 50%; bottom: 1.25rem;
  transform: translateX(-50%);
  width: 1.5rem; height: 2.2rem;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  display: grid; place-items: center;
  opacity: 0.7;
  transition: opacity .2s, border-color .2s;
}
.cf-hero-scroll:hover { opacity: 1; border-color: rgba(155,198,90,0.55); }
.cf-hero-scroll.is-hidden { opacity: 0; pointer-events: none; }
.cf-hero-scroll span {
  width: 0.28rem; height: 0.28rem; border-radius: 50%;
  background: var(--cf-accent);
  animation: cfScrollDot 1.6s ease-in-out infinite;
}
@keyframes cfScrollDot {
  0% { transform: translateY(-6px); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(8px); opacity: 0; }
}
.cf-hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2rem; align-items: center;
  max-width: 1180px; margin: 0 auto; width: 100%;
}
@media (max-width: 900px) {
  .cf-hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .cf-hero { min-height: auto; padding-bottom: 3rem; }
}
.cf-hero-copy h1 {
  font-family: var(--cf-display); font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.05; margin: 0 0 0.85rem; letter-spacing: -0.02em;
}
.cf-hero-copy p { color: var(--cf-muted); font-size: 1.08rem; max-width: 36rem; margin: 0 0 1.4rem; }
.cf-hero-ctas { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.cf-hero-visual {
  position: relative; min-height: 340px;
  display: flex; align-items: center; justify-content: center;
}
.cf-phone-mock {
  width: min(280px, 70vw); aspect-ratio: 9/18.5;
  border-radius: 2rem; border: 3px solid rgba(255,255,255,0.15);
  background: linear-gradient(160deg, #132033, #0a1420);
  box-shadow: 0 40px 80px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(155,198,90,0.2);
  padding: 0.85rem; position: relative; overflow: hidden;
  animation: cfFloat 5s ease-in-out infinite;
}
@keyframes cfFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.cf-phone-screen {
  height: 100%; border-radius: 1.35rem; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(155,198,90,0.25), transparent 40%),
    #0c1828;
  padding: 1rem; display: flex; flex-direction: column; gap: 0.6rem;
}
.cf-phone-bar { height: 0.45rem; width: 40%; border-radius: 999px; background: var(--cf-accent); }
.cf-phone-line { height: 0.55rem; border-radius: 999px; background: rgba(255,255,255,0.12); }
.cf-phone-card {
  margin-top: auto; padding: 0.75rem; border-radius: 0.85rem;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
  font-size: 0.75rem;
}

.cf-section {
  padding: clamp(3rem, 7vw, 5rem) clamp(1rem, 4vw, 2.5rem);
  max-width: 1180px; margin: 0 auto;
}
.cf-section h2 {
  font-family: var(--cf-display); font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 0.5rem;
}
.cf-section > .lead { color: var(--cf-muted); margin: 0 0 1.75rem; max-width: 38rem; }
.cf-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.cf-reveal.in { opacity: 1; transform: none; }

.cf-fade-up { animation: cfFadeUp .8s ease both; }
@keyframes cfFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.cf-feature-list { display: grid; gap: 1.25rem; }
.cf-feature-list article h3 { margin: 0 0 0.35rem; font-family: var(--cf-display); }
.cf-feature-list article p { margin: 0; color: var(--cf-muted); }

.cf-plan-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem;
}
@media (max-width: 700px) { .cf-plan-grid { grid-template-columns: 1fr; } }
.cf-plan {
  border: 1px solid var(--cf-line); border-radius: 1.1rem; padding: 1.4rem;
  background: linear-gradient(160deg, rgba(18,30,44,0.9), rgba(10,20,32,0.95));
}
.cf-plan h3 { margin: 0 0 0.4rem; font-family: var(--cf-display); }
.cf-plan p { color: var(--cf-muted); margin: 0 0 1rem; }
.cf-plan ul { margin: 0 0 1.2rem; padding-left: 1.1rem; color: var(--cf-muted); }
.cf-plan.featured { border-color: rgba(155,198,90,0.4); box-shadow: 0 0 40px rgba(155,198,90,0.08); }

.cf-badge {
  display: inline-flex; align-items: center; padding: 0.18rem 0.55rem;
  border-radius: 999px; font-size: 0.72rem; font-weight: 700;
  background: rgba(155, 198, 90, 0.14); color: var(--cf-accent);
}

/* ============================================================
   Marketing tour — interactive demos
   ============================================================ */
.cf-hero-tour .cf-hero-brand {
  margin-bottom: 1.15rem;
  line-height: 1;
}
.cf-hero-tour .cf-hero-logo {
  height: clamp(2.75rem, 6vw, 3.85rem);
  width: auto;
  display: block;
}
.cf-hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  max-width: 30rem;
  margin: 0 0 1.4rem;
  color: var(--cf-muted);
  line-height: 1.5;
}
.cf-btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
  border-radius: 0.65rem;
}
.cf-live-stage {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --glow-x: 70%;
  --glow-y: 30%;
  width: min(100%, 420px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 1.15rem;
  overflow: hidden;
  background:
    radial-gradient(circle at var(--glow-x) var(--glow-y), rgba(155,198,90,0.16), transparent 42%),
    linear-gradient(165deg, #0e1c2c, #081420);
  box-shadow: 0 28px 70px rgba(0,0,0,0.4);
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition: transform .2s ease-out;
  animation: cfFloat 6s ease-in-out infinite;
  will-change: transform;
}
.cf-live-chrome {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 0.9rem;
  font-size: 0.78rem; color: var(--cf-muted);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.25);
}
.cf-live-live {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9BC65A;
  opacity: 0.9;
}
.cf-live-dot {
  width: 0.55rem; height: 0.55rem; border-radius: 50%;
  background: #9BC65A;
  box-shadow: 0 0 0 0 rgba(155,198,90,0.5);
  animation: cfPulse 2s ease-in-out infinite;
}
.cf-live-screen { padding: 1rem 1.1rem 1.2rem; }
.cf-live-chiprow { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.85rem; }
.cf-live-chip {
  font-size: 0.72rem; font-weight: 600;
  padding: 0.3rem 0.55rem; border-radius: 0.45rem;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--cf-muted); opacity: 0.55;
  transition: opacity .35s ease, border-color .35s ease, color .35s ease, background .35s ease, transform .35s ease;
}
.cf-live-chip.is-on {
  opacity: 1; color: #e8fffb;
  border-color: rgba(155,198,90,0.45);
  background: rgba(155,198,90,0.1);
  transform: translateY(-1px);
}
.cf-live-chip.is-flash {
  animation: cfChipFlash .8s ease;
}
@keyframes cfChipFlash {
  0%, 100% { box-shadow: none; }
  40% { box-shadow: 0 0 0 4px rgba(155,198,90,0.25); }
}
.cf-live-kicker {
  margin: 0 0 0.65rem; font-family: var(--cf-display);
  font-size: 1.05rem; letter-spacing: -0.02em;
  transition: opacity .2s ease, transform .2s ease, filter .2s ease;
}
.cf-live-kicker.is-swap {
  opacity: 0; transform: translateY(6px); filter: blur(3px);
}
.cf-live-rails {
  display: grid; gap: 0.45rem; margin-bottom: 0.9rem;
}
.cf-live-rails article {
  display: flex; justify-content: space-between; gap: 0.5rem;
  padding: 0.55rem 0.7rem; border-radius: 0.55rem;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07);
  font-size: 0.86rem;
  opacity: 0.55;
  transform: scale(0.985);
  transition: opacity .4s ease, transform .4s ease, border-color .4s ease, background .4s ease;
}
.cf-live-rails article.is-show {
  opacity: 1;
  transform: scale(1);
  border-color: rgba(155,198,90,0.35);
  background: rgba(155,198,90,0.08);
}
.cf-live-rails span { color: var(--cf-accent); font-weight: 700; }
.cf-live-wa {
  width: 100%; border: none; cursor: default;
  padding: 0.65rem; border-radius: 0.65rem; font-weight: 700;
  background: linear-gradient(135deg, #9BC65A, #7aa83f); color: #0F2430;
  animation: cfWaPulse 2.8s ease-in-out infinite;
}
@keyframes cfWaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(155,198,90,0.35); }
  50% { box-shadow: 0 0 0 10px rgba(155,198,90,0); }
}

.cf-tour-section { max-width: 1180px; }
.cf-tour-eyebrow {
  margin: 0 0 0.35rem; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--cf-accent);
}
.cf-tour-tabs {
  display: flex; flex-wrap: wrap; gap: 0.45rem;
  margin: 0 0 1.5rem;
}
.cf-tour-tab {
  appearance: none; cursor: pointer; font: inherit; font-weight: 600; font-size: 0.88rem;
  padding: 0.55rem 0.95rem; border-radius: 0.65rem;
  border: 1px solid var(--cf-line); background: transparent; color: var(--cf-muted);
  transition: border-color .2s, color .2s, background .2s;
}
.cf-tour-tab:hover { color: var(--cf-ink); border-color: rgba(155,198,90,0.35); }
.cf-tour-tab.is-on {
  color: #0F2430; background: var(--cf-accent); border-color: var(--cf-accent);
}
.cf-tour-tab.is-pop { animation: cfTabPop .35s ease; }
@keyframes cfTabPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.04); }
  100% { transform: scale(1); }
}
.cf-mx-cell.is-pop { animation: cfCellPop .4s ease; }
@keyframes cfCellPop {
  0% { transform: scale(1); }
  35% { transform: scale(1.06); }
  100% { transform: scale(1); }
}
.cf-tour-panel { animation: cfFadeUp .45s ease both; }
.cf-tour-split {
  display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 1.75rem; align-items: start;
}
@media (max-width: 900px) {
  .cf-tour-split { grid-template-columns: 1fr; }
}
.cf-tour-copy h3 {
  font-family: var(--cf-display); font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  margin: 0 0 0.55rem; letter-spacing: -0.02em;
}
.cf-tour-copy > p { color: var(--cf-muted); margin: 0 0 1rem; }
.cf-tour-benefits {
  margin: 0 0 1rem; padding: 0; list-style: none; display: grid; gap: 0.65rem;
}
.cf-tour-benefits li {
  padding-left: 0.9rem; border-left: 2px solid rgba(155,198,90,0.45);
  color: var(--cf-muted); font-size: 0.95rem;
}
.cf-tour-benefits strong { color: var(--cf-ink); }
.cf-tour-hint {
  margin: 0; font-size: 0.85rem; color: rgba(147,164,184,0.85);
  font-style: italic;
}

/* Matrix demo */
.cf-demo-matrix {
  border: 1px solid var(--cf-line); border-radius: 1rem;
  background: linear-gradient(160deg, #0f1c2c, #0a1520);
  overflow: hidden;
}
.cf-demo-matrix-head {
  display: flex; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap;
  padding: 0.95rem 1.05rem; border-bottom: 1px solid var(--cf-line);
}
.cf-demo-matrix-head strong { display: block; font-family: var(--cf-display); }
.cf-demo-matrix-head span { font-size: 0.8rem; color: var(--cf-muted); }
.cf-demo-pill {
  align-self: start; font-size: 0.72rem; font-weight: 700;
  padding: 0.3rem 0.55rem; border-radius: 0.45rem;
  background: rgba(155,198,90,0.12); color: var(--cf-accent);
}
.cf-demo-matrix-scroll { overflow-x: auto; padding: 0.75rem; }
.cf-demo-matrix table { width: 100%; border-collapse: separate; border-spacing: 0.4rem; min-width: 340px; }
.cf-demo-matrix th {
  font-size: 0.75rem; color: var(--cf-muted); font-weight: 600; text-align: left; padding: 0.25rem;
}
.cf-mx-cell {
  width: 100%; min-width: 88px; cursor: pointer;
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.15rem;
  padding: 0.55rem 0.6rem; border-radius: 0.55rem; font: inherit;
  border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.03); color: var(--cf-ink);
  transition: border-color .15s, transform .15s, background .15s;
}
.cf-mx-cell em { font-style: normal; font-weight: 800; font-size: 1rem; }
.cf-mx-cell span { font-size: 0.75rem; color: var(--cf-muted); }
.cf-mx-cell.is-ok { border-color: rgba(155,198,90,0.35); }
.cf-mx-cell.is-low { border-color: rgba(245,185,66,0.45); }
.cf-mx-cell.is-out { opacity: 0.55; }
.cf-mx-cell.is-selected, .cf-mx-cell:hover {
  transform: translateY(-1px);
  border-color: var(--cf-accent);
  background: rgba(155,198,90,0.08);
}
.cf-demo-matrix-edit {
  padding: 0.85rem 1.05rem 1.1rem; border-top: 1px solid var(--cf-line);
}
.cf-demo-matrix-edit p { margin: 0 0 0.55rem; }
.cf-demo-edit-row {
  display: flex; flex-wrap: wrap; gap: 0.55rem; align-items: end;
}
.cf-demo-edit-row label {
  display: grid; gap: 0.25rem; font-size: 0.75rem; color: var(--cf-muted);
}
.cf-demo-edit-row input {
  width: 5.5rem; padding: 0.4rem 0.5rem; border-radius: 0.45rem;
  border: 1px solid var(--cf-line); background: #0F2430; color: var(--cf-ink);
}

/* Detect demo */
.cf-demo-detect {
  border: 1px solid var(--cf-line); border-radius: 1rem;
  background: linear-gradient(160deg, #0f1c2c, #0a1520);
  padding: 1rem;
  display: grid; gap: 1rem;
}
.cf-demo-detect-controls {
  display: grid; grid-template-columns: 1fr 1fr auto; gap: 0.65rem; align-items: end;
}
@media (max-width: 700px) {
  .cf-demo-detect-controls { grid-template-columns: 1fr; }
}
.cf-demo-detect-controls label {
  display: grid; gap: 0.3rem; font-size: 0.78rem; color: var(--cf-muted);
}
.cf-demo-detect-controls select {
  padding: 0.5rem 0.6rem; border-radius: 0.5rem;
  border: 1px solid var(--cf-line); background: #0F2430; color: var(--cf-ink); font: inherit;
}
.cf-demo-detect-stage {
  border: 1px dashed rgba(255,255,255,0.12); border-radius: 0.85rem; padding: 0.9rem;
}
.cf-demo-ctx {
  display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 0.75rem;
}
.cf-demo-ctx span {
  display: grid; gap: 0.1rem; min-width: 8rem;
  padding: 0.45rem 0.65rem; border-radius: 0.5rem;
  background: rgba(155,198,90,0.08); border: 1px solid rgba(155,198,90,0.2);
}
.cf-demo-ctx small { font-size: 0.68rem; color: var(--cf-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.cf-demo-detect-status { color: var(--cf-muted); font-size: 0.9rem; margin-bottom: 0.75rem; }
.cf-demo-detect-status.is-busy { color: var(--cf-accent); }
.cf-demo-rails { display: grid; gap: 0.85rem; }
.cf-demo-rail-k {
  margin: 0 0 0.35rem; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--cf-accent);
}
.cf-demo-rail {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
}
.cf-demo-rail article {
  font-size: 0.82rem; padding: 0.4rem 0.6rem; border-radius: 0.45rem;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
}

/* Compare */
.cf-demo-compare {
  border: 1px solid var(--cf-line); border-radius: 1rem;
  background: linear-gradient(160deg, #0f1c2c, #0a1520);
  padding: 1rem; display: grid; gap: 1rem;
}
.cf-demo-compare-pick {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem;
}
@media (max-width: 560px) { .cf-demo-compare-pick { grid-template-columns: 1fr; } }
.cf-demo-compare-pick label {
  display: grid; gap: 0.3rem; font-size: 0.78rem; color: var(--cf-muted);
}
.cf-demo-compare-pick select {
  padding: 0.5rem 0.6rem; border-radius: 0.5rem;
  border: 1px solid var(--cf-line); background: #0F2430; color: var(--cf-ink); font: inherit;
}
.cf-demo-compare-cards {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 0.65rem; align-items: stretch;
}
@media (max-width: 560px) {
  .cf-demo-compare-cards { grid-template-columns: 1fr; }
  .cf-cmp-arrow { transform: rotate(90deg); justify-self: center; }
}
.cf-cmp-card {
  padding: 0.9rem; border-radius: 0.75rem;
  border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.03);
}
.cf-cmp-card.is-target {
  border-color: rgba(155,198,90,0.4);
  background: rgba(155,198,90,0.07);
}
.cf-cmp-tag {
  display: inline-block; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--cf-accent); margin-bottom: 0.35rem;
}
.cf-cmp-card h4 { margin: 0 0 0.2rem; font-family: var(--cf-display); }
.cf-cmp-card p { margin: 0 0 0.55rem; font-size: 0.85rem; color: var(--cf-muted); }
.cf-cmp-card ul { margin: 0 0 0.65rem; padding-left: 1rem; color: var(--cf-muted); font-size: 0.85rem; }
.cf-cmp-card strong { font-size: 1.15rem; color: var(--cf-accent); }
.cf-cmp-arrow {
  display: flex; align-items: center; font-size: 1.4rem; color: var(--cf-accent); font-weight: 800;
}
.cf-demo-compare-delta { color: var(--cf-muted); font-size: 0.92rem; }
.cf-demo-compare-delta strong { color: var(--cf-ink); }
.cf-demo-wa-preview {
  margin: 0; padding: 0.75rem 0.85rem; border-radius: 0.65rem;
  background: rgba(0,0,0,0.28); border: 1px solid var(--cf-line);
  font-size: 0.88rem; color: #d5e2ef; white-space: pre-wrap;
}

/* Funnel */
.cf-demo-funnel {
  border: 1px solid var(--cf-line); border-radius: 1rem;
  background: linear-gradient(160deg, #0f1c2c, #0a1520);
  padding: 1rem; display: grid; gap: 1rem;
}
.cf-funnel-steps {
  margin: 0; padding: 0; list-style: none; display: grid; gap: 0.5rem;
}
.cf-funnel-steps li {
  padding: 0.7rem 0.85rem; border-radius: 0.65rem;
  border: 1px solid rgba(255,255,255,0.08); opacity: 0.45;
  transition: opacity .3s, border-color .3s, background .3s;
}
.cf-funnel-steps li.is-on {
  opacity: 1; border-color: rgba(155,198,90,0.4);
  background: rgba(155,198,90,0.08);
}
.cf-funnel-steps strong { display: block; margin-bottom: 0.15rem; }
.cf-funnel-steps span { font-size: 0.85rem; color: var(--cf-muted); }
.cf-funnel-preview {
  padding: 0.85rem; border-radius: 0.65rem;
  background: rgba(0,0,0,0.28); border: 1px solid var(--cf-line);
}
.cf-funnel-kicker {
  margin: 0 0 0.4rem; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--cf-accent);
}
.cf-funnel-preview pre {
  margin: 0; white-space: pre-wrap; font-family: var(--cf-font);
  font-size: 0.88rem; color: #d5e2ef; line-height: 1.45;
}

.cf-value-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem;
}
@media (max-width: 800px) { .cf-value-grid { grid-template-columns: 1fr; } }
.cf-value-grid article,
.cf-tilt-card {
  padding: 1.25rem 1.15rem;
  border-radius: 1rem;
  border: 1px solid var(--cf-line);
  background: rgba(255,255,255,0.03);
  transition: transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.cf-tilt-card:hover {
  transform: translateY(-4px);
  border-color: rgba(155,198,90,0.35);
  background: rgba(155,198,90,0.06);
  box-shadow: 0 18px 40px rgba(0,0,0,0.22);
}
.cf-value-grid article strong {
  display: block; font-family: var(--cf-display); font-size: 1.6rem;
  color: rgba(155,198,90,0.55); margin-bottom: 0.35rem;
}
.cf-value-grid h3 { margin: 0 0 0.35rem; font-family: var(--cf-display); }
.cf-value-grid p { margin: 0; color: var(--cf-muted); }

.cf-steps {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem;
}
@media (max-width: 800px) { .cf-steps { grid-template-columns: 1fr; } }
.cf-steps article {
  padding: 1.15rem;
  border-radius: 1rem;
  border: 1px solid var(--cf-line);
  background: rgba(255,255,255,0.025);
  transition: border-color .25s ease, transform .25s ease;
}
.cf-steps article:hover {
  border-color: rgba(155,198,90,0.35);
  transform: translateY(-3px);
}
.cf-steps article span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.75rem; height: 1.75rem; border-radius: 0.45rem; margin-bottom: 0.55rem;
  font-weight: 800; font-size: 0.9rem;
  background: rgba(155,198,90,0.15); color: var(--cf-accent);
}
.cf-steps h3 { margin: 0 0 0.35rem; font-family: var(--cf-display); }
.cf-steps p { margin: 0; color: var(--cf-muted); }

[data-stagger] {
  opacity: 0;
  transform: translateY(16px);
}
[data-stagger].is-stagger-in {
  animation: cfStaggerIn .65s cubic-bezier(.2,.8,.2,1) both;
  animation-delay: var(--stagger, 0ms);
}
@keyframes cfStaggerIn {
  to { opacity: 1; transform: none; }
}

.cf-cta-final {
  text-align: center;
  border-top: 1px solid var(--cf-line);
  position: relative;
  overflow: hidden;
}
.cf-cta-final::before {
  content: '';
  position: absolute; left: 20%; right: 20%; top: -20%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(155,198,90,0.14), transparent 70%);
  pointer-events: none;
}
.cf-cta-final .lead { margin-left: auto; margin-right: auto; }
.cf-cta-final .cf-hero-ctas { justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  .cf-hero-orb, .cf-live-wa, .cf-hero-scroll span {
    animation: none !important;
  }
  .cf-enter { opacity: 1; transform: none; transition: none; }
  [data-stagger] { opacity: 1; transform: none; }
  .cf-live-stage { transform: none !important; animation: none !important; }
}

.cf-footer {
  border-top: 1px solid var(--cf-line); padding: 1.5rem clamp(1rem, 4vw, 2.5rem);
  color: var(--cf-muted); font-size: 0.9rem;
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.45rem;
}
@media (min-width: 720px) {
  .cf-footer {
    flex-direction: row; flex-wrap: wrap; align-items: center;
    justify-content: space-between; gap: 0.75rem 1.5rem;
  }
  .cf-footer-brand { margin: 0; flex: 1 1 100%; }
}
/* ============================================================
   Storefront — Outlet layout (desktop-first + mobile)
   ============================================================ */
.store-shell {
  --o-radius: 14px;
  --o-radius-sm: 10px;
  --o-container: 1240px;
  --o-shadow: 0 10px 30px rgba(0,0,0,.12);
  --o-shadow-lg: 0 24px 60px rgba(0,0,0,.16);
  --o-transition: 180ms ease;
  --o-gutter: clamp(1.25rem, 3.5vw, 2.5rem);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background:
    radial-gradient(ellipse 70% 40% at 85% -10%, color-mix(in srgb, var(--brand-primary, #8CC34F) 14%, transparent), transparent 55%),
    #f3f4f2;
  color: #0f0f0f;
  font-family: "Urbanist", "Outfit", system-ui, sans-serif;
}
html:has(body.store-shell) {
  margin: 0;
  padding: 0;
  background: #f3f4f2;
}
.store-shell .cf-btn {
  background: var(--brand-primary, #8CC34F);
  color: #0a0a0a;
  border-radius: 999px;
  font-weight: 700;
  transition: var(--o-transition);
}
.store-shell .cf-btn:hover { filter: brightness(1.06); }
.store-shell .cf-btn-ghost {
  background: transparent;
  border: 1px solid #d5d5d5;
  color: #0f0f0f;
}
.store-topbar {
  background: #000;
  color: #e2e2e2;
  font-size: .82rem;
  padding: .45rem var(--o-gutter);
  display: flex; justify-content: space-between; gap: .75rem; flex-wrap: wrap;
}
.store-topbar a { color: var(--brand-primary, #8CC34F); }
.store-header {
  position: sticky; top: 0; z-index: 40;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1.25rem;
  padding: .95rem var(--o-gutter);
  background: rgba(0,0,0,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #222;
  min-height: 76px;
}
.store-header-left {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
  flex: 1 1 auto;
}
.store-ctx {
  display: flex;
  align-items: center;
  gap: .35rem;
  flex-shrink: 0;
}
.store-ctx-item { position: relative; }
.store-ctx-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  max-width: 11.5rem;
  padding: .4rem .55rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: .7rem;
  background: rgba(255,255,255,.04);
  color: #fff;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.store-ctx-btn:hover,
.store-ctx-btn[aria-expanded="true"],
.store-ctx-btn.has-value {
  border-color: color-mix(in srgb, var(--brand-primary, #8CC34F) 55%, #444);
  background: rgba(255,255,255,.08);
}
.store-ctx-ico {
  display: inline-flex;
  color: var(--brand-primary, #8CC34F);
  flex-shrink: 0;
}
.store-ctx-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}
.store-ctx-kicker {
  font-size: .62rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  font-weight: 700;
}
.store-ctx-value {
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 8.5rem;
}
.store-ctx-panel {
  position: absolute;
  top: calc(100% + .45rem);
  left: 0;
  width: min(20.5rem, calc(100vw - 1.5rem));
  padding: .95rem;
  border-radius: .9rem;
  background: #111;
  color: #f3f3f3;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
  z-index: 60;
}
.store-ctx-panel-end {
  left: auto;
  right: 0;
}
.store-ctx-panel-title {
  margin: 0;
  font-weight: 800;
  font-size: 1rem;
}
.store-ctx-panel-sub {
  margin: .35rem 0 .75rem;
  color: rgba(255,255,255,.55);
  font-size: .82rem;
}
.store-ctx-current {
  margin: 0 0 .65rem;
  padding: .45rem .6rem;
  border-radius: .55rem;
  background: rgba(140,195,79,.12);
  color: #d8f0a8;
  font-size: .84rem;
}
.store-ctx-input,
.store-ctx-select {
  width: 100%;
  margin-bottom: .45rem;
  padding: .55rem .65rem;
  border-radius: .6rem;
  border: 1px solid #333;
  background: #1a1a1a;
  color: #fff;
  font: inherit;
}
.store-ctx-select { min-height: 9rem; }
.store-ctx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .55rem;
}
.store-ctx-geo {
  display: grid;
  gap: .45rem;
  margin: 0 0 .75rem;
}
.store-ctx-geo > div {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: .5rem;
  align-items: baseline;
  padding: .4rem .55rem;
  border-radius: .55rem;
  background: rgba(255,255,255,.04);
}
.store-ctx-geo dt {
  margin: 0;
  font-size: .72rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  font-weight: 700;
}
.store-ctx-geo dd {
  margin: 0;
  font-weight: 700;
  font-size: .92rem;
}
.store-header .logo {
  font-family: "Urbanist", system-ui, sans-serif;
  font-weight: 800; font-size: clamp(1.05rem, 1.4vw, 1.25rem); letter-spacing: .04em;
  color: #fff; text-transform: uppercase;
  white-space: nowrap;
}
.store-header .logo span { color: var(--brand-primary, #8CC34F); }
.store-nav {
  display: flex;
  gap: .4rem;
  flex-wrap: nowrap;
  align-items: center;
  margin-left: auto;
}
.store-nav a {
  color: #ccc; font-size: .92rem; font-weight: 600;
  padding: .5rem 1rem; border-radius: 999px;
  transition: var(--o-transition);
  white-space: nowrap;
}
.store-nav a:hover, .store-nav a.active {
  background: rgba(140,195,79,.16); color: var(--brand-primary, #8CC34F);
}
.store-nav .cf-btn { white-space: nowrap; }
.store-body {
  width: min(100%, var(--o-container));
  margin: 0 auto;
  padding: clamp(1.5rem, 3vw, 2.5rem) var(--o-gutter) 4.5rem;
}

.device-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 3vw, 2.75rem);
  align-items: center;
  padding: clamp(1rem, 2vw, 1.75rem) 0 clamp(1.75rem, 3vw, 2.75rem);
}
.device-hero-visual {
  aspect-ratio: 1;
  max-height: min(520px, 58vh);
  width: 100%;
  margin-inline: auto;
  border-radius: calc(var(--o-radius) + 6px);
  background:
    radial-gradient(circle at 28% 28%, color-mix(in srgb, var(--brand-primary, #8CC34F) 45%, transparent), transparent 58%),
    radial-gradient(circle at 80% 75%, color-mix(in srgb, var(--brand-accent, #FC6320) 22%, transparent), transparent 45%),
    linear-gradient(160deg, #161616, #050505);
  border: 1px solid #2a2a2a;
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(3.5rem, 6vw, 5rem);
  box-shadow: var(--o-shadow-lg);
  overflow: hidden;
}
.device-hero-visual img { width: 72%; height: 72%; object-fit: contain; }
.device-hero h1 {
  font-family: "Urbanist", system-ui, sans-serif;
  font-weight: 800; letter-spacing: -0.02em;
  font-size: clamp(2rem, 3.4vw, 3rem); margin: 0 0 .55rem; color: #0f0f0f;
  line-height: 1.08;
}
.device-hero .specs { display: flex; flex-wrap: wrap; gap: .5rem; margin: .85rem 0 1.2rem; }
.device-hero .chip {
  padding: .4rem .8rem; border-radius: 999px; background: #fff;
  border: 1px solid #ddd; font-size: .84rem; color: #555;
}
.device-picker { max-width: 460px; }
.device-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: .35rem; }
.device-actions .cf-btn { min-width: 11rem; }

.catalog-section h2, .repairs-section h2, .upgrade-rail h3 {
  font-family: "Urbanist", system-ui, sans-serif;
  font-weight: 800; letter-spacing: -0.01em; color: #0f0f0f;
}
.upgrade-rails { display: grid; gap: 1.75rem; margin: 0.5rem 0 2rem; }
.upgrade-rail h3 { margin: 0 0 .85rem; font-size: clamp(1.2rem, 2vw, 1.45rem); }
.upgrade-rail .rail {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1rem;
  overflow: visible;
  padding-bottom: 0;
}
.catalog-section {
  margin: 2rem 0 2.5rem;
  padding: 1.5rem 0 0;
  border-top: 1px solid #e4e4e4;
}
.catalog-section > div:first-child {
  align-items: flex-start !important;
  margin-bottom: 1.25rem !important;
}
.catalog-filters {
  max-width: min(100%, 820px);
  overflow: visible;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  justify-content: flex-end;
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}
.product-card {
  border: 1px solid #e0e0e0; border-radius: var(--o-radius); overflow: hidden;
  background: #fff; transition: transform var(--o-transition), box-shadow var(--o-transition);
  color: #0f0f0f; text-decoration: none; display: flex; flex-direction: column;
  min-width: 0;
  height: 100%;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--o-shadow); }
.product-card .thumb {
  aspect-ratio: 1; background: linear-gradient(160deg, #f5f5f5, #ebebeb);
  display: flex; align-items: center; justify-content: center; font-size: 2.4rem;
  position: relative;
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .badge {
  position: absolute; left: .65rem; top: .65rem;
  background: var(--brand-primary, #8CC34F); color: #0a0a0a;
  font-size: .7rem; font-weight: 800; padding: .2rem .5rem; border-radius: 999px;
}
.product-card .body { padding: 1rem 1rem 1.1rem; display: flex; flex-direction: column; flex: 1; }
.product-card h3 { margin: 0 0 .35rem; font-size: 1.02rem; font-weight: 700; line-height: 1.25; }
.product-card .meta { color: #777; font-size: .82rem; margin-bottom: .5rem; }
.product-card .price { font-weight: 800; color: #0f0f0f; font-size: 1.08rem; margin-top: auto; }
.product-card .cta {
  display: block; margin-top: .85rem; text-align: center;
  padding: .55rem; border-radius: 999px; background: #0f0f0f; color: #fff;
  font-weight: 700; font-size: .85rem;
}
.product-card:hover .cta { background: var(--brand-primary, #8CC34F); color: #0a0a0a; }

.repairs-section {
  margin: 2.5rem 0 1rem;
  padding: 1.75rem 1.5rem 1.5rem;
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: calc(var(--o-radius) + 4px);
}
.repairs-section.rw {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 1.25rem 0 2rem;
}
.repairs-section > .device-picker { max-width: 420px; }
.repair-problems {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .65rem;
  margin: 0 0 1.35rem;
}
.repair-problem {
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  background: #fafafa;
  padding: 1rem 1.05rem;
  text-align: left;
  cursor: pointer;
  font: inherit;
  transition: var(--o-transition);
  min-height: 4.5rem;
}
.repair-problem:hover,
.repair-problem.is-on {
  border-color: var(--brand-primary, #8CC34F);
  background: color-mix(in srgb, var(--brand-primary, #8CC34F) 12%, #fff);
}
.repair-problem strong { display: block; font-size: 0.95rem; margin-bottom: 0.2rem; }
.repair-problem span { font-size: 0.8rem; color: #666; line-height: 1.35; }
.repair-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}
.repair-opt {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.95rem 1.05rem;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  margin: 0;
}
.repair-opt.is-on {
  border-color: var(--brand-primary, #8CC34F);
  background: color-mix(in srgb, var(--brand-primary, #8CC34F) 12%, #fff);
}
.repair-opt input { margin-top: 0.2rem; width: 1.1rem; height: 1.1rem; accent-color: var(--brand-primary, #8CC34F); flex-shrink: 0; }
.repair-opt .body { flex: 1; min-width: 0; }
.repair-opt .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand-accent, #FC6320);
  margin-bottom: 0.2rem;
}
.repair-opt h3 { font-size: 0.95rem; margin: 0 0 0.15rem; font-weight: 700; }
.repair-opt p { font-size: 0.82rem; color: #666; margin: 0; }
.repair-bar {
  position: sticky;
  bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 14px;
  box-shadow: var(--o-shadow);
  margin-top: 1.25rem;
  z-index: 5;
}
.repair-tiers { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .85rem; }
.repair-tier {
  border: 1px solid #ddd; border-radius: var(--o-radius); padding: 1.1rem; background: #fff;
}
.repair-tier.featured { border-color: var(--brand-primary, #8CC34F); }
.repair-tier h4 { margin: 0 0 .35rem; font-weight: 800; letter-spacing: .04em; }
.repair-tier .price { font-weight: 800; color: var(--brand-accent, #FC6320); margin: .5rem 0; }

.wa-sheet-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.45);
  display: none;
  align-items: center; justify-content: center;
  z-index: 90;
  padding: 1.5rem;
}
.wa-sheet-backdrop.open { display: flex; }
.wa-sheet {
  width: min(440px, 100%);
  background: #fff; color: #0f0f0f;
  border-radius: 1.1rem;
  padding: 1.4rem 1.35rem;
  border: 1px solid #ddd;
  box-shadow: var(--o-shadow-lg);
  max-height: min(90vh, 640px);
  overflow: auto;
}
.wa-float {
  position: fixed;
  right: 1.35rem;
  bottom: 1.35rem;
  z-index: 40;
  display: flex;
  flex-direction: row-reverse;
  gap: 0.5rem;
  align-items: center;
}
.wa-float .cf-btn { box-shadow: 0 10px 28px rgba(0,0,0,.16); }

.marketplace-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.market-card {
  border: 1px solid #ddd; border-radius: var(--o-radius); padding: 1.1rem; background: #fff;
}
.market-card h3 { margin: 0 0 .35rem; }
.market-card .city { color: #777; font-size: .85rem; margin-bottom: .75rem; }

.pdp-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
  padding: .5rem 0 2rem;
}
.pdp-layout .device-hero-visual { max-height: min(560px, 70vh); position: sticky; top: 96px; }
.pdp-chip.is-oos,
.pdp-chip:disabled {
  opacity: 0.42;
  text-decoration: line-through;
  cursor: not-allowed;
}

.store-footer {
  background: #000; color: #9a9a9a;
  padding: 1.75rem var(--o-gutter);
  margin-top: 2rem; font-size: .9rem;
}
.store-footer strong { color: #fff; }

.catalog-filters .cf-btn.is-active {
  background: var(--brand-primary, #8CC34F);
  color: #0a0a0a;
  border-color: transparent;
}
.cf-btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.82rem;
  border-radius: 0.55rem;
}
.store-nav-toggle {
  display: none !important;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid #444;
  border-radius: 0.65rem;
  background: #111;
  color: #fff;
  cursor: pointer;
}

@media (min-width: 1200px) {
  .store-shell { --o-container: 1320px; }
  .catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
  .upgrade-rail .rail { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .device-hero { min-height: 420px; }
}

@media (max-width: 1100px) {
  .upgrade-rail .rail { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .repair-problems { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .device-hero { grid-template-columns: 1fr; }
  .device-hero-visual {
    max-width: 360px;
    max-height: none;
    aspect-ratio: 1;
  }
  .pdp-layout { grid-template-columns: 1fr; }
  .pdp-layout .device-hero-visual { position: static; max-width: 420px; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .repair-problems { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .repair-list { grid-template-columns: 1fr; }
  .catalog-filters { justify-content: flex-start; max-width: 100%; }
}


@media (max-width: 900px) {
  .store-ctx-meta { display: none; }
  .store-ctx-btn { max-width: none; padding: .45rem; }
  .store-header-left { gap: .45rem; }
  .store-header .logo { font-size: .95rem; }
}
@media (max-width: 720px) {
  .store-nav-toggle { display: inline-flex !important; }
  .store-header { flex-wrap: wrap; }
  .store-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: .25rem;
    margin-left: 0;
    padding-top: .5rem;
  }
  .store-nav.is-open { display: flex; }
  .store-nav a { border-radius: 10px; }
  .store-nav .store-ctx {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .45rem;
    margin: .35rem 0;
  }
  .store-nav .store-ctx-btn {
    width: 100%;
    max-width: none;
  }
  .store-nav .store-ctx-meta { display: flex; }
  .store-nav .store-ctx-panel,
  .store-nav .store-ctx-panel-end {
    left: 0;
    right: 0;
    width: auto;
  }
  .upgrade-rail .rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(200px, 78vw);
    grid-template-columns: none;
    gap: .75rem;
    overflow-x: auto;
    padding-bottom: .4rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .upgrade-rail .rail > * { scroll-snap-align: start; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .repair-problems { grid-template-columns: 1fr 1fr; }
  .repair-tiers { grid-template-columns: 1fr; }
  .wa-sheet-backdrop { align-items: flex-end; padding: 0; }
  .wa-sheet {
    width: 100%;
    border-radius: 1.2rem 1.2rem 0 0;
    border-bottom: 0;
  }
  .wa-float {
    flex-direction: column;
    align-items: flex-end;
    right: 1rem;
    bottom: 1rem;
  }
  .device-actions .cf-btn { min-width: 0; flex: 1 1 auto; }
  .repairs-section { padding: 1.15rem 1rem 1.25rem; }
  .catalog-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
  }
}

@media (max-width: 480px) {
  .catalog-grid { grid-template-columns: 1fr; }
  .repair-problems { grid-template-columns: 1fr; }
}

/* Marketing form fields */
.cf-field { margin-bottom: 0.85rem; }
.cf-field label { display: block; font-size: 0.82rem; color: var(--cf-muted, #93a4b8); margin-bottom: 0.3rem; }
.cf-field input, .cf-field select, .cf-field textarea {
  width: 100%; padding: 0.65rem 0.75rem; border-radius: 0.65rem;
  border: 1px solid rgba(255,255,255,0.12); background: rgba(0,0,0,0.25); color: #f4f8fc;
  font: inherit;
}
.cf-field input:focus, .cf-field select:focus, .cf-field textarea:focus {
  outline: 2px solid rgba(155,198,90,0.45); outline-offset: 1px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ============================================================
   Boot splash — logo loading inside phone
   ============================================================ */
body.cf-booting {
  overflow: hidden;
}
body.cf-booting > :not(.cf-boot) {
  opacity: 0;
  pointer-events: none;
}
.cf-boot {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(155,198,90,0.16), transparent 58%),
    linear-gradient(165deg, #0a1822 0%, #0F2430 55%, #0c1c26 100%);
  transition: opacity .55s ease, visibility .55s ease;
}
.cf-boot[hidden] { display: none !important; }
.cf-boot.is-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.cf-boot-glow {
  position: absolute;
  width: min(52vw, 420px);
  height: min(52vw, 420px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155,198,90,0.28), transparent 68%);
  filter: blur(28px);
  animation: cfBootGlow 2.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes cfBootGlow {
  0%, 100% { transform: scale(0.92); opacity: .55; }
  50% { transform: scale(1.08); opacity: 1; }
}
.cf-boot-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.35rem;
  padding: 1.5rem;
  min-height: 10.5rem;
  min-width: min(78vw, 340px);
}
.cf-boot-svg {
  width: min(78vw, 340px);
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.45));
}
.cf-boot-phone {
  transform-origin: 22px 32px;
  animation: cfBootPhoneIn .7s cubic-bezier(.2,1.1,.3,1) both;
}
@keyframes cfBootPhoneIn {
  from { opacity: 0; transform: scale(.55) rotate(-12deg) translateY(18px); }
  to { opacity: 1; transform: none; }
}
.cf-boot-bar {
  transform-origin: 22.8px 53.5px;
  animation: cfBootBarPulse 1s ease-in-out .35s infinite;
}
@keyframes cfBootBarPulse {
  0%, 100% { opacity: .45; }
  50% { opacity: 1; }
}
.cf-boot-loader {
  opacity: 1;
  transition: opacity .35s ease;
}
.cf-boot-spin {
  transform-box: fill-box;
  transform-origin: center;
  animation: cfBootSpin .9s linear infinite;
}
@keyframes cfBootSpin {
  to { transform: rotate(360deg); }
}
.cf-boot-scan {
  animation: cfBootScan 1.35s ease-in-out infinite;
}
@keyframes cfBootScan {
  0% { transform: translateY(0); opacity: 0; }
  20% { opacity: .35; }
  55% { opacity: .22; }
  100% { transform: translateY(38px); opacity: 0; }
}
.cf-boot-c {
  opacity: 0;
  transform-origin: 24px 32px;
  transform: scale(.7);
}
.cf-boot-word {
  opacity: 0;
  transform: translateX(-10px);
}
.cf-boot-caption {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: rgba(244,248,252,.72);
  font-size: .92rem;
  letter-spacing: .04em;
  font-weight: 500;
}
.cf-boot-caption-dot {
  width: .55rem; height: .55rem; border-radius: 50%;
  background: var(--cf-accent, #9BC65A);
  box-shadow: 0 0 0 0 rgba(155,198,90,.45);
  animation: cfBootDot 1.1s ease-out infinite;
}
@keyframes cfBootDot {
  0% { box-shadow: 0 0 0 0 rgba(155,198,90,.5); }
  70% { box-shadow: 0 0 0 10px rgba(155,198,90,0); }
  100% { box-shadow: 0 0 0 0 rgba(155,198,90,0); }
}

/* Phase: loaded — C appears, spinner fades, wordmark slides in */
.cf-boot.is-ready .cf-boot-loader { opacity: 0; }
.cf-boot.is-ready .cf-boot-bar { animation: none; opacity: 1; }
.cf-boot.is-ready .cf-boot-c {
  animation: cfBootCIn .55s cubic-bezier(.2,1.2,.3,1) both;
}
.cf-boot.is-ready .cf-boot-word {
  animation: cfBootWordIn .65s cubic-bezier(.2,.9,.3,1) .18s both;
}
.cf-boot.is-ready .cf-boot-fy {
  animation: cfBootFyPop .45s ease .55s both;
}
.cf-boot.is-ready .cf-boot-caption { opacity: 0; transition: opacity .3s ease; }
@keyframes cfBootCIn {
  from { opacity: 0; transform: scale(.55) rotate(-18deg); }
  to { opacity: 1; transform: none; }
}
@keyframes cfBootWordIn {
  from { opacity: 0; transform: translateX(-14px); }
  to { opacity: 1; transform: none; }
}
@keyframes cfBootFyPop {
  0% { filter: brightness(1); }
  40% { filter: brightness(1.45); }
  100% { filter: brightness(1); }
}

/* Hello + device phase */
.cf-boot-hello {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-align: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.96);
}
.cf-boot-hello[hidden] { display: none !important; }
.cf-boot-hello-hi {
  margin: 0;
  font-family: var(--cf-display, "Syne", sans-serif);
  font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 3.6rem);
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, #fff 20%, #9BC65A 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cf-boot-hello-device {
  margin: 0.15rem 0 0;
  font-family: var(--cf-display, "Syne", sans-serif);
  font-weight: 700;
  font-size: clamp(1.15rem, 3.4vw, 1.55rem);
  color: #9BC65A;
  letter-spacing: -0.02em;
  min-height: 1.4em;
}
.cf-boot-hello-device:not([hidden]) {
  animation: cfBootDeviceIn .55s cubic-bezier(.2,1.1,.3,1) .15s both;
}
.cf-boot-hello-sub {
  margin: 0.55rem 0 0;
  color: rgba(244,248,252,.62);
  font-size: 0.92rem;
  max-width: 18rem;
  line-height: 1.4;
}
@keyframes cfBootDeviceIn {
  from { opacity: 0; transform: translateY(8px); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}

.cf-boot.is-hello .cf-boot-svg {
  opacity: 0;
  transform: scale(0.88) translateY(-8px);
  filter: blur(4px);
  transition: opacity .45s ease, transform .45s ease, filter .45s ease;
  pointer-events: none;
}
.cf-boot.is-hello .cf-boot-caption { display: none; }
.cf-boot.is-hello .cf-boot-hello {
  opacity: 1;
  pointer-events: auto;
  animation: cfBootHelloIn .55s cubic-bezier(.2,1.05,.3,1) both;
}
@keyframes cfBootHelloIn {
  from { opacity: 0; transform: translateY(16px) scale(0.94); }
  to { opacity: 1; transform: none; }
}

/* Exit toward hero logo */
.cf-boot.is-exit .cf-boot-stage {
  animation: cfBootExit .7s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes cfBootExit {
  to {
    transform: translateY(-12vh) scale(.9);
    opacity: 0;
    filter: blur(6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cf-boot, .cf-boot * {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  body.cf-booting > :not(.cf-boot) { opacity: 1; pointer-events: auto; }
}

