/* IDMyDog landing page. Loads nothing from other origins; no inline styles (strict CSP). */
:root {
  --ink: #16202B; --paper: #FAF6EE; --card: #FFFFFF; --line: #E6DECF; --text: #1B2530; --muted: #5B6673;
  --amber: #E8A33D; --amber-deep: #B9770F; --teal: #14857F; --band: #F2EADB; --good: #1F8A5B;
  --shadow: 0 18px 40px rgba(22, 32, 43, .14);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121A23; --card: #1B2632; --line: #2C3A4A; --text: #F3F1EC; --muted: #A9B4C0;
    --amber-deep: #F0B659; --teal: #4FC9C1; --band: #16202B; --good: #56D19A;
    --shadow: 0 18px 40px rgba(0, 0, 0, .45);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(34px, 5.2vw, 56px); }
h2 { font-size: clamp(26px, 3.4vw, 36px); }
h3 { font-size: 19px; }
p { margin: 0; }
a { color: inherit; }
section, .nav, footer { padding-left: max(20px, calc((100vw - 1080px) / 2)); padding-right: max(20px, calc((100vw - 1080px) / 2)); }

/* logo: Finder frame (focus corners around a dog's face) */
.logo-bg { fill: var(--amber); }
.logo-ink { fill: #16202B; }
.logo-cut { fill: var(--amber); }
.logo-frame { fill: none; stroke: #16202B; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }

/* nav */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.brand b { color: var(--amber-deep); }
.brand-mark { width: 38px; height: 38px; }
.nav nav { display: flex; gap: 22px; font-size: 15px; }
.nav nav a { text-decoration: none; color: var(--muted); }
.nav nav a:hover { color: var(--text); }

/* hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 36px; padding-bottom: 72px; }
.pill { display: inline-block; margin-bottom: 18px; padding: 5px 13px; font-size: 14px; font-weight: 600;
  color: var(--amber-deep); border: 1px solid var(--amber); border-radius: 99px; }
.lead { margin-top: 18px; font-size: 19px; color: var(--muted); max-width: 34em; }
.ticks { list-style: none; margin: 24px 0 0; padding: 0; }
.ticks li { position: relative; padding-left: 30px; margin: 9px 0; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .42em; width: 15px; height: 8px;
  border-left: 3px solid var(--good); border-bottom: 3px solid var(--good); transform: rotate(-45deg); }

.hero-art { display: flex; justify-content: center; }
.phone { width: 300px; padding: 11px; background: #0D141B; border-radius: 42px; box-shadow: var(--shadow); transform: rotate(2deg); }
.screen { background: var(--paper); border-radius: 32px; padding: 16px 14px 18px; font-size: 14px; line-height: 1.3; }
.scr-bar { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; margin-bottom: 12px; }
.scr-logo { width: 24px; height: 24px; }
.face { width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--band); }
.found, .match { display: flex; align-items: center; gap: 10px; padding: 9px; border-radius: 14px; }
.found { background: var(--ink); color: #F3F1EC; margin-bottom: 12px; }
.found small { color: #A9B4C0; }
.found-face { background: #2A3948; transform: rotate(-6deg); filter: saturate(.75) brightness(.9); }
.match { background: var(--card); border: 1px solid var(--line); margin-top: 8px; }
.match div, .found div { flex: 1; min-width: 0; }
.match small, .found small { display: block; font-size: 12px; }
.match small { color: var(--muted); }
.m1 { border-color: var(--good); box-shadow: 0 0 0 2px color-mix(in srgb, var(--good) 25%, transparent); }
.tag { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 99px; color: var(--muted); background: var(--band); white-space: nowrap; }
.tag.strong { color: #fff; background: var(--good); }
@media (prefers-color-scheme: dark) { .tag.strong { color: #0B1A12; } }
.scr-btn { margin-top: 14px; padding: 11px; text-align: center; font-weight: 700; color: #1B1407; background: var(--amber); border-radius: 12px; }

/* dog faces: colours set per card */
.f-coat { fill: var(--coat); } .f-ear { fill: var(--ear); } .f-patch { fill: var(--patch); }
.f-eye, .f-nose { fill: #1B1A1A; }
.f-mouth { fill: none; stroke: #1B1A1A; stroke-width: 2.2; stroke-linecap: round; }
.coat-tan { --coat: #C98B4E; --ear: #8A5529; --patch: #FBF3E6; }
.coat-brown { --coat: #7A4A2B; --ear: #4E2D18; --patch: #7A4A2B; }
.coat-gold { --coat: #E3B15C; --ear: #C08A36; --patch: #F3D391; }

/* bands and steps */
.band { background: var(--band); padding-top: 64px; padding-bottom: 64px; }
.sub { margin-top: 10px; color: var(--muted); font-size: 18px; }
.steps { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.steps h3 { margin: 14px 0 8px; }
.steps p { color: var(--muted); font-size: 16px; }
.icon { width: 48px; height: 48px; fill: none; stroke: var(--teal); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.icon .ring-bg { stroke: var(--line); stroke-width: 5; }
.icon .ring-fg { stroke: var(--amber); stroke-width: 5; }
.num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--amber); color: #1B1407; font-weight: 800; font-size: 18px; }

/* what we look at */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.split > div > p { margin-top: 14px; color: var(--muted); }
.legend { list-style: none; margin: 22px 0 0; padding: 0; }
.legend li { display: flex; gap: 12px; margin: 13px 0; font-size: 16px; color: var(--muted); }
.legend b { color: var(--text); margin-right: 4px; }
.dot, .pin { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--teal); color: #fff; font-size: 13px; font-weight: 800; }
@media (prefers-color-scheme: dark) { .dot, .pin { color: #06201E; } }
.dog-art { position: relative; max-width: 460px; justify-self: center; width: 100%; }
.dog { display: block; width: 100%; height: auto; background: var(--band); border-radius: 28px; }
.shadow { fill: color-mix(in srgb, var(--text) 14%, transparent); }
.d-coat { fill: #C98B4E; } .d-dark { fill: #8A5529; } .d-white { fill: #FBF3E6; } .d-patch { fill: #8A5529; }
.d-nose, .d-eye { fill: #1B1A1A; }
.d-cut { fill: #C98B4E; }
.d-tail { fill: none; stroke: #C98B4E; stroke-width: 16; stroke-linecap: round; }
.d-tailtip { fill: none; stroke: #FBF3E6; stroke-width: 16; stroke-linecap: round; }
.pin { position: absolute; box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 28%, transparent); }
.p1 { left: 24%; top: 20%; } .p2 { left: -3%; top: 27%; } .p3 { left: 54%; top: 46%; } .p4 { left: 38%; top: 30%; }

/* safety */
.cards { padding-top: 72px; padding-bottom: 72px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 30px; }
.grid article { border-top: 3px solid var(--amber); padding-top: 16px; }
.grid h3 { margin-bottom: 8px; }
.grid p { color: var(--muted); font-size: 16px; }

.closing { text-align: center; background: var(--ink); color: #F3F1EC; padding-top: 64px; padding-bottom: 64px; }
.closing-mark { width: 64px; height: 64px; margin-bottom: 16px; }
.closing p { margin-top: 10px; color: #A9B4C0; }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 22px; padding-bottom: 22px;
  font-size: 14px; color: #A9B4C0; background: var(--ink); border-top: 1px solid #2C3A4A; }

@media (max-width: 860px) {
  .nav nav { display: none; }
  .hero, .split { grid-template-columns: 1fr; }
  .hero { padding-top: 16px; padding-bottom: 52px; }
  .steps { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; }
  .phone { transform: none; }
}
@media (max-width: 480px) { .grid { grid-template-columns: 1fr; } }
