/* =========================================================
   TrinkCeb — home page
   Base rules describe a complete, readable static layout.
   Scroll-driven states are layered on by home.js through
   `.motion` (set on <html> when motion is allowed) and the
   `.is-pinned` classes toggled per breakpoint.
   ========================================================= */

/* Per-window UI scale (only above the compact container size) */
@container (min-width: 701px) {
  .story__window { --ui-scale: 1.62; --ui-max: 14px; }
  .showcase__window { --ui-scale: 1.22; --ui-max: 14.5px; }
  .order-window { --ui-scale: 2.35; --ui-max: 14px; }
}

.section-head {
  max-width: 780px;
  margin: 0 auto clamp(48px, 6vw, 72px);
  text-align: center;
}
.section-head .h2 { margin-bottom: 18px; text-wrap: balance; }
.section-head--left { margin-left: 0; text-align: left; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(44px, 8vh, 96px)) 0 clamp(72px, 10vw, 140px);
  overflow: clip;
  background: linear-gradient(180deg, #fff 0%, #F6F9FF 40%, var(--brand-50) 70%, #fff 100%);
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__glow {
  position: absolute; left: 50%; top: 46%;
  width: min(1200px, 130vw); height: 760px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(11, 97, 255, 0.34), rgba(11, 97, 255, 0.12) 50%, transparent 78%);
  filter: blur(24px);
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(17, 24, 39, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 39, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 75% 50% at 50% 22%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 50% at 50% 22%, #000 25%, transparent 75%);
}

.hero__copy {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.hero__title { margin: 26px auto 22px; max-width: 1040px; text-wrap: balance; }
.hero__accent { color: var(--brand); }
.hero__lead { max-width: 640px; margin: 0 auto; text-wrap: pretty; }
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

.hero__stage {
  position: relative; z-index: 1;
  width: min(1120px, calc(100% - 2 * var(--gutter)));
  margin: clamp(52px, 8vw, 88px) auto 0;
  perspective: 1800px;
}
.hero__mock { transform-origin: 50% 0%; will-change: transform; }
.motion .hero__mock { transform: rotateX(16deg) scale(0.93); }

.float-card {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 12px;
  min-width: 196px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(17, 24, 39, 0.06);
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lg);
  font-size: 16px;
  animation: bob 7s ease-in-out infinite;
}
.float-card small { display: block; font-size: 12px; font-weight: 500; color: var(--subtle); }
.float-card b { display: block; font-size: 15px; font-weight: 700; color: var(--dark); }
.float-card .ui-bar { width: 128px; margin-top: 7px; font-size: 14px; }
.float-card__icon {
  width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand);
}
.float-card__icon--orange { background: var(--orange-bg); color: var(--orange); }
.float-card__spark { width: 80px; height: 28px; }
.float-card--project { left: -5%; top: 20%; animation-delay: -1s; }
.float-card--invoice { right: -6%; top: 7%; animation-delay: -3s; }
.float-card--income { right: -4%; top: 58%; animation-delay: -5s; }
.float-card--customer { left: -7%; top: 66%; animation-delay: -2s; }
.text-green { color: var(--green) !important; }
.text-orange { color: var(--orange) !important; }

