/* ===== Design tokens ===== */
:root {
  --bg: #0A0A0B;
  --bg-raise: #121214;
  --bg-panel: #1C1C21;
  --fg: #F4F4F6;
  --muted: rgba(244, 244, 246, 0.6);
  --muted-dim: rgba(244, 244, 246, 0.5);
  --border: rgba(244, 244, 246, 0.14);
  --border-strong: rgba(244, 244, 246, 0.26);
  --accent: #FF5A00;
  --max-width: 1160px;
  --font-heading: "Clash Display", "JetBrains Mono", sans-serif;
  --font-body: "JetBrains Mono", monospace;
}

* {
  box-sizing: border-box;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

.section {
  padding: 120px 0;
  border-bottom: 1px solid var(--border);
}

/* Alternating panel backgrounds so sections read as distinct */
#portfolio,
.process-section,
.contact-section {
  background: var(--bg-panel);
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}

a {
  color: inherit;
}

.eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin: 0 0 14px;
  font-weight: 500;
}

.section-heading {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  margin-bottom: 56px;
  max-width: 720px;
}

/* ===== Spotlight overlay (portfolio tile focus) ===== */
.spotlight-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 5;
}

body.spotlight-active .spotlight-overlay {
  opacity: 1;
}

/* ===== Nav ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: rgba(10, 10, 11, 0.86);
  backdrop-filter: blur(10px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.logo-icon {
  height: 30px;
  width: auto;
  display: block;
}

.logo-word {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--fg);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.85rem;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--fg);
}

.nav-cta {
  background: var(--accent);
  border: 1px solid var(--accent);
  padding: 9px 18px;
  border-radius: 2px;
  font-weight: 600;
  color: #0A0A0B !important;
  text-decoration: none;
  white-space: nowrap;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: #ff7124;
  border-color: #ff7124;
  color: #0A0A0B !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 0;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle-bar {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--fg);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-wave {
  display: block;
  width: 100%;
  height: 22px;
  margin-top: -1px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #0A0A0B;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: #ff7124;
  border-color: #ff7124;
  transform: translateY(-1px);
}

.btn-outline {
  background: none;
  color: var(--fg);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 120px 0 110px;
  border-bottom: 1px solid var(--border);
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(244, 244, 246, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 244, 246, 0.06) 1px, transparent 1px);
  background-size: 26px 26px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: start;
}

.hero-headline {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.12;
  margin-bottom: 26px;
}

.hero-sub {
  color: var(--muted);
  font-size: 1rem;
  max-width: 480px;
  margin: 0 0 36px;
}

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.retention-card {
  width: 100%;
  max-width: 300px;
  background: var(--bg-raise);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px 18px 8px;
  margin-bottom: 44px;
  position: relative;
  z-index: 2;
}

.retention-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.retention-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.retention-info-toggle {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  padding: 0;
  border: none;
  background: none;
  color: var(--muted-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.retention-info-toggle svg {
  width: 100%;
  height: 100%;
}

.retention-info-toggle:hover,
.retention-info-toggle[aria-expanded="true"] {
  color: var(--accent);
}

.retention-info-panel {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease, margin-bottom 0.35s ease;
}

.retention-info-panel.expanded {
  max-height: 160px;
  opacity: 1;
  margin-bottom: 14px;
}

.retention-info-panel p {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.6;
  color: var(--muted);
}

.retention-graph {
  width: 100%;
  height: auto;
  display: block;
}

.retention-line {
  stroke-dasharray: 400;
  stroke-dashoffset: 0;
  animation: retention-pulse 4s ease-in-out infinite;
}

@keyframes retention-pulse {
  0%, 100% { opacity: 0.75; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-2px); }
}

.retention-line-raw {
  stroke: var(--muted-dim);
}

.retention-graph-label {
  font-family: var(--font-body);
  font-weight: 500;
  fill: var(--muted-dim);
}

.phone-frame {
  width: 240px;
  border: 1px solid var(--border-strong);
  border-radius: 32px;
  padding: 14px;
  background: var(--bg-raise);
  position: relative;
  z-index: 1;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.phone-notch {
  width: 60px;
  height: 6px;
  border-radius: 4px;
  background: var(--border-strong);
  margin: 0 auto 12px;
}

.phone-screen {
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  background: linear-gradient(160deg, #17171a 0%, #0a0a0b 100%);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.phone-thumbnail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}

.phone-placeholder {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(10, 10, 11, 0.45);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

button.phone-placeholder {
  cursor: pointer;
  transition: border-color 0.25s ease;
}

button.phone-placeholder:hover,
button.phone-placeholder:focus-visible {
  border-color: var(--accent);
}

button.phone-placeholder:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

button.phone-placeholder:hover .play-icon,
button.phone-placeholder:focus-visible .play-icon {
  fill: var(--accent);
}

button.phone-placeholder.is-loading {
  cursor: wait;
  opacity: 0.55;
}

.play-icon {
  width: 20px;
  height: 20px;
  fill: var(--muted);
}

.phone-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}

.hero-caption {
  margin: 16px 0 0;
  font-size: 0.78rem;
  color: var(--muted-dim);
}

/* ===== Portfolio ===== */
.tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 28px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}

