/* ============================================================
   Feasy Pro Landing — Page sections
   ============================================================ */

/* ────────────────────────────────────────────────────────────
   HERO
   ──────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--nav-h) + clamp(48px, 8vh, 96px));
  padding-bottom: clamp(72px, 10vh, 128px);
  background: var(--ink-deep);
  color: var(--text-on-dark);
  overflow: clip;
}

.hero-gl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}

/* CSS fallback aurora — visible until/unless WebGL paints */
.hero-fallback {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(42% 55% at 22% 28%, rgba(10, 132, 134, 0.5), transparent 70%),
    radial-gradient(38% 48% at 80% 20%, rgba(255, 204, 188, 0.2), transparent 70%),
    radial-gradient(50% 60% at 70% 85%, rgba(109, 76, 65, 0.55), transparent 72%),
    radial-gradient(45% 55% at 12% 85%, rgba(1, 47, 48, 0.85), transparent 75%);
  filter: blur(10px);
}

.hero.gl-active .hero-fallback {
  display: none;
}

/* Film grain */
.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* Fade hero into next section */
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(180deg, transparent, var(--ink-deep) 88%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
}

.hero-title {
  font-size: clamp(40px, 5.6vw, 68px);
  line-height: 1.04;
}

.hero-title .grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-title em {
  font-style: italic;
  font-weight: 400;
}

.hero-sub {
  max-width: 540px;
  font-size: clamp(16.5px, 1.7vw, 19.5px);
  line-height: 1.65;
  color: var(--text-on-dark-soft);
}

.hero-sub strong {
  color: var(--text-on-dark);
  font-weight: 600;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 6px;
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-on-dark-faint);
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-trust svg {
  width: 15px;
  height: 15px;
  color: #7fd0cd;
}

/* ── Hero 3D scene ── */
/*
 * Deliberately NOT preserve-3d. The layers are independently tilted flat cards
 * plus one true-3D bar sculpture; they are meant to stack by paint order, not
 * to share a depth space. Under preserve-3d the browser depth-sorts them as
 * coplanar polygons, and any layer whose plane passes through the sculpture
 * (the dashboard card and the halo both do) gets drawn slicing through the
 * bars. Flat compositing keeps each layer's own perspective tilt — the
 * perspective above still applies — while layering them by DOM order.
 */
.hero-scene {
  position: relative;
  height: clamp(440px, 46vw, 600px);
  perspective: 1400px;
  transform-style: flat;
}

.scene-layer {
  position: absolute;
  transform-style: preserve-3d;
  transition: transform 0.35s var(--ease-out);
  will-change: transform;
}

/* Glow ring behind scene */
.scene-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(520px, 90%);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: var(--grad-ring);
  filter: blur(52px);
  opacity: 0.5;
  animation: halo-spin 26s linear infinite;
}

@keyframes halo-spin {
  to { rotate: 360deg; }
}

/* Main dashboard card */
.scene-dash {
  inset: 8% 4% auto;
  transform: rotateX(9deg) rotateY(-9deg);
}

.scene-dash .glass {
  padding: 22px;
  border-radius: var(--r-xl);
  animation: float-a 9s ease-in-out infinite;
}

.dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.dash-head .title {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-on-dark-soft);
}

.dash-head .tag {
  padding: 4px 11px;
  border-radius: var(--r-pill);
  background: rgba(127, 208, 205, 0.14);
  border: 1px solid rgba(127, 208, 205, 0.3);
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-weight: 700;
  color: #7fd0cd;
}

.dash-figure {
  font-family: var(--font-heading);
  font-size: clamp(30px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.dash-caption {
  margin-top: 2px;
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-on-dark-faint);
}

.dash-chart {
  margin-top: 16px;
}

.dash-chart svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

/* Animated hero chart bars — scaleY from baseline */
.dash-chart .bar {
  transform-origin: center bottom;
  transform: scaleY(0);
  transform-box: fill-box;
  animation: bar-rise 1.1s var(--ease-out) forwards;
}

@keyframes bar-rise {
  to { transform: scaleY(1); }
}

.dash-chart .trend {
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: trend-draw 1.6s 0.7s var(--ease-out) forwards;
}

@keyframes trend-draw {
  to { stroke-dashoffset: 0; }
}

/* Floating side cards */
.scene-cash {
  right: -2%;
  bottom: 16%;
  width: min(250px, 62%);
  transform: rotateX(8deg) rotateY(-12deg) translateZ(90px);
}

.scene-cash .glass {
  padding: 18px;
  animation: float-b 8s ease-in-out infinite;
}

.mini-label {
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-on-dark-faint);
}

.mini-value {
  margin-top: 5px;
  font-family: var(--font-heading);
  font-size: 23px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.mini-spark {
  margin-top: 10px;
}

.mini-spark svg {
  width: 100%;
  height: auto;
}

.scene-check {
  left: -4%;
  bottom: 6%;
  width: min(260px, 66%);
  transform: rotateX(10deg) rotateY(-6deg) translateZ(140px);
}

.scene-check .glass {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 18px;
  animation: float-c 7s ease-in-out infinite;
}

.check-ico {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--grad-sunrise);
  color: #52382f;
  box-shadow: 0 6px 18px -4px rgba(255, 204, 188, 0.5);
}

.check-ico svg {
  width: 19px;
  height: 19px;
}

.check-copy .t,
.check-copy .s {
  display: block;
}

