/* RevBot website — shared styles for every page. */

:root {
  --bg: #090b0f;
  --bg-2: #0d1016;
  --surface: #12161e;
  --surface-2: #181d27;
  --surface-3: #1f2532;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --text: #eef1f6;
  --muted: #8f9bb0;
  --faint: #5d687c;
  --green: #18b158;
  --green-2: #2dd672;
  --green-soft: rgba(24, 177, 88, 0.12);
  --green-line: rgba(45, 214, 114, 0.35);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --head: "Sora", "Inter", "Segoe UI", sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--head); margin: 0; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }
.wrap { width: min(1180px, 100% - 32px); margin: 0 auto; }
.muted { color: var(--muted); }
.green { color: var(--green-2); }

/* ---------- Background */
.glow {
  position: absolute; pointer-events: none; z-index: 0; border-radius: 50%;
  filter: blur(80px); opacity: .55;
  background: radial-gradient(circle, rgba(24, 177, 88, .55), transparent 65%);
}
.grid-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%);
}

/* ---------- Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(9, 11, 15, .78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 800; font-size: 19px; letter-spacing: .02em; }
.brand img { width: 30px; height: 30px; }
.brand .wordmark { width: auto; height: 22px; display: block; }
.brand-footer .wordmark { height: 44px; }
.brand b { color: var(--green-2); font-weight: 800; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  padding: 8px 14px; border-radius: 9px; color: var(--muted); font-weight: 500; font-size: 15px; white-space: nowrap;
  transition: color .15s, background .15s;
}
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a.active { color: var(--text); background: var(--surface-2); }
.header-cta { display: flex; gap: 10px; }
.nav-account { display: none; }
.menu-btn {
  display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--text); cursor: pointer;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; margin: 0 auto; position: relative;
}
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }

/* ---------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 11px; font-weight: 600; font-size: 15px; line-height: 1.2;
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text);
  cursor: pointer; transition: transform .15s, background .15s, border-color .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(255, 255, 255, .22); }
.btn-primary {
  background: linear-gradient(180deg, var(--green-2), var(--green)); border-color: transparent; color: #04140a;
  box-shadow: 0 8px 24px rgba(24, 177, 88, .28), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-primary:hover { box-shadow: 0 12px 30px rgba(24, 177, 88, .4), inset 0 1px 0 rgba(255, 255, 255, .25); border-color: transparent; }
.btn-ghost { background: transparent; }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 9px; }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Common bits */
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 999px;
  background: var(--green-soft); border: 1px solid var(--green-line); color: var(--green-2);
  font-size: 13px; font-weight: 600;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-2); box-shadow: 0 0 10px var(--green-2); }
.eyebrow { color: var(--green-2); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

section { position: relative; }
.section { padding: 96px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); margin: 14px 0 14px; }
.section-head p { color: var(--muted); font-size: 17px; }

.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: border-color .2s, transform .2s;
}
a.card { display: flex; flex-direction: column; }
a.card:hover, .card.hover:hover { border-color: var(--green-line); transform: translateY(-3px); }
.icon {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  background: var(--green-soft); border: 1px solid var(--green-line); color: var(--green-2); margin-bottom: 18px;
}
.icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }
.card .more { display: inline-flex; gap: 6px; margin-top: auto; padding-top: 16px; color: var(--green-2); font-weight: 600; font-size: 14px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; color: var(--muted); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232dd672' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/11px no-repeat;
  border: 1px solid var(--green-line);
}
.checks li strong { color: var(--text); font-weight: 600; }

.teaser h3 { font-size: 17px; color: var(--muted); font-family: var(--body); font-weight: 600; letter-spacing: 0; }
.teaser-price { font-family: var(--head); font-size: 40px; font-weight: 800; letter-spacing: -0.03em; margin: 8px 0 4px; }
.teaser-price small { font-size: 15px; color: var(--muted); font-weight: 600; margin-left: 6px; letter-spacing: 0; }

