/* aipacrm.com — golden ratio (φ = 1.618) + AIPA purple / magenta.
   Swap the BRAND colours to change the whole site. */
:root {
  --brand-purple: #6a1fd1;
  --brand-magenta: #c71fa8;
  --brand-deep: #1f0c3a;
  --brand-deep-2: #2e1356;
  --grad: linear-gradient(135deg, var(--brand-purple), var(--brand-magenta));
  --ink: #1d1430; --muted: #6c6484; --line: #e8e2f3; --bg: #ffffff; --tint: #f8f6fc;
  --purple-soft: #f2ecfd; --magenta-soft: #fcebf8;
  /* type: every step ×√φ (1.272), so every second step ×φ; spacing: Fibonacci; widths & splits: φ */
  --fs-xs: 10.5px; --fs-s: 13.4px; --fs-0: 17px; --fs-1: 21.6px; --fs-2: 27.5px; --fs-3: 35px; --fs-4: 44.5px; --fs-5: 56.6px;
  --s2: 5px; --s3: 8px; --s4: 13px; --s5: 21px; --s6: 34px; --s7: 55px; --s8: 89px; --s9: 144px;
  --r2: 8px; --r3: 13px; --r4: 21px;
  --wrap: 1220px;      /* 754 × φ */
  --narrow: 754px;     /* 1220 ÷ φ */
  --nav-h: 70px;       /* 55 × √φ */
  --shadow: 0 3px 8px rgba(31, 12, 58, .06), 0 13px 34px rgba(31, 12, 58, .08);
  --shadow-lg: 0 21px 55px rgba(31, 12, 58, .22);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 89px; }