.avatar-stack { display: flex; }
.avatar-stack span {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  margin-left: -9px;
  border: 2px solid #fff;
  background: var(--brand); color: #fff;
  font-size: 11px; font-weight: 700;
}
.avatar-stack span:first-child { margin-left: 0; }
.avatar-stack span:nth-child(2) { background: var(--purple); }
.avatar-stack span:nth-child(3) { background: #F97316; }

@keyframes bob { 50% { translate: 0 -8px; } }

.scroll-cue {
  position: absolute; z-index: 4;
  left: 50%; top: calc(100svh - 70px);
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 9px;
  border-radius: 999px;
  border: 1px solid rgba(17, 24, 39, 0.06);
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 13px; font-weight: 600; color: var(--muted);
  box-shadow: var(--shadow-sm);
}
.scroll-cue__mouse {
  position: relative;
  width: 18px; height: 26px; border-radius: 10px;
  border: 2px solid #9CA3AF;
}
.scroll-cue__mouse span {
  position: absolute; left: 50%; top: 5px;
  width: 3px; height: 6px; margin-left: -1.5px;
  border-radius: 3px; background: var(--brand);
  animation: wheel 1.8s var(--ease) infinite;
}
@keyframes wheel {
  0% { opacity: 0; transform: translateY(-2px); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(8px); }
}
@media (max-height: 640px) { .scroll-cue { display: none; } }

@media (max-width: 860px) {
  .float-card { min-width: 0; padding: 9px 11px; gap: 9px; border-radius: 13px; }
  .float-card b { font-size: 13px; }
  .float-card small { font-size: 11px; }
  .float-card__icon { width: 30px; height: 30px; border-radius: 9px; }
  .float-card .ui-bar { width: 88px; }
  .float-card--project { left: -1%; top: -9%; }
  .float-card--invoice { right: -1%; top: auto; bottom: -8%; }
  .float-card--income, .float-card--customer { display: none; }
  .float-card--invoice .badge { display: none; }
}

/* ---------- Product story ---------- */
.story { position: relative; background: #fff; }
.story__pin { padding: clamp(88px, 12vw, 150px) 0; }
.story__layout {
  max-width: 1320px;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.story__title { margin-bottom: 44px; max-width: 11ch; }
.story__steps { display: flex; gap: 26px; }
.story__progress { position: relative; flex-shrink: 0; width: 2px; border-radius: 2px; background: var(--line); }
.story__progress span {
  position: absolute; inset: 0;
  border-radius: inherit;
  background: var(--brand);
  transform-origin: top;
}
.story__stages { list-style: none; display: grid; gap: 30px; }
.story__stage { display: flex; gap: 18px; transform-origin: left center; }
.story__num { padding-top: 5px; font-size: 13px; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; }
.story__stage h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); font-weight: 700; letter-spacing: -0.02em; color: var(--dark); margin-bottom: 6px; }
.story__stage p { color: var(--muted); max-width: 36ch; }

.story__views { position: relative; }
.story__view + .story__view { margin-top: 0.6em; padding-top: 1.6em; border-top: 1px dashed var(--line); }

/* Pinned (desktop) mode */
.story.is-pinned .story__pin {
  height: 100svh;
  padding: var(--nav-h) 0 0;
  display: flex; align-items: center;
}
.story.is-pinned .story__stage { opacity: 0.3; }
.story.is-pinned .story__stage.is-active { opacity: 1; }
.story.is-pinned .story__views { display: grid; }
.story.is-pinned .story__view { grid-area: 1 / 1; margin: 0; padding: 0; border: 0; }

@media (max-width: 1023px) {
  .story__layout { grid-template-columns: 1fr; }
  .story__title { max-width: 14ch; }
}

/* ---------- Showcase ---------- */
.showcase {
  position: relative;
  padding: clamp(88px, 12vw, 150px) 0 clamp(96px, 12vw, 160px);
  background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 30%, var(--bg-soft) 100%);
  overflow: clip;
}
.showcase__head { text-align: center; max-width: 820px; }
.showcase__head .h2 { margin-bottom: 18px; }
.demo-chip {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 26px;
  padding: 7px 14px;
  border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font-size: 13px; font-weight: 500; color: var(--subtle);
}
.demo-chip .icon { width: 15px; height: 15px; color: var(--brand); }
.showcase__stage { margin-top: clamp(48px, 6vw, 72px); max-width: 1280px; }
.showcase__window { transform-origin: 50% 0%; }
.motion .showcase__window { transform: scale(0.8); }

