/* GrepoGOD storefront. One typeface, generous text sizes and plain cards.
   The interactive V1 panel lives in its own frame (v1-component); only the page belongs here. */
@font-face { font-family: Outfit; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/shop/assets/wiki-outfit.ttf") format("truetype"); }

:root {
  --abyss: #08121d;
  --deep-sea: #0c1a28;
  --surface: #0f1e2e;
  --surface-2: #14283b;
  --line: rgba(150, 190, 215, 0.16);
  --line-strong: rgba(150, 190, 215, 0.3);
  --cyan: #6fd3c4;
  --ice: #eef4f8;
  --muted: #a9bccb;
  --gold: #f0c674;
  --font: Outfit, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --display: var(--font);
  --body: var(--font);
  --utility: var(--font);
  --page: min(72rem, calc(100% - 3rem));
  --radius: 1rem;
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; scroll-padding-top: 5.5rem; background: var(--abyss); }
body { margin: 0; overflow-x: clip; color: var(--ice); background: var(--abyss); font: 400 1.0625rem/1.65 var(--font); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(60rem 34rem at 50% -8rem, rgba(111, 211, 196, 0.13), transparent 62%), radial-gradient(44rem 30rem at 100% 20%, rgba(240, 198, 116, 0.06), transparent 60%); }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
main { position: relative; z-index: 1; }
img { display: block; }

.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 100; padding: 0.75rem 1rem; color: var(--abyss); background: var(--cyan); border-radius: 0.5rem; font-weight: 700; }
.skip-link:focus { top: 1rem; }
button:focus-visible, select:focus-visible, a:focus-visible, summary:focus-visible, [role="button"]:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 0.4rem; }
.website-identity, .organization-identity, .software-identity { display: none; }

/* ---- Top navigation ---- */
.site-nav { position: sticky; top: 0; z-index: 90; min-height: 4.25rem; padding: 0.6rem max(1.5rem, calc((100% - 72rem) / 2)); display: flex; align-items: center; gap: 0.5rem; background: rgba(8, 18, 29, 0.88); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.site-brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ice); font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; text-decoration: none; }
.site-brand img { width: 2.1rem; height: 2.1rem; }
.site-links { margin: 0 auto 0 1.5rem; display: flex; flex-wrap: wrap; gap: 0.15rem; }
.site-links a { padding: 0.55rem 0.85rem; color: var(--muted); border-radius: 0.55rem; font-size: 1rem; font-weight: 500; text-decoration: none; transition: color 150ms ease, background-color 150ms ease; }
.site-links a:hover { color: var(--ice); background: var(--surface); }
.email-shortcut, .discord-shortcut { min-height: 2.75rem; padding: 0 0.95rem; display: inline-flex; align-items: center; gap: 0.4rem; color: var(--ice); border: 1px solid var(--line-strong); border-radius: 0.6rem; font-size: 0.95rem; font-weight: 500; text-decoration: none; transition: border-color 150ms ease, background-color 150ms ease; }
.email-shortcut:hover, .discord-shortcut:hover { border-color: var(--cyan); background: var(--surface); }
.language-switcher { position: relative; color: var(--ice); font-size: 0.95rem; font-weight: 500; }
.language-switcher summary { min-width: 4.6rem; min-height: 2.75rem; padding: 0 0.8rem; display: flex; align-items: center; justify-content: center; gap: 0.45rem; list-style: none; cursor: pointer; border: 1px solid var(--line-strong); border-radius: 0.6rem; }
.language-switcher summary::-webkit-details-marker { display: none; }
.language-switcher summary::after { content: ""; width: 0.45rem; height: 0.45rem; margin: -0.2rem 0 0 0.15rem; border-right: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: rotate(45deg); }
.language-switcher nav { max-height: min(70vh, 32rem); overflow-y: auto; overscroll-behavior: contain; position: absolute; top: calc(100% + 0.4rem); right: 0; width: 11.5rem; padding: 0.4rem; display: grid; gap: 0.15rem; background: var(--deep-sea); border: 1px solid var(--line-strong); border-radius: 0.75rem; box-shadow: 0 1rem 2.8rem rgba(0, 0, 0, 0.5); }
.language-switcher nav a { padding: 0.65rem 0.75rem; display: flex; align-items: center; gap: 0.6rem; color: var(--muted); border-radius: 0.5rem; text-decoration: none; }
.language-switcher nav a:hover, .language-switcher nav a:focus-visible, .language-switcher nav a[aria-current="page"] { color: var(--ice); background: var(--surface-2); }

