/* =============================================================
   Scalify — Website Subscription funnel
   Soft lavender canvas · white rounded cards · photo cards with
   blurred-bottom overlays · black pill actions · purple accent.
   ============================================================= */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #f6f6f8;
  --surface: #ffffff;
  --ink: #131318;
  --ink-2: #44444c;
  --muted: #76767f;
  --line: #ebebef;

  --accent: #6d28d9;
  --accent-2: #7c3aed;
  --accent-light: #a78bfa;
  --accent-soft: #f2ecfd;
  --accent-border: #e3d6fb;

  --green: #16a34a;
  --red: #dc2626;

  --radius: 26px;
  --radius-md: 18px;
  --radius-sm: 13px;

  --shadow-sm: 0 2px 10px rgba(20,18,26,.05);
  --shadow: 0 16px 44px -18px rgba(20,18,26,.20);
  --shadow-lg: 0 36px 80px -28px rgba(20,18,26,.30);

  --maxw: 1080px;
  --font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Geist", -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-2);
  background-color: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); margin: 0 0 .4em; letter-spacing: -0.03em; font-weight: 700; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.1rem); font-weight: 700; line-height: 1.03; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; line-height: 1.07; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1rem; }
a { color: var(--ink); text-decoration: none; }
strong { color: var(--ink); font-weight: 700; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); }
.center .lead { margin-left: auto; margin-right: auto; }

/* tag / eyebrow pill */
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .76rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-border);
  padding: 6px 13px; border-radius: 999px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 700; font-size: 1rem; cursor: pointer;
  padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform .08s ease, box-shadow .25s ease, background .2s ease, border-color .2s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 14px 30px -10px rgba(20,18,26,.5); }
