/* Avoryn company site — standalone static page.
   Visual language mirrors risora.io (apps/landing): Nunito, orange brand,
   plum accents, lavender panels, pill buttons, soft card shadows. Tokens
   copied from packages/shared/src/design/tokens.ts. */

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/nunito-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/nunito-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/nunito-latin-800-normal.woff2") format("woff2");
}

:root {
  --color-brand: #ff4300;
  --color-brand-hover: #e63c00;
  --color-plum: #2c2575;
  --color-plum-soft: #6b5cc8;
  --color-surface-card: #fafafa;
  --color-surface-panel: #f2f0fd;
  --color-ink-primary: #1c1c1e;
  --color-ink-tertiary: #3c3c43;
  --color-line: #e5e5ea;
  --color-footer-link: #5c5c5c;
  --color-footer-muted: #a3a3a3;
  --radius-pill: 9999px;
  --shadow-card: 0 2px 10px rgba(0, 0, 0, 0.07);
  --shadow-btn-gloss: inset 0px 4px 12px 0px rgba(255, 255, 255, 0.56);
  --container-site: 1120px;
  --font-sans: "Nunito", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-ink-primary);
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container-site);
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: var(--color-plum-soft);
}

/* ── Header ─────────────────────────────────────────────── */

.site-header {
  padding: 28px 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-ink-primary);
  text-decoration: none;
}

.wordmark .dot {
  color: var(--color-brand);
}

.header-mail {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-ink-tertiary);
  text-decoration: none;
}

.header-mail:hover {
  color: var(--color-ink-primary);
}

/* ── Hero ───────────────────────────────────────────────── */

.hero {
  padding: 96px 0 72px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin: 0 auto;
}

.hero h1 em {
  font-style: normal;
  color: var(--color-brand);
}

.hero p {
  font-size: 19px;
  color: var(--color-ink-tertiary);
  max-width: 52ch;
  margin: 24px auto 0;
}

.btn {
  display: inline-block;
  margin-top: 36px;
  padding: 16px 40px;
  border-radius: var(--radius-pill);
  background: var(--color-brand);
  box-shadow: var(--shadow-btn-gloss);
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.btn:hover {
  background: var(--color-brand-hover);
}

/* ── Panels & sections ─────────────────────────────────── */

section {
  padding: 48px 0;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.panel {
  background: var(--color-surface-panel);
  border-radius: 24px;
  padding: 48px;
}

.panel p {
  font-size: 17px;
  color: var(--color-ink-tertiary);
  max-width: 70ch;
}

.panel p + p {
  margin-top: 14px;
}

/* ── Contact ───────────────────────────────────────────── */

.contact-list {
  list-style: none;
  font-size: 17px;
}

.contact-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--color-line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.contact-list li:last-child {
  border-bottom: none;
}

.contact-list .label {
  font-weight: 800;
  min-width: 140px;
}

.contact-list a {
  color: var(--color-plum);
  font-weight: 600;
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

/* ── Legal article pages ───────────────────────────────── */

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}

.legal h1 {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.legal .updated {
  margin-top: 10px;
  font-size: 14px;
  color: var(--color-footer-muted);
}

.legal h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 40px 0 12px;
}

.legal p,
.legal li {
  font-size: 16px;
  color: var(--color-ink-tertiary);
}

.legal p + p {
  margin-top: 12px;
}

.legal ul {
  margin: 12px 0 0 22px;
}

.legal li + li {
  margin-top: 6px;
}

.back-home {
  display: inline-block;
  margin-bottom: 32px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-footer-link);
  text-decoration: none;
}

.back-home:hover {
  color: var(--color-ink-primary);
}

/* ── Footer ────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--color-line);
  margin-top: 48px;
  padding: 48px 0 56px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 36px;
}

.footer-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-footer-link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-nav a:hover {
  color: var(--color-ink-primary);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  margin-top: 32px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-footer-muted);
}

.footer-bottom .entity {
  max-width: 420px;
}

@media (min-width: 640px) {
  .footer-bottom .entity {
    text-align: right;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 64px 0 48px;
  }
  .panel {
    padding: 28px;
  }
}
