/* Marketing site — "Premium SaaS Minimal" direction (approved 2026-09-27),
   brought into line with the existing sales deck's brand system (2026-09-27
   design pass, sales/optiselect-deck.html): Montserrat/Inter, coral accent
   #E76185 rather than an invented red, navy #111037 kept as-is. */
:root {
  --navy: #111037;
  --navy-deep: #0b0b28;
  --red: #E76185;
  --ink: #E7E7F5;
  --ink-dim: rgba(231, 231, 245, .7);
  --max-width: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--navy);
  color: var(--ink);
  line-height: 1.5;
}
h1, h2, h3 { font-family: 'Montserrat', sans-serif; font-weight: 800; }
a { color: inherit; }
img, video { max-width: 100%; display: block; }

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* Nav */
.site-nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 11, 40, .85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 92px; position: relative; }
.site-nav .logo img { height: 64px; width: auto; }
.site-nav .links { display: flex; align-items: center; gap: 28px; }
.site-nav .links a { font-size: 14px; color: var(--ink-dim); text-decoration: none; }
.site-nav .links a:hover { color: var(--ink); }
.site-nav .login-btn {
  border: 1px solid rgba(255, 255, 255, .35); border-radius: 24px;
  padding: 8px 20px; font-size: 14px; text-decoration: none; color: var(--ink) !important;
}
.site-nav .login-btn:hover { background: rgba(255, 255, 255, .08); }
.nav-toggle { display: none; background: none; border: none; color: var(--ink); font-size: 22px; cursor: pointer; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav .links {
    position: absolute; top: 92px; left: 0; right: 0;
    background: var(--navy-deep); flex-direction: column; align-items: flex-start;
    padding: 16px 24px; gap: 16px; display: none;
  }
  .site-nav .links.open { display: flex; }
}

/* Hero */
.hero {
  background: radial-gradient(circle at 25% 15%, #23236e 0%, var(--navy) 60%);
  padding: 96px 0 72px; text-align: center; position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; bottom: -60px; right: -40px;
  width: 220px; height: 220px; border-radius: 50%;
  background: rgba(221, 66, 66, .28); filter: blur(6px);
}
.hero h1 { font-size: clamp(28px, 5vw, 48px); font-weight: 300; line-height: 1.25; margin: 0 0 16px; }
.hero h1 strong { font-weight: 700; }
.hero p.lead { font-size: 18px; color: var(--ink-dim); max-width: 620px; margin: 0 auto 32px; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 24px; padding: 12px 26px; font-size: 15px; font-weight: 600;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--red); color: white !important; }
.btn-primary:hover { background: #c53a3a; }
.btn-ghost { border-color: rgba(255, 255, 255, .4); color: var(--ink) !important; background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }

.trust-strip {
  border-top: 1px solid rgba(255, 255, 255, .08);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  padding: 20px 0; text-align: center; font-size: 14px; color: var(--ink-dim);
}

.section { padding: 72px 0; }
.section h2 { font-size: 30px; font-weight: 700; text-align: center; margin: 0 0 12px; }
.section p.section-lead { text-align: center; color: var(--ink-dim); max-width: 560px; margin: 0 auto 48px; }
.section-alt { background: rgba(255, 255, 255, .02); }

.faq-list { max-width: 720px; margin: 40px auto 0; display: flex; flex-direction: column; gap: 28px; }
.faq-item h3 { font-size: 17px; font-weight: 700; margin: 0 0 8px; }
.faq-item p { margin: 0; color: var(--ink-dim); line-height: 1.5; }
.faq-item p a { color: #ff9a9a; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.feature-card {
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px; padding: 28px;
}
.feature-card i { font-size: 22px; color: var(--red); margin-bottom: 14px; display: block; }
.feature-card h3 { margin: 0 0 8px; font-size: 18px; }
.feature-card p { margin: 0; color: var(--ink-dim); font-size: 14px; }

.feature-row { display: flex; gap: 32px; align-items: center; padding: 40px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.feature-row:last-child { border-bottom: none; }
.feature-row > div { flex: 1; min-width: 260px; }
.feature-row.reverse { flex-direction: row-reverse; }
.feature-row h3 { font-size: 22px; margin: 0 0 10px; }
.feature-row p { color: var(--ink-dim); }
@media (max-width: 700px) { .feature-row, .feature-row.reverse { flex-direction: column; } }

/* Tick list — matches the sales deck's ul.ticks treatment (coral dot bullets). */
.kicker {
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 12px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin: 0 0 10px;
}
ul.ticks { list-style: none; margin: 16px 0 0; padding: 0; }
ul.ticks li { position: relative; padding: 8px 0 8px 26px; color: var(--ink-dim); font-size: 15px; }
ul.ticks li::before {
  content: ''; position: absolute; left: 0; top: 15px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(231, 97, 133, .18);
}
.ticks-cols-2 { columns: 2; column-gap: 40px; }
@media (max-width: 640px) { .ticks-cols-2 { columns: 1; } }

.opi-tile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 28px; }
.opi-tile { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); border-radius: 16px; padding: 24px; }
.opi-tile .pill {
  display: inline-block; background: rgba(231, 97, 133, .18); color: var(--red);
  font-size: 10px; font-weight: 700; letter-spacing: .06em; border-radius: 10px;
  padding: 2px 8px; margin-left: 8px; vertical-align: middle;
}
.opi-tile h3 { font-size: 17px; margin: 0 0 8px; }
.opi-tile p { margin: 0; color: var(--ink-dim); font-size: 14px; }
.opi-soon {
  margin-top: 20px; display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap;
  border: 1px dashed rgba(255, 255, 255, .18); border-radius: 16px; padding: 20px;
}
.opi-soon .badge {
  background: rgba(255, 255, 255, .08); color: var(--ink-dim); font-size: 11px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; border-radius: 10px; padding: 4px 10px; flex: none;
}
.opi-soon p { margin: 4px 0 0; color: var(--ink-dim); font-size: 14px; }
.opi-soon h3 { font-size: 15px; margin: 0; }

