/* Agent Squirrel — shared styles */
:root {
  /* Taken from the squirrel logo: ink-navy outlines, golden fur, on warm ivory */
  --bg: #faf8f3;
  --panel: #ffffff;
  --panel-2: #f2eee6;
  --text: #14202e;
  --muted: #556170;
  --accent: #8a5a12;        /* links and small text */
  --gold: #b07d22;          /* large display text and decoration */
  --ink: #14202e;           /* buttons */
  --ink-hover: #263a52;
  --green: #1d7a4c;
  --grey: #5b6672;
  --line: #e6e0d4;
  --line-2: #cdc5b5;
  --shadow: 0 1px 2px rgba(20, 32, 46, .05), 0 10px 28px rgba(20, 32, 46, .07);
  --radius: 16px;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--bg); color: var(--text); font-family: var(--serif); line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
strong { color: var(--text); font-weight: 600; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 14px; font-family: var(--sans); z-index: 10; }
.skip:focus { left: 12px; top: 12px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--panel); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px 28px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand-name { font-family: var(--sans); font-weight: 800; letter-spacing: .03em; font-size: 16px; text-transform: uppercase; color: var(--gold); }
.brand-name span { color: var(--text); }
.site-nav { display: flex; flex-wrap: wrap; gap: 6px 24px; font-family: var(--sans); font-size: 15px; }
.site-nav a { color: var(--muted); text-decoration: none; padding: 4px 0; white-space: nowrap; }
.site-nav a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 5px; }

/* Home hero */
.hero { padding-top: 56px; padding-bottom: 8px; display: grid; gap: 24px; align-items: center; }
.hero-art { display: none; }
@media (min-width: 820px) {
  .hero { grid-template-columns: 1fr auto; gap: 48px; }
  .hero-art { display: block; width: 300px; height: auto; }
}
.hero h1 { font-size: clamp(40px, 7vw, 68px); line-height: 1.06; font-weight: 600; margin-bottom: 20px; max-width: 14ch; }
.hero h1 em { color: var(--gold); font-style: normal; }
.lede { font-size: 19px; color: var(--muted); max-width: 640px; }

/* Sections */
.section { padding-top: 56px; }
.section-head { margin-bottom: 22px; }
.section-head h2, .section > h2 { font-size: 28px; line-height: 1.2; margin-bottom: 6px; }
.sub { color: var(--muted); }

