/* Be Apped — palette lifted from the logo */
:root {
  --ink: #0b1a2e;
  --ink-2: #33415a;
  --muted: #5b6b85;
  --line: #dbe6f2;
  --bg: #ffffff;
  --bg-soft: #f2f9ff;
  --bg-tint: #dbf4ff;
  --cyan: #00d4ff;
  --blue: #0092ff;
  --blue-deep: #0a5fd6;
  --orange: #ff6f00;
  --amber: #ffaa00;
  --red: #ff3100;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(11, 26, 46, 0.08);
  --font-head: "Sora", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--orange); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.5em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin-bottom: 0.4em; }
strong { font-weight: 600; }
.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 740px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 0.6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-head); font-weight: 600; font-size: 0.98rem;
  padding: 0.8rem 1.3rem; border-radius: 999px; text-decoration: none;
  border: 2px solid transparent; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 6px 18px rgba(255, 111, 0, 0.3); }
.btn-primary:hover { background: #e86300; color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-deep); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { color: var(--blue-deep); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-outline-light:hover { border-color: var(--cyan); color: var(--cyan); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; }
.brand img { width: 56px; height: 56px; }
.site-nav { display: flex; gap: 0.25rem; margin-left: auto; flex-wrap: wrap; }
.site-nav a, .footer-nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; padding: 0.45rem 0.7rem; border-radius: 8px; font-size: 0.95rem; }
.site-nav a:hover { background: var(--bg-soft); color: var(--blue-deep); }
.site-nav a[aria-current="page"] { color: var(--blue-deep); background: var(--bg-tint); }
.header-cta { padding: 0.6rem 1.1rem; }
@media (max-width: 860px) {
  .header-inner { flex-wrap: wrap; min-height: 0; padding-block: 0.7rem; row-gap: 0.4rem; }
  .brand { margin-right: auto; }
  .site-nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; flex-wrap: nowrap; gap: 0; -webkit-overflow-scrolling: touch; }
  .site-nav a { flex: none; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(900px 500px at 85% -10%, rgba(0, 212, 255, 0.35), transparent 60%),
              radial-gradient(700px 500px at -10% 110%, rgba(255, 111, 0, 0.35), transparent 60%),
              linear-gradient(160deg, #0b1a2e 0%, #10284a 60%, #0b1a2e 100%);
  color: #fff;
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3rem, 6vw, 5rem);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(60% 60% at 70% 30%, #000 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(60% 60% at 70% 30%, #000 20%, transparent 100%);
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center; }
.hero h1 { color: #fff; margin-bottom: 0.6em; }
.hero .lede { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: rgba(255,255,255,0.86); max-width: 38ch; }
.hero .kicker { display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); margin-bottom: 1rem; }
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero-art { display: flex; justify-content: center; }
.hero-art img { width: min(100%, 380px); filter: drop-shadow(0 30px 60px rgba(0, 212, 255, 0.25)); animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .hero-art img { animation: none; } .btn:hover { transform: none; } }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 2rem; }
  .hero-art { order: -1; }
  .hero-art img { width: min(60%, 260px); }
}

/* Page hero (inner pages) */
.page-hero { background: linear-gradient(180deg, var(--bg-soft), #fff); border-bottom: 1px solid var(--line); padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem); }
.page-hero .lede { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--ink-2); max-width: 62ch; }
.page-hero .kicker { display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-deep); margin-bottom: 0.8rem; }
.breadcrumb { font-size: 0.9rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--muted); }

/* Proof strip */
.proof { border-bottom: 1px solid var(--line); background: #fff; }
.proof .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; padding-block: 0.9rem; align-items: center; font-size: 0.93rem; color: var(--ink-2); }
.proof .label { font-family: var(--font-head); font-weight: 600; color: var(--ink); }
.proof span::before { content: "\2713"; color: var(--blue); font-weight: 700; margin-right: 0.45rem; }
.proof .label::before { content: none; }