.check-copy .t {
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
}

.check-copy .s {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-on-dark-faint);
}

/* True-3D gradient bar sculpture */
.scene-bars {
  right: 4%;
  top: -3%;
  width: 220px;
  height: 200px;
  transform: translateZ(50px);
}

/*
 * The sculpture sits well above the scene's perspective origin, so the camera
 * already looks *up* at it. rotateX must out-tilt that by a wide enough margin
 * that the top caps stay front-facing for the whole sway — below roughly -18deg
 * their normals cross the view axis and the caps strobe between top and
 * underside once per half cycle.
 */
.bars3d {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(-24deg) rotateY(-32deg);
  animation: bars-sway 11s ease-in-out infinite;
}

@keyframes bars-sway {
  0%, 100% { transform: rotateX(-24deg) rotateY(-32deg) translateY(0); }
  50% { transform: rotateX(-21deg) rotateY(-24deg) translateY(-12px); }
}

.bar3d {
  position: absolute;
  bottom: 0;
  width: 44px;
  height: 0;
  transform-style: preserve-3d;
  transition: height 1.2s var(--ease-out);
}

.hero.in-view .bar3d,
.no-observer .bar3d {
  height: var(--h);
}

.bar3d:nth-child(1) { left: 0; --h: 84px; transition-delay: 0.35s; }
.bar3d:nth-child(2) { left: 60px; --h: 128px; transition-delay: 0.5s; }
.bar3d:nth-child(3) { left: 120px; --h: 176px; transition-delay: 0.65s; }

.bar3d i {
  position: absolute;
  display: block;
}

/*
 * Faces of a 44 x h x 34 box. Each face is rotated into place and then pushed
 * out by *half* the axis it caps (17px), so every translateZ here must stay at
 * 17px or the face detaches from the solid.
 *
 * Only the front face is rounded. Rounding the top or side as well punches a
 * gap at the corners where all three meet, since there is no bevel geometry to
 * fill it.
 */
.bar3d .f-front {
  inset: 0;
  transform: translateZ(17px);
  background: linear-gradient(180deg, rgba(255, 204, 188, 0.92), rgba(10, 132, 134, 0.88) 75%, rgba(0, 67, 69, 0.92));
  border-radius: 4px 4px 0 0;
  /* The bloom above the bar lives on this upright face on purpose: on the
   * near-horizontal top cap it projects as a hard streak instead of a glow. */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 -7px 20px rgba(255, 204, 188, 0.4);
}

.bar3d .f-side {
  top: 0;
  bottom: 0;
  right: 0;
  width: 34px;
  transform: rotateY(90deg) translateZ(17px);
  background: linear-gradient(180deg, rgba(219, 161, 143, 0.85), rgba(0, 91, 92, 0.82) 75%, rgba(1, 47, 48, 0.9));
}

.bar3d .f-top {
  top: 0;
  left: 0;
  width: 44px;
  height: 34px;
  transform: rotateX(90deg) translateZ(17px);
  background: linear-gradient(135deg, #ffe0d6, #f4b8a4);
}

.bar3d .f-glow {
  inset: auto -18px -26px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(10, 132, 134, 0.5), transparent 70%);
  transform: rotateX(90deg);
  filter: blur(6px);
}

/* Float animations at different phases */
@keyframes float-a {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes float-b {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes float-c {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

/* Scroll cue */
.hero-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 3;
  translate: -50%;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-on-dark-faint);
}

.hero-scroll-cue .wheel {
  width: 22px;
  height: 34px;
  border: 1.5px solid rgba(246, 241, 232, 0.35);
  border-radius: 12px;
  position: relative;
}

.hero-scroll-cue .wheel::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 3px;
  height: 7px;
  translate: -50%;
  border-radius: 3px;
  background: var(--peach);
  animation: wheel-drop 2.1s ease-in-out infinite;
}

@keyframes wheel-drop {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(11px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ────────────────────────────────────────────────────────────
   PRODUCT OVERVIEW (dark continuation)
   ──────────────────────────────────────────────────────────── */
.overview {
  background: var(--ink-deep);
  color: var(--text-on-dark);
  overflow: clip;
}

.overview-stage {
  margin: clamp(36px, 5vw, 56px) 0 clamp(40px, 6vw, 64px);
}

.overview-stage-shadow {
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.55), transparent 68%);
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.overview-card {
  position: relative;
  padding: 30px 28px;
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(246, 241, 232, 0.07), rgba(246, 241, 232, 0.02));
  border: 1px solid rgba(246, 241, 232, 0.11);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), border-color 0.35s ease;
}

.overview-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 204, 188, 0.35);
}

.overview-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2.5px;
  background: var(--grad-sunrise);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}

.overview-card:hover::after {
  transform: scaleX(1);
}

.overview-num {
  font-family: var(--font-heading);
  font-size: 15px;
  font-style: italic;
  color: var(--peach);
  opacity: 0.85;
}

.overview-card h3 {
  margin-top: 10px;
  font-family: var(--font-ui);
  font-size: 19px;
  font-weight: 700;
}

.overview-card p {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-on-dark-soft);
}

