/* Arch-Pet landing: same palette and type as the app (Nunito, warm
   orange, teal accents). Light by default, dark when the system asks. */
@font-face { font-family: Nunito; src: url(/assets/fonts/Nunito-Regular.ttf) format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Nunito; src: url(/assets/fonts/Nunito-Bold.ttf) format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: Nunito; src: url(/assets/fonts/Nunito-ExtraBold.ttf) format('truetype'); font-weight: 800; font-display: swap; }

:root {
  --bg: #f7f3ee;
  --surface: #ffffff;
  --surface-2: #fff1e6;
  --text: #1c1917;
  --muted: #57534e;
  --line: #e7ded4;
  --primary: #c2410c;
  --primary-ink: #ffffff;
  --primary-soft: #ffedd5;
  --accent: #0f766e;
  --accent-soft: #ccfbf1;
  --aix-top: #e6f6f3;
  --shadow: 0 10px 30px rgba(68, 40, 18, 0.08);
  --radius: 22px;
  --max: 1160px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171412;
    --surface: #221e1b;
    --surface-2: #2c231d;
    --text: #f5f0eb;
    --muted: #c9bfb6;
    --line: #3a322c;
    --primary: #fb923c;
    --primary-ink: #1c1917;
    --primary-soft: #3b261a;
    --accent: #5eead4;
    --accent-soft: #123a36;
    --aix-top: #14282a;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 Nunito, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 800; }
p { margin: 0 0 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 10px 16px; border-radius: 12px; z-index: 100; }
.skip:focus { left: 16px; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; gap: 16px; height: 68px; max-width: 1360px; }
.brand { flex: none; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--text); text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--text); text-decoration: none; font-weight: 700; padding: 8px 8px; border-radius: 10px; font-size: 0.93rem; }
.nav a:hover { background: var(--primary-soft); }
.lang { background: none; border: 1px solid var(--line); color: var(--text); font: inherit; font-weight: 700; padding: 8px 12px; border-radius: 999px; cursor: pointer; min-height: 44px; }
.brand, .nav a, .btn, .lang { white-space: nowrap; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 12px; min-width: 44px; min-height: 44px; color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
@media (max-width: 1260px) {
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; background: var(--surface); padding: 12px 16px 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; }
  .header .btn-open { display: none; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font: inherit; font-weight: 800; text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--surface); }
.btn-small { min-height: 44px; padding: 8px 16px; }

