/* ==========================================================================
   Orchard - base design system (inspired by apple.com typography and layout)
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-alt: var(--paper-2);
  --bg-dark: #000000;
  --bg-dark-alt: var(--ink);
  --text: var(--ink);
  --text-2: #6e6e73;
  --text-3: #86868b;
  --text-inv: var(--paper-2);
  --line: #d2d2d7;
  --line-soft: rgba(0, 0, 0, .1);
  --link: #0066cc;
  --link-dark: #2997ff;
  --btn: #0071e3;
  --btn-h: #0077ed;
  --green: #1d8a3a;
  --red: #d70015;
  --orange: #c93400;
  --radius: 18px;
  --radius-lg: 28px;
  --max: 1024px;
  --wide: 1280px;
  --nav-h: 44px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --shadow: 0 4px 24px rgba(0, 0, 0, .08);
  --ease: cubic-bezier(.28, .11, .32, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47059;
  letter-spacing: -.022em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: var(--nav-h);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; font-weight: 600; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; letter-spacing: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(0, 113, 227, .6); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 1000; }
.skip-link:focus { left: 8px; }

.container { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.container--wide { width: min(var(--wide), calc(100% - 48px)); margin: 0 auto; }
.container--narrow { width: min(692px, calc(100% - 48px)); margin: 0 auto; }

/* ------------------------------------------------------------- global nav */
.globalnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--nav-h);
  background: rgba(22, 22, 23, .8);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