/* Screenshot in an app window frame */
.window img { width: 100%; height: auto; }
.window {
  border-radius: 14px; overflow: hidden; background: var(--surface);
  border: 1px solid var(--line-2); box-shadow: var(--shadow);
}
.window-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: var(--surface-3); border-bottom: 1px solid var(--line); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a4252; }
.window-bar i:nth-child(1) { background: #ff5f57; }
.window-bar i:nth-child(2) { background: #febc2e; }
.window-bar i:nth-child(3) { background: #28c840; }
.window-bar span { margin-left: 10px; font-size: 12px; color: var(--muted); font-weight: 500; }

/* ---------- Page hero (inner pages) */
.page-hero { position: relative; padding: 88px 0 64px; overflow: hidden; text-align: center; }
.page-hero h1 { font-size: clamp(36px, 5vw, 56px); margin: 16px 0; position: relative; }
.page-hero p { color: var(--muted); font-size: 18px; max-width: 640px; margin: 0 auto; position: relative; }
.page-hero .badge { position: relative; }

/* ---------- Home hero */
.hero { position: relative; padding: 96px 0 96px; overflow: hidden; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; z-index: 0; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5vw, 60px); margin: 20px 0 20px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--green-2), #9df5bf); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: var(--muted); font-size: 19px; max-width: 520px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--faint); }
.hero-visual { position: relative; }
.hero-visual .window { transform: none; }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 13px;
  background: rgba(20, 24, 32, .92); border: 1px solid var(--line-2); box-shadow: var(--shadow);
  backdrop-filter: blur(8px); font-size: 14px;
}
.float-card strong { display: block; font-size: 15px; }
.float-card small { color: var(--muted); }
.float-card .icon { width: 38px; height: 38px; margin: 0; border-radius: 10px; }
.float-card .icon svg { width: 19px; height: 19px; }
.float-a { left: -28px; bottom: 36px; }
.float-b { right: -18px; top: -22px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.stat { padding: 26px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat strong { display: block; font-family: var(--head); font-size: 30px; letter-spacing: -0.02em; }
.stat > span { color: var(--muted); font-size: 14px; }

/* ---------- Feature rows (features page) */
.feature-row { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; padding: 72px 0; border-top: 1px solid var(--line); }
.feature-row:first-child { border-top: 0; padding-top: 24px; }
.feature-row.flip .feature-text { order: 2; }
.feature-text h2 { font-size: clamp(28px, 3vw, 38px); margin: 14px 0 14px; }
.feature-text > p { color: var(--muted); font-size: 17px; margin-bottom: 24px; }
.feature-art { position: relative; }
.feature-art .glow { width: 380px; height: 380px; left: 10%; top: 5%; opacity: .3; }
.feature-art .window { position: relative; z-index: 1; }
.art-panel {
  position: relative; z-index: 1; border-radius: var(--radius); border: 1px solid var(--line-2);
  background: linear-gradient(160deg, var(--surface-3), var(--surface)); padding: 30px; box-shadow: var(--shadow);
}
.art-panel .row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.art-panel .row:first-child { border-top: 0; padding-top: 0; }
.art-panel .row:last-child { padding-bottom: 0; }
.art-panel .row .icon { margin: 0; width: 42px; height: 42px; flex: none; }
.art-panel .row strong { display: block; }
.art-panel .row span { color: var(--muted); font-size: 14px; }
.pill { margin-left: auto; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--green-soft); color: var(--green-2); border: 1px solid var(--green-line); }

.toc { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 32px; position: relative; }
.toc a { padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); font-size: 14px; font-weight: 500; }
.toc a:hover { color: var(--text); border-color: var(--green-line); }

/* ---------- Pricing */
.pc-switch {
  display: flex; gap: 4px; padding: 5px; margin: 0 auto 44px; width: max-content; max-width: 100%;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px;
}
.pc-switch button {
  border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 600; font-size: 15px;
  padding: 11px 24px; border-radius: 10px; cursor: pointer; transition: background .15s, color .15s;
}
.pc-switch button:hover { color: var(--text); }
.pc-switch button.on { background: var(--green); color: #04140a; }
.plans { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; align-items: stretch; }
.plan.free { border-style: dashed; border-color: var(--green-line); background: linear-gradient(180deg, rgba(24, 177, 88, .08), var(--surface) 50%); }
.plan {
  position: relative; display: flex; flex-direction: column; padding: 30px 26px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--radius);
}
.plan.best { border-color: var(--green-line); background: linear-gradient(180deg, rgba(24, 177, 88, .14), var(--surface) 55%); box-shadow: 0 0 0 1px var(--green-line), 0 30px 60px rgba(24, 177, 88, .12); }
.plan .ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--green); color: #04140a; font-size: 12px; font-weight: 800; padding: 5px 13px; border-radius: 999px; letter-spacing: .03em; }
.plan h3 { font-size: 17px; color: var(--muted); font-weight: 600; font-family: var(--body); letter-spacing: 0; }
.plan .price { font-family: var(--head); font-size: 48px; font-weight: 800; letter-spacing: -0.03em; margin: 14px 0 2px; }
.plan .price sup { font-size: 22px; vertical-align: 18px; margin-right: 2px; color: var(--muted); }
.plan .per { color: var(--muted); font-size: 14px; min-height: 22px; }
.plan .save { display: inline-block; margin-left: 6px; color: var(--green-2); font-weight: 700; }
.plan .checks { margin: 24px 0 28px; font-size: 15px; }
.plan .btn { margin-top: auto; width: 100%; }

