/* TeamUP marketing site. Plain CSS, no build step. Cream and coral in light mode, deep ink in dark mode (same palette as the product). */
@font-face { font-family: 'Manrope'; src: url('fonts/manrope-latin-wght-normal.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Bricolage'; src: url('fonts/bricolage-grotesque-latin-wght-normal.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('fonts/vazirmatn-arabic-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: 'Vazirmatn'; src: url('fonts/vazirmatn-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }

:root {
  --bg: #faf9f7; --bg-2: #f4f1ec; --card: #ffffff; --ink: #211e1a; --ink-2: #4a453e; --muted: #6e6960; --line: #e8e3db; --line-2: #cfc8bc;
  --brand: #ff5c5c; --brand-ink: #c0392f; --brand-soft: #fff0f0; --on-brand: #ffffff; --amber: #f2a14a; --ok: #2f9e6a; --warn: #d98a1a; --danger: #d6453d;
  --shadow: 0 1px 2px rgb(33 30 26 / .06), 0 12px 40px rgb(33 30 26 / .08);
  --radius: 18px;
  --display: 'Bricolage', 'Vazirmatn', system-ui, sans-serif;
  --body: 'Manrope', 'Vazirmatn', system-ui, sans-serif;
  color-scheme: light;
}
:root[data-theme='dark'] {
  --bg: #0e1015; --bg-2: #12151b; --card: #161920; --ink: #f4f4f5; --ink-2: #c9cbd1; --muted: #9a9ea8; --line: #252932; --line-2: #3a3f4b;
  --brand-ink: #ff8a80; --brand-soft: #2a1618; --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 16px 48px rgb(0 0 0 / .45);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0e1015; --bg-2: #12151b; --card: #161920; --ink: #f4f4f5; --ink-2: #c9cbd1; --muted: #9a9ea8; --line: #252932; --line-2: #3a3f4b;
    --brand-ink: #ff8a80; --brand-soft: #2a1618; --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 16px 48px rgb(0 0 0 / .45); color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; letter-spacing: -.02em; margin: 0; font-weight: 700; }
:lang(fa) h1, :lang(fa) h2, :lang(fa) h3, :lang(fa) h4 { letter-spacing: 0; line-height: 1.35; }
p { margin: 0; }
.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -.03em; }
.nav-links { display: flex; gap: 26px; margin-inline-start: 12px; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-size: 15px; font-weight: 600; }
.nav-links a:hover { color: var(--ink); }
.nav-tools { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.chip { display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 99px; background: transparent; color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none; }
.chip:hover { background: var(--bg-2); }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 26px; border-radius: 99px; border: 2px solid transparent; font: inherit; font-weight: 800; font-size: 16px; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 8px 24px color-mix(in srgb, var(--brand) 38%, transparent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px color-mix(in srgb, var(--brand) 45%, transparent); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--bg-2); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }


/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 84px 0 40px; }
.hero::before { content: ''; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px; background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%); pointer-events: none; }
[dir='rtl'] .hero::before { inset: -20% auto auto -10%; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; background: var(--brand-soft); color: var(--brand-ink); font-size: 13.5px; font-weight: 800; letter-spacing: .01em; }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.hero h1 { font-size: clamp(40px, 6vw, 72px); margin: 22px 0 22px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--ink-2); max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--muted); }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- product mock (pure HTML, no images) ---------- */
.mock { position: relative; border: 1px solid var(--line-2); border-radius: 22px; background: var(--card); box-shadow: var(--shadow); overflow: hidden; font-size: 13.5px; line-height: 1.5; text-align: start; }
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.mock-bar b { margin-inline-start: 10px; font-size: 12.5px; color: var(--muted); font-weight: 700; }
.mock-body { padding: 18px; display: grid; gap: 14px; }
.m-row { display: flex; align-items: center; gap: 10px; }
.m-av { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--amber); color: #2a1700; font-weight: 800; font-size: 12px; }
.m-av.agent { background: var(--brand); color: #fff; border-radius: 9px; }
.m-bubble { padding: 10px 14px; border-radius: 14px; background: var(--bg-2); color: var(--ink); max-width: 100%; }
.m-bubble.me { background: var(--ink); color: var(--bg); margin-inline-start: auto; }
.m-steps { display: grid; gap: 7px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.m-step { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--ink-2); }
.m-step .tag { margin-inline-start: auto; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 99px; }
.tag.read { background: var(--bg-2); color: var(--muted); } .tag.write { background: #fff1d9; color: #8a5a00; } .tag.irr { background: #ffe3e0; color: #b3261e; }
:root[data-theme='dark'] .tag.write { background: #3a2c10; color: #f5c46b; } :root[data-theme='dark'] .tag.irr { background: #3d1a18; color: #ff8a80; }
.m-ok { color: var(--ok); font-weight: 900; } .m-wait { color: var(--warn); font-weight: 900; } .m-spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--brand); border-top-color: transparent; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.m-feed { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; }
.m-feed table { border-collapse: collapse; width: 100%; font-size: 12px; } .m-feed th, .m-feed td { text-align: start; padding: 3px 6px; border-bottom: 1px solid var(--line); } .m-feed th { color: var(--muted); font-weight: 700; }
.m-approve { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--warn) 14%, var(--card)); border: 1px solid color-mix(in srgb, var(--warn) 45%, var(--line)); }
.m-btn { margin-inline-start: auto; display: inline-flex; gap: 6px; } .m-btn span { padding: 5px 12px; border-radius: 99px; font-weight: 800; font-size: 12px; } .m-btn .y { background: var(--ok); color: #fff; } .m-btn .n { border: 1px solid var(--line-2); }
.float { animation: float 7s ease-in-out infinite; } @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero-mock { transform: rotate(-1.2deg); } [dir='rtl'] .hero-mock { transform: rotate(1.2deg); }

/* ---------- sections ---------- */
section { padding: 96px 0; }
.sec-head { max-width: 760px; margin-bottom: 52px; }
.kicker { font-size: 13.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: 14px; }
:lang(fa) .kicker { letter-spacing: 0; text-transform: none; }
.sec-head h2 { font-size: clamp(30px, 4.2vw, 48px); margin-bottom: 18px; }
.sec-head p { color: var(--ink-2); font-size: 19px; }
.alt { background: var(--bg-2); border-block: 1px solid var(--line); }

.systems { padding: 28px 0 36px; }
.systems .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 14px; }
.systems small { color: var(--muted); font-weight: 700; margin-inline-end: 6px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1px solid var(--line-2); border-radius: 99px; background: var(--card); font-weight: 700; font-size: 14.5px; }
.pill b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; color: #fff; font-size: 10px; font-weight: 800; }

