/* Hypazi marketing site (also used by /brand). Restrained: one surface colour, hairlines, colour only where it means something. */
:root {
  --bg: #0b0a10;
  --surface: #13121a;
  --surface-2: #1a1922;
  --card: var(--surface);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f4f3f7;
  --muted: #a3a0b0;
  --faint: #6f6c7c;
  --violet: #8b5cf6;
  --pink: #ec4899;
  --gold: #fbbf24;
  --accent: #a78bfa;
  --font: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --body: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --radius: 14px;
  --wrap: 1180px;
  --gutter: max(20px, calc((100vw - var(--wrap)) / 2));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 40px); margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

h1, h2, h3 { font-family: var(--font); font-weight: 700; letter-spacing: -0.02em; margin: 0; line-height: 1.1; }
h1 { font-size: clamp(40px, 5.4vw, 64px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; }
h2 { font-size: clamp(30px, 3.6vw, 42px); }
h3 { font-size: 20px; letter-spacing: -0.01em; }
.label, .kicker { margin: 0 0 14px; font: 600 13px/1 var(--body); letter-spacing: 0.04em; color: var(--accent); }
.lead { font-size: 19px; color: var(--muted); max-width: 520px; margin: 22px 0 0; }
.sub { color: var(--muted); max-width: 560px; margin: 14px 0 0; }
.sub.small { font-size: 14px; color: var(--faint); }
section.wrap, section.templates-section { padding-top: 112px; } /* beats .wrap's padding shorthand */
.section-head { margin-bottom: 44px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 10px;
  font: 600 15px var(--body); text-decoration: none; cursor: pointer; border: 1px solid transparent; background: var(--text); color: #0b0a10;
  transition: background 0.15s, border-color 0.15s; white-space: nowrap; }
.btn:hover { background: #fff; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.small { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 8px; }
.btn:focus-visible, button:focus-visible, input:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
button.link { background: none; border: 0; padding: 0; color: var(--text); font: 600 14px var(--body); cursor: pointer; }
button.link span { display: inline-block; transition: transform 0.15s; }
button.link:hover span { transform: translateX(3px); }

/* nav */
nav.top { position: sticky; top: 0; z-index: 30; background: rgba(11, 10, 16, 0.82); backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid var(--line); }
nav.top .wrap { display: flex; align-items: center; height: 64px; gap: 32px; }
nav.top .brand img { height: 26px; display: block; }
nav.top .links { display: flex; gap: 26px; margin-left: auto; }
nav.top .links a { text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 500; }
nav.top .links a:hover { color: var(--text); }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 72px; align-items: center; padding-top: 72px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 56px 0 0; border-top: 1px solid var(--line); max-width: 560px; }
.facts div { padding: 18px 20px 0 0; }
.facts div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.facts dt { font: 700 30px/1 var(--font); }
.facts dd { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }

.phone { position: relative; aspect-ratio: 9 / 16; border-radius: 34px; padding: 9px; background: #000;
  box-shadow: 0 0 0 1px var(--line-2), 0 40px 80px -20px rgba(0, 0, 0, 0.7); }
.phone iframe { width: 100%; height: 100%; border: 0; border-radius: 26px; display: block; background: #0a0817; }
.demo .phone { width: 100%; max-width: 360px; margin: 0 auto; }
.chat { margin: 16px auto 0; max-width: 400px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.hint { margin: 0 0 10px; font-size: 14px; color: var(--muted); min-height: 22px; }
.hint b { color: var(--text); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chip { font: 600 13px var(--body); color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.chip:hover { border-color: var(--line-2); }
.chip.hot { border-color: var(--gold); color: var(--gold); }
#chat-form { display: flex; gap: 8px; }
#chat-form input { flex: 1; min-width: 0; height: 40px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); padding: 0 12px; font: 15px var(--body); }
#chat-form button { height: 40px; padding: 0 14px; border-radius: 8px; border: 0; background: var(--text); color: #0b0a10; font: 600 14px var(--body); cursor: pointer; }
.as { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12px; color: var(--faint); }
.as b { color: var(--muted); font-weight: 600; }
.as button { background: none; border: 0; color: var(--muted); font: 600 12px var(--body); cursor: pointer; padding: 0; }
.as button:hover { color: var(--text); }

/* formats */
.formats-section { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 72px; align-items: start; }
.section-head.sticky { position: sticky; top: 112px; margin: 0; }
.formats { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.format { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.format img { width: 148px; aspect-ratio: 1; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.format h3 { font-size: 22px; }
.format .how { margin: 6px 0 10px; color: var(--muted); font-size: 14px; }
.format p { margin: 0 0 12px; color: var(--muted); }
.format p:not(.how) { color: #c9c6d3; max-width: 560px; }
kbd { font: 600 12px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text); background: var(--surface-2); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; }

/* templates: full-bleed carousel */
.tpl-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.tpl-head .section-head { margin-bottom: 32px; }
.arrows { display: flex; gap: 8px; margin-bottom: 36px; }
.arrows button { width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer; display: grid; place-items: center; }
.arrows button:hover:not(:disabled) { background: var(--surface-2); }
.arrows button:disabled { opacity: 0.35; cursor: default; }
.carousel { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding: 4px var(--gutter) 8px; scrollbar-width: none; overscroll-behavior-x: contain; }
.carousel::-webkit-scrollbar { display: none; }
.tpl { flex: none; width: 232px; scroll-snap-align: start; text-align: left; font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.tpl .shot { aspect-ratio: 9 / 14; border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: border-color 0.15s, transform 0.2s; }
.tpl .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.tpl:hover .shot { border-color: var(--line-2); transform: translateY(-2px); }
.tpl.selected .shot { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.tpl .meta { padding: 14px 2px 0; }
.tpl .name { display: flex; align-items: center; gap: 8px; font: 700 17px var(--font); }
.tpl .name i { width: 10px; height: 10px; border-radius: 3px; background: var(--tpl-accent); flex: none; }
.tpl .tag { color: var(--muted); font-size: 14px; line-height: 1.45; margin-top: 4px; }
.tpl .fmts { color: var(--faint); font-size: 13px; margin-top: 8px; }
.progress { height: 2px; background: var(--line); margin-top: 24px; border-radius: 2px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 20%; background: var(--muted); transform-origin: left; transition: transform 0.1s linear; }

/* studio */
.studio { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; margin-top: 56px; padding: 40px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.studio h3 { font-size: 26px; }
.studio .sub { margin-top: 6px; }
fieldset { border: 0; border-top: 1px solid var(--line); margin: 28px 0 0; padding: 22px 0 0; }
legend { float: left; width: 100%; padding: 0; margin-bottom: 14px; font: 600 14px var(--body); }
legend + * { clear: both; }
.opt { color: var(--faint); font-weight: 400; margin-left: 6px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row.three { grid-template-columns: repeat(3, 1fr); }
.row.four { grid-template-columns: repeat(4, 1fr); margin-top: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 13px; color: var(--muted); }
.field input[type='text'], .opt-row input { height: 40px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); padding: 0 12px; font: 15px var(--body); min-width: 0; width: 100%; }
.color { display: flex; align-items: center; gap: 8px; height: 40px; border: 1px solid var(--line-2); border-radius: 8px; padding: 0 8px; background: var(--bg); }
.color input { width: 24px; height: 24px; border: 0; padding: 0; background: none; cursor: pointer; }
.color input::-webkit-color-swatch-wrapper { padding: 0; }
.color input::-webkit-color-swatch { border: 1px solid var(--line-2); border-radius: 5px; }
.color span { font: 13px ui-monospace, Menlo, monospace; color: var(--muted); }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks + .checks { margin-top: 8px; }
.check { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 8px; font-size: 14px; cursor: pointer; user-select: none; }
.check:has(input:checked) { border-color: var(--text); }
.check input { accent-color: var(--text); margin: 0; }
.check .ord { font: 600 11px var(--body); color: var(--faint); }
.opt-row { display: grid; grid-template-columns: 28px 56px minmax(0, 1fr) 36px; gap: 8px; align-items: center; margin-top: 8px; }
.opt-row .k { font: 700 14px var(--font); color: var(--muted); text-align: center; }
.opt-row .o-emoji { text-align: center; padding: 0; }
.o-del { height: 36px; border-radius: 8px; border: 1px solid var(--line); background: none; color: var(--muted); cursor: pointer; font-size: 16px; }
.o-del:disabled { opacity: 0.3; cursor: default; }
.add-opt { margin-top: 10px; background: none; border: 0; color: var(--muted); font: 600 14px var(--body); cursor: pointer; padding: 6px 0; }
.add-opt:hover { color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.preview { position: sticky; top: 96px; align-self: start; text-align: center; }
.preview small { display: block; margin-top: 12px; color: var(--faint); font-size: 13px; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.steps li { border-top: 1px solid var(--line-2); padding-top: 20px; }
.steps .n { display: block; font: 600 13px ui-monospace, Menlo, monospace; color: var(--faint); margin-bottom: 18px; }
.steps p { color: var(--muted); margin: 10px 0 0; font-size: 15px; }

/* audience */
.audience .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.audience .cols > div { background: var(--bg); padding: 32px; }
.ticks { list-style: none; margin: 18px 0 0; padding: 0; }
.ticks li { position: relative; padding-left: 28px; margin-top: 12px; color: #c9c6d3; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: rgba(167, 139, 250, 0.16)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23a78bfa' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.compliance { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; margin-top: 48px; }
.compliance h3 { font-size: 17px; }
.compliance ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 24px; color: var(--muted); font-size: 14px; }
.compliance li { padding-left: 14px; position: relative; }
.compliance li::before { content: ''; position: absolute; left: 0; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--faint); }

/* faq */
.faq-section { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 72px; }
.faq-section .section-head { margin: 0; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 32px 20px 0; position: relative; font: 600 17px var(--body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 4px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { margin: -6px 0 20px; color: var(--muted); max-width: 640px; }

/* cta + footer */
.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 40px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.cta-band .sub { margin-top: 8px; }
footer { margin-top: 112px; border-top: 1px solid var(--line); padding: 32px 0 48px; }
footer .wrap { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
footer img { height: 22px; }
footer .links { display: flex; gap: 20px; }
footer .links a { color: var(--muted); text-decoration: none; font-size: 14px; }
footer .links a:hover { color: var(--text); }
footer span { margin-left: auto; color: var(--faint); font-size: 13px; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 50;
  background: var(--text); color: #0b0a10; font-weight: 600; font-size: 14px; padding: 10px 16px; border-radius: 10px; transition: 0.2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* shared by /brand */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }

/* responsive */
@media (max-width: 1040px) {
  .hero { grid-template-columns: 1fr; gap: 56px; padding-top: 48px; }
  .formats-section, .faq-section { grid-template-columns: 1fr; gap: 0; }
  .section-head.sticky { position: static; margin-bottom: 32px; }
  .faq-section .section-head { margin-bottom: 28px; }
  .studio { grid-template-columns: 1fr; }
  .preview { position: static; max-width: 320px; margin: 0 auto; width: 100%; }
  .steps { grid-template-columns: 1fr 1fr; }
  .compliance { grid-template-columns: 1fr; gap: 16px; }
  .compliance ul { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  section.wrap, section.templates-section { padding-top: 80px; }
  nav.top .links { display: none; }
  nav.top .btn { margin-left: auto; }
  .lead { font-size: 17px; }
  .facts dd { font-size: 13px; }
  .facts div + div { padding-left: 12px; }
  .format { grid-template-columns: 88px minmax(0, 1fr); gap: 16px; }
  .format img { width: 88px; }
  .tpl-head .arrows { display: none; }
  .tpl { width: 64vw; max-width: 240px; }
  .studio { padding: 22px; margin-top: 40px; }
  .row, .row.three { grid-template-columns: 1fr; }
  .row.four { grid-template-columns: 1fr 1fr; }
  .steps, .audience .cols, .compliance ul { grid-template-columns: 1fr; }
  .audience .cols > div { padding: 24px; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 28px; }
  footer span { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