.trial {
  margin-top: 26px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 26px 30px; border-radius: var(--radius); border: 1px dashed var(--green-line); background: var(--green-soft);
}
.trial h3 { font-size: 20px; }
.trial p { color: var(--muted); margin-top: 4px; }

.table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15px; }
.table th { font-family: var(--head); font-size: 14px; color: var(--muted); font-weight: 600; background: var(--surface-2); }
.table td:not(:first-child), .table th:not(:first-child) { text-align: center; }
.table tr:last-child td { border-bottom: 0; }
.table .yes { color: var(--green-2); font-weight: 700; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); }

.pay { display: flex; align-items: center; gap: 16px; }
.pay .icon { margin: 0; flex: none; }

/* ---------- Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-family: var(--head); font-weight: 800; font-size: 15px; color: var(--green-2); margin-bottom: 18px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

.download-box {
  display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center;
  padding: 32px; border-radius: 20px; border: 1px solid var(--green-line);
  background: radial-gradient(ellipse at 0% 0%, rgba(24, 177, 88, .18), transparent 60%), var(--surface);
}
.download-box img { width: 72px; height: 72px; }
.download-box h3 { font-size: 24px; }
.download-box p { color: var(--muted); margin-top: 6px; }

/* ---------- FAQ */
.faq-layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.faq-nav { position: sticky; top: 92px; display: grid; gap: 4px; }
.faq-nav a { padding: 9px 14px; border-radius: 9px; color: var(--muted); font-weight: 500; font-size: 15px; }
.faq-nav a:hover { color: var(--text); background: var(--surface); }
.faq-group + .faq-group { margin-top: 48px; }
.faq-group h2 { font-size: 22px; margin-bottom: 18px; }
details {
  border: 1px solid var(--line); border-radius: 13px; background: var(--surface); margin-bottom: 10px;
  transition: border-color .2s;
}
details[open] { border-color: var(--line-2); background: var(--surface-2); }
summary {
  cursor: pointer; list-style: none; padding: 19px 22px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-2);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232dd672' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/12px no-repeat;
  transition: transform .2s;
}
details[open] summary::after { transform: rotate(45deg); }
details > p, details > div { padding: 0 22px 20px; color: var(--muted); }

/* ---------- Contact */
.contact-card { display: flex; flex-direction: column; }
.contact-card .btn { margin-top: auto; align-self: flex-start; }
.contact-card p { margin-bottom: 22px; }
.contact-card.off { opacity: .55; }
.soon { display: inline-block; margin-top: auto; font-size: 13px; color: var(--faint); font-weight: 600; }

/* ---------- CTA band */
.cta-band {
  position: relative; overflow: hidden; text-align: center; padding: 64px 32px; border-radius: 24px;
  border: 1px solid var(--green-line);
  background: radial-gradient(ellipse at 50% 0%, rgba(24, 177, 88, .28), transparent 65%), var(--surface);
}
.cta-band h2 { font-size: clamp(28px, 3.4vw, 42px); margin-bottom: 14px; position: relative; }
.cta-band p { color: var(--muted); font-size: 17px; margin-bottom: 28px; position: relative; }
.cta-band .hero-actions { justify-content: center; position: relative; }

/* ---------- Footer */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 28px; margin-top: 96px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer-grid p { color: var(--muted); font-size: 15px; margin-top: 14px; max-width: 300px; }
.footer-grid h4 { font-family: var(--body); font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid ul a { color: var(--muted); font-size: 15px; }
.footer-grid ul a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--faint); font-size: 14px; }

/* ---------- Forms (account and dashboard) */
.auth-wrap { max-width: 440px; margin: 0 auto; }
.auth-card { padding: 32px; }
.tabs { display: flex; gap: 4px; padding: 5px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 24px; }
.tabs button { flex: 1; border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 600; padding: 10px; border-radius: 9px; cursor: pointer; }
.tabs button.on { background: var(--surface-3); color: var(--text); }
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 14px; font-weight: 600; color: var(--muted); }
.input, select.input {
  width: 100%; font: inherit; color: var(--text); background: var(--bg-2);
  border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: var(--green-line); box-shadow: 0 0 0 3px var(--green-soft); }
