/* Visual layer: gradients, illustrations, app mockups, motion */
:root {
  --grad-hero: radial-gradient(1200px 600px at 85% 10%, rgba(244, 114, 182, 0.35), transparent 60%),
               radial-gradient(900px 500px at 10% 90%, rgba(56, 189, 248, 0.22), transparent 60%),
               linear-gradient(135deg, #1E0A4A 0%, #3B0F8C 45%, #6D28D9 100%);
  --lav: #EDE6FE;
  --mint: #D1FAE5;
  --peach: #FFE4D6;
  --sky: #DBEAFE;
}

/* Gradient hero */
.hero-visual { position: relative; overflow: hidden; background: var(--grad-hero); color: #EDE6FE; padding: 72px 0 96px; }
.hero-visual h1 { color: #fff; font-size: clamp(38px, 6vw, 68px); line-height: 1.04; letter-spacing: -1.2px; }
.hero-visual .lead { color: #E9E3FF; max-width: 560px; }
.hero-visual .pill { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.25); color: #fff; backdrop-filter: blur(6px); }
.hero-visual .trust-row { color: #fff; }
.hero-visual .trust-row .ico { color: #86EFAC; }
.hero-visual .form-card { box-shadow: 0 24px 60px rgba(17, 5, 48, 0.35); border: 0; }
.hero-visual::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 64px; background: var(--bg); border-radius: 64px 64px 0 0; }
.hero-visual .hero-grid { position: relative; z-index: 1; }
.grain { position: absolute; inset: 0; pointer-events: none; opacity: 0.5; background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px); background-size: 22px 22px; }

/* Phone stage with floating chips */
.stage { position: relative; display: flex; justify-content: center; padding: 30px 0; }
.stage .phone { position: relative; z-index: 1; box-shadow: 0 40px 80px rgba(17, 5, 48, 0.45); background: #12052F; }
.float-chip { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 10px; background: #fff; color: var(--ink); border-radius: 18px; padding: 12px 16px; font-weight: 800; font-size: 14px; box-shadow: 0 18px 40px rgba(17, 5, 48, 0.25); animation: float 6s ease-in-out infinite; white-space: nowrap; }
.float-chip small { display: block; font-weight: 600; color: var(--muted); font-size: 12px; }
.chip-icon { width: 36px; height: 36px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chip-icon .ico { width: 20px; height: 20px; }
.ci-green { background: var(--mint); color: var(--green); }
.ci-purple { background: var(--lav); color: var(--primary); }
.ci-red { background: #FEE2E2; color: var(--error); }
.fc-1 { top: 70px; left: -10px; }
.fc-2 { top: 300px; right: -20px; animation-delay: -2s; }
.fc-3 { bottom: 70px; left: 0; animation-delay: -4s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 1100px) { .fc-1 { left: 0; } .fc-2 { right: 0; } }
@media (max-width: 520px) { .float-chip { display: none; } }

/* Feature tiles strip */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.tile { position: relative; overflow: hidden; border-radius: 32px; padding: 30px; min-height: 380px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.tile h3 { font-family: var(--font-head); font-weight: 400; font-size: 28px; line-height: 1.15; }
.tile p { font-size: 16px; max-width: 320px; }
.tile-lav { background: linear-gradient(160deg, #F3EEFF, #DCCEFF); }
.tile-mint { background: linear-gradient(160deg, #ECFDF5, #BBF7D0); }
.tile-peach { background: linear-gradient(160deg, #FFF4EE, #FFD3BF); }
.tile-art { display: flex; justify-content: center; align-items: flex-end; flex: 1; }

/* Mini illustrations inside tiles */
.id-card { width: 250px; background: #fff; border-radius: 22px; padding: 18px; box-shadow: 0 20px 40px rgba(46, 16, 101, 0.15); display: flex; flex-direction: column; gap: 12px; transform: rotate(-4deg); }
.id-head { display: flex; gap: 12px; align-items: center; }
.avatar { width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(135deg, #C4B5FD, #F9A8D4); display: flex; align-items: flex-end; justify-content: center; overflow: hidden; flex-shrink: 0; }
.avatar svg { width: 44px; height: 44px; }
.line { height: 10px; border-radius: 99px; background: #EDE9F7; }
.line.w60 { width: 60%; } .line.w80 { width: 80%; } .line.w40 { width: 40%; }

.house-art svg { width: 240px; height: 200px; filter: drop-shadow(0 20px 30px rgba(20, 83, 45, 0.18)); }

.sos-art { position: relative; width: 200px; height: 200px; display: flex; align-items: center; justify-content: center; }
.sos-art .ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(185, 28, 28, 0.35); animation: pulse 2.6s ease-out infinite; }
.sos-art .ring:nth-child(2) { animation-delay: -0.9s; }
.sos-art .ring:nth-child(3) { animation-delay: -1.8s; }
.sos-btn { position: relative; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #F87171, #B91C1C); color: #fff; font-weight: 800; font-size: 26px; display: flex; align-items: center; justify-content: center; box-shadow: 0 18px 36px rgba(185, 28, 28, 0.35); letter-spacing: 1px; }
@keyframes pulse { 0% { transform: scale(0.55); opacity: 1; } 100% { transform: scale(1.15); opacity: 0; } }

/* Big statement + stats */
.statement { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 48px; }
.statement h2 { font-size: clamp(34px, 5.5vw, 64px); line-height: 1.08; max-width: 980px; }
.statement h2 .hl { background: linear-gradient(90deg, #7C3AED, #DB2777); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; width: 100%; }
.stat { background: #fff; border: 1px solid var(--border); border-radius: 26px; padding: 28px 20px; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.stat strong { font-family: var(--font-head); font-weight: 400; font-size: clamp(44px, 5vw, 60px); line-height: 1; color: var(--primary); }
.stat span { font-weight: 700; color: var(--ink); }

/* Alternating feature rows with app mockups */
.feature-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 56px; align-items: center; }
.feature-row + .feature-row { margin-top: 96px; }
.feature-row.reverse > .feature-copy { order: 2; }
@media (max-width: 900px) { .feature-row.reverse > .feature-copy { order: 0; } }
.feature-copy { display: flex; flex-direction: column; gap: 18px; }
.kicker { font-weight: 800; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; font-size: 13px; }
.feature-copy h2 { font-size: clamp(30px, 4vw, 46px); }
.mock-stage { position: relative; border-radius: 36px; padding: 44px 28px; display: flex; justify-content: center; overflow: hidden; }
.mock-stage.lav { background: linear-gradient(150deg, #F3EEFF, #D8C8FF); }
.mock-stage.mint { background: linear-gradient(150deg, #ECFDF5, #A7F3D0); }
.mock-stage.peach { background: linear-gradient(150deg, #FFF4EE, #FECDB8); }
.mock-stage.sky { background: linear-gradient(150deg, #EFF6FF, #C7DCFF); }
.app-card { width: 100%; max-width: 380px; background: #fff; border-radius: 26px; padding: 22px; box-shadow: 0 30px 60px rgba(46, 16, 101, 0.16); display: flex; flex-direction: column; gap: 14px; position: relative; z-index: 1; }
.app-card h4 { margin: 0; font-family: var(--font-head); font-weight: 400; font-size: 20px; color: var(--ink); }
.app-sub { font-size: 13px; color: var(--muted); }
.vstep { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: #FAF7FF; }
.vstep .chip-icon { width: 40px; height: 40px; }
.vstep div { display: flex; flex-direction: column; flex: 1; }
.vstep strong { color: var(--ink); font-size: 15px; }
.vstep span { font-size: 12px; color: var(--muted); }
.vstep .done { width: 24px; height: 24px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; }
.vstep .done .ico { width: 14px; height: 14px; stroke-width: 3; }
.progress { height: 10px; border-radius: 99px; background: #EDE9F7; overflow: hidden; }
.progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #7C3AED, #22C55E); border-radius: 99px; }
.tagset { display: flex; flex-wrap: wrap; gap: 8px; }
.tagset span { background: var(--lav); color: var(--ink); font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 99px; }
.tagset span.match { background: var(--mint); color: var(--green-ink); }
.match-row { display: flex; gap: 12px; align-items: center; }
.match-row .avatar { width: 56px; height: 56px; }
.match-row div { display: flex; flex-direction: column; gap: 2px; }
.match-score { margin-left: auto; font-family: var(--font-head); font-size: 26px; color: var(--green); }
.pg-photo { height: 170px; border-radius: 18px; overflow: hidden; background: linear-gradient(180deg, #C7DCFF, #EDE6FE); display: flex; align-items: flex-end; justify-content: center; }
.pg-photo svg { width: 100%; height: 150px; }
.mini-check { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink); }
.mini-check span { display: flex; align-items: center; gap: 6px; }
.mini-check .ico { width: 16px; height: 16px; color: var(--green); stroke-width: 3; }
.behind-card { position: absolute; z-index: 0; width: 300px; height: 380px; border-radius: 26px; background: rgba(255, 255, 255, 0.55); transform: rotate(8deg) translate(40px, 10px); }

/* Dark safety section */
.safety-dark { position: relative; overflow: hidden; background: radial-gradient(800px 400px at 80% 20%, rgba(244, 63, 94, 0.25), transparent 60%), linear-gradient(160deg, #12052F, #2E1065); color: #E9E3FF; padding: 104px 0; }
.safety-dark h2 { color: #fff; font-size: clamp(32px, 4.5vw, 52px); }
.safety-dark .lead { color: #DDD6FE; }
.safety-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 56px; align-items: center; }
.dark-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; margin-top: 28px; }
.dark-feature { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.dark-feature h3 { color: #fff; font-size: 17px; }
.dark-feature p { font-size: 14px; color: #DDD6FE; }
.dark-feature .ico-lg { color: #C4B5FD; }
.sos-stage { display: flex; justify-content: center; }
.sos-stage .sos-art { width: 320px; height: 320px; }
.sos-stage .sos-btn { width: 160px; height: 160px; font-size: 36px; }
.sos-stage .ring { border-color: rgba(248, 113, 113, 0.5); }

/* Illustrated bands */
.art-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.art-card { border-radius: 32px; padding: 36px; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; min-height: 300px; }
.art-card h2 { font-size: clamp(26px, 3vw, 34px); }
.art-card p { max-width: 380px; }
.art-card .btn { align-self: flex-start; margin-top: auto; }
.art-card .corner-art { position: absolute; right: -10px; bottom: -10px; opacity: 0.9; }
.art-card .corner-art svg { width: 180px; height: 180px; }

/* Page heroes for subpages */
.page-hero-visual { position: relative; overflow: hidden; background: var(--grad-hero); color: #E9E3FF; padding: 72px 0 104px; }
.page-hero-visual h1 { color: #fff; font-size: clamp(34px, 5vw, 58px); line-height: 1.08; }
.page-hero-visual .lead { color: #E9E3FF; }
.page-hero-visual .pill { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.25); color: #fff; }
.page-hero-visual a { color: #fff; }
.page-hero-visual .checklist { color: #fff; }
.page-hero-visual .checklist .ico { color: #86EFAC; }
.page-hero-visual::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 56px; background: var(--bg); border-radius: 56px 56px 0 0; }
.page-hero-visual .container { position: relative; z-index: 1; }
.page-hero-visual .form-card a { color: #6D28D9; }
.hero-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 56px; align-items: center; }
.hero-split > div:first-child { display: flex; flex-direction: column; gap: 20px; }

/* Final CTA */
.final-cta { position: relative; overflow: hidden; background: var(--grad-hero); padding: 112px 0; text-align: center; }
.final-cta h2 { color: #fff; font-size: clamp(36px, 5.5vw, 64px); line-height: 1.08; max-width: 900px; margin: 0 auto; }
.final-cta p { color: #E9E3FF; margin: 18px auto 32px; max-width: 560px; font-size: 18px; }

@media (prefers-reduced-motion: reduce) {
  .float-chip, .sos-art .ring { animation: none !important; }
  .sos-art .ring { opacity: 0.4; transform: scale(0.9); }
}

/* Fixes */
.fc-1 { top: 8px; left: -40px; }
.fc-2 { top: 260px; right: -40px; }
.fc-3 { bottom: 150px; left: -50px; }
@media (max-width: 1100px) { .fc-1 { left: 0; } .fc-2 { right: 0; } .fc-3 { left: 0; } }
.hero-visual .phone-wrap figcaption { color: #DDD6FE; }
.footer-brand img { align-self: flex-start; }

/* ===== Watercolour theme ===== */
.hero-visual, .page-hero-visual, .final-cta {
  background: linear-gradient(90deg, rgba(255, 250, 244, 0.94) 0%, rgba(255, 250, 244, 0.8) 38%, rgba(255, 250, 244, 0.15) 62%, rgba(255, 250, 244, 0) 100%),
              url("assets/img/hero-scene.webp") right bottom / cover no-repeat, #FFFAF4;
  color: var(--text);
}
.hero-visual .grain, .page-hero-visual .grain, .final-cta .grain { display: none; }
.hero-visual h1, .page-hero-visual h1, .final-cta h2 { color: var(--ink); }
.hero-visual .lead, .page-hero-visual .lead, .final-cta p { color: var(--text); }
.hero-visual .pill, .page-hero-visual .pill { background: rgba(255, 255, 255, 0.85); border-color: var(--border); color: var(--ink); }
.hero-visual .trust-row { color: var(--ink); }
.hero-visual .trust-row .ico, .page-hero-visual .checklist .ico { color: var(--green); }
.page-hero-visual .checklist { color: var(--ink); font-weight: 600; }
.page-hero-visual a { color: #6D28D9; }
.hero-visual .form-card, .page-hero-visual .form-card { box-shadow: 0 24px 60px rgba(46, 16, 101, 0.14); border: 1px solid var(--border); }
.hero-visual::after, .page-hero-visual::after { display: none; }
.hero-visual { padding: 64px 0 40px; }
.page-hero-visual { padding: 72px 0 88px; }
.final-cta { background: linear-gradient(180deg, rgba(255, 250, 244, 0.9) 0%, rgba(255, 250, 244, 0.55) 55%, rgba(255, 250, 244, 0.2) 100%), url("assets/img/hero-scene.webp") center bottom / cover no-repeat, #FFFAF4; }
.final-cta .btn-light { background: var(--primary); color: #fff; }
.final-cta .btn-light:hover { background: var(--primary-dark); }

/* Stage with the girl */
.stage { align-items: flex-end; min-height: 560px; }
.hero-girl { width: min(100%, 470px); height: auto; position: relative; z-index: 1; filter: drop-shadow(0 18px 30px rgba(46, 16, 101, 0.12)); }
.fc-1 { top: 40px; left: 0; }
.fc-2 { top: 230px; right: -10px; }
.fc-3 { bottom: 60px; left: -10px; }
@media (max-width: 900px) {
  .hero-visual, .page-hero-visual { background: linear-gradient(180deg, rgba(255, 250, 244, 0.93) 0%, rgba(255, 250, 244, 0.86) 60%, rgba(255, 250, 244, 0.5) 100%), url("assets/img/hero-scene.webp") 70% bottom / cover no-repeat, #FFFAF4; }
  .stage { min-height: 0; }
}

/* Tiles with painted pictures */
.tile { min-height: 440px; }
.tile-art img { width: 100%; max-width: 360px; height: auto; }
.tile-lav { background: linear-gradient(160deg, #F6F2FF, #E6DCFF); }
.tile-mint { background: linear-gradient(160deg, #F1FBF5, #D3F2E1); }
.tile-peach { background: linear-gradient(160deg, #FFF7F1, #FFE1D2); }

/* Paint washes behind app mockups */
.mock-stage { background-size: cover !important; background-position: center !important; }
.mock-stage.lav { background: url("assets/img/wash-lav.webp"), #F6F2FF; }
.mock-stage.peach { background: url("assets/img/wash-peach.webp"), #FFF6EF; }
.mock-stage.mint { background: url("assets/img/wash-mint.webp"), #F2FBF6; }
.mock-stage.sky { background: url("assets/img/wash-sky.webp"), #F2F7FF; }
.behind-card { background: rgba(255, 255, 255, 0.5); }

/* Painted frames and art cards */
.painted-frame { border-radius: 36px; overflow: hidden; background: #FFFCF8; box-shadow: 0 20px 50px rgba(46, 16, 101, 0.08); }
.painted-frame img { width: 100%; height: auto; }
.art-card .art-hero { width: 100%; height: auto; border-radius: 22px; margin-bottom: 6px; }
.art-card .corner-art img { width: 170px; height: auto; }
.art-hero-box { height: 260px; border-radius: 22px; overflow: hidden; background: rgba(255, 255, 255, 0.55); display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.art-card .art-hero-box .art-hero { width: auto; height: 100%; max-width: 100%; object-fit: contain; border-radius: 0; margin: 0; }