/* Gradient seam from dark to linen */
.seam {
  height: clamp(90px, 12vw, 150px);
  background: linear-gradient(180deg, var(--ink-deep) 0%, #3d3730 45%, var(--linen) 100%);
}

/* ────────────────────────────────────────────────────────────
   FEATURES
   ──────────────────────────────────────────────────────────── */
.features {
  background:
    radial-gradient(50% 34% at 12% 8%, rgba(226, 235, 233, 0.75), transparent 70%),
    radial-gradient(44% 30% at 92% 60%, rgba(255, 224, 214, 0.55), transparent 70%),
    var(--linen);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card--wide {
  grid-column: span 3;
  flex-direction: row;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(28px, 4vw, 44px);
  background: var(--grad-ink);
  border: 1px solid rgba(246, 241, 232, 0.1);
  color: var(--text-on-dark);
}

.feature-card--wide::after {
  background: radial-gradient(circle, rgba(10, 132, 134, 0.4), transparent 65%);
  width: 300px;
  height: 300px;
}

.feature-card--wide h3 {
  color: #fff;
  font-size: 22px;
}

.feature-card--wide p {
  color: var(--text-on-dark-soft);
}

.feature-card--wide .feature-tags span {
  background: rgba(246, 241, 232, 0.07);
  border-color: rgba(246, 241, 232, 0.16);
  color: var(--text-on-dark-soft);
}

.ai-visual {
  flex-shrink: 0;
  width: min(320px, 100%);
  display: grid;
  gap: 10px;
}

.ai-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 13px;
  background: rgba(246, 241, 232, 0.06);
  border: 1px solid rgba(246, 241, 232, 0.12);
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-on-dark-soft);
  line-height: 1.45;
}

.ai-line .spark {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 7px;
  background: var(--grad-sunrise);
  color: #52382f;
}

.ai-line .spark svg {
  width: 12px;
  height: 12px;
}

.ai-line strong {
  color: #fff;
}

/* ── Investor-deck wide card ── */
.feature-card--deck {
  background:
    radial-gradient(52% 80% at 88% 8%, rgba(255, 204, 188, 0.22), transparent 62%),
    linear-gradient(150deg, #52382f 0%, #6d4c41 55%, #86584a 100%);
}

.feature-card--deck::after {
  background: radial-gradient(circle, rgba(255, 204, 188, 0.35), transparent 65%);
}

/* Card stacks: intro copy on top, 3D editor window below */
.feature-card--deck {
  flex-direction: column;
  align-items: stretch;
}

.feature-card--deck .deck-intro {
  max-width: 780px;
}

/* ── 3D deck-editor window ── */
.deck-editor {
  position: relative;
  margin-top: 6px;
  perspective: 1700px;
}

.deck-editor-tilt {
  transform: rotateX(16deg) rotateY(-7deg) rotateZ(1deg);
  transform-style: preserve-3d;
  transition: transform 0.7s var(--ease-out);
  will-change: transform;
}

.feature-card--deck:hover .deck-editor-tilt {
  transform: rotateX(5deg) rotateY(-2deg) rotateZ(0deg);
}

.deck-editor-shadow {
  width: 70%;
  height: 36px;
  margin: 18px auto 0;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.5), transparent 68%);
  filter: blur(12px);
}

.deck-window {
  border-radius: 16px;
  overflow: hidden;
  background: var(--linen);
  border: 1px solid rgba(45, 41, 38, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 40px 90px -30px rgba(0, 0, 0, 0.65);
  font-family: var(--font-ui);
  text-align: left;
  color: var(--text);
}

/* Top bar */
.deck-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #f6f1e8, #ede6db);
  border-bottom: 1px solid var(--line);
}

.deck-name {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.deck-name .brand-mark {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  font-size: 13px;
  flex-shrink: 0;
}

.deck-actions {
  display: inline-flex;
  gap: 7px;
  flex-shrink: 0;
}

.deck-chip {
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: #fff;
  border: 1px solid var(--line);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-soft);
  white-space: nowrap;
}

.deck-chip--solid {
  background: var(--grad-brand);
  border-color: transparent;
  color: #fff;
}

/* Body: thumbnail rail + canvas */
.deck-body {
  display: grid;
  grid-template-columns: 136px 1fr;
  height: 500px;
}

.deck-rail {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  background: #fff;
  border-right: 1px solid var(--line);
  overflow: hidden;
}

.rail-item {
  display: block;
}

.rail-thumb {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  aspect-ratio: 16 / 10;
  padding: 8px 9px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--linen);
}

.rail-item.is-active .rail-thumb {
  outline: 2px solid var(--teal);
  outline-offset: 1.5px;
  box-shadow: 0 4px 12px -4px rgba(0, 91, 92, 0.45);
}

.rail-thumb--cover {
  background: var(--grad-brand);
  justify-content: flex-end;
}

.rail-label {
  display: block;
  margin-top: 5px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  white-space: nowrap;
}

.rail-item.is-active .rail-label {
  color: var(--teal);
}

/* Thumbnail micro-content */
.rail-thumb i {
  display: block;
}

.rt-mark {
  display: grid !important;
  place-items: center;
  width: 14px;
  height: 14px;
  margin-bottom: auto;
  border-radius: 4px;
  background: rgba(255, 204, 188, 0.9);
  color: #52382f;
  font-family: var(--font-heading);
  font-size: 9px;
  font-weight: 700;
  font-style: normal;
}

.rt-bar {
  width: 55%;
  height: 5px;
  border-radius: 3px;
  background: var(--grad-ember);
}

.rt-bar--teal {
  background: var(--grad-brand);
}