.form .btn { width: 100%; }
.form-foot { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }
.link { color: var(--green-2); background: none; border: 0; font: inherit; padding: 0; cursor: pointer; }
.alert { padding: 13px 16px; border-radius: 11px; font-size: 14px; border: 1px solid var(--line-2); background: var(--surface-2); }
.alert.ok { border-color: var(--green-line); background: var(--green-soft); color: #bff3d3; }
.alert.bad { border-color: rgba(224, 82, 82, .4); background: rgba(224, 82, 82, .1); color: #ffc9c9; }
.alert.warn { border-color: rgba(224, 164, 58, .4); background: rgba(224, 164, 58, .1); color: #ffe2b0; }
.alert[hidden] { display: none; }
.btn[disabled] { opacity: .55; pointer-events: none; }

.dash { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; align-items: start; }
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.dash-head h1 { font-size: clamp(28px, 3.4vw, 40px); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 12px 20px; margin: 18px 0 22px; }
.kv dt { color: var(--muted); font-size: 14px; }
.kv dd { margin: 0; font-weight: 600; }
.mono { font-family: Consolas, "SFMono-Regular", Menlo, monospace; letter-spacing: .02em; }
.secret { padding: 14px 16px; border-radius: 11px; background: var(--bg-2); border: 1px dashed var(--green-line); margin-top: 14px; }
.row-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.choice button {
  font: inherit; font-weight: 600; color: var(--muted); background: var(--bg-2); border: 1px solid var(--line-2);
  border-radius: 10px; padding: 11px 6px; cursor: pointer;
}
.choice button.on { color: var(--text); border-color: var(--green-line); background: var(--green-soft); }
.choice.four { grid-template-columns: repeat(4, 1fr); }
.choice.two { grid-template-columns: repeat(2, 1fr); }
.total { display: flex; align-items: baseline; justify-content: space-between; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.total strong { font-family: var(--head); font-size: 34px; }
.pay-box { display: grid; gap: 12px; }
.orders { width: 100%; border-collapse: collapse; font-size: 14px; }
.orders th, .orders td { text-align: left; padding: 11px 8px; border-bottom: 1px solid var(--line); }
.orders th { color: var(--faint); font-weight: 600; font-size: 13px; }
.status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface-3); color: var(--muted); }
.status.paid { background: var(--green-soft); color: var(--green-2); }
.status.review { background: rgba(224, 164, 58, .14); color: #f0bb5d; }
.status.bad { background: rgba(224, 82, 82, .14); color: #f08a8a; }
.empty { color: var(--muted); padding: 10px 0; }

@media (max-width: 1000px) { .dash { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .auth-card { padding: 24px 20px; }
  .orders th:nth-child(3), .orders td:nth-child(3) { display: none; }
}

/* ---------- Sign in / create account / forgot / reset */
.auth-page { position: relative; overflow: hidden; min-height: calc(100vh - 68px); display: flex; align-items: center; padding: 64px 0 72px; }
.auth-split { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 460px; gap: 72px; align-items: center; }
.auth-side h2 { font-size: clamp(32px, 4vw, 48px); margin: 20px 0 16px; }
.auth-side h2 em { font-style: normal; background: linear-gradient(90deg, var(--green-2), #9df5bf); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-side > p { font-size: 17px; max-width: 460px; margin-bottom: 26px; }
.auth-side .checks { max-width: 460px; }
.auth-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 34px; max-width: 520px; }
.auth-mini div { padding: 16px; border-radius: 13px; border: 1px solid var(--line); background: rgba(20, 24, 33, .7); }
.auth-mini strong { display: block; font-family: var(--head); font-size: 20px; }
.auth-mini span { color: var(--muted); font-size: 13px; }
.auth-panel {
  position: relative; padding: 36px 34px 30px; border-radius: 22px;
  background: linear-gradient(180deg, rgba(26, 31, 42, .96), rgba(18, 22, 30, .96));
  border: 1px solid var(--line-2); box-shadow: 0 40px 90px rgba(0, 0, 0, .55), 0 0 0 1px rgba(45, 214, 114, .06);
}
.auth-panel::before {
  content: ""; position: absolute; left: 30px; right: 30px; top: -1px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--green-2), transparent);
}
.auth-head { text-align: center; margin-bottom: 24px; }
.auth-head img { width: 44px; height: 44px; margin: 0 auto 14px; }
.auth-head h1 { font-size: 26px; margin-bottom: 6px; }
.auth-head p { color: var(--muted); font-size: 15px; }
.auth-panel .alert { margin-bottom: 16px; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; }
.link.small { font-size: 13px; font-weight: 600; }
.link.center { justify-self: center; font-size: 14px; font-weight: 600; }
.input-icon { position: relative; }
.input-icon > svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.input-icon .input { padding-left: 44px; }
.input-icon .input:focus ~ svg, .input-icon:focus-within > svg { color: var(--green-2); }
.input::placeholder { color: var(--faint); }
.eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; color: var(--faint); cursor: pointer; display: grid; place-items: center; }
.eye:hover, .eye.on { color: var(--text); background: var(--surface-3); }
.eye svg { width: 18px; height: 18px; }
.input-icon .input[type="password"], .input-icon .input[data-shown] { padding-right: 48px; }
.strength { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 6px; align-items: center; margin-top: 2px; }
.strength span { height: 4px; border-radius: 4px; background: var(--surface-3); transition: background .2s; }
.strength small { color: var(--muted); font-size: 12px; min-width: 52px; text-align: right; }
.strength[data-level="1"] span:nth-child(-n+1) { background: #e05252; }
.strength[data-level="2"] span:nth-child(-n+2) { background: #e0a43a; }
.strength[data-level="3"] span:nth-child(-n+3) { background: var(--green-2); }
.captcha { min-height: 65px; display: flex; justify-content: center; }
.auth-foot { text-align: center; color: var(--faint); font-size: 13px; margin-top: 22px; }

/* Account page while it checks the session */
.dash-loading { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 60vh; color: var(--muted); }
.dash-loading[hidden] { display: none; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--surface-3); border-top-color: var(--green-2); animation: spin .8s linear infinite; }
.spinner[hidden] { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1000px) {
  .auth-split { grid-template-columns: 1fr; gap: 36px; max-width: 520px; margin: 0 auto; }
  .auth-side { text-align: center; }
  .auth-side > p, .auth-side .checks { margin-left: auto; margin-right: auto; }
  .auth-side .checks { text-align: left; display: inline-grid; }
  .auth-mini { margin-left: auto; margin-right: auto; }
}
@media (max-width: 640px) {
  .auth-page { padding: 32px 0 48px; }
  .auth-side .checks, .auth-mini { display: none; }
  .auth-side h2 { font-size: 30px; }
  .auth-panel { padding: 28px 20px 24px; }
}

/* ---------- Account page (dashboard) */
.acct { position: relative; overflow: hidden; padding: 48px 0 24px; }
.acct > .grid-bg { height: 520px; }
.acct-body { position: relative; z-index: 1; display: grid; gap: 22px; }
.acct-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.acct-who { display: flex; align-items: center; gap: 18px; }
.acct-who h1 { font-size: clamp(26px, 3.2vw, 36px); margin: 6px 0 2px; }
.acct-who p { font-size: 14px; }
.avatar {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; flex: none;
  font-family: var(--head); font-weight: 800; font-size: 24px; color: #04140a;
  background: linear-gradient(135deg, var(--green-2), var(--green)); box-shadow: 0 10px 30px rgba(24, 177, 88, .3);
}
.acct-head .btn svg, .login-actions .btn svg { width: 17px; height: 17px; }
.acct-section { margin-top: 18px; }
.acct-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.acct-section-head h2 { font-size: clamp(22px, 2.6vw, 28px); margin-top: 6px; }
.acct-section-head p { font-size: 14px; }

.stat-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.tile {
  display: flex; flex-direction: column; gap: 8px; padding: 20px 22px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line);
}
.tile-label { color: var(--faint); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.tile strong { font-family: var(--head); font-size: 32px; line-height: 1; }
.tile strong em { font-style: normal; font-size: 15px; color: var(--muted); font-family: var(--body); font-weight: 600; }
.tile small { color: var(--muted); font-size: 13px; }
.tile .status { align-self: flex-start; font-size: 14px; padding: 5px 12px; }
.bar { height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--green), var(--green-2)); }

.login-card { display: grid; grid-template-columns: 1fr auto; gap: 18px 28px; align-items: center; }
.login-id { display: grid; gap: 6px; }
.id-row { display: flex; align-items: center; gap: 10px; }
.id-value { font-size: 26px; font-weight: 700; color: var(--text); letter-spacing: .03em; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface-3);
  color: var(--muted); display: grid; place-items: center; cursor: pointer; transition: color .15s, border-color .15s;
}
.icon-btn:hover { color: var(--text); }
.icon-btn.done { color: var(--green-2); border-color: var(--green-line); }
.icon-btn svg { width: 17px; height: 17px; }
.login-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.login-card #passwordOut { grid-column: 1 / -1; }
.login-card #passwordOut:empty { display: none; }

.welcome {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center;
  background: radial-gradient(ellipse at 0% 0%, rgba(24, 177, 88, .16), transparent 60%), linear-gradient(180deg, var(--surface-2), var(--surface));
  border-color: var(--green-line);
}
.welcome h2 { font-size: 24px; margin-bottom: 8px; }
.trial-cta { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 18px; border-radius: 12px; border: 1px dashed var(--green-line); background: rgba(9, 11, 15, .5); }
.trial-cta strong { display: block; font-size: 16px; }
.trial-cta span { color: var(--muted); font-size: 14px; }
.mini-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mini-steps li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.mini-steps span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); border: 1px solid var(--green-line); color: var(--green-2); font-size: 14px; font-weight: 800; }

