/* AI Qube marketing site. Warm paper style: warm canvas, white hairline cards,
   one blue action colour, accent hues only as panel backgrounds. */
:root {
  --blue: #0075de;
  --blue-hover: #005bb0;
  --paper: #f6f5f4;
  --white: #ffffff;
  --ink: #000000;
  --ink-95: rgba(0, 0, 0, 0.95);
  --ink-60: rgba(0, 0, 0, 0.6);
  --ink-40: rgba(0, 0, 0, 0.4);
  --graphite: #615d59;
  --slate: #696969;
  --sky-tint: #e6f3fe;
  --marigold: #ffb110;
  --coral: #f64932;
  --peach: #f6d5b8;
  --signal-blue: #097fe8;
  --sky-wash: #62aef0;
  --midnight: #02093a;
  --wa-green: #d9fdd3;
  --line: rgba(0, 0, 0, 0.08);

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --radius-card: 12px;
  --radius-btn: 8px;
  --radius-small: 4px;
  --radius-pill: 9999px;

  --max: 1200px;
  --gutter: 24px;
  --section-gap: 80px;
  --ease: 200ms ease;
  --mock-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: "lnum";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding-top: var(--section-gap); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: 500 15px/1.4 var(--font-sans);
  padding: 9px 18px; border-radius: var(--radius-btn);
  border: 0; cursor: pointer; white-space: nowrap;
  transition: background var(--ease), color var(--ease), transform var(--ease);
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-hover); }
.btn-ghost { background: var(--sky-tint); color: var(--blue); }
.btn-ghost:hover { background: #d4e9fc; }
.btn-text { background: transparent; color: var(--ink-95); }
.btn-text:hover { background: rgba(0, 0, 0, 0.04); }
.btn-lg { font-size: 16px; padding: 12px 22px; }
.btn:active { transform: translateY(1px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 245, 244, 0.92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  transition: box-shadow var(--ease);
}
.nav.scrolled { box-shadow: 0 0.7px 1.46px rgba(0,0,0,0.015), 0 3px 9px rgba(0,0,0,0.03); }
.nav-inner { height: 64px; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.2px; }
.brand-mark { width: 30px; height: 30px; }
.brand-by { font-weight: 500; font-size: .72em; color: var(--ink-60); white-space: nowrap; }
.nav-links { display: flex; gap: 2px; margin: 0 auto; }
.nav-links a {
  color: rgba(0, 0, 0, 0.54); font-weight: 500; font-size: 15px;
  padding: 8px 14px; border-radius: var(--radius-btn); transition: color var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; gap: 6px; align-items: center; }
.nav-toggle {
  display: none; margin-left: auto; width: 40px; height: 40px;
  border: 0; background: transparent; border-radius: var(--radius-btn); cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px auto; border-radius: 2px; transition: transform var(--ease), opacity var(--ease); }
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { text-align: center; padding-top: 56px; }
.marks { display: flex; justify-content: center; gap: 10px; margin-bottom: 28px; flex-wrap: wrap; }
.mark {
  width: 46px; height: 46px; border-radius: 50%; background: var(--white);
  border: 2px solid var(--c, var(--blue)); display: grid; place-items: center;
  animation: bob 3.2s ease-in-out infinite; animation-delay: var(--d, 0s);
}
.mark svg { width: 34px; height: 34px; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

.display {
  font-weight: 600; font-size: clamp(40px, 7vw, 72px); line-height: 1.12;
  letter-spacing: -0.028em; max-width: 900px; margin: 0 auto;
}
.hl {
  display: inline-block; background: var(--peach); border-radius: var(--radius-pill);
  padding: 0 0.32em 0.04em; line-height: 1.15;
}
.hl-yellow { background: var(--marigold); }
.lede {
  font-family: var(--font-serif); font-size: 20px; line-height: 1.56; color: var(--graphite);
  max-width: 640px; margin: 24px auto 0;
}
.cta-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.fine { font-size: 13px; color: var(--ink-40); margin-top: 14px; }

/* Hero product mockup */
.mockup {
  margin: 56px auto 0; max-width: 1040px; background: var(--white);
  border-radius: var(--radius-card); box-shadow: var(--mock-shadow);
  border: 1px solid var(--line); overflow: hidden; text-align: left;
}
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e5e3e1; }
.mock-bar span { margin-left: 10px; font-size: 12px; color: var(--ink-40); }
.mock-body { display: grid; grid-template-columns: 300px 1fr; min-height: 420px; }
.mock-chat { background: #efeae2; border-right: 1px solid var(--line); padding: 16px 14px; display: flex; flex-direction: column; gap: 8px; }
.mock-chat-head { display: flex; align-items: center; gap: 10px; margin: -16px -14px 8px; padding: 10px 14px; background: var(--white); border-bottom: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.mock-chat-head small { display: block; font-weight: 400; color: var(--ink-40); font-size: 12px; }
.avatar-sm { width: 30px; height: 30px; border-radius: 50%; background: var(--sky-tint); display: grid; place-items: center; }
.avatar-sm svg { width: 20px; height: 20px; }
.mock-board { padding: 18px; }
.mock-board h4 { margin: 0 0 4px; font-size: 16px; }
.mock-board .sub { font-size: 13px; color: var(--ink-40); margin-bottom: 14px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.stat { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.stat b { display: block; font-size: 20px; letter-spacing: -0.4px; }
.stat span { font-size: 12px; color: var(--ink-60); }
.kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.col-title { font-size: 12px; color: var(--ink-60); font-weight: 500; margin-bottom: 8px; display: flex; gap: 6px; align-items: center; }
.task { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; margin-bottom: 8px; font-size: 13px; font-weight: 500; }
.task small { display: block; color: var(--ink-40); font-weight: 400; font-size: 12px; margin-top: 2px; }

/* WhatsApp-style bubbles */
.bubble {
  max-width: 88%; padding: 7px 10px 6px; border-radius: 8px; font-size: 13.5px; line-height: 1.42;
  background: var(--white); box-shadow: 0 1px 0.5px rgba(0,0,0,0.13); position: relative;
}
.bubble.me { align-self: flex-end; background: var(--wa-green); }
.bubble time { display: block; text-align: right; font-size: 10.5px; color: var(--ink-40); margin-top: 2px; }
.bubble b { font-weight: 600; }

/* Pills */
.pill {
  display: inline-flex; align-items: center; gap: 4px; border-radius: var(--radius-pill);
  padding: 2px 8px; font-size: 11.5px; font-weight: 500; line-height: 1.5;
}
.pill-blue { background: var(--sky-tint); color: var(--blue); }
.pill-yellow { background: #fff1cf; color: #8a5a00; }
.pill-green { background: #e3f6e5; color: #1f7a33; }
.pill-coral { background: #fde3df; color: #b2280f; }

/* ---------- "Made for" strip ---------- */
.made-for { text-align: center; }
.eyebrow { font-size: 13px; font-weight: 500; color: var(--ink-40); letter-spacing: 0.01em; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.chip { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 7px 16px; font-size: 15px; font-weight: 500; color: var(--ink-95); }

/* ---------- Section headers ---------- */
.sec-head { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.h2 { font-weight: 600; font-size: clamp(32px, 4.6vw, 54px); line-height: 1.08; letter-spacing: -0.035em; }
.sec-head .serif { font-family: var(--font-serif); font-size: 18px; line-height: 1.56; color: var(--graphite); margin-top: 14px; }

/* ---------- Feature rows ---------- */
.feature { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.feature + .feature { margin-top: var(--section-gap); }
.feature.flip .feature-text { order: 2; }
.feature-text .tag { margin-bottom: 14px; }
.h3 { font-weight: 600; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; letter-spacing: -0.03em; }
.feature-text p { color: var(--graphite); font-size: 17px; margin-top: 14px; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-95); }
.ticks li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%;
  background: var(--sky-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.5 2.5L12 5.3' fill='none' stroke='%230075de' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}
.panel { border-radius: var(--radius-card); padding: 32px; min-height: 380px; display: flex; align-items: center; justify-content: center; }
.panel-yellow { background: var(--marigold); }
.panel-sky { background: var(--sky-wash); }
.panel-coral { background: var(--coral); }
.panel-midnight { background: var(--midnight); color: var(--white); }
.phone {
  width: 100%; max-width: 340px; background: #efeae2; border-radius: 12px; box-shadow: var(--mock-shadow);
  overflow: hidden; display: flex; flex-direction: column;
}
.phone .mock-chat-head { margin: 0; }
.phone-body { padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; }
.window { width: 100%; background: var(--white); border-radius: 12px; box-shadow: var(--mock-shadow); overflow: hidden; }
.window .mock-board { padding: 16px; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-weight: 500; color: var(--ink-40); font-size: 12px; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.table td { padding: 9px 8px; border-bottom: 1px solid var(--line); }
.table tr:last-child td { border-bottom: 0; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Card grids ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 24px; }
.card h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.011em; line-height: 1.27; }
.card p { color: var(--graphite); margin-top: 8px; }
.ask-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ask-grid .wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.qlist { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.q { background: var(--paper); border-radius: var(--radius-pill); padding: 6px 14px; font-size: 14px; color: var(--ink-95); }
.who { font-size: 13px; font-weight: 600; color: var(--blue); margin-bottom: 6px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step-num {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 600; margin-bottom: 16px; background: var(--c, var(--sky-tint)); color: var(--ink);
}

/* ---------- Trust (dark island) ---------- */
.trust { background: var(--midnight); color: var(--white); border-radius: var(--radius-card); padding: 48px; display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: start; }
.trust .h3 { color: var(--white); }
.trust .lead { color: rgba(255,255,255,0.7); margin-top: 14px; font-size: 17px; }
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 28px; }
.trust-grid h4 { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
.trust-grid p { color: rgba(255,255,255,0.66); font-size: 14.5px; }
.trust-icon { width: 32px; height: 32px; border-radius: 8px; background: rgba(255,255,255,0.1); display: grid; place-items: center; margin-bottom: 10px; }
.trust-icon svg { width: 18px; height: 18px; }

/* ---------- Pricing ---------- */
.billing { display: inline-flex; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 4px; gap: 2px; margin-top: 22px; }
.billing button { font: 500 14px var(--font-sans); border: 0; background: transparent; padding: 7px 16px; border-radius: var(--radius-pill); cursor: pointer; color: var(--ink-60); transition: background var(--ease), color var(--ease); }
.billing button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.billing .save { color: #1f7a33; font-weight: 600; }
.billing button[aria-pressed="true"] .save { color: #9ee6ad; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--blue); padding: 23px; position: relative; }
.plan .badge { position: absolute; top: -12px; left: 22px; background: var(--blue); color: var(--white); font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: var(--radius-pill); }
.plan-name { font-size: 18px; font-weight: 600; }
.plan-for { font-size: 14px; color: var(--ink-60); margin-top: 2px; min-height: 42px; }
.price { margin-top: 18px; display: flex; align-items: baseline; gap: 6px; }
.price b { font-size: 44px; letter-spacing: -0.04em; font-weight: 600; line-height: 1; }
.price span { color: var(--ink-60); font-size: 14px; }
.price-note { font-size: 13px; color: var(--ink-40); margin-top: 6px; min-height: 20px; }
.plan .btn { margin-top: 20px; width: 100%; }
.plan .ticks { margin-top: 22px; font-size: 15px; }
.plan-extra { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.mini { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 18px 20px; font-size: 14.5px; color: var(--graphite); }
.mini b { color: var(--ink); display: block; margin-bottom: 2px; font-size: 15px; }
.mini.offer { background: var(--peach); border-color: transparent; color: rgba(0,0,0,0.75); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 0 22px; }
.faq details + details { margin-top: 10px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 22px; color: var(--ink-40); transition: transform var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--graphite); padding-bottom: 18px; margin-top: -4px; }

/* ---------- Final CTA + footer ---------- */
.final { text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 64px 24px; position: relative; overflow: hidden; }
.final .marks { margin-bottom: 20px; }
footer { padding: 56px 0 40px; margin-top: var(--section-gap); border-top: 1px solid var(--line); }
.foot { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot h5 { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--ink-60); }
.foot a, .foot p { display: block; font-size: 14.5px; color: var(--graphite); margin-bottom: 6px; }
.foot a:hover { color: var(--ink); }
.copy { margin-top: 36px; font-size: 13px; color: var(--ink-40); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 500ms ease, transform 500ms ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .mark { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  :root { --section-gap: 64px; }
  .mock-body { grid-template-columns: 260px 1fr; }
  .feature { gap: 32px; }
  .trust { grid-template-columns: 1fr; padding: 36px; }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links, .nav.open .nav-actions {
    display: flex; flex-direction: column; position: absolute; left: 0; right: 0;
    background: var(--paper); padding: 0 var(--gutter);
  }
  .nav.open .nav-links { top: 64px; padding-top: 8px; align-items: stretch; }
  .nav.open .nav-links a { padding: 12px 8px; font-size: 17px; color: var(--ink-95); border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav.open .nav-actions { top: calc(64px + 8px + 4 * 50px + 10px); padding-top: 6px; padding-bottom: 20px; flex-direction: row; gap: 8px; box-shadow: 0 8px 12px rgba(0,0,0,0.04); }
  .nav.open .nav-actions .btn { flex: 1; padding: 12px; }
  .feature, .feature.flip { grid-template-columns: 1fr; }
  .feature.flip .feature-text { order: 0; }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .plan-for, .price-note { min-height: 0; }
  .plan-extra { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .steps { grid-template-columns: 1fr; }
}

/* ---------- Phone ---------- */
@media (max-width: 640px) {
  :root { --gutter: 16px; --section-gap: 56px; }
  .hero { padding-top: 36px; }
  .mark { width: 38px; height: 38px; }
  .mark svg { width: 28px; height: 28px; }
  .lede { font-size: 18px; }
  .cta-row .btn { flex: 1 1 100%; }
  .mockup { margin-top: 36px; }
  .mock-body { grid-template-columns: 1fr; min-height: 0; }
  .mock-chat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .stat { padding: 8px; }
  .stat b { font-size: 16px; }
  .kanban { grid-template-columns: 1fr 1fr; }
  .kanban > div:nth-child(3) { display: none; }
  .panel { padding: 18px; min-height: 0; }
  .ask-grid, .ask-grid .wide { grid-template-columns: 1fr; }
  .trust { padding: 28px 20px; }
  .trust-grid { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr 1fr; gap: 24px; }
  .foot > div:first-child { grid-column: 1 / -1; }
  .final { padding: 44px 18px; }
}
.foot a.brand { display: flex; }