.tab {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  background: none;
  border: none;
  color: var(--muted);
  padding: 12px 4px;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.tab:hover {
  color: var(--fg);
}

.tab.active {
  color: var(--fg);
}

.tab.active::after {
  transform: scaleX(1);
}

.work-showcase {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 56px;
}

.work-mockups {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  flex: 0 1 auto;
}

.work-tile {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: transform 0.25s ease;
}

.work-tile:hover {
  z-index: 6;
  transform: translateY(-4px);
}

.work-tile:hover .phone-frame {
  border-color: var(--accent);
  box-shadow: 0 0 26px rgba(255, 90, 0, 0.22);
}

.work-tile-caption {
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.work-copy {
  flex: 1 1 320px;
  min-width: 280px;
  max-width: 480px;
}

.work-detail {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin: 0;
}

.work-callout {
  margin-top: 22px;
  padding: 16px 18px;
  border-left: 2px solid var(--accent);
  background: var(--bg-raise);
  border-radius: 0 6px 6px 0;
}

.work-callout-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.work-callout p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ===== Craft (Section 3) ===== */
.craft-wave-wrap {
  margin: -12px 0 36px;
}

.craft-wave {
  display: block;
  width: 100%;
  height: 46px;
}

.craft-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.craft-step {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 32px;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.craft-step:last-child {
  border-bottom: 1px solid var(--border);
}

.craft-step.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.craft-index {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--accent);
}

.craft-body h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.craft-body p {
  color: var(--muted);
  margin: 0;
  max-width: 620px;
  font-size: 0.95rem;
}

/* ===== Process timeline (Section 4) ===== */
.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s cubic-bezier(0.16, 0.84, 0.44, 1), background-color 1.4s ease 0.9s;
}

.timeline.line-drawn::before {
  transform: scaleX(1);
  background: var(--border);
}

.timeline-step {
  position: relative;
  padding-top: 40px;
}

.timeline-number {
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

.timeline-step h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.timeline-step p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
  max-width: 320px;
}

.trust-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 88px;
}

.trust-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px 22px;
}

.trust-mark {
  color: var(--accent);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.trust-note p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.trust-note strong {
  color: var(--fg);
}

/* ===== Ambient background elements (fill empty space, echo the waveform motif) ===== */
#portfolio,
.craft-section,
.process-section,
.contact-section {
  position: relative;
  overflow: hidden;
}

#portfolio > .container,
.craft-section > .container,
.process-section > .container,
.contact-section > .container {
  position: relative;
  z-index: 1;
}

.bg-wave {
  position: absolute;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}

.bg-wave-work {
  top: -40px;
  right: -60px;
  width: 420px;
  transform: rotate(8deg);
}

.bg-wave-craft {
  top: 10px;
  right: -40px;
  width: 260px;
  height: 640px;
}

.bg-wave-process {
  bottom: -30px;
  left: 50%;
  width: 720px;
  max-width: 90%;
  transform: translateX(-50%);
}

.bg-glow-orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 90, 0, 0.4), rgba(255, 90, 0, 0) 70%);
  filter: blur(36px);
  pointer-events: none;
  z-index: 0;
}

.orb-craft {
  width: 220px;
  height: 220px;
  top: 40px;
  right: 60px;
  animation: orb-drift-a 13s ease-in-out infinite;
}