.rt-line {
  width: 85%;
  height: 4px;
  border-radius: 2px;
  background: rgba(45, 41, 38, 0.16);
}

.rt-line--short { width: 55%; }

.rt-line--light {
  width: 70%;
  background: rgba(255, 255, 255, 0.7);
}

.rt-dots,
.rt-tiles {
  display: flex !important;
  gap: 3px;
}

.rt-dots b {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 91, 92, 0.35);
}

.rt-tiles b {
  flex: 1;
  height: 10px;
  border-radius: 3px;
  background: rgba(255, 204, 188, 0.75);
}

.rt-chart {
  display: flex !important;
  align-items: flex-end;
  gap: 3px;
  flex: 1;
}

.rt-chart b {
  flex: 1;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, #7fd0cd, #0a8486);
}

.rt-chart b:nth-child(1) { height: 40%; }
.rt-chart b:nth-child(2) { height: 65%; }
.rt-chart b:nth-child(3) { height: 50%; background: linear-gradient(180deg, #ffe0d6, #db8f77); }
.rt-chart b:nth-child(4) { height: 90%; }

/* Canvas */
.deck-canvas {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 26px 28px 16px;
  background-color: #e9e2d6;
  background-image: radial-gradient(rgba(45, 41, 38, 0.1) 1px, transparent 1px);
  background-size: 16px 16px;
}

.deck-ai-chip {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: var(--r-pill);
  background: var(--grad-sunrise);
  color: #52382f;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 6px 20px -6px rgba(255, 204, 188, 0.7);
}

.deck-stage {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  min-height: 0;
  width: min(700px, 100%);
  margin-inline: auto;
  padding: 22px 26px;
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.stage-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stage-title {
  font-family: var(--font-heading);
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.stage-rule {
  width: 44px;
  height: 3px;
  border-radius: 2px;
  background: var(--grad-sunrise);
}

.stage-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.stage-tile {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 8px 13px;
  border-radius: 8px;
  background: var(--sage-light);
  border: 1px solid rgba(0, 91, 92, 0.14);
}

.st-label {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.st-value {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--teal-dim);
}

/* Selected chart block with resize handles */
.stage-chart {
  position: relative;
  flex: 1;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px 8px;
  border-radius: 8px;
}

.stage-chart.is-selected {
  outline: 1.5px dashed var(--teal-bright);
  outline-offset: 2px;
  background: rgba(10, 132, 134, 0.04);
}

.handle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--teal-bright);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.h-tl { top: -6px; left: -6px; }
.h-tr { top: -6px; right: -6px; }
.h-bl { bottom: -6px; left: -6px; }
.h-br { bottom: -6px; right: -6px; }

.sc-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex: 1;
}

.sc-bars i {
  flex: 1;
  height: var(--h, 50%);
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, #7fd0cd, #0a8486);
}

.sc-bars i:nth-child(even) {
  background: linear-gradient(180deg, #ffe0d6, #db8f77);
}

.sc-caption {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(45, 41, 38, 0.45);
}

/* Block toolbar */
.deck-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
}

.deck-toolbar span {
  padding: 6px 13px;
  border-radius: var(--r-pill);
  background: #fff;
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-soft);
  box-shadow: var(--shadow-sm);
}

.deck-toolbar .is-on {
  background: var(--grad-brand);
  border-color: transparent;
  color: #fff;
}

/* ────────────────────────────────────────────────────────────
   SHOWCASE
   ──────────────────────────────────────────────────────────── */
.showcase {
  background: var(--linen-tint);
  overflow: clip;
}

.showcase-stage {
  perspective: 1600px;
}

.showcase-tilt {
  transform: rotateX(var(--tiltX, 14deg));
  transform-style: preserve-3d;
  transition: transform 0.15s linear;
  will-change: transform;
}

.showcase-shadow {
  width: 72%;
  height: 44px;
  margin: 26px auto 0;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(45, 41, 38, 0.28), transparent 68%);
  filter: blur(10px);
}

.showcase-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: clamp(44px, 6vw, 64px);
}

.showcase-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.showcase-note .n-ico {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  color: var(--teal);
}

.showcase-note .n-ico svg {
  width: 19px;
  height: 19px;
}

.showcase-note h4 {
  font-size: 16px;
}

.showcase-note p {
  margin-top: 4px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-soft);
}

/* ────────────────────────────────────────────────────────────
   BUSINESS PLAN SHOWCASE
   ──────────────────────────────────────────────────────────── */
.plan-showcase {
  background: var(--linen);
  overflow: clip;
}

.plan-showcase .section-sub {
  max-width: 640px;
  margin-inline: auto;
}

/* ────────────────────────────────────────────────────────────
   METRICS SHOWCASE
   ──────────────────────────────────────────────────────────── */
.metrics-showcase {
  background: var(--linen-tint);
  overflow: clip;
}

.metrics-showcase .section-sub {
  max-width: 640px;
  margin-inline: auto;
}

.metrics-charts-stage {
  margin-top: clamp(8px, 1.5vw, 16px);
  perspective: 1600px;
}

/* ────────────────────────────────────────────────────────────
   FORECAST REPORT SHOWCASE
   ──────────────────────────────────────────────────────────── */
.report-showcase {
  background: var(--linen);
  overflow: clip;
}

.report-showcase .section-sub {
  max-width: 660px;
  margin-inline: auto;
}

.report-stage {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
  margin-top: 8px;
  transform-style: preserve-3d;
}