.benefit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.benefit-grid h3 { font-size: 18px; margin: 0 0 8px; }
.benefit-grid p { margin: 0; color: var(--ink-dim); font-size: 14px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.step { text-align: center; }
.step .num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: white;
  display: flex; align-items: center; justify-content: center; font-weight: 700; margin: 0 auto 16px;
}

.pricing-card {
  max-width: 480px; margin: 0 auto; background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 20px; padding: 40px; text-align: center;
}
.pricing-card .price { font-size: 48px; font-weight: 700; margin: 8px 0; }
.pricing-card .price span { font-size: 16px; font-weight: 400; color: var(--ink-dim); }
.pricing-card ul { text-align: left; margin: 24px 0; padding: 0; list-style: none; }
.pricing-card li { padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: 14px; }
.pricing-card li i { color: var(--red); margin-right: 10px; }
.pricing-badge {
  display: inline-block; background: rgba(221, 66, 66, .18); color: #ff9a9a;
  border-radius: 16px; padding: 4px 14px; font-size: 12px; margin-bottom: 16px;
}

.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.video-card { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); border-radius: 16px; overflow: hidden; }
.video-card video { width: 100%; background: black; }
.video-card .video-body { padding: 18px; }
.video-card h3 { margin: 0 0 6px; font-size: 16px; }
.video-card p { margin: 0; color: var(--ink-dim); font-size: 13px; }

.contact-form { max-width: 480px; margin: 0 auto; display: grid; gap: 16px; }
.contact-form label { font-size: 13px; color: var(--ink-dim); display: block; margin-bottom: 6px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .04); color: var(--ink); font-family: inherit; font-size: 14px;
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form .hp { position: absolute; left: -9999px; }

.site-footer { border-top: 1px solid rgba(255, 255, 255, .08); padding: 32px 0; text-align: center; font-size: 13px; color: var(--ink-dim); }
.site-footer a { color: var(--ink-dim); text-decoration: underline; }

/* Opi Salesperson launcher — the real chat lives behind this same markup.
   The mascot SVG/animations below are the SAME OPI as js/components/
   opi-widget.js (the in-app chat launcher) and js/components/opi-mascot.js
   (the small face) — same path data, same class names, same keyframes —
   so a visitor who signs up and meets the in-app Opi recognises it as the
   same character, not a marketing-only reskin. */
.opi-launcher {
  position: fixed; right: 24px; bottom: 24px; z-index: 30;
  background: var(--red); border: none; border-radius: 50%;
  width: 64px; height: 64px; padding: 5px; cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  display: flex; align-items: center; justify-content: center;
}
.opi-panel {
  position: fixed; right: 24px; bottom: 100px; z-index: 30;
  width: min(320px, calc(100vw - 48px)); background: var(--navy-deep);
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px; padding: 20px;
  display: none; flex-direction: column; max-height: min(480px, 70vh);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .4);
}
.opi-panel.open { display: flex; }
.opi-panel p { margin: 0; font-size: 13px; color: var(--ink-dim); }

.opi-panel-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.opi-panel-heading { display: flex; flex-direction: column; line-height: 1.3; }
.opi-panel-name { font-weight: 700; font-size: 15px; }
.opi-role-badge {
  font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--red); background: rgba(231, 97, 133, .18); border-radius: 8px;
  padding: 2px 7px; display: inline-block; width: fit-content; margin-top: 3px;
}

