/* uads site: design tokens and the pieces every public and client page shares.
   Tokens are the Claude Design files (Homepage, Client App, Design System), light and dark;
   an explicit choice (data-theme on <html>) wins, otherwise the OS decides. */
:root, [data-theme="light"] {
  --bg: #f7f5f1; --surface: #fffefb; --surface-2: #efece6; --ink: #22252b; --ink-2: #55534e; --ink-3: #6e6960;
  --accent: #5f574b; --accent-hover: #4d463c; --on-accent: #ffffff; --accent-soft: #ebe6dd;
  --line: #e4e0d8; --line-2: #cfc9be;
  --pos: #2c6645; --pos-soft: #e5efe8; --warn: #85560f; --warn-soft: #f6ecd8; --neg: #a1382b; --neg-soft: #f6e4e0;
  --info: #395673; --info-soft: #e4eaf1; --bar: #d6cec1; --bar-hi: #9d9383; --amber: #f2bd4f; --on-amber: #22252b;
  --extrude: #d9d1c4; --extrude-2: #c7bdae;
  --shadow: 0 1px 2px rgba(34, 37, 43, .04), 0 6px 20px rgba(34, 37, 43, .05);
  --shadow-lg: 0 2px 6px rgba(34, 37, 43, .06), 0 18px 48px rgba(34, 37, 43, .14);
  --focus: #22252b; --scrim: rgba(34, 37, 43, .35);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #141518; --surface: #1b1d21; --surface-2: #24262b; --ink: #eeeae3; --ink-2: #bdb8af; --ink-3: #a19c93;
  --accent: #cdbfa9; --accent-hover: #ddd1bd; --on-accent: #1a1b1e; --accent-soft: #2d2a25;
  --line: #2c2e33; --line-2: #43454b;
  --pos: #80c79d; --pos-soft: #1b2c22; --warn: #e3b36a; --warn-soft: #322817; --neg: #ee9384; --neg-soft: #3a221e;
  --info: #a2bcd9; --info-soft: #1e2935; --bar: #4a463f; --bar-hi: #9a8f7e; --amber: #f2bd4f; --on-amber: #22252b;
  --extrude: #34312c; --extrude-2: #2a2824;
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 6px 20px rgba(0, 0, 0, .25);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .4), 0 18px 48px rgba(0, 0, 0, .5);
  --focus: #eeeae3; --scrim: rgba(0, 0, 0, .55);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141518; --surface: #1b1d21; --surface-2: #24262b; --ink: #eeeae3; --ink-2: #bdb8af; --ink-3: #a19c93;
    --accent: #cdbfa9; --accent-hover: #ddd1bd; --on-accent: #1a1b1e; --accent-soft: #2d2a25;
    --line: #2c2e33; --line-2: #43454b;
    --pos: #80c79d; --pos-soft: #1b2c22; --warn: #e3b36a; --warn-soft: #322817; --neg: #ee9384; --neg-soft: #3a221e;
    --info: #a2bcd9; --info-soft: #1e2935; --bar: #4a463f; --bar-hi: #9a8f7e; --amber: #f2bd4f; --on-amber: #22252b;
    --extrude: #34312c; --extrude-2: #2a2824;
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 6px 20px rgba(0, 0, 0, .25);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .4), 0 18px 48px rgba(0, 0, 0, .5);
    --focus: #eeeae3; --scrim: rgba(0, 0, 0, .55);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
button, input, textarea, select { font-family: inherit; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* which theme is showing: pieces that differ by theme (the Google button, screenshots) */
.only-dark { display: none !important; }
[data-theme="dark"] .only-dark { display: revert !important; }
[data-theme="dark"] .only-light { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .only-dark { display: revert !important; }
  :root:not([data-theme="light"]) .only-light { display: none !important; }
}

/* segmented control (IT/EN, 7/14/30, tabs) */
.seg { display: inline-flex; padding: 3px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--line); }
.seg > a, .seg > button { flex: none; white-space: nowrap; height: 38px; min-width: 44px; padding: 0 10px; border-radius: 8px; border: 0;
  background: transparent; color: var(--ink-2); font: 600 13px Inter, sans-serif; cursor: pointer; display: inline-flex;
  align-items: center; justify-content: center; text-decoration: none; }