.buy-grid { display: grid; grid-template-columns: 1fr 380px; gap: 22px; align-items: start; }
.buy-steps { display: grid; gap: 16px; }
.step-block { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.step-title { display: flex; align-items: center; gap: 12px; font-family: var(--head); font-weight: 700; font-size: 17px; margin-bottom: 16px; }
.step-title span { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--green); color: #04140a; font-size: 14px; }

.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tier, .week, .method {
  font: inherit; color: var(--text); text-align: left; cursor: pointer; border-radius: 13px;
  border: 1px solid var(--line-2); background: var(--bg-2); transition: border-color .15s, background .15s, transform .15s;
}
.tier:hover, .week:hover, .method:not(.off):hover { border-color: rgba(255, 255, 255, .25); }
.tier.on, .week.on, .method.on { border-color: var(--green-2); background: var(--green-soft); box-shadow: 0 0 0 1px var(--green-2) inset; }
.tier { display: grid; gap: 3px; padding: 16px; }
.tier strong { font-family: var(--head); font-size: 20px; }
.tier small { color: var(--muted); font-size: 13px; }
.tier em { font-style: normal; color: var(--green-2); font-size: 13px; font-weight: 600; margin-top: 6px; }

.week-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.week { position: relative; display: grid; gap: 2px; padding: 14px 12px; text-align: center; }
.week strong { font-size: 14px; }
.week span { font-family: var(--head); font-size: 19px; font-weight: 700; }
.week em { position: absolute; top: -9px; right: 8px; font-style: normal; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 99px; background: var(--green); color: #04140a; }

.region-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line-2); margin-bottom: 14px; }
.region-tabs button { border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 600; font-size: 14px; padding: 9px 16px; border-radius: 9px; cursor: pointer; }
.region-tabs button.on { background: var(--surface-3); color: var(--text); }
.method-grid { display: grid; gap: 10px; }
.method { display: flex; align-items: center; gap: 14px; padding: 15px 16px; }
.method.off { opacity: .5; cursor: not-allowed; }
.method-icon { width: 42px; height: 42px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--surface-3); color: var(--green-2); }
.method.on .method-icon { background: var(--green); color: #04140a; }
.method-icon svg { width: 21px; height: 21px; }
.method-text { display: grid; gap: 2px; flex: 1; }
.method-text strong { font-size: 15px; }
.method-text small { color: var(--muted); font-size: 13px; }
.radio { width: 20px; height: 20px; flex: none; border-radius: 50%; border: 2px solid var(--line-2); }
.method.on .radio { border-color: var(--green-2); box-shadow: inset 0 0 0 4px var(--bg-2); background: var(--green-2); }
.soon-pill { flex: none; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--surface-3); color: var(--faint); }

