/* MergeCanvas: the HextaUI system in plain CSS. Neutral surfaces, 1px hairlines,
   shadows only on floating things, concentric radii, tight type scale. Indigo accent. */
:root {
  --background: #ffffff;
  --foreground: #18181b;
  --muted: #f4f4f5;
  --muted-foreground: #52525b;
  --border: #e4e4e7;
  --input: #d4d4d8;
  --primary: #4338ca;
  --primary-hover: #3730a3;
  --primary-foreground: #ffffff;
  --primary-soft: #eef2ff;
  --ring: #4338ca;
  --focus-ring: color-mix(in oklab, var(--foreground) 40%, transparent);
  --radius: 0.625rem;
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --hairline: 1px;
  --success: oklch(0.527 0.154 150);
  --info: oklch(0.546 0.215 262);
  --warning: oklch(0.555 0.163 49);
  --destructive: #b91c1c;
  --dot: #d4d4d8;
  --text-xs: 0.6875rem;
  --text-sm: 0.8125rem;
  --text-base: 0.9375rem;
  --text-lg: 1.0625rem;
  --text-xl: 1.1875rem;
  --text-2xl: 1.4375rem;
  --text-3xl: 1.8125rem;
  --text-4xl: 2.1875rem;
  --text-5xl: 2.9375rem;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--background); }
body {
  margin: 0; background: var(--background); color: var(--foreground);
  font: 400 var(--text-base)/1.6 var(--font); overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; box-shadow: 0 0 0 5px var(--focus-ring); border-radius: var(--radius-sm); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.6em; font-weight: 600; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl)); max-width: 22ch; }
h2 { font-size: clamp(var(--text-xl), 2.6vw, var(--text-2xl)); }
h3 { font-size: var(--text-base); }
p { margin: 0 0 1em; }
code, pre { font-family: var(--mono); font-size: var(--text-sm); }
code { background: var(--muted); padding: 0.1em 0.35em; border-radius: var(--radius-sm); }
pre { background: var(--muted); border: var(--hairline) solid var(--border); padding: 1rem; border-radius: var(--radius-lg); overflow-x: auto; }
pre code { background: none; padding: 0; }
.small { font-size: var(--text-sm); color: var(--muted-foreground); }

/* Layout */
.site-head, .wide, .prose, .site-foot { width: 100%; max-width: 68rem; margin: 0 auto; padding-inline: clamp(1rem, 4vw, 2.5rem); }
.site-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-block: 0.9rem; border-bottom: var(--hairline) solid var(--border); max-width: none; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: var(--text-lg); color: var(--foreground); text-decoration: none; }
.brand-mark { width: 0.9rem; height: 1.1rem; border-radius: 2px; background: var(--background); border: var(--hairline) solid var(--foreground); box-shadow: 3px 3px 0 var(--primary); }
.head-nav { display: flex; gap: 0.75rem; align-items: center; font-size: var(--text-sm); }
.head-nav a { color: var(--foreground); text-decoration: none; font-weight: 500; }
.wide { padding-block: 1rem 3rem; }
.prose { max-width: 44rem; padding-block: 2rem 3rem; }
.prose table, .sheet { border-collapse: collapse; margin: 0 0 1em; font-size: var(--text-sm); }
.prose th, .prose td, .sheet th, .sheet td { border: var(--hairline) solid var(--border); padding: 0.4rem 0.65rem; text-align: left; }
.prose th, .sheet th { background: var(--muted); font-weight: 500; }

/* Buttons (HextaUI Button: h-9, radius-md, text-sm, medium) */
.button, .head-cta, .buy, .signup button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.25rem; padding: 0 0.875rem;
  border: 0; border-radius: var(--radius-md); background: var(--primary); color: var(--primary-foreground);
  font: 500 var(--text-sm)/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.2s cubic-bezier(0.23, 1, 0.32, 1), transform 0.1s; touch-action: manipulation;
}
.head-nav .head-cta { color: var(--primary-foreground); }
.button:hover, .head-cta:hover, .buy:hover, .signup button:hover { background: var(--primary-hover); }
.button:active, .buy:active, .signup button:active { transform: translateY(1px); }
.button-outline { background: var(--background); color: var(--foreground); box-shadow: inset 0 0 0 var(--hairline) var(--border); }
.button-outline:hover { background: var(--muted); }
@media (pointer: coarse) { .button, .head-cta, .buy, .signup button { min-height: 2.75rem; } }

/* Badge (HextaUI Badge: 18px tall, text-xs, outline with a status dot) */
.badge { display: inline-flex; align-items: center; gap: 0.35rem; height: 1.25rem; padding: 0 0.5rem; border-radius: 999px;
  font-size: var(--text-xs); font-weight: 500; color: var(--foreground); background: var(--background); box-shadow: inset 0 0 0 var(--hairline) var(--border); }