/* ---- the animated launcher mascot (58px, full body) ---- */
.opi-mascot { display: block; width: 100%; height: 100%; overflow: visible; }
.opi-launcher .opi-mascot { width: 52px; height: 52px; }
.opi-mascot .opi-body { transform-box: fill-box; transform-origin: 50% 88%; animation: opi-bob 3.4s ease-in-out infinite; }
.opi-mascot .opi-eyes { transform-box: fill-box; transform-origin: 78px 59px; animation: opi-blink 5s ease-in-out infinite; }
@keyframes opi-bob { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-2.5px) rotate(-2deg); } }
@keyframes opi-blink { 0%, 92%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.12); } }
.opi-mascot .opi-jack { transform-box: fill-box; transform-origin: center bottom; animation: opi-jack-hop 1.9s ease-in-out infinite; }
@keyframes opi-jack-hop { 0%, 55%, 100% { transform: translateY(0); } 30% { transform: translateY(-7px) scaleY(1.04); } }
.opi-mascot .opi-arm-r { transform-box: fill-box; transform-origin: 8% 95%; animation: opi-wave 2.8s ease-in-out infinite; }
@keyframes opi-wave { 0%, 68%, 100% { transform: rotate(0deg); } 80% { transform: rotate(-20deg); } 90% { transform: rotate(-7deg); } }
@media (prefers-reduced-motion: reduce) {
  .opi-mascot .opi-body, .opi-mascot .opi-eyes, .opi-mascot .opi-jack, .opi-mascot .opi-arm-r { animation: none !important; }
}

/* ---- the small panel-header face (30px, blink only — same as opi-mascot.js) ---- */
.opi-face { display: inline-block; width: 100%; height: 100%; overflow: visible; }
.opi-mascot--sm { width: 30px; height: 30px; flex: 0 0 auto; }
.opi-face .opi-face-eyes { transform-box: fill-box; transform-origin: 50% 50%; animation: opi-face-blink 5s ease-in-out infinite; }
@keyframes opi-face-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@media (prefers-reduced-motion: reduce) { .opi-face .opi-face-eyes { animation: none !important; } }

/* ---- proactive welcome bubble (same pattern as the in-app #opi-welcome-bubble) ---- */
.opi-welcome-bubble {
  position: fixed; right: 24px; bottom: 100px; z-index: 29;
  width: min(260px, calc(100vw - 48px)); background: var(--navy-deep);
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; padding: 14px 20px 14px 16px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .4); cursor: pointer;
  animation: opi-welcome-in .35s ease-out;
}
.opi-welcome-bubble[hidden] { display: none; }
.opi-welcome-text { font-size: 13px; line-height: 1.4; color: var(--ink); }
.opi-welcome-dismiss {
  position: absolute; top: 4px; right: 6px; background: none; border: none;
  color: var(--ink-dim); font-size: 16px; line-height: 1; cursor: pointer; padding: 4px 6px;
}
@keyframes opi-welcome-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .opi-welcome-bubble { animation: none; } }

.opi-messages { flex: 1; overflow-y: auto; margin: 12px 0; display: flex; flex-direction: column; gap: 10px; max-height: 320px; }
.opi-msg { padding: 8px 12px; border-radius: 12px; font-size: 13px; line-height: 1.4; max-width: 90%; }
.opi-msg.user { align-self: flex-end; background: var(--red); color: white; }
.opi-msg.assistant { align-self: flex-start; background: rgba(255, 255, 255, .08); color: var(--ink); }
.opi-msg.assistant a { color: #ff9a9a; }
.opi-typing { align-self: flex-start; color: var(--ink-dim); font-size: 12px; font-style: italic; }
.opi-input-row { display: flex; gap: 8px; }
.opi-input-row input {
  flex: 1; padding: 8px 12px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .04); color: var(--ink); font-family: inherit; font-size: 13px;
}
.opi-input-row button {
  border: none; background: var(--red); color: white; border-radius: 50%;
  width: 34px; height: 34px; flex: none; cursor: pointer; font-size: 13px;
}
.opi-input-row button:disabled { opacity: .5; cursor: default; }

/* Cookie consent banner — Phase 0 of the analytics/SEO/GEO plan. Reject and
   accept are deliberately the same size/weight (ICO guidance: rejecting
   must be as easy as accepting, not a buried link under a bold button). */
