/* Dyadic: the shared palette (identity.css), the site's header and footer, and the pages they frame. */
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; line-height: 1.55; }
a { color: inherit; }
.dy-main { flex: 1; width: min(100%, 68rem); margin: 0 auto; padding: clamp(2.5rem, 8vw, 6rem) var(--gutter) 3rem; }
.dy-hero h1 { font-size: clamp(2.4rem, 7vw, 4.4rem); line-height: 1.05; margin: 0 0 1rem; letter-spacing: -.02em; }
.dy-hero p { max-width: 40rem; color: var(--muted); font-size: 1.12rem; margin: 0; }
.dy-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }
.dy-button { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1.15rem; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); text-decoration: none; font-weight: 600; }
.dy-button:hover { border-color: var(--accent); }
.dy-button--primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.dy-button .dy-icon { width: 1.2rem; height: 1.2rem; margin-right: .55rem; fill: currentColor; flex: none; }
.dy-button--discord:hover { border-color: #5865f2; }
/* Signing in or linking with another company: its official mark, in its colors, at the start of the button. */
.dy-button--provider { justify-content: center; gap: .65rem; }
.dy-button .dy-icon--brand, .dy-provider-head .dy-icon--brand { width: 1.15rem; height: 1.15rem; margin: 0; fill: initial; }
.dy-provider-head { display: flex; align-items: center; gap: .55rem; }
.dy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); gap: 1rem; margin-top: clamp(2.5rem, 7vw, 4.5rem); }
.dy-grid article { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem 1.25rem; }
.dy-grid h2 { margin: 0 0 .4rem; font-size: 1.05rem; }
.dy-grid p { margin: 0; color: var(--muted); font-size: .95rem; }
.dy-grid p a, .dy-note a { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }
.dy-note { margin: 1.5rem 0 0; color: var(--muted); font-size: .85rem; line-height: 1.5; }
/* The shared header and footer, stamped into each page by tools/site_shell.py
   and worked by dyadic.js. One menu and one link group per section. */
.dy-shell, .dy-shell-foot { color: var(--ink); font-size: 14px; line-height: 1.45; }
.dy-shell a, .dy-shell-foot a { color: inherit; text-decoration: none; }
.dy-shell button { font: inherit; color: inherit; cursor: pointer; }
.dy-shell svg, .dy-shell-foot svg { display: block; width: 18px; height: 18px; fill: currentColor; flex: none; }
.dy-shell--cyan { --dy-accent: var(--cyan); }
.dy-shell--violet { --dy-accent: var(--violet); }
.dy-shell--green { --dy-accent: var(--green); }

