/* Diral public site (diral.mx, before launch). Static, no JavaScript.
   Same dark look as the app: tokens, Fraunces / Plus Jakarta Sans / IBM Plex Mono
   (self-hosted, OFL), square corners, green only for "verificado". */

@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/fraunces.woff2') format('woff2-variations'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/plus-jakarta-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/plus-jakarta-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/plus-jakarta-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); }

:root {
  --bg: #09090B; --surface: #121214; --raised: #18181B; --border: #27272A; --border-strong: #3F3F46;
  --fg: #F4F4F5; --muted: #A1A1AA; --ink: #FAFAFA; --verified: #10B981;
  --display: 'Fraunces', Georgia, serif;
  --body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--ink); }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--ink); color: var(--bg); padding: 8px 12px; }

/* Logo */
.logo { display: block; fill: currentColor; overflow: visible; }
.logo .arc { fill: none; stroke: currentColor; stroke-width: 12; }
.logo .bar, .logo .l { transform-box: fill-box; }
.logo .bar { transform-origin: 50% 100%; }

/* Header */
header.top { position: sticky; top: 0; z-index: 10; background: rgba(9, 9, 11, 0.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.top .wrap { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.top .home { color: var(--ink); }
.top .logo { height: 20px; width: auto; }
.top nav { display: flex; gap: 24px; font-size: 14px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--fg); }
@media (max-width: 640px) { .top nav { display: none; } }

/* Hero */
.hero { padding-block: 96px 88px; display: grid; gap: 28px; }
.hero .badge { display: inline-flex; align-items: center; gap: 10px; }
.hero .badge::before { content: ""; width: 2px; height: 14px; background: var(--verified); }
.hero h1 { font-size: clamp(40px, 7vw, 76px); line-height: 1.02; max-width: 15ch; }
.hero .lede { color: var(--muted); max-width: 56ch; font-size: 18px; }
.hero .status { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.pill { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid var(--border); padding: 8px 12px; color: var(--fg); }
.btn { display: inline-block; background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 600; font-size: 15px; padding: 13px 22px; }
.hero-logo { width: min(64vw, 300px); color: var(--ink); }

/* The hero logo is built once on load: CSS transform only, nothing hidden for slow devices. */
@media (prefers-reduced-motion: no-preference) {
  .hero-logo .bar { animation: barUp 0.6s var(--ease) both; }
  .hero-logo .arc { stroke-dasharray: 100; animation: draw 0.8s var(--ease) 0.2s both; }
  .hero-logo .l { animation: rise 0.8s var(--ease) calc(0.45s + var(--i) * 0.05s) both; }
}
@keyframes barUp { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes rise { from { transform: translate(calc(var(--i) * 14px), 60px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Sections */
section.block { border-top: 1px solid var(--border); padding-block: 80px; scroll-margin-top: 72px; }
.sec-head { display: grid; gap: 12px; margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(30px, 4.5vw, 44px); line-height: 1.08; }
.sec-head p { color: var(--muted); max-width: 60ch; }

.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); padding: 32px; display: grid; gap: 18px; align-content: start; min-width: 0; }
.card h3 { font-size: 26px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; color: var(--muted); }
.steps li::before { counter-increment: s; content: counter(s, decimal-leading-zero); font-family: var(--mono); font-size: 12px; color: var(--fg); padding-top: 4px; }
.steps strong { color: var(--fg); font-weight: 600; }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.plan { border: 1px solid var(--border); padding: 32px; display: grid; gap: 22px; align-content: start; min-width: 0; }
.plan.pro { background: var(--surface); border-color: var(--border-strong); }
.plan .name { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.plan .name h3 { font-size: 28px; }
.price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price .amt { font-family: var(--display); font-size: 52px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.price .per { color: var(--muted); font-size: 14px; }
.feat { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.feat li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; font-size: 15px; }
.feat li::before { content: ""; width: 10px; height: 1px; background: var(--muted); margin-top: 12px; }
.feat .soon { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-left: 6px; }
.plans-note { margin-top: 20px; color: var(--muted); font-size: 14px; display: grid; gap: 6px; }

.contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 760px; }
.contact > div { border-top: 1px solid var(--border); padding-top: 18px; display: grid; gap: 8px; min-width: 0; }
.contact .k { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.contact .v { font-size: 18px; overflow-wrap: anywhere; }

@media (max-width: 800px) {
  .two, .plans, .contact { grid-template-columns: minmax(0, 1fr); }
}

/* Footer */
footer.foot { border-top: 1px solid var(--border); background: var(--surface); padding-block: 48px 40px; }
.foot .row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.foot .home { color: var(--ink); }
.foot .logo { height: 22px; width: auto; }
.foot .legal-links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; }
.foot .legal-links a { color: var(--muted); text-decoration: none; }
.foot .legal-links a:hover { color: var(--fg); }
.foot .entity { margin-top: 28px; color: var(--muted); font-size: 14px; }
.foot .copy { margin-top: 18px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.sig { display: block; width: 100%; height: auto; margin-top: 40px; fill: var(--ink); }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding-block: 56px 80px; }
.legal h1 { font-size: clamp(30px, 5vw, 42px); line-height: 1.1; margin-top: 8px; }
.legal .meta { margin-top: 12px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.legal .draft { margin-top: 24px; border: 1px solid var(--border); background: var(--surface); padding: 16px; font-size: 14px; }
.legal .toc { margin-top: 32px; border-top: 1px solid var(--border); padding-top: 24px; }
.legal .toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.legal .toc a { color: var(--muted); text-decoration: none; }
.legal .toc a:hover { color: var(--fg); }
.legal .body { margin-top: 40px; display: grid; gap: 40px; color: var(--muted); font-size: 15px; line-height: 1.7; overflow-wrap: anywhere; }
.legal .body section { scroll-margin-top: 88px; display: grid; gap: 16px; }
.legal .body h2 { font-size: 21px; color: var(--fg); }
.legal .body h3 { font-family: var(--body); font-size: 15px; font-weight: 600; color: var(--fg); padding-top: 8px; }
.legal .blocks { display: grid; gap: 16px; }
.legal .body strong { color: var(--fg); font-weight: 600; }
.legal .body p.strong { color: var(--fg); font-weight: 500; }
.legal .body ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.legal .body ul ul { list-style: circle; margin-top: 8px; gap: 4px; }
.legal .body a { color: var(--fg); text-underline-offset: 4px; }
.legal .arco { border: 1px solid var(--border); background: var(--surface); padding: 20px; display: grid; gap: 10px; color: var(--fg); }
.legal .arco a { justify-self: start; }

/* 404 */
.notfound { padding-block: 120px; display: grid; gap: 20px; justify-items: start; }
.notfound h1 { font-size: clamp(36px, 6vw, 56px); }
.notfound p { color: var(--muted); }