/* Sections */
section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
section.alt { background: var(--bg-soft); }
.section-head { max-width: 720px; margin-bottom: 2rem; }
.section-head p { color: var(--ink-2); font-size: 1.05rem; }
.prose { max-width: 720px; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; }
.prose > :first-child { margin-top: 0; }
.answer { border-left: 4px solid var(--cyan); background: var(--bg-soft); padding: 1rem 1.25rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 0 0 1.5rem; font-size: 1.05rem; }
.answer p:last-child { margin-bottom: 0; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card h3 { margin-top: 0.4rem; }
.card p { color: var(--ink-2); }
.card .more { margin-top: auto; font-weight: 600; text-decoration: none; }
.card .more::after { content: " \2192"; }
.card-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; color: #fff; font-size: 1.1rem; }
.icon-blue { background: linear-gradient(135deg, var(--blue), var(--cyan)); }
.icon-orange { background: linear-gradient(135deg, var(--red), var(--amber)); }
.icon-navy { background: var(--ink); }
.card.feature { border-top: 5px solid var(--blue); }
.card.feature.orange { border-top-color: var(--orange); }

/* Two-column */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; gap: 1.5rem; } }

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; }
.checklist li { position: relative; padding-left: 2.6rem; }
.checklist li::before { content: "\2713"; position: absolute; left: 0; top: 2px; width: 28px; height: 28px; border-radius: 50%; background: var(--bg-tint); color: var(--blue-deep); font-weight: 700; display: grid; place-items: center; font-size: 0.9rem; }
.checklist strong { display: block; }

/* Numbered steps */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 1.2rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 1rem; align-items: start; }
.steps li::before { content: counter(step); width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: var(--cyan); font-family: var(--font-head); font-weight: 700; display: grid; place-items: center; font-size: 1.1rem; }
.steps h3 { margin: 0.3rem 0 0.25rem; }
.steps p { margin: 0; color: var(--ink-2); }

/* Comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 0.97rem; }
th, td { text-align: left; padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-soft); font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; }
tr:last-child td { border-bottom: 0; }

/* Callouts */
.callout { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.6rem; background: #fff; }
.callout.warn { border-color: rgba(255, 111, 0, 0.4); background: #fff8f1; }
.callout h3 { margin-top: 0; }

/* FAQ */
.faq { background: var(--bg-soft); }
.faq-list { max-width: 800px; display: grid; gap: 0.7rem; }
details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 1.2rem; }
summary { cursor: pointer; font-family: var(--font-head); font-weight: 600; padding: 1rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--blue); font-size: 1.4rem; line-height: 1; flex: none; }
details[open] summary::after { content: "\2212"; }
.faq-a { padding-bottom: 1.1rem; color: var(--ink-2); }
.faq-a p:last-child { margin-bottom: 0; }

/* CTA */
.cta { background: linear-gradient(135deg, #0b1a2e, #123a6b); color: #fff; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,0.85); max-width: 56ch; }
.cta-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: center; }
.cta-actions { display: flex; flex-direction: column; gap: 0.7rem; align-items: flex-start; }
.cta .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.4); }
.cta .btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.cta .btn-primary { word-break: break-all; white-space: normal; }
@media (max-width: 800px) { .cta-inner { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #fff; padding-block: 2.5rem; font-size: 0.93rem; color: var(--ink-2); }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 2rem; }
.footer-brand { display: flex; gap: 0.8rem; align-items: flex-start; }
.footer-brand strong { font-family: var(--font-head); color: var(--ink); }
.footer-nav { display: flex; flex-direction: column; gap: 0.1rem; }
.footer-nav a { padding: 0.3rem 0; }
.footer-contact a { word-break: break-all; }
.fine { color: var(--muted); font-size: 0.85rem; margin-top: 1rem; }
@media (max-width: 800px) { .footer-inner { grid-template-columns: 1fr; } }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 2rem; }
.contact-card h2 { color: #fff; }
.contact-card a { color: var(--cyan); }
.contact-card .btn-primary { margin-top: 1rem; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; background: var(--bg-soft); padding: 0.1em 0.4em; border-radius: 5px; }

/* Contact form */
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.contact-form h2 { margin-top: 0; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.35rem; }
.field .opt { font-weight: 400; color: var(--muted); font-size: 0.85rem; margin-left: 0.3rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 0.7rem 0.85rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 146, 255, 0.15); }
.field.hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }
.contact-form .btn { width: 100%; justify-content: center; }
.contact-form .btn[disabled] { opacity: 0.7; cursor: default; transform: none; }
.contact-form .fine { margin: 0.9rem 0 0; }
.form-status { border-radius: var(--radius-sm); padding: 0.8rem 1rem; font-weight: 500; }
.form-status.ok { background: #e6fbf0; color: #0b6b3a; border: 1px solid #b9ecd0; }
.form-status.err { background: #fff2ee; color: #a12a00; border: 1px solid #ffc9b5; }