.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 30px; box-shadow: 0 1px 0 rgb(0 0 0 / .02); }
.card h3 { font-size: 22px; margin: 18px 0 10px; }
.card p { color: var(--ink-2); font-size: 16.5px; }
.ico { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-ink); }
.ico svg { width: 26px; height: 26px; }
@media (max-width: 900px) { .three { grid-template-columns: 1fr; } }

.feature { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; padding: 56px 0; }
.feature:nth-child(even) .copy { order: 2; } .feature:nth-child(even) .mock { order: 1; }
.feature h3 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 16px; }
.feature p { color: var(--ink-2); font-size: 18px; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); font-size: 16.5px; }
.ticks li::before { content: ''; flex: none; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat; }
.soon { display: inline-block; margin-inline-start: 8px; padding: 2px 10px; border-radius: 99px; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--muted); font-size: 12px; font-weight: 800; vertical-align: middle; }
@media (max-width: 980px) { .feature { grid-template-columns: 1fr; gap: 32px; padding: 36px 0; } .feature:nth-child(even) .copy, .feature:nth-child(even) .mock { order: initial; } }

/* trust ladder */
.ladder { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 36px; }
.rung { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--card); position: relative; overflow: hidden; }
.rung::before { content: ''; position: absolute; inset-inline: 0; top: 0; height: 5px; background: var(--c); }
.rung h4 { font-size: 19px; margin: 8px 0 8px; } .rung p { color: var(--ink-2); font-size: 15.5px; }
.rung small { font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--c); font-size: 12px; }
:lang(fa) .rung small { letter-spacing: 0; text-transform: none; }
.r1 { --c: #8a857b; } .r2 { --c: #3b82f6; } .r3 { --c: var(--warn); } .r4 { --c: var(--danger); }
@media (max-width: 980px) { .ladder { grid-template-columns: 1fr 1fr; } } @media (max-width: 560px) { .ladder { grid-template-columns: 1fr; } }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; } @media (max-width: 860px) { .two { grid-template-columns: 1fr; } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; text-align: center; } @media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; } }
.stat b { display: block; font-family: var(--display); font-size: 40px; color: var(--brand); line-height: 1.1; } .stat span { color: var(--ink-2); font-size: 15.5px; }