.seg > [aria-current="true"], .seg > [aria-pressed="true"], .seg > [aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.seg > a:hover { color: var(--ink); }

/* Sign in with Google, per Google's branding rules: never recoloured with the uads theme */
.gbtn { white-space: nowrap; height: 50px; padding: 0 22px 0 14px; border-radius: 25px; border: 1px solid #747775; background: #ffffff;
  color: #1f1f1f; font: 500 16px Roboto, Arial, sans-serif; display: inline-flex; align-items: center; gap: 12px; text-decoration: none; cursor: pointer; }
.gbtn:hover { background: #f5f6f7; color: #1f1f1f; }
[data-theme="dark"] .gbtn { border-color: #8e918f; background: #131314; color: #e3e3e3; }
[data-theme="dark"] .gbtn:hover { color: #e3e3e3; background: #131314; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .gbtn { border-color: #8e918f; background: #131314; color: #e3e3e3; }
}
.gbtn svg { flex: none; }
.gbtn-sm { height: 44px; padding: 0 16px 0 12px; border-radius: 22px; font-size: 15px; gap: 10px; }

/* the Meta connection is a uads action, not Facebook Login: neutral, with Meta's mark */
.mbtn { white-space: nowrap; height: 50px; padding: 0 22px 0 16px; border-radius: 25px; border: 1px solid var(--line-2); background: var(--surface);
  color: var(--ink); font: 600 15.5px Inter, sans-serif; display: inline-flex; align-items: center; gap: 12px; text-decoration: none; cursor: pointer; }
.mbtn:hover { background: var(--surface-2); color: var(--ink); }

.btn { height: 44px; padding: 0 18px; border-radius: 10px; border: 0; font: 600 15px Inter, sans-serif; cursor: pointer; display: inline-flex;
  align-items: center; justify-content: center; gap: 8px; text-decoration: none; white-space: nowrap; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-secondary { border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-weight: 500; }
.btn-secondary:hover { background: var(--surface-2); color: var(--ink); }
.btn-link { background: transparent; color: var(--ink); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; padding: 0 12px; }
.btn-link:hover { background: var(--surface-2); color: var(--ink); }
.btn-danger { border: 1px solid var(--neg); background: transparent; color: var(--neg); }
.btn-danger:hover { background: var(--neg-soft); color: var(--neg); }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--surface-2); color: var(--ink-3); cursor: not-allowed; border: 0; }

.eyebrow { font: 600 12.5px Inter, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.pill { display: inline-flex; white-space: nowrap; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font: 600 12.5px Inter, sans-serif; }
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.pill-pos { background: var(--pos-soft); color: var(--pos); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-neg { background: var(--neg-soft); color: var(--neg); }
.pill-info { background: var(--info-soft); color: var(--info); }
.pill-mute { background: var(--surface-2); color: var(--ink-2); }
.pill-soft { background: var(--accent-soft); color: var(--ink); }

/* the uads logo as an image (the design's static uads-logo) */
.logo-img { display: block; height: auto; }

/* things rise into place as they come into view (site.js marks them "in"); the hero and the
   app's cards rise on load with CSS alone, so nothing that is already on screen flashes */
@keyframes uads-rise { from { opacity: 0; transform: translate3d(0, 24px, 0); } to { opacity: 1; transform: none; } }
.reveal-on [data-reveal] { opacity: 0; transform: translate3d(0, 28px, 0);
  transition: opacity .75s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms), transform .75s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms); }
.reveal-on [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal-on [data-reveal] { opacity: 1; transform: none; } }
