:root {
  --blue: #3b82f6;
  --blue-dark: #1d4ed8;
  --blue-soft: #eff6ff;
  --amber: #d97706;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --danger: #b91c1c;
  --ok: #047857;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  /* Keep the footer at the bottom on short pages */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }

a { color: var(--blue-dark); }

img { max-width: 100%; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 18px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: flex; align-items: center; gap: 20px; }
.nav a { text-decoration: none; color: var(--text); font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--blue-dark); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; }
.lang-switch {
  padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: transparent;
  font: inherit; font-weight: 500; font-size: 14px; color: var(--text); cursor: pointer;
}
.lang-switch:hover { border-color: var(--blue); color: var(--blue-dark); }
.nav .btn, .lang-switch { white-space: nowrap; }
.show-sm { display: none; }
@media (max-width: 640px) { .nav { gap: 12px; } .nav .hide-sm { display: none; } .nav .show-sm { display: inline; } }

/* Long pages carry both languages; lang.js sets <html lang> before first paint. */
html[lang="es"] [data-lang="en"], html:not([lang="es"]) [data-lang="es"] { display: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-outline { background: var(--blue-soft); color: var(--blue-dark); border-color: var(--blue); }
.btn-outline:hover { background: #dbeafe; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1e293b; }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-small { padding: 8px 14px; font-size: 14px; }
.btn[disabled] { opacity: 0.6; cursor: default; }
.btn-block { width: 100%; }

/* Sections */
section { padding: 80px 0; }
section.alt { background: var(--bg-alt); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 12px; }
h1 { font-size: clamp(34px, 6vw, 56px); letter-spacing: -0.02em; }
h2 { font-size: clamp(26px, 4vw, 38px); letter-spacing: -0.01em; }
h3 { font-size: 19px; }
h1, h2 { text-wrap: balance; }
.lead { text-wrap: pretty; }
.lead { font-size: 19px; color: var(--muted); max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; font-weight: 600; color: var(--blue-dark); margin-bottom: 8px; }

/* Hero */
.hero { padding: 96px 0 72px; background: linear-gradient(180deg, var(--blue-soft), var(--bg)); }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .note { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* Cards */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 40px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card p { margin: 0; color: var(--muted); }

/* Pricing */
.plan { display: flex; flex-direction: column; position: relative; }
.plan.featured { border: 2px solid var(--blue); box-shadow: 0 10px 30px rgba(59, 130, 246, 0.15); }
.plan .badge { position: absolute; top: -12px; left: 28px; background: var(--amber); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.plan .price { font-size: 36px; font-weight: 700; color: var(--ink); margin: 12px 0 2px; }
.plan .price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.plan .price-note { font-size: 13px; color: var(--muted); min-height: 20px; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 24px; flex: 1; }
.plan li { padding: 6px 0 6px 28px; position: relative; }
.plan li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 13px; position: absolute; left: 2px; top: 8px; color: var(--blue); }
.plan.current { outline: 3px solid #bfdbfe; }
/* Plan comparison table */
.cmp-details { margin-top: 20px; }
.cmp-details summary { cursor: pointer; font-weight: 600; color: var(--blue-dark); margin-bottom: 12px; }
.cmp-details .cmp-wrap { box-shadow: none; border: 1px solid var(--line); max-width: none; }
.cmp-title { text-align: center; margin: 56px 0 16px; font-size: 24px; }
section.navy .cmp-title { color: #fff; }
.cmp-wrap { max-width: 860px; margin: 0 auto; overflow-x: auto; border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(8, 26, 51, 0.15); }
.cmp { width: 100%; border-collapse: collapse; font-size: 15px; color: var(--text); }
.cmp th, .cmp td { padding: 11px 14px; border-top: 1px solid var(--line); text-align: center; }
.cmp thead th { border-top: 0; padding-top: 16px; font-size: 16px; color: var(--ink); }
.cmp th[scope=row], .cmp thead th:first-child { text-align: left; font-weight: 500; color: var(--ink); }
.cmp .cmp-group th { text-align: left; padding-top: 18px; font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); background: #f8fafc; }
.cmp td { font-weight: 600; color: var(--ink); white-space: nowrap; }
.cmp td i { color: var(--blue); }
.cmp-no { color: #cbd5e1; font-weight: 400; }
.cmp .featured { background: #eff6ff; }
.cmp thead .featured { color: var(--blue-dark); }
.cmp .current { box-shadow: inset 2px 0 0 #bfdbfe, inset -2px 0 0 #bfdbfe; }
@media (max-width: 560px) { .cmp { font-size: 13px; } .cmp th, .cmp td { padding: 9px 8px; } }
/* Two lines tall, so prices line up across cards */
.plan-tagline { min-height: 3.2em; }
@media (max-width: 860px) { .plan-tagline { min-height: 0; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--blue-dark); }

/* Prose (policies, help) */
.prose { padding: 56px 0 80px; }
.prose h1 { font-size: clamp(30px, 5vw, 42px); }
.prose h2 { font-size: 22px; margin-top: 36px; }
.prose h3 { font-size: 17px; margin-top: 24px; }
.prose .updated { color: var(--muted); }
.prose li { margin: 4px 0; }

/* Forms / account */
.panel { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-top: 24px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tabs button { border: 0; background: none; font: inherit; font-weight: 600; padding: 10px 14px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.active { color: var(--blue-dark); border-bottom-color: var(--blue); }
form { display: grid; gap: 14px; }
.row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; } }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink); }
input { font: inherit; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); }
input:focus { outline: 2px solid #bfdbfe; border-color: var(--blue); }
.msg { padding: 12px 14px; border-radius: 10px; font-size: 14px; }
.msg.error { background: #fef2f2; color: var(--danger); }
.msg.ok { background: #ecfdf5; color: var(--ok); }
.msg.info { background: var(--blue-soft); color: var(--blue-dark); }
.muted { color: var(--muted); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--blue-dark); cursor: pointer; text-decoration: underline; }
.plan-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.plan-name { font-size: 24px; font-weight: 700; color: var(--ink); }
.hidden { display: none !important; }
.center-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }

/* ---------- Color: home page bands, dark footer ---------- */
:root {
  --navy: #0b2545;
  --navy-deep: #081a33;
  --ocean: #0e4f9c;
  --cyan: #06b6d4;
  --aqua-bg: #ecfeff;
  --sand-bg: #fff7ed;
  --sun: #fbbf24;
}

.btn-sun { background: var(--sun); color: var(--navy); }
.btn-sun:hover { background: #f59e0b; }
.btn-glass { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.22); }
.btn-white { background: #fff; color: var(--ocean); }
.btn-white:hover { background: #e0f2fe; }

/* Hero: deep water with light caustics */
.hero-ocean {
  position: relative;
  overflow: hidden;
  padding-bottom: 120px;
  color: #e0f2fe;
  background:
    radial-gradient(600px 300px at 85% 10%, rgba(103, 232, 249, 0.35), transparent 70%),
    radial-gradient(500px 260px at 10% 90%, rgba(56, 189, 248, 0.3), transparent 70%),
    linear-gradient(135deg, var(--navy) 0%, var(--ocean) 55%, #0891b2 100%);
}
.hero-ocean h1 { color: #fff; }
.hero-ocean h1 em { color: #67e8f9; }
.hero-ocean .eyebrow { color: #67e8f9; }
.hero-ocean .lead, .hero-ocean .note { color: #bae6fd; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

.wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 70px; fill: var(--sand-bg); }
.wave-top { top: -1px; bottom: auto; fill: var(--bg); } /* the story section above pricing is white */

/* ---------- Home page ---------- */

/* Hero */
.hero-phone { justify-self: center; transform: rotate(2deg); }

/* Phone mockup, drawn in HTML to mirror the app's screens */
.phone {
  width: 290px; max-width: 100%; flex-shrink: 0;
  padding: 10px; border-radius: 42px; background: #0f172a;
  box-shadow: 0 30px 60px rgba(8, 26, 51, 0.35), inset 0 0 0 2px #334155;
}
.screen {
  display: flex; flex-direction: column; gap: 8px;
  height: 540px; overflow: hidden; border-radius: 32px;
  background: #f1f5f9; color: var(--text); font-size: 13px; line-height: 1.35;
}
.screen b { color: var(--ink); }
.screen small { display: block; font-size: 11.5px; }
.sb { display: flex; justify-content: space-between; padding: 12px 22px 0; font-size: 12px; font-weight: 600; color: var(--ink); }
.sb i { font-size: 11px; }
.app-head { padding: 4px 16px 2px; }
.app-head small { color: var(--muted); }
.app-head b { display: block; font-size: 22px; letter-spacing: -0.01em; }
.app-card { margin: 0 12px; padding: 12px; background: #fff; border-radius: 14px; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06); }
.app-card .label { color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; font-size: 10.5px; margin-bottom: 6px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pct { font-weight: 700; color: var(--blue); }
.bar { height: 8px; margin: 8px 0 6px; border-radius: 99px; background: #e2e8f0; overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--cyan), var(--blue)); }
.next-card { border: 2px solid #bfdbfe; }
.next-card .big { display: block; font-size: 17px; margin: 2px 0; }
.btn-row { display: flex; gap: 8px; margin-top: 10px; }
.mini-btn { flex: 1; text-align: center; padding: 8px 6px; border-radius: 10px; background: var(--blue); color: #fff; font-weight: 600; font-size: 12px; }
.mini-btn.ghost { background: var(--blue-soft); color: var(--blue-dark); }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 12px; }
.stat-row .app-card { margin: 0; }
.stat b { display: block; font-size: 22px; }
.stat small { color: var(--muted); }
.stat.warn b { color: var(--amber); }
.tabbar { margin-top: auto; display: flex; justify-content: space-around; padding: 14px 8px 20px; background: #fff; border-top: 1px solid var(--line); color: #94a3b8; font-size: 17px; }
.tabbar .on { color: var(--blue); }
.stops { display: grid; gap: 8px; }
.stop { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 500; }
.stop i { color: #cbd5e1; }
.stop.done { color: var(--muted); text-decoration: line-through; }
.stop.done i { color: #22c55e; }
.save-btn { margin: auto 12px 18px; padding: 12px; text-align: center; border-radius: 12px; background: var(--blue); color: #fff; font-weight: 600; }
.readings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.readings span { padding: 8px; border-radius: 10px; background: #f8fafc; border: 1px solid var(--line); font-size: 10.5px; color: var(--muted); }
.readings b { display: block; font-size: 16px; }
.checks { display: grid; gap: 8px; }
.checks span { color: var(--muted); }
.checks .on { color: var(--ink); }
.checks .on i { color: var(--blue); }
.photo-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ph { display: flex; align-items: flex-end; height: 72px; padding: 6px 8px; border-radius: 10px; color: #fff; font-size: 11px; font-weight: 700; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); }
.ph-before { background: linear-gradient(160deg, #a3b18a, #4d7c0f); }
.ph-after { background: linear-gradient(160deg, #67e8f9, #0284c7); }
.pool-hero { margin: 0 12px; padding: 18px 14px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, var(--ocean), var(--cyan)); }
.pool-hero b { display: block; color: #fff; font-size: 18px; }
.pool-hero small { color: #cffafe; }
.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 6px; }
.spec-grid span { font-size: 10.5px; color: var(--muted); }
.spec-grid b { display: block; font-size: 13px; }
.gate { display: flex; gap: 10px; align-items: center; }
.gate > i { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: #fef3c7; color: var(--amber); }
.gate .label { margin-bottom: 0; }
.hist { display: flex; justify-content: space-between; padding: 6px 0; border-top: 1px solid var(--line); }
.hist:first-of-type { border-top: 0; }
.hist span:first-child { font-weight: 600; color: var(--ink); }
.issue { border-left: 4px solid var(--line); }
.issue.crit { border-left-color: #dc2626; }
.issue.rep { border-left-color: var(--amber); }
.issue.low { border-left-color: var(--blue); }
.issue.done { opacity: 0.6; }
.sev { flex-shrink: 0; font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
.sev.crit { background: #fee2e2; color: #b91c1c; }
.sev.rep { background: #fef3c7; color: #b45309; }
.sev.low { background: #dbeafe; color: #1d4ed8; }
.sev.ok { background: #dcfce7; color: #15803d; }

/* Before / after */
section.sand { background: var(--sand-bg); }
.versus { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; max-width: 860px; margin: 40px auto 0; }
.vs-card { position: relative; padding: 36px 22px 22px; border-radius: 20px; background: #fff; box-shadow: 0 10px 30px rgba(154, 52, 18, 0.08); }
.vs-label { position: absolute; top: -13px; left: 22px; padding: 4px 12px; border-radius: 99px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.vs-before .vs-label { background: #fed7aa; color: #9a3412; }
.vs-after .vs-label { background: var(--blue); color: #fff; }
.vs-after { border: 2px solid #bfdbfe; }
.vs-arrow { font-size: 22px; color: #fb923c; }
.chat { display: flex; flex-direction: column; gap: 8px; }
.bubble { align-self: flex-start; max-width: 85%; margin: 0; padding: 8px 12px; border-radius: 16px 16px 16px 4px; background: #f1f5f9; color: var(--text); font-size: 14px; }
.bubble.me { align-self: flex-end; border-radius: 16px 16px 4px 16px; background: #22c55e; color: #fff; }
.stop-done { display: grid; gap: 12px; }
.stop-done > .row-between b { font-size: 17px; color: var(--ink); }
.pill-ok { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: #dcfce7; color: #15803d; white-space: nowrap; }
.reading-row { display: flex; gap: 8px; }
.reading-row span { flex: 1; text-align: center; padding: 8px 4px; border-radius: 10px; background: #f8fafc; border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.reading-row b { color: var(--ink); }
.stop-done .ph { height: 64px; }
@media (max-width: 760px) {
  .versus { grid-template-columns: 1fr; gap: 28px; }
  .vs-arrow { justify-self: center; transform: rotate(90deg); }
}

/* Feature showcase: a mockup per job, alternating sides */
section.aqua { background: linear-gradient(180deg, var(--aqua-bg), #e0f2fe); }
.feature { display: flex; align-items: center; justify-content: center; gap: 72px; margin-top: 72px; }
.feature.flip { flex-direction: row-reverse; }
.feature-text { max-width: 400px; }
.feature-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ocean); }
.feature h3 { font-size: clamp(26px, 3.4vw, 34px); margin: 8px 0 8px; letter-spacing: -0.01em; }
.feature-text > p { font-size: 18px; color: var(--muted); margin: 0 0 18px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 28px; font-weight: 500; color: var(--ink); }
.ticks li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; background: var(--blue); color: #fff; }
.week { width: 460px; max-width: 100%; padding: 20px; border-radius: 20px; background: #fff; box-shadow: 0 20px 50px rgba(14, 79, 156, 0.15); }
.week-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; color: var(--ink); }
.legend { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.legend i { width: 10px; height: 10px; border-radius: 3px; margin-left: 8px; }
.dot-a { background: var(--blue); }
.dot-b { background: var(--cyan); }
.week-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.day { display: flex; flex-direction: column; gap: 6px; min-height: 150px; padding: 8px 6px; border-radius: 12px; background: #f8fafc; }
.day small { text-align: center; font-weight: 700; color: var(--muted); font-size: 12px; }
.day.today { background: var(--blue-soft); outline: 2px solid #bfdbfe; }
.day.today small { color: var(--blue-dark); }
/* Invoice, report and expense mockups */
.inv-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 8px; margin-top: 2px; border-top: 2px solid var(--ink); color: var(--ink); font-weight: 600; }
.inv-total b { font-size: 17px; }
.inv-meta-mock { display: flex; justify-content: space-between; }
.inv-meta-mock small { color: var(--muted); }
.hist i { font-size: 10px; color: var(--muted); margin-left: 4px; }
.rep-stats-mock { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.rep-stats-mock span { padding: 10px; border-radius: 12px; background: #f8fafc; color: var(--muted); font-size: 12px; }
.rep-stats-mock b { display: block; font-size: 19px; color: var(--ink); }
.rep-stats-mock .good { background: var(--blue-soft); outline: 2px solid #bfdbfe; }
.rep-stats-mock .good b { color: var(--blue-dark); }
.rep-bars { display: flex; align-items: flex-end; gap: 10px; height: 130px; padding: 0 4px; border-bottom: 1px solid #94a3b8; }
.rep-bars span { flex: 1; max-width: 24px; margin: 0 auto; background: var(--blue); border-radius: 4px 4px 0 0; }
.rep-axis { display: flex; gap: 10px; padding: 6px 4px 0; }
.rep-axis span { flex: 1; text-align: center; font-size: 11px; color: var(--muted); }
.r { padding: 8px 4px; border-radius: 8px; color: #fff; font-size: 11px; font-weight: 600; text-align: center; }
.r.a { background: var(--blue); }
.r.b { background: var(--cyan); }
/* Phones: just the count; "stops" / "paradas" doesn't fit a day column. */
@media (max-width: 480px) { .r .stops-word { display: none; } }
.extras { list-style: none; padding: 0; margin: 80px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.extras li { display: grid; justify-items: center; text-align: center; gap: 2px; padding: 22px 14px; border-radius: var(--radius); background: #fff; border: 1px solid #bae6fd; }
.extras i { width: 44px; height: 44px; margin-bottom: 8px; display: grid; place-items: center; border-radius: 12px; background: var(--blue-soft); color: var(--ocean); font-size: 18px; }
.extras b { color: var(--ink); }
.extras span { font-size: 14px; color: var(--muted); }
@media (max-width: 860px) {
  .feature, .feature.flip { flex-direction: column; gap: 32px; margin-top: 64px; }
  .feature-text { text-align: center; }
  .ticks { justify-content: center; text-align: left; }
  .extras { grid-template-columns: 1fr 1fr; }
}

/* Story */
section.story { background: var(--bg); }
.story-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.story-text p:last-child { font-size: 18px; color: var(--text); margin-bottom: 0; }
.story .hl { display: block; color: var(--ocean); }
.story-rule {
  margin: 0; padding: 28px 30px;
  background: var(--navy); color: #fff; border-radius: 20px;
  font-size: 22px; font-weight: 600; line-height: 1.4;
  box-shadow: 0 14px 34px rgba(11, 37, 69, 0.18);
}
.rule-label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sun); }
@media (max-width: 860px) { .story-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Pricing: navy */
section.navy { position: relative; background: var(--navy); padding-top: 130px; }
section.navy h2 { color: #fff; }
section.navy .lead { color: #bae6fd; }
section.navy .plan { border-color: transparent; }
section.navy .plan.featured { border-color: var(--cyan); box-shadow: 0 20px 50px rgba(6, 182, 212, 0.35); }

/* Footer: dark on every page */
.site-footer { background: var(--navy-deep); border-top: 0; color: #94a3b8; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #67e8f9; }

/* Inner pages: a soft tinted backdrop instead of plain white */
body:has(main.prose) { background: linear-gradient(180deg, #eff6ff 0, #ffffff 360px); }
main.prose .panel { box-shadow: 0 8px 24px rgba(14, 79, 156, 0.06); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- Demo: the main way in ---------- */
.btn-demo {
  background: #fff; color: var(--navy);
  padding: 14px 24px 14px 14px; font-size: 16px;
  box-shadow: 0 8px 24px rgba(8, 26, 51, 0.3), 0 0 0 4px rgba(103, 232, 249, 0.35);
}
.btn-demo:hover { background: #ecfeff; }
.btn-demo .play-dot {
  position: relative; width: 30px; height: 30px; flex-shrink: 0;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--cyan); color: #fff; font-size: 11px;
}
.btn-demo .play-dot i { margin-left: 2px; } /* the triangle looks centred */
.btn-demo .play-dot::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--cyan); animation: demo-ping 2s ease-out infinite;
}
@keyframes demo-ping { from { transform: scale(1); opacity: 0.8; } to { transform: scale(1.9); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .btn-demo .play-dot::after { animation: none; display: none; } }

/* "Install app" in the hero (js/install.js): solid cyan with a glow, the phone icon in a
   badge that gives a little shake now and then, and a second line saying what it does. */
.btn-install {
  background: linear-gradient(135deg, #22d3ee 0%, var(--cyan) 55%, #0891b2 100%); color: #fff;
  padding: 10px 22px 10px 10px; gap: 12px; text-align: left;
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.45), 0 0 0 4px rgba(103, 232, 249, 0.25);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn-install:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(6, 182, 212, 0.55), 0 0 0 5px rgba(103, 232, 249, 0.35); }
.btn-install:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.install-dot {
  width: 38px; height: 38px; flex-shrink: 0; display: grid; place-items: center;
  border-radius: 50%; background: #fff; color: #0891b2; font-size: 18px;
}
.install-dot i { animation: install-nudge 4s ease-in-out infinite; transform-origin: 50% 80%; }
.install-text { display: flex; flex-direction: column; line-height: 1.2; }
.install-text b { font-size: 16px; }
.install-text small { font-size: 12.5px; font-weight: 500; opacity: 0.92; }
@keyframes install-nudge {
  0%, 80%, 100% { transform: rotate(0); }
  84% { transform: rotate(-14deg); }
  88% { transform: rotate(12deg); }
  92% { transform: rotate(-8deg); }
  96% { transform: rotate(4deg); }
}
@media (prefers-reduced-motion: reduce) { .install-dot i { animation: none; } .btn-install:hover { transform: none; } }
.btn-lg { padding: 16px 28px 16px 16px; font-size: 17px; }
.hero-ocean .demo-note { margin-top: 6px; color: #e0f2fe; font-weight: 500; }
.demo-note i { color: #67e8f9; margin-right: 4px; }

/* Header: a filled pill, visible on phones too */
.nav a.btn-demo-nav { background: var(--cyan); color: #fff; }
.nav a.btn-demo-nav:hover { background: #0891b2; color: #fff; }
.btn-demo-nav i { font-size: 11px; }

/* Call-out at the end of the features */
.demo-band {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-top: 56px; padding: 32px 36px; border-radius: 20px; color: #e0f2fe;
  background:
    radial-gradient(400px 200px at 90% 0%, rgba(103, 232, 249, 0.35), transparent 70%),
    linear-gradient(135deg, var(--navy), var(--ocean));
  box-shadow: 0 20px 50px rgba(14, 79, 156, 0.25);
}
.demo-band h3 { color: #fff; font-size: clamp(22px, 3vw, 28px); margin-bottom: 6px; }
.demo-band p { margin: 0; max-width: 520px; color: #bae6fd; }
@media (max-width: 640px) { .demo-band { padding: 26px 22px; text-align: center; justify-content: center; } }

.btn-demo-solid { background: var(--cyan); color: #fff; }
.btn-demo-solid:hover { background: #0891b2; }

/* ---------- FAQ ---------- */
section.faq { background: var(--bg-alt); }
.faq-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 28px 0 8px; }
.faq-jump a {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: none;
}
.faq-jump a:hover { border-color: var(--blue); color: var(--blue-dark); }
.faq-jump i { color: var(--ocean); font-size: 13px; }
.faq-group { margin-top: 40px; scroll-margin-top: 80px; }
.faq-group h3 { display: flex; align-items: center; gap: 10px; font-size: 20px; margin-bottom: 12px; }
.faq-group h3 i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--blue-soft); color: var(--ocean); font-size: 15px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-top: 8px; }
.faq details[open] { border-color: #bfdbfe; box-shadow: 0 6px 18px rgba(14, 79, 156, 0.06); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 15px 18px; font-weight: 600; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 12px; color: var(--muted); transition: transform 0.15s; }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq summary:hover { color: var(--blue-dark); }
.faq summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 12px; }
.faq details p { margin: 0; padding: 0 18px 16px; color: var(--text); }
.faq-more { margin-top: 48px; padding: 28px; border-radius: 16px; background: #fff; border: 1px solid var(--line); text-align: center; }
.faq-more p { margin: 0 0 16px; color: var(--text); }
/* Small phones: logo only, so the Demo pill fits beside the language and account buttons */
@media (max-width: 420px) {
  .nav { gap: 8px; }
  .brand { font-size: 0; gap: 0; }
  .nav .btn-small { padding: 8px 11px; }
}

/* "Install app" (js/install.js): iPhone/iPad steps and the installed notice. */
dialog.inst-dlg { width: min(420px, calc(100vw - 32px)); padding: 22px 24px; border: 0; border-radius: 16px; color: var(--ink); box-shadow: 0 20px 50px rgba(8, 26, 51, 0.3); }
dialog.inst-dlg::backdrop { background: rgba(8, 26, 51, 0.5); }
.inst-dlg h2 { margin: 0 0 14px; font-size: 19px; }
.inst-steps { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 10px; }
.inst-key { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin-left: 4px; border-radius: 6px; background: var(--blue-soft); color: var(--blue-dark); vertical-align: middle; }
.inst-note { margin: 0 0 16px; font-size: 13px; color: #64748b; }
.inst-dlg form { display: flex; justify-content: flex-end; margin: 0; }
.inst-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 14px; box-shadow: 0 8px 24px rgba(8, 26, 51, 0.25); }
.inst-dlg > p { margin: 0 0 12px; }