/* ---------- Problem → solution ---------- */
.problem { position: relative; background: #F4F5F7; overflow: clip; }
.problem__pin { padding: clamp(88px, 11vw, 140px) 0; }
.problem__head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.problem__head .h2 { margin-bottom: 18px; text-wrap: balance; }

.problem__stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.problem__side { position: relative; }
.problem__label {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 18px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--subtle);
}
.problem__label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.problem__label--brand { color: var(--brand); }

.problem__chaos { min-height: 470px; }
.chaos-card {
  position: absolute;
  max-width: 236px;
  padding: 12px 14px;
  border-radius: 14px; border: 1px solid var(--line); background: #fff;
  box-shadow: var(--shadow);
  font-size: 14px;
  will-change: transform;
}
.chaos-card small {
  display: block; margin-bottom: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px; color: var(--faint);
}
.chaos-card b { font-weight: 600; color: var(--dark); line-height: 1.35; }
.chaos-card ul { list-style: none; display: grid; gap: 4px; color: var(--muted); font-size: 13.5px; }
.chaos-card li::before { content: "☐ "; color: var(--faint); }
.chaos-card--note { left: 2%; top: 52px; background: #FEF9C3; border-color: #FDE68A; transform: rotate(-6deg); }
.chaos-card--note small { color: #A16207; }
.chaos-card--list { left: 50%; top: 28px; transform: rotate(4deg); }
.chaos-card--invoice { left: 9%; top: 190px; transform: rotate(3deg); }
.chaos-card--contact { left: 47%; top: 200px; transform: rotate(-4deg); }
.chaos-card--sheet { left: 0%; top: 330px; transform: rotate(-2deg); }
.chaos-card--mail { left: 45%; top: 352px; transform: rotate(5deg); }
.sheet {
  display: grid; grid-template-columns: auto auto; gap: 2px 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px; color: var(--muted);
}

.order-list { display: flex; flex-direction: column; gap: 0.6em; padding: 1.1em 1.2em 1.3em; background: var(--bg-soft); }
.order-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.9em; align-items: center;
  padding: 0.75em 0.95em;
  border-radius: 0.8em; border: 1px solid var(--line); background: #fff;
}
.order-row b { display: block; font-size: 0.95em; color: var(--dark); }
.order-row small { display: block; font-size: 0.78em; color: var(--subtle); }
.order-row__icon {
  width: 2.3em; height: 2.3em; border-radius: 0.6em;
  display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand);
}
.order-row__icon--orange { background: var(--orange-bg); color: var(--orange); }
.order-row__icon--purple { background: var(--purple-bg); color: var(--purple); }
.order-row__icon--green { background: var(--green-bg); color: var(--green); }

.problem.is-pinned .problem__pin {
  height: 100svh;
  padding: var(--nav-h) 0 0;
  display: flex; align-items: center;
}
.problem.is-pinned .problem__head { margin-bottom: 40px; }

