/* Registra landing page. The app's palette and type (facturaGpt src/theme.ts):
   navy hero and closing band, amber calls to action, Space Grotesk headings. */
:root {
  --navy: #0a1628;
  --navy-2: #1e3a5f;
  --amber: #f0b429;
  --amber-hover: #d9a326;
  --ink: #1a1a2e;
  --muted: #5a6478;
  --line: #e2e5ea;
  --tint: #f6f8fa;
  --paper: #ffffff;
  --teal: #2e7d6f;
  --high-bg: #e2f3ea;
  --high: #1f7a4d;
  --medium-bg: #fbf0d9;
  --medium: #8a5700;
  --heading: "Space Grotesk", "Inter", Arial, sans-serif;
  --body: "DM Sans", "Inter", "Segoe UI", Arial, sans-serif;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 16px/1.6 var(--body); color: var(--ink); background: var(--paper); }
h1, h2, h3 { font-family: var(--heading); text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

.wrap { max-width: 1160px; margin: 0 auto; padding-left: var(--gutter); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 640px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 20; background: var(--paper); padding: 8px 12px; }

.icon { flex: none; color: var(--navy-2); }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 22px; border-radius: 6px; font-weight: 600; text-decoration: none; border: 1.5px solid transparent; transition: background-color .15s, border-color .15s, color .15s; }
.button.small { min-height: 38px; padding: 6px 16px; font-size: 15px; }
.button.primary { background: var(--amber); color: var(--ink); }
.button.primary:hover { background: var(--amber-hover); }
.button.outline { border-color: var(--line); color: var(--navy-2); background: var(--paper); }
.button.outline:hover { border-color: var(--navy-2); }
.button.ghost { color: rgba(255,255,255,.75); }
.button.ghost:hover { color: #fff; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo { font: 700 22px var(--heading); text-decoration: none; letter-spacing: -.01em; }
.nav-links { display: flex; gap: 20px; margin-right: auto; }
.nav-links a, .login { text-decoration: none; color: var(--muted); font-weight: 500; }
.nav-links a:hover, .login:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.lang { position: relative; }
.lang summary { display: flex; align-items: center; gap: 4px; cursor: pointer; list-style: none; color: var(--muted); font-weight: 600; font-size: 14px; padding: 6px; border-radius: 6px; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary .icon { width: 20px; height: 20px; color: currentColor; }
.lang ul { position: absolute; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 32px rgba(10,22,40,.12); min-width: 150px; }
.lang li a { display: block; padding: 7px 12px; border-radius: 6px; text-decoration: none; }
.lang li a:hover { background: var(--tint); }
.lang li a[aria-current] { font-weight: 700; }

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 50%, var(--navy) 100%); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 32px 32px; pointer-events: none; }
.hero-inner { position: relative; display: flex; align-items: center; gap: 64px; padding-block: 88px; }
.hero-copy { flex: 1; min-width: 0; }
.overline { font: 600 12px var(--heading); letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: 12px; }
.hero .overline { color: var(--amber); }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.08; letter-spacing: -.035em; margin-bottom: 22px; }
.lede { font-size: 1.1rem; line-height: 1.75; color: rgba(255,255,255,.72); max-width: 520px; margin-bottom: 30px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.note { margin-top: 16px; font-size: 14px; color: rgba(255,255,255,.5); }

.sample { flex: 1; max-width: 430px; margin: 0; background: #fff; color: var(--ink); border-radius: 10px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.sample-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); font: 600 15px var(--heading); }
.tag { font: 600 11px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sample dl { margin: 0; padding: 6px 22px; }
.field { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 0; }
.field + .field { border-top: 1px solid #eef0f3; }
.code { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.field dt { font-size: 12px; color: var(--muted); }
.field dd { margin: 0; font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.level { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 4px; }
.level.high { background: var(--high-bg); color: var(--high); }
.level.medium { background: var(--medium-bg); color: var(--medium); }
.sample figcaption { padding: 12px 22px; background: var(--tint); color: var(--muted); font-size: 13px; }

/* Sections */
.band { padding-block: clamp(64px, 9vw, 104px); }
.band.tinted { background: var(--tint); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.centered { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2rem); line-height: 1.15; letter-spacing: -.025em; }
.section-head p:not(.overline) { margin-top: 14px; color: var(--muted); line-height: 1.75; }

.grid { display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.card.dashed { border-style: dashed; }
.card h3 { font-size: 1.05rem; font-weight: 600; }
.card p, .point p { color: var(--muted); font-size: 15px; line-height: 1.7; }
.step-no { font: 700 2.5rem/1 var(--heading); color: rgba(26,26,46,.09); }
.point { display: flex; gap: 12px; }
.point .icon { color: var(--teal); width: 24px; height: 24px; margin-top: 2px; }
.point h3 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.band .actions { margin-top: 34px; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.plan { border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.plan.popular { border: 2px solid var(--navy-2); }
.plan-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.plan-head h3 { font-size: 1.15rem; }
.badge { font-size: 12px; font-weight: 600; background: var(--navy-2); color: #fff; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.price { font: 700 2rem var(--heading); }
.price span { font: 400 14px var(--body); color: var(--muted); }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; flex: 1; font-size: 14px; }
.ticks li { display: flex; gap: 8px; align-items: flex-start; }
.ticks .icon { width: 18px; height: 18px; color: var(--high); margin-top: 2px; }
.price-notes { margin-top: 32px; text-align: center; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.price-notes .small { color: var(--muted); font-size: 13px; }

/* Closing and footer */
.closing { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding-block: clamp(64px, 9vw, 104px); text-align: center; }
.closing h2 { font-size: clamp(1.6rem, 3vw, 2rem); margin-bottom: 14px; }
.closing p { color: rgba(255,255,255,.68); margin-bottom: 30px; }
.footer { background: var(--navy); color: #fff; padding-block: 48px 32px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; }
.footer .logo { margin-bottom: 6px; }
.muted { opacity: .6; font-size: 15px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: flex-start; }
.footer-links a { text-decoration: none; opacity: .65; font-size: 15px; }
.footer-links a:hover { opacity: 1; text-decoration: underline; }
.credit { margin-top: 36px; font-size: 12px; opacity: .4; }

@media (max-width: 1080px) {
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero-inner { flex-direction: column; align-items: stretch; padding-block: 56px; gap: 40px; }
  .sample { max-width: none; }
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }
  .grid.three, .grid.two { grid-template-columns: 1fr; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .login { display: none; }
  .grid.four, .plans { grid-template-columns: 1fr; }
  .nav-actions { gap: 8px; }
}
