/* RedRok / OnSite website styles */
:root {
  --navy-900: #050f2c;
  --navy-800: #0a1c4a;
  --navy-700: #10296a;
  --cyan: #1ec8ff;
  --blue: #1677ff;
  --grad: linear-gradient(135deg, #22d3ff 0%, #1677ff 100%);
  --wa: #25d366;
  --wa-dark: #0b5c3b;
  --ink: #0f1a33;
  --muted: #55627d;
  --line: #e2e8f3;
  --bg: #ffffff;
  --bg-soft: #f4f7fc;
  --card: #ffffff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(10, 28, 74, .08);
  --max: 1160px;
  --accent: var(--blue);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.65 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3, h4 { font-family: "Montserrat", "Inter", system-ui, sans-serif; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(5, 15, 44, .92); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid rgba(255,255,255,.08); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 1.25rem; }
/* R + mountain cropped from the full logo, shown as a black tile to match the logo's background */
.brand-mark { width: 40px; height: 40px; border-radius: 10px; background: #000 url(/assets/redrok-logo.webp) -15.8px -3.4px / 71.7px 71.7px no-repeat; }
.brand-red { color: #e8101a; }
.nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: #cfd9f1; text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: .95rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.1); }
.nav-links .nav-cta { background: var(--grad); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; background: var(--navy-900); padding: 12px 20px 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px 14px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 0; cursor: pointer; font-size: 1rem; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 24px rgba(22, 119, 255, .35); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.btn-wa { background: var(--wa); color: #06331f; box-shadow: 0 8px 24px rgba(37, 211, 102, .3); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1200px 600px at 85% -10%, rgba(30,200,255,.25), transparent 60%), radial-gradient(900px 500px at -10% 110%, rgba(22,119,255,.25), transparent 60%), linear-gradient(180deg, var(--navy-900), var(--navy-800)); padding: 88px 0 96px; }
.hero p.lead { font-size: 1.2rem; color: #c9d6f3; max-width: 640px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero-art { display: grid; place-items: center; }
.hero-art img { width: min(360px, 80%); height: auto; aspect-ratio: 1; border-radius: 22%; box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.06); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); margin-bottom: 14px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 36px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.12); }
.hero-stats div { min-width: 120px; }
.hero-stats strong { display: block; font-family: "Montserrat", sans-serif; font-size: 1.6rem; color: #fff; }
.hero-stats span { color: #9fb0d6; font-size: .9rem; }
@media (max-width: 860px) {
  .hero { padding: 56px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { order: -1; }
  .hero-art img { width: 200px; }
}

/* Sections */
section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: linear-gradient(180deg, var(--navy-800), var(--navy-900)); color: #fff; }
.section-dark p { color: #c9d6f3; }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-dark .section-head p { color: #c9d6f3; }
@media (max-width: 640px) { section { padding: 60px 0; } }

/* Cards & grids */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; }
.card h3 { margin-top: 4px; }
.section-dark .card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); box-shadow: none; }
.section-dark .card p { color: #b8c6e8; }
.icon { width: 48px; height: 48px; border-radius: 14px; background: var(--grad); display: grid; place-items: center; color: #fff; margin-bottom: 16px; }
.icon svg { width: 24px; height: 24px; }
.icon-wa { background: var(--wa); color: #06331f; }

.product-card { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(10,28,74,.14); }
.product-card .more { margin-top: auto; font-weight: 600; color: var(--accent); }
.product-card.onsite { background: linear-gradient(160deg, var(--navy-800), var(--navy-900)); color: #fff; border: 0; }
.product-card.onsite p { color: #c9d6f3; }
.product-card.onsite .more { color: var(--cyan); }
.product-card.wa { background: linear-gradient(160deg, #0d3b2a, #06231a); color: #fff; border: 0; }
.product-card.wa p { color: #c3e6d4; }
.product-card.wa .more { color: var(--wa); }
.product-logo { width: 64px; height: 64px; border-radius: 16px; }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 64px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; display: grid; place-items: center; font-family: "Montserrat", sans-serif; }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.checklist { list-style: none; padding: 0; margin: 0 0 1.4em; }
.checklist li { position: relative; padding-left: 34px; margin-bottom: 12px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--grad) ; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12'/%3E%3C/svg%3E"); }
.checklist li::after { content: ""; position: absolute; left: 7px; top: 9px; width: 8px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.wa-theme .checklist li::before { background: var(--wa); }

/* Phone mockup */
.phone { width: 300px; max-width: 100%; margin: 0 auto; border-radius: 38px; padding: 12px; background: #0b1020; box-shadow: 0 30px 70px rgba(5,15,44,.35); }
.phone-screen { border-radius: 28px; overflow: hidden; background: linear-gradient(180deg, var(--navy-800), var(--navy-900)); color: #fff; padding: 26px 20px; min-height: 520px; display: flex; flex-direction: column; gap: 14px; }
.phone-screen .ps-title { font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 1.15rem; }
.ps-card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 14px; font-size: .9rem; color: #c9d6f3; }
.ps-card strong { color: #fff; display: block; }
.ps-btn { margin-top: auto; background: var(--grad); border-radius: 16px; padding: 16px; text-align: center; font-weight: 700; }
.ps-ok { color: #5ef0a5; font-weight: 600; }

/* WhatsApp chat mockup */
.chat { width: 330px; max-width: 100%; margin: 0 auto; border-radius: 26px; overflow: hidden; box-shadow: 0 30px 70px rgba(6,35,26,.3); background: #efeae2; }
.chat-head { background: #075e54; color: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 10px; font-weight: 600; }
.chat-head .av { width: 34px; height: 34px; border-radius: 50%; background: var(--wa); display: grid; place-items: center; color: #06331f; font-weight: 800; }
.chat-head small { display: block; font-weight: 400; opacity: .8; font-size: .75rem; }
.chat-body { padding: 16px 12px; display: flex; flex-direction: column; gap: 8px; font-size: .9rem; min-height: 420px; }
.msg { max-width: 82%; padding: 8px 12px; border-radius: 10px; box-shadow: 0 1px 1px rgba(0,0,0,.08); color: #111b21; line-height: 1.45; }
.msg.in { background: #fff; align-self: flex-start; border-top-left-radius: 2px; }
.msg.out { background: #d9fdd3; align-self: flex-end; border-top-right-radius: 2px; }

/* WhatsApp theme */
.wa-theme { --accent: #128c4a; }
.hero.wa-hero { background: radial-gradient(1000px 520px at 85% -10%, rgba(37,211,102,.28), transparent 60%), linear-gradient(180deg, #06231a, #0b3a2a); }
.hero.wa-hero .eyebrow { color: var(--wa); }
.wa-theme .step::before { background: var(--wa); color: #06331f; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); }

/* CTA band */
.cta-band { background: var(--grad); color: #fff; border-radius: 26px; padding: 56px 40px; text-align: center; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 620px; margin: 0 auto 24px; font-size: 1.1rem; }
.cta-band .btn { background: #fff; color: var(--navy-800); }
.cta-band .btn-row { justify-content: center; }
.wa-theme .cta-band { background: linear-gradient(135deg, #25d366, #128c4a); }

/* Comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .96rem; }
th, td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
th { background: var(--bg-soft); font-weight: 700; color: var(--ink); }
tr:last-child td { border-bottom: 0; }

/* Legal / article */
.page-hero { background: linear-gradient(180deg, var(--navy-900), var(--navy-800)); color: #fff; padding: 64px 0 56px; }
.page-hero p { color: #c9d6f3; max-width: 720px; font-size: 1.1rem; margin: 0; }
.article { max-width: 820px; margin: 0 auto; }
.article h2 { font-size: 1.4rem; margin-top: 2em; scroll-margin-top: 90px; }
.article li { margin-bottom: 6px; }
.toc { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; padding: 18px 24px; }
.toc ol { margin: 8px 0 0; padding-left: 20px; columns: 2; column-gap: 32px; }
@media (max-width: 640px) { .toc ol { columns: 1; } }

/* Forms */
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
label { font-weight: 600; font-size: .92rem; display: block; margin-bottom: 6px; }
input, select, textarea { width: 100%; font: inherit; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(22,119,255,.15); }
textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--muted); }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon { margin: 0; flex: none; }

/* Breadcrumb */
.breadcrumb { font-size: .88rem; color: #9fb0d6; margin-bottom: 18px; }
.breadcrumb a { color: #cfd9f1; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* Footer */
.site-footer { background: var(--navy-900); color: #9fb0d6; padding: 64px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #cfd9f1; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; }

.muted { color: var(--muted); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(30,200,255,.12); color: var(--blue); }