body { margin: 0; font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; font-size: var(--fs-0); line-height: 1.618; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-purple); }
a:hover { color: var(--brand-magenta); }
h1, h2, h3 { line-height: 1.236; margin: 0 0 var(--s5); letter-spacing: -.015em; }
h1 { font-size: var(--fs-5); font-weight: 780; }
h2 { font-size: var(--fs-4); font-weight: 760; }
h3 { font-size: var(--fs-1); font-weight: 700; }
p { margin: 0 0 var(--s5); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s6); }
.narrow { max-width: var(--narrow); }
.center { text-align: center; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { font-size: var(--fs-s); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-magenta); margin-bottom: var(--s4); }
.eyebrow.light { color: #f0a5e2; }
.lead { font-size: var(--fs-1); color: var(--muted); line-height: 1.5; }
.lead.light { color: #d9cdf0; }
.sub { color: var(--muted); font-size: var(--fs-1); max-width: var(--narrow); margin-left: auto; margin-right: auto; line-height: 1.5; }
.fine { font-size: var(--fs-s); color: var(--muted); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s3); border-radius: var(--r2); padding: var(--s4) var(--s5); font-weight: 650; font-size: var(--fs-0); text-decoration: none; border: 1.5px solid transparent; transition: transform .15s, box-shadow .15s, background .15s; cursor: pointer; line-height: 1.236; }
.btn:hover { transform: translateY(-1px); }
.btn.sm { padding: var(--s3) var(--s4); font-size: var(--fs-s); }
.btn.lg { padding: var(--s4) var(--s6); font-size: var(--fs-0); }
.btn.block { display: flex; width: 100%; }
.btn-primary { background: var(--grad); color: #fff !important; box-shadow: 0 8px 21px rgba(106, 31, 209, .3); }
.btn-primary:hover { box-shadow: 0 13px 34px rgba(199, 31, 168, .35); }
.btn-ghost { background: #fff; color: var(--brand-purple) !important; border-color: #d9c9f6; }
.btn-ghost:hover { background: var(--purple-soft); }
.btn-light { background: #fff; color: var(--brand-purple) !important; box-shadow: 0 8px 21px rgba(0, 0, 0, .2); }
.btn.soon { opacity: .75; }
.cta-row { display: flex; gap: var(--s4); flex-wrap: wrap; margin: var(--s6) 0 var(--s5); }
.cta-row.center { justify-content: center; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.4) blur(13px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.nav.scrolled { border-color: var(--line); box-shadow: 0 3px 13px rgba(31, 12, 58, .06); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.logo { display: flex; align-items: center; gap: var(--s4); text-decoration: none; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo .mark { width: 34px; height: 34px; border-radius: var(--r2); background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: var(--fs-1); }
.logo b { display: block; font-size: var(--fs-1); letter-spacing: .05em; line-height: 1.1; }
.logo small { display: block; font-size: var(--fs-xs); color: var(--muted); line-height: 1.2; }
.links { display: flex; align-items: center; gap: var(--s6); }
.links a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 550; font-size: var(--fs-0); }
.links a:not(.btn):hover { color: var(--brand-purple); }
.menu { display: none; background: none; border: 0; padding: var(--s3); cursor: pointer; }
.menu span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* hero — copy and screenshot split 1 : 1.618 */
.hero { position: relative; overflow: hidden; background: radial-gradient(80% 60% at 100% 0%, rgba(199, 31, 168, .12), transparent 60%), radial-gradient(60% 50% at 0% 100%, rgba(106, 31, 209, .1), transparent 60%), var(--tint); padding: var(--s8) 0 var(--s8); }
.hero-in { display: grid; grid-template-columns: 1fr 1.618fr; gap: var(--s7); align-items: center; }
.hero h1 { margin-bottom: var(--s5); }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); color: var(--muted); font-size: var(--fs-s); }
.ticks li::before { content: "✓"; color: var(--brand-magenta); font-weight: 800; margin-right: var(--s2); }
.hero-shot { margin: 0; margin-right: calc(-1 * var(--s8)); }
.frame { background: #fff; border-radius: var(--r3); box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid #e3dbf2; }
.frame .dots { display: flex; gap: var(--s2); padding: var(--s3) var(--s4); background: #f4f1fa; border-bottom: 1px solid #e8e2f3; }
.frame .dots i { width: var(--s3); height: var(--s3); border-radius: 50%; background: #d7cfe6; }

/* sections */
.section { padding: var(--s9) 0; }
.section.tint { background: var(--tint); }
.section h2.center { max-width: 900px; margin-left: auto; margin-right: auto; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s6); margin-top: var(--s7); }
.pains { padding-top: var(--s8); padding-bottom: var(--s8); }
.pain { background: #fff; border: 1px solid var(--line); border-radius: var(--r3); padding: var(--s6); box-shadow: var(--shadow); }
.pain .num { font-weight: 800; font-size: var(--fs-s); letter-spacing: .1em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pain h3 { margin-top: var(--s4); }
.pain p { color: var(--muted); margin: 0; }

/* features: golden split, alternating */
.feature { display: grid; grid-template-columns: 1fr 1.618fr; gap: var(--s7); align-items: center; margin-top: var(--s8); }
.feature.rev { grid-template-columns: 1.618fr 1fr; }
.feature.rev .f-copy { order: 2; }
.feature h3 { font-size: var(--fs-2); }
.feature p { color: var(--muted); }
.f-shot img { border-radius: var(--r3); box-shadow: var(--shadow-lg); border: 1px solid #e3dbf2; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding-left: 28px; position: relative; margin-bottom: var(--s3); }
.checks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%; background: var(--grad); -webkit-mask: radial-gradient(circle, #000 0 100%); }
.checks li::after { content: "✓"; position: absolute; left: 3.5px; top: .15em; color: #fff; font-size: 11px; font-weight: 900; }
.mini-features { margin-top: var(--s8); }
.mf { padding: var(--s5) var(--s5) var(--s5) var(--s5); border-left: 3px solid; border-image: var(--grad) 1; }
.mf b { font-size: var(--fs-0); }
.mf p { color: var(--muted); margin: var(--s2) 0 0; font-size: var(--fs-s); }

/* privacy */
.dark { background: radial-gradient(70% 70% at 0% 0%, rgba(199, 31, 168, .3), transparent 60%), linear-gradient(160deg, var(--brand-deep), var(--brand-deep-2)); color: #fff; }
.golden { display: grid; grid-template-columns: 1.618fr 1fr; gap: var(--s7); align-items: center; }
.dark h2 { color: #fff; }
.priv-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s4); }
.priv-list li { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r3); padding: var(--s5); }
.priv-list b { display: block; font-size: var(--fs-0); }
.priv-list span { color: #cfc3e8; font-size: var(--fs-s); }

/* pricing */
.prices { display: grid; grid-template-columns: 1.272fr 1fr 1fr;  /* featured card √φ wider */ gap: var(--s5); margin-top: var(--s7); align-items: stretch; }
.price { position: relative; border: 1px solid var(--line); border-radius: var(--r4); padding: var(--s6); background: #fff; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.price.featured { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; box-shadow: 0 21px 55px rgba(106, 31, 209, .2); }
.price .badge { position: absolute; top: -13px; left: var(--s6); background: var(--grad); color: #fff; font-size: var(--fs-s); font-weight: 700; padding: var(--s2) var(--s4); border-radius: 99px; letter-spacing: .03em; }
.price h3 { margin-bottom: var(--s4); }
.amount { font-size: var(--fs-5); font-weight: 800; line-height: 1; letter-spacing: -.03em; display: flex; align-items: flex-start; gap: 4px; }
.amount .cur { font-size: var(--fs-2); margin-top: 6px; }
.amount small { font-size: var(--fs-s); font-weight: 600; color: var(--muted); align-self: flex-end; margin: 0 0 8px 8px; letter-spacing: 0; }
.was { color: var(--muted); font-size: var(--fs-s); margin: var(--s3) 0 var(--s5); min-height: 1.6em; }
.price.featured .was { text-decoration: line-through; }
.price .checks { flex: 1; margin-bottom: var(--s6); }
.math { max-width: var(--narrow); margin: var(--s6) auto 0; background: var(--purple-soft); border-radius: var(--r3); padding: var(--s5) var(--s6); text-align: center; }
.math p { margin: 0; }

/* faq */
details { border-bottom: 1px solid var(--line); padding: var(--s5) 0; }
details summary { cursor: pointer; font-weight: 650; font-size: var(--fs-1); list-style: none; display: flex; justify-content: space-between; gap: var(--s5); }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--brand-magenta); font-size: var(--fs-2); line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin: var(--s4) 0 0; }

.final { background: var(--grad); color: #fff; padding: var(--s8) 0; }
.final h2 { color: #fff; }

/* footer */
.footer { background: var(--brand-deep); color: #cfc3e8; padding: var(--s7) 0 var(--s6); }
.footer .logo, .footer .logo:hover { color: #fff; }
.footer .logo small, .footer .fine { color: #a99bc7; }
.footer a { color: #e6dcf7; }
.foot-in { display: flex; justify-content: space-between; gap: var(--s6); flex-wrap: wrap; }
.foot-in .fine { margin-top: var(--s4); }
.foot-links { display: flex; flex-direction: column; gap: var(--s3); }
.foot-links a { text-decoration: none; font-size: var(--fs-s); }
.copy { margin-top: var(--s6); padding-top: var(--s5); border-top: 1px solid rgba(255, 255, 255, .1); }

/* legal pages */
.legal-page { padding: var(--s7) 0 var(--s8); }
.legal-page pre { white-space: pre-wrap; font-family: inherit; font-size: var(--fs-0); line-height: 1.618; color: var(--ink); margin: 0; }
.back { display: inline-block; margin-bottom: var(--s5); }

/* responsive */
@media (max-width: 1080px) {
  .hero-in, .feature, .feature.rev, .golden { grid-template-columns: 1fr; }
  .feature.rev .f-copy { order: 0; }
  .hero-shot { margin-right: 0; }
  .prices { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 760px) {
  :root { --fs-5: 35px; --fs-4: 27.5px; --fs-3: 27.5px; --fs-2: 21.6px; --fs-1: 17px; }
  .wrap { padding: 0 var(--s5); }
  .section { padding: var(--s8) 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .menu { display: block; }
  .links { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: var(--s4) var(--s5) var(--s5); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .links.open { display: flex; }
  .links a:not(.btn) { padding: var(--s4) 0; border-bottom: 1px solid var(--line); }
  .links .btn { margin-top: var(--s4); }
  .btn.lg { width: 100%; }
}

/* refinements */
.hero h1 { font-size: var(--fs-4); }          /* 44.5px — keeps the headline to 3–4 lines in the 1 : φ column */
.prices + .fine { margin-top: var(--s5); }
@media (max-width: 760px) { .hero h1 { font-size: var(--fs-5); } }

/* legal pages: keep the header's Pre-order button inline on phones */
.legal-nav { display: flex !important; position: static !important; box-shadow: none !important; border: 0 !important; padding: 0 !important; flex-direction: row !important; background: transparent !important; }
.legal-nav .btn { margin: 0 !important; width: auto !important; }
