/*
 * byterz.com. BYTERZ identity: Byterz Violet (#6A2CF5, signature), Deep Night (#1A0B3D, ink and dark grounds),
 * Glow (#B69CFF, accent on dark), Cloud (#F7F6FB, light ground). Type: Montserrat 800 for the wordmark and
 * headings, IBM Plex Sans for text, IBM Plex Mono for labels. Same tokens as the earlier Byterz site.
 */
:root {
  --brand: #6a2cf5;
  --brand-strong: #5320d9;
  --brand-deep: #1a0b3d;
  --brand-soft: #efe9fe;
  --glow: #b69cff;
  --ink: #1a0b3d;
  --ink-2: #3f3757;
  --muted: #5e5a72;
  --line: #e8e4f0;
  --bg: #f7f6fb;
  --surface: #ffffff;
  --on-dark: #e6e0f5;
  --on-dark-muted: #b3a9cc;
  --ok: #127a46;
  --ok-soft: #e4f5ec;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(43, 13, 94, 0.05), 0 2px 8px rgba(43, 13, 94, 0.06);
  --shadow-lg: 0 18px 40px rgba(43, 13, 94, 0.14);
  --container: 1160px;
  --font: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Montserrat', 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 16px; }
a { color: var(--brand); }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 0.5em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; font-weight: 700; font-family: var(--font); }
p { margin: 0 0 0.8em; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 10; }
:focus-visible { outline: 3px solid var(--glow); outline-offset: 2px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(247, 246, 251, 0.88); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.site-header nav { display: flex; align-items: center; gap: 22px; }
.site-header nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.site-header nav a:hover { color: var(--brand); }
.site-header .btn { padding: 10px 18px; font-size: 0.92rem; }
.site-header nav a.btn-primary, .site-header nav a.btn-primary:hover { color: #fff; }
@media (max-width: 760px) { .site-header nav a:not(.btn) { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 14px 24px; font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 22px rgba(106, 44, 245, 0.32); }
.btn-primary:hover { background: var(--brand-strong); transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--brand-deep); }
.btn-light:hover { transform: translateY(-1px); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }

/* Hero */
.hero { background: radial-gradient(1200px 600px at 85% -10%, rgba(182, 156, 255, 0.35), transparent 60%), linear-gradient(135deg, var(--brand-deep) 0%, #2a1170 55%, var(--brand) 100%); color: var(--on-dark); overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero h1 { color: #fff; }
.hero .lead { font-size: 1.15rem; color: var(--on-dark); max-width: 560px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 14px; }
.hero .fine { color: var(--on-dark-muted); font-size: 0.9rem; margin: 0; }
.eyebrow { display: inline-block; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; font-weight: 500; padding: 5px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); margin-bottom: 16px; }
.hero .eyebrow { background: rgba(255, 255, 255, 0.12); color: #fff; }
@media (max-width: 900px) { .hero .container { grid-template-columns: 1fr; padding-top: 48px; } .phones { justify-self: center; } }

/* Phone mockups (drawn in HTML and CSS, like the app the editor builds) */
.phones { position: relative; height: 560px; width: 100%; max-width: 440px; justify-self: end; }
.phone { position: absolute; width: 250px; height: 520px; border-radius: 40px; background: #0d0620; padding: 10px; box-shadow: 0 30px 60px rgba(10, 4, 30, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08); }
.phone.front { right: 0; top: 0; z-index: 2; }
.phone.back { left: 0; top: 40px; transform: rotate(-6deg); opacity: 0.92; }
.screen { width: 100%; height: 100%; border-radius: 31px; overflow: hidden; background: #fffaf4; display: flex; flex-direction: column; font-family: Georgia, serif; color: #2b1d12; }
.screen.dark { background: #f5f7ff; font-family: var(--font); color: #10162f; }
.screen .status { height: 26px; display: flex; justify-content: center; padding-top: 6px; }
.screen .status span { width: 74px; height: 18px; border-radius: 10px; background: #000; }
.screen .head { text-align: center; font-weight: 700; font-size: 15px; padding: 6px 0 8px; }
.screen .bar { background: #7a4e2d; color: #fff; font-size: 10px; text-align: center; padding: 5px; }
.screen.dark .bar { background: #1f4fd8; }
.screen .banner { margin: 8px; height: 150px; border-radius: 14px; background: linear-gradient(160deg, #c99d78, #7a4e2d); display: flex; align-items: flex-end; padding: 12px; color: #fff; font-size: 17px; font-weight: 700; line-height: 1.15; }
.screen.dark .banner { background: linear-gradient(160deg, #6d8dff, #1f4fd8); border-radius: 20px; }
.screen .row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 8px; }
.screen .card { background: #fff; border-radius: 10px; padding: 6px; font-size: 10px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }
.screen .card i { display: block; height: 70px; border-radius: 7px; background: #efe3d6; margin-bottom: 5px; }
.screen.dark .card i { background: #dfe5ff; }
.screen .card b { display: block; font-size: 10px; }
.screen .tabs { margin-top: auto; display: flex; justify-content: space-around; padding: 8px 0 14px; border-top: 1px solid rgba(0, 0, 0, 0.08); font-size: 9px; color: #8b7d71; font-family: var(--font); }
.screen .tabs span:first-child { color: #7a4e2d; font-weight: 700; }
.screen.dark .tabs span:first-child { color: #1f4fd8; }
@media (max-width: 480px) { .phones { height: 470px; } .phone { width: 210px; height: 440px; } }

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--font-mono); color: var(--brand); font-weight: 500; margin-bottom: 12px; }
.steps p, .features p { color: var(--muted); margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--bg); border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); }
.feature .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 20px; margin-bottom: 14px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.plan.featured { border: 2px solid var(--brand); box-shadow: var(--shadow-lg); position: relative; }
.plan.featured::before { content: 'Most popular'; position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: 0.75rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; }
.plan h3 { font-family: var(--font-head); font-size: 1.3rem; font-weight: 800; margin-bottom: 4px; }
.price { font-family: var(--font-head); font-size: 2.6rem; font-weight: 800; color: var(--ink); line-height: 1.1; margin: 14px 0 4px; }
.price small { font-size: 1rem; font-weight: 600; color: var(--muted); font-family: var(--font); }
.plan .yearly { color: var(--muted); font-size: 0.92rem; margin-bottom: 18px; }
.check { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.check li { position: relative; padding-left: 28px; }
.check li::before { content: '✓'; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); font-size: 0.72rem; font-weight: 700; display: grid; place-items: center; }
.plans-note { text-align: center; color: var(--muted); margin-top: 22px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: '+'; color: var(--brand); font-weight: 700; }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* Call to action band */
.cta { background: linear-gradient(120deg, var(--brand-deep), var(--brand-strong) 55%, var(--brand)); color: var(--on-dark); border-radius: var(--radius-lg); padding: 56px 32px; text-align: center; }
.cta h2 { color: #fff; }
.cta p { max-width: 560px; margin: 0 auto 24px; }

/* Plain pages (privacy, terms, support) */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 20px 80px; }
.doc h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.doc h2 { font-size: 1.3rem; margin-top: 1.8em; }
.doc .updated { color: var(--muted); font-family: var(--font-mono); font-size: 0.85rem; }

/* Footer */
.site-footer { background: var(--brand-deep); color: var(--on-dark-muted); padding: 48px 0 36px; margin-top: 80px; }
.site-footer .container { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer small { display: block; margin-top: 12px; }