.dy-shell { position: relative; z-index: 150; display: flex; align-items: center; gap: clamp(14px, 2.2vw, 32px); min-height: 68px; padding: calc(10px + env(safe-area-inset-top, 0px)) var(--gutter) 10px; border-bottom: 1px solid var(--line); background: var(--paper); }
.dy-shell::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, var(--cyan), var(--violet) 40%, var(--coral) 70%, transparent); opacity: .55; pointer-events: none; }
.dy-shell__brand { display: grid; place-items: center; flex: none; border-radius: var(--r-xs); }
.dy-shell__brand img { display: block; width: 34px; height: 34px; transition: transform .2s var(--ease-out); }
.dy-shell__brand:hover img { transform: scale(1.06); }
.dy-shell__nav { display: flex; align-items: stretch; gap: 2px; }
.dy-shell__item { position: relative; display: flex; }
.dy-shell__trigger { position: relative; display: flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 9px 0 12px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--muted); font-weight: 600; transition: color .15s ease, background .15s ease; }
.dy-shell .dy-shell__trigger svg { width: 16px; height: 16px; opacity: .65; transition: transform .2s ease; }
.dy-shell__trigger::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--dy-accent); transform: scaleX(0); transform-origin: left; transition: transform .2s cubic-bezier(.2, .8, .2, 1); }
.dy-shell__item.is-open > .dy-shell__trigger, .dy-shell__item.is-current > .dy-shell__trigger { color: var(--ink); }
.dy-shell__item.is-open > .dy-shell__trigger { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.dy-shell__item.is-open > .dy-shell__trigger::after, .dy-shell__item.is-current > .dy-shell__trigger::after { transform: scaleX(1); }
.dy-shell__item.is-open > .dy-shell__trigger svg { transform: rotate(180deg); }
.dy-shell__panel { position: absolute; top: calc(100% + 10px); left: 0; z-index: 2; display: none; width: 330px; padding: 8px; border: 1px solid var(--line); border-top: 2px solid var(--dy-accent); border-radius: var(--r-lg); background: var(--panel); box-shadow: var(--shadow-3); animation: dy-shell-rise .16s ease-out; }
.dy-shell__panel::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.dy-shell__item.is-open > .dy-shell__panel { display: grid; }
@media (hover: hover) {
  .dy-shell__item:hover > .dy-shell__trigger { color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }
  .dy-shell__item:hover > .dy-shell__trigger::after { transform: scaleX(1); }
  .dy-shell__item:hover > .dy-shell__panel { display: grid; }
}
.dy-shell__panel-link { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; padding: 10px; border-radius: var(--r-sm); }
.dy-shell__panel-number { padding-top: 2px; color: var(--dy-accent); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.dy-shell__panel-text { display: grid; gap: 2px; }
.dy-shell__panel-text strong { color: var(--ink); font-weight: 650; }
.dy-shell__panel-text small { color: var(--muted); font-size: 12.5px; }
.dy-shell__panel-link:hover, .dy-shell__panel-link:focus-visible { background: var(--panel-strong); outline: 0; }
.dy-shell__panel-link:hover strong, .dy-shell__panel-link:focus-visible strong, .dy-shell__panel-link[aria-current="page"] strong { color: var(--dy-accent); }
.dy-shell__tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.dy-shell__social { display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--r-sm); color: var(--muted); transition: color .15s ease, background .15s ease; }
.dy-shell__social:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent); }
.dy-shell__sign-in { padding: 9px 6px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.dy-shell__sign-in:hover { color: var(--ink); }
.dy-shell__avatar { position: relative; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; overflow: hidden; border-radius: 50%; background: linear-gradient(var(--panel-strong), var(--panel-strong)) padding-box, var(--accent-gradient) border-box; border: 1.5px solid transparent; color: var(--ink); font-weight: 800; }
.dy-shell__avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dy-shell__cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 0 16px; border-radius: var(--r-md); background: var(--accent); color: var(--accent-ink) !important; font-weight: 650; white-space: nowrap; transition: background .15s ease, transform .15s ease; }
.dy-shell__cta:hover { background: var(--accent-hover); transform: translateY(-1px); }
.dy-shell__menu { display: none; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel); }
.dy-shell .dy-shell__menu-close, .dy-shell__menu[aria-expanded="true"] .dy-shell__menu-open { display: none; }
.dy-shell__menu[aria-expanded="true"] .dy-shell__menu-close { display: block; }
.dy-shell__sheet { position: fixed; top: var(--dy-shell-bottom, 68px); right: 0; bottom: 0; left: 0; z-index: 99; display: flex; flex-direction: column; gap: 24px; overflow: auto; overscroll-behavior: contain; padding: 22px var(--gutter) calc(40px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--paper); animation: dy-shell-rise .18s ease-out; }
.dy-shell__sheet[hidden] { display: none; }
.dy-shell__sheet-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 20px; }
.dy-shell__sheet-group { display: grid; align-content: start; gap: 2px; }
.dy-shell__sheet-group h2, .dy-shell-foot__group h2 { margin: 0 0 6px; color: var(--ink); font-size: 11px; font-weight: 800; line-height: 1.3; letter-spacing: .12em; text-transform: uppercase; }
.dy-shell__sheet-group h2 { padding-bottom: 8px; border-bottom: 2px solid var(--dy-accent); }
.dy-shell__sheet-link { display: flex; align-items: center; min-height: 46px; padding: 0 4px; color: var(--muted); font-size: 16px; }
.dy-shell__sheet-link:hover, .dy-shell__sheet-link[aria-current="page"] { color: var(--dy-accent); }
.dy-shell__sheet-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.dy-shell__sheet-foot .dy-shell__social { margin-left: auto; }
html.dy-locked { overflow: hidden; }

.dy-shell-foot { padding: 0 var(--gutter) env(safe-area-inset-bottom, 0px); border-top: 1px solid var(--line); background: var(--paper); }
.dy-shell-foot__inner { width: min(100%, 1280px); margin: 0 auto; }
.dy-shell-foot__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 40px 0 32px; }
.dy-shell-foot__brand { display: grid; justify-items: start; gap: 14px; }
.dy-shell-foot__brand img { display: block; width: 140px; height: auto; }
/* The wordmark's letters are white; on Light they're ink (assets/wordmark-ink.png), the mark keeps its colors. */
.dy-shell-foot__brand .dy-wordmark--ink, :root[data-theme="light"] .dy-shell-foot__brand .dy-wordmark:not(.dy-wordmark--ink) { display: none; }
:root[data-theme="light"] .dy-shell-foot__brand .dy-wordmark--ink { display: block; }
.dy-shell-foot__brand p { max-width: 34ch; margin: 0; color: var(--muted); font: italic 400 18px/1.4 var(--font-display); }
.dy-shell-foot__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.dy-shell-foot__cta p { margin: 0; color: var(--ink); font: 400 22px/1.2 var(--font-display); letter-spacing: -.02em; }
.dy-shell-foot__map { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; padding: 32px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dy-shell-foot__group h2 { margin-bottom: 14px; padding-left: 10px; border-left: 2px solid var(--dy-accent); }
.dy-shell-foot__group ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.dy-shell-foot__group a { display: inline-flex; align-items: center; min-height: 32px; padding-left: 12px; color: var(--muted); transition: color .15s ease; }
.dy-shell-foot__group a:hover, .dy-shell-foot__group a[aria-current="page"] { color: var(--dy-accent); }
.dy-shell-foot__base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 20px 0 28px; color: var(--dim); font-size: 13px; }
.dy-shell-foot__base p { margin: 0; }
.dy-shell-foot__up { display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; color: var(--muted); }
.dy-shell-foot .dy-shell-foot__up svg { width: 15px; height: 15px; }
.dy-shell-foot__up:hover { color: var(--ink); }