.orb-contact {
  width: 260px;
  height: 260px;
  bottom: -70px;
  left: -50px;
  animation: orb-drift-b 16s ease-in-out infinite;
}

@keyframes orb-drift-a {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-18px, 16px); }
}

@keyframes orb-drift-b {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -16px); }
}

/* ===== About ===== */
.about-body {
  color: var(--fg);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 660px;
  margin: 0;
}

.about-subheading {
  font-size: 1.5rem;
  margin: 64px 0 20px;
}

.about-legal-note {
  margin: 20px 0 0;
  font-size: 0.85rem;
  color: var(--muted-dim);
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 760px;
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  text-align: left;
  padding: 22px 2px;
  cursor: pointer;
}

.faq-question:hover span:first-child {
  color: var(--accent);
}

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: transform 0.3s ease, color 0.2s ease;
}

.faq-icon svg {
  width: 100%;
  height: 100%;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease;
}

.faq-item.open .faq-answer {
  opacity: 1;
}

.faq-answer p {
  margin: 0 2px 22px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
  max-width: 620px;
}

.faq-arrow-link {
  display: inline-block;
  margin: -14px 0 22px 2px;
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.faq-arrow-link:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.faq-answer p a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.faq-answer p a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

/* ===== Pricing ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.price-card {
  position: relative;
  background: var(--bg-raise);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
}

.price-featured {
  border: 1px solid var(--accent);
  padding: 44px 30px;
  transform: scale(1.04);
  background:
    linear-gradient(160deg, rgba(255, 90, 0, 0.08), rgba(255, 90, 0, 0.01) 55%),
    var(--bg-raise);
  animation: price-glow 3.6s ease-in-out infinite;
}

@keyframes price-glow {
  0%, 100% { box-shadow: 0 0 14px rgba(255, 90, 0, 0.16); }
  50% { box-shadow: 0 0 30px rgba(255, 90, 0, 0.34); }
}

.price-badge {
  position: absolute;
  top: -13px;
  left: 30px;
  background: var(--accent);
  color: #0A0A0B;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 12px;
  border-radius: 2px;
}

.price-name {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 16px;
}

.price-amount {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 4px;
}

.price-billing-note {
  font-size: 0.78rem;
  color: var(--muted-dim);
  margin: 0 0 20px;
}

.price-amount span {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--muted);
}

.price-headline {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--fg);
  margin: 0 0 18px;
}

.price-stats {
  margin: 0 0 20px;
}

.price-stats p + p {
  margin-top: 4px;
}

.price-stat-primary {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--fg);
  margin: 0 0 4px;
}

.price-stat-mid {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--fg);
  margin: 0 0 4px;
}

.price-stat-secondary {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

.price-info-link {
  font-size: 0.78rem;
  color: var(--muted-dim);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
  white-space: nowrap;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.price-info-link:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.price-details {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
}

.price-details li {
  padding: 9px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.price-details li:first-child {
  border-top: none;
}

.price-note {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--muted-dim);
  margin: 0 0 24px;
}

.price-compare {
  font-size: 0.78rem;
  color: var(--muted-dim);
  margin: 10px 0 24px;
}

.price-compare a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.price-compare a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.price-cta {
  width: 100%;
  margin-top: auto;
}

/* ===== CTA / Contact ===== */
.contact-section {
  border-bottom: none;
}

.cta-form {
  max-width: 560px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 44px;
  position: relative;
  min-height: 190px;
}

.cta-step {
  display: none;
}

.cta-step[data-active="true"] {
  display: block;
}

.contact-section .section-heading {
  margin-bottom: 20px;
}

.cta-intro {
  color: var(--muted);
  font-size: 1rem;
  max-width: 480px;
  margin: 0 0 40px;
}

.cta-question {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 24px;
}

.platform-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.platform-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--muted);
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 24px 16px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.platform-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.platform-icon svg {
  width: 100%;
  height: 100%;
}

.platform-label {
  font-weight: 500;
}

.platform-card:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.platform-card.selected {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255, 90, 0, 0.08);
}

.platform-other-input {
  display: flex;
  gap: 10px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  transition: max-height 0.3s ease, opacity 0.25s ease, margin-top 0.3s ease;
}

