/* ============================================================
   LoopSuite v3 — Bright Conversion Machine
   Shared stylesheet for all /v3/ sub-pages
   ============================================================ */

:root {
  --bg: #FBFAF8;
  --bg-white: #FFFFFF;
  --band-indigo: #F4F3FF;
  --band-green: #F6F8F5;
  --ink: #0D1117;
  --ink-2: #3A414B;
  --ink-3: #6B7280;
  --line: #E9E7E2;
  --indigo: #4F46E5;
  --indigo-hover: #4338CA;
  --violet: #A855F7;
  --grad: linear-gradient(135deg, #6366F1 0%, #A855F7 100%);
  --green: #16A34A;
  --shadow-sm: 0 1px 2px rgba(13,17,23,.05), 0 1px 3px rgba(13,17,23,.06);
  --shadow-md: 0 4px 12px rgba(13,17,23,.06), 0 12px 28px rgba(13,17,23,.07);
  --shadow-lg: 0 8px 24px rgba(79,70,229,.10), 0 24px 60px rgba(13,17,23,.10);
  --r-sm: 12px;
  --r: 16px;
  --r-lg: 24px;
  --maxw: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, .display { font-family: "Plus Jakarta Sans", sans-serif; letter-spacing: -0.02em; line-height: 1.08; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: #E0DDFB; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: 84px 0; }
.band-indigo { background: var(--band-indigo); }
.band-green { background: var(--band-green); }
.band-white { background: var(--bg-white); }

:focus-visible { outline: 3px solid #A5A0F5; outline-offset: 2px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: "Plus Jakarta Sans", sans-serif; font-weight: 700; font-size: 16px;
  padding: 14px 26px; border-radius: 999px; border: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap; line-height: 1;
}
.btn-primary {
  background: var(--indigo); color: #fff;
  box-shadow: 0 6px 16px rgba(79,70,229,.32), 0 2px 4px rgba(79,70,229,.2);
}
.btn-primary:hover { background: var(--indigo-hover); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(79,70,229,.40); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: #fff; color: var(--ink); border: 1.5px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: #cfccff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-lg { padding: 17px 34px; font-size: 17px; }

.reassure { font-size: 14px; color: var(--ink-3); margin-top: 12px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.reassure svg { flex: none; }

/* ---------- Header ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,250,248,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
header.scrolled { border-bottom-color: var(--line); box-shadow: 0 1px 0 rgba(13,17,23,.02); }
.nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 68px; position: relative; }
.logo { display: flex; align-items: center; gap: 10px; grid-column: 2; justify-self: center; }
.nav-links { grid-column: 1; justify-self: start; }
.nav-cta { grid-column: 3; justify-self: end; }
.logo img { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--ink-2); transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav .btn { padding: 11px 22px; font-size: 15px; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--ink); }

/* ---------- Page hero ---------- */
.page-hero { padding-top: 70px; padding-bottom: 64px; position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; top: -200px; right: -180px; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(168,85,247,.14), rgba(99,102,241,.10) 40%, transparent 70%);
  z-index: 0; pointer-events: none;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero.center { text-align: center; }
.page-hero.center .hero-inner { max-width: 760px; margin: 0 auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); color: var(--indigo);
  font-weight: 600; font-size: 13.5px; padding: 7px 14px; border-radius: 999px;
  box-shadow: var(--shadow-sm); margin-bottom: 22px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 3px rgba(168,85,247,.16); }
.page-hero h1 { font-size: clamp(36px, 5.4vw, 56px); font-weight: 800; }
.page-hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.page-hero .hero-sub { font-size: 19px; color: var(--ink-2); margin-top: 22px; max-width: 600px; }
.page-hero.center .hero-sub { margin-left: auto; margin-right: auto; }
.hero-cta-row { margin-top: 32px; }
.page-hero.center .hero-cta-row .reassure { justify-content: center; }

/* ---------- Section heads ---------- */
.sec-head { text-align: center; max-width: 660px; margin: 0 auto 52px; }
.sec-tag { color: var(--indigo); font-weight: 700; font-size: 14px; letter-spacing: .02em; text-transform: uppercase; }
.sec-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin-top: 12px; }
.sec-head p { color: var(--ink-2); font-size: 18px; margin-top: 14px; }

/* ---------- Generic content prose ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; margin-top: 40px; margin-bottom: 14px; }
.prose h3 { font-size: 21px; font-weight: 700; margin-top: 28px; margin-bottom: 8px; }
.prose p { color: var(--ink-2); font-size: 17px; margin-bottom: 16px; }
.prose ul { color: var(--ink-2); padding-left: 0; list-style: none; margin: 0 0 18px; }
.prose ul li { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 11px; font-size: 16px; }
.prose ul li .check { color: var(--green); flex: none; margin-top: 3px; }
.prose a:not(.btn) { color: var(--indigo); font-weight: 600; }
.prose a:not(.btn):hover { text-decoration: underline; }

/* ---------- Cards grids ---------- */
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.ocard {
  background: var(--bg-white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px;
  box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .2s, border-color .2s;
}
.ocard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #ddd9ff; }
.ocard .ico { width: 46px; height: 46px; border-radius: 13px; background: var(--band-indigo); display: flex; align-items: center; justify-content: center; color: var(--indigo); margin-bottom: 18px; }
.ocard h3 { font-size: 19px; font-weight: 700; }
.ocard p { color: var(--ink-2); font-size: 15px; margin-top: 8px; }
.ocard ul { list-style: none; padding: 0; margin: 14px 0 0; }
.ocard ul li { display: flex; align-items: flex-start; gap: 9px; font-size: 14.5px; color: var(--ink-2); margin-bottom: 9px; }
.ocard ul li .check { color: var(--green); flex: none; margin-top: 2px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { position: relative; padding: 32px 26px; background: var(--bg-white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.step .num {
  width: 44px; height: 44px; border-radius: 13px; background: var(--grad); color: #fff;
  font-family: "Plus Jakarta Sans"; font-weight: 800; font-size: 19px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
  box-shadow: 0 6px 14px rgba(99,102,241,.3);
}
.step h3 { font-size: 20px; font-weight: 700; }
.step p { color: var(--ink-2); font-size: 15.5px; margin-top: 9px; }

/* ---------- Feature split (image/text rows) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split + .split { margin-top: 64px; }
.split.flip .split-media { order: 2; }
.split h3 { font-size: clamp(24px, 3vw, 30px); font-weight: 800; }
.split p { color: var(--ink-2); font-size: 17px; margin-top: 14px; }
.split ul { list-style: none; padding: 0; margin: 18px 0 0; }
.split ul li { display: flex; align-items: flex-start; gap: 11px; font-size: 16px; color: var(--ink-2); margin-bottom: 11px; }
.split ul li .check { color: var(--green); flex: none; margin-top: 3px; }
.split-media {
  background: var(--bg-white); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-md); padding: 22px; min-height: 220px;
}

/* ---------- Chat card mock (reusable) ---------- */
.chatcard { background: var(--bg-white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-md); overflow: hidden; }
.chatcard .bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: var(--bg); }
.chatcard .dots { display: flex; gap: 6px; }
.chatcard .dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.chatcard .dots i:nth-child(1){ background:#FF5F57;} .chatcard .dots i:nth-child(2){ background:#FEBC2E;} .chatcard .dots i:nth-child(3){ background:#28C840;}
.chatcard .ttl { font-size: 13px; color: var(--ink-3); font-weight: 600; margin-left: 6px; }
.chatcard .body { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 82%; padding: 10px 14px; font-size: 14.5px; line-height: 1.45; border-radius: 19px; }
.bubble.me { align-self: flex-end; background: var(--indigo); color: #fff; border-bottom-right-radius: 6px; }
.bubble.ai { align-self: flex-start; background: var(--bg); color: var(--ink); border-bottom-left-radius: 6px; box-shadow: var(--shadow-sm); }
.approve-card { align-self: flex-start; background: var(--bg); border-radius: 16px; padding: 12px; box-shadow: var(--shadow-sm); width: 86%; }
.approve-card .draft { font-size: 13.5px; color: var(--ink-2); background: #F6F5FF; border-radius: 10px; padding: 9px 11px; line-height: 1.45; }
.approve-card .row { display: flex; gap: 8px; margin-top: 10px; }
.approve-card .ok { flex: 1; background: var(--green); color: #fff; border: none; border-radius: 10px; padding: 9px; font-weight: 700; font-size: 13px; font-family: "Plus Jakarta Sans"; }
.approve-card .ed { background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 12px; font-weight: 600; font-size: 13px; color: var(--ink-2); }

/* ---------- Badges / pills ---------- */
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; background: var(--bg);
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px;
  font-size: 14px; font-weight: 600; color: var(--ink-2);
}
.pill svg { color: var(--indigo); flex: none; }
.badge { display: inline-flex; align-items: center; gap: 6px; background: var(--band-indigo); color: var(--indigo); font-weight: 700; font-size: 13px; padding: 5px 12px; border-radius: 999px; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; max-width: 920px; margin: 0 auto; align-items: stretch; }
.plan {
  background: var(--bg-white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 32px 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; position: relative;
}
.plan.feature { border-color: #cfccff; box-shadow: var(--shadow-md); }
.plan.feature::before { content:""; position:absolute; top:0; left:0; right:0; height:5px; border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--grad); }
.plan .pname { font-family: "Plus Jakarta Sans"; font-weight: 700; font-size: 20px; }
.plan .pprice { font-family: "Plus Jakarta Sans"; font-weight: 800; font-size: 40px; margin-top: 12px; line-height: 1; }
.plan .pprice span { font-size: 16px; font-weight: 600; color: var(--ink-3); }
.plan .pdesc { color: var(--ink-2); font-size: 15px; margin-top: 10px; }
.plan ul { list-style: none; padding: 0; margin: 22px 0; flex: 1; }
.plan ul li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--ink-2); margin-bottom: 12px; }
.plan ul li .check { color: var(--green); flex: none; margin-top: 2px; }
.check { color: var(--green); flex: none; }

.price-card {
  max-width: 640px; margin: 0 auto; text-align: center;
  background: var(--bg-white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 48px 36px; box-shadow: var(--shadow-md); position: relative; overflow: hidden;
}
.price-card::before { content:""; position:absolute; top:0; left:0; right:0; height:5px; background: var(--grad); }
.price-card .big { font-family: "Plus Jakarta Sans"; font-weight: 800; font-size: 54px; line-height: 1; }
.price-card .big span { background: var(--grad); -webkit-background-clip: text; background-clip:text; -webkit-text-fill-color: transparent; }
.price-card .sub { color: var(--ink-2); margin-top: 12px; font-size: 18px; }
.price-feats { display: flex; flex-direction: column; gap: 11px; max-width: 360px; margin: 26px auto 30px; text-align: left; }
.price-feats li { list-style: none; display: flex; align-items: center; gap: 11px; font-size: 15.5px; color: var(--ink-2); }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
details { background: var(--bg-white); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 12px; overflow: hidden; transition: box-shadow .2s, border-color .2s; }
details[open] { box-shadow: var(--shadow-sm); border-color: #ddd9ff; }
summary { cursor: pointer; list-style: none; padding: 20px 24px; font-family: "Plus Jakarta Sans"; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary .chev { flex: none; transition: transform .25s; color: var(--indigo); }
details[open] summary .chev { transform: rotate(45deg); }
details .ans { padding: 0 24px 22px; color: var(--ink-2); font-size: 16px; line-height: 1.6; }

/* ---------- Final CTA ---------- */
.final {
  background: var(--grad); border-radius: 32px; padding: 64px 40px; text-align: center; color: #fff;
  position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
}
.final::after { content:""; position:absolute; inset:0; background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.18), transparent 50%); }
.final h2 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; position: relative; z-index: 1; }
.final p.lead { font-size: 19px; opacity: .94; margin-top: 16px; position: relative; z-index: 1; }
.final .cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; position: relative; z-index: 1; }
.final .btn-primary { background: #fff; color: var(--indigo); box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.final .btn-primary:hover { background: #f4f3ff; }
.final .btn-store { background: rgba(255,255,255,.14); color: #fff; border: 1.5px solid rgba(255,255,255,.4); backdrop-filter: blur(4px); }
.final .btn-store:hover { background: rgba(255,255,255,.24); }
.final .reassure-w { color: rgba(255,255,255,.9); margin-top: 22px; font-size: 14.5px; position: relative; z-index: 1; }

/* ---------- CTA band (lighter inline variant) ---------- */
.cta-band { text-align: center; }
.cta-band .reassure { justify-content: center; }

/* ---------- Footer ---------- */
footer { background: var(--bg-white); border-top: 1px solid var(--line); padding: 52px 0 36px; }
.foot-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; flex-wrap: wrap; }
.foot-brand img { height: 30px; }
.foot-brand p { color: var(--ink-3); font-size: 14px; margin-top: 12px; max-width: 280px; }
.foot-links { display: flex; gap: 28px; flex-wrap: wrap; }
.foot-links a { font-size: 15px; color: var(--ink-2); font-weight: 500; }
.foot-links a:hover { color: var(--indigo); }
.foot-bottom { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Mobile sticky bar ---------- */
.mobile-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  background: rgba(255,255,255,.94); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 20px rgba(13,17,23,.08);
}
.mobile-bar .btn { width: 100%; }
.mobile-bar .ms { text-align: center; font-size: 12px; color: var(--ink-3); margin-top: 7px; }

/* ---------- Integrations (search + grid) ---------- */
.intg-controls { max-width: 760px; margin: 0 auto 32px; display: flex; flex-direction: column; gap: 16px; }
.intg-search { position: relative; }
.intg-search input {
  width: 100%; font-family: inherit; font-size: 16px; padding: 14px 18px 14px 46px;
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--bg-white);
  color: var(--ink); box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .2s;
}
.intg-search input:focus { outline: none; border-color: #cfccff; box-shadow: 0 0 0 4px rgba(79,70,229,.12); }
.intg-search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.intg-filters { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; }
.intg-chip {
  font-family: inherit; font-size: 14px; font-weight: 600; color: var(--ink-2);
  background: var(--bg-white); border: 1.5px solid var(--line); border-radius: 999px;
  padding: 8px 16px; cursor: pointer; transition: all .15s;
}
.intg-chip:hover { border-color: #cfccff; }
.intg-chip.active { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.intg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.intg-card {
  display: flex; align-items: center; gap: 14px; background: var(--bg-white);
  border: 1px solid var(--line); border-radius: var(--r); padding: 18px;
  box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .2s, border-color .2s;
}
.intg-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #ddd9ff; }
.intg-card .ic { width: 42px; height: 42px; border-radius: 11px; background: var(--band-indigo); display: flex; align-items: center; justify-content: center; color: var(--indigo); flex: none; font-weight: 800; font-family: "Plus Jakarta Sans"; }
.intg-card .nm { font-weight: 700; font-size: 15.5px; }
.intg-card .ct { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.intg-empty { text-align: center; color: var(--ink-3); padding: 40px 0; grid-column: 1 / -1; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .cards-3, .steps { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split.flip .split-media { order: 0; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; position: absolute; left: 0; top: 50%; transform: translateY(-50%); }
  .nav .btn-primary { display: inline-flex; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  section { padding: 60px 0; }
  .wrap { padding: 0 18px; }
  .cards-4, .cards-2 { grid-template-columns: 1fr; }
  .page-hero { padding-top: 44px; padding-bottom: 48px; }
  .page-hero h1 { font-size: clamp(30px, 9vw, 40px); }
  .final { padding: 48px 22px; border-radius: 24px; }
  .price-card { padding: 36px 22px; }
  .mobile-bar { display: block; }
  body.has-mobile-bar { padding-bottom: 84px; }
  .nav-cta .btn { padding: 10px 18px; font-size: 14px; }
  .foot-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto; }
}