.btn-primary:hover { background: #28242f; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-white { background: #fff; color: var(--ink); box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 18px 40px -12px rgba(124,58,237,.75); }
.btn-accent:hover { background: var(--accent-2); }
.btn-lg { padding: 17px 32px; font-size: 1.06rem; }
.btn-sm { padding: 10px 18px; font-size: .9rem; }
.btn-block { width: 100%; }

/* ---- Header ---- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(246,246,248,.82); backdrop-filter: saturate(180%) blur(12px); }
.site-header .bar { display: flex; align-items: center; height: 72px; }
.brand { font-weight: 800; font-size: 1.4rem; color: var(--ink); letter-spacing: -0.03em; }
.brand .reg { color: var(--accent); font-size: .5em; vertical-align: super; }
.brand .dot { color: var(--accent); }
.brand small { font-weight: 500; color: var(--muted); font-size: .8rem; }
.page-tag { margin-left: auto; font-size: .82rem; font-weight: 600; letter-spacing: .02em; color: var(--muted); }
.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }

/* ---- VSL hero (dark panel) ---- */
.vsl-hero { padding: clamp(14px, 3vw, 28px) 16px 0; }
.vsl-panel {
  max-width: 1080px; margin: 0 auto; border-radius: 30px; overflow: hidden; position: relative;
  background-image:
    radial-gradient(900px 440px at 50% -10%, rgba(124,58,237,.32), transparent 58%),
    linear-gradient(180deg, rgba(10,8,14,.60) 0%, rgba(10,8,14,.72) 46%, rgba(9,7,13,.97) 100%),
    url("../img/perth.jpg");
  background-size: cover, cover, cover;
  background-position: center, center, center;
  background-repeat: no-repeat;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 50px 110px -40px rgba(20,18,26,.55);
}
.vsl-banner {
  background: var(--accent); color: #fff; text-align: center;
  font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 11px 14px;
}
.vsl-body { padding: clamp(28px, 4.5vw, 50px) clamp(20px, 5vw, 64px) clamp(34px, 4.5vw, 54px); text-align: center; position: relative; z-index: 1; }
.vsl-logo { display: inline-block; color: #fff; font-weight: 800; font-size: 1.4rem; letter-spacing: -0.03em; margin-bottom: clamp(20px, 3vw, 30px); }
.vsl-logo .reg { color: var(--accent-light); font-size: .5em; vertical-align: super; }
.vsl-body h1 { color: #fff; font-size: clamp(1.9rem, 4.4vw, 3.3rem); line-height: 1.1; max-width: 18ch; margin: 0 auto 16px; letter-spacing: -0.025em; }
.vsl-body h1 .hl { background: linear-gradient(transparent 60%, rgba(124,58,237,.55) 0); padding: 0 2px; }
.vsl-sub { color: rgba(255,255,255,.66); font-size: clamp(1.05rem, 2vw, 1.28rem); max-width: 52ch; margin: 0 auto clamp(26px, 3.5vw, 34px); }
.vsl-screen {
  max-width: 660px; margin: 0 auto; padding: 8px; border-radius: 20px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09);
  box-shadow: 0 40px 90px -28px rgba(124,58,237,.55);
}
.vsl-screen .video-frame { border-radius: 13px; }
.vsl-points { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; padding: 0; margin: clamp(24px,3.5vw,32px) 0; }
.vsl-points li { color: rgba(255,255,255,.86); font-weight: 600; font-size: .96rem; display: flex; align-items: center; gap: 8px; }
.vsl-points li::before { content: "✓"; color: var(--accent-light); font-weight: 800; }
.vsl-proof { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 22px; color: rgba(255,255,255,.7); font-size: .92rem; }
.vsl-proof strong { color: #fff; }
.avatars { display: flex; }
.avatars img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: top center; border: 2px solid #14101d; margin-left: -10px; }
.avatars img:first-child { margin-left: 0; }

.video-frame { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: var(--radius-md); overflow: hidden; background: #100c1a; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; color: #cdbcf2; text-align: center; padding: 20px; }
.video-placeholder .play { width: 66px; height: 66px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; color: #fff; font-size: 1.3rem; box-shadow: 0 14px 32px -8px rgba(109,40,217,.6); }
.video-placeholder small { font-size: .8rem; opacity: .8; }

/* ---- Sections ---- */
.section { padding: clamp(54px, 8vw, 88px) 0; }
.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head .lead { margin-top: 10px; }

/* generic card */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---- Recent work (proof carousel) ---- */
.car-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.car-head .eyebrow { margin-bottom: 12px; }
.car-head h2 { margin: 0; }
.car-count { font-variant-numeric: tabular-nums; font-size: 1.05rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.car-rule { height: 1px; background: var(--line); margin: 16px 0 26px; }

.carousel { position: relative; }
.car-track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 12px 2px; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.car-track::-webkit-scrollbar { display: none; }

.car-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow); color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center; padding-bottom: 3px;
}
.car-arrow:hover { border-color: var(--ink); }
.car-arrow.prev { left: 4px; }
.car-arrow.next { right: 4px; }

.car-progress { height: 4px; width: 130px; margin: 26px auto 0; background: var(--line); border-radius: 999px; overflow: hidden; }
.car-progress > i { display: block; height: 100%; width: 5.5%; background: var(--accent); border-radius: 999px; transition: width .25s ease; }

.work-card {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4;
  box-shadow: var(--shadow); background: linear-gradient(165deg, #2c2545, #16121f);
  display: block; color: #fff;
}
.car-track .work-card { flex: 0 0 300px; scroll-snap-align: start; }
.work-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.work-card .grad { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,6,14,.92) 4%, rgba(8,6,14,.45) 34%, rgba(8,6,14,0) 62%); }
.work-card .info { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 2; }
.work-card .info h3 { color: #fff; font-size: 1.3rem; font-weight: 700; margin: 0; letter-spacing: -0.02em; }
.work-card .info .sub { color: rgba(255,255,255,.78); font-size: .9rem; font-weight: 500; }
.work-card .info .view { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; }
.work-empty { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.55); font-weight: 600; font-size: .9rem; z-index: 2; padding: 20px; text-align: center; }

/* ---- Inline quiz card ---- */
.quiz-card { max-width: 660px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }

/* ---- About / profile card ---- */
.profile-card {
  max-width: 380px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line);
  border-radius: 30px; overflow: hidden; box-shadow: var(--shadow-lg);
}
.pc-photo { position: relative; }
.pc-photo img { width: 100%; aspect-ratio: 1 / 1.04; object-fit: cover; object-position: top center; display: block; }
.pc-photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 32%; background: linear-gradient(transparent, var(--surface)); }
.pc-body { padding: 4px 26px 26px; }
.pc-name { display: flex; align-items: center; gap: 8px; font-size: 1.55rem; font-weight: 700; color: var(--ink); letter-spacing: -0.025em; margin: 0 0 8px; }
.pc-name .verified { flex: 0 0 auto; }
.pc-bio { color: var(--ink-2); font-size: 1.04rem; line-height: 1.5; margin: 0 0 22px; }
.pc-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.pc-stats { display: flex; gap: 18px; }
.pc-stats span { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 600; font-size: .98rem; }
.pc-stats svg { color: var(--muted); }
.pc-follow {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 999px;
  padding: 12px 22px; font-weight: 700; font-size: 1rem; box-shadow: 0 8px 20px rgba(20,18,26,.10);
  transition: border-color .15s ease, transform .08s ease;
}
.pc-follow:hover { border-color: var(--ink); transform: translateY(-1px); }
.pc-follow .plus { color: var(--accent); font-size: 1.2rem; line-height: 1; }

/* ---- What's included (feature cards) ---- */
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 880px; margin: 0 auto; }
.feature {
  display: flex; align-items: center; gap: 15px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-md); padding: 18px 20px; box-shadow: var(--shadow-sm);
  transition: transform .12s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--accent-border); }
