/* PawSOS Goa product site. One theme family (cool green-grey neutrals), brand teal, coral only for urgency. */
:root {
  --bg: #f3f6f4;
  --surface: #ffffff;
  --surface-2: #e8eeeb;
  --ink: #10211e;
  --ink-soft: #4a5c57;
  --line: #d5dfdb;
  --brand: #0f6b5c;
  --brand-ink: #ffffff;
  --urgent: #d8432a;
  --bubble-in: #d9f2e6;
  --bubble-out: #ffffff;
  --chat-bg: #e6ece9;
  --shadow: 0 24px 60px -28px rgb(15 107 92 / .45);
  --radius: 16px;
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
}
:root[data-theme="dark"] {
  --bg: #0b1513; --surface: #12201d; --surface-2: #172925; --ink: #e6eeeb; --ink-soft: #9db1ab;
  --line: #243934; --brand: #3fb59e; --brand-ink: #07201b; --urgent: #ff6a4d;
  --bubble-in: #1d4a3e; --bubble-out: #172925; --chat-bg: #0f1c19; --shadow: 0 24px 60px -28px rgb(0 0 0 / .7);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1513; --surface: #12201d; --surface-2: #172925; --ink: #e6eeeb; --ink-soft: #9db1ab;
    --line: #243934; --brand: #3fb59e; --brand-ink: #07201b; --urgent: #ff6a4d;
    --bubble-in: #1d4a3e; --bubble-out: #172925; --chat-bg: #0f1c19; --shadow: 0 24px 60px -28px rgb(0 0 0 / .7);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: var(--brand-ink); padding: 8px 14px; border-radius: 999px; z-index: 20; }
.skip:focus { left: 16px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 20px var(--display); text-decoration: none; letter-spacing: -.01em; }
.brand-goa { color: var(--brand); }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: var(--brand-ink); font-size: 18px; }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--ink-soft); font-size: 15px; }
.nav-links a:hover { color: var(--ink); }
.nav-end { display: flex; gap: 6px; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 19px; cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: var(--surface-2); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; min-height: calc(100dvh - 68px); padding-block: 48px 64px; }
h1 { font: 700 clamp(40px, 5.6vw, 72px)/1.02 var(--display); letter-spacing: -.035em; margin: 0 0 22px; max-width: 13ch; }
.lede { font-size: 20px; color: var(--ink-soft); max-width: 34ch; margin: 0 0 34px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: 999px; font: 600 16px var(--body); text-decoration: none; white-space: nowrap; transition: transform .2s cubic-bezier(.16,1,.3,1), background .2s; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); }

/* Phone: a real component, driven by site.js */
.phone { margin: 0; justify-self: end; width: min(400px, 100%); background: var(--chat-bg); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); }
.phone-top { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--brand); color: var(--brand-ink); }
.phone-top small { display: block; opacity: .8; font-size: 13px; }
.avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 999px; background: color-mix(in srgb, var(--brand-ink) 18%, transparent); font-size: 20px; }
.chat { list-style: none; margin: 0; padding: 16px 14px; height: 470px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
.msg { max-width: 86%; padding: 9px 12px 7px; border-radius: 14px; font-size: 14.5px; line-height: 1.45; background: var(--bubble-out); white-space: pre-line; animation: pop .45s cubic-bezier(.16,1,.3,1) both; }
.msg.in { align-self: flex-end; background: var(--bubble-in); border-bottom-right-radius: 4px; }
.msg.out { align-self: flex-start; border-bottom-left-radius: 4px; }
.msg .attach { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.msg .attach i { font-size: 20px; color: var(--brand); }
.msg b.case { font-family: var(--mono); font-weight: 500; }
.msg .urgent { color: var(--urgent); font-weight: 600; }
.msg .fine { display: block; margin-top: 6px; font-size: 12.5px; color: var(--ink-soft); }
.typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; border-radius: 14px; background: var(--bubble-out); }
.typing span { width: 6px; height: 6px; border-radius: 99px; background: var(--ink-soft); animation: blink 1s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; } .typing span:nth-child(3) { animation-delay: .3s; }
.phone figcaption { padding: 10px 16px 14px; font-size: 12.5px; color: var(--ink-soft); background: var(--surface); border-top: 1px solid var(--line); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.97); } }
@keyframes blink { 50% { opacity: .25; } }

