:root {
  --bg: #F4F6F3;
  --band: #E3ECE3;
  --card: #FFFFFF;
  --line: #E0E5DF;
  --ink: #151915;
  --ink-2: #4A534A;
  --muted: #626B62;
  --green: #1F7A45;
  --green-dark: #1F6B3C;
  --green-soft: #E6F2E9;
  --coral: #B5541E;
  --coral-soft: #FBEEE6;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.4; }
img { display: block; max-width: 100%; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
h1, h2 { margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.muted { font-size: 14px; color: var(--muted); }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.brand span { font-size: 20px; font-weight: 700; }
.toplink { font-size: 15px; font-weight: 600; text-decoration: none; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 64px; padding-top: 8px; padding-bottom: 72px; }
.hero-text { flex: 1 1 400px; display: flex; flex-direction: column; gap: 18px; }
.hero h1 { font-size: clamp(42px, 6.2vw, 76px); line-height: 1.02; letter-spacing: -0.025em; font-weight: 800; }
.lead { font-size: 18px; line-height: 1.5; color: var(--ink-2); max-width: 30em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding-top: 8px; }

.store-badge { display: inline-flex; align-items: center; gap: 10px; height: 58px; padding: 0 22px 0 16px; background: #000; color: #fff; border-radius: 14px; text-decoration: none; }
.store-badge:hover { color: #fff; background: #1c1c1c; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.store-badge small { font-size: 11px; letter-spacing: 0.02em; }
.store-badge strong { font-size: 23px; font-weight: 600; letter-spacing: -0.02em; }

.viewfinder { flex: 1 1 400px; max-width: 520px; position: relative; aspect-ratio: 1 / 1; border-radius: 32px; overflow: hidden; background: #6F8F7A; box-shadow: 0 24px 60px rgba(24, 38, 28, 0.18); }
.viewfinder > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.corner { position: absolute; width: 54px; height: 54px; border: 0 solid #fff; }
.corner.tl { left: 9%; top: 9%; border-left-width: 5px; border-top-width: 5px; border-top-left-radius: 18px; }
.corner.tr { right: 9%; top: 9%; border-right-width: 5px; border-top-width: 5px; border-top-right-radius: 18px; }
.corner.bl { left: 9%; bottom: 9%; border-left-width: 5px; border-bottom-width: 5px; border-bottom-left-radius: 18px; }
.corner.br { right: 9%; bottom: 9%; border-right-width: 5px; border-bottom-width: 5px; border-bottom-right-radius: 18px; }
.scanline { position: absolute; left: 14%; right: 14%; top: 40%; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.9); box-shadow: 0 0 18px 4px rgba(255, 255, 255, 0.55); animation: scan 2.8s ease-in-out infinite; }
.result-pill { position: absolute; left: 16px; right: 16px; bottom: 16px; background: #fff; border-radius: 18px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18); animation: pop 5.6s ease-in-out infinite; }
.check { width: 40px; height: 40px; border-radius: 20px; background: var(--green-soft); color: var(--green); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.result-name { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.result-name strong { font-size: 18px; }
.result-name em { font-size: 14px; color: var(--muted); }
.match { font-size: 14px; font-weight: 700; color: var(--green-dark); white-space: nowrap; }

@keyframes scan { 0%, 100% { top: 16%; } 50% { top: 80%; } }
@keyframes pop {
  0%, 30% { opacity: 0; transform: translateY(14px); }
  42%, 88% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .scanline { display: none; }
  .result-pill { animation: none; }
}

/* Feature rows */
.features { display: flex; flex-direction: column; gap: 88px; padding-top: 24px; padding-bottom: 96px; }
.feature { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 32px 80px; }
.feature.flip { flex-direction: row-reverse; }
.feature-text { flex: 1 1 380px; max-width: 460px; display: flex; flex-direction: column; gap: 12px; }
.feature-text h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; }
.feature-text p { font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.eyebrow { font-size: 14px; font-weight: 700; color: var(--green); letter-spacing: 0.04em; text-transform: uppercase; }
.eyebrow.coral { color: var(--coral); }

/* Phone mockup */
.phone { width: 260px; height: 540px; flex-shrink: 0; padding: 8px; border-radius: 44px; background: #1A1D1A; box-shadow: 0 30px 60px rgba(24, 38, 28, 0.22), inset 0 0 0 1.5px #3A3F3A; }
.screen { position: relative; width: 244px; height: 524px; border-radius: 36px; overflow: hidden; background: var(--bg); font-size: 10px; color: var(--ink); }
.screen::before { content: ""; position: absolute; top: 9px; left: 50%; margin-left: -38px; width: 76px; height: 22px; border-radius: 11px; background: #000; z-index: 2; }
.screen img { width: 100%; height: 100%; object-fit: cover; }
.ph-photo { position: relative; background: #6F8F7A; }
.ph-close { position: absolute; left: 12px; top: 40px; width: 28px; height: 28px; border-radius: 14px; background: rgba(255, 255, 255, 0.9); }
.ph-chip { position: absolute; left: 11px; bottom: 9px; background: rgba(21, 25, 21, 0.7); color: #fff; font-size: 9px; font-weight: 600; padding: 4px 7px; border-radius: 9px; }
.ph-body { padding: 14px 15px; display: flex; flex-direction: column; gap: 11px; }
.ph-top { padding-top: 44px; gap: 12px; }
.ph-title { display: flex; flex-direction: column; gap: 2px; color: var(--muted); }
.ph-title b { font-size: 19px; color: var(--ink); }
.ph-green { color: var(--green-dark); font-weight: 700; }
.ph-row { display: flex; gap: 7px; align-items: center; }
.ph-between { justify-content: space-between; }
.ph-btn { flex: 1 1 0; height: 32px; border-radius: 16px; background: var(--green); color: #fff; font-size: 11px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.ph-round { width: 32px; height: 32px; border-radius: 16px; background: #fff; border: 1px solid #D5DCD4; display: flex; align-items: center; justify-content: center; }
.ph-card { background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 10px 11px; display: flex; flex-direction: column; gap: 4px; line-height: 1.45; color: #283028; }
.ph-card b { font-size: 12px; color: var(--ink); }
.ph-list { padding: 4px 11px; gap: 0; }
.ph-list span { padding: 6px 0; font-weight: 600; display: flex; flex-direction: column; }
.ph-list span + span { border-top: 1px solid #EBEFEA; }
.ph-list small { font-size: 8px; font-weight: 400; color: var(--muted); }
.ph-h1 { font-size: 22px; }
.ph-h2 { font-size: 13px; }
.ph-cols { display: flex; gap: 8px; }
.ph-cols > div { flex: 1 1 0; display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
.ph-collage { height: 70px; display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 1.5px; border-radius: 8px; overflow: hidden; }
.ph-collage img:first-child { grid-row: span 2; }
.ph-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 9px; }
.ph-grid > div { display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
.ph-grid img { aspect-ratio: 1 / 1; height: auto; border-radius: 10px; }
.ph-header { background: var(--band); border-radius: 0 0 18px 18px; padding: 40px 14px 14px; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.ph-header img { width: 22px; height: 22px; }
.ph-avatar { width: 26px; height: 26px; border-radius: 13px; background: rgba(255, 255, 255, 0.5); border: 1px solid rgba(255, 255, 255, 0.8); }
.ph-search { height: 30px; border-radius: 15px; background: #fff; border: 1px solid rgba(31, 122, 69, 0.45); padding: 0 11px; display: flex; align-items: center; font-size: 11px; color: var(--muted); }
.ph-tile { flex: 1 1 0; background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 10px; display: flex; flex-direction: column; gap: 6px; font-size: 11px; font-weight: 600; }
.dot { width: 26px; height: 26px; border-radius: 13px; }
.dot.green { background: var(--green-soft); }
.dot.coral { background: var(--coral-soft); }
.ph-shelf { display: flex; gap: 8px; margin-right: -14px; }
.ph-shelf > div { position: relative; width: 100px; height: 126px; flex-shrink: 0; border-radius: 11px; overflow: hidden; }
.ph-shelf span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 7px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.6)); color: #fff; font-weight: 700; }
.ph-shelf small { font-weight: 500; opacity: 0.85; }
.ph-snaps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.ph-snaps img { aspect-ratio: 1 / 1; height: auto; border-radius: 7px; }

/* Final call to action */
.final { background: var(--band); border-radius: 32px; padding: 56px 24px; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; margin-bottom: 72px; }
.final > img { width: 84px; height: 84px; border-radius: 19px; box-shadow: 0 10px 28px rgba(24, 38, 28, 0.18); }
.final h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; }

/* Footer */
.foot { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-bottom: 40px; font-size: 13px; color: var(--muted); }
.foot a { color: var(--muted); }

/* Bar pinned to the bottom on phones */
.stickybar { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); background: rgba(244, 246, 243, 0.94); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
.stickybar img { width: 44px; height: 44px; border-radius: 10px; }
.sb-text { flex: 1 1 auto; display: flex; flex-direction: column; gap: 1px; }
.sb-text strong { font-size: 16px; }
.sb-text small { font-size: 13px; color: var(--muted); }
.sb-btn { height: 44px; padding: 0 22px; border-radius: 22px; background: var(--green); color: #fff; font-size: 16px; font-weight: 700; display: flex; align-items: center; text-decoration: none; }
.sb-btn:hover { color: #fff; background: var(--green-dark); }
@media (min-width: 900px) { .stickybar { display: none; } }

/* Simple text pages */
.page { max-width: 720px; padding-top: 8px; padding-bottom: 72px; }
.page h1 { font-size: 36px; margin-bottom: 16px; }
.page p, .page li { font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.page ul { padding-left: 20px; }
.page h2 { font-size: 22px; margin-top: 32px; margin-bottom: 4px; }