.badge::before { content: ""; width: 0.375rem; height: 0.375rem; border-radius: 50%; background: var(--badge-accent, var(--muted-foreground)); }
.badge-info { --badge-accent: var(--info); }
.badge-success { --badge-accent: var(--success); }
.badge-warning { --badge-accent: var(--warning); }

/* Hero: the canvas feel, a dot grid */
.hero { margin-block: 1rem; padding: clamp(1.5rem, 5vw, 3.5rem) clamp(1rem, 4vw, 2.5rem); border-radius: var(--radius-xl);
  border: var(--hairline) solid var(--border);
  background-color: var(--background); background-image: radial-gradient(var(--dot) 1px, transparent 1px); background-size: 20px 20px; }
.eyebrow { margin-bottom: 1rem; }
.sub { font-size: var(--text-lg); max-width: 40rem; color: var(--muted-foreground); }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* Card (HextaUI Card: hairline ring, radius-xl, no shadow) */
.band, .card { background: var(--background); border: var(--hairline) solid color-mix(in oklab, var(--foreground) 10%, transparent); border-radius: var(--radius-xl); }
.band { padding: clamp(1rem, 3vw, 1.5rem); margin-block: 1rem; }
.card { padding: 1rem; border-radius: var(--radius-lg); }
.callout { background: var(--muted); }
.cards { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.card h3 { margin-bottom: 0.35rem; }
.card p { font-size: var(--text-sm); color: var(--muted-foreground); margin: 0; }
.card.pro { border-color: var(--primary); box-shadow: inset 0 0 0 var(--hairline) var(--primary); }
.card .price, .price { font-size: var(--text-xl); font-weight: 600; color: var(--foreground); margin-bottom: 0.4rem; }
.offer { margin-block: 1rem; }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.steps li { counter-increment: s; }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; margin-bottom: 0.5rem;
  border-radius: var(--radius-sm); background: var(--primary-soft); color: var(--primary); font-size: var(--text-sm); font-weight: 600; }
.steps p { font-size: var(--text-sm); color: var(--muted-foreground); }

/* Sample: one row in, one certificate out */
.sample { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.sheet caption { text-align: left; margin-bottom: 0.35rem; }
.sheet .hit td { background: var(--primary-soft); }
.arrow { font-size: var(--text-2xl); color: var(--primary); }
.cert { flex: 1 1 15rem; max-width: 26rem; text-align: center; padding: 1.25rem; background: var(--background);
  border: var(--hairline) solid var(--border); border-radius: var(--radius-lg); box-shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 8px 24px -8px rgb(0 0 0 / 0.12); }
.cert-kicker { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-foreground); }
.cert-name { font-size: var(--text-3xl); font-weight: 600; margin-bottom: 0.3rem; }
.cert-mark { font-size: var(--text-xs); color: var(--muted-foreground); margin: 1rem 0 0; }

/* FAQ (HextaUI Accordion: hairline dividers, chevron) */
.faq { border-top: var(--hairline) solid var(--border); }
.faq details { border-bottom: var(--hairline) solid var(--border); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.85rem 0; cursor: pointer; font-weight: 500; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 0.45rem; height: 0.45rem; border-right: 1.5px solid var(--muted-foreground); border-bottom: 1.5px solid var(--muted-foreground); transform: rotate(45deg); transition: transform 0.2s; flex: none; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { color: var(--muted-foreground); font-size: var(--text-sm); }

/* Signup form (HextaUI Input: h-9, hairline inset ring, focus ring) */
.signup label { display: block; font-size: var(--text-sm); font-weight: 500; margin-bottom: 0.4rem; }
.signup .row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.6rem; }
.signup input[type="email"] { flex: 1 1 14rem; min-height: 2.25rem; padding: 0 0.75rem; font: 400 max(16px, 1rem) var(--font);
  border: 0; border-radius: var(--radius-md); box-shadow: inset 0 0 0 var(--hairline) var(--input); background: var(--background); color: var(--foreground); }
.signup input[type="email"]:focus-visible { outline: none; box-shadow: inset 0 0 0 var(--hairline) var(--ring), 0 0 0 3px var(--focus-ring); }
.notice { padding: 0.6rem 0.8rem; border-radius: var(--radius-md); font-size: var(--text-sm); font-weight: 500; border: var(--hairline) solid var(--border); }
.notice.ok { color: var(--success); background: color-mix(in oklab, var(--success) 8%, white); }
.notice.error { color: var(--destructive); background: color-mix(in oklab, var(--destructive) 8%, white); }

.app-head { padding-block: 1rem 0.5rem; }
.app-head h1 { font-size: var(--text-2xl); }
#tool-root { min-height: 20rem; }

.site-foot { padding-block: 2rem 3rem; border-top: var(--hairline) solid var(--border); color: var(--muted-foreground); font-size: var(--text-sm); }
.foot-nav { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }
.foot-nav a { color: var(--foreground); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