@media (max-width: 860px) {
  .problem__stage { grid-template-columns: 1fr; }
  .problem__chaos { min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .problem__chaos .problem__label { grid-column: 1 / -1; margin-bottom: 4px; }
  .chaos-card { position: relative; left: auto !important; top: auto !important; max-width: none; }
}

/* ---------- Features ---------- */
.features { padding: clamp(96px, 12vw, 160px) 0; background: #fff; }
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.feature {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  min-height: 420px;
  padding: clamp(24px, 3vw, 34px);
  border-radius: 28px; border: 1px solid var(--line);
  background: var(--bg-soft);
  overflow: hidden;
  transition: translate .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.feature:hover { translate: 0 -4px; box-shadow: var(--shadow-lg); border-color: var(--brand-100); }
.feature--projects { grid-column: span 4; }
.feature--customers, .feature--finance, .feature--invoices, .feature--hub { grid-column: span 2; }
.feature--hub { background: var(--darker); border-color: var(--darker); }
.feature--hub h3 { color: #fff; }
.feature--hub p { color: #9AA3B2 !important; }
.feature--hub .feature__tag { color: #8DB4FF; }
.feature__tag {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
  font-size: 13px; font-weight: 700; color: var(--brand);
}
.feature__tag .icon { width: 17px; height: 17px; }
.feature p { margin-top: 10px; color: var(--muted); max-width: 44ch; }
.feature__art { position: relative; flex: 1; min-height: 180px; display: flex; align-items: flex-end; }

.fx-projects { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.fx-projects__col { display: grid; gap: 10px; }
.fx-label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--subtle); }
.fx-task {
  display: grid; gap: 6px;
  padding: 14px 16px;
  border-radius: 14px; border: 1px solid var(--line); background: #fff;
  box-shadow: var(--shadow-sm);
  font-size: 16px;
  transition: transform .55s var(--ease), box-shadow .55s var(--ease);
}
.fx-task b { font-size: 15px; color: var(--dark); }
.fx-task small { font-size: 13px; color: var(--subtle); }
.fx-task .ui-chip { justify-self: start; }
.fx-task--ghost { min-height: 76px; border-style: dashed; background: transparent; box-shadow: none; }
.feature--projects:hover .fx-projects__col:first-child .fx-task:nth-child(2) { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature--projects:hover .fx-task--done { transform: translateY(-4px) rotate(-1deg); }

.fx-customers { flex-direction: column; align-items: stretch; justify-content: flex-end; gap: 10px; }
.fx-customer {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-radius: 14px; border: 1px solid var(--line); background: #fff;
  font-size: 16px;
  transition: transform .55s var(--ease), box-shadow .55s var(--ease), border-color .55s var(--ease);
}
.fx-customer b { display: block; font-size: 14.5px; color: var(--dark); }
.fx-customer small { display: block; font-size: 12.5px; color: var(--subtle); }
.fx-customer.is-lifted { transform: translateX(12px) scale(1.03); box-shadow: var(--shadow-lg); border-color: var(--brand-100); }
.feature--customers:hover .fx-customer.is-lifted { transform: translateX(20px) scale(1.05); }

.fx-finance { flex-direction: column; align-items: stretch; justify-content: flex-end; gap: 18px; }
.fx-finance__bars { display: flex; align-items: flex-end; gap: 10px; height: 132px; }
.fx-finance__bars i {
  flex: 1; height: var(--h);
  border-radius: 8px 8px 4px 4px;
  background: var(--brand-100);
  transform-origin: bottom;
  transition: background .45s var(--ease), transform .55s var(--ease);
}
.fx-finance__bars i.is-hl { background: var(--brand); }
.feature--finance:hover .fx-finance__bars i:not(.is-hl) { background: var(--brand-200); }
.feature--finance:hover .fx-finance__bars i.is-hl { transform: scaleY(1.06); }
.fx-finance__sum { display: flex; align-items: baseline; justify-content: space-between; }
.fx-finance__sum small { font-size: 13px; color: var(--subtle); }
.fx-finance__sum b { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; color: var(--dark); }

.fx-invoice { align-items: center; justify-content: center; }
.fx-invoice__doc {
  width: 86%;
  display: grid; gap: 12px;
  padding: 18px;
  border-radius: 16px; border: 1px solid var(--line); background: #fff;
  box-shadow: var(--shadow);
  font-size: 16px;
  transform: rotate(-2.5deg);
  transition: transform .55s var(--ease);
}
.fx-invoice__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fx-invoice__top b { font-size: 14px; color: var(--dark); }
.fx-line { height: 8px; border-radius: 99px; background: var(--line-soft); }
.fx-line--short { width: 58%; }
.fx-invoice__total { display: flex; align-items: baseline; justify-content: space-between; padding-top: 10px; border-top: 1px dashed var(--line); }
.fx-invoice__total small { font-size: 13px; color: var(--subtle); }
.fx-invoice__total b { font-size: 19px; font-weight: 800; color: var(--dark); }
.fx-invoice__stamp {
  position: absolute; right: 6%; top: 16%;
  padding: 6px 14px;
  border: 2px solid var(--green); border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--green);
  font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  opacity: 0;
  transform: rotate(12deg) scale(1.5);
  transition: opacity .4s var(--ease), transform .55s var(--ease);
}
.feature--invoices:hover .fx-invoice__doc { transform: rotate(0deg); }
.feature--invoices:hover .fx-invoice__stamp { opacity: 1; transform: rotate(10deg) scale(1); }

.fx-hub { align-items: center; justify-content: center; min-height: 230px; }
.fx-hub__ring {
  position: absolute; left: 50%; top: 50%;
  width: 150px; height: 150px; margin: -75px 0 0 -75px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.18);
}
.fx-hub__ring--outer { width: 224px; height: 224px; margin: -112px 0 0 -112px; border-style: solid; border-color: rgba(255, 255, 255, 0.07); }
.fx-hub__core {
  position: relative; z-index: 1;
  width: 66px; height: 66px; border-radius: 20px;
  display: grid; place-items: center;
  background: #fff;
  box-shadow: 0 0 0 10px rgba(11, 97, 255, 0.18), 0 20px 40px rgba(11, 97, 255, 0.35);
}
.fx-hub__core img { width: 28px; height: auto; }
.fx-hub__node {
  --r: 75px;
  position: absolute; left: 50%; top: 50%;
  width: 42px; height: 42px; margin: -21px 0 0 -21px;
  display: grid; place-items: center;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #232A3B;
  color: #fff;
  transform: rotate(var(--a)) translateX(var(--r)) rotate(calc(-1 * var(--a)));
  transition: transform .6s var(--ease), background .4s;
}
.fx-hub__node .icon { width: 18px; height: 18px; }
.feature--hub:hover .fx-hub__node { --r: 92px; background: var(--brand); }

.features__note {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 28px;
  font-size: 14px; color: var(--subtle); text-align: center;
}
.features__note .icon { width: 16px; height: 16px; }

@media (max-width: 1080px) {
  .feature--projects { grid-column: span 6; }
  .feature--customers, .feature--finance { grid-column: span 3; }
  .feature--invoices, .feature--hub { grid-column: span 3; }
}
@media (max-width: 680px) {
  .bento { grid-template-columns: 1fr; }
  .feature--projects, .feature--customers, .feature--finance, .feature--invoices, .feature--hub { grid-column: auto; }
  .feature { min-height: 0; }
  .fx-projects { grid-template-columns: 1fr; }
  .fx-projects__col:last-child { display: none; }
}

/* ---------- How it works ---------- */
.steps { position: relative; background: #fff; border-top: 1px solid var(--line-soft); }
.steps__pin { padding: clamp(96px, 12vw, 150px) 0; }
.steps__wrap { position: relative; }
.steps__line { position: absolute; left: 22px; right: 0; top: 21px; height: 2px; border-radius: 2px; background: var(--line); }
.steps__line span { position: absolute; inset: 0; border-radius: inherit; background: var(--brand); transform-origin: left center; }
.steps__list { list-style: none; position: relative; display: flex; gap: clamp(20px, 3vw, 40px); }
.step { flex: 1 1 0; min-width: 0; transition: flex-grow .8s var(--ease), opacity .5s var(--ease); }
.step__head { display: flex; flex-direction: column; gap: 18px; }
.step__num {
  position: relative; z-index: 1;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line); background: #fff;
  font-size: 14px; font-weight: 700; color: var(--subtle);
  transition: background .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease);
}
.step.is-active .step__num,
.step.is-done .step__num,
.steps:not(.is-pinned) .step__num { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 0 0 6px rgba(11, 97, 255, 0.12); }
.step__body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .8s var(--ease); }
.step__inner { min-height: 0; overflow: hidden; }
.step__inner p { margin-top: 12px; color: var(--muted); max-width: 46ch; }

.step__art {
  max-width: 440px;
  margin: 24px 0 8px;
  padding: 18px;
  border-radius: 20px; border: 1px solid var(--line); background: #fff;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 6px 14px -6px rgba(17, 24, 39, 0.08);
}
.step-form { display: grid; gap: 10px; }
.step-form__row { display: grid; gap: 3px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); }
.step-form__row:first-child { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11, 97, 255, 0.12); }
.step-form__row small { font-size: 12px; font-weight: 600; color: var(--subtle); }
.step-form__row span { font-size: 14.5px; font-weight: 600; color: var(--dark); }
.step-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.caret { display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--brand); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.step-form__btn { display: block; padding: 11px; border-radius: 10px; background: var(--brand); color: #fff; text-align: center; font-size: 14px; font-weight: 600; }

.step-flow__item { position: relative; display: flex; gap: 12px; padding-bottom: 16px; }
.step-flow__item:last-child { padding-bottom: 0; }
.step-flow__item:not(:last-child)::before { content: ""; position: absolute; left: 6px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.step-flow__item.is-done:not(:last-child)::before { background: var(--green); }
.step-flow__item > span { width: 14px; height: 14px; margin-top: 3px; flex-shrink: 0; border-radius: 50%; border: 2px solid #D1D5DB; background: #fff; }
.step-flow__item.is-done > span { background: var(--green); border-color: var(--green); }
.step-flow__item.is-now > span { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(11, 97, 255, 0.16); }
.step-flow__item b { display: block; font-size: 14.5px; color: var(--dark); }
.step-flow__item small { font-size: 12.5px; color: var(--subtle); }

.step-summary { display: grid; gap: 10px; }
.step-summary__row { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid var(--line-soft); }
.step-summary__row small { font-size: 13.5px; color: var(--subtle); }
.step-summary__row b { font-size: 18px; font-weight: 800; color: var(--dark); }
.step-summary__meter { height: 8px; border-radius: 99px; background: var(--brand-50); overflow: hidden; margin-top: 4px; }
.step-summary__meter i { display: block; height: 100%; border-radius: inherit; background: var(--brand); }
.step-summary__note { font-size: 12.5px; color: var(--subtle); }

/* Pinned desktop: active step expands, others recede */
.steps.is-pinned .steps__pin { height: 100svh; padding: var(--nav-h) 0 0; display: flex; align-items: center; }
.steps.is-pinned .step { opacity: 0.45; }
.steps.is-pinned .step.is-done { opacity: 0.7; }
.steps.is-pinned .step.is-active { flex-grow: 1.9; opacity: 1; }
.steps.is-pinned .step:not(.is-active) .step__body { grid-template-rows: 0fr; }

@media (max-width: 1023px) {
  .steps__list { flex-direction: column; gap: 44px; padding-left: 66px; }
  .steps__line { left: 21px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .steps__line span { transform-origin: center top; }
  .step__head { flex-direction: row; align-items: center; gap: 0; }
  .step__num { position: absolute; left: -66px; }
}

/* ---------- Pricing ---------- */
.pricing { padding: clamp(96px, 12vw, 160px) 0; background: var(--bg-soft); border-top: 1px solid var(--line); }
.billing-toggle {
  display: inline-flex; gap: 4px;
  margin-top: 30px; padding: 4px;
  border-radius: 12px; border: 1px solid var(--line); background: #fff;
  box-shadow: var(--shadow-sm);
}
.billing-toggle button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border: 0; border-radius: 9px; background: none; cursor: pointer;
  font-size: 14.5px; font-weight: 600; color: var(--muted);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.billing-toggle button[aria-pressed="true"] { background: var(--dark); color: #fff; }
.billing-toggle__save { padding: 2px 8px; border-radius: 99px; background: var(--brand-50); color: var(--brand); font-size: 12px; font-weight: 700; }

.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan {
  position: relative;
  display: flex; flex-direction: column;
  padding: 30px 26px 26px;
  border-radius: 24px; border: 1px solid var(--line); background: #fff;
  transition: translate .45s var(--ease), box-shadow .45s var(--ease);
}
.plan:hover { translate: 0 -4px; box-shadow: var(--shadow-lg); }
.plan h3 { font-size: 20px; font-weight: 700; color: var(--dark); }
.plan__desc { margin-top: 6px; min-height: 46px; font-size: 14.5px; color: var(--subtle); }
.plan__price { display: flex; align-items: baseline; gap: 4px; margin: 22px 0 24px; }
.plan__price b { font-size: clamp(30px, 3vw, 38px); font-weight: 800; letter-spacing: -0.035em; color: var(--dark); font-variant-numeric: tabular-nums; }
.plan__price span { font-size: 15px; color: var(--subtle); }
.plan__list { list-style: none; flex: 1; display: grid; align-content: start; gap: 12px; margin-bottom: 28px; }
.plan__list li { display: flex; gap: 10px; font-size: 15px; color: var(--text); }
.plan__list .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--brand); stroke-width: 2.5; }
.plan--featured { border: 2px solid var(--brand); background: linear-gradient(180deg, var(--brand-50) 0%, #fff 45%); box-shadow: var(--shadow-lg); }
.plan__badge { position: absolute; top: -13px; left: 24px; padding: 5px 12px; border-radius: 99px; background: var(--brand); color: #fff; font-size: 12.5px; font-weight: 700; }

@media (max-width: 1080px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .plans { grid-template-columns: 1fr; } .plan__desc { min-height: 0; } }

/* ---------- FAQ ---------- */
.faq-section { padding: clamp(96px, 12vw, 160px) 0; background: #fff; }
.faq-section__layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq-section .section-head { position: sticky; top: calc(var(--nav-h) + 32px); margin-bottom: 0; }
@media (max-width: 900px) {
  .faq-section__layout { grid-template-columns: 1fr; }
  .faq-section .section-head { position: static; }
}

/* ---------- Closing CTA ---------- */
.cta {
  position: relative;
  padding: clamp(112px, 14vw, 190px) 0;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 50% 115%, rgba(120, 166, 255, 0.55), transparent 65%),
    linear-gradient(160deg, var(--brand) 0%, var(--brand-600) 52%, var(--darker) 135%);
  color: #fff;
  text-align: center;
}
.cta__shapes { position: absolute; inset: 0; pointer-events: none; }
.cta__shapes span { position: absolute; border-radius: 50%; will-change: transform; }
.cta__orb { background: rgba(255, 255, 255, 0.16); filter: blur(60px); }
.cta__orb--a { width: 420px; height: 420px; left: -120px; top: -120px; }
.cta__orb--b { width: 520px; height: 520px; right: -180px; bottom: -220px; background: rgba(140, 190, 255, 0.28); }
.cta__ring { border: 1px solid rgba(255, 255, 255, 0.16); }
.cta__ring--a { width: 560px; height: 560px; left: 50%; top: 50%; margin: -280px 0 0 -280px; }
.cta__ring--b { width: 900px; height: 900px; left: 50%; top: 50%; margin: -450px 0 0 -450px; border-color: rgba(255, 255, 255, 0.08); }
.cta__inner { position: relative; z-index: 1; }
.cta__icon { width: auto; height: 30px; margin: 0 auto 36px; opacity: 0.95; }
.cta__title { font-size: clamp(2.7rem, 7.4vw, 6rem); line-height: 0.98; letter-spacing: -0.045em; font-weight: 800; }
.cta__lead { max-width: 560px; margin: 26px auto 0; font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: rgba(255, 255, 255, 0.84); }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.cta__note { margin-top: 22px; font-size: 14px; color: rgba(255, 255, 255, 0.68); }

/* ---------- Phones ---------- */
@media (max-width: 560px) {
  .hero__ctas .btn { width: 100%; }
  .hero__ctas { width: 100%; }
  .cta__actions .btn { width: 100%; }
}

/* ---------- Store buttons ---------- */
.store-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px;
  padding: 8px 18px 8px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--dark);
  color: #fff;
  transition: translate .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.store-btn:hover { translate: 0 -2px; box-shadow: var(--shadow-lg); }
.store-btn[hidden] { display: none; }
.store-btn span { font-size: 17px; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; text-align: left; }
.store-btn small { display: block; font-size: 11px; font-weight: 500; opacity: 0.75; letter-spacing: 0; }
.store-btn__icon { width: 24px; height: 24px; flex-shrink: 0; }
.store-buttons--light .store-btn { background: #fff; color: var(--dark); border-color: transparent; }
.hero__stores { justify-content: center; margin-top: 18px; }
.cta__stores { justify-content: center; margin-top: 16px; }

/* ---------- Pricing: plan logos ---------- */
.plan__head { display: flex; align-items: center; gap: 12px; }
.plan__logo {
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(17, 24, 39, 0.06), 0 6px 14px -6px rgba(11, 97, 255, 0.45);
}
.plan__logo--starter { display: grid; place-items: center; background: var(--brand-50); box-shadow: 0 0 0 1px var(--brand-100); }
.plan__logo--starter img { width: 20px; height: auto; }
.plan__desc { margin-top: 12px; }

/* ---------- Mobile app ---------- */
.app {
  position: relative;
  overflow: clip;
  background:
    radial-gradient(800px 500px at 75% 55%, rgba(11, 97, 255, 0.28), transparent 70%),
    var(--darker);
  color: #C9CED8;
}
.app__pin { padding: clamp(96px, 12vw, 150px) 0; }
.app__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.app .h2 { color: #fff; margin-bottom: 18px; max-width: 12ch; }
.app .kicker { color: #8DB4FF; }
.app .lead { color: #9AA3B2; max-width: 46ch; }
.app__list { list-style: none; display: grid; gap: 4px; margin: 32px 0 30px; }
.app__item {
  display: grid; gap: 2px;
  padding: 10px 0 10px 18px;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
  transition: border-color .4s var(--ease), opacity .4s var(--ease);
}
.app__item b { color: #fff; font-size: 16px; font-weight: 600; }
.app__item span { font-size: 14.5px; color: #8A93A5; }
.app__item.is-active { border-left-color: var(--brand); }
.app.is-pinned .app__item { opacity: 0.45; }
.app.is-pinned .app__item.is-active { opacity: 1; }

.app__stage {
  position: relative;
  height: clamp(460px, 62vh, 640px);
  display: flex; align-items: center; justify-content: center;
}
.app__glow {
  position: absolute; left: 50%; top: 50%;
  width: 70%; height: 70%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(11, 97, 255, 0.55), transparent);
  filter: blur(40px);
}
.app__phone { width: auto; height: 100%; aspect-ratio: 560 / 1162; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.5)); }
.app__phone--center { position: relative; z-index: 2; }
.app__phone--left, .app__phone--right { position: absolute; top: 8%; height: 84%; z-index: 1; opacity: 0.85; }
.app__phone--left { right: 58%; transform: rotate(-9deg); }
.app__phone--right { left: 58%; transform: rotate(9deg); }
.app__screen {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transform: scale(0.985);
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.app__screen.is-active { opacity: 1; transform: none; }

.app.is-pinned .app__pin { height: 100svh; padding: var(--nav-h) 0 0; display: flex; align-items: center; }

@media (max-width: 1023px) {
  .app__layout { grid-template-columns: 1fr; }
  .app__stage { height: clamp(420px, 110vw, 560px); order: -1; }
  .app__list { grid-template-columns: 1fr 1fr; gap: 4px 16px; }
}
@media (max-width: 560px) {
  .app__list { grid-template-columns: 1fr; }
  .app__item span { display: none; }
  .app__phone--left { right: 56%; }
  .app__phone--right { left: 56%; }
}
.app.is-pinned .app__list { margin: 24px 0 24px; }
.app.is-pinned .app__item { padding-top: 7px; padding-bottom: 7px; }
.app.is-pinned .app__item:not(.is-active) span { display: none; }
