:root {
  --brand: #1d4ed8;
  --brand-dark: #1538a8;
  --accent: #0ea5a0;
  --bg: #f7f9fc;
  --card: #ffffff;
  --text: #1a2233;
  --muted: #64748b;
  --border: #e2e8f0;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
}

.header-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  background: #000;
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand);
}

.site-nav {
  display: flex;
  gap: 6px;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
}

.site-nav a.active,
.site-nav a:hover {
  background: var(--brand);
  color: white;
}

.hero {
  max-width: 700px;
  margin: 0 auto;
  padding: 70px 20px 40px;
  text-align: center;
}

.hero-logo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #000;
  object-fit: cover;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 32px;
  line-height: 1.25;
  margin: 0 0 16px;
  color: var(--text);
}

.hero p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 30px;
}

.cta-btn {
  display: inline-block;
  background: var(--brand);
  color: white;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 10px;
}

.cta-btn:hover { background: var(--brand-dark); }

.features-intro {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  max-width: 500px;
  margin: 0 auto 10px;
  padding: 0 20px;
}

.features {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 20px 70px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 18px;
  text-align: center;
}

.feature-icon {
  font-size: 26px;
  margin-bottom: 10px;
}

.feature-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.feature-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

.simple-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 50px 20px 60px;
}

.page-title {
  font-size: 26px;
  margin: 0 0 10px;
}

.page-intro {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 0 34px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.portfolio-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}

.portfolio-tag {
  display: inline-block;
  background: rgba(14, 165, 160, 0.12);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.demo-tag {
  display: inline-block;
  background: rgba(100, 116, 139, 0.12);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: 8px;
  vertical-align: middle;
}

.portfolio-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.blurred-text {
  filter: blur(5px);
  user-select: none;
  -webkit-user-select: none;
}

.portfolio-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  filter: blur(5px);
  margin-bottom: 10px;
}

.portfolio-logo-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  opacity: 0.5;
  margin-bottom: 10px;
}

.portfolio-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 14px;
}

.portfolio-link {
  color: var(--brand);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
}

.portfolio-link:hover { text-decoration: underline; }

.page-note {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  font-style: italic;
  margin-top: 30px;
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
  max-width: 360px;
}

.contact-row {
  display: block;
  padding: 14px 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  border-bottom: 1px solid var(--border);
}

.contact-row:last-child { border-bottom: none; }
.contact-row:hover { color: var(--brand); }

.site-footer {
  text-align: center;
  padding: 30px 20px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--border);
}

.site-footer a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}

/* ---- Start Your Project: nav button, hero buttons, contact card ---- */
.hidden { display: none !important; }

.site-nav a.nav-cta {
  background: var(--accent);
  color: #fff;
}

.site-nav a.nav-cta:hover,
.site-nav a.nav-cta.active {
  background: #0b8a86;
  color: #fff;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.cta-secondary {
  background: transparent;
  color: var(--brand);
  box-shadow: inset 0 0 0 2px var(--brand);
}

.cta-secondary:hover {
  background: var(--brand);
  color: #fff;
}

.start-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  max-width: 360px;
  margin-top: 24px;
}

.start-card h2 { margin: 0 0 8px; font-size: 18px; }
.start-card p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0 0 16px; }

@media (max-width: 520px) {
  .site-nav { flex-wrap: wrap; justify-content: center; }
}

/* ---- Request form ---- */
.request-form {
  max-width: 760px;
}

.price-note {
  max-width: 760px;
  background: rgba(14, 165, 160, 0.08);
  border: 1px solid rgba(14, 165, 160, 0.35);
  border-radius: 14px;
  padding: 16px 20px;
  margin: 0 0 22px;
}

.price-note-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 4px;
}

.price-note p { margin: 0; font-size: 15px; line-height: 1.55; }

.form-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 22px 8px;
  margin: 0 0 18px;
}

.form-section legend {
  font-weight: 700;
  font-size: 16px;
  color: var(--brand);
  padding: 0 8px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}

.field { margin-bottom: 16px; }
.field.full { grid-column: 1 / -1; }

.field label,
.label-like {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.request-form input[type="text"],
.request-form input[type="tel"],
.request-form input[type="email"],
.request-form input[type="file"],
.request-form select,
.request-form textarea {
  width: 100%;
  padding: 11px 12px;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.request-form textarea { resize: vertical; }

.request-form input:focus,
.request-form select:focus,
.request-form textarea:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
  border-color: var(--brand);
}

.request-form input[type="file"] { padding: 9px 10px; }

.req { color: #b91c1c; }

.hint {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}

.field > .hint { margin: 6px 0 0; line-height: 1.5; }
.section-hint { margin: 0 0 14px; }

.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.check-pill,
.check-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}

.check-pill {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}

.check-pill:has(input:checked) {
  border-color: var(--brand);
  background: rgba(29, 78, 216, 0.06);
}

.check-pill input,
.check-inline input {
  width: 18px;
  height: 18px;
  flex: none;
  accent-color: var(--brand);
}

.field .check-inline { margin-top: 10px; font-weight: 400; }

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-bottom: 10px;
}

.reveal { margin-top: 4px; }

.consent {
  align-items: flex-start;
  margin: 6px 0 20px;
  line-height: 1.5;
}

.submit-btn {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 34px;
}

.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.form-message {
  color: #b91c1c;
  font-size: 14px;
  font-weight: 600;
  min-height: 20px;
  margin: 12px 0 0;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
}

.overlay-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px;
  max-width: 420px;
  text-align: center;
}

.overlay-card h2 { margin: 8px 0 10px; font-size: 22px; }
.overlay-card p { color: var(--muted); line-height: 1.6; margin: 0 0 22px; }
.overlay-icon { font-size: 36px; }