.f-ico { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 13px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.f-ico svg { width: 22px; height: 22px; }
.f-label { font-weight: 600; color: var(--ink); font-size: 1rem; line-height: 1.32; }

.price-card {
  max-width: 880px; margin: 24px auto 0; text-align: center; border-radius: var(--radius); padding: 44px 28px;
  background:
    radial-gradient(700px 320px at 50% -25%, rgba(124,58,237,.42), transparent 60%),
    linear-gradient(180deg, #181122 0%, #0c0a12 100%);
  border: 1px solid rgba(255,255,255,.08); color: #fff; box-shadow: var(--shadow-lg);
}
.price-amt { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 5vw, 3rem); letter-spacing: -0.03em; color: #fff; }
.price-amt .num { color: var(--accent-light); }
.price-amt .per { font-size: .98rem; font-weight: 600; color: rgba(255,255,255,.6); letter-spacing: 0; }
.price-meta { color: rgba(255,255,255,.6); font-size: .92rem; margin: 8px 0 24px; }

/* ---- Testimonials ---- */
.tgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.quote-card .stars { color: var(--accent); letter-spacing: 2px; margin-bottom: 12px; }
.quote-card blockquote { margin: 0 0 18px; font-size: 1.05rem; color: var(--ink); font-weight: 500; line-height: 1.5; }
.quote-card .who b { display: block; color: var(--ink); font-size: .95rem; }
.quote-card .who span { color: var(--muted); font-size: .88rem; }

/* ---- FAQ ---- */
.faq { max-width: 720px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 4px 24px; margin-bottom: 14px; background: var(--surface); box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.06rem; color: var(--ink); padding: 18px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--accent); font-weight: 800; font-size: 1.2rem; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 16px; margin: 0; color: var(--ink-2); }

/* ---- Footer ---- */
.site-footer { padding: 48px 0; }
.foot { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.foot-brand { font-size: 1.25rem; }
.foot-contact { margin: 0; font-size: .98rem; color: var(--muted); }
.foot-contact a { color: var(--ink); font-weight: 600; }
.foot-copy { margin: 0; font-size: .82rem; color: var(--muted); }

/* shared bits for quiz/book result screens */
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.result .hero-ctas { justify-content: center; }
.help { color: var(--muted); margin-top: -6px; margin-bottom: 18px; }

/* ===========================================================
   FORMS (quiz + intake + booking)
   =========================================================== */
.form-page { max-width: 640px; margin: 0 auto; padding: 40px 22px 80px; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.progress { height: 7px; background: var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 8px; }
.progress > i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .3s ease; }
.progress-label { font-size: .82rem; font-weight: 600; color: var(--muted); margin-bottom: 28px; }

.step { display: none; }
.step.active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.step h2 { font-size: 1.5rem; }

.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=url], .field textarea {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; color: var(--ink); background: #fff; transition: border .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field textarea { min-height: 110px; resize: vertical; }

.options { display: grid; gap: 10px; }
.option { display: flex; align-items: center; gap: 12px; padding: 15px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; background: #fff; transition: all .12s ease; }
.option:hover { border-color: var(--accent); }
.option input { accent-color: var(--accent); width: 18px; height: 18px; flex: 0 0 auto; }
.option.selected { border-color: var(--accent); background: var(--accent-soft); }
.option span { color: var(--ink); font-weight: 500; }

.step-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.step-nav .btn-ghost.hidden { visibility: hidden; }
.err { color: var(--red); font-size: .9rem; margin-top: 8px; display: none; }
.err.show { display: block; }

.result { text-align: center; padding: 16px 0; }
.result .badge { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; margin: 0 auto 18px; }
.result .badge.ok { background: #ecfdf5; color: var(--green); }
.result .badge.soft { background: var(--accent-soft); color: var(--accent); }
.booking-frame { width: 100%; min-height: 720px; border: 1px solid var(--line); border-radius: var(--radius-md); margin-top: 24px; background: #fff; }

.notice { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; padding: 14px 16px; border-radius: var(--radius-sm); font-size: .92rem; margin-top: 16px; }

/* ---- Motion ---- */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.reveal { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
.reveal.d1 { animation-delay: .08s; }
.reveal.d2 { animation-delay: .18s; }
.reveal.d3 { animation-delay: .30s; }

/* ---- Responsive ---- */
@media (max-width: 880px) {
  .tgrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .vsl-hero { padding: 12px 12px 0; }
  .vsl-panel { border-radius: 22px; }
  .vsl-points { gap: 8px 20px; }
  .tgrid { grid-template-columns: 1fr; }
  .car-track .work-card { flex-basis: 80vw; }
  .car-arrow { width: 40px; height: 40px; font-size: 1.4rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .quiz-card { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .step.active { animation: none; }
  html { scroll-behavior: auto; }
}