.faq { max-width: 820px; } .faq details { border-bottom: 1px solid var(--line); padding: 20px 0; } .faq summary { cursor: pointer; font-family: var(--display); font-size: 20px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; } .faq summary::after { content: '+'; font-size: 26px; line-height: 1; color: var(--brand); } .faq details[open] summary::after { content: '–'; }
.faq p { margin-top: 12px; color: var(--ink-2); }

.band { margin: 0 24px 24px; border-radius: 28px; padding: 76px 24px; text-align: center; color: #fff; background: radial-gradient(900px 400px at 80% 0%, #ff8a80, transparent 60%), linear-gradient(135deg, #ff5c5c, #c0392f); }
.band h2 { font-size: clamp(30px, 4.5vw, 52px); margin-bottom: 16px; } .band p { max-width: 38em; margin: 0 auto 30px; font-size: 19px; opacity: .95; }
.band .btn { background: #fff; color: #c0392f; box-shadow: 0 12px 30px rgb(0 0 0 / .2); } .band .btn:hover { transform: translateY(-2px); }
footer { padding: 40px 0 56px; color: var(--muted); font-size: 14.5px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; } footer a { text-decoration: none; } footer a:hover { color: var(--ink); }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; } .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } .float, .m-spin { animation: none; } html { scroll-behavior: auto; } }

section[id], div[id] { scroll-margin-top: 84px; }


/* ---- pages added with the generator (build.mjs) ---- */
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--bg); border-radius: 8px; text-decoration: none; font-weight: 700; }
.skip:focus { top: 12px; }
.nav-links a[aria-current='page'] { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 6px; }
.page-head { padding: 72px 0 36px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(32px, 4.4vw, 52px); max-width: 20em; margin: 6px 0 16px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 22px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .grid3, .grid2 { grid-template-columns: 1fr; } }
.card h3 { font-size: 20px; margin: 14px 0 8px; } .card h3 a { text-decoration: none; } .card h3 a:hover { text-decoration: underline; }
.card p { color: var(--ink-2); font-size: 16px; }
.more { margin-top: 28px; font-weight: 800; } .more a { color: var(--brand-ink); }
.fine { margin-top: 14px; font-size: 14px; color: var(--muted); }
.note { border: 1px solid var(--line-2); border-radius: var(--radius); padding: 20px 24px; background: var(--card); }
.note.warn { border-color: var(--warn); background: color-mix(in srgb, var(--warn) 10%, var(--card)); margin-bottom: 28px; }
.ph { background: #fff2a8; color: #3a2c00; padding: 1px 6px; border-radius: 4px; font-weight: 700; }
.prose { max-width: 760px; } .prose h2 { font-size: 24px; margin: 34px 0 10px; } .prose p { margin-bottom: 14px; color: var(--ink-2); }
.shot { margin: 0; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
.shot img { width: 100%; height: auto; }
.shot-empty { aspect-ratio: 16 / 10; display: grid; place-items: center; text-align: center; padding: 24px; background: repeating-linear-gradient(135deg, var(--bg-2), var(--bg-2) 14px, var(--card) 14px, var(--card) 28px); border-style: dashed; box-shadow: none; }
.shot-empty div { display: grid; gap: 6px; } .shot-empty b { font-family: var(--display); font-size: 18px; } .shot-empty span { color: var(--muted); font-size: 14px; }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; } .tabs a { padding: 8px 18px; border: 1px solid var(--line-2); border-radius: 99px; text-decoration: none; font-weight: 800; } .tabs a:hover { background: var(--brand-soft); }
.role { padding: 28px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; } .role h3 { font-size: 26px; margin-bottom: 6px; } .role > p { color: var(--ink-2); }
.price { font-family: var(--display); font-weight: 800; font-size: 22px; margin: 6px 0 10px; color: var(--brand-ink); }
.table-wrap { overflow-x: auto; margin-top: 8px; } .plan-table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); }
.plan-table th, .plan-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: center; } .plan-table th[scope='row'], .plan-table thead th:first-child { text-align: start; } .plan-table thead th { background: var(--bg-2); }
.form { display: grid; gap: 16px; } .form label { display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
.form input, .form select, .form textarea { font: inherit; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--card); color: var(--ink); }
.form button { justify-self: start; }
.band h2 { color: #fff; } .band .btn { background: #fff; color: #7a1d14; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print {
  .nav, footer nav, .band, .skip, #theme, .cta-row, .tabs, .form button { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; } .card, .rung, .note, .shot { box-shadow: none; break-inside: avoid; border-color: #999; }
  a { text-decoration: none; } main a[href^='http']::after { content: ' (' attr(href) ')'; font-size: 10pt; }
  .rv { opacity: 1; transform: none; } .page-head { background: none; padding: 12pt 0; }
}

