/* Skinalyze — mobile-first styles. Brand blue matches the iOS app. */
:root {
  --blue: #2563eb; --blue-d: #1d4ed8; --blue-l: #eff6ff;
  --ink: #0f172a; --body: #334155; --muted: #64748b; --line: #e2e8f0; --bg: #ffffff; --soft: #f8fafc;
  --good: #22c55e; --attention: #f97316; --care: #ef4444;
  --r: 16px; --shadow: 0 10px 30px rgba(15, 23, 42, .08);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: clip; }
a, button, label, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
body { margin: 0; font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif; color: var(--body); background: var(--bg); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(28px, 6vw, 46px); letter-spacing: -.02em; }
h2 { font-size: clamp(22px, 4vw, 30px); margin-top: 1.6em; }
h3 { font-size: 18px; }
a { color: var(--blue); }
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 620px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small, small { font-size: 13px; }
.pad-xl { padding: 80px 16px; }

/* Header / footer */
.topbar { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.92); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 20; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 19px; color: var(--ink); text-decoration: none; }
.brand img { border-radius: 8px; }
.nav a { margin-left: 18px; color: var(--body); text-decoration: none; font-weight: 600; font-size: 15px; }
.footer { border-top: 1px solid var(--line); margin-top: 60px; padding: 28px 0 100px; font-size: 13px; color: var(--muted); }
.footer a { color: var(--muted); }
.disclaimer { max-width: 720px; }