.cookie-consent-banner {
  position: fixed; left: 24px; right: 24px; bottom: 24px; z-index: 40;
  max-width: 640px; margin: 0 auto; background: var(--navy-deep);
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px;
  padding: 20px 24px; box-shadow: 0 12px 32px rgba(0, 0, 0, .45);
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
}
.cookie-consent-banner[hidden] { display: none; }
.cookie-consent-text { flex: 1 1 320px; margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-dim); }
.cookie-consent-text a { color: #ff9a9a; }
.cookie-consent-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.btn-cookie {
  font-family: inherit; font-size: 13px; font-weight: 600; padding: 10px 18px;
  border-radius: 20px; cursor: pointer; white-space: nowrap;
}
.btn-cookie-primary { background: var(--red); color: white; border: none; }
.btn-cookie-secondary { background: none; color: var(--ink); border: 1px solid rgba(255, 255, 255, .3); }
@media (max-width: 560px) {
  .cookie-consent-banner { left: 12px; right: 12px; bottom: 12px; padding: 16px; }
  .cookie-consent-actions { width: 100%; }
  .btn-cookie { flex: 1; }
}

/* About page */
.about-hero { text-align: left; padding: 72px 0 64px; }
.about-hero-grid { display: grid; grid-template-columns: minmax(220px, 360px) 1fr; gap: 56px; align-items: center; }
.about-photo img {
  width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: center top;
  border-radius: 24px; display: block; border: 3px solid var(--red);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.about-intro .lead { margin: 0 0 28px; max-width: 520px; }
.about-quote {
  max-width: 820px; margin: 0 auto; padding: 0 0 0 28px; border-left: 4px solid var(--red);
}
.about-quote p { font-family: 'Montserrat', sans-serif; font-size: clamp(20px, 2.6vw, 28px); font-weight: 600; line-height: 1.4; margin: 0 0 14px; }
.about-quote footer { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--red); font-weight: 700; }
.about-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 24px; text-align: center; }
.stat-num { display: block; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 44px; color: var(--red); line-height: 1.1; }
.stat-label { display: block; margin-top: 6px; color: var(--ink-dim); font-size: 14px; }
.about-timeline { list-style: none; max-width: 720px; margin: 40px auto 0; padding: 0; border-left: 2px solid rgba(255, 255, 255, .14); }
.about-timeline li { position: relative; display: flex; gap: 20px; padding: 0 0 30px 28px; }
.about-timeline li:last-child { padding-bottom: 0; }
.about-timeline li::before {
  content: ''; position: absolute; left: -8px; top: 4px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 0 4px var(--navy);
}
.tl-year { flex: 0 0 52px; font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--red); font-size: 15px; }
.about-timeline h3 { margin: 0 0 4px; font-size: 17px; }
.about-timeline p { margin: 0; color: var(--ink-dim); font-size: 14px; line-height: 1.5; }
.about-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 36px; }
.about-card { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; padding: 28px 24px; }
.about-card i { font-size: 26px; color: var(--red); margin-bottom: 14px; display: block; }
.about-card h3 { margin: 0 0 8px; font-size: 17px; }
.about-card p { margin: 0; color: var(--ink-dim); font-size: 14px; line-height: 1.5; }
@media (max-width: 760px) {
  .about-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-photo { max-width: 260px; }
}

/* Product screenshots (home page) */
.shot-frame {
  border-radius: 12px; overflow: hidden; background: #f4f5fb;
  border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.shot-frame img { display: block; width: 100%; height: auto; }
.shot-bar { display: flex; gap: 6px; padding: 10px 12px; background: #1b1a4a; }
.shot-bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .28); }
.shot-card {
  display: block; width: 100%; max-width: 360px; height: auto; margin: 0 auto;
  border-radius: 12px; box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.feature-row > .shot-col { flex: 1.3; min-width: 0; width: 100%; }
.hero-visual { position: relative; z-index: 1; max-width: 860px; margin: 56px auto 0; padding: 0 0 36px; }
.hero-card {
  position: absolute; right: -28px; bottom: 0; width: 30%; height: auto;
  border-radius: 10px; box-shadow: 0 18px 44px rgba(0, 0, 0, .55); transform: rotate(3deg);
}
@media (max-width: 900px) { .hero-card { right: 4px; } }
@media (max-width: 700px) {
  .hero-visual { margin-top: 40px; padding-bottom: 28px; }
  .hero-card { width: 38%; }
}

/* Photographs */
.photo { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.photo-pair figure { margin: 0; }
.photo-pair figure:first-child { grid-column: 1 / -1; }
.photo-pair img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.photo-pair figcaption { margin-top: 10px; font-size: 13px; color: var(--ink-dim); text-align: center; }
@media (max-width: 700px) { .photo-pair { grid-template-columns: 1fr; } }