/* Status tags */
.tag { display: inline-block; font-family: var(--sans); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; border: 1px solid currentColor; border-radius: 999px; padding: 2px 10px; margin-bottom: 12px; }
.tag-out { color: var(--green); background: #e9f5ee; }
.tag-soon { color: var(--accent); background: #fbf3e2; }
.tag-dev { color: var(--grey); background: #f0f2f4; }
.tag-plain { color: var(--muted); }

/* Cards */
.card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: border-color .2s, transform .2s, box-shadow .2s; }
.card-media { aspect-ratio: 16 / 9; background: var(--panel-2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media.is-icon, .product-media.is-icon { display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #fbeef8, #ecd2e6); }
.card-media.is-icon img, .product-media.is-icon img { width: 36%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 22%; box-shadow: 0 2px 4px rgba(60, 10, 50, .18), 0 18px 40px rgba(60, 10, 50, .28); }
.product-media.is-icon img { width: 48%; }
.app-icon { width: 52px; height: 52px; border-radius: 22%; border: 1px solid var(--line); background: #fff; flex: none; position: relative; }
.title-row { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.title-row h3 { margin-bottom: 0; }
.app-icon-lg { width: 84px; height: 84px; margin-bottom: 18px; box-shadow: var(--shadow); }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 21px; line-height: 1.25; margin-bottom: 6px; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card p { color: var(--muted); font-size: 16px; }
.card .more { margin-top: 14px; font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--accent); }
.card.is-link:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: 0 2px 4px rgba(20, 32, 46, .06), 0 16px 36px rgba(20, 32, 46, .12); }
.card.is-link:hover h3 a { color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .card { transition: none; } .card.is-link:hover { transform: none; } }

.card-feature { margin-bottom: 18px; }
@media (min-width: 760px) {
  .card-feature { display: grid; grid-template-columns: 1.15fr 1fr; }
  .card-feature .card-media { aspect-ratio: auto; min-height: 320px; }
  .card-feature .card-body { justify-content: center; padding: 32px 34px; }
  .card-feature h3 { font-size: 28px; }
  .card-feature.media-right { grid-template-columns: 1fr 1.15fr; }
  .card-feature.media-right .card-media { order: 2; }
}

.grid-3 { display: grid; gap: 18px; }
@media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* About & contact */
.about p, .contact p { color: var(--muted); font-size: 18px; max-width: 680px; }
.about h2, .contact h2 { margin-bottom: 10px; }
.contact .actions { margin-top: 20px; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 15px; font-weight: 600; text-decoration: none; padding: 12px 20px; border-radius: 999px; border: 1px solid transparent; line-height: 1.2; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-hover); }
.btn-secondary { border-color: var(--line-2); color: var(--text); background: var(--panel); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-static { border: 1px dashed var(--line-2); color: var(--text); background: var(--panel); }

/* Product pages */
.crumbs { font-family: var(--sans); font-size: 14px; color: var(--muted); padding-top: 28px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.product-hero { display: grid; gap: 32px; padding-top: 28px; align-items: center; }
.product-hero h1 { font-size: clamp(40px, 6.5vw, 64px); line-height: 1.05; font-weight: 600; margin-bottom: 10px; }
.product-hero .lede { color: var(--text); font-size: 22px; margin-bottom: 12px; }
.product-hero p { color: var(--muted); font-size: 18px; max-width: 560px; }
.product-hero .platforms { font-family: var(--sans); font-size: 14px; margin-top: 16px; }
.product-media { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--panel-2); aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 860px) { .product-hero { grid-template-columns: 1fr 1.05fr; gap: 48px; } }
.product-media.wide { aspect-ratio: 16 / 9; }
.shots { margin: 18px auto 0; max-width: 820px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #0d1420; }
.shots img { width: 100%; height: auto; }

.features { display: grid; gap: 16px; margin-top: 18px; }
@media (min-width: 700px) { .features { grid-template-columns: repeat(2, 1fr); } }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.feature h3 { font-size: 19px; margin-bottom: 6px; }
.feature p { color: var(--muted); }

.steps { display: grid; gap: 16px; margin-top: 18px; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.step::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--sans); font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.step h3 { font-size: 19px; margin-bottom: 6px; }
.step p { color: var(--muted); }

.two-col { display: grid; gap: 16px; }
@media (min-width: 760px) { .two-col { grid-template-columns: 1.4fr 1fr; } }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.panel h2 { font-size: 22px; margin-bottom: 14px; }
.panel p { color: var(--muted); }
.facts { font-family: var(--sans); font-size: 15px; }
.facts div { display: grid; grid-template-columns: 9em 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
@media (max-width: 480px) { .facts div { grid-template-columns: 7.4em 1fr; gap: 10px; } }
.facts div:first-child { border-top: 0; padding-top: 0; }
.facts dt { color: var(--muted); }
.facts dd { color: var(--text); }
.link-list { list-style: none; margin-top: 14px; font-family: var(--sans); font-size: 15px; }
.link-list li { padding: 8px 0; border-top: 1px solid var(--line); }
.link-list li:first-child { border-top: 0; }

.cta-band { margin-top: 56px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; text-align: center; }
.cta-band h2 { font-size: 28px; margin-bottom: 8px; }
.cta-band p { color: var(--muted); max-width: 560px; margin: 0 auto; }
.cta-band .actions { justify-content: center; }

.small-print { margin-top: 28px; color: var(--muted); font-family: var(--sans); font-size: 13px; }

.panel a[href^="mailto:"], .prose a[href^="mailto:"] { white-space: nowrap; }

/* Legal pages */
.prose { max-width: 740px; padding-top: 12px; }
.prose h1 { font-size: clamp(32px, 5vw, 42px); line-height: 1.15; margin: 18px 0 6px; }
.prose .updated { color: var(--muted); font-family: var(--sans); font-size: 14px; margin-bottom: 26px; }
.prose h2 { font-size: 22px; margin: 32px 0 8px; }
.prose p { margin-bottom: 12px; color: #2a3644; }
.prose ul { margin: 0 0 12px 22px; color: #2a3644; }
.prose li { margin-bottom: 6px; }

/* 404 */
.not-found { padding-top: 80px; padding-bottom: 40px; }
.not-found h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.1; margin-bottom: 14px; }
.not-found p { color: var(--muted); font-size: 19px; max-width: 560px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--panel-2); margin-top: 72px; padding: 40px 0 56px; font-family: var(--sans); font-size: 14px; color: var(--muted); }
.footer-grid { display: grid; gap: 26px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer-brand p { margin-top: 10px; }
.footer-h { color: var(--text); font-weight: 600; margin-bottom: 8px; }
.site-footer ul { list-style: none; }
.site-footer li { padding: 3px 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.footer-legal { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line-2); font-size: 13px; }