/* Soft float for the picker so it lifts with the scroll tilt. */
.report-showcase .report-picker {
  transform: translateZ(36px);
}

/* ────────────────────────────────────────────────────────────
   HOW IT WORKS
   ──────────────────────────────────────────────────────────── */
.how {
  background: var(--linen);
}

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: step;
}

/* Connector line behind step numbers */
.steps::before {
  content: "";
  position: absolute;
  top: 33px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, rgba(10, 132, 134, 0.5), rgba(255, 204, 188, 0.75), rgba(10, 132, 134, 0.5));
  mask-image: linear-gradient(90deg, transparent, #fff 6%, #fff 94%, transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.4s var(--ease-out) 0.2s;
}

.steps.in-view::before {
  transform: scaleX(1);
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.step-num {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  font-style: italic;
  color: var(--teal);
  transition: transform 0.35s var(--ease-spring), background 0.35s ease, color 0.35s ease;
}

.step:hover .step-num {
  transform: translateY(-4px) rotate(-3deg);
  background: var(--grad-brand);
  color: #fff;
}

.step h3 {
  font-family: var(--font-ui);
  font-size: 18px;
  font-weight: 700;
}

.step p {
  font-size: 15px;
  line-height: 1.62;
  color: var(--text-soft);
}

/* ────────────────────────────────────────────────────────────
   BENEFITS band (dark)
   ──────────────────────────────────────────────────────────── */
.benefits {
  background:
    radial-gradient(56% 70% at 85% 12%, rgba(10, 132, 134, 0.28), transparent 70%),
    radial-gradient(46% 60% at 8% 90%, rgba(109, 76, 65, 0.4), transparent 72%),
    var(--ink-warm);
  color: var(--text-on-dark);
}

.benefits-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.benefit-list {
  display: grid;
  gap: 14px;
}

.benefit {
  display: flex;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: rgba(246, 241, 232, 0.05);
  border: 1px solid rgba(246, 241, 232, 0.1);
  transition: transform 0.3s var(--ease-out), border-color 0.3s ease, background 0.3s ease;
}

.benefit:hover {
  transform: translateX(6px);
  background: rgba(246, 241, 232, 0.08);
  border-color: rgba(127, 208, 205, 0.4);
}

.benefit-ico {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: rgba(127, 208, 205, 0.13);
  border: 1px solid rgba(127, 208, 205, 0.3);
  color: #7fd0cd;
}

.benefit-ico svg {
  width: 20px;
  height: 20px;
}

.benefit h3 {
  font-family: var(--font-ui);
  font-size: 16.5px;
  font-weight: 700;
  color: #fff;
}

.benefit p {
  margin-top: 3px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-on-dark-soft);
}

/* ────────────────────────────────────────────────────────────
   USE CASES
   ──────────────────────────────────────────────────────────── */
.use-cases {
  background: var(--linen);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.case-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease;
}

.case-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.case-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--linen-tint);
}

.case-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease-out);
}

.case-card:hover .case-media img {
  transform: scale(1.04);
}

.case-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: var(--case-accent, var(--grad-brand));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

.case-card:hover .case-media::after {
  transform: scaleX(1);
}

.case-body {
  padding: 22px 24px 26px;
}

.case-kicker {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}

.case-card h3 {
  margin-top: 8px;
  font-family: var(--font-ui);
  font-size: 18.5px;
  font-weight: 700;
}

.case-card p {
  margin-top: 9px;
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--text-soft);
}

/* ────────────────────────────────────────────────────────────
   PRICING
   ──────────────────────────────────────────────────────────── */
.pricing {
  background:
    radial-gradient(44% 34% at 88% 6%, rgba(226, 235, 233, 0.8), transparent 70%),
    radial-gradient(40% 30% at 6% 72%, rgba(255, 224, 214, 0.5), transparent 70%),
    var(--linen);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  align-items: stretch;
  max-width: 940px;
  margin-inline: auto;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 38px 34px 34px;
  border-radius: var(--r-xl);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.price-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.price-card .btn {
  justify-content: center;
  margin-top: auto;
}

.price-head h3 {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

.price-tag {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 12px;
}

.price-currency {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  align-self: flex-start;
  margin-top: 8px;
}

.price-amount {
  font-family: var(--font-heading);
  font-size: clamp(52px, 6vw, 64px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.price-per {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-soft);
}

.price-desc {
  margin-top: 12px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-soft);
}

.price-list {
  display: grid;
  gap: 12px;
}

.price-list li {
  position: relative;
  padding-left: 30px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-soft);
}

.price-list li strong {
  color: var(--text);
}

.price-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background-color: var(--sage-light);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23005b5c' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 11px;
  background-position: center;
  background-repeat: no-repeat;
}

/* Featured (AI) card */
.price-card--featured {
  background:
    radial-gradient(58% 42% at 88% 0%, rgba(255, 204, 188, 0.2), transparent 62%),
    radial-gradient(50% 60% at 0% 100%, rgba(10, 132, 134, 0.35), transparent 66%),
    var(--grad-ink);
  border: 1px solid rgba(246, 241, 232, 0.14);
  color: var(--text-on-dark);
  box-shadow: var(--shadow-lg), 0 0 60px -18px rgba(10, 132, 134, 0.5);
}

