/* Shared base for the Atria demo sites. Each demo overrides the tokens in its own stylesheet. */
@font-face {
  font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/fonts/instrument-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/fonts/instrument-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces"; font-style: normal; font-weight: 600 700; font-display: swap;
  src: url("/fonts/fraunces-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces"; font-style: normal; font-weight: 600 700; font-display: swap;
  src: url("/fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  /* The Atria demo bar looks the same on every demo */
  --demo-bar-bg: #04173a;
  --demo-bar-ink: #eaf2ff;
  --demo-bar-link: #5cc6ff;
  --demo-shadow: 0 12px 30px -10px rgba(4, 23, 58, 0.5);
  /* Defaults; each demo overrides these */
  --bg: #ffffff;
  --surface: #ffffff;
  --ink: #1d1d1f;
  --muted: #5b5b60;
  --line: #e3e3e6;
  --field-line: var(--muted);
  --accent: #1d4ed8;
  --on-accent: #ffffff;
  --band: #1d1d1f;
  --on-band: #ffffff;
  --error: #b3261e;
  --font-head: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 10px;
  --radius-lg: 18px;
  --radius-field: 10px;
  --gutter: clamp(16px, 4vw, 40px);
  --wrap: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 1.0625rem/1.6 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-family: var(--font-head); font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 1.6rem + 3vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { position: absolute; }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100; padding: 10px 16px;
  border-radius: var(--radius-field); background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Demo bar */
.demo-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 16px;
  padding: 0 var(--gutter); background: var(--demo-bar-bg); color: var(--demo-bar-ink);
  font: 600 0.85rem/1.4 "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
}
.demo-bar p { padding-block: 8px; }
.demo-bar a { color: var(--demo-bar-link); }
.demo-back { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.demo-back:hover { text-decoration: underline; }
.demo-bar :focus-visible { outline-color: var(--demo-bar-link); }
.demo-langs { display: flex; margin-left: auto; }
.demo-langs a {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px;
  color: var(--demo-bar-ink); font-size: 0.8rem; letter-spacing: 0.04em; text-decoration: none;
}
.demo-langs a:hover { text-decoration: underline; }
.demo-langs a[aria-current="page"] { color: var(--demo-bar-link); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
/* The bar sits at the very top of the page, so the ring is drawn inside the links to keep its top edge. */
.demo-langs a:focus-visible, .demo-back:focus-visible { outline-offset: -3px; }

/* Layout */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(48px, 8vw, 96px); }
.section-head { display: grid; gap: 10px; max-width: 42rem; margin-bottom: 32px; }
.kicker { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.lead { font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); color: var(--muted); }

/* Header */
.site-head { background: var(--bg); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; min-height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-right: auto; font: 700 1.25rem/1.1 var(--font-head); text-decoration: none; }
.logo-mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); font-size: 1rem;
}
.nav { display: flex; gap: 22px; font-size: 0.97rem; }
.nav a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.nav a:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.7em 1.3em; border: 1px solid transparent; border-radius: var(--radius);
  background: var(--accent); color: var(--on-accent); font: 600 1rem/1.2 var(--font-body);
  text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { padding-block: clamp(32px, 6vw, 72px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 18px; justify-items: start; }
.hero-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-lg); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.card { display: grid; align-content: start; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { display: grid; gap: 6px; padding: 16px 18px 20px; }
.card-body p { color: var(--muted); font-size: 0.96rem; }
.price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.card-body .price { color: var(--ink); font-size: 1rem; }

/* Band */
.band { background: var(--band); color: var(--on-band); }
.band :focus-visible { outline-color: var(--on-band); }
.facts { display: flex; flex-wrap: wrap; gap: 14px 40px; padding-block: 24px; }
.facts div { display: grid; }
.facts small { font-size: 0.85rem; opacity: 0.8; }

/* Forms */
.form { display: grid; gap: 16px; max-width: 680px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; align-content: start; }
.field label, .field legend { font-weight: 600; font-size: 0.92rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--field-line); border-radius: var(--radius-field);
  background: var(--surface); color: var(--ink); font: inherit;
}
.field textarea { min-height: 110px; resize: vertical; }
.field label small { font-weight: 400; color: var(--muted); }
.field-error { color: var(--error); font-size: 0.88rem; font-weight: 600; }
[aria-invalid="true"] { border-color: var(--error) !important; }
.form-note { font-size: 0.9rem; color: var(--muted); }

/* Footer */
.site-foot { padding-block: 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; }
.site-foot .wrap { display: grid; gap: 6px; }
.site-foot a { color: var(--ink); }

/* Demo notice */
.demo-notice {
  position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60; transform: translateX(-50%);
  width: min(520px, calc(100% - 32px)); padding: 14px 18px; border-radius: 12px;
  background: var(--demo-bar-bg); color: var(--demo-bar-ink); box-shadow: var(--demo-shadow);
  font: 500 0.95rem/1.45 "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
}
/* Kept in the accessibility tree while idle, so screen readers announce the text when it arrives */
.demo-notice:not(.is-shown) { width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; box-shadow: none; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-media { order: -1; }
}
@media (max-width: 760px) {
  .site-head .wrap { padding-block: 8px; }
  /* Keeps the logo and the header button on one row; the nav is the row below. */
  .site-head .wrap { column-gap: 12px; }
  .site-head .btn { padding-inline: 1em; }
  .nav { order: 3; width: 100%; gap: 18px; overflow-x: auto; scrollbar-width: none; }
  /* Labels keep their text width; the strip scrolls instead of squeezing them. */
  .nav a { flex-shrink: 0; }
  .nav a:focus-visible { outline-offset: -3px; }
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