.platform-other-input.expanded {
  max-height: 60px;
  opacity: 1;
  margin-top: 16px;
}

.platform-other-input input {
  flex: 1 1 auto;
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--bg-raise);
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  padding: 12px 14px;
  color: var(--fg);
}

.platform-other-input input:focus {
  outline: none;
  border-color: var(--accent);
}

.platform-other-input input::placeholder {
  color: var(--muted-dim);
}

.platform-other-go {
  flex-shrink: 0;
  width: 44px;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  background: none;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.platform-other-go svg {
  width: 18px;
  height: 18px;
}

.platform-other-go:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.cta-input-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cta-input-row input {
  flex: 1 1 220px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--bg-raise);
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  padding: 14px 16px;
  color: var(--fg);
}

.cta-input-row input:focus {
  outline: none;
  border-color: var(--accent);
}

.cta-input-row input::placeholder {
  color: var(--muted-dim);
}

.cta-textarea-row {
  margin-top: 16px;
}

.cta-textarea-label {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.cta-textarea-row textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--bg-raise);
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  padding: 14px 16px;
  color: var(--fg);
  resize: vertical;
  min-height: 90px;
}

.cta-textarea-row textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.cta-textarea-row textarea::placeholder {
  color: var(--muted-dim);
}

.cta-submit {
  margin-top: 20px;
}

.cta-confirmation {
  display: none;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
}

.cta-confirmation p {
  margin: 0;
}

.cta-back-link {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.cta-back-link:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.cta-form.submitted .cta-step {
  display: none;
}

.cta-form.submitted .cta-confirmation {
  display: flex;
}

/* ===== Episode submission form ===== */
.episode-field {
  margin-bottom: 20px;
}

.episode-form input[type="url"],
.episode-form select,
.episode-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--bg-raise);
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  padding: 14px 16px;
  color: var(--fg);
}

.episode-form input:focus,
.episode-form select:focus,
.episode-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.episode-form input::placeholder,
.episode-form textarea::placeholder {
  color: var(--muted-dim);
}

.episode-form textarea {
  resize: vertical;
  min-height: 90px;
}

.episode-form.submitted .episode-fields {
  display: none;
}

.episode-form.submitted .cta-confirmation {
  display: flex;
}

.submit-account-note {
  margin: 32px 0 0;
  font-size: 0.78rem;
  color: var(--muted-dim);
}

.submit-account-note a {
  color: var(--muted-dim);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.submit-account-note a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

/* ===== Calendly booking subsection ===== */
.calendly-section {
  margin-top: 64px;
  padding-top: 56px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.calendly-heading {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 10px;
}

.calendly-intro {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 480px;
  margin: 0 auto 32px;
}

/* ===== Project survey (post-purchase wizard) ===== */
#surveyPage .section-heading {
  margin-bottom: 20px;
}

.survey-form {
  max-width: 640px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 44px;
  position: relative;
}

.survey-top-fields {
  margin-bottom: 28px;
}

.survey-field-group {
  margin-bottom: 20px;
}

.survey-field-group:last-child {
  margin-bottom: 0;
}

.survey-field-hint {
  font-size: 0.78rem;
  color: var(--muted-dim);
  margin: 0 0 8px;
}

.survey-optional-tag {
  color: var(--muted-dim);
  font-weight: 400;
}

.survey-progress {
  margin-bottom: 36px;
}

.survey-progress-track {
  position: relative;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.survey-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 12.5%;
  background: var(--accent);
  transition: width 0.4s cubic-bezier(0.16, 0.84, 0.44, 1);
}

.survey-progress-label {
  margin-top: 12px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--muted-dim);
}

.survey-question {
  display: none;
}

.survey-question[data-active="true"] {
  display: block;
}

.survey-question-text {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 24px;
}

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

.survey-option-card {
  display: block;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.survey-option-card:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.survey-option-card.selected {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255, 90, 0, 0.08);
}

.survey-option-other {
  grid-column: 1 / -1;
  text-align: center;
  font-weight: 500;
}

.survey-other-input {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  transition: max-height 0.3s ease, opacity 0.25s ease, margin-top 0.3s ease;
}

.survey-other-input.expanded {
  max-height: 60px;
  opacity: 1;
  margin-top: 16px;
}