/* Always-on gradient border ring */
.price-card--featured::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(140deg, rgba(255, 204, 188, 0.85), rgba(10, 132, 134, 0.8), rgba(255, 204, 188, 0.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.price-flag {
  position: absolute;
  top: -15px;
  left: 50%;
  translate: -50%;
  white-space: nowrap;
  padding: 7px 18px;
  border-radius: var(--r-pill);
  background: var(--grad-sunrise);
  color: #52382f;
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 8px 24px -6px rgba(255, 204, 188, 0.6);
}

.price-card--featured .price-head h3 {
  color: #7fd0cd;
}

.price-card--featured .price-per,
.price-card--featured .price-desc,
.price-card--featured .price-list li {
  color: var(--text-on-dark-soft);
}

.price-card--featured .price-list li strong {
  color: #fff;
}

.price-card--featured .price-list li::before {
  background-color: rgba(255, 204, 188, 0.16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffccbc' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
}

/* Add-on strip */
.pricing-addon {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 940px;
  margin: 26px auto 0;
  padding: 20px 26px;
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px dashed var(--line-strong);
}

.addon-badge {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  min-width: 62px;
  height: 44px;
  padding-inline: 12px;
  border-radius: var(--r-pill);
  background: var(--grad-brand);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  box-shadow: 0 8px 22px -8px rgba(0, 91, 92, 0.6);
}

.pricing-addon p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-soft);
}

.pricing-addon strong {
  color: var(--text);
}

/* ────────────────────────────────────────────────────────────
   TESTIMONIALS
   ──────────────────────────────────────────────────────────── */
.social {
  background: var(--linen-tint);
  /* Contain the tilted quote grid here, like every other showcase section,
     rather than letting the body-level clip catch it mid-animation. */
  overflow: clip;
}

.quote-stage {
  margin-top: clamp(28px, 4vw, 44px);
}

.quote-stage-shadow {
  width: 62%;
  margin-top: 34px;
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 10px 6px 26px;
  transform-style: preserve-3d;
}

/* Each card floats at its own depth so the scroll tilt reads as a
   layered wall rather than a flat grid. */
.quote-card {
  --accent: var(--teal-bright);
  --accent-soft: rgba(10, 132, 134, 0.14);

  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 24px 22px;
  border-radius: var(--r-lg);
  background: linear-gradient(165deg, #fff 0%, #fdfbf7 100%);
  border: 1px solid rgba(45, 41, 38, 0.09);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}

/* Gradient hairline along the top edge */
.quote-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent 78%);
}

/* Soft accent bloom in the upper-right corner */
.quote-card::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 68%);
  pointer-events: none;
}

.quote-card:nth-child(3n + 1) {
  transform: rotateY(4deg) translateZ(14px);
}

.quote-card:nth-child(3n + 2) {
  transform: translateZ(52px) translateY(-18px);
  box-shadow: var(--shadow-lg);
}

.quote-card:nth-child(3n + 3) {
  transform: rotateY(-4deg) translateZ(14px);
}

.quote-card:nth-child(2) {
  --accent: var(--peach);
  --accent-soft: rgba(255, 204, 188, 0.4);
}

.quote-card:nth-child(3) {
  --accent: var(--sage-mist);
  --accent-soft: rgba(210, 218, 200, 0.5);
}

.quote-card:nth-child(4) {
  --accent: var(--terracotta-bright);
  --accent-soft: rgba(156, 106, 88, 0.16);
}

.quote-card:nth-child(5) {
  --accent: var(--peach);
  --accent-soft: rgba(255, 204, 188, 0.4);
}

.quote-card:nth-child(6) {
  --accent: var(--sage-mist);
  --accent-soft: rgba(210, 218, 200, 0.5);
}

.quote-card:hover {
  transform: translateZ(78px) translateY(-10px) rotateY(0deg);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(10, 132, 134, 0.16);
}

/* Oversized closing quote sitting behind the text */
.quote-glyph {
  position: absolute;
  top: 6px;
  right: 18px;
  font-family: var(--font-heading);
  font-size: 96px;
  font-style: italic;
  line-height: 1;
  color: rgba(45, 41, 38, 0.06);
  pointer-events: none;
  user-select: none;
}

.quote-tag {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  font-family: var(--font-ui);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  transform: translateZ(18px);
}

.quote-card blockquote {
  position: relative;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text);
  transform: translateZ(12px);
}

.quote-who {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(45, 41, 38, 0.07);
  transform: translateZ(22px);
}

/* Gradient halo behind each portrait */
.quote-avatar-ring {
  display: grid;
  place-items: center;
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--grad-brand);
  box-shadow: 0 6px 16px -6px rgba(0, 91, 92, 0.55);
}

.quote-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--grad-sage);
  border: 2px solid #fff;
}