@keyframes dy-shell-rise { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .dy-shell__nav, .dy-shell__tools > .dy-shell__social, .dy-shell__tools > .dy-shell__sign-in { display: none; }
  .dy-shell__menu { display: grid; }
}
@media (max-width: 760px) {
  .dy-shell { min-height: 60px; }
  .dy-shell-foot__map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .dy-shell__sheet-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .dy-shell *, .dy-shell-foot * { animation: none !important; transition: none !important; } }
@media print { .dy-shell, .dy-shell-foot { display: none !important; } }
/* Notes, link buttons and the "Confirm it's you" dialog (passkey.js), on every page. */
.dy-note { min-height: 1.3rem; font-size: .9rem; color: var(--muted); margin: 0; }
.dy-note--error { color: var(--red); }
.dy-note--ok { color: var(--green); }
.dy-link-button { background: none; border: 0; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; padding: .2rem; }
.dy-link-button--danger { color: var(--red); }
.dy-dialog { width: min(92vw, 24rem); border: 1px solid var(--line); border-radius: 16px; background: var(--panel); color: var(--ink); padding: 1.3rem; display: grid; gap: .8rem; }
.dy-dialog:not([open]) { display: none; }
.dy-dialog::backdrop { background: rgb(4 7 14 / .7); }
.dy-dialog h2 { margin: 0; font-size: 1.1rem; }
.dy-dialog p { margin: 0; color: var(--muted); font-size: .92rem; }
.dy-dialog .dy-button { width: 100%; justify-content: center; cursor: pointer; font: inherit; font-weight: 600; color: var(--accent-ink); }

/* The Workspace page: no site header above it. */
body.workspace-page { --header-h: 0px; }

/* download page */
.dy-get { max-width: 44rem; }
.dy-get__hero { display: flex; gap: 1.4rem; align-items: center; margin: 0 0 2rem; flex-wrap: wrap; }
.dy-get__hero img { width: 84px; height: 84px; border-radius: 22px; box-shadow: 0 10px 30px rgb(0 0 0 / .35); }
.dy-get h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.1rem, 6vw, 3.1rem); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 .35rem; }
.dy-get__lead { color: var(--muted); margin: 0; line-height: 1.6; }
.dy-get__badge { display: inline-block; margin-left: .5rem; padding: .1rem .55rem; border-radius: 999px; font: 700 .72rem/1.6 var(--font-ui); letter-spacing: .04em; vertical-align: .55em;
background: var(--accent); color: var(--accent-ink); }
.dy-get__card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 1.4rem; display: grid; gap: 1rem; margin-bottom: 1.4rem; }
.dy-get__download { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-height: 3.2rem; padding: 0 1.5rem; border-radius: 999px;
background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none; font-size: 1.02rem; justify-self: start; }
.dy-get__download:hover { filter: brightness(1.08); }
.dy-get__download:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.dy-get__facts { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.2rem; margin: 0; font-size: .9rem; }
.dy-get__facts dt { color: var(--dim); }
.dy-get__facts dd { margin: 0; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.dy-get__facts code { font: .82rem/1.5 var(--font-mono); color: var(--muted); }
.dy-get h2 { font-size: 1.1rem; margin: 2rem 0 .7rem; }
.dy-get ol, .dy-get ul { color: var(--muted); line-height: 1.7; padding-left: 1.3rem; margin: 0; }
.dy-get li { margin: .3rem 0; }
.dy-get p { color: var(--muted); line-height: 1.7; }
.dy-get a:not(.dy-get__download) { color: var(--accent); }

/* privacy and terms */
.dy-legal { max-width: 46rem; }
.dy-legal h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 .8rem; }
.dy-legal .dy-updated { color: var(--dim); margin: 0 0 2.2rem; }
.dy-legal h2 { font-size: 1.15rem; margin: 2.4rem 0 .6rem; }
.dy-legal p, .dy-legal li { color: var(--muted); line-height: 1.7; }
.dy-legal ul { padding-left: 1.2rem; }
.dy-legal li { margin: .35rem 0; }
.dy-legal strong { color: var(--ink); font-weight: 600; }
.dy-legal a { color: var(--accent); }

/* Row proportions for the account forms. */
.dy-grow-3 { flex: 3; }
.dy-grow-1 { flex: 1; }
:is(.dy-badge, .dy-get__badge, .dev-badge, .dev-chip) { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; }
:is(.dy-badge, .dy-get__badge, .dev-badge, .dev-chip) > :is(span, code) { display: block; }
/* In the Android app (web/app-nav.js sets .is-app): no website navigation. The site's header and
   footer and the Workspace's "Dyadic" button lead to website pages; the app has its own way around. */
.is-app :is(.dy-shell, .dy-shell-foot, .ws-nav__foot, [data-web-only]) { display: none !important; }
