/* Hyper Technologies shared stylesheet. No framework, no build step. */

@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/assets/fonts/Inter-Regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("/assets/fonts/Inter-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("/assets/fonts/Inter-Bold.woff2") format("woff2"); }

:root {
  --bg: #ffffff;
  --bg-alt: #f4f8f8;
  --card: #ffffff;
  --fg: #0e1726;
  --muted: #475467;
  --line: #e1e7ea;
  --brand: #0f9d8f;
  --brand-text: #0b7a70;
  --on-brand: #ffffff;
  --accent: #ffb020;
  --focus: #0b7a70;
  --radius: 14px;
  --max: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1220;
    --bg-alt: #0e1726;
    --card: #101b2c;
    --fg: #f2f4f7;
    --muted: #a4aebd;
    --line: #1f2c40;
    --brand: #14b8a6;
    --brand-text: #2dd4bf;
    --on-brand: #06201c;
    --focus: #2dd4bf;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--brand-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--fg); color: var(--bg);
  padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: 20px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-block: 14px; }
.brand { display: inline-flex; line-height: 0; }
.brand img { height: 34px; width: auto; display: block; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.nav a { color: var(--fg); text-decoration: none; font-weight: 600; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--brand); }
.nav a[aria-current="page"] { border-bottom-color: var(--accent); }

/* Type */
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-text); }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 60ch; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border-radius: 12px; font-weight: 600; font-size: 16px; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--brand-text); color: var(--on-brand); }
@media (prefers-color-scheme: dark) { .btn-primary { background: var(--brand); } }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--line); color: var(--fg); background: transparent; }
.btn-ghost:hover { border-color: var(--brand); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { padding-block: clamp(48px, 9vw, 104px); position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero-copy { display: grid; gap: 22px; justify-items: start; }
.hero-art { justify-self: end; width: 100%; max-width: 300px; }
.hero-art svg { width: 100%; height: auto; display: block; }
@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-art { display: none; }
}

/* Sections */
section { padding-block: clamp(44px, 7vw, 80px); }
.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { display: grid; gap: 10px; margin-bottom: 32px; max-width: 62ch; }

/* Product cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.card.placeholder { border-style: dashed; background: transparent; }
.tag { justify-self: start; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--fg); }
.tag.quiet { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li { font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 8px; border: 1px solid var(--line); color: var(--muted); }
.card p { color: var(--muted); }
.card a.more { font-weight: 600; }

/* Two column prose */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 40px; align-items: start; }
.split .prose { display: grid; gap: 16px; color: var(--muted); max-width: 62ch; }
@media (max-width: 760px) { .split { grid-template-columns: minmax(0, 1fr); gap: 20px; } }

/* Contact strip */
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.cta .copy { display: grid; gap: 8px; max-width: 56ch; }
.cta p { color: var(--muted); }

/* Forms (contact page) */
form { display: grid; gap: 16px; max-width: 560px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
input, textarea { font: inherit; color: var(--fg); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%; }
textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -9999px; }

/* Prose pages (about, privacy, terms) */
.page { padding-block: clamp(40px, 6vw, 72px); }
.doc { max-width: 70ch; display: grid; gap: 18px; }
.doc h2 { margin-top: 22px; font-size: 1.4rem; }
.doc ul { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.doc p, .doc li { color: var(--muted); }
.doc strong { color: var(--fg); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 36px 84px; font-size: 15px; color: var(--muted); }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px 40px; }
.site-footer img { height: 30px; width: auto; display: block; margin-bottom: 12px; }
.site-footer address { font-style: normal; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 28px; }
.site-footer li a { display: inline-block; padding-block: 12px; }
.site-footer a { color: var(--fg); }
.legal { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; }
@media (max-width: 640px) { .site-footer ul { gap: 0 22px; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Decorative block-H illustration */
.hero-art .b { fill: var(--brand); }
.hero-art .b-acc { fill: var(--accent); }
.hero-art .b-ghost { fill: none; stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 3 3; }

/* Inner page hero */
.page-hero { padding-block: clamp(40px, 6vw, 72px) clamp(8px, 2vw, 16px); }
.page-hero .wrap { display: grid; gap: 14px; justify-items: start; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; counter-reset: step; }
.steps li { counter-increment: step; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: grid; gap: 6px; }
.steps li::before { content: counter(step); width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: #0e1726; font-weight: 700; display: grid; place-items: center; font-size: 15px; }
.steps p { color: var(--muted); }

/* Formats + facts lists */
.formats { margin-top: 32px; display: grid; gap: 12px; }
dl { margin: 0; }
.formats dl, .facts { display: grid; gap: 14px; }
.formats dl > div, .facts > div { display: grid; gap: 2px; }
dt { font-weight: 600; }
dd { margin: 0; color: var(--muted); }
.note { margin-top: 20px; color: var(--muted); font-size: 15px; }
.tag + h2 { margin-top: 4px; }

.steps li { align-content: start; }
@media (max-width: 760px) { .page .split { gap: 40px; } }

/* Larger touch targets for nav links */
.nav a { padding: 10px 0; }

/* Floating message button (links to the contact form, no third-party scripts) */
.fab { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 999px;
  background: var(--brand-text); color: var(--on-brand); font-weight: 600; font-size: 15px; text-decoration: none;
  box-shadow: 0 6px 20px rgba(14, 23, 38, 0.25); z-index: 5; }
@media (prefers-color-scheme: dark) { .fab { background: var(--brand); } }
.fab:hover { filter: brightness(1.08); }
.fab:focus-visible { outline-color: var(--fg); }
@media print { .fab { display: none; } }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 760px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 20px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--brand-text); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 20px 18px; color: var(--muted); }

select { font: inherit; color: var(--fg); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%; min-height: 48px; }
.doc ol { margin: 0; padding-left: 22px; display: grid; gap: 6px; }

.cards.four { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

.plainlist { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--muted); }

.card h2.cat { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }
.cards.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