.quote-id {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.quote-who .name {
  font-family: var(--font-ui);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
}

.quote-who .role {
  margin-top: 1px;
  font-family: var(--font-ui);
  font-size: 12.5px;
  color: var(--text-soft);
}

/* ────────────────────────────────────────────────────────────
   FAQ
   ──────────────────────────────────────────────────────────── */
.faq {
  background: var(--linen);
}

/* ────────────────────────────────────────────────────────────
   FINAL CTA
   ──────────────────────────────────────────────────────────── */
.final-cta {
  padding-block: var(--section-pad);
  background: var(--linen);
}

.cta-panel {
  position: relative;
  padding: clamp(56px, 8vw, 104px) clamp(28px, 6vw, 88px);
  border-radius: clamp(24px, 4vw, 40px);
  background:
    radial-gradient(60% 90% at 82% 0%, rgba(255, 204, 188, 0.28), transparent 60%),
    radial-gradient(55% 80% at 12% 100%, rgba(10, 132, 134, 0.5), transparent 65%),
    var(--grad-ink);
  color: var(--text-on-dark);
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.cta-orb--a {
  top: -70px;
  right: 8%;
  width: 190px;
  height: 190px;
  background: radial-gradient(circle at 32% 30%, #ffe0d6, #f4b8a4 45%, rgba(219, 161, 143, 0.35) 78%, transparent);
  animation: float-a 10s ease-in-out infinite;
}

.cta-orb--b {
  bottom: -90px;
  left: 6%;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle at 35% 30%, rgba(127, 208, 205, 0.9), rgba(10, 132, 134, 0.7) 48%, rgba(1, 47, 48, 0.3) 80%, transparent);
  animation: float-b 12s ease-in-out infinite;
}

.cta-panel h2 {
  position: relative;
  max-width: 620px;
  margin-inline: auto;
  font-size: clamp(32px, 4.6vw, 52px);
}

.cta-panel h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--peach);
}

.cta-panel p {
  position: relative;
  max-width: 520px;
  margin: 18px auto 0;
  font-size: clamp(16px, 1.6vw, 18.5px);
  line-height: 1.65;
  color: var(--text-on-dark-soft);
}

.cta-panel .hero-ctas {
  position: relative;
  justify-content: center;
  margin-top: 34px;
}

.cta-footnote {
  position: relative;
  margin-top: 20px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-on-dark-faint);
}

/* ────────────────────────────────────────────────────────────
   FOOTER
   ──────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--ink-deep);
  color: var(--text-on-dark-soft);
  padding: clamp(56px, 8vw, 88px) 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: clamp(32px, 5vw, 64px);
  padding-bottom: clamp(40px, 6vw, 64px);
  border-bottom: 1px solid var(--line-on-dark);
}

.footer-blurb {
  margin-top: 16px;
  max-width: 300px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-on-dark-faint);
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-on-dark);
  margin-bottom: 18px;
}

.footer-col ul {
  display: grid;
  gap: 11px;
}

.footer-col a {
  font-family: var(--font-ui);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-on-dark-soft);
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--peach);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 28px;
  font-family: var(--font-ui);
  font-size: 13.5px;
  color: var(--text-on-dark-faint);
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--line-on-dark);
  color: var(--text-on-dark-soft);
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease-out);
}

.footer-social a:hover {
  color: var(--peach);
  border-color: rgba(255, 204, 188, 0.4);
  transform: translateY(-3px);
}

.footer-social svg {
  width: 17px;
  height: 17px;
}

/* ────────────────────────────────────────────────────────────
   RESPONSIVE
   ──────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .features-grid,
  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-card--wide {
    grid-column: span 2;
    flex-direction: column;
    align-items: flex-start;
  }

  .overview-grid,
  .quote-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Two columns: alternate the depth instead of the 3-up pattern. */
  .quote-card:nth-child(3n + 1),
  .quote-card:nth-child(3n + 2),
  .quote-card:nth-child(3n + 3) {
    transform: translateZ(16px);
  }

  .quote-card:nth-child(odd) {
    transform: rotateY(3deg) translateZ(16px);
  }

  .quote-card:nth-child(even) {
    transform: rotateY(-3deg) translateZ(16px);
  }

  .overview-card:last-child {
    grid-column: span 2;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 34px 22px;
  }

  .steps::before {
    display: none;
  }

  .showcase-notes {
    grid-template-columns: repeat(2, 1fr);
  }

  .report-stage {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .report-picker {
    max-width: 360px;
    margin-inline: auto;
  }

  .report-pages {
    min-height: 420px;
  }

  .report-sheet--cover {
    width: min(72%, 360px);
  }

  .report-sheet--pnl {
    width: min(88%, 480px);
  }
}

