/* PetClue showcase. System fonts only: no third-party requests. */
:root {
  --bg: #fbf7f0;
  --bg-alt: #f3ece0;
  --surface: #ffffff;
  --text: #1f2a28;
  --muted: #55615e;
  --line: #e4dbcc;
  --brand: #0e4f4a;
  --brand-ink: #ffffff;
  --accent: #f2a93b;
  --accent-soft: #fdf0d9;
  --ok: #2f7d4f;
  --shadow: 0 10px 30px rgba(14, 79, 74, 0.08);
  --radius: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111a19;
    --bg-alt: #16211f;
    --surface: #1b2826;
    --text: #eef3f1;
    --muted: #a9b7b3;
    --line: #2a3a37;
    --brand: #5fbfb2;
    --brand-ink: #0b1514;
    --accent: #f2b45a;
    --accent-soft: #2b2416;
    --ok: #6fcf97;
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-family: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--brand); text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip-link:focus { left: 16px; }

.draft-ribbon { background: #b3261e; color: #fff; text-align: center; font-weight: 700; padding: 6px 16px; letter-spacing: .02em; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 1.2rem; font-family: ui-rounded, "SF Pro Rounded", system-ui, sans-serif; }
.brand img { border-radius: 10px; }
.site-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.site-nav a:hover { color: var(--text); }
@media (max-width: 640px) {
  .site-nav { gap: 12px; }
  .site-nav a:nth-child(-n+1) { display: none; }
  .brand span { font-size: 1.05rem; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; font-size: 1rem; }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-ghost:hover { background: color-mix(in srgb, var(--brand) 8%, transparent); }
.btn-soon { background: var(--accent-soft); color: var(--text); border-color: var(--accent); cursor: default; }
.btn-block { width: 100%; }

/* Hero */
.hero { padding: 64px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-weight: 700; color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent); padding: 4px 12px; border-radius: 999px; font-size: .9rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 12px; }
.hero-note { font-size: .9rem; color: var(--muted); }
@media (max-width: 880px) {
  .hero { padding-top: 36px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* Example chat */
.chat { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.chat figcaption { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.msg { padding: 10px 14px; border-radius: 16px; max-width: 88%; font-size: .95rem; }
.msg-user { align-self: flex-end; background: var(--brand); color: var(--brand-ink); border-bottom-right-radius: 4px; }
.msg-ai { align-self: flex-start; background: var(--bg-alt); border-bottom-left-radius: 4px; }
.msg-result { border: 1px solid var(--line); background: var(--surface); }
.msg-result p { margin: 0 0 .4em; }
.msg-result ul { margin: 0; padding-left: 1.1em; }
.urgency { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); display: inline-block; }
.chat-note { font-size: .8rem; color: var(--muted); margin: 4px 0 0; }

/* Sections */
.section { padding: 64px 0; scroll-margin-top: 72px; }
.section-tight { padding-top: 0; }
.section-alt { background: var(--bg-alt); }
.section-lead { color: var(--muted); max-width: 46em; }
.steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps p { color: var(--muted); margin: 0; }
.step-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--text); font-weight: 800; margin-bottom: 10px; border: 2px solid var(--accent); }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 24px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature p { color: var(--muted); margin: 0; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .steps, .features { grid-template-columns: 1fr; } .section { padding: 48px 0; } }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; align-items: stretch; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; }
.plan-featured { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.plan-badge { position: absolute; top: -13px; left: 24px; background: var(--brand); color: var(--brand-ink); font-size: .8rem; font-weight: 700; padding: 3px 12px; border-radius: 999px; margin: 0; }
.plan-tagline { color: var(--muted); min-height: 3.2em; }
.price { margin: 0; }
.amount { font-size: 2.2rem; font-weight: 800; font-family: ui-rounded, "SF Pro Rounded", system-ui, sans-serif; }
.per { color: var(--muted); }
.price-alt { color: var(--muted); font-size: .95rem; }
.plan-features { list-style: none; padding: 0; margin: 8px 0 22px; flex: 1; }
.plan-features li { padding: 6px 0 6px 28px; position: relative; border-top: 1px dashed var(--line); }
.plan-features li:first-child { border-top: 0; }
.plan-features li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 12px; height: 7px; border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg); }
.plan-actions { display: grid; gap: 10px; }
.plan-cta-note { color: var(--muted); font-size: .95rem; margin: 0; text-align: center; padding: 12px 0; }
.fine-print { color: var(--muted); font-size: .9rem; margin-top: 18px; }
@media (max-width: 880px) { .plans { grid-template-columns: 1fr; } .plan-tagline { min-height: 0; } }

/* Notice */
.notice { background: var(--accent-soft); border: 1px solid var(--accent); border-radius: 20px; padding: 26px; }
.notice p { margin: 0; }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 2px; top: 12px; font-size: 1.4rem; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 16px; margin: 0; }

/* Legal and contact */
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.legal h2 { font-size: 1.2rem; margin-top: 1.6em; }
.legal ul { padding-left: 1.2em; }
.legal-draft { background: var(--accent-soft); border: 1px solid var(--accent); padding: 10px 14px; border-radius: 10px; font-weight: 700; }
.legal-meta { color: var(--muted); font-size: .95rem; }
.contact-list { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 20px 0; }
.contact-list dt { color: var(--muted); font-weight: 600; }
.contact-list dd { margin: 0; }

/* Preview banner */
.preview-banner { background: #3d2a8a; color: #fff; padding: 10px 0; font-size: .95rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 44px; background: var(--bg); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; align-items: start; }
.footer-brand p { color: var(--muted); font-size: .9rem; margin: 10px 0 0; }
.footer-links { display: grid; gap: 6px; }
.footer-links a, .footer-contact a { color: var(--text); text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { text-decoration: underline; }
.footer-contact { display: grid; gap: 6px; color: var(--muted); font-size: .95rem; }
@media (max-width: 720px) { .footer-inner { grid-template-columns: 1fr; } }