/* The waitlist form's trap field: out of sight for people (and screen readers), still there for bots that fill every input. */
.trap { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* About us: the owner's logo on a white card, so its teal reads in both themes. */
.owner { display: flex; align-items: flex-start; justify-content: center; }
.owner a { display: block; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; max-width: 360px; }
.owner img { display: block; width: 100%; height: auto; }

/* Blog: a cover image on every post and on its card in the list. */
.cover { margin: 8px 0 32px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); }
.cover img { display: block; width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; }
article > .wrap > .prose { margin-inline: auto; }
.post-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.post-card .cover-link { display: block; border-bottom: 1px solid var(--line); }
.post-card .cover-link img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .35s ease; }
.post-card:hover .cover-link img { transform: scale(1.03); }
.post-card .pc-body { padding: 24px 28px 28px; }
@media (prefers-reduced-motion: reduce) { .post-card:hover .cover-link img { transform: none; } }

/* Product tour: the logo story. Without .run (or with reduced motion) the final frame shows; .run plays it once, the Replay button plays it again. */
.stage-wrap { display: grid; justify-items: center; gap: 14px; margin-bottom: 36px; }
.stage { width: 100%; max-width: 860px; background: #0e1015; border-radius: 24px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.logo-anim { display: block; width: 100%; height: auto; }
.logo-anim .word { font-family: var(--display); font-weight: 800; font-size: 54px; fill: #f4f4f5; letter-spacing: -.02em; direction: ltr; }
.logo-anim .tag { font-size: 20px; fill: #9a9ea8; }
.logo-anim .lab { font-size: 22px; font-weight: 700; fill: #c9cbd1; }
.logo-anim .cam, .logo-anim .hexg, .logo-anim .eyes, .logo-anim .hum, .logo-anim .agt, .logo-anim .lab { transform-origin: 400px 250px; }
.logo-anim .lab { transform-origin: initial; }
.logo-story { margin-inline: auto; text-align: start; }
.logo-anim.run .cam { animation: la-cam 9s cubic-bezier(.65, 0, .35, 1) both; }
.logo-anim.run .hum { animation: la-hum 9s cubic-bezier(.65, 0, .35, 1) both; }
.logo-anim.run .agt { animation: la-agt 9s cubic-bezier(.65, 0, .35, 1) both; }
.logo-anim.run .lab { animation: la-lab 9s ease both; }
.logo-anim.run .hexg { animation: la-hex 9s cubic-bezier(.2, .8, .2, 1) both; }
.logo-anim.run .eyes { animation: la-blink 9s ease both; }
.logo-anim.run .word { animation: la-word 9s ease both; }
.logo-anim.run .tag { animation: la-tag 9s ease both; }
.logo-anim.run .glow { animation: la-glow 9s ease both; }
@keyframes la-cam { 0%, 14% { transform: scale(1.7); } 58%, 100% { transform: scale(1); } }
@keyframes la-hum { 0%, 10% { transform: translateX(-190px); } 40%, 100% { transform: translateX(0); } }
@keyframes la-agt { 0%, 10% { transform: translateX(190px); } 40%, 100% { transform: translateX(0); } }
@keyframes la-lab { 0% { opacity: 0; } 8%, 36% { opacity: 1; } 46%, 100% { opacity: 0; } }
@keyframes la-hex { 0%, 46% { opacity: 0; transform: scale(.8); } 64%, 100% { opacity: 1; transform: scale(1); } }
@keyframes la-blink { 0%, 70% { transform: scaleY(1); } 73% { transform: scaleY(.08); } 76%, 88% { transform: scaleY(1); } 91% { transform: scaleY(.08); } 94%, 100% { transform: scaleY(1); } }
@keyframes la-word { 0%, 66% { opacity: 0; transform: translateY(18px); } 80%, 100% { opacity: 1; transform: translateY(0); } }
@keyframes la-tag { 0%, 76% { opacity: 0; } 90%, 100% { opacity: 1; } }
@keyframes la-glow { 0%, 40% { opacity: 0; } 70%, 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .logo-anim.run * { animation: none !important; } }
.replay { justify-self: center; }
.tour-steps { display: grid; gap: 28px; }
.tour-step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 24px; align-items: center; }
.tour-step > div { display: grid; gap: 6px; align-content: center; }
.tour-step .n { display: none; }
.tour-step h3 { margin: 0; font-size: 22px; } .tour-step p { margin: 0; color: var(--ink-2); font-size: 16.5px; }
.tour-step:nth-child(even) > div { order: 2; }
@media (max-width: 860px) { .tour-step { grid-template-columns: 1fr; } .tour-step:nth-child(even) > div { order: 0; } }

/* Footer: brand, three link groups, and the owner line. */
footer { border-top: 1px solid var(--line); margin-top: 24px; padding: 48px 0 28px; }
footer .f-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; align-items: start; justify-content: stretch; }
footer .f-brand { display: grid; gap: 12px; justify-items: start; }
footer .f-brand .logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 22px; direction: ltr; }
footer .f-brand p { margin: 0; color: var(--ink-2); max-width: 26em; line-height: 1.7; }
footer .f-actions { display: flex; gap: 10px; flex-wrap: wrap; }
footer .f-col h2 { font-family: var(--display); font-size: 15px; margin: 0 0 12px; color: var(--ink); }
footer .f-col nav { display: grid; gap: 10px; }
footer .f-col a { color: var(--muted); } footer .f-col a:hover { color: var(--ink); }
footer .f-bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13.5px; }
@media (max-width: 860px) { footer .f-top { grid-template-columns: 1fr 1fr; } footer .f-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { footer .f-top { grid-template-columns: 1fr; } }

/* The infinity: once the rings stick together, a bead runs along them in a figure of eight, for as long as the page is open. */
.logo-anim .dot { fill: #0e1015; opacity: 0; offset-path: path("M400 250 A60 60 0 0 1 280 250 A60 60 0 0 1 400 250 A60 60 0 0 0 520 250 A60 60 0 0 0 400 250"); offset-rotate: 0deg; }
.logo-anim .d1 { fill-opacity: .95; } .logo-anim .d2 { fill-opacity: .55; } .logo-anim .d3 { fill-opacity: .3; }
.logo-anim.run .dot { animation: la-dot-in 9s ease both, la-dot-run 3.4s linear infinite; }
.logo-anim.run .d2 { animation-delay: 0s, .14s; } .logo-anim.run .d3 { animation-delay: 0s, .28s; }
@keyframes la-dot-in { 0%, 72% { opacity: 0; } 80%, 100% { opacity: 1; } }
@keyframes la-dot-run { from { offset-distance: 0%; } to { offset-distance: 100%; } }

/* Blog pagination */
.pager { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; margin-top: 36px; }
.pager .chip.cur { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---------- header on phones and tablets: a menu button opens one panel ---------- */
.nav-panel { display: flex; align-items: center; gap: 28px; flex: 1; min-width: 0; }
.menu-btn { display: none; margin-inline-start: auto; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 12px; background: transparent; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0; }
.menu-btn span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.menu-btn[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1080px) {
  .nav .wrap { gap: 12px; }
  .menu-btn { display: inline-flex; }
  .nav-panel { display: none; position: absolute; inset-inline: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 18px; padding: 18px 16px 22px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 18px 40px rgb(0 0 0 / .18); max-height: calc(100vh - 68px); overflow-y: auto; }
  .nav-panel.open { display: flex; }
  .nav-links { flex-direction: column; gap: 4px; margin: 0; }
  .nav-links a { display: block; padding: 12px 6px; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav-tools { margin: 0; flex-wrap: wrap; gap: 10px; }
  .nav-tools .btn { flex: 1 1 100%; justify-content: center; height: 48px; }
}
/* never let the page get wider than the screen */
html, body { max-width: 100%; overflow-x: clip; }
img, video { max-width: 100%; }
.logo svg { flex: none; }
@media (max-width: 560px) {
  .wrap { width: min(1160px, 100% - 32px); }
  h1 { overflow-wrap: anywhere; }
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .cta-row { flex-wrap: wrap; }
  .btn { padding: 0 20px; }
}

/* Forms and grids never push the page wider than the screen (narrow phones, 320 px). */
.form, .form label, .two > *, .grid2 > *, .grid3 > * { min-width: 0; }
.form input, .form select, .form textarea { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }
.btn, .chip { max-width: 100%; text-align: center; }
@media (max-width: 380px) { .btn { height: auto; min-height: 48px; padding-block: 10px; line-height: 1.35; } .btn-sm { min-height: 40px; } }
.mock-body > *, .m-row > *, .m-bubble, .m-steps { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.m-row { flex-wrap: wrap; }