.globalnav__inner {
  width: min(1024px, calc(100% - 32px)); height: 100%; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.globalnav__brand {
  display: flex; align-items: center; gap: 7px; color: var(--paper-2); font-size: 15px; font-weight: 600; letter-spacing: -.01em; padding: 0 6px;
}
.globalnav__brand:hover { text-decoration: none; color: #fff; }
.globalnav__brand svg { width: 16px; height: 16px; }
.globalnav__links { display: flex; align-items: center; gap: 0; list-style: none; margin: 0; padding: 0; flex: 1; justify-content: space-between; max-width: 760px; }
.globalnav__links a {
  display: block; padding: 0 9px; line-height: var(--nav-h); font-size: 12px; letter-spacing: -.01em;
  color: rgba(245, 245, 247, .8); transition: color .25s var(--ease);
}
.globalnav__links a:hover, .globalnav__links a.is-active { color: #fff; text-decoration: none; }
/* Products dropdown */
.globalnav__links .has-sub { position: relative; }
.globalnav__links .subtoggle {
  display: flex; align-items: center; gap: 5px; padding: 0 9px; height: var(--nav-h); font: inherit; font-size: 12px; letter-spacing: -.01em;
  color: rgba(245, 245, 247, .8); background: none; border: 0; cursor: pointer; transition: color .25s var(--ease);
}
.globalnav__links .subtoggle:hover, .globalnav__links .subtoggle.is-active, .globalnav__links .has-sub:focus-within .subtoggle, .globalnav__links .has-sub:hover .subtoggle { color: #fff; }
.globalnav__links .subtoggle svg { opacity: .7; }
.globalnav__links .subnav {
  position: absolute; top: calc(var(--nav-h) - 4px); left: 0; min-width: 190px; margin: 0; padding: 8px; list-style: none;
  background: rgba(30, 30, 32, .96); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-radius: 14px; box-shadow: 0 12px 40px rgba(0, 0, 0, .35); opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.globalnav__links .has-sub:hover .subnav, .globalnav__links .has-sub:focus-within .subnav { opacity: 1; visibility: visible; transform: none; }
.globalnav__links .subnav a { line-height: 1.2; padding: 10px 12px; font-size: 14px; border-radius: 8px; color: rgba(245, 245, 247, .9); }
.globalnav__links .subnav a:hover, .globalnav__links .subnav a.is-active { background: rgba(255, 255, 255, .1); color: #fff; }
.globalnav__tools { display: flex; align-items: center; gap: 2px; }
.iconbtn {
  width: 36px; height: 36px; border: 0; background: transparent; border-radius: 50%; color: rgba(245, 245, 247, .85);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; position: relative; padding: 0;
}
.iconbtn:hover { color: #fff; background: rgba(255, 255, 255, .1); text-decoration: none; }
.iconbtn svg { width: 17px; height: 17px; }
.iconbtn .dot { position: absolute; top: 5px; right: 4px; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 8px; background: #ff3b30; color: #fff; font-size: 10px; font-weight: 600; line-height: 15px; text-align: center; }
.globalnav__menu-btn { display: none; }

@media (max-width: 900px) {
  .globalnav__links { display: none; }
  .globalnav__menu-btn { display: inline-flex; }
  .globalnav__inner { width: calc(100% - 20px); }
  .globalnav__brand { flex: 1; }
  body.nav-open { overflow: hidden; }
  body.nav-open .globalnav { background: #161617; height: 100%; bottom: 0; }
  body.nav-open .globalnav__inner { align-items: flex-start; flex-wrap: wrap; height: auto; padding-top: 0; }
  body.nav-open .globalnav__brand, body.nav-open .globalnav__tools { height: var(--nav-h); }
  body.nav-open .globalnav__links {
    display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; order: 5; flex: 0 0 100%; width: 100%; max-width: none; padding: 16px 16px 40px; gap: 0; overflow-y: auto; max-height: calc(100vh - 80px);
  }
  body.nav-open .globalnav__links .subtoggle { display: none; }
  body.nav-open .globalnav__links .has-sub { display: contents; }
  body.nav-open .globalnav__links .subnav { position: static; opacity: 1; visibility: visible; transform: none; background: none; box-shadow: none; padding: 0; min-width: 0; display: contents; }
  body.nav-open .globalnav__links a { font-size: 26px; font-weight: 600; line-height: 1.2; padding: 12px 0; color: var(--paper-2); border-bottom: 1px solid rgba(255,255,255,.12); letter-spacing: -.01em; }
}

/* search overlay */
.searchbox {
  position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 890; background: rgba(250, 250, 252, .96);
  -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid var(--line-soft); padding: 28px 0 36px; display: none;
}
.searchbox.is-open { display: block; animation: drop .28s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.searchbox form { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.searchbox input { flex: 1; border: 0; background: transparent; font-size: 28px; font-weight: 500; outline: none; letter-spacing: -.02em; }
.searchbox__results { margin-top: 18px; display: grid; gap: 2px; max-height: 50vh; overflow: auto; }
.searchbox__results a { display: flex; align-items: center; gap: 12px; padding: 8px 6px; border-radius: 10px; color: var(--text); font-size: 15px; }
.searchbox__results a:hover { background: rgba(0, 0, 0, .05); text-decoration: none; }
.searchbox__results small { color: var(--text-3); margin-left: auto; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.searchbox__results img { width: 44px; height: 36px; object-fit: contain; }
.searchbox__hint { color: var(--text-3); font-size: 13px; margin-top: 14px; }
.backdrop { position: fixed; inset: 0; z-index: 880; background: rgba(0, 0, 0, .3); display: none; }
.backdrop.is-open { display: block; }

/* notifications dropdown */
.notif-panel {
  position: absolute; right: 0; top: 40px; width: 340px; max-width: calc(100vw - 24px); background: #fff; color: var(--text);
  border-radius: 16px; box-shadow: 0 12px 48px rgba(0, 0, 0, .25); display: none; text-align: left; overflow: hidden; letter-spacing: -.01em;
}
.notif-panel.is-open { display: block; }
.notif-panel h4 { padding: 14px 16px 8px; font-size: 14px; }
.notif-panel a { display: block; padding: 10px 16px; font-size: 13px; color: var(--text); border-top: 1px solid var(--line-soft); line-height: 1.35; }
.notif-panel a:hover { background: var(--bg-alt); text-decoration: none; }
.notif-panel a.unread { background: #f0f7ff; }
.notif-panel small { display: block; color: var(--text-3); margin-top: 2px; }
.notif-panel .empty { padding: 18px 16px 22px; color: var(--text-3); font-size: 13px; }
.user-menu { position: absolute; right: 0; top: 40px; min-width: 210px; background: #fff; color: var(--text); border-radius: 14px; box-shadow: 0 12px 48px rgba(0,0,0,.25); padding: 8px; display: none; text-align: left; }
.user-menu.is-open { display: block; }
.user-menu a, .user-menu button { display: block; width: 100%; text-align: left; padding: 9px 12px; border: 0; background: none; border-radius: 8px; color: var(--text); font-size: 14px; cursor: pointer; }
.user-menu a:hover, .user-menu button:hover { background: var(--bg-alt); text-decoration: none; }
.user-menu hr { border: 0; border-top: 1px solid var(--line-soft); margin: 6px 0; }
.user-menu .who { padding: 8px 12px 6px; font-size: 13px; color: var(--text-3); }

/* ------------------------------------------------------------- local nav */
.localnav {
  position: sticky; top: var(--nav-h); z-index: 800; height: 52px;
  background: rgba(250, 250, 252, .8); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .16);
}
.localnav__inner { width: min(1024px, calc(100% - 48px)); margin: 0 auto; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.localnav__title { font-size: 21px; font-weight: 600; letter-spacing: .011em; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.localnav__title:hover { text-decoration: none; }
.localnav__links { display: flex; align-items: center; gap: 22px; font-size: 12px; }
.localnav__links a { color: rgba(0, 0, 0, .8); white-space: nowrap; }
.localnav__links a:hover, .localnav__links a.is-active { color: #000; text-decoration: none; }
@media (max-width: 734px) { .localnav__links a:not(.btn) { display: none; } .localnav__title { font-size: 18px; } }

/* ------------------------------------------------------------- buttons/links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; cursor: pointer;
  background: var(--btn); color: #fff; font-size: 17px; line-height: 1.17648; font-weight: 400; letter-spacing: -.022em;
  padding: 11px 21px; border-radius: 980px; transition: background .2s var(--ease), color .2s var(--ease);
}
.btn:hover { background: var(--btn-h); color: #fff; text-decoration: none; }
.btn--sm { font-size: 12px; padding: 4px 11px; line-height: 1.33; }
.btn--md { font-size: 14px; padding: 8px 16px; }
.btn--ghost { background: transparent; color: var(--link); border-color: var(--link); }
.btn--ghost:hover { background: var(--link); color: #fff; }
.btn--light { background: #fff; color: var(--text); }
.btn--light:hover { background: #f0f0f2; color: var(--text); }
.btn--gray { background: var(--paper-2); color: var(--text); }
.btn--gray:hover { background: #e6dccb; color: var(--text); }
.btn--danger { background: var(--red); }
.btn--danger:hover { background: #b80013; }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.link-more { color: var(--link); font-size: 21px; line-height: 1.19; letter-spacing: .011em; white-space: nowrap; }
.link-more::after { content: " \203A"; }
.link-more:hover { text-decoration: underline; }
.link-more--sm { font-size: 17px; }
.hero--dark .link-more, .tile--dark .link-more, .band--dark .link-more { color: var(--link-dark); }

/* ------------------------------------------------------------- sections */
.section { padding: 100px 0; }
.section--tight { padding: 64px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark, .band--dark { background: #000; color: var(--text-inv); }
.section__head { text-align: center; margin-bottom: 48px; }
.eyebrow { font-size: 17px; font-weight: 600; color: var(--orange); margin-bottom: 6px; letter-spacing: .011em; display: block; }
.headline { font-size: clamp(32px, 5vw, 56px); line-height: 1.07143; font-weight: 600; letter-spacing: -.005em; }
.headline--xl { font-size: clamp(44px, 8vw, 80px); line-height: 1.05; letter-spacing: -.015em; }
.headline--md { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; }
.subhead { font-size: clamp(19px, 2.2vw, 28px); line-height: 1.14; font-weight: 400; color: var(--text); letter-spacing: .007em; margin-top: 12px; }
.muted { color: var(--text-2); }
.small { font-size: 14px; }
.caption { font-size: 12px; color: var(--text-3); letter-spacing: -.01em; }
.center { text-align: center; }

/* hero */
.hero { text-align: center; padding: 72px 0 0; overflow: hidden; background: var(--paper); }
.hero--dark { background: #000; color: var(--text-inv); }
.hero--alt { background: var(--bg-alt); }
.hero__copy { padding: 0 24px; }
.hero__cta { display: flex; gap: 24px; align-items: center; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.hero__media { margin: 36px auto 0; max-width: 980px; }
.hero__media img { margin: 0 auto; width: min(760px, 92%); max-height: 520px; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(0,0,0,.12)); }
.hero--compact { padding: 56px 0 56px; }
.hero--compact .headline { font-size: clamp(36px, 6vw, 64px); }

/* tiles (apple homepage style) */
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); width: min(1280px, calc(100% - 24px)); margin: 12px auto; }
.tiles--3 { grid-template-columns: repeat(3, 1fr); }
.tile {
  position: relative; overflow: hidden; background: var(--bg-alt); border-radius: var(--radius); text-align: center; padding: 52px 24px 0; min-height: 560px;
  display: flex; flex-direction: column; align-items: center; color: var(--text);
}
.tile:hover { text-decoration: none; }
.tile--dark { background: #000; color: var(--text-inv); }
.tile--wide { grid-column: 1 / -1; min-height: 640px; }
.tile__title { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.1; font-weight: 600; letter-spacing: -.003em; }
.tile--wide .tile__title { font-size: clamp(40px, 6vw, 56px); }
.tile__sub { font-size: clamp(18px, 1.8vw, 24px); line-height: 1.17; margin-top: 8px; }
.tile__links { display: flex; gap: 20px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.tile__media { margin-top: auto; padding: 24px 0 0; width: 100%; }
.tile__media img { margin: 0 auto; width: min(480px, 90%); max-height: 340px; object-fit: contain; }
.tile--grad-a { background: linear-gradient(180deg, var(--paper), #eaeaf0); }
.tile--grad-b { background: linear-gradient(180deg, #0d0d12, #1c1c26); color: var(--paper-2); }
@media (max-width: 900px) { .tiles, .tiles--3 { grid-template-columns: 1fr; } .tile { min-height: 460px; } .section { padding: 64px 0; } }

/* ------------------------------------------------------------- cards */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; } }
.card {
  background: #fff; border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; color: var(--text); position: relative;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.section--alt .card { background: #fff; }
.card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow); }
.card--flat { background: var(--bg-alt); }
.section:not(.section--alt) .card--shadow { box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 0 0 1px var(--line-soft); }

.chip, .badge {
  display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; line-height: 1; padding: 5px 9px; border-radius: 980px;
  background: var(--paper-2); color: #424245; letter-spacing: 0; white-space: nowrap;
}
.badge--blue { background: #e1efff; color: #0058b9; }
.badge--green { background: #dff5e5; color: #176b2e; }
.badge--orange { background: #ffeed9; color: #a54700; }
.badge--red { background: #ffe3e3; color: #b3001b; }
.badge--purple { background: #efe4ff; color: #6b2bc4; }
.badge--dark { background: var(--ink); color: #fff; }

/* breadcrumbs */
.crumbs { font-size: 12px; color: var(--text-3); padding: 18px 0 0; letter-spacing: -.01em; }
.crumbs a { color: var(--text-2); }
.crumbs span.sep { margin: 0 6px; }

/* pagination */
.pagination { display: flex; gap: 6px; justify-content: center; margin: 48px 0 0; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 980px; font-size: 15px; background: var(--bg-alt); color: var(--text); }
.pagination a:hover { background: var(--paper-2); text-decoration: none; }
.pagination .is-current { background: var(--text); color: #fff; }
.pagination .is-gap { background: none; }

/* flash */
.flash-wrap { position: fixed; top: calc(var(--nav-h) + 12px); left: 50%; transform: translateX(-50%); z-index: 950; display: grid; gap: 8px; width: min(520px, calc(100% - 24px)); }
.flash { padding: 13px 18px; border-radius: 14px; font-size: 15px; background: var(--ink); color: #fff; box-shadow: 0 8px 30px rgba(0,0,0,.25); animation: drop .35s var(--ease); display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.flash--success { background: #1d6f3b; }
.flash--error { background: #b3001b; }
.flash button { background: none; border: 0; color: inherit; font-size: 20px; cursor: pointer; line-height: 1; opacity: .8; }

/* forms */
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label { font-size: 14px; font-weight: 600; }
.field .hint { font-size: 12px; color: var(--text-3); }
.input, .select, .textarea {
  width: 100%; border: 1px solid #c7c7cc; background: #fff; border-radius: 12px; padding: 12px 14px; font-size: 17px; transition: border-color .2s, box-shadow .2s; outline: none;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--btn); box-shadow: 0 0 0 4px rgba(0, 113, 227, .18); }
.textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2386868b' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.form-error { color: var(--red); font-size: 14px; margin-top: 4px; }
.checkbox { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.checkbox input { width: 18px; height: 18px; accent-color: var(--btn); }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* prose (long text) */
.prose { font-size: 19px; line-height: 1.55; letter-spacing: -.01em; }
.prose p { margin: 0 0 1.15em; }
.prose h2 { font-size: 30px; line-height: 1.15; margin: 1.6em 0 .5em; letter-spacing: -.01em; }
.prose h3 { font-size: 24px; margin: 1.4em 0 .4em; }
.prose h4 { font-size: 19px; margin: 1.2em 0 .3em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--line); color: var(--text-2); font-size: 1.05em; }
.prose img { border-radius: 14px; margin: 1.4em auto; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose code { background: var(--bg-alt); padding: 2px 6px; border-radius: 6px; font-size: .85em; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.prose pre { background: var(--ink); color: var(--paper-2); padding: 16px 18px; border-radius: 14px; overflow: auto; font-size: 14px; line-height: 1.5; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose--sm { font-size: 16px; line-height: 1.5; }
.prose--sm p { margin-bottom: .8em; }

/* ------------------------------------------------------------- footer */
.sitefooter { background: var(--bg-alt); color: var(--text-3); font-size: 12px; line-height: 1.33337; letter-spacing: -.01em; padding: 20px 0 22px; margin-top: 0; }
.sitefooter__inner { width: min(1024px, calc(100% - 48px)); margin: 0 auto; }
.sitefooter__note { padding: 14px 0 12px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.sitefooter__note p { margin: 0 0 .8em; }
.sitefooter__cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; padding: 6px 0 18px; border-bottom: 1px solid var(--line); }
.sitefooter h5 { margin: 0 0 8px; font-size: 12px; font-weight: 600; color: var(--text); }
.sitefooter ul { list-style: none; margin: 0; padding: 0; }
.sitefooter li { margin-bottom: 6px; }
.sitefooter a { color: var(--text-2); }
.sitefooter a:hover { color: var(--text); text-decoration: underline; }
.sitefooter__legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 14px; }
@media (max-width: 734px) { .sitefooter__cols { grid-template-columns: repeat(2, 1fr); } }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } * { animation: none !important; } }

/* error pages */
.errorpage { min-height: 62vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 80px 24px; }
.errorpage .code { font-size: clamp(80px, 18vw, 180px); font-weight: 700; letter-spacing: -.04em; line-height: 1; background: linear-gradient(135deg, #0071e3, #af52de 60%, #ff375f); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* utility */
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.hidden { display: none !important; }

/* ---- Auth pages and inline notices ---- */
.authwrap { min-height: 70vh; display: grid; place-items: center; padding: 64px 22px; background: var(--bg-alt, var(--paper-2)); }
.authbox { width: 100%; max-width: 420px; background: #fff; border-radius: 20px; padding: 40px 36px; box-shadow: 0 2px 24px rgba(0,0,0,.06); }
.authbox h1 { font-size: 32px; letter-spacing: -.02em; margin-bottom: 6px; }
.authbox .muted { margin-bottom: 22px; }
.btn--block { display: block; width: 100%; text-align: center; }
.notice { padding: 12px 14px; border-radius: 12px; font-size: 14px; margin-bottom: 18px; }
.notice--error { background: #fff0f1; color: #b3001b; }
.notice--info { background: #eef6ff; color: #0058b0; }
.notice--success { background: #eefaf1; color: #1d6f3b; }
[hidden] { display: none !important; }
.hero__copy .subhead { max-width: 720px; margin-left: auto; margin-right: auto; font-size: clamp(19px, 2vw, 24px); line-height: 1.3; }
