@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Roboto:wght@400;500;700&display=swap');

:root{
  --yellow:#ffd447;
  --yellow-deep:#f6c323;
  --ink:#111;
  --paper:#fff;
  --line:#dedede;
  --muted:#666;
  --bg:#f4f4f1;
  --danger:#c0392b;
  --ok:#2f7a3e;
}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.5 Roboto,Arial,sans-serif;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
button,input,textarea,select{font:inherit}
button,a{touch-action:manipulation}
button{cursor:pointer}
img{max-width:100%;display:block}

/* Visually hide an element but keep it focusable/operable for assistive tech.
   Used so the real file <input> stays accessible without the browser's
   native "Choose File" control showing up next to our styled button. */
.sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;
}

.skip{position:fixed;top:-100px;left:0;background:var(--yellow);padding:15px;z-index:50;font-weight:700}
.skip:focus{top:0}
:focus-visible{outline:3px solid #1464bc;outline-offset:3px}
[hidden]{display:none!important}

/* This site is built phone-first on purpose, with one layout, not a wide
   desktop layout that shrinks down at a breakpoint. Nearly everyone reaches
   this from a QR code on their phone -- there's no separate "desktop
   experience" to design for. .page pins that phone-width layout to a fixed
   column no matter how wide the actual screen or window is, so checking the
   link on a laptop or in a wide preview panel shows the same thing a
   visitor sees on their phone, instead of a stretched-out desktop version
   that never actually happens in the field. */
.page{max-width:480px;margin:0 auto;position:relative;min-height:100vh;background:var(--bg);box-shadow:0 0 0 1px var(--line)}
header{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap;padding:16px 20px;background:#fff;border-bottom:1px solid var(--line);position:relative;z-index:10}
.brand,h1,h2,.actions-secondary,.primary,.pill,.btn{font-family:'Barlow Condensed',Impact,'Arial Narrow',sans-serif;font-weight:800}
.brand{font-size:27px;letter-spacing:-1px}
nav{display:none;width:100%;flex-wrap:wrap;gap:8px 24px}
header.open nav{display:flex}
nav a{font-size:14px;padding:12px 0;border-bottom:3px solid transparent}
nav a[aria-current]{border-color:var(--yellow)}
nav a:hover{border-color:var(--ink)}
#menu{display:block;border:0;background:transparent;font-size:23px}

main{padding:20px 16px 30px}
h1{font-size:clamp(32px,9vw,44px);line-height:1.05;margin:0 0 12px}
h2{font-size:23px;line-height:1.1;margin:0 0 12px}
p{line-height:1.55;margin:0 0 18px}
.eyebrow{font-size:12px;font-weight:700;letter-spacing:1.2px;display:block;margin-bottom:12px;color:#555}

/* Hero */
.hero{height:380px;position:relative;background:#444;overflow:hidden;border-radius:6px}
.hero img{width:100%;height:100%;object-fit:cover;object-position:center 30%}
.hero:after{content:'';position:absolute;inset:45% 0 0;background:linear-gradient(transparent,#0009)}
.hero-type{position:absolute;bottom:16px;left:16px;right:12px;z-index:1;color:#fff}
.hero h1{font-size:clamp(36px,9vw,64px);letter-spacing:-1px;margin:12px 0 0}
.tag{display:inline-block;background:var(--yellow);color:#111;padding:7px 10px;font-size:12px;font-weight:700}

.lede{font-size:17px;margin-top:22px}

/* Home page: Capture is the one thing most visitors are here to do (scan a
   sign, meet the dogs, capture the moment), so it's a single dominant
   button, not one tile among five. */
.home-cta{display:flex;align-items:center;gap:12px;background:var(--yellow);border-radius:10px;padding:16px;margin-top:24px}
.home-cta:hover{background:var(--yellow-deep)}
.home-cta svg{flex:none}
.home-cta span{flex:1;display:flex;flex-direction:column;gap:4px;font-family:Roboto,Arial,sans-serif;font-weight:400;font-size:13px;color:#3a3220}
.home-cta b{font-family:'Barlow Condensed',Impact,'Arial Narrow',sans-serif;font-weight:800;font-size:18px;color:#111}
.home-cta-arrow{flex:none}

/* Everything else -- lower priority, visibly secondary */
/* Icon-left, text-right rows read better than an icon-over-tiny-caption
   tile: the label sits at a normal reading size instead of shrinking to
   fit under an icon in a mostly-empty square. */
.actions-secondary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:14px}
.actions-secondary a{min-height:52px;padding:12px 14px;display:flex;flex-direction:row;align-items:center;gap:10px;background:transparent;color:#333;border:1px solid var(--line);border-radius:8px;font-size:14px;line-height:1.25;text-align:left}
.actions-secondary a:hover{border-color:#111;color:#111}
.actions-secondary a svg{box-sizing:content-box;width:20px;height:20px;flex:none;background:transparent;stroke:#666;padding:0}
.actions-secondary a:hover svg{stroke:#111}

/* Phases (Idea page) */
.phases{display:grid;grid-template-columns:1fr;gap:16px;margin:26px 0}
.phases section{background:#fff;padding:24px;border-radius:8px;border:1px solid var(--line)}
.phases section.next{background:#ffdf73;border-color:#e9c53d}
.statement{font-size:19px;line-height:1.4;border-left:4px solid var(--yellow);padding-left:18px;margin:28px 0}

/* Dogs page */
.dog-photo{width:100%;height:320px;object-fit:cover;border-radius:8px;margin-top:20px}
.dog-cards{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:20px}
.dog-card{background:#fff;border:1px solid var(--line);border-radius:8px;padding:16px 12px;display:flex;flex-direction:column;gap:10px}
.dog-card h2{font-size:28px;margin:0}
.dog-card .eyebrow{margin-bottom:0}
.dog-traits{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px;font-size:13px;line-height:1.4;color:#333}
.dog-card .pill{margin-top:2px;font-size:12px;padding:10px 8px;text-align:center;width:auto}

.pill{display:inline-block;border:1px solid #aaa;border-radius:30px;padding:11px 18px;font-size:17px;width:fit-content;background:#fff}
.pill:hover{background:var(--yellow);border-color:var(--yellow)}
.hint{font-size:13px;color:var(--muted);margin-top:14px;line-height:1.5}

/* Journey */
.journey-lede{max-width:700px}
.journey-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px;margin-top:26px}
.journey-card{background:#fff;border:1px solid var(--line);border-radius:8px;overflow:hidden}
.journey-card img{width:100%;aspect-ratio:1/1;object-fit:cover}
.journey-card .meta{padding:10px 12px;font-size:13px;color:var(--muted)}
.journey-card .meta b{display:block;color:var(--ink);font-size:14px;margin-bottom:2px}
.journey-empty{background:#fff;border:1px dashed var(--line);border-radius:8px;padding:40px 24px;text-align:center;color:var(--muted)}
.journey-state{font-size:13px;color:var(--muted);margin:6px 0 0}

/* Capture page */
.capture-card{width:100%;background:#fff;margin:0 auto;padding:24px 20px;border:1px solid var(--line);border-radius:8px}
.camera-btn{display:flex;justify-content:center;align-items:center;gap:12px;border:0;background:var(--yellow);padding:18px 22px;width:100%;min-height:56px;font-size:21px;border-radius:7px}
.camera-btn:hover{background:var(--yellow-deep)}
.camera-btn svg{flex:none}
.capture-preview-wrap{margin-top:20px}
.capture-preview{width:100%;max-height:520px;object-fit:cover;border-radius:6px;background:#eee}
.capture-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.btn{border:1px solid var(--ink);background:#fff;padding:12px 18px;border-radius:7px;font-size:15px}
.btn:hover{background:#f3f3f3}
.btn.primary{background:var(--yellow);border-color:var(--yellow)}
.btn.primary:hover{background:var(--yellow-deep)}
.btn:disabled{opacity:.45;cursor:not-allowed}
.capture-status{font-size:14px;margin-top:12px;min-height:20px}
.capture-status.ok{color:var(--ok)}
.capture-status.err{color:var(--danger)}
.review-note{display:flex;gap:10px;align-items:flex-start;background:#fff8e1;border:1px solid #e9c53d;border-radius:7px;padding:12px 14px;margin-top:16px;font-size:13px;color:#5c4a00}
.review-note svg{flex:none;margin-top:2px}
.share-nudge{display:flex;gap:10px;align-items:flex-start;background:#fffaf0;border:1px solid var(--yellow-deep);border-radius:7px;padding:12px 14px;margin-top:14px;font-size:14px;line-height:1.4;color:#3a3220}
.share-nudge svg{flex:none;margin-top:2px}
.share-nudge strong{color:#111}

/* Survey */
.survey{width:100%;background:#fff;margin:0 auto;padding:24px 20px;border:1px solid var(--line);border-radius:8px}
.question-number{display:flex;justify-content:space-between;font-size:12px;font-weight:700}
.progress{display:flex;gap:5px;margin:18px 0 24px}
.progress span{height:4px;flex:1;background:#e9e9e6;border-radius:2px}
.progress .active{background:var(--yellow)}
.survey h1{font-size:26px;line-height:1.15;letter-spacing:0}
.choices{display:grid;gap:8px;margin:18px 0}
.choice{display:flex;align-items:center;gap:12px;min-height:48px;padding:12px;border:1px solid #d7d7d4;border-radius:6px;cursor:pointer;font-size:16px}
.choice:has(input:checked){background:#fff4c8;border-color:#d9a500}
.choice input{width:18px;height:18px;accent-color:#191919;flex-shrink:0}
.field{display:block;font-size:14px;margin:18px 0}
.field input,.field textarea{display:block;width:100%;margin-top:7px;padding:13px;border:1px solid #aaa;border-radius:5px;background:#fff}
.field textarea{min-height:85px}
.survey-nav{display:flex;align-items:center;gap:20px;margin-top:22px}
.survey-nav .primary{width:auto;min-width:150px;margin-left:auto}
.primary{display:flex;justify-content:space-between;align-items:center;gap:20px;border:0;background:var(--yellow);padding:16px 22px;font-size:21px;border-radius:7px}
.primary:hover{background:var(--yellow-deep)}
.primary:disabled{opacity:.4;cursor:not-allowed}
.plain{border:0;background:none;padding:10px 0;font-size:14px;cursor:pointer}
.quick{display:flex;gap:24px;margin-top:20px}
.quick a{text-decoration:underline}
.done{padding:45px 30px}
.done h1{font-size:36px}
.done .primary{margin-top:26px;display:inline-flex;width:auto}

/* Support */
.support-layout{display:grid;grid-template-columns:1fr;gap:38px;align-items:center;margin-top:24px}
.support-photo{height:280px;position:relative;border-radius:8px;overflow:hidden}
.support-photo img{width:100%;height:100%;object-fit:cover}
.amounts{display:flex;gap:9px;margin:25px 0 8px;flex-wrap:wrap}
.amounts button{flex:1;min-width:64px;background:#fff;border:1px solid #ccc;border-radius:10px;padding:15px 4px;font-weight:700}
.amounts [aria-pressed=true]{background:var(--yellow);border-color:var(--yellow)}
.amount-caption{font-size:13px;color:var(--muted);margin:0 0 20px;min-height:18px}
.support-purpose{display:grid;gap:12px;border-top:1px solid var(--line);margin-top:28px;padding-top:20px;font-size:13px;color:var(--muted)}

.continue-exploring{border-top:1px solid var(--line);margin-top:30px;padding-top:24px}
.continue-exploring h2{font-size:20px;margin-bottom:16px}
.explore-links{display:flex;flex-direction:column;gap:12px}
.explore-links .pill{width:auto;text-align:center}

/* Anchored to .page (not the viewport) so it stays inside the phone-width
   column instead of drifting to the real window's edge on a wide screen.
   It only appears once the footer scrolls into view (see the
   IntersectionObserver in app.js) -- tested on a real phone viewport, an
   always-on overlay here silently covered the tail end of body text on
   first load, before any scrolling. */
.floating-support{position:absolute;right:20px;bottom:max(18px,env(safe-area-inset-bottom));z-index:20;display:flex;align-items:center;gap:9px;min-height:44px;padding:11px 18px;background:#111;color:#fff;border:1px solid #444;border-radius:25px;font-size:14px;box-shadow:0 3px 12px #0002;opacity:0;pointer-events:none;transform:translateY(8px);transition:opacity .2s,transform .2s}
.floating-support.is-visible{opacity:1;pointer-events:auto;transform:translateY(0)}
.floating-support span{color:var(--yellow)}
.floating-support:hover{background:#333}

footer{display:flex;align-items:center;gap:10px;flex-wrap:wrap;border-top:1px solid var(--line);padding:16px}
footer .brand{font-size:20px;margin-right:auto;color:#111}
footer>span{display:none}
footer #share-status:empty{display:none}

@media(prefers-reduced-motion:reduce){*{transition:none!important}}
