/* Pepa Cleaning landing page + form. Mobile first. Brand from pepacleaning.com:
   navy #0d2144, blue #1a5ad7, orange #f5a01f, Plus Jakarta Sans. */
:root {
  --navy: #0d2144;
  --navy-2: #0f2f6b;
  --blue: #1a5ad7;
  --orange: #f5a01f;
  --orange-2: #e08a06;
  --ink: #16223b;
  --muted: #5b6a86;
  --line: #e3e9f4;
  --bg: #ffffff;
  --soft: #f4f7fc;
  --radius: 18px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 17px/1.55 var(--font); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body.locked { overflow: hidden; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* buttons */
.btn { appearance: none; border: 0; cursor: pointer; font: 800 18px/1 var(--font); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; padding: 0 28px; border-radius: 14px; background: var(--orange); color: var(--navy); text-decoration: none; box-shadow: 0 14px 30px -14px rgba(245, 160, 31, .9); transition: transform .15s ease, background .15s ease; }
.btn:hover { background: #ffad2e; transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn .arr { font-size: 22px; line-height: 1; }
.btn.small { min-height: 42px; padding: 0 18px; font-size: 15px; border-radius: 12px; box-shadow: none; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: default; transform: none; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(13, 33, 68, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: -.01em; }
.brand img { width: 40px; height: 40px; border-radius: 50%; background: #fff; }

/* hero */
.hero { background: radial-gradient(120% 90% at 85% 0%, #1a4fb8 0%, rgba(26, 79, 184, 0) 60%), linear-gradient(165deg, var(--navy) 0%, var(--navy-2) 70%, #123f8f 100%); color: #fff; padding: 36px 0 0; overflow: hidden; }
.hero .grid { display: grid; gap: 28px; }
.hero h1 { font-size: clamp(34px, 9.4vw, 60px); line-height: 1.04; font-weight: 800; letter-spacing: -.03em; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero p { margin-top: 14px; font-size: 19px; color: #c9d6f2; }
.hero .btn { margin-top: 24px; width: 100%; }
.hero-shot { position: relative; margin: 0 -16px; }
.hero-shot img { width: 100%; height: auto; aspect-ratio: 1200 / 760; object-fit: cover; }
@media (min-width: 700px) {
  .hero .btn { width: auto; }
  .hero-shot { margin: 0; }
  .hero-shot img { border-radius: var(--radius) var(--radius) 0 0; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
}
@media (min-width: 980px) {
  .hero { padding: 64px 0 64px; }
  .hero .grid { grid-template-columns: 1fr 1.15fr; align-items: center; gap: 48px; }
  .hero-shot img { border-radius: var(--radius); }
}

/* sections */
.sec { padding: 56px 0; }
.sec.soft { background: var(--soft); }
.sec h2 { font-size: clamp(28px, 7vw, 42px); line-height: 1.1; font-weight: 800; letter-spacing: -.025em; color: var(--navy); text-wrap: balance; }
.sec h2 + * { margin-top: 24px; }

/* how it works */
.steps { display: grid; gap: 14px; counter-reset: s; list-style: none; padding: 0; margin: 24px 0 0; }
.steps li { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.steps .n { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--navy); color: #fff; }
.steps .n svg { width: 24px; height: 24px; }
.steps h3 { font-size: 20px; line-height: 1.25; font-weight: 800; color: var(--navy); }
.steps p { margin-top: 4px; color: var(--muted); font-size: 16px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } .steps li { flex-direction: column; } }

/* before / after wall */
.wall { display: grid; grid-auto-flow: column; grid-auto-columns: 88%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 24px -16px 0; padding: 0 16px 4px; scrollbar-width: none; }
.wall::-webkit-scrollbar { display: none; }
.wall figure { margin: 0; scroll-snap-align: center; border-radius: var(--radius); overflow: hidden; background: #e8edf6; }
.wall img { width: 100%; height: auto; aspect-ratio: 1200 / 760; object-fit: cover; }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: #c7d2e6; transition: background .2s, width .2s; }
.dots i.on { background: var(--blue); width: 22px; border-radius: 99px; }
@media (min-width: 860px) { .wall { grid-auto-flow: row; grid-template-columns: 1fr 1fr; overflow: visible; margin: 24px 0 0; padding: 0; } .dots { display: none; } }

/* proof */
.proof { display: grid; gap: 20px; align-items: center; }
.stars { display: flex; align-items: center; gap: 12px; }
.stars b { font-size: 56px; line-height: 1; font-weight: 800; color: var(--navy); letter-spacing: -.03em; }
.stars .s { color: var(--orange); font-size: 24px; letter-spacing: 2px; }
.stars small { display: block; color: var(--muted); font-size: 15px; font-weight: 600; }
.stars a { color: inherit; }
blockquote { margin: 20px 0 0; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); font-size: 19px; line-height: 1.5; color: var(--ink); position: relative; }
blockquote::before { content: "\201C"; position: absolute; top: -18px; left: 18px; font-size: 64px; line-height: 1; color: var(--orange); font-weight: 800; }
blockquote cite { display: block; margin-top: 12px; font-style: normal; font-weight: 700; font-size: 15px; color: var(--muted); }
.van { border-radius: var(--radius); overflow: hidden; }
.van img { width: 100%; height: auto; aspect-ratio: 1200 / 898; object-fit: cover; }
@media (min-width: 860px) { .proof { grid-template-columns: 1fr 1fr; gap: 48px; } }

/* final call */
.final { background: linear-gradient(165deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; text-align: center; }
.final h2 { color: #fff; }
.final .btn { margin-top: 24px; width: 100%; max-width: 420px; }

footer { background: var(--navy); color: #8ea3cf; font-size: 14px; padding: 22px 0 calc(22px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255, 255, 255, .08); }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
footer a { color: #b9c9ec; }

/* ---------------- the form ---------------- */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(6, 14, 30, .6); display: none; align-items: stretch; justify-content: center; }
.overlay.open { display: flex; }
.sheet { background: #fff; width: 100%; height: 100%; display: flex; flex-direction: column; }
@media (min-width: 700px) {
  .overlay { align-items: center; padding: 24px; }
  .sheet { max-width: 560px; height: auto; min-height: 560px; max-height: calc(100vh - 48px); border-radius: 22px; overflow: hidden; }
}
.sheet-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; padding-top: max(12px, env(safe-area-inset-top)); border-bottom: 1px solid var(--line); }
.icon-btn { appearance: none; border: 0; background: var(--soft); color: var(--navy); width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 24px; line-height: 1; cursor: pointer; flex: none; }
.icon-btn[hidden] { visibility: hidden; display: grid; }
.progress { flex: 1; height: 8px; background: var(--soft); border-radius: 99px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--orange); border-radius: 99px; transition: width .3s ease; }
.testpill { background: var(--orange); color: var(--navy); font-weight: 800; font-size: 12px; padding: 4px 8px; border-radius: 99px; }
.sheet-body { flex: 1; overflow-y: auto; padding: 26px 18px 28px; -webkit-overflow-scrolling: touch; }
.screen h2 { font-size: 27px; line-height: 1.2; font-weight: 800; color: var(--navy); letter-spacing: -.02em; text-wrap: balance; }
.screen .sub { margin-top: 8px; color: var(--muted); font-size: 16px; }
.opts { display: grid; gap: 10px; margin-top: 20px; }
.opt { appearance: none; text-align: left; width: 100%; min-height: 60px; padding: 14px 18px; border: 2px solid var(--line); border-radius: 14px; background: #fff; font: 700 18px/1.3 var(--font); color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; transition: border-color .15s, background .15s; }
.opt::after { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #c3cee3; }
.opt:hover { border-color: #b9c9ec; }
.opt[aria-pressed="true"] { border-color: var(--blue); background: #eef4ff; }
.opt[aria-pressed="true"]::after { border-color: var(--blue); background: var(--blue); box-shadow: inset 0 0 0 4px #eef4ff; }
.field { margin-top: 20px; }
.field input { width: 100%; height: 60px; padding: 0 16px; border: 2px solid var(--line); border-radius: 14px; font: 700 20px var(--font); color: var(--ink); background: #fff; outline: none; }
.field input:focus { border-color: var(--blue); }
.field input.caps { text-transform: uppercase; letter-spacing: .04em; }
.field input.caps::placeholder { text-transform: none; letter-spacing: 0; }
.err { display: none; margin-top: 10px; color: #b3261e; font-weight: 700; font-size: 15px; }
.err.on { display: block; }
.next-row { margin-top: 22px; display: grid; gap: 10px; }
.linkish { appearance: none; border: 0; background: none; color: var(--muted); font: 700 16px var(--font); text-decoration: underline; cursor: pointer; padding: 10px; }

/* photos */
.pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.pick label { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 110px; border: 2px dashed #b9c9ec; border-radius: 16px; background: #f7f9fe; color: var(--navy); font-weight: 800; font-size: 16px; text-align: center; cursor: pointer; }
.pick label svg { width: 30px; height: 30px; color: var(--blue); }
.pick input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.pick.full label { opacity: .4; pointer-events: none; }
/* A computer has no camera to point at a room: one button. */
@media (hover: hover) and (pointer: fine) { .pick { grid-template-columns: 1fr; } .pick .cam { display: none; } }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #e8edf6; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .rm { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(13, 33, 68, .8); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.thumb .st { position: absolute; left: 6px; bottom: 6px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 800; color: #fff; }
.thumb .st.up { background: rgba(13, 33, 68, .7); }
.thumb .st.up::before { content: ""; width: 12px; height: 12px; border: 2px solid #fff; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
.thumb .st.ok { background: #1faa53; }
.thumb .st.bad { background: #b3261e; cursor: pointer; }
@keyframes spin { to { transform: rotate(360deg); } }
.count { margin-top: 10px; color: var(--muted); font-size: 15px; font-weight: 700; }

/* done */
.done { text-align: center; padding-top: 20px; }
.done .tick { width: 76px; height: 76px; border-radius: 50%; background: #1faa53; color: #fff; display: grid; place-items: center; margin: 0 auto 18px; font-size: 40px; font-weight: 800; }
.done p { margin-top: 12px; font-size: 18px; color: var(--ink); }
.done .call { margin-top: 20px; background: var(--soft); border-radius: 16px; padding: 16px; font-size: 17px; }
.done .call b { display: block; font-size: 24px; color: var(--navy); margin-top: 4px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