.summary { position: sticky; top: 88px; display: grid; gap: 16px; }
.summary-card {
  padding: 24px; border-radius: 18px; border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(26, 31, 42, .98), rgba(18, 22, 30, .98)); box-shadow: var(--shadow);
}
.summary-card h3 { font-size: 18px; margin-bottom: 14px; }
.summary-card .form { margin: 4px 0 14px; gap: 12px; }
.summary-card .alert { margin-bottom: 12px; }
.summary-lines { margin: 0; display: grid; gap: 10px; }
.summary-lines div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.summary-lines dt { color: var(--muted); }
.summary-lines dd { margin: 0; font-weight: 600; text-align: right; }
.summary-total { display: flex; justify-content: space-between; align-items: flex-end; margin: 18px 0; padding: 16px 0; border-top: 1px dashed var(--line-2); border-bottom: 1px dashed var(--line-2); }
.summary-total > span { color: var(--muted); font-weight: 600; }
.summary-total > div { text-align: right; }
.summary-total strong { display: block; font-family: var(--head); font-size: 34px; line-height: 1; }
.summary-total small { color: var(--green-2); font-size: 13px; font-weight: 600; }
.pay-btn { width: 100%; }
.summary-foot { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; color: var(--faint); font-size: 12.5px; }
.summary-foot svg { width: 15px; height: 15px; flex: none; margin-top: 2px; }
.summary-card.manual { border-color: var(--green-line); }
.summary-card.manual .checks { list-style: none; padding: 0; }
.checks .pay-way { display: grid; gap: 8px; padding: 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.checks .pay-way::before { display: none; }
.pay-way > strong { font-size: 15px; margin-bottom: 2px; }
.pay-line { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pay-label { flex: none; width: 62px; color: var(--faint); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.pay-value { flex: 1; min-width: 0; color: var(--text); font-size: 14px; overflow-wrap: anywhere; }
.pay-value.mono { font-size: 13.5px; letter-spacing: .02em; }
.icon-btn.small { width: 30px; height: 30px; flex: none; }
.icon-btn.small svg { width: 14px; height: 14px; }
.summary-card.manual .checks { margin: 12px 0 16px; }
.summary-card.manual .btn { width: 100%; margin-top: 12px; }

.orders-card { padding: 8px 22px; }
.orders-card .orders td, .orders-card .orders th { padding: 14px 8px; }
.empty-state { display: flex; align-items: center; gap: 14px; padding: 18px 0; color: var(--muted); }
.empty-state svg { width: 26px; height: 26px; color: var(--faint); }

@media (max-width: 1000px) {
  .buy-grid { grid-template-columns: 1fr; }
  .summary { position: static; }
  .welcome { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .stat-tiles, .tier-grid { grid-template-columns: 1fr; }
  .week-grid { grid-template-columns: repeat(2, 1fr); }
  .login-card { grid-template-columns: 1fr; }
  .login-actions { justify-content: flex-start; }
  .orders-card { padding: 4px 12px; overflow-x: auto; }
  .orders th:nth-child(2), .orders td:nth-child(2) { display: none; }
}

/* ---------- Checkout window */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4, 6, 10, .78); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal-box {
  position: relative; width: min(860px, 100%); max-height: calc(100vh - 40px); overflow-y: auto;
  padding: 28px 30px 30px; border-radius: 20px; border: 1px solid var(--line-2);
  background: linear-gradient(180deg, #1a1f2a, #12161e); box-shadow: 0 40px 100px rgba(0, 0, 0, .7);
  animation: modal-in .18s ease-out;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
body.modal-open { overflow: hidden; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-left: 16px; border-left: 3px solid var(--green-2); margin-bottom: 26px; }
.modal-head h2 { font-size: 24px; margin-top: 6px; }
.co-section { margin-bottom: 24px; }
.co-label { display: flex; align-items: center; gap: 12px; color: var(--green-2); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.co-label::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--green-line), transparent); }

.pay-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pay-tile {
  position: relative; display: grid; justify-items: center; align-content: center; gap: 10px; min-height: 104px; padding: 14px 10px;
  border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: inherit; cursor: pointer;
  transition: border-color .15s, background .15s, transform .15s;
}
.pay-tile:hover:not(.off) { border-color: rgba(255, 255, 255, .25); transform: translateY(-1px); }
.pay-tile.on { border-color: var(--green-2); background: var(--green-soft); box-shadow: 0 0 0 1px var(--green-2) inset; }
.pay-tile.off { opacity: .45; cursor: not-allowed; }
.pay-tile .soon-pill { position: absolute; top: 7px; right: 7px; }
.pay-tile-mark { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 38px; flex-wrap: wrap; }
.pay-tile-name { font-weight: 700; font-size: 14px; }

/* Brand marks: text badges in each brand's colours */
.lg { display: inline-flex; align-items: center; justify-content: center; height: 28px; padding: 0 8px; border-radius: 6px; font-family: var(--body); font-weight: 800; font-size: 13px; line-height: 1.05; letter-spacing: 0; white-space: nowrap; }
.lg-fawry { background: #fff; color: #0d4c92; font-size: 16px; font-style: italic; letter-spacing: -.02em; box-shadow: inset 4px 0 0 #f7c21a; padding-left: 12px; }
.lg-visa { background: #1a1f71; color: #fff; font-style: italic; letter-spacing: .02em; border-bottom: 3px solid #f7b600; }
.lg-mc { position: relative; width: 40px; background: #0b0b0b; padding: 0; }
.lg-mc i { position: absolute; top: 6px; width: 16px; height: 16px; border-radius: 50%; }
.lg-mc i:first-child { left: 6px; background: #eb001b; }
.lg-mc i:last-child { left: 16px; background: #f79e1b; mix-blend-mode: screen; }
.lg-meeza { background: #e5f4ee; color: #006d4e; font-size: 12px; }
.lg-aman { background: #00a0c6; color: #fff; }
.lg-masary { background: #6a2c91; color: #fff; }
.lg-vf { background: #e60000; color: #fff; font-size: 10px; height: 32px; text-align: center; }
.lg-et { background: #7ab800; color: #fff; font-size: 10px; height: 32px; text-align: center; }
.lg-or { background: #ff7900; color: #000; font-size: 10px; height: 32px; text-align: center; }
.lg-pp { background: #fff; color: #009cde; font-style: italic; font-size: 16px; }
.lg-pp b { color: #003087; }
.lg-usdt { background: #26a17b; color: #fff; }
.lg-btc { background: #f7931a; color: #fff; }
.lg-bank { width: 44px; height: 36px; background: var(--surface-3); color: var(--green-2); padding: 0; }
.lg-bank svg { width: 22px; height: 22px; }

.co-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.receipt { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.receipt div { display: flex; justify-content: space-between; gap: 12px; padding: 13px 16px; border-top: 1px solid var(--line); }
.receipt div:first-child { border-top: 0; }
.receipt dt { color: var(--faint); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.receipt dd { margin: 0; font-weight: 700; text-align: right; }
.receipt .receipt-total { background: var(--green-soft); border-top-color: var(--green-line); }
.receipt .receipt-total dt { color: var(--text); }
.receipt .receipt-total dd { color: var(--green-2); font-family: var(--head); font-size: 22px; }
.co-note { margin-top: 10px; color: var(--muted); font-size: 13px; }
.modal-box > .alert { margin-bottom: 14px; }
#coPay { gap: 10px; }
#coPay svg { width: 18px; height: 18px; }

.pay-marks { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 14px; }
.pay-marks .lg { height: 22px; font-size: 10.5px; padding: 0 6px; }
.pay-marks .lg-mc { width: 32px; }
.pay-marks .lg-mc i { top: 4px; width: 14px; height: 14px; }
.pay-marks .lg-mc i:first-child { left: 4px; }
.pay-marks .lg-mc i:last-child { left: 13px; }
.pay-marks .lg-fawry, .pay-marks .lg-pp { font-size: 12px; }

@media (max-width: 760px) {
  .pay-tiles { grid-template-columns: repeat(2, 1fr); }
  .co-fields { grid-template-columns: 1fr; }
  .modal { padding: 0; align-items: end; }
  .modal-box { border-radius: 20px 20px 0 0; max-height: 92vh; padding: 22px 18px 24px; }
}

/* ---------- Reveal on scroll (only when JavaScript runs) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Tablets */
@media (max-width: 1000px) {
  .hero .wrap, .feature-row { grid-template-columns: 1fr; gap: 40px; }
  .feature-row.flip .feature-text { order: 0; }
  .hero-visual .window { transform: none; }
  .float-a { left: 12px; }
  .float-b { right: 12px; }
  .grid-3, .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .plan.free { grid-column: 1 / -1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .faq-layout { grid-template-columns: 1fr; }
  .faq-nav { position: static; display: flex; flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Phones */
@media (max-width: 1080px) {
  .menu-btn { display: block; }
  .nav, .header-cta { display: none; }
  .site-header.open .nav {
    display: grid; position: absolute; top: 68px; left: 0; right: 0; padding: 12px 16px 18px;
    background: var(--bg); border-bottom: 1px solid var(--line-2); box-shadow: 0 20px 40px rgba(0, 0, 0, .6); z-index: 60;
  }
  .site-header.open .nav a { padding: 12px 14px; font-size: 16px; }
  .site-header.open .nav .nav-account { display: block; color: var(--green-2); }
}
@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .hero { padding-top: 56px; }
  .grid-2, .grid-3, .grid-4, .steps, .plans { grid-template-columns: 1fr; }
  .float-card { display: none; }
  .pc-switch button { padding: 10px 16px; }
  .download-box { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .table th, .table td { padding: 12px 12px; font-size: 14px; }
}