/* Sections */
section { padding: 88px 0; }
@media (max-width: 600px) { section { padding: 64px 0; } }
.kicker { display: inline-block; font-weight: 800; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.82rem; margin-bottom: 8px; }
.lead { color: var(--muted); font-size: 1.12rem; max-width: 720px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Hero */
.hero { padding: 56px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 12px; }
.hero .note { color: var(--muted); font-size: 0.95rem; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; background: var(--primary-soft); color: var(--primary); font-weight: 800; padding: 6px 14px; border-radius: 999px; font-size: 0.9rem; margin-bottom: 18px; }
.phone-stage { position: relative; display: flex; justify-content: center; }
.phone { width: min(320px, 78vw); border-radius: 40px; padding: 10px; background: #1c1917; box-shadow: 0 30px 60px rgba(68, 40, 18, 0.25); }
.phone img { border-radius: 30px; width: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; background: var(--surface); }
/* Hero: a real photo with the app's home screen overlapping it */
.hero-grid .phone-stage { justify-content: flex-start; padding: 0 70px 40px 0; }
.hero-photo { width: 100%; max-width: 440px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 32px; box-shadow: var(--shadow); }
.hero-grid .phone { position: absolute; right: 0; bottom: 0; width: min(210px, 42%); padding: 7px; border-radius: 30px; }
.hero-grid .phone img { border-radius: 24px; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-grid .phone-stage { padding: 0 48px 32px 0; justify-content: center; }
}

/* Photos */
.photo-frame { margin: 0; }
.photo-frame img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; }
.species { margin-top: 40px; }
.species-title { font-weight: 800; text-align: center; color: var(--muted); margin-bottom: 14px; }
.species-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.species-grid li { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 1; }
.species-grid img { width: 100%; height: 100%; object-fit: cover; }
.species-grid span { position: absolute; left: 8px; bottom: 8px; background: rgba(28, 25, 23, 0.78); color: #fff; font-weight: 800; font-size: 0.85rem; padding: 3px 10px; border-radius: 999px; }
@media (max-width: 860px) { .species-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .species-grid { gap: 10px; } .species-grid span { font-size: 0.75rem; padding: 2px 8px; left: 6px; bottom: 6px; } }

.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 40px; }
.trust div { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; font-weight: 700; font-size: 0.95rem; display: flex; gap: 10px; align-items: center; }
@media (max-width: 860px) { .trust { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .trust { grid-template-columns: 1fr; } }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; }
.icon { width: 48px; height: 48px; border-radius: 14px; background: var(--primary-soft); display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 14px; }
.pill { display: inline-block; margin-left: 8px; font-size: 0.75rem; font-weight: 800; background: var(--accent-soft); color: var(--accent); padding: 2px 10px; border-radius: 999px; vertical-align: middle; }

/* Arch-Pet AI showcase: a soft teal-to-cream surface that sets the
   section apart without turning the page dark. */
.aix { background: linear-gradient(180deg, var(--aix-top) 0%, var(--bg) 100%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.aix-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 40px; }
@media (max-width: 960px) { .aix-grid { grid-template-columns: 1fr; } }
.aix-card { display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
@media (max-width: 560px) { .aix-card { grid-template-columns: 1fr; justify-items: center; } }
.aix-card h3 { font-size: 1.45rem; margin-top: 12px; }
.aix-card ul { list-style: none; padding: 0; margin: 12px 0 0; }
.aix-card li { padding: 7px 0 7px 28px; position: relative; color: var(--muted); }
.aix-card li::before { content: '✓'; position: absolute; left: 2px; color: var(--accent); font-weight: 800; }
.aix-badge { display: inline-block; font-weight: 800; font-size: 0.85rem; background: var(--accent-soft); color: var(--accent); padding: 4px 12px; border-radius: 999px; }
.aix-phone { width: 210px; padding: 7px; border-radius: 30px; box-shadow: 0 20px 40px rgba(68, 40, 18, 0.18); }
.aix-phone img { border-radius: 24px; }
.aix-chips { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.aix-chips li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; font-weight: 700; }
.aix-ctas { margin-top: 28px; display: flex; gap: 20px; justify-content: center; align-items: center; flex-wrap: wrap; }
.aix-link { font-weight: 800; }
a.eyebrow { text-decoration: none; }

/* AI & privacy band */
.band { background: var(--surface-2); }
.privacy-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 32px; }
@media (max-width: 760px) { .privacy-grid { grid-template-columns: 1fr; } }
.privacy-grid .card { box-shadow: none; display: flex; gap: 16px; }
.privacy-grid .icon { flex: none; background: var(--accent-soft); }

/* Steps */
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; margin-top: 36px; }
@media (max-width: 860px) { .how-grid { grid-template-columns: 1fr; } }
.steps { display: grid; gap: 14px; counter-reset: step; }
.step { position: relative; padding-left: 76px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 22px; left: 24px; width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: var(--primary-ink); display: grid; place-items: center; font-weight: 800; }

/* Demo carousel */
.demo { display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: center; margin-top: 36px; }
@media (max-width: 860px) { .demo { grid-template-columns: 1fr; justify-items: center; text-align: center; } }
.demo .phone { width: min(300px, 76vw); }
.demo-caption h3 { font-size: 1.6rem; }
.demo-caption p { color: var(--muted); font-size: 1.1rem; max-width: 460px; }
.demo-controls { display: flex; gap: 12px; align-items: center; margin: 20px 0; flex-wrap: wrap; }
@media (max-width: 860px) { .demo-controls { justify-content: center; } }
.round { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 1.3rem; cursor: pointer; }
.dots { display: flex; gap: 6px; }
.dots button { width: 12px; height: 12px; min-width: 12px; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; padding: 0; }
.dots button[aria-current="true"] { background: var(--primary); width: 28px; border-radius: 999px; }
.dots-hit { padding: 16px 0; }

/* Pricing */
.toggle { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-top: 20px; }
.toggle button { border: 0; background: none; font: inherit; font-weight: 800; color: var(--muted); padding: 10px 18px; border-radius: 999px; cursor: pointer; min-height: 44px; }
.toggle button[aria-pressed="true"] { background: var(--primary); color: var(--primary-ink); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; align-items: stretch; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; } }
.plan { display: flex; flex-direction: column; position: relative; }
.plan.featured { border: 2px solid var(--primary); }
.plan .badge { position: absolute; top: -13px; left: 24px; background: var(--primary); color: var(--primary-ink); font-weight: 800; font-size: 0.8rem; padding: 4px 12px; border-radius: 999px; }
.price { font-size: 2.4rem; font-weight: 800; margin: 8px 0 0; color: var(--text); }
.per { color: var(--muted); margin-bottom: 16px; }
.trial { color: var(--accent); font-weight: 800; margin: -8px 0 16px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.plan li { padding: 6px 0 6px 30px; position: relative; color: var(--text); }
.plan li::before { content: '✓'; position: absolute; left: 4px; color: var(--accent); font-weight: 800; }
.fine { color: var(--muted); font-size: 0.95rem; margin-top: 20px; }

/* Articles */
.article-card { display: flex; flex-direction: column; text-decoration: none; color: var(--text); }
.article-card .cover { margin: -24px -24px 18px; width: calc(100% + 48px); max-width: none; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
.article-card { overflow: hidden; }
.article-card .tag { color: var(--accent); font-weight: 800; font-size: 0.85rem; margin-bottom: 8px; }
.article-card p { flex: 1; margin-bottom: 16px; }
.article-card .more { font-weight: 800; color: var(--primary); }
.article-card:hover { border-color: var(--primary); }

/* FAQ */
.faq { max-width: 820px; margin: 32px auto 0; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; font-weight: 800; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: var(--primary); }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* About */
.about { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }
.values { display: grid; gap: 14px; }
.values .card { box-shadow: none; }

/* Contact */
.emails { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.emails li { color: var(--muted); }
.emails a { display: block; font-weight: 800; font-size: 1.1rem; overflow-wrap: anywhere; }
.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { form .row { grid-template-columns: 1fr; } }
label { display: block; font-weight: 800; margin-bottom: 6px; }
input, select, textarea { width: 100%; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; min-height: 48px; }
textarea { min-height: 140px; resize: vertical; }
.field { margin-bottom: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { margin-top: 12px; font-weight: 700; }
.status.ok { color: var(--accent); }
.status.err { color: #b91c1c; }
@media (prefers-color-scheme: dark) { .status.err { color: #fca5a5; } }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 48px 0 32px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.3fr; gap: 24px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-get { grid-column: 1 / -1; } }
.footer h4 { color: var(--text); margin: 0 0 10px; font-size: 1rem; }
.footer a { color: var(--muted); text-decoration: none; display: block; padding: 4px 0; }
.footer a:hover { color: var(--primary); }
.footer small { display: block; margin-top: 28px; }

/* Long-form pages (articles, legal) */
.doc { max-width: 760px; margin: 0 auto; padding: 48px 24px 80px; }
@media (max-width: 600px) { .doc { padding: 32px 16px 64px; } }
.doc h1 { font-size: clamp(2rem, 4.4vw, 2.8rem); }
.doc h2 { font-size: 1.5rem; margin-top: 36px; }
.doc h3 { margin-top: 24px; }
.doc p, .doc li { color: var(--text); }
.doc .meta { color: var(--muted); margin-bottom: 28px; }
.doc .callout { background: var(--surface-2); border-left: 4px solid var(--primary); padding: 16px 20px; border-radius: 12px; margin: 24px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.95rem; }
.doc th, .doc td { text-align: left; border-bottom: 1px solid var(--line); padding: 10px 8px; vertical-align: top; }
.doc-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); margin: 0 0 28px; }
.doc-figure { margin: 0 0 28px; }
.doc-figure .doc-cover { margin: 0; }
.doc-figure figcaption { margin-top: 8px; font-size: 0.85rem; color: var(--muted); }
.doc-figure figcaption a { color: inherit; }
.credits td:first-child img { width: 96px; border-radius: 10px; }
.back { display: inline-block; margin-bottom: 24px; font-weight: 800; text-decoration: none; }
[hidden] { display: none !important; }

/* Pet sitting spotlight */
.spot { background: linear-gradient(180deg, var(--surface-2) 0%, var(--bg) 100%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spot-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.spot-list { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 12px; }
.spot-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 1.02rem; }
.spot-list li > span:first-child { font-size: 1.25rem; line-height: 1.4; }
.spot-badge { display: inline-block; margin: 0 0 18px; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: 0.9rem; }
.spot .phone-stage { justify-content: center; }
@media (max-width: 860px) { .spot-grid { grid-template-columns: 1fr; gap: 36px; } }

/* App store badges (hero and footer) and the Instagram link */
.stores { display: flex; gap: 12px; flex-wrap: wrap; margin: 4px 0 14px; }
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 18px 8px 14px; border-radius: 12px; background: #111; color: #fff; border: 1px solid #3f3f46; text-decoration: none; }
.store svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store small { font-size: 0.75rem; font-weight: 600; }
.store strong { font-size: 1.15rem; font-weight: 800; }
a.store:hover { background: #000; }
.store-soon { opacity: 0.7; cursor: default; }
a.store-soon:hover { background: #111; }
.store-mine { outline: 3px solid var(--primary); outline-offset: 2px; }
.footer a.store { display: inline-flex; color: #fff; padding: 8px 18px 8px 14px; }
.footer a.store:hover { color: #fff; }
.stores-col { flex-direction: column; align-items: flex-start; margin: 0; }
.footer .follow { margin-top: 20px; }
.footer a.social { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.footer a.social svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.footer .store small { display: inline; margin-top: 0; }