/* Problem */
.problem { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px 72px; padding-block: 96px; border-top: 1px solid var(--line); }
.big-num { font: 800 clamp(72px, 12vw, 168px)/.9 var(--display); letter-spacing: -.05em; margin: 0; color: var(--urgent); font-variant-numeric: tabular-nums; }
.stat-text { font: 600 clamp(22px, 2.4vw, 30px)/1.25 var(--display); margin: 18px 0 0; max-width: 22ch; letter-spacing: -.01em; }
.stat-side { display: grid; gap: 28px; align-content: end; }
.stat-side p { margin: 0; color: var(--ink-soft); max-width: 40ch; }
.stat-side b { display: block; color: var(--ink); font: 650 22px/1.3 var(--display); margin-bottom: 4px; }
.source { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--ink-soft); }

/* Shared section type */
.h2 { font: 750 clamp(32px, 4vw, 52px)/1.05 var(--display); letter-spacing: -.03em; margin: 0 0 18px; max-width: 20ch; }
.section-lede { font-size: 19px; color: var(--ink-soft); max-width: 56ch; margin: 0 0 40px; }
.small-note { font-size: 14px; color: var(--ink-soft); max-width: 80ch; margin: 22px 0 0; }
h3 { font: 700 21px/1.25 var(--display); margin: 0 0 6px; letter-spacing: -.01em; }
section[id] { scroll-margin-top: 80px; }

/* How it works: sticky screen beside the steps */
.how { padding-block: 104px; border-top: 1px solid var(--line); }
.how-grid { display: grid; grid-template-columns: 1fr 400px; gap: 72px; align-items: start; margin-top: 40px; }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.how-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 22px 22px; border-radius: var(--radius); opacity: .45; transition: opacity .4s, background .4s; }
.how-steps li.is-active { opacity: 1; background: var(--surface); box-shadow: inset 3px 0 0 var(--brand); }
.how-steps li > i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); color: var(--brand); font-size: 22px; }
.how-steps p { margin: 0; color: var(--ink-soft); max-width: 52ch; }
.how-shot { position: sticky; top: 96px; margin: 0; }
.how-shot img { width: 100%; height: auto; max-height: 72vh; object-fit: cover; object-position: top; border-radius: 26px; border: 1px solid var(--line); box-shadow: var(--shadow); display: block; animation: fade .5s ease both; }
.how-shot img[hidden] { display: none; }
.how-shot figcaption { font-size: 13px; color: var(--ink-soft); margin-top: 14px; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }

/* Try it live */
.try { padding-block: 104px; background: var(--surface-2); border-block: 1px solid var(--line); }
.sandbox { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.sb-col { display: flex; flex-direction: column; background: var(--chat-bg); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; min-height: 620px; }
.sb-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: var(--brand); color: var(--brand-ink); }
.sb-team .sb-head { background: var(--ink); color: var(--bg); }
.sb-sub { font-size: 13px; opacity: .8; white-space: nowrap; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: color-mix(in srgb, var(--brand-ink) 16%, transparent); }
.seg button { border: 0; background: transparent; color: inherit; font: 600 14px var(--body); padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--brand-ink); color: var(--brand); }
.sb-head select { font: 600 14px var(--body); padding: 8px 10px; border-radius: 10px; border: 0; max-width: 62%; background: var(--surface); color: var(--ink); }
.sb-chat { list-style: none; margin: 0; padding: 16px 14px; flex: none; height: 440px; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; scroll-behavior: smooth; }
.sb-empty { margin: auto; text-align: center; color: var(--ink-soft); max-width: 30ch; font-size: 15px; }
.sb-chat .msg { animation: pop .35s cubic-bezier(.16,1,.3,1) both; }
.sb-chat .msg img { display: block; max-width: 220px; border-radius: 10px; margin-bottom: 4px; }
.msg-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.msg-btns button { border: 1px solid var(--brand); background: transparent; color: var(--brand); font: 600 13.5px var(--body); padding: 7px 12px; border-radius: 999px; cursor: pointer; }
.msg-btns button:hover { background: var(--brand); color: var(--brand-ink); }
.msg-btns button:disabled { opacity: .45; cursor: default; background: transparent; color: var(--brand); }
.sb-tools { display: grid; gap: 8px; padding: 12px; background: var(--surface); border-top: 1px solid var(--line); }
.sb-row { display: flex; gap: 8px; align-items: center; }
.chip-btn { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 600 14px var(--body); cursor: pointer; white-space: nowrap; }
.chip-btn:hover { border-color: var(--brand); }
.chip-btn:disabled { opacity: .5; cursor: progress; }
.sb-row select, .sb-row input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 400 15px var(--body); }
.send-btn { width: 40px; height: 40px; border-radius: 999px; border: 0; background: var(--brand); color: var(--brand-ink); font-size: 18px; cursor: pointer; display: grid; place-items: center; }
.sb-foot { margin: 0; padding: 12px 14px; font-size: 13px; color: var(--ink-soft); background: var(--surface); border-top: 1px solid var(--line); }
.sb-note { font-size: 14px; color: var(--ink-soft); margin: 18px 0 0; max-width: 90ch; }
.sb-note.warn { color: var(--urgent); }