.survey-other-input input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--bg-raise);
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  padding: 12px 14px;
  color: var(--fg);
}

.survey-other-input input:focus {
  outline: none;
  border-color: var(--accent);
}

.survey-other-input input::placeholder {
  color: var(--muted-dim);
}

.survey-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
}

.survey-back {
  visibility: hidden;
}

.survey-back.is-visible {
  visibility: visible;
}

.survey-next,
.survey-submit {
  margin-left: auto;
}

.survey-submit {
  display: none;
}

.survey-confirmation {
  display: none;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
}

.survey-confirmation p {
  margin: 0;
}

.survey-form.submitted .survey-progress,
.survey-form.submitted .survey-question,
.survey-form.submitted .survey-nav,
.survey-form.submitted .survey-top-fields {
  display: none;
}

.survey-form.submitted .survey-confirmation {
  display: flex;
}

/* ===== Footer ===== */
.site-footer {
  position: relative;
  overflow: hidden;
  padding: 36px 0;
}

.site-footer > .container {
  position: relative;
  z-index: 1;
}

.footer-mark {
  position: absolute;
  top: 50%;
  right: -10px;
  width: 200px;
  height: auto;
  opacity: 0.09;
  pointer-events: none;
  z-index: 0;
  transform: translateY(-50%);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
}

.footer-name {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 600;
}

.footer-contact {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.footer-contact a {
  color: var(--accent);
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
}

.footer-legal a {
  color: var(--muted-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: var(--accent);
}

.footer-legal-note {
  margin: 12px 0 0;
  font-size: 0.78rem;
  color: var(--muted-dim);
}

/* ===== Standalone subpages (About, FAQ) ===== */
.subpage-section {
  padding: 160px 0 120px;
  background: var(--bg-panel);
}

/* ===== Legal pages (plain, no decorative elements) ===== */
.legal-section {
  padding: 160px 0 120px;
}

.legal-container {
  max-width: 720px;
}

.legal-updated {
  color: var(--muted-dim);
  font-size: 0.85rem;
  margin: 0 0 40px;
}

.legal-body p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin: 0 0 22px;
}

.legal-body strong {
  color: var(--fg);
}

.legal-body p a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.legal-body p a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

/* ===== Back to Home links (About, FAQ, legal pages) ===== */
.back-home-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.back-home-link:hover {
  color: var(--accent);
}

.back-home-top {
  margin-bottom: 32px;
}

.back-home-bottom {
  margin-top: 48px;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 110px 0 80px;
  }

  .hero-visual {
    margin-top: 20px;
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .timeline::before {
    display: none;
  }

  .trust-notes {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .price-featured {
    transform: none;
    order: -1;
  }

  .nav-links {
    gap: 18px;
    font-size: 0.78rem;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 80px 0;
  }

  .tabs {
    gap: 14px;
  }

  .tab {
    font-size: 0.72rem;
    padding: 14px 3px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-right {
    gap: 12px;
  }

  .nav-links {
    position: fixed;
    top: var(--navbar-height, 72px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    background: #0A0A0B;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
    max-height: calc(100vh - var(--navbar-height, 72px));
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 25;
  }

  .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 16px 28px;
    font-size: 0.95rem;
    border-top: 1px solid var(--border);
  }

  .nav-links li:first-child a {
    border-top: none;
  }

  .nav-links a:hover {
    background: rgba(244, 244, 246, 0.05);
  }

  .work-showcase {
    flex-direction: column;
    gap: 28px;
    align-items: stretch;
  }

  .work-copy {
    flex-basis: auto;
    min-width: 0;
  }

  .craft-step {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .cta-form,
  .survey-form {
    padding: 30px 22px;
  }

  .calendly-section {
    margin-top: 48px;
    padding-top: 40px;
  }

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

  .survey-options {
    grid-template-columns: 1fr;
  }

  .bg-wave,
  .bg-glow-orb {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .retention-line,
  .price-featured,
  .bg-glow-orb {
    animation: none;
  }

  .timeline::before {
    transition: none;
  }

  .craft-step,
  .work-tile,
  .phone-frame,
  .retention-info-panel,
  .platform-other-input {
    transition-duration: 0.01ms;
  }
}