@media (max-width: 600px) {
  .field-grid { grid-template-columns: 1fr; }
  .form-section { padding: 18px 16px 6px; }
}

/* ---- Owner portal ---- */
.portal-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  margin: 0 0 18px;
  max-width: 760px;
}
.portal-card h2 { margin: 0 0 14px; font-size: 18px; color: var(--brand); }
.login-card { max-width: 380px; }
.login-card label { display: block; font-size: 14px; font-weight: 600; margin: 12px 0 6px; }
.login-card input,
.manage-box select,
.manage-box textarea {
  width: 100%;
  padding: 11px 12px;
  font: inherit;
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}
.portal-btn { border: 0; cursor: pointer; font: inherit; font-weight: 700; padding: 11px 24px; margin-top: 16px; }
.portal-header, .portal-title-row {
  max-width: 760px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.portal-title-row h2 { margin: 0; }
.secondary-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
}
.secondary-btn:hover { border-color: var(--brand); color: var(--brand); }
.danger-btn:hover { border-color: #b91c1c; color: #b91c1c; }
.stat-row {
  max-width: 760px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.stat-tile {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 8px;
  text-align: center;
}
.stat-hot { border-color: var(--accent); background: rgba(14, 165, 160, 0.08); }
.stat-num { font-size: 26px; font-weight: 800; }
.stat-label { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.filter-pill {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 20px;
  padding: 6px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
}
.filter-pill.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.request-card { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; background: #fff; }
.request-card summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.request-card summary::-webkit-details-marker { display: none; }
.req-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.req-business { font-weight: 700; font-size: 16px; overflow-wrap: anywhere; }
.req-sub { font-size: 13px; color: var(--muted); }
.status-badge { font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 20px; white-space: nowrap; }
.status-new { background: rgba(14, 165, 160, 0.15); color: #0b7f7b; }
.status-contacted { background: rgba(29, 78, 216, 0.12); color: var(--brand); }
.status-quoted { background: rgba(217, 119, 6, 0.15); color: #b45309; }
.status-won { background: rgba(22, 163, 74, 0.15); color: #15803d; }
.status-lost { background: rgba(100, 116, 139, 0.15); color: var(--muted); }
.req-body { padding: 4px 16px 16px; border-top: 1px solid var(--border); }
.action-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.action-link {
  background: rgba(29, 78, 216, 0.08);
  color: var(--brand);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 8px;
}
.detail-row { display: flex; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 14px; line-height: 1.5; }
.detail-label { flex: 0 0 120px; color: var(--muted); font-weight: 600; }
.detail-value { flex: 1; min-width: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.logo-thumb { max-width: 120px; max-height: 90px; border-radius: 8px; border: 1px solid var(--border); background: #fff; }
.manage-box { margin-top: 16px; }
.manage-box label { display: block; font-size: 14px; font-weight: 600; margin: 10px 0 6px; }
.manage-actions { display: flex; gap: 10px; align-items: center; }
.manage-actions .portal-btn { margin-top: 12px; }
.manage-actions .secondary-btn { margin-top: 12px; }
.ok-msg { color: #15803d; }
@media (max-width: 600px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .detail-row { flex-direction: column; gap: 2px; }
  .detail-label { flex: none; }
}

a.brand { text-decoration: none; }

/* ---- Owner portal: traffic ---- */
.chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 170px;
  padding-top: 20px;
  margin: 6px 0 18px;
}
.bar-col { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; }
.bar { width: 100%; max-width: 26px; background: var(--brand); border-radius: 4px 4px 0 0; flex: none; }
.bar-col:last-child .bar { background: var(--accent); }
.bar-val { font-size: 10px; color: var(--muted); font-weight: 600; }
.bar-day { font-size: 10px; color: var(--muted); }
.traffic-lists { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.traffic-block h3 { margin: 0 0 8px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.traffic-block ul { list-style: none; margin: 0; padding: 0; }
.traffic-block li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.traffic-block li span { overflow-wrap: anywhere; }
.traffic-block li span.cap { text-transform: capitalize; }
@media (max-width: 600px) {
  .traffic-lists { grid-template-columns: 1fr; }
}

/* ---- Owner portal: tabs and clients ---- */
.tab-row { display: flex; gap: 8px; margin: 0 0 16px; max-width: 760px; }
.tab-btn {
  flex: 1;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
}
.tab-btn.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.client-form input[type="text"],
.client-form input[type="tel"],
.client-form input[type="email"],
.client-form input[type="date"],
.client-form input[type="number"],
.client-form select,
.client-form textarea {
  width: 100%;
  padding: 11px 12px;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.client-form input:focus, .client-form select:focus, .client-form textarea:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
  border-color: var(--brand);
}
.badge-stack { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.billing-paid { background: rgba(22, 163, 74, 0.12); color: #15803d; }
.billing-due { background: rgba(217, 119, 6, 0.15); color: #b45309; }
.billing-overdue { background: rgba(185, 28, 28, 0.12); color: #b91c1c; }
.manage-actions { flex-wrap: wrap; }


/* ---- Home page showreel video ---- */
.hero.hero-split {
  max-width: 1100px;
  padding-top: 32px;
}

.hero-video-wrap {
  width: 240px;
  margin: 0 auto 28px;
  border-radius: 22px;
  overflow: hidden;
  background: #0b0f24;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
  aspect-ratio: 9 / 16;
}

.hero-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 860px) {
  .hero.hero-split {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 64px;
    text-align: left;
    padding-top: 56px;
  }
  .hero-split .hero-video-wrap {
    flex: 0 0 300px;
    width: 300px;
    margin: 0;
  }
  .hero-split .hero-text { flex: 1; }
  .hero-split .cta-row { justify-content: flex-start; }
  .hero.hero-split h1 { font-size: 40px; }
}


/* ---- Home page entrance animation ---- */
/* Headline: word by word, 6-frame stagger (100ms at 60fps), sliding up 40px */
.anim-headline .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
  animation: yb-rise 650ms cubic-bezier(.2, .8, .2, 1) forwards;
  animation-delay: calc(150ms + var(--i) * 100ms);
}
.anim-in {
  opacity: 0;
  transform: translateY(24px);
  animation: yb-rise 700ms cubic-bezier(.2, .8, .2, 1) forwards;
  animation-delay: var(--d, 0ms);
}
.anim-pop {
  opacity: 0;
  transform: translateY(16px) scale(.9);
  animation: yb-pop 550ms cubic-bezier(.34, 1.56, .64, 1) forwards;
  animation-delay: var(--d, 0ms);
}
.anim-video {
  opacity: 0;
  transform: translateY(30px) scale(.96);
  animation: yb-rise 900ms cubic-bezier(.2, .8, .2, 1) 100ms forwards;
}
@keyframes yb-rise { to { opacity: 1; transform: none; } }
@keyframes yb-pop { to { opacity: 1; transform: none; } }

/* Feature cards: slide up one after another as they scroll into view */
.js .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 650ms cubic-bezier(.2, .8, .2, 1), transform 650ms cubic-bezier(.2, .8, .2, 1);
  transition-delay: var(--d, 0ms);
}
.js .reveal.in { opacity: 1; transform: none; }

/* Respect "reduce motion": show everything straight away */
@media (prefers-reduced-motion: reduce) {
  .anim-headline .w, .anim-in, .anim-pop, .anim-video { animation: none; opacity: 1; transform: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* =====================================================
   Home page: extra sections
   ===================================================== */
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

/* Soft moving colour glow behind the hero */
.hero-glow { position: absolute; left: 0; right: 0; top: 70px; height: 760px; overflow: hidden; pointer-events: none; z-index: 0; }
.hero-glow i { position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(80px); opacity: .28; animation: yb-drift 18s ease-in-out infinite alternate; }
.hero-glow i:nth-child(1) { background: #ec4899; left: -120px; top: 40px; }
.hero-glow i:nth-child(2) { background: #3b82f6; right: -140px; top: 120px; animation-duration: 22s; animation-delay: -6s; }
.hero-glow i:nth-child(3) { background: #14b8a6; left: 35%; top: 360px; animation-duration: 26s; animation-delay: -12s; opacity: .2; }
@keyframes yb-drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(80px, 60px) scale(1.15); } 100% { transform: translate(-60px, 30px) scale(.9); } }
.hero { position: relative; z-index: 1; }
.features-intro, .features { position: relative; z-index: 1; }

/* Feature cards: hover lift + tilt (desktop) */
.feature-card { transition: box-shadow .3s, border-color .3s; will-change: transform; }
.feature-card:hover { box-shadow: 0 18px 40px rgba(15, 23, 42, .12); border-color: #c7d2fe; }

/* Shared section layout */
.block { max-width: 1040px; margin: 0 auto; padding: 70px 20px; }
.block-head { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); background: rgba(14, 165, 160, .1); padding: 6px 14px; border-radius: 30px; margin-bottom: 14px; }
.block-head h2 { font-size: 32px; line-height: 1.2; margin: 0 0 10px; }
.block-head p { color: var(--muted); margin: 0; line-height: 1.6; }
.ticks { list-style: none; padding: 0; margin: 18px 0; }
.ticks li { position: relative; padding-left: 30px; margin: 10px 0; line-height: 1.45; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: rgba(14, 165, 160, .14); color: var(--accent); font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }

/* Numbers */
.stats { max-width: 960px; margin: 0 auto; padding: 10px 20px 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { text-align: center; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 22px 12px; }
.stat-num { font-size: 40px; font-weight: 800; letter-spacing: -1px; background: linear-gradient(90deg, #1d4ed8, #0ea5a0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-lab { font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.4; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr 1fr; } }

/* Real work */
.work-item { display: grid; grid-template-columns: 300px 1fr; gap: 60px; align-items: center; margin-bottom: 80px; }
.work-item.flip { grid-template-columns: 1fr 300px; }
.work-item.flip .work-phone { order: 2; }
.mini-phone { width: 280px; height: 590px; margin: 0 auto; border-radius: 44px; background: #0d0e12; padding: 10px; box-shadow: 0 40px 80px rgba(15, 23, 42, .28), 0 0 0 2px #2b2e38 inset; position: relative; }
.mini-notch { position: absolute; top: 20px; left: 50%; width: 86px; height: 24px; margin-left: -43px; background: #000; border-radius: 14px; z-index: 2; }
.mini-scr { width: 100%; height: 100%; border-radius: 35px; overflow: hidden; background: #111; position: relative; }
.mini-scr img { width: 100%; display: block; will-change: transform; }
.work-tag { font-size: 13px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; }
.work-text h3 { font-size: 28px; margin: 6px 0 12px; }
.work-text p { color: var(--muted); line-height: 1.6; margin: 0; }
.work-link { font-weight: 700; color: var(--brand); text-decoration: none; }
.work-link:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .work-item, .work-item.flip { grid-template-columns: 1fr; gap: 30px; margin-bottom: 60px; }
  .work-item.flip .work-phone { order: 0; }
  .mini-phone { width: 250px; height: 527px; }
}

/* Live demo */
.demo-block { background: linear-gradient(180deg, transparent, rgba(29, 78, 216, .05) 30%, rgba(14, 165, 160, .06) 70%, transparent); max-width: none; }
.demo { max-width: 960px; margin: 0 auto; display: grid; grid-template-columns: 420px 1fr; gap: 50px; align-items: center; }
.demo-card { position: relative; background: #fff; border-radius: 26px; overflow: hidden; box-shadow: 0 30px 70px rgba(15, 23, 42, .16); border: 1px solid var(--border); min-height: 470px; }
.demo-head { background: linear-gradient(135deg, #1d4ed8, #0ea5a0); color: #fff; padding: 24px 26px; }
.demo-name { font-size: 20px; font-weight: 800; }
.demo-sub { font-size: 14px; opacity: .85; }
.demo-body { padding: 20px 22px 24px; }
.demo-lab { font-size: 14px; font-weight: 700; color: #334155; margin: 6px 0 10px; }
.demo-days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 14px; }
.demo-days button, .demo-slots button { font: inherit; border: 2px solid var(--border); background: #fff; border-radius: 14px; cursor: pointer; color: var(--text); transition: transform .15s, background .2s, border-color .2s, color .2s; }
.demo-days button { padding: 8px 0; }
.demo-days button small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; }
.demo-days button b { font-size: 20px; }
.demo-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.demo-slots button { padding: 12px 0; font-weight: 700; font-size: 15px; }
.demo-days button:hover, .demo-slots button:hover:not(:disabled) { transform: translateY(-2px); border-color: #93c5fd; }
.demo-days button.sel { background: var(--brand); border-color: var(--brand); color: #fff; }
.demo-days button.sel small { color: #dbeafe; }
.demo-slots button.sel { background: var(--accent); border-color: var(--accent); color: #fff; }
.demo-slots button:disabled { background: #f1f5f9; color: #cbd5e1; text-decoration: line-through; cursor: not-allowed; }
.demo-slots button.pop { animation: yb-slot .35s ease; }
@keyframes yb-slot { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: none; } }
.demo-btn { width: 100%; margin-top: 18px; padding: 16px; border: 0; border-radius: 16px; background: var(--brand); color: #fff; font: inherit; font-weight: 800; font-size: 16px; cursor: pointer; transition: transform .15s, opacity .2s; box-shadow: 0 10px 24px rgba(29, 78, 216, .3); }
.demo-btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.demo-btn:not(:disabled):hover { transform: translateY(-2px); }
.demo-done { padding: 46px 26px 30px; text-align: center; }
.demo-done[hidden] { display: none; }
.demo-check { width: 110px; height: 110px; border-radius: 50%; background: var(--accent); margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; box-shadow: 0 16px 40px rgba(14, 165, 160, .4); animation: yb-pop .5s cubic-bezier(.34, 1.56, .64, 1) both; }
.demo-check svg { width: 60px; height: 60px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 22; stroke-dashoffset: 22; animation: yb-draw .45s .3s ease forwards; }
@keyframes yb-draw { to { stroke-dashoffset: 0; } }
.demo-check { transform: scale(.4); opacity: 0; }
.demo-done-h { font-size: 24px; font-weight: 800; }
.demo-done-s { color: var(--brand); font-weight: 700; margin-top: 4px; }
.demo-done-m { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 16px auto 22px; max-width: 320px; }
.demo-again { font: inherit; font-weight: 700; color: var(--brand); background: none; border: 2px solid #bfdbfe; border-radius: 12px; padding: 10px 22px; cursor: pointer; }
.demo-toast { position: absolute; left: 14px; right: 14px; top: 14px; display: flex; gap: 12px; align-items: center; background: rgba(255, 255, 255, .96); border-radius: 18px; padding: 12px 14px; box-shadow: 0 14px 34px rgba(15, 23, 42, .22); transform: translateY(-140%); transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); font-size: 13px; color: var(--muted); }
.demo-toast b { display: block; color: var(--text); font-size: 14px; }
.demo-toast.show { transform: none; }
.demo-toast-ic { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 10px; background: #3b82f6; display: flex; align-items: center; justify-content: center; }
.demo-side { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.demo-point { display: flex; gap: 14px; align-items: flex-start; }
.demo-point span { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 14px; background: #fff; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.demo-point b { display: block; }
.demo-point div { color: var(--muted); line-height: 1.5; font-size: 15px; }
.demo-point div b { color: var(--text); font-size: 16px; }
@media (max-width: 820px) { .demo { grid-template-columns: 1fr; gap: 34px; } .demo-card { max-width: 420px; width: 100%; margin: 0 auto; } }

/* Before / after slider */
.ba { position: relative; max-width: 920px; margin: 0 auto; aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 70px rgba(15, 23, 42, .2); border: 1px solid var(--border); user-select: none; touch-action: pan-y; background: #fff; }
.ba-after img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.old { width: 100%; height: 100%; background: #e8f5c8 repeating-linear-gradient(45deg, rgba(0, 128, 0, .06) 0 14px, transparent 14px 28px); font-family: "Times New Roman", Times, serif; color: #000; overflow: hidden; }
.old-marq { background: #c00; color: #ffef00; font: bold clamp(10px, 1.6vw, 15px) "Courier New", monospace; padding: 6px 0; white-space: nowrap; overflow: hidden; }
.old-marq span { display: inline-block; animation: yb-marq 12s linear infinite; }
@keyframes yb-marq { from { transform: translateX(30%); } to { transform: translateX(-60%); } }
.old-title { font: bold clamp(20px, 4.4vw, 42px) "Times New Roman", serif; color: #00c; text-decoration: underline; text-align: center; padding: 3% 10px 1%; text-shadow: 2px 2px 0 #f0f; }
.old-links { text-align: center; color: #00e; font-size: clamp(11px, 1.8vw, 17px); }
.old-uc { margin: 2% 6%; background: repeating-linear-gradient(-45deg, #ffd400 0 18px, #111 18px 36px); padding: 1%; }
.old-uc div { background: #ffd400; font: bold clamp(12px, 2.4vw, 24px) "Courier New", monospace; text-align: center; padding: 1%; border: 2px dashed #111; }
.old-row { display: flex; gap: 4%; margin: 2% 6%; align-items: flex-start; }
.old-img { flex: 0 0 38%; aspect-ratio: 16 / 10; background: #ddd; border: 3px inset #999; display: flex; align-items: center; justify-content: center; font: clamp(9px, 1.4vw, 14px) Arial, sans-serif; color: #777; text-align: center; }
.old-p { font-size: clamp(11px, 2vw, 19px); line-height: 1.35; }
.old-p u { color: #00e; }
.old-count { display: inline-block; margin-top: 8%; background: #000; color: #0f0; font: clamp(9px, 1.5vw, 15px) "Courier New", monospace; padding: 4px 8px; }
.old-small { text-align: center; font-style: italic; font-size: clamp(9px, 1.4vw, 13px); color: #444; }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px; background: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, .35); pointer-events: none; }
.ba-knob { position: absolute; top: 50%; left: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; color: var(--brand); }
.ba-lab { position: absolute; top: 14px; padding: 6px 12px; border-radius: 20px; background: rgba(15, 23, 42, .7); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; pointer-events: none; }
.ba-lab-l { left: 14px; } .ba-lab-r { right: 14px; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-range:focus-visible + * , .ba:focus-within .ba-knob { outline: 3px solid #93c5fd; }

/* How it works */
.steps { position: relative; max-width: 680px; margin: 0 auto; padding-left: 70px; }
.steps-line { position: absolute; left: 25px; top: 10px; bottom: 10px; width: 4px; border-radius: 4px; background: var(--border); }
.steps-fill { width: 100%; height: 100%; border-radius: 4px; background: linear-gradient(#1d4ed8, #0ea5a0); transform-origin: top; transform: scaleY(0); }
.step { position: relative; padding: 4px 0 40px; opacity: .35; transform: translateX(16px); transition: opacity .5s, transform .5s; }
.step:last-child { padding-bottom: 0; }
.step.on { opacity: 1; transform: none; }
.step-dot { position: absolute; left: -70px; top: 0; width: 54px; height: 54px; border-radius: 50%; background: #fff; border: 3px solid var(--border); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; color: var(--muted); transition: background .4s, border-color .4s, color .4s, box-shadow .4s; }
.step.on .step-dot { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 0 0 8px rgba(29, 78, 216, .12); }
.step-body h3 { margin: 10px 0 6px; font-size: 20px; }
.step-body p { margin: 0; color: var(--muted); line-height: 1.6; }

/* Client quotes */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; max-width: 900px; margin: 0 auto; }
.quote { margin: 0; background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 30px 28px; position: relative; }
.quote::before { content: "“"; position: absolute; top: -6px; left: 22px; font-size: 90px; line-height: 1; color: rgba(14, 165, 160, .25); font-family: Georgia, serif; }
.quote blockquote { margin: 18px 0 18px; font-size: 18px; line-height: 1.6; }
.quote figcaption b { display: block; }
.quote figcaption span { color: var(--muted); font-size: 14px; }

/* Pricing */
.price-wrap { display: flex; justify-content: center; }
.price-card { position: relative; width: 100%; max-width: 520px; background: var(--card); border-radius: 26px; padding: 40px 36px 32px; text-align: center; box-shadow: 0 30px 70px rgba(15, 23, 42, .14); isolation: isolate; transition: transform .3s; }
.price-card::before { content: ""; position: absolute; inset: -3px; border-radius: 29px; z-index: -1; background: conic-gradient(from var(--ang, 0deg), #f59e0b, #ec4899, #3b82f6, #14b8a6, #f59e0b); animation: yb-spin 6s linear infinite; }
.price-card::after { content: ""; position: absolute; inset: 0; border-radius: 26px; background: var(--card); z-index: -1; }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes yb-spin { to { --ang: 360deg; } }
.price-card:hover { transform: translateY(-6px); }
.price-badge { display: inline-block; background: rgba(14, 165, 160, .12); color: var(--accent); font-weight: 800; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 6px 14px; border-radius: 30px; }
.price-row { display: flex; justify-content: center; align-items: center; gap: 22px; margin: 20px 0 6px; }
.price-big { font-size: 54px; font-weight: 800; letter-spacing: -2px; line-height: 1; }
.price-small { color: var(--muted); font-size: 13px; margin-top: 6px; }
.price-plus { font-size: 30px; color: var(--muted); font-weight: 300; }
.price-card .ticks { text-align: left; display: inline-block; }
.price-foot { color: var(--muted); font-size: 13px; margin: 0 0 20px; }
.price-cta { display: block; }
.price-ref { margin-top: 18px; font-size: 14px; background: #fff7ed; color: #9a3412; border-radius: 12px; padding: 10px 14px; }

/* FAQ */
.faq { max-width: 720px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 16px; margin-bottom: 12px; overflow: hidden; transition: box-shadow .3s; }
.faq details[open] { box-shadow: 0 12px 30px rgba(15, 23, 42, .08); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: rgba(29, 78, 216, .08); color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 20px; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 22px 20px; color: var(--muted); line-height: 1.6; }

/* Final CTA */
.final { max-width: 960px; margin: 30px auto 80px; padding: 60px 30px; text-align: center; border-radius: 28px; color: #fff; background: radial-gradient(circle at 15% 20%, rgba(236, 72, 153, .5), transparent 45%), radial-gradient(circle at 85% 80%, rgba(20, 184, 166, .5), transparent 45%), linear-gradient(135deg, #0b1230, #1d2a6b); box-shadow: 0 30px 70px rgba(15, 23, 42, .25); }
.final h2 { font-size: 34px; margin: 0 0 10px; }
.final p { margin: 0 0 26px; color: #c7d2fe; }
.final-btn { background: #fff; color: var(--brand); padding: 16px 34px; font-size: 17px; }
.final-btn:hover { background: #e0e7ff; }
@media (max-width: 700px) { .final { margin: 20px 16px 70px; } .final h2 { font-size: 27px; } .block-head h2 { font-size: 27px; } }

/* Sticky "Start Your Project" button on phones */
.sticky-cta { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100; display: none; text-align: center; padding: 16px; border-radius: 16px; background: var(--brand); color: #fff; font-weight: 800; text-decoration: none; box-shadow: 0 14px 34px rgba(29, 78, 216, .45); transform: translateY(140%); transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.sticky-cta.show { transform: none; }
@media (max-width: 760px) { .sticky-cta { display: block; } }

/* Reduce motion: calm versions */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-glow i, .old-marq span, .price-card::before { animation: none; }
  .step { opacity: 1; transform: none; transition: none; }
  .steps-fill { transform: none; }
  .demo-check, .demo-check svg { animation: none; transform: none; opacity: 1; stroke-dashoffset: 0; }
  .sticky-cta, .demo-toast { transition: none; }
}

@media (max-width: 600px) {
  .ba { aspect-ratio: 4 / 5; }
  .old-row { flex-direction: column; }
  .old-img { flex: none; width: 70%; margin: 0 auto; }
}
@media (max-width: 760px) { body { padding-bottom: 84px; } }
.ba-after, .ba-after picture { display: block; width: 100%; height: 100%; }

.quote .stars { color: #f59e0b; font-size: 18px; letter-spacing: 3px; margin-top: 18px; }
.quote .stars + blockquote { margin-top: 10px; }

/* =====================================================
   Portfolio page
   ===================================================== */
.grad-text { background: linear-gradient(90deg, #f59e0b, #ec4899, #60a5fa, #2dd4bf); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Intro */
.pf-hero { position: relative; overflow: hidden; background: radial-gradient(ellipse at 50% 120%, #1d2a6b 0, #070a18 65%); color: #fff; text-align: center; padding: 110px 20px 120px; }
.pf-hero-glow i { position: absolute; width: 480px; height: 480px; border-radius: 50%; filter: blur(90px); opacity: .45; animation: yb-drift 16s ease-in-out infinite alternate; }
.pf-hero-glow i:nth-child(1) { background: #ec4899; left: -140px; top: -80px; }
.pf-hero-glow i:nth-child(2) { background: #3b82f6; right: -160px; top: 60px; animation-duration: 20s; animation-delay: -5s; }
.pf-hero-glow i:nth-child(3) { background: #14b8a6; left: 40%; bottom: -260px; animation-duration: 24s; animation-delay: -10s; opacity: .35; }
.pf-hero-in { position: relative; max-width: 820px; margin: 0 auto; }
.pf-hero h1 { font-size: 64px; line-height: 1.05; letter-spacing: -2px; margin: 10px 0 22px; }
.pf-hero p { font-size: 19px; line-height: 1.6; color: #c7d2fe; max-width: 600px; margin: 0 auto; }
.eyebrow-dark { background: rgba(255, 255, 255, .1); color: #5eead4; }
.pf-scroll { display: inline-block; margin-top: 44px; width: 30px; height: 50px; border: 2px solid rgba(255, 255, 255, .5); border-radius: 20px; position: relative; }
.pf-scroll span { position: absolute; left: 50%; top: 9px; width: 4px; height: 10px; margin-left: -2px; border-radius: 2px; background: #fff; animation: yb-wheel 1.8s ease-in-out infinite; }
@keyframes yb-wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }
@media (max-width: 700px) { .pf-hero { padding: 80px 20px 90px; } .pf-hero h1 { font-size: 42px; letter-spacing: -1px; } .pf-hero p { font-size: 17px; } }

/* Case studies */
.case { position: relative; overflow: hidden; color: #fff; padding: 110px 20px; }
.case-az { background: radial-gradient(circle at 85% 20%, rgba(224, 112, 58, .45), transparent 45%), linear-gradient(160deg, #1b2735, #253447 60%, #1b2735); }
.case-smg { background: radial-gradient(circle at 15% 80%, rgba(59, 138, 216, .45), transparent 45%), radial-gradient(circle at 90% 10%, rgba(234, 88, 12, .25), transparent 40%), linear-gradient(160deg, #07090c, #121820 60%, #07090c); }
.case-bigname { position: absolute; top: 50%; left: -10%; margin-top: -90px; white-space: nowrap; font-size: 180px; font-weight: 900; letter-spacing: -4px; line-height: 1; color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .1); pointer-events: none; user-select: none; will-change: transform; }
.case-in { position: relative; max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: 320px 1fr; gap: 70px; align-items: center; }
.case.flip .case-in { grid-template-columns: 1fr 320px; }
.case.flip .case-phone { order: 2; }
.case .mini-phone { box-shadow: 0 50px 100px rgba(0, 0, 0, .6), 0 0 0 2px #3a3d4a inset; }
.case-az .mini-phone { box-shadow: 0 50px 100px rgba(0, 0, 0, .6), 0 0 80px rgba(224, 112, 58, .35), 0 0 0 2px #3a3d4a inset; }
.case-smg .mini-phone { box-shadow: 0 50px 100px rgba(0, 0, 0, .6), 0 0 80px rgba(59, 138, 216, .4), 0 0 0 2px #3a3d4a inset; }
.case-num { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.case-az .case-num { color: #f3a273; } .case-smg .case-num { color: #7cb8f0; }
.case-text h2 { font-size: 44px; line-height: 1.1; letter-spacing: -1px; margin: 10px 0 16px; }
.case-text p { color: #cbd5e1; line-height: 1.7; font-size: 17px; margin: 0 0 22px; }
.case-feats { list-style: none; padding: 0; margin: 0 0 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.case-feats li { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; padding: 10px 14px; font-size: 14px; font-weight: 600; }
.case-quote { margin: 0 0 26px; padding: 20px 22px; border-radius: 16px; background: rgba(255, 255, 255, .06); border-left: 4px solid; }
.case-az .case-quote { border-color: #e0703a; } .case-smg .case-quote { border-color: #3b8ad8; }
.case-quote .stars { color: #fbbf24; letter-spacing: 3px; font-size: 16px; }
.case-quote blockquote { margin: 8px 0; font-size: 18px; line-height: 1.55; font-style: italic; }
.case-quote figcaption { color: #94a3b8; font-size: 14px; }
.case-link { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 14px; font-weight: 700; text-decoration: none; color: #fff; transition: transform .2s, box-shadow .2s; }
.case-az .case-link { background: #e0703a; box-shadow: 0 12px 30px rgba(224, 112, 58, .4); }
.case-smg .case-link { background: #3b8ad8; box-shadow: 0 12px 30px rgba(59, 138, 216, .4); }
.case-link span { transition: transform .2s; }
.case-link:hover { transform: translateY(-2px); }
.case-link:hover span { transform: translateX(5px); }
@media (max-width: 800px) {
  .case { padding: 80px 20px; }
  .case-in, .case.flip .case-in { grid-template-columns: 1fr; gap: 40px; }
  .case.flip .case-phone { order: 0; }
  .case-text h2 { font-size: 32px; }
  .case-bigname { font-size: 110px; top: 18%; }
  .case-feats { grid-template-columns: 1fr; }
}

/* Example cards */
.pf-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 920px; margin: 0 auto; }
.pf-card { position: relative; display: block; text-decoration: none; color: var(--text); background: var(--card); border: 1px solid var(--border); border-radius: 22px; padding: 30px 28px; overflow: hidden; isolation: isolate; transition: box-shadow .3s, border-color .3s; }
.pf-card::before { content: ""; position: absolute; width: 260px; height: 260px; right: -90px; top: -110px; border-radius: 50%; background: linear-gradient(135deg, var(--c1), var(--c2)); opacity: .12; z-index: -1; transition: transform .5s, opacity .5s; }
.pf-card:hover { box-shadow: 0 24px 50px rgba(15, 23, 42, .14); border-color: transparent; }
.pf-card:hover::before { transform: scale(1.6); opacity: .18; }
.pf-ic { width: 64px; height: 64px; border-radius: 18px; background: linear-gradient(135deg, var(--c1), var(--c2)); display: flex; align-items: center; justify-content: center; font-size: 30px; box-shadow: 0 12px 26px rgba(15, 23, 42, .18); transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.pf-card:hover .pf-ic { transform: rotate(-8deg) scale(1.08); }
.pf-tag { margin-top: 18px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pf-card h3 { font-size: 21px; margin: 6px 0 10px; }
.pf-card p { color: var(--muted); line-height: 1.6; margin: 0 0 18px; font-size: 15px; }
.pf-go { font-weight: 700; color: var(--brand); }
.pf-go span { display: inline-block; transition: transform .2s; }
.pf-card:hover .pf-go span { transform: translateX(6px); }
.pf-page .page-note { text-align: center; max-width: 600px; margin: 30px auto 0; }
@media (max-width: 700px) { .pf-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .pf-hero-glow i, .pf-scroll span { animation: none; }
}

/* Portfolio: demo showcases with 3D fanned page stacks */
.ds-list { display: flex; flex-direction: column; gap: 40px; }
.ds { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding: 50px 40px; border-radius: 32px; overflow: hidden; isolation: isolate; background: linear-gradient(135deg, color-mix(in srgb, var(--c1) 10%, #fff), color-mix(in srgb, var(--c2) 8%, #fff)); border: 1px solid color-mix(in srgb, var(--c1) 18%, #fff); }
.ds::before { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; border-radius: 50%; left: -120px; top: -160px; background: radial-gradient(circle, color-mix(in srgb, var(--c1) 30%, transparent), transparent 65%); }
.ds.flip { grid-template-columns: 1fr 1.1fr; }
.ds.flip .ds-stage { order: 2; }
.ds.flip::before { left: auto; right: -120px; }
.ds-stage { position: relative; height: 470px; perspective: 1400px; }
.ds-screen { position: absolute; left: 50%; top: 50%; width: 200px; height: 356px; margin: -190px 0 0 -100px; transform-style: preserve-3d; transition: transform .12s linear, filter .3s; will-change: transform; cursor: default; }
.ds-screen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 18px; background: var(--pg); box-shadow: 0 30px 60px rgba(15, 23, 42, .28), 0 0 0 1px rgba(15, 23, 42, .06); animation: ds-float 6s ease-in-out infinite; animation-delay: calc(var(--i) * -1.6s); }
@keyframes ds-float { 50% { transform: translateY(-8px); } }
.ds-screen figcaption { position: absolute; left: 0; right: 0; bottom: -34px; text-align: center; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: color-mix(in srgb, var(--c1) 80%, #000); opacity: var(--lab, 0); transition: opacity .3s; }
.ds-screen:hover { --hs: 1.07; filter: brightness(1.03); z-index: 20 !important; }
.ds-tag { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--c1); }
.ds-text h3 { font-size: 30px; line-height: 1.15; margin: 8px 0 12px; }
.ds-text p { color: var(--muted); line-height: 1.65; margin: 0 0 18px; }
.ds-feats { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.ds-feats li { background: #fff; border: 1px solid color-mix(in srgb, var(--c1) 22%, #fff); color: color-mix(in srgb, var(--c1) 75%, #000); border-radius: 30px; padding: 7px 14px; font-size: 13px; font-weight: 600; }
.ds-go { display: inline-flex; gap: 10px; align-items: center; padding: 14px 26px; border-radius: 14px; font-weight: 700; color: #fff; text-decoration: none; background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 12px 28px color-mix(in srgb, var(--c1) 40%, transparent); transition: transform .2s; }
.ds-go span { transition: transform .2s; }
.ds-go:hover { transform: translateY(-2px); }
.ds-go:hover span { transform: translateX(5px); }
@media (max-width: 820px) {
  .ds, .ds.flip { grid-template-columns: 1fr; padding: 34px 20px 30px; gap: 26px; border-radius: 24px; }
  .ds.flip .ds-stage { order: 0; }
  .ds-stage { height: 330px; }
  .ds-screen { width: 140px; height: 249px; margin: -134px 0 0 -70px; }
  .ds-screen img { border-radius: 14px; }
  .ds-screen figcaption { font-size: 10px; bottom: -26px; }
  .ds-text h3 { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) { .ds-screen img { animation: none; } .ds-screen { transition: none; } }
.ds-text { position: relative; z-index: 30; }

/* Client agreement (request form + agreement page) */
.agreement-box {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
}
.agreement-box p { margin: 0 0 10px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.agreement-box .check-inline { margin: 0; }
.agreement-box a, .consent a { color: var(--brand); font-weight: 600; }
.legal { max-width: 760px; }
.legal h2 { font-size: 18px; margin: 28px 0 8px; }
.legal p, .legal li { font-size: 15px; line-height: 1.65; color: var(--text); }
.legal ul { padding-left: 20px; margin: 0 0 8px; }
.legal .meta { color: var(--muted); font-size: 13px; }
.legal .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media print { .site-header, .site-footer, .legal .actions { display: none; } }

/* Optional photo upload (request form) + owner portal photo strip */
.photo-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; margin: 10px 0; }
.photo-preview:empty { display: none; }
.photo-thumb { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--bg); border: 1px solid var(--border); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-thumb.no-preview::after { content: attr(data-name); position: absolute; inset: 6px; font-size: 10px; color: var(--muted); overflow: hidden; word-break: break-all; }
.photo-thumb button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; font-size: 16px; line-height: 24px; cursor: pointer; }
#r-photo-notes { margin-top: 4px; }
.photo-strip { display: flex; flex-wrap: wrap; gap: 6px; }
.photo-mini { width: 56px; height: 56px; object-fit: cover; }

/* ===== Pricing page ===== */
.pricing-hero .block-head h1 { font-size: clamp(32px, 6vw, 46px); line-height: 1.1; margin: 0 0 12px; }
.plans { display: grid; gap: 20px; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.plan { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: 22px; padding: 28px 24px 24px; box-shadow: 0 12px 30px rgba(15, 23, 42, .06); }
.plan-pop { border: 0; box-shadow: 0 30px 70px rgba(15, 23, 42, .16); isolation: isolate; }
.plan-pop::before { content: ""; position: absolute; inset: -3px; border-radius: 25px; z-index: -1; background: conic-gradient(from var(--ang, 0deg), #f59e0b, #ec4899, #3b82f6, #14b8a6, #f59e0b); animation: yb-spin 6s linear infinite; }
.plan-pop::after { content: ""; position: absolute; inset: 0; border-radius: 22px; background: var(--card); z-index: -1; }
@media (min-width: 900px) { .plan-pop { transform: translateY(-10px); } }
.plan-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: linear-gradient(90deg, #ec4899, #8b5cf6); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 6px 14px; border-radius: 30px; white-space: nowrap; }
.plan-name { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin-top: 12px; }
.plan-big { font-size: 48px; font-weight: 800; letter-spacing: -2px; line-height: 1; }
.plan-per, .plan-from { color: var(--muted); font-size: 14px; }
.plan-month { font-weight: 700; margin-top: 6px; }
.plan-lede { color: var(--muted); margin: 12px 0 0; line-height: 1.5; }
.plan .ticks { flex: 1; }
.plan-eg { font-size: 13px; color: var(--muted); font-style: italic; margin: 0 0 16px; }
.plan-btn { display: block; text-align: center; }
.ghost-btn { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 2px var(--brand); }
.ghost-btn:hover { background: var(--brand); color: #fff; }
.pricing-extras { padding-top: 10px; }
.extras-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .extras-grid { grid-template-columns: 1fr 1fr; } }
.extras-card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 24px; }
.extras-card h2 { font-size: 20px; margin: 0 0 6px; }
.addons { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 15px; }
.addons td { padding: 10px 0; border-bottom: 1px solid var(--border); }
.addons td:last-child { text-align: right; font-weight: 700; white-space: nowrap; padding-left: 12px; }
.steps-row { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: 1fr; counter-reset: s; }
@media (min-width: 700px) { .steps-row { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps-row { grid-template-columns: repeat(4, 1fr); } }
.steps-row li { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 22px; }
.steps-row b { display: inline-flex; width: 34px; height: 34px; border-radius: 50%; align-items: center; justify-content: center; background: var(--brand); color: #fff; }
.steps-row h3 { margin: 12px 0 6px; font-size: 17px; }
.steps-row p { margin: 0; color: var(--muted); line-height: 1.5; font-size: 15px; }
.faq { max-width: 720px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; margin-bottom: 10px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { color: var(--muted); line-height: 1.6; margin: 10px 0 0; }
.faq a { color: var(--brand); }
.pricing-cta { text-align: center; }
.pricing-cta h2 { font-size: 30px; margin: 18px 0 8px; }
.pricing-cta p { color: var(--muted); max-width: 520px; margin: 0 auto 22px; line-height: 1.6; }
.ref-note { display: inline-block; background: #fff7ed; color: #9a3412; border-radius: 12px; padding: 10px 16px; font-size: 15px; }
