/* The site of cortex.axelar.io (spec-platform §4, The site): its layout — the top bar, the bands, the
   hero, the grids, the features, the text pages and the footer —, on css/theme.css and css/ui.css's
   components (buttons, cards, muted text). Phone to desktop, no web font, nothing from another host. The
   pages may be zoomed; the viewer page not. */
/* the site reads a little looser than the pages' components */
body { line-height: 1.6; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.icon.big { width: 30px; height: 30px; color: var(--accent); }
.icon.huge { width: 44px; height: 44px; color: var(--accent); }

.top { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px max(16px, calc((100% - 1120px) / 2)); background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.1rem; color: var(--fg); text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.top nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 0.92rem; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--fg); }
/* the bar's one button, Contact sales: the pages' primary button, at the bar's size */
.top nav a.ad-button { color: var(--accent-fg); font-size: 0.92rem; padding: 6px 14px; }
.top nav a[aria-current="page"]:not(.ad-button) { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; text-decoration-color: var(--accent); }

main section { padding: 72px max(16px, calc((100% - 1120px) / 2)); }
.hero { text-align: center; padding-top: 88px; padding-bottom: 80px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.78rem; color: var(--muted); margin: 0 0 16px; }
h1 { font-size: clamp(2rem, 6vw, 3.6rem); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 20px; }
h1 span { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { max-width: 760px; margin: 0 auto 28px; font-size: 1.15rem; color: var(--muted); }
/* a hero's buttons: the pages' own, larger */
.cta .ad-button { padding: 12px 20px; font-size: 1rem; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.badges { list-style: none; padding: 0; margin: 36px auto 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 900px; }
.badges .icon { color: var(--green); width: 16px; height: 16px; }

.band h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); letter-spacing: -0.01em; margin: 0 0 10px; text-align: center; }
.band .sub { max-width: 720px; margin: 0 auto 36px; text-align: center; color: var(--muted); font-size: 1.05rem; }
.band.alt { background: var(--band); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.ad-card h3 { margin: 12px 0 6px; font-size: 1.05rem; }
.ad-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.ad-card.use { padding: 26px; }
.ad-card.use h3 { font-size: 1.2rem; }

.steps { list-style: none; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; counter-reset: step; }
.steps li { position: relative; counter-increment: step; }
.steps li::after { content: counter(step); position: absolute; top: 18px; right: 20px; font-size: 2rem; font-weight: 700; color: var(--line); }
.steps h3 { margin: 12px 0 6px; font-size: 1.05rem; }
.steps p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.ticks { list-style: none; padding: 0; margin: 0 auto; max-width: 760px; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .icon { color: var(--green); margin-top: 3px; }

.contact { text-align: center; }
.contact .ad-button { margin: 6px 0 18px; font-size: 1.05rem; }

/* the footer, after mega.io's: the brand and a line on the left, then columns of headed groups of links */
footer { padding: 48px max(16px, calc((100% - 1120px) / 2)) 40px; font-size: 0.9rem; color: var(--muted); border-top: 1px solid var(--line); }
footer p { margin: 0; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--fg); text-decoration: underline; }
footer a[aria-current="page"] { color: var(--fg); }
.foot-grid { display: grid; grid-template-columns: minmax(220px, 1.4fr) 3fr; gap: 32px 48px; margin-bottom: 36px; }
.foot-brand { display: grid; gap: 10px; align-content: start; }
.foot-brand .brand { color: var(--fg); margin-bottom: 4px; }
.foot-tag { color: var(--fg); font-weight: 600; }
footer nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.foot-col { display: grid; gap: 8px; align-content: start; }
.foot-h { color: var(--fg); font-weight: 600; margin-top: 18px; }
.foot-col .foot-h:first-child { margin-top: 0; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-note { border-top: 1px solid var(--line); padding-top: 20px; font-size: 0.84rem; }
@media (max-width: 860px) {
  .foot-grid { grid-template-columns: 1fr; }
  footer nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* the licences page's tables, folded: each opens on its components */
details.lic { padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; }
details.lic summary .muted { color: var(--muted); font-weight: 400; }
details.lic .table-wrap { max-height: 520px; overflow: auto; }
details.lic table { display: table; margin: 0 0 12px; }

main:focus { outline: none; }

/* a page's title band */
.page-head { text-align: center; padding-top: 64px; padding-bottom: 40px; }
.page-head h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
.page-head .lead { margin-bottom: 0; }
.more { text-align: center; margin: 28px 0 0; }
.more a { font-weight: 600; text-decoration: none; }

/* text pages: privacy, terms, security, help, the changelog */
.prose { max-width: 820px; margin: 0 auto; }
/* the column keeps its width on any screen: its side padding is fixed, never the bands' growing one */
main section.prose { max-width: 852px; padding: 24px 16px 72px; }
.prose h2 { font-size: 1.5rem; margin: 40px 0 10px; letter-spacing: -0.01em; }
.prose h3 { font-size: 1.1rem; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--fg); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 4px 0; }
.prose .short { padding: 16px 20px; }
.prose table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 0.93rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--muted); font-weight: 600; }
code { background: var(--band); padding: 1px 5px; border-radius: 5px; overflow-wrap: anywhere; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
/* in a text column, the list of sections sits flush with the text, without a list's indent */
.prose .toc { padding-left: 0; }
/* under a centred title, the page's sections are centred too */
.page-head .toc { justify-content: center; margin: 24px auto 0; max-width: 820px; }

/* questions that open */
details { padding: 4px 18px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 600; padding: 12px 0; }
details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 8px; }

/* the app's screens */
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
figure { margin: 0; }
.shot img, .feature img { width: 100%; height: auto; display: block; border-radius: 12px; border: 1px solid var(--line); background: var(--card); }
figcaption { font-size: 0.88rem; color: var(--muted); margin-top: 8px; }
.feature { display: grid; grid-template-columns: 1fr 1.25fr; gap: 32px; align-items: center; margin: 0 0 56px; }
.feature:nth-of-type(even) figure { order: -1; }
.feature h3 { font-size: 1.4rem; margin: 6px 0 8px; }
.feature .kicker { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem; color: var(--accent); margin: 0; }
.feature p { color: var(--muted); }
.feature ul { padding-left: 1.2em; color: var(--fg); }
.limits { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; }

.limits strong { display: block; font-size: 1.3rem; }
.limits span { color: var(--muted); font-size: 0.9rem; }

@media (max-width: 720px) {
  .feature { grid-template-columns: 1fr; gap: 16px; }
  .feature:nth-of-type(even) figure { order: 0; }
  .top { flex-direction: column; align-items: flex-start; }
  .top nav { justify-content: flex-start; gap: 12px; }
  main section { padding-top: 52px; padding-bottom: 52px; }
  .hero { padding-top: 56px; }
}
.ad-card .card-title { margin: 12px 0 6px; font-size: 1.15rem; text-align: left; }
.ad-card p + p { margin-top: 10px; }