/* ---- Hero + live demo ---- */
.showcase-layout { width: var(--page); margin: 0 auto; padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem); display: flex; flex-direction: column; gap: clamp(3rem, 6vw, 4.5rem); }
.desktop-rail { order: 1; max-width: 50rem; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; text-align: center; }
.desktop-rail-intro > p { margin-bottom: 1.1rem; color: var(--gold); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.12em; }
.desktop-rail-intro h1 { font-size: clamp(3.4rem, 9vw, 6rem); font-weight: 800; line-height: 1; letter-spacing: -0.035em; }
.desktop-rail-intro h1 .product-subtitle { display: block; margin-top: 0.9rem; color: var(--gold); font-size: clamp(1.5rem, 3.4vw, 2.2rem); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.desktop-rail-intro > span { display: block; margin-top: 1rem; color: var(--ice); font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.45; }
.hero-pitch { max-width: 40rem; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.6; }
.quick-install { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.9rem; }
.quick-install > div, .quick-install > p { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.quick-install-button { min-width: 13rem; min-height: 3.5rem; padding: 0 1.6rem; display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem; color: #06231f; background: var(--cyan); border-radius: 0.8rem; box-shadow: 0 0.8rem 2rem rgba(111, 211, 196, 0.22); font-size: 1.15rem; font-weight: 700; text-decoration: none; transition: transform 150ms ease, background-color 150ms ease; }
.quick-install-button:hover { transform: translateY(-2px); background: #9be6da; }
.watch-video-link { min-height: 3.5rem; padding: 0 1.4rem; display: inline-flex; align-items: center; gap: 0.7rem; color: var(--ice); border: 1px solid var(--line-strong); border-radius: 0.8rem; font-size: 1.1rem; font-weight: 500; text-decoration: none; transition: border-color 150ms ease, background-color 150ms ease; }
.watch-video-link:hover { border-color: var(--gold); background: var(--surface); }
.watch-video-link span { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; color: #221803; background: var(--gold); border-radius: 50%; font-size: 0.7rem; padding-left: 0.1rem; }
.desktop-account-link { color: var(--muted); font-size: 1rem; text-decoration: underline; text-underline-offset: 0.25rem; }
.desktop-account-link:hover { color: var(--ice); }
.stage-column { order: 2; min-width: 0; padding: clamp(1.1rem, 2.5vw, 2rem); background: var(--deep-sea); border: 1px solid var(--line); border-radius: 1.4rem; box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.35); }
.stage-intro { margin-bottom: 1.3rem; }
.stage-intro h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.stage-intro p { margin-top: 0.35rem; color: var(--muted); font-size: 1.05rem; }
.demo-poster { position: relative; display: block; overflow: hidden; border-radius: .75rem; background: var(--abyss); }
.demo-poster img { width: 100%; height: auto; }
.demo-poster span { position: absolute; inset: auto auto 1rem 50%; transform: translateX(-50%); max-width: calc(100% - 1rem); width: max-content; padding: .65rem 1.25rem; border: 2px solid var(--abyss); border-radius: 2rem; background: var(--cyan); color: var(--abyss); font-weight: 700; text-align: center; }
.demo-poster:hover span, .demo-poster:focus-visible span { background: var(--ice); }
.demo-poster[aria-busy] { cursor: progress; }

/* ---- Shared section layout ---- */
.features, .plans, .install, .seo-faq { padding: clamp(3.5rem, 8vw, 5.5rem) max(1.5rem, calc((100% - 72rem) / 2)); border-top: 1px solid var(--line); }
.plans, .seo-faq { background: rgba(12, 26, 40, 0.6); }
.section-intro, .faq-header { max-width: 46rem; margin: 0 auto 2.5rem; text-align: center; }
.section-intro h2, .install > h2, .faq-header h2 { font-size: clamp(2rem, 4.4vw, 2.9rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.025em; text-wrap: balance; }
.section-intro p, .faq-lead { margin-top: 0.8rem; color: var(--muted); font-size: 1.15rem; line-height: 1.55; }

/* ---- What it does ---- */
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.feature { padding: 1.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.feature-icon { width: 3.2rem; height: 3.2rem; margin-bottom: 1.1rem; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 0.9rem; font-size: 1.6rem; }
.feature h3 { font-size: 1.3rem; font-weight: 600; line-height: 1.25; }
.feature p { margin-top: 0.55rem; color: var(--muted); font-size: 1.05rem; line-height: 1.6; }
.section-link { width: fit-content; margin: 2rem auto 0; display: flex; align-items: center; gap: 0.5rem; color: var(--cyan); font-size: 1.1rem; font-weight: 600; text-decoration: none; }
.section-link:hover { text-decoration: underline; text-underline-offset: 0.3rem; }

/* ---- Plans ---- */
.compact-plans { max-width: 50rem; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.compact-plan { min-width: 0; padding: 1.9rem; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 1.25rem; }
.compact-plan--legacy { background: linear-gradient(160deg, rgba(240, 198, 116, 0.13), var(--surface) 55%); border-color: rgba(240, 198, 116, 0.6); }
.compact-plan > .plan-heading { min-height: 2.1rem; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.plan-heading > span:first-child { color: var(--ice); font-size: 1.3rem; font-weight: 600; }
.compact-plan .offer-badge { padding: 0.3rem 0.75rem; color: #221803; background: var(--gold); border-radius: 999px; font-size: 0.95rem; font-weight: 700; }
.compact-plan > .offer-price { margin-top: 1.1rem; display: flex; align-items: baseline; gap: 0.8rem; flex-wrap: wrap; }
.offer-price del { color: var(--muted); font-size: 1.3rem; }
.compact-plan strong { color: var(--ice); font-size: 3.1rem; font-weight: 700; line-height: 1; letter-spacing: -0.03em; white-space: nowrap; }
.compact-plan strong small { color: var(--muted); font-size: 1.05rem; font-weight: 400; letter-spacing: 0; }
.compact-plan > p { margin: 1.2rem 0 0.9rem; color: var(--ice); font-size: 1.1rem; line-height: 1.6; }
.compact-plan-meter { margin: 0 0 1.6rem; display: block; color: var(--muted); font-size: 1rem; line-height: 1.5; }
.compact-plan > a { min-height: 3.25rem; margin-top: auto; padding: 0 1.2rem; display: flex; align-items: center; justify-content: center; gap: 0.6rem; color: var(--ice); border: 1px solid var(--line-strong); border-radius: 0.75rem; font-size: 1.08rem; font-weight: 600; text-decoration: none; transition: border-color 150ms ease, background-color 150ms ease; }
.compact-plan > a:hover { border-color: var(--cyan); background: var(--surface-2); }
.compact-plan--legacy > a { color: #221803; background: var(--gold); border-color: var(--gold); }
.compact-plan--legacy > a:hover { background: #f7d894; border-color: #f7d894; }

/* ---- Install steps ---- */
.install > h2 { margin: 0 auto 2.5rem; text-align: center; }
.install-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.install-flow--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.install-step { min-width: 0; padding: 1.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.install-step-head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 0.8rem; }
.install-step-head > span { flex: 0 0 2.6rem; height: 2.6rem; display: grid; place-items: center; color: #221803; background: var(--gold); border-radius: 50%; font-size: 1.05rem; font-weight: 700; }
.install-step h3 { font-size: 1.3rem; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.install-copy { color: var(--muted); font-size: 1.05rem; line-height: 1.65; }
.install-copy a { color: var(--cyan); font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; }
.install > .install-button { width: fit-content; min-width: 13rem; min-height: 3.5rem; margin: 2rem auto 0; padding: 0 1.6rem; display: flex; align-items: center; justify-content: center; gap: 0.75rem; color: #06231f; background: var(--cyan); border-radius: 0.8rem; font-size: 1.15rem; font-weight: 700; text-decoration: none; transition: transform 150ms ease, background-color 150ms ease; }
.install > .install-button:hover { transform: translateY(-2px); background: #9be6da; }
.install-support { margin-top: 3rem; padding: 1.6rem 1.8rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.2rem 2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.install-support > div:first-child { flex: 1 1 18rem; }
.install-support h3 { font-size: 1.3rem; font-weight: 600; }
.install-support p { margin-top: 0.3rem; color: var(--muted); font-size: 1.05rem; }
.support-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.support-actions a { min-height: 3rem; padding: 0 1.1rem; display: inline-flex; align-items: center; gap: 0.5rem; color: var(--ice); border: 1px solid var(--line-strong); border-radius: 0.7rem; font-size: 1.02rem; font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.support-actions a:hover { border-color: var(--cyan); background: var(--surface-2); }

/* ---- FAQ ---- */
.faq-eyebrow { margin-bottom: 0.9rem; color: var(--gold); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.12em; }
.faq-header h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.faq-grid { max-width: 52rem; margin: 0 auto; display: grid; gap: 0.75rem; }
.faq-item { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.faq-item[open] { border-color: var(--line-strong); }
.faq-item summary { padding: 1.2rem 1.4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--ice); font-size: 1.15rem; font-weight: 600; line-height: 1.4; list-style: none; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex: 0 0 0.6rem; height: 0.6rem; margin-top: -0.3rem; border-right: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: rotate(45deg); transition: transform 150ms ease; }
.faq-item[open] summary::after { margin-top: 0.3rem; transform: rotate(-135deg); }
.faq-answer { padding: 0 1.4rem 1.4rem; }
.faq-answer p { max-width: 44rem; color: var(--muted); font-size: 1.08rem; line-height: 1.7; }

/* ---- Footer ---- */
.site-footer { padding: 2.2rem max(1.5rem, calc((100% - 72rem) / 2)) 2.8rem; display: flex; align-items: center; flex-wrap: wrap; gap: 1.2rem 2rem; border-top: 1px solid var(--line); }
.site-footer nav { margin-right: auto; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-footer nav a { color: var(--muted); font-size: 1rem; text-decoration: none; }
.site-footer nav a:hover { color: var(--ice); text-decoration: underline; text-underline-offset: 0.25rem; }
.site-footer small { color: var(--muted); font-size: 0.95rem; }

/* Escritorio: la primera pantalla reúne titular, precios y visualizador sin desplazarse. */
.rail-plans { display: none; }
@media (min-width: 1100px) and (min-height: 640px) {
  :root { --page: min(92rem, calc(100% - 3rem)); }
  .site-nav { padding-inline: max(1.5rem, calc((100% - 92rem) / 2)); }
  .showcase-layout { min-height: calc(100vh - 4.25rem); padding: clamp(1rem, 2.4vh, 1.75rem) 0; display: grid; grid-template-columns: minmax(22rem, 27rem) minmax(0, 1fr); align-items: center; gap: clamp(1.5rem, 2.5vw, 2.75rem); }
  .desktop-rail { grid-column: 1; grid-row: 1; order: 0; max-width: none; margin: 0; align-items: stretch; gap: clamp(0.7rem, 1.8vh, 1.15rem); text-align: left; }
  .desktop-rail-intro > p { margin-bottom: 0.5rem; font-size: 0.75rem; }
  .desktop-rail-intro h1 { font-size: clamp(2.8rem, 6.5vh, 3.7rem); }
  .desktop-rail-intro h1 .product-subtitle { margin-top: 0.4rem; font-size: clamp(1.25rem, 2.9vh, 1.55rem); }
  .desktop-rail-intro > span { margin-top: 0.5rem; font-size: 1.05rem; }
  .hero-pitch { font-size: 1rem; line-height: 1.5; }
  .quick-install { justify-content: stretch; gap: 0.6rem; }
  .quick-install-button, .watch-video-link { flex: 1 1 auto; min-width: 0; min-height: 3rem; padding-inline: 1rem; justify-content: center; font-size: 1.02rem; white-space: nowrap; }
  .rail-plans { display: grid; gap: 0.6rem; }
  .rail-plan { padding: clamp(0.65rem, 1.6vh, 0.95rem) 1rem; display: grid; gap: 0.15rem; color: var(--ice); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 0.9rem; text-decoration: none; transition: border-color 150ms ease, transform 150ms ease; }
  .rail-plan:hover { border-color: var(--cyan); transform: translateY(-1px); }
  .rail-plan--main { background: linear-gradient(160deg, rgba(240, 198, 116, 0.14), var(--surface) 60%); border-color: rgba(240, 198, 116, 0.6); }
  .rail-plan--main:hover { border-color: var(--gold); }
  .rail-plan-name { display: flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; font-weight: 600; }
  .rail-plan-name em { padding: 0.1rem 0.5rem; color: #221803; background: var(--gold); border-radius: 999px; font-size: 0.75rem; font-style: normal; font-weight: 700; }
  .rail-plan-price { color: var(--muted); font-size: 0.95rem; }
  .rail-plan-price del { margin-right: 0.15rem; }
  .rail-plan-price strong { color: var(--ice); font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; }
  .rail-plan-note { color: var(--muted); font-size: 0.85rem; line-height: 1.4; }
  .desktop-account-link { align-self: flex-start; font-size: 0.92rem; }
  .stage-column { grid-column: 2; grid-row: 1; order: 0; align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding: clamp(0.9rem, 2vh, 1.4rem); }
  .stage-intro { margin-bottom: 0.6rem; display: flex; align-items: baseline; gap: 0.9rem; flex-wrap: wrap; }
  .stage-intro h2 { font-size: 1.35rem; }
  .stage-intro p { margin-top: 0; font-size: 0.95rem; }
  .stage-column grepogod-preview { --preview-frame-height: max(24rem, calc(100vh - 4.25rem - 15.5rem)); }
}

@media (min-width: 1100px) and (min-height: 640px) and (max-height: 820px) {
  .desktop-rail-intro > span, .hero-pitch { font-size: 0.95rem; line-height: 1.45; }
  .rail-plan-price strong { font-size: 1.4rem; }
}
@media (max-width: 1000px) {
  .site-links { display: none; }
  .site-brand { margin-right: auto; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .install-flow, .install-flow--three { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --page: calc(100% - 2rem); }
  .site-nav { padding-inline: 1rem; gap: 0.4rem; }
  .email-shortcut { display: none; }
  .features, .plans, .install, .seo-faq, .site-footer { padding-inline: 1rem; }
  .compact-plans { grid-template-columns: 1fr; }
  .quick-install { width: 100%; flex-direction: column; align-items: stretch; }
  .quick-install-button, .watch-video-link { justify-content: center; }
  .stage-column { padding: 0.9rem; border-radius: 1rem; }
  .install-support { padding: 1.3rem; }
}
@media (max-width: 480px) {
  body { font-size: 1rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .site-brand { font-size: 1.15rem; }
  .discord-shortcut { padding: 0 0.7rem; }
  .compact-plan { padding: 1.4rem; }
  .compact-plan strong { font-size: 2.6rem; }
  .faq-item summary { padding: 1rem 1.1rem; font-size: 1.05rem; }
  .faq-answer { padding: 0 1.1rem 1.1rem; }
  .support-actions { width: 100%; }
  .support-actions a { flex: 1 1 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

@media (prefers-contrast: more) {
  :root { --muted: #cfdbe5; --line: rgba(150, 190, 215, 0.5); --line-strong: rgba(150, 190, 215, 0.7); }
}