/* For officials: overlapping screens */
.officials { padding-block: 104px; }
.off-stage { position: relative; margin-top: 36px; padding-bottom: 12%; }
.off-main { width: 82%; height: auto; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); display: block; }
.off-detail { position: absolute; right: 0; bottom: 0; width: 46%; height: auto; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.off-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 48px 0 32px; }
.off-points p { margin: 0; color: var(--ink-soft); }
.off-points b { display: block; color: var(--ink); font: 700 20px/1.3 var(--display); margin-bottom: 4px; }

/* Architecture */
.arch { padding-block: 104px; border-top: 1px solid var(--line); }
.arch-img { display: block; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.arch-img img { width: 100%; height: auto; display: block; }
.rules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-top: 40px; }
.rules div { border-top: 3px solid var(--brand); padding-top: 14px; }
.rules p { margin: 0; color: var(--ink-soft); font-size: 16px; }

/* Honest status */
.honest { padding-block: 104px; background: var(--surface); border-block: 1px solid var(--line); }
.ledger { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 0; margin-top: 32px; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.led-col { padding: 28px; }
.led-col + .led-col { border-left: 1px solid var(--line); }
.led-col ul { margin: 14px 0 0; padding-left: 18px; color: var(--ink-soft); display: grid; gap: 8px; }
.pill { display: inline-block; font: 600 13px var(--mono); padding: 5px 12px; border-radius: 999px; }
.pill-ok { background: color-mix(in srgb, var(--brand) 16%, transparent); color: var(--brand); }
.pill-part { background: color-mix(in srgb, #c99a0c 20%, transparent); color: #8a6a00; }
.pill-no { background: color-mix(in srgb, var(--urgent) 14%, transparent); color: var(--urgent); }
:root[data-theme="dark"] .pill-part { color: #e8c35a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pill-part { color: #e8c35a; } }

/* Film and code */
.film { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center; padding-block: 104px; }
.film-frame { aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: #0b1513; color: #e6eeeb; border: 1px solid var(--line); display: grid; place-items: center; }
.film-frame video { width: 100%; height: 100%; display: block; }
.film-empty { text-align: center; max-width: 34ch; padding: 24px; }
.film-empty i { font-size: 44px; color: var(--brand); }
.links { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.links a { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line); text-decoration: none; font-weight: 600; transition: border-color .2s, transform .2s; }
.links a:hover { border-color: var(--brand); transform: translateX(4px); }
.links i { font-size: 22px; color: var(--brand); }

.foot { padding-block: 32px 48px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 14px; }
.foot p { margin: 0 0 6px; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; gap: 40px; min-height: auto; padding-block: 40px 56px; }
  .phone { justify-self: stretch; }
  .problem { grid-template-columns: 1fr; padding-block: 64px; }
  .how, .try, .officials, .arch, .honest, .film { padding-block: 64px; }
  .how-grid { grid-template-columns: 1fr; gap: 24px; }
  .how-shot { display: none; }
  .how-steps li { opacity: 1; }
  .sandbox { grid-template-columns: 1fr; }
  .sb-row { flex-wrap: wrap; }
  .sb-row select { flex: 1 1 100%; }
  .sb-row .chip-btn { flex: 1 1 auto; justify-content: center; }
  .sb-sub { display: none; }
  .sb-head select { max-width: 100%; flex: 1; }
  .sb-col { min-height: 0; }
  .sb-chat { height: 380px; }
  .off-stage { padding-bottom: 0; }
  .off-main { width: 100%; }
  .off-detail { position: static; width: 100%; margin-top: 16px; }
  .off-points, .rules { grid-template-columns: 1fr; gap: 20px; }
  .ledger { grid-template-columns: 1fr; }
  .led-col + .led-col { border-left: 0; border-top: 1px solid var(--line); }
  .film { grid-template-columns: 1fr; gap: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .msg, .typing span, .sb-chat .msg, .how-shot img { animation: none; }
  .btn, .how-steps li, .links a { transition: none; }
  .sb-chat { scroll-behavior: auto; }
}