@media (max-width: 960px) {
  /* Row actions are the first thing to go when the frame narrows. */
  .app-grid .g-acts-col {
    display: none;
  }

  /* Plan hero actions: keep Generate + Download; drop the longer Import label. */
  .plan-hero-btn--ghost:nth-child(2) {
    display: none;
  }

  .plan-ui {
    grid-template-columns: 200px 1fr;
  }

  .plan-workspace {
    grid-template-columns: 180px 1fr;
  }

  .hero .container {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .hero-scene {
    height: clamp(400px, 62vw, 520px);
    max-width: 560px;
    margin-inline: auto;
    width: 100%;
  }

  .benefits-layout {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 520px;
  }

  .pricing-addon {
    max-width: 520px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .metrics-charts {
    grid-template-columns: 1fr;
  }

  .metrics-chart-card:nth-child(1),
  .metrics-chart-card:nth-child(2),
  .metrics-chart-card:nth-child(3),
  .metrics-chart-card:nth-child(4) {
    transform: none;
  }

  .hero {
    padding-top: calc(var(--nav-h) + 40px);
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .hero-scroll-cue {
    display: none;
  }

  /* Simplified scene on phones — the bar sculpture and oversized
     floating cards crowd the dashboard card at this width. */
  .scene-bars {
    display: none;
  }

  .scene-dash {
    inset: 6% 0 auto;
  }

  .scene-cash {
    width: 48%;
    right: 0;
    bottom: 24%;
  }

  .scene-check {
    left: 0;
    bottom: -3%;
    width: 76%;
  }

  .features-grid,
  .cases-grid,
  .overview-grid,
  .quote-grid,
  .steps,
  .showcase-notes {
    grid-template-columns: 1fr;
  }

  .quote-card:nth-child(odd),
  .quote-card:nth-child(even) {
    transform: none;
    box-shadow: var(--shadow-md);
  }

  .feature-card--wide,
  .overview-card:last-child {
    grid-column: span 1;
  }

  /* Sidebar folds into the horizontal nav strip the app itself uses on phones. */
  .app-ui {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
    gap: 10px;
    padding: 10px 14px;
  }

  .app-sidebar > div {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .app-sidebar-brand {
    padding: 0;
    white-space: nowrap;
  }

  .app-company,
  .app-subnav,
  .app-nav-badge,
  .app-sidebar-foot {
    display: none;
  }

  .app-nav {
    flex-direction: row;
    gap: 4px;
    padding: 0;
  }

  .app-nav-item {
    white-space: nowrap;
    padding: 6px 10px;
  }

  .app-body,
  .app-page-head,
  .app-tabs {
    padding-inline: 14px;
  }

  /* Only Year 1 survives; the later years need width the phone hasn't got. */
  .app-grid .g-y2,
  .app-grid .g-y3 {
    display: none;
  }

  .app-grid .g-forecast {
    letter-spacing: 0.1em;
  }

  .plan-ui {
    grid-template-columns: 1fr;
  }

  .plan-ui > .app-sidebar {
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
    gap: 10px;
    padding: 10px 14px;
  }

  .plan-ui > .app-sidebar > div {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .plan-ui .app-sidebar-brand {
    padding: 0;
    white-space: nowrap;
  }

  .plan-ui .app-company,
  .plan-ui .app-sidebar-foot {
    display: none;
  }

  .plan-ui .app-nav {
    flex-direction: row;
    gap: 4px;
    padding: 0;
  }

  .plan-ui .app-nav-item {
    white-space: nowrap;
    padding: 6px 10px;
  }

  .plan-workspace {
    grid-template-columns: 1fr;
  }

  .plan-toc {
    display: none;
  }

  .plan-hero-title {
    font-size: 18px;
  }

  .plan-hero-btn--ghost {
    display: none;
  }

  .plan-card h4 {
    font-size: 20px;
  }

  .plan-editor {
    padding: 14px;
  }

  .report-picker {
    display: none;
  }

  .report-pages {
    min-height: 380px;
  }

  .report-sheet--cover {
    display: none;
  }

  .report-sheet--pnl {
    position: relative;
    top: 0;
    right: auto;
    width: 100%;
    transform: none;
  }

  .report-showcase .report-picker {
    transform: none;
  }

  .rev-form-ui {
    grid-template-columns: 1fr;
  }

  .rev-form-ui > .app-sidebar {
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
    gap: 10px;
    padding: 10px 14px;
  }

  .rev-form-ui > .app-sidebar > div {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .rev-form-ui .app-sidebar-brand {
    padding: 0;
    white-space: nowrap;
  }

  .rev-form-ui .app-company,
  .rev-form-ui .app-sidebar-foot,
  .rev-form-ui .app-nav-badge,
  .rev-form-ui .app-subnav {
    display: none;
  }

  .rev-form-ui .app-nav {
    flex-direction: row;
    gap: 4px;
    padding: 0;
  }

  .rev-form-ui .app-nav-item {
    white-space: nowrap;
    padding: 6px 10px;
  }

  .rev-form-ui .app-tabs .app-tab:nth-child(n + 5) {
    display: none;
  }

  .rev-field-row {
    grid-template-columns: 1fr 1fr;
  }

  .rev-field-row .rev-field:nth-child(3) {
    grid-column: 1 / -1;
  }

  .metrics-charts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metrics-chart-card:nth-child(1),
  .metrics-chart-card:nth-child(2),
  .metrics-chart-card:nth-child(3),
  .metrics-chart-card:nth-child(4) {
    transform: translateZ(12px);
  }

  .rs-table th:nth-child(3),
  .rs-table td:nth-child(3),
  .rs-table th:nth-child(4),
  .rs-table td:nth-child(4) {
    display: none;
  }

  /* Deck editor mockup: thumbnail rail becomes a horizontal strip */
  .deck-editor-tilt {
    transform: rotateX(9deg);
  }

  .deck-body {
    grid-template-columns: 1fr;
    height: auto;
  }

  .deck-stage {
    min-height: 250px;
  }

  .deck-rail {
    flex-direction: row;
    overflow: hidden;
    gap: 8px;
    padding: 10px 12px;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .rail-item {
    flex: 1 1 0;
    min-width: 0;
  }

  .rail-label {
    display: none;
  }

  .deck-canvas {
    padding: 20px 14px 14px;
  }

  .deck-stage {
    padding: 14px 16px;
    gap: 10px;
  }

  .deck-name {
    font-size: 11px;
  }

  .deck-actions .deck-chip:not(.deck-chip--solid) {
    display: none;
  }

  .deck-ai-chip {
    top: 6px;
    right: 8px;
    font-size: 10px;
    padding: 5px 10px;
  }

  .price-card {
    padding: 32px 24px 28px;
  }

  .pricing-addon {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
