/* Altoria site. Light and dark from the OS preference, both on Atlassian Design System values. Type: Charlie Display / Charlie Text
   where installed, otherwise Manrope / Inter from Google Fonts, per docs/design.md. */
:root {
  color-scheme: light dark;
  --canvas: #ffffff; --band: #f7f8f9; --card: #ffffff; --border: #091e4224;
  --heading: #101214; --text: #172b4d; --subtle: #44546f; --subtlest: #626f86;
  --blue: #0c66e4; --blue-hover: #0055cc; --on-blue: #ffffff; --info-bg: #e9f2ff; --info-text: #0055cc; --danger-bg: #ffeceb; --danger-text: #ae2e24;
  --shadow: 0 1px 1px rgba(9,30,66,.25), 0 0 1px rgba(9,30,66,.31);
  --display: "Charlie Display", Manrope, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: "Charlie Text", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #101214; --band: #161a1d; --card: #1d2125; --border: #2c333a;
    --heading: #dcdfe4; --text: #b6c2cf; --subtle: #9fadbc; --subtlest: #8c9bab;
    --blue: #579dff; --blue-hover: #85b8ff; --on-blue: #1d2125; --info-bg: #1c2b41; --info-text: #85b8ff; --danger-bg: #42221f; --danger-text: #fd9891;
    --shadow: 0 1px 1px rgba(3,4,4,.5), 0 0 1px rgba(3,4,4,.56);
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--text); font: 400 16px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); color: var(--heading); }
a { color: var(--blue); }
a:hover { color: var(--blue-hover); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }

header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font: 700 14px/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase; color: var(--heading); text-decoration: none; }
.wordmark i { width: 24px; height: 24px; border-radius: 6px; background: var(--heading); position: relative; }
.wordmark i::after { content: ""; position: absolute; left: 7px; top: 8px; width: 7px; height: 7px; border: 2.5px solid var(--canvas); border-right: 0; border-bottom: 0; transform: rotate(45deg); }
nav a { color: var(--text); text-decoration: none; margin-left: 24px; font: 500 14px/1.2 var(--body); }
nav a:hover { color: var(--blue); }

/* Opening: copy left, product visual right */
.hero { padding: 64px 0 88px; }
.hero .wrap { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; }
.hero h1 { margin: 0 0 16px; font-size: clamp(32px, 4vw, 48px); line-height: 1.14; font-weight: 500; letter-spacing: 0.012em; text-wrap: balance; }
.hero p { margin: 0 0 28px; font-size: 20px; line-height: 1.4; color: var(--subtle); max-width: 44ch; }
.btn { display: inline-block; font: 500 16px/1.2 var(--body); padding: 10px 22px; border-radius: 28px; background: transparent; color: var(--heading); text-decoration: none; border: 1px solid var(--heading); }
.btn:hover { color: var(--heading); border-color: var(--blue); }
.btn.primary { background: var(--blue); border-color: var(--blue); color: var(--on-blue); }
.btn.primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); color: var(--on-blue); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 800px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Product visual: a fragment of the Access tab, styled as the app styles it */
.frame { background: var(--card); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; font: 400 13px/1.29 var(--body); }
@media (min-width: 1200px) { .frame { margin-right: -72px; } } /* runs past the container on wide screens, like a product shot */
.frame .filters { display: flex; gap: 8px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--subtlest); font-size: 12px; }
.frame .filters .input { flex: 0 1 220px; border: 1px solid var(--border); border-radius: 3px; padding: 5px 8px; color: var(--subtlest); background: var(--canvas); }
.frame .filters .btn-mini { margin-left: auto; font: 500 12px/1 var(--body); padding: 7px 10px; border-radius: 3px; background: var(--blue); color: var(--on-blue); white-space: nowrap; }
.frame .bar { display: flex; gap: 14px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--subtlest); white-space: nowrap; }
.frame .bar b { color: var(--blue); font-weight: 500; }
.frame .lz { display: inline-block; font-size: 11px; font-weight: 700; line-height: 16px; letter-spacing: .02em; text-transform: uppercase; padding: 0 4px; border-radius: 3px; background: var(--info-bg); color: var(--info-text); }
.frame .lz.danger { background: var(--danger-bg); color: var(--danger-text); }
.frame table { border-collapse: separate; border-spacing: 0; width: 100%; }
.frame th { text-align: left; font-size: 12px; font-weight: 700; color: var(--subtlest); padding: 8px 14px; border-bottom: 2px solid var(--border); }
.frame td { padding: 9px 14px; border-bottom: 1px solid var(--border); color: var(--subtle); }
.frame td:first-child { color: var(--heading); white-space: nowrap; }
.frame tr:last-child td { border-bottom: 0; }
.frame .key { color: var(--blue); font-weight: 500; margin-right: 4px; }