/* Buttons & inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--blue); color: #fff; border: 0; border-radius: 14px; padding: 14px 22px; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; transition: transform .08s, background .15s; box-shadow: 0 6px 16px rgba(37,99,235,.25); }
.btn:hover { background: var(--blue-d); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-xl { padding: 18px 28px; font-size: 18px; }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--blue); box-shadow: none; border: 2px solid var(--line); }
.btn-ghost:hover { background: var(--blue-l); }
.btn-white { background: #fff; color: var(--blue); }
.btn-google { background: #fff; color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; }
.btn-google:hover { background: var(--soft); }
.input, select { width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; font-size: 16px; margin-bottom: 10px; background: #fff; }
.input:focus { outline: 2px solid var(--blue); border-color: transparent; }
.link-muted { color: var(--muted); font-size: 14px; display: inline-block; margin-top: 14px; }
.error { color: var(--care); font-weight: 600; }
.warn { background: #fff7ed; color: #9a3412; padding: 10px 14px; border-radius: 12px; font-size: 14px; }
.demo-banner { background: #fef9c3; color: #854d0e; padding: 10px 14px; border-radius: 12px; font-size: 14px; }
.success-banner { background: #dcfce7; color: #166534; padding: 12px 16px; border-radius: 12px; }
.pill { display: inline-block; background: var(--blue-l); color: var(--blue); font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 999px; margin-bottom: 14px; }

/* Landing */
.hero { background: linear-gradient(180deg, var(--blue-l), #fff 85%); padding: 22px 0 20px; }
.hero-grid { display: grid; gap: 24px; align-items: center; }
.hero h1 { font-size: clamp(27px, 6vw, 46px); }
.lead { font-size: 18px; margin: 0 0 18px; }
.trust-row { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--muted); font-weight: 600; }
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-shot { display: none; }
.mock-card { position: static !important; width: 100% !important; max-width: 340px; }
.hero-shot { width: 230px; border-radius: 28px; box-shadow: var(--shadow); }
.mock-card { position: absolute; left: 0; bottom: 18px; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 16px; width: 250px; font-size: 14px; z-index: 2; }
.mock-head { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.mock-routine { background: var(--soft); border-radius: 10px; padding: 8px 10px; font-size: 12px; margin-top: 8px; }
.zone-list { list-style: none; padding: 0; margin: 0; }
.zone-list li { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.zone-list b { margin-left: auto; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.dot.good { background: var(--good); } .dot.attention { background: var(--attention); } .dot.care { background: var(--care); }
.cta-note { font-size: 13px; color: var(--muted); font-weight: 600; margin: 10px 0 0; }
.section { padding: 40px 0; }
.section.alt { background: var(--soft); }
.steps { display: grid; gap: 16px; margin-top: 20px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.step span { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; margin-bottom: 10px; }
.two-col { display: grid; gap: 28px; align-items: center; }
.rounded-shot { width: 260px; justify-self: center; border-radius: 28px; box-shadow: var(--shadow); }
.checks { list-style: none; padding: 0; margin: 0 0 22px; }
.checks li { position: relative; padding: 6px 0 6px 30px; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 6px; width: 20px; height: 20px; border-radius: 50%; background: #dcfce7; color: #15803d; font-size: 12px; font-weight: 900; display: grid; place-items: center; }
/* Before/after example card (illustrative, honestly labeled) */
.ba-wrap { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: stretch; max-width: 560px; margin: 22px auto 4px; }
.ba-col { background: #fff; border: 1.5px solid var(--line); border-radius: 18px; padding: 14px 12px; text-align: center; }
.ba-col.after { border-color: var(--blue); box-shadow: var(--shadow); }
.ba-tag { font-weight: 800; font-size: 11px; letter-spacing: .08em; color: var(--muted); }
.ba-tag.blue { color: var(--blue); }
.ba-col .ring { --size: 64px; margin: 8px auto; }
.ba-col .ring span { font-size: 20px; }
.ba-arrow { align-self: center; font-size: 24px; color: var(--blue); font-weight: 800; }
.ba-bars { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 7px; text-align: left; font-size: 12px; font-weight: 600; color: var(--ink); }
.ba-bars li { display: grid; gap: 3px; }
.ba-bars .bar { height: 7px; }
.ba-note { text-align: center; font-size: 12px; color: var(--muted); margin: 10px 0 18px; }
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { font-weight: 700; color: var(--ink); cursor: pointer; }
.cta-band { background: var(--blue); color: #fff; }
.cta-band h2 { color: #fff; margin-top: 0; }
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); z-index: 30; }

/* Score ring */
.ring { --v: 70; --size: 76px; width: var(--size); height: var(--size); flex: none; border-radius: 50%; display: grid; place-items: center; align-content: center; background: radial-gradient(closest-side, #fff 79%, transparent 80% 100%), conic-gradient(var(--blue) calc(var(--v) * 1%), #dbeafe 0); }
.ring span { font-size: 24px; font-weight: 800; color: var(--ink); line-height: 1; }
.ring small { font-size: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.ring.big { --size: 130px; }
.ring.big span { font-size: 42px; }

/* Funnel pages */
.is-bare .footer { padding-bottom: 40px; }
.funnel { padding: 12px 0 32px; position: relative; }
.funnel-tight .qtitle { font-size: clamp(22px, 5vw, 28px); margin: 4px 0 4px; }
.progress { height: 6px; background: #e2e8f0; border-radius: 99px; overflow: hidden; margin: 6px 0 18px; }
.progress-bar { height: 100%; background: var(--blue); border-radius: 99px; transition: width .3s; width: 5%; }
.back { position: absolute; top: 22px; left: 4px; width: 44px; height: 44px; border: 0; background: none; font-size: 22px; cursor: pointer; color: var(--muted); }
.funnel .qtitle { padding: 0 34px; }
.qtitle { font-size: clamp(24px, 5.5vw, 32px); text-align: center; margin-top: 10px; }
.qstep > .muted { text-align: center; margin-top: -4px; }
.options { display: grid; gap: 10px; margin: 22px 0; }
.option { display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; padding: 16px 18px; background: #fff; border: 2px solid var(--line); border-radius: 14px; font-size: 17px; font-weight: 600; color: var(--ink); cursor: pointer; transition: border-color .12s, background .12s; }
@media (hover: hover) { .option:hover { border-color: #bfdbfe; } } /* touch screens keep :hover after a tap, which looked like a pre-selection */
.option.selected { border-color: var(--blue); background: var(--blue-l); }
.oicon { font-size: 22px; }
.option .check { margin-left: auto; width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--line); display: grid; place-items: center; color: transparent; font-size: 13px; }
.option.selected .check { background: var(--blue); border-color: var(--blue); color: #fff; }
.info-card { background: var(--blue-l); border-radius: var(--r); padding: 24px; margin: 22px 0; font-size: 18px; color: var(--ink); }

/* Camera — height-capped so the action buttons always stay above the fold on phones */
.camera { position: relative; height: min(44vh, 420px); height: min(44dvh, 420px); min-height: 230px; margin-left: auto !important; margin-right: auto !important; background: #0f172a; border-radius: 22px; overflow: hidden; margin: 12px 0 10px; }
.camera video, .camera img { width: 100%; height: 100%; object-fit: cover; }
.camera video { transform: scaleX(-1); }
.oval { position: absolute; inset: 12% 18% 14%; border: 3px dashed rgba(255,255,255,.75); border-radius: 50%; pointer-events: none; }
.cam-hint { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; color: #fff; font-weight: 600; font-size: 14px; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.cam-actions { display: grid; gap: 10px; }
.cam-row { grid-template-columns: 1fr 1fr; }
.cam-row .btn { padding: 15px 6px; font-size: 15px; white-space: nowrap; }
.scan-sub { text-align: center; margin: -2px 0 0; font-size: 14px; }
.btn-plain { border: 0; background: none; color: var(--muted); font-weight: 700; font-size: 15px; padding: 10px; cursor: pointer; }
#confirmActions { display: grid; gap: 10px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; line-height: 1.45; background: var(--soft); padding: 10px 12px; border-radius: 12px; }
.consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.analyzing { position: fixed; inset: 0; background: #fff; z-index: 50; display: grid; place-items: center; padding: 20px; overflow-y: auto; }
.analyzing-in { width: 100%; max-width: 420px; text-align: center; }
.scan-anim { position: relative; width: 170px; height: 170px; margin: 0 auto 20px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 6px var(--blue-l); }
.scan-anim img { width: 100%; height: 100%; object-fit: cover; }
.scanline { position: absolute; left: 0; right: 0; height: 3px; background: var(--blue); box-shadow: 0 0 16px 4px rgba(37,99,235,.6); animation: scan 1.6s ease-in-out infinite alternate; }
@keyframes scan { from { top: 5%; } to { top: 95%; } }
.checklist { list-style: none; padding: 0; text-align: left; margin: 18px auto; max-width: 320px; }
.checklist li { padding: 6px 0 6px 30px; position: relative; color: var(--muted); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 9px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); }
.checklist li.done { color: var(--ink); }
.checklist li.done::before { background: var(--good); border-color: var(--good); content: "✓"; color: #fff; font-size: 11px; display: grid; place-items: center; font-weight: 900; }

/* Result */
.result { padding-top: 14px; padding-bottom: 40px; }
.result-top { display: grid; gap: 20px; }
.facemap { position: relative; border-radius: 22px; overflow: hidden; background: #0f172a; max-width: 460px; justify-self: center; width: 100%; }
.facemap img, .facemap canvas { display: block; width: 100%; height: auto; }
.facemap canvas { position: absolute; inset: 0; height: 100%; }
.facemap.cropped { aspect-ratio: 1; }
.facemap.cropped img { position: absolute; inset: 0; }
.facemap.cropped canvas { position: static; height: auto; }
.score-card { background: var(--soft); border-radius: 22px; padding: 22px; text-align: center; }
.score-card .ring { margin: 0 auto 10px; }
.legend { display: flex; justify-content: center; gap: 14px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.legend .good { background: var(--good); } .legend .attention { background: var(--attention); } .legend .care { background: var(--care); }
.unlock-card { margin-top: 20px; border: 2px solid var(--blue); border-radius: 22px; padding: 22px; background: linear-gradient(180deg, var(--blue-l), #fff); }
.unlock-card h2 { margin-top: 0; }
.zones { display: grid; gap: 10px; }
.zone { position: relative; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.zone-head { display: flex; align-items: center; gap: 8px; }
.zone-score { margin-left: auto; font-weight: 800; color: var(--ink); }
.zone p { margin: 6px 0 0; font-size: 15px; }
.zone.locked p { filter: blur(4px); user-select: none; }
.zone .lock { position: absolute; right: 14px; bottom: 12px; background: #fff; border-radius: 999px; padding: 4px 10px; font-size: 13px; font-weight: 700; text-decoration: none; box-shadow: var(--shadow); }
.metrics { display: grid; gap: 10px; position: relative; }
.metric { display: grid; grid-template-columns: 1fr 1.2fr 34px; align-items: center; gap: 10px; font-size: 14px; }
.bar { height: 10px; background: #e2e8f0; border-radius: 99px; overflow: hidden; position: relative; }
.bar i { display: block; height: 100%; background: var(--blue); border-radius: 99px; }
.bar.two i { position: absolute; left: 0; top: 0; }
.bar.two i.before { background: #cbd5e1; z-index: 1; }
.bar.two i:not(.before) { background: var(--blue); opacity: .85; }
.locked-block { position: relative; }
.locked-block > *:not(.lock-over) { filter: blur(5px); user-select: none; pointer-events: none; }
.lock-over { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; text-decoration: none; color: var(--ink); background: rgba(255,255,255,.35); z-index: 2; }
.routine-teaser { min-height: 180px; }
.routines { align-items: start; margin-top: 18px; }
.routine { background: var(--soft); border-radius: 16px; padding: 18px; }
.routine ol { padding-left: 20px; margin: 0; }
.routine li { margin-bottom: 10px; }
.priority, .tip { background: var(--blue-l); border-radius: 14px; padding: 14px 16px; margin-top: 18px; color: var(--ink); }

/* Auth */
.auth-box { margin-top: 22px; text-align: left; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 16px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Plans */
.plans { padding-bottom: 40px; }
.plan-hero { display: flex; gap: 16px; align-items: center; margin: 10px 0 16px; }
.plan-hero h1 { font-size: clamp(24px, 5vw, 32px); margin: 0; }
.plan-hero p { margin: 4px 0 0; }
.plan-gets { background: var(--soft); border-radius: 16px; padding: 14px 18px; }
.plan-list { display: grid; gap: 12px; margin: 16px 0 20px; }
.plan-card { position: relative; display: flex; align-items: center; gap: 14px; padding: 18px; border: 2px solid var(--line); border-radius: 16px; cursor: pointer; background: #fff; }
.plan-card input { position: absolute; opacity: 0; }
.plan-card.selected { border-color: var(--blue); background: var(--blue-l); }
.plan-card .radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #cbd5e1; flex: none; }
.plan-card.selected .radio { border: 7px solid var(--blue); }
.plan-name { display: flex; flex-direction: column; }
.plan-name b { color: var(--ink); font-size: 17px; }
.plan-name small { color: var(--muted); }
.plan-price { margin-left: auto; text-align: right; display: flex; flex-direction: column; }
.plan-price b { font-size: 22px; color: var(--ink); }
.badge { position: absolute; top: -11px; left: 18px; background: var(--blue); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 999px; letter-spacing: .04em; }
.checkout { display: grid; gap: 4px; }
#payment { margin-bottom: 14px; }
.terms { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; }
.guarantee { display: flex; gap: 14px; align-items: flex-start; background: #f0fdf4; border-radius: 16px; padding: 16px; margin-top: 18px; }
.guarantee span { font-size: 28px; }
.guarantee p { margin: 4px 0 0; font-size: 14px; }
.secure-row { text-align: center; font-size: 13px; color: var(--muted); margin: 14px 0; }

/* Welcome / upsell */
.success-icon { font-size: 54px; }
.upsell-card { margin-top: 22px; border: 2px dashed var(--blue); border-radius: 22px; padding: 24px; text-align: left; }
.upsell-card h2 { margin-top: 6px; }
.price-line { font-size: 20px; }
.price-line s { color: var(--muted); }

/* Dashboard */
.dash { padding-top: 22px; }
.dash-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
.dash-head h1 { font-size: 30px; margin: 0; }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.dash-grid .card { margin: 0; }
.dash-grid .card.latest { grid-column: 1 / -1; }
.card { display: block; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; color: inherit; text-decoration: none; margin-bottom: 12px; }
a.card:hover { border-color: #bfdbfe; }
.card.latest { display: flex; gap: 16px; align-items: center; }
.latest-row { display: flex; justify-content: space-between; align-items: center; background: #f1f2f6; border: 0; border-radius: 20px; margin-top: 14px; }
.latest-row b { display: block; font-size: 24px; color: var(--ink); }
.latest-row .right { text-align: right; }
.big-num { color: var(--blue) !important; font-size: 36px !important; line-height: 1; }
.card.danger { border-color: #fecaca; }
.link { font-weight: 700; color: var(--blue); }
.chart { width: 100%; height: auto; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; margin-top: 6px; }
.chart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.badge-item { text-align: center; border: 1px solid var(--line); border-radius: 14px; padding: 12px 6px; font-size: 12px; }
.badge-item span { display: block; font-size: 26px; }
.badge-item.off { opacity: .35; filter: grayscale(1); }
.history { display: grid; gap: 8px; }
.hist-row { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; }
.hist-link { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; flex: 1; }
.hist-link img { width: 56px; height: 56px; object-fit: cover; border-radius: 12px; }
.icon-btn { border: 0; background: none; font-size: 18px; cursor: pointer; width: 44px; height: 44px; flex: none; }

/* Compare */
.compare-pick { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.compare-pick select { flex: 1; min-width: 140px; margin: 0; }
.compare-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.compare-photos figure { margin: 0; }
.compare-photos img { border-radius: 16px; aspect-ratio: 3/4; object-fit: cover; width: 100%; }
.compare-photos figcaption { font-size: 13px; text-align: center; margin-top: 4px; }
.summary-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; background: var(--soft); border-radius: 16px; padding: 14px; margin: 16px 0; }
.summary-row b { display: block; font-size: 24px; color: var(--ink); }
.up { color: var(--good); } .down { color: var(--care); }
.compare-metric { grid-template-columns: 1fr 1.2fr 44px; }

/* Library / account / legal */
.lib-item summary { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.lib-item summary .small { flex-basis: 100%; }
.toggle { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.legal h2 { font-size: 20px; margin-top: 1.4em; }
.status-active, .status-trialing { color: var(--good); font-weight: 700; }

/* Print page (90-day plan) */
.print-page { background: #fff; }
.print-wrap { max-width: 800px; margin: 0 auto; padding: 28px 20px; }
.print-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 3px solid var(--blue); margin-bottom: 14px; }
.phase { border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin: 12px 0; page-break-inside: avoid; }
.phase h2 { margin: 0 0 6px; font-size: 18px; }
.checklist-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.checklist-table th, .checklist-table td { border: 1px solid var(--line); padding: 6px; text-align: center; }
@media print { .no-print { display: none; } }

/* iOS-style report cards */
.ios-card { border-radius: 20px; padding: 18px 18px 14px; margin-top: 14px; background: #f1f2f6; }
.ios-card h3 { display: flex; align-items: center; gap: 8px; font-size: 21px; margin: 0 0 10px; }
.ios-card .ic { font-size: 20px; }
.ios-card ul { margin: 0; padding-left: 20px; }
.ios-card ul li { margin: 0 0 10px; }
.ios-card ul li::marker { color: var(--blue); }
.ios-card.info p { margin: 0 0 10px; color: var(--ink); }
.priority-line { background: #fff; border-radius: 12px; padding: 10px 12px; }
.routine-card.morning { background: #fdf3ea; }
.routine-card.evening { background: #eeedfb; }
.steps-num { list-style: none; padding: 0; margin: 0; }
.steps-num li { display: flex; gap: 12px; margin-bottom: 14px; color: var(--ink); }
.steps-num .num { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.morning .num { background: #fbd9bd; color: #c2410c; }
.evening .num { background: #d9d6f7; color: #4f46e5; }
.result-actions { display: grid; gap: 10px; margin-top: 18px; }
.btn-danger-soft { background: #fde8e8; color: #dc2626; box-shadow: none; }
.btn-danger-soft:hover { background: #fbd5d5; }
.empty-state { text-align: center; background: #f1f2f6; border-radius: 22px; padding: 32px 22px; margin-top: 14px; }
.empty-state .es-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 30px; margin: 0 auto 12px; }
.empty-state h3 { font-size: 24px; margin-bottom: 6px; }
.empty-state p { color: var(--muted); font-size: 17px; margin: 0; }
.quick-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.quick-tiles a { border-radius: 18px; padding: 16px 8px; text-align: center; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 15px; }
.quick-tiles a small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; margin-top: 2px; }
.quick-tiles a span { display: block; font-size: 26px; margin-bottom: 4px; }
.qt-blue { background: #e6f0fd; } .qt-yellow { background: #fdf8e6; } .qt-green { background: #e9f7ec; }
.achv-head { text-align: center; margin-top: 10px; }
.achv-bar { height: 8px; background: #e5e7eb; border-radius: 99px; overflow: hidden; max-width: 320px; margin: 8px auto 16px; }
.achv-bar i { display: block; height: 100%; background: #facc15; }
.achv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.achv { background: #f1f2f6; border-radius: 20px; padding: 16px 10px; text-align: center; }
.achv .a-icon { width: 64px; height: 64px; border-radius: 50%; background: #dcdde3; display: grid; place-items: center; font-size: 28px; margin: 0 auto 8px; filter: grayscale(1); opacity: .6; }
.achv b { display: block; color: var(--ink); }
.achv small { color: var(--muted); display: block; margin: 2px 0 4px; }
.achv.off b, .achv.off small { opacity: .55; }
.achv.on .a-icon { background: #fef3c7; filter: none; opacity: 1; }
.achv .state { font-size: 12px; color: var(--muted); }
.achv.on .state { color: #15803d; font-weight: 700; }
.photo-archive { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.photo-archive a { text-decoration: none; color: inherit; }
.photo-archive img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; }
.photo-archive b { display: block; color: var(--ink); margin-top: 6px; }
.photo-archive small { color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 760px) { .photo-archive { grid-template-columns: repeat(4, 1fr); } .achv-grid { grid-template-columns: repeat(4, 1fr); } }

/* Progress (GPT comparison with previous scans) */
.progress-card { border: 2px solid #bfdbfe; background: linear-gradient(180deg, var(--blue-l), #fff 60%); border-radius: 20px; padding: 18px; }
.pc-head { display: flex; align-items: center; gap: 12px; }
.pc-head b { color: var(--ink); font-size: 17px; }
.pc-head p { margin: 2px 0 0; }
.pc-icon { font-size: 26px; }
.delta { margin-left: auto; font-weight: 800; font-size: 22px; color: var(--muted); }
.delta.up, .chip.up, .j-score i.up { color: #15803d; } .delta.down, .chip.down, .j-score i.down { color: #b91c1c; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font-size: 13px; font-weight: 600; }
.progress-card h4 { margin: 14px 0 4px; color: var(--ink); }
.progress-card ul { margin: 0; padding-left: 20px; }
.progress-card li { margin: 3px 0; }
.pc-focus { background: #fff; border-radius: 12px; padding: 10px 12px; margin: 14px 0 6px; }
.journal { display: grid; gap: 8px; }
.journal-item { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; text-decoration: none; color: inherit; min-height: 56px; }
.j-date { font-size: 12px; font-weight: 700; color: var(--blue); width: 44px; flex: none; }
.j-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.j-body b { color: var(--ink); font-size: 15px; }
.j-score { font-weight: 800; color: var(--ink); text-align: right; display: flex; flex-direction: column; }
.j-score i { font-style: normal; font-size: 12px; }

/* Mobile bottom tab bar (member area) */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 6px; font-size: 11px; font-weight: 600; color: var(--muted); text-decoration: none; min-height: 52px; }
.tabbar a span { font-size: 20px; line-height: 1; }
.tabbar a.on { color: var(--blue); }
.tabbar a.scan span { background: var(--blue); color: #fff; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; }
.has-tabbar .footer { padding-bottom: 90px; }
.has-tabbar .nav { display: none; }
.plan-sticky { transition: transform .2s; }
.plan-sticky.away { transform: translateY(120%); }
.compare-pick span { flex-basis: auto; }
@media (max-width: 420px) {
  .plan-card { padding: 16px 12px; gap: 10px; }
  .plan-price b { font-size: 19px; }
  .metric { grid-template-columns: 1fr 1fr 30px; font-size: 13px; }
  .compare-pick select { min-width: 0; flex-basis: 100%; }
  .compare-pick span { display: none; }
  .ring.big { --size: 112px; }
  .ring.big span { font-size: 36px; }
  .btn-xl { padding: 17px 18px; font-size: 17px; }
}
@media (min-width: 760px) {
  .tabbar { display: none; }
  .has-tabbar .nav { display: block; }
  .has-tabbar .footer { padding-bottom: 28px; }
  .hero-shot { display: block; }
  .mock-card { position: absolute !important; width: 250px !important; }
  .hero { padding: 64px 0 40px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; }
  .hero-shot { width: 290px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .two-col { grid-template-columns: 1fr 1fr; }
  .result-top { grid-template-columns: 1fr 1fr; align-items: center; }
  .zones { grid-template-columns: 1fr 1fr; }
  .dash-grid { grid-template-columns: repeat(3, 1fr); }
  .dash-grid .card.latest { grid-column: auto; }
  .sticky-cta { display: none; }
  .footer { padding-bottom: 28px; }
}

/* Short phones: tighten the funnel so title + content + button fit one screen */
@media (max-height: 740px) {
  .funnel { padding-top: 8px; }
  .qtitle { font-size: 22px; margin-top: 2px; }
  .options { margin: 14px 0; gap: 8px; }
  .option { padding: 12px 14px; font-size: 16px; }
  .info-card { padding: 16px; font-size: 16px; margin: 14px 0; }
  .camera { height: min(42vh, 360px); height: min(42dvh, 360px); }
  .progress { margin: 4px 0 12px; }
}

/* Contact */
.contact-form { display: grid; gap: 12px; margin-top: 14px; }
.contact-form label { display: grid; gap: 4px; font-weight: 600; color: var(--ink); font-size: 14px; }
.contact-form .input, .contact-form select { margin: 0; }
.hp { position: absolute; left: -9999px; }
