/* whatsmydog.app. Colours follow the app's Theme (WhatsMyDog/Design/Look.swift):
   icon blue brand, sun yellow stickers, white cards on pale blue, navy in dark mode. */
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
:root {
  --brand: #086bff;
  --brand-deep: #0450d8;
  --brand-ink: #0a3a9e;
  --sun: #ffc733;
  --ink: #0f1a38;
  --muted: #56607a;
  --page: #f0f5ff;
  --card: #ffffff;
  --line: #d6e3fa;
  --tint: #e2ecff;
  --radius: 22px;
  --shadow: 0 18px 50px -18px rgba(8, 60, 170, .35);
  --font: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #5c9eff; --brand-deep: #0b3fa8; --brand-ink: #a9c8ff;
    --ink: #eef3ff; --muted: #9daac7; --page: #0a1224; --card: #16213b;
    --line: #2b3a5c; --tint: #111c34;
    --shadow: 0 18px 50px -18px rgba(0, 0, 0, .7);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--page); color: var(--ink); font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--card); padding: 8px 14px; border-radius: 10px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
       background: color-mix(in srgb, var(--page) 78%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.nav.on-brand { background: color-mix(in srgb, var(--brand-deep) 70%, transparent); border-color: rgba(255,255,255,.12); color: #fff; }
.nav .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 18px; white-space: nowrap; color: inherit; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav ul { display: flex; gap: 22px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav ul a { color: inherit; text-decoration: none; font-weight: 700; font-size: 15px; opacity: .85; }
.nav ul a:hover, .nav ul a[aria-current] { opacity: 1; text-decoration: underline; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; background: var(--brand); color: #fff;
        font-weight: 800; font-size: 15px; text-decoration: none; white-space: nowrap; }
.nav.on-brand .pill { background: #fff; color: var(--brand-deep); }
@media (max-width: 760px) { .nav ul { display: none; } .nav .pill { margin-left: auto; padding: 8px 14px; } .nav .brand { font-size: 16px; } }

/* hero */
.hero { position: relative; overflow: hidden; color: #fff;
        background: radial-gradient(1200px 600px at 80% -10%, #3d8bff 0%, transparent 60%), linear-gradient(180deg, #0a6cff 0%, #0450d8 100%); }
.hero::after { content: ""; position: absolute; inset: auto 0 -1px 0; height: 60px; background: var(--page); clip-path: ellipse(75% 100% at 50% 100%); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding: 72px 0 110px; position: relative; z-index: 1; }
.sticker { display: inline-block; background: var(--sun); color: #1b1300; font-weight: 900; letter-spacing: .08em; text-transform: uppercase;
           font-size: 13px; padding: 7px 14px; border-radius: 999px; transform: rotate(-3deg); }
.hero h1 { font-size: clamp(42px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -.02em; margin: 18px 0 16px; font-weight: 900; }
.hero h1 em { font-style: normal; color: var(--sun); }
.hero .lede { font-size: clamp(18px, 2vw, 21px); max-width: 32em; opacity: .94; margin: 0 0 28px; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff; text-decoration: none; border-radius: 12px;
         padding: 9px 18px 9px 14px; border: 1px solid rgba(255,255,255,.35); line-height: 1.1; }
.badge svg { width: 26px; height: 26px; fill: currentColor; }
.badge small { display: block; font-size: 11px; opacity: .85; }
.badge b { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.badge[aria-disabled="true"] { cursor: default; }
.ghost { color: #fff; font-weight: 800; text-decoration: none; padding: 12px 18px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.55); }
.ghost:hover { background: rgba(255,255,255,.1); }
.note { font-size: 14px; opacity: .8; margin: 16px 0 0; }
.hero-art { position: relative; height: 560px; }
.hero-art .phone { position: absolute; right: 4%; top: 0; width: 270px; }
.hero-art .card-img { position: absolute; left: 0; bottom: 10px; width: 300px; border-radius: 22px; transform: rotate(-6deg);
                      box-shadow: 0 30px 60px -20px rgba(0, 20, 80, .6); border: 6px solid #fff; }
.hero-art .bubble { position: absolute; right: 0; bottom: 70px; background: #fff; color: #0f1a38; font-weight: 800; padding: 12px 18px;
                    border-radius: 20px; box-shadow: var(--shadow); transform: rotate(4deg); font-size: 16px; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding: 48px 0 90px; }
  .hero-art { height: 470px; max-width: 440px; width: 100%; margin: 0 auto; }
  .hero-art .phone { width: 220px; }
  .hero-art .card-img { width: 240px; }
}

/* phone frame */
.phone { border-radius: 42px; overflow: hidden; background: #fff; box-shadow: 0 0 0 8px #0d1b3d, 0 40px 80px -30px rgba(0, 20, 80, .6); aspect-ratio: 620 / 1320; }
.phone img { width: 100%; height: 100%; object-fit: cover; }

/* sections */
section { padding: 88px 0; }
.eyebrow { color: var(--brand); font-weight: 900; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; margin: 0 0 8px; }
h2 { font-size: clamp(32px, 4.2vw, 48px); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 14px; font-weight: 900; }
.intro { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.intro p { color: var(--muted); font-size: 19px; margin: 0; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 96px; }
.feature:last-child { margin-bottom: 0; }
.feature:nth-child(even) .feature-art { order: -1; }
.feature-art { display: grid; place-items: center; background: var(--tint); border-radius: 32px; padding: 44px 0; }
.feature-art .phone { width: min(270px, 70%); }
.feature h3 { font-size: clamp(28px, 3vw, 36px); line-height: 1.1; margin: 10px 0 12px; font-weight: 900; letter-spacing: -.01em; }
.feature h3 span { color: var(--muted); font-weight: 800; display: block; font-size: .6em; letter-spacing: 0; }
.feature p { color: var(--muted); margin: 0 0 14px; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding-left: 30px; position: relative; margin: 8px 0; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 5px; width: 20px; height: 20px; border-radius: 50%;
                    background: var(--sun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%231b1300' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.tag { display: inline-block; font-size: 12px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--tint); color: var(--brand); }
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; gap: 28px; margin-bottom: 72px; }
  .feature:nth-child(even) .feature-art { order: 0; }
}

/* share band */
.band { background: linear-gradient(135deg, #0a6cff, #0450d8); color: #fff; border-radius: 36px; padding: 56px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.band p { opacity: .92; font-size: 19px; }
.band img { border-radius: 24px; border: 6px solid #fff; transform: rotate(3deg); box-shadow: 0 30px 60px -20px rgba(0,0,0,.45); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chips span { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); padding: 7px 14px; border-radius: 999px; font-weight: 800; font-size: 15px; }
@media (max-width: 820px) { .band { grid-template-columns: 1fr; padding: 36px 24px; } }

/* tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.tile .ico { width: 48px; height: 48px; border-radius: 14px; background: var(--tint); display: grid; place-items: center; margin-bottom: 14px; }
.tile .ico svg { width: 26px; height: 26px; stroke: var(--brand); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tile h3 { margin: 0 0 6px; font-size: 20px; font-weight: 900; }
.tile p { margin: 0; color: var(--muted); }
@media (max-width: 820px) { .tiles { grid-template-columns: 1fr; } }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 900px; margin: 0 auto; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-align: center; }
.plan.best { border: 2px solid var(--brand); box-shadow: var(--shadow); position: relative; }
.plan.best::before { content: "Best value"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--sun); color: #1b1300; font-weight: 900; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; padding: 4px 12px; border-radius: 999px; }
.plan h3 { margin: 0; font-size: 18px; color: var(--muted); }
.plan .price { font-size: 40px; font-weight: 900; margin: 6px 0 4px; letter-spacing: -.02em; }
.plan p { margin: 0; color: var(--muted); font-size: 15px; }
.fine { text-align: center; color: var(--muted); font-size: 14px; margin-top: 20px; }
@media (max-width: 820px) { .plans { grid-template-columns: 1fr; } }

/* faq */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 20px 56px 20px 24px; font-weight: 800; font-size: 18px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 26px; color: var(--brand); font-weight: 700; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 24px 20px; color: var(--muted); }
.faq details > div p { margin: 0 0 10px; }

/* closing */
.closing { text-align: center; }
.closing .wrap { background: var(--card); border: 1px solid var(--line); border-radius: 36px; padding: 64px 24px; }
.closing img.icon { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 20px; box-shadow: var(--shadow); }
.closing p { color: var(--muted); font-size: 19px; margin: 0 0 26px; }
.closing .ctas { justify-content: center; }
.closing .badge { border-color: transparent; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 15px; color: var(--muted); }
.footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); margin: 0 0 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: 6px 0; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--brand); text-decoration: underline; }
.footer .about p { margin: 10px 0; max-width: 32em; }
.footer .legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; }
.footer .legal p { margin: 4px 0; }
@media (max-width: 760px) { .footer .cols { grid-template-columns: 1fr 1fr; } .footer .about { grid-column: 1 / -1; } }

/* document pages (privacy, support, terms, press) */
.doc-hero { background: linear-gradient(180deg, #0a6cff, #0450d8); color: #fff; padding: 64px 0 56px; }
.doc-hero h1 { font-size: clamp(36px, 5vw, 56px); margin: 0 0 8px; font-weight: 900; letter-spacing: -.02em; line-height: 1.05; }
.doc-hero p { margin: 0; font-size: 19px; opacity: .92; max-width: 40em; }
.doc { width: min(760px, 100% - 32px); margin: 0 auto; padding: 48px 0 80px; }
.doc h2 { font-size: 28px; margin: 48px 0 12px; }
.doc h3 { font-size: 20px; margin: 28px 0 6px; font-weight: 900; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .updated { color: var(--muted); font-size: 15px; }
.summary { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--sun); border-radius: 16px; padding: 18px 22px; font-size: 18px; }
.toc { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 8px; padding: 0; list-style: none; }
.toc a { display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--tint); font-weight: 800; text-decoration: none; font-size: 15px; }
.facts { width: 100%; border-collapse: collapse; margin: 12px 0; }
.facts th, .facts td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th { width: 34%; color: var(--muted); font-weight: 700; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; margin: 16px 0; }
.gallery a { display: block; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.copy { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin: 10px 0; }