/* Feature band */
.band { background: var(--band); padding: 80px 0; }
.band h2 { margin: 0 0 8px; font-size: 32px; line-height: 1.2; font-weight: 500; }
.band > .wrap > p { margin: 0 0 36px; font-size: 20px; line-height: 1.4; color: var(--subtle); max-width: 50ch; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 28px; }
.card svg { width: 24px; height: 24px; color: var(--blue); margin-bottom: 16px; display: block; }
.card h3 { margin: 0 0 8px; font-size: 20px; line-height: 1.4; font-weight: 500; }
.card p { margin: 0; color: var(--subtle); }

.support { padding: 80px 0 104px; }
.support .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.support h2 { margin: 0 0 6px; font-size: 24px; line-height: 1.25; font-weight: 500; }
.support p { margin: 0; color: var(--subtle); max-width: 50ch; }

/* Documents: docs, privacy, support */
main.doc { max-width: 720px; margin: 0 auto; padding: 56px 32px 104px; }
main.doc h1 { font-size: 40px; line-height: 1.19; font-weight: 500; letter-spacing: 0.012em; margin: 0 0 12px; text-wrap: balance; }
main.doc h2 { font-size: 24px; line-height: 1.25; font-weight: 500; margin: 44px 0 8px; }
main.doc p, main.doc li { max-width: 65ch; }
main.doc .lede { font-size: 20px; line-height: 1.4; color: var(--subtle); margin-bottom: 32px; }
main.doc .updated { color: var(--subtlest); font-size: 13px; line-height: 1.29; }
main.doc dl { display: grid; grid-template-columns: max-content 1fr; gap: 12px 24px; }
main.doc dt { color: var(--subtlest); }
main.doc dd { margin: 0; }
main.doc strong { font-weight: 700; color: var(--heading); }

footer { background: var(--band); padding: 28px 0; color: var(--subtlest); font-size: 14px; line-height: 1.43; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Narrow screens */
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  header .wrap { height: 56px; }
  nav a { margin-left: 16px; }
  .hero { padding: 32px 0 56px; }
  .hero .wrap { gap: 32px; }
  .hero p { font-size: 18px; }
  .frame .bar .lz { display: none; }
  .frame .filters { display: none; }
  /* rows become two-line entries: name, then project · role · via */
  .frame thead { display: none; }
  .frame tr { display: block; position: relative; padding: 10px 14px; border-bottom: 1px solid var(--border); }
  .frame tbody tr:nth-child(n+6) { display: none; } /* five entries on a phone */
  .frame tr:last-child { border-bottom: 0; }
  .frame td { display: inline; padding: 0; border: 0; white-space: normal; }
  .frame td:first-child { display: block; font-weight: 500; margin-bottom: 2px; }
  .frame td:nth-child(2) { position: absolute; right: 14px; top: 10px; } /* lozenge sits on the name line */
  .frame td:nth-child(4)::before, .frame td:nth-child(5)::before { content: " · "; color: var(--subtlest); }
  .band { padding: 48px 0; }
  .band h2 { font-size: 28px; }
  .band > .wrap > p { font-size: 18px; }
  .support { padding: 40px 0 64px; }
  main.doc { padding: 32px 20px 64px; }
  main.doc h1 { font-size: 32px; }
  main.doc dl { grid-template-columns: 1fr; gap: 4px 0; }
  main.doc dt { margin-top: 12px; }
}
