/* CRM for Insurance Professionals · © 2026 Armando J. Portillo. All rights reserved. */
:root {
  --ink: #173c34;        /* deep green, the CRM's own ink */
  --text: #2c3a36;
  --muted: #5f6f69;
  --paper: #ffffff;
  --slate: #f2f5f4;      /* quiet section ground */
  --gold: #b9822f;       /* from the logo's check mark */
  --go: #c94a1a;         /* "make the move": warm sunset orange, complementary to the green; 4.7:1 with white text */
  --go-hover: #b23f14;
  --rule: #d9e1de;
  --personal: #24548c; --personal-bg: #e8f1fb;
  --commercial: #5b3590; --commercial-bg: #f3ecfb;
  --life: #8a5a17; --life-bg: #fbf4e8;
  --health: #23704b; --health-bg: #e9f6ef;
  --other: #4d5753; --other-bg: #eef1f0;
  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  /* One left edge for every section: 64px gutters, content no wider than 1192px. */
  --gutter: max(clamp(20px, 5vw, 64px), calc((100% - 1192px) / 2));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
html[data-lang="en"] [lang="es"]:not(html):not(.both), html[data-lang="es"] [lang="en"]:not(html):not(.both) { display: none !important; }
a { color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; background: #fff; padding: 8px 12px; z-index: 10; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px var(--gutter); border-bottom: 1px solid var(--rule); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 17px/1.2 var(--display); }
.brand img { border-radius: 9px; }
.top-nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.top-nav a { text-decoration: none; color: var(--muted); }
.top-nav a:hover { color: var(--ink); }
.lang-switch { border: 1px solid var(--rule); background: #fff; border-radius: 20px; padding: 5px 12px; font: 500 14px var(--body); color: var(--ink); cursor: pointer; }
.nav-signin { color: var(--ink) !important; font-weight: 600; white-space: nowrap; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: clamp(32px, 6vw, 88px); align-items: center; padding: clamp(48px, 8vw, 104px) var(--gutter) clamp(56px, 7vw, 96px); }
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; }
h1 { font-size: clamp(40px, 6.2vw, 78px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; max-width: 13ch; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 58ch; margin: 26px 0 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border-radius: 10px; font: 600 16px var(--body); text-decoration: none; transition: background .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--go); color: #fff; box-shadow: 0 6px 18px -8px rgba(201, 74, 26, .55); }
.btn-primary:hover { background: var(--go-hover); box-shadow: 0 10px 24px -10px rgba(201, 74, 26, .7); }
.btn-quiet { border: 1.5px solid var(--ink); color: var(--ink); background: #fff; }
.btn-quiet:hover { background: var(--slate); }
.fine { font-size: 14px; color: var(--muted); margin: 14px 0 0; }

/* Phone with a voice exchange */
.phone { margin: 0; justify-self: center; width: min(100%, 360px); }
.phone-screen { background: var(--ink); border-radius: 34px; padding: 22px 18px 26px; box-shadow: 0 30px 60px -28px rgba(23, 60, 52, .55); border: 8px solid #0f2d27; }
.phone-head { color: #cfe0da; font-size: 13px; margin: 0 4px 14px; display: flex; align-items: center; gap: 6px; }
.bubble { margin: 0 0 10px; padding: 11px 14px; border-radius: 16px; font-size: 15px; line-height: 1.45; max-width: 88%; }
.bubble.you { margin-left: auto; background: var(--gold); color: #fff; border-bottom-right-radius: 4px; }
.bubble.crm { background: #fff; color: var(--text); border-bottom-left-radius: 4px; }
.bubble.draft { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.bubble.draft em { font-style: normal; color: var(--text); background: var(--slate); border-radius: 10px; padding: 8px 10px; }
.bubble .send { justify-self: end; font-weight: 600; color: var(--ink); font-size: 13px; }
.phone figcaption { text-align: center; font-size: 13px; color: var(--muted); margin-top: 14px; }

/* Schedule of lines: the page's centerpiece */
.schedule { background: var(--slate); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: clamp(56px, 7vw, 96px) var(--gutter); }
.schedule-head { margin: 0 0 36px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px; align-items: end; }
.schedule-head h2 { font-size: clamp(34px, 4.4vw, 56px); letter-spacing: -0.03em; line-height: 1.05; }
.schedule-head p { margin: 0; color: var(--muted); max-width: 60ch; }
.schedule-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: #fff; border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; }
.cover { padding: 22px 20px 26px; border-left: 1px solid var(--rule); }
.cover:first-child { border-left: 0; }
.cover h3 { font-size: 19px; line-height: 1.2; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 3px solid currentColor; display: flex; justify-content: space-between; gap: 8px; }
.cover h3 small { font: 600 13px var(--body); border-radius: 20px; padding: 2px 9px; align-self: start; }
.cover ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 15px; }
.cover-personal h3 { color: var(--personal); } .cover-personal h3 small { background: var(--personal-bg); }
.cover-commercial h3 { color: var(--commercial); } .cover-commercial h3 small { background: var(--commercial-bg); }
.cover-life h3 { color: var(--life); } .cover-life h3 small { background: var(--life-bg); }
.cover-health h3 { color: var(--health); } .cover-health h3 small { background: var(--health-bg); }
.cover-other h3 { color: var(--other); } .cover-other h3 small { background: var(--other-bg); }

/* Features */
.features { padding: clamp(64px, 8vw, 112px) var(--gutter); }
.features h2, .faq h2, .pricing h2 { font-size: clamp(30px, 3.6vw, 46px); letter-spacing: -0.03em; line-height: 1.08; max-width: 20ch; }
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 6vw, 96px); row-gap: 34px; margin: 44px 0 0; }
.feature-list div { border-top: 1px solid var(--rule); padding-top: 18px; }
.feature-list dt { font: 700 20px/1.3 var(--display); color: var(--ink); margin-bottom: 8px; }
.feature-list dd { margin: 0; color: var(--muted); max-width: 56ch; }

/* Pricing */
.pricing { padding: 0 var(--gutter) clamp(64px, 8vw, 104px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); gap: clamp(32px, 6vw, 88px); align-items: start; }
.pricing p { color: var(--muted); max-width: 54ch; }
.price-box { border: 1.5px solid var(--ink); border-radius: 16px; padding: 28px; }
.price { font: 800 44px/1.1 var(--display); color: var(--ink); margin: 0 0 18px; }
.price small { display: block; font: 500 16px/1.4 var(--body); color: var(--muted); margin-top: 4px; }
.price-box ul { margin: 0 0 24px; padding-left: 20px; color: var(--text); }
.price-box li { margin-bottom: 6px; }
.price-box .btn { width: 100%; }

/* FAQ */
.faq { padding: 0 var(--gutter) clamp(64px, 8vw, 104px); }
.faq > * { max-width: 860px; }
.faq h2 { margin-bottom: 24px; }
.faq details { border-top: 1px solid var(--rule); padding: 18px 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; font: 600 18px/1.4 var(--body); color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--gold); }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin: 12px 0 0; color: var(--muted); max-width: 70ch; }

/* Closing */
.closing { background: var(--ink); padding: clamp(56px, 7vw, 96px) var(--gutter); }
.closing h2 { color: #fff; font-size: clamp(34px, 4.6vw, 60px); letter-spacing: -0.03em; margin: 0 0 28px; }

.btn-quiet.on-dark { background: transparent; color: #fff; border-color: #fff; }
.btn-quiet.on-dark:hover { background: rgba(255, 255, 255, .1); }

.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 24px var(--gutter); font-size: 14px; color: var(--muted); }
.foot p { margin: 0; }

@media (max-width: 1080px) {
  .schedule-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cover { border-top: 1px solid var(--rule); }
  .cover:nth-child(-n + 3) { border-top: 0; }
  .cover:nth-child(3n + 1) { border-left: 0; }
}
@media (max-width: 860px) {
  .hero, .pricing, .schedule-head { grid-template-columns: 1fr; }
  .top-nav a:not(.nav-signin) { display: none; }
  .feature-list { grid-template-columns: 1fr; }
  .schedule-grid { grid-template-columns: 1fr 1fr; }
  .cover:nth-child(n) { border-left: 1px solid var(--rule); border-top: 1px solid var(--rule); }
  .cover:nth-child(odd) { border-left: 0; }
  .cover:nth-child(-n + 2) { border-top: 0; }
}
@media (max-width: 520px) {
  .schedule-grid { grid-template-columns: 1fr; }
  .cover:nth-child(n) { border-left: 0; border-top: 1px solid var(--rule); }
  .cover:first-child { border-top: 0; }
  .brand span { font-size: 15px; }
  .btn { width: 100%; }
}

/* ---- Motion ---- */
.rotator { display: inline-block; color: var(--gold); transition: transform .32s cubic-bezier(.4, 0, .2, 1), opacity .32s; }
.rotator.out { transform: translateY(-0.35em); opacity: 0; }
.rotator.in { animation: rot-in .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes rot-in { from { transform: translateY(0.35em); opacity: 0; } to { transform: none; opacity: 1; } }

.phone-head { justify-content: flex-start; }
.mic-dot { width: 9px; height: 9px; border-radius: 50%; background: #e05d4f; box-shadow: 0 0 0 0 rgba(224, 93, 79, .6); animation: mic 1.8s infinite; }
@keyframes mic { 70% { box-shadow: 0 0 0 9px rgba(224, 93, 79, 0); } 100% { box-shadow: 0 0 0 0 rgba(224, 93, 79, 0); } }
.wave { margin-left: auto; display: inline-flex; gap: 3px; align-items: center; height: 16px; }
.wave i { width: 3px; height: 4px; border-radius: 2px; background: #cfe0da; transition: height .2s; }
.wave.talking i { animation: wave .7s ease-in-out infinite; }
.wave.talking i:nth-child(2) { animation-delay: .1s; } .wave.talking i:nth-child(3) { animation-delay: .2s; }
.wave.talking i:nth-child(4) { animation-delay: .3s; } .wave.talking i:nth-child(5) { animation-delay: .4s; }
@keyframes wave { 50% { height: 16px; } }
.chat { min-height: 330px; display: flex; flex-direction: column; }
.chat.animated [data-step] { opacity: 0; transform: translateY(10px) scale(.98); transition: opacity .4s, transform .45s cubic-bezier(.2, .8, .2, 1); }
.chat.animated [data-step].shown { opacity: 1; transform: none; }
.typing { display: none; gap: 4px; background: #fff; border-radius: 16px; border-bottom-left-radius: 4px; padding: 12px 14px; width: max-content; margin: 0 0 10px; }
.typing.shown { display: inline-flex; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #9aa8a3; animation: dot 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 30% { transform: translateY(-4px); background: var(--ink); } }

/* Book of business */
.book { padding: clamp(64px, 8vw, 112px) var(--gutter) 0; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.book h2 { font-size: clamp(32px, 4vw, 52px); letter-spacing: -0.03em; line-height: 1.05; }
.book-copy > p { color: var(--muted); max-width: 52ch; margin: 18px 0 28px; }
.book-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; }
.book-stats div { border-top: 3px solid var(--gold); padding-top: 10px; }
.book-stats dt { font-size: 14px; color: var(--muted); }
.book-stats dd { margin: 4px 0 0; font: 800 clamp(24px, 2.6vw, 34px)/1.1 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.book-chart { background: var(--ink); border-radius: 22px; padding: 26px 26px 18px; display: grid; gap: 10px; }
.bar { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 38px; padding: 0 14px; border-radius: 9px; color: #fff; font-size: 14px; z-index: 0; overflow: hidden; }
.bar::before { content: ""; position: absolute; inset: 0; width: calc(var(--v) * 1%); min-width: 6px; border-radius: 9px; z-index: -1; transform-origin: left; transform: scaleX(0); transition: transform 1.1s cubic-bezier(.2, .8, .2, 1); }
.bar.commercial::before { background: #7a52b3; } .bar.personal::before { background: #3a73b5; } .bar.life::before { background: var(--gold); }
.bar b { font-weight: 600; font-variant-numeric: tabular-nums; }
.book.grown .bar::before { transform: scaleX(1); }
.book.grown .bar:nth-child(2)::before { transition-delay: .08s; } .book.grown .bar:nth-child(3)::before { transition-delay: .16s; }
.book.grown .bar:nth-child(4)::before { transition-delay: .24s; } .book.grown .bar:nth-child(5)::before { transition-delay: .32s; }
.book.grown .bar:nth-child(6)::before { transition-delay: .40s; } .book.grown .bar:nth-child(7)::before { transition-delay: .48s; }
.book.grown .bar:nth-child(8)::before { transition-delay: .56s; }
.chart-note { margin: 6px 0 0; font-size: 12.5px; color: #a9c2ba; }
html.still .bar::before { transform: none; transition: none; }

/* Schedule columns rise in once, left to right */
.moving .schedule-grid .cover { opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .6s cubic-bezier(.2, .8, .2, 1); }
.moving .schedule.seen .cover { opacity: 1; transform: none; }
.moving .schedule.seen .cover:nth-child(2) { transition-delay: .08s; } .moving .schedule.seen .cover:nth-child(3) { transition-delay: .16s; }
.moving .schedule.seen .cover:nth-child(4) { transition-delay: .24s; } .moving .schedule.seen .cover:nth-child(5) { transition-delay: .32s; }

@media (max-width: 860px) {
  .book { grid-template-columns: 1fr; }
  .chat { min-height: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  .mic-dot, .typing i { animation: none; }
}

/* ---- "You ask, it does the busywork" illustration ---- */
.rest { padding: clamp(64px, 8vw, 112px) var(--gutter) 0; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.rest h2 { font-size: clamp(32px, 4vw, 52px); letter-spacing: -0.03em; line-height: 1.05; }
.rest-copy p { color: var(--muted); max-width: 50ch; margin-top: 18px; }
.rest-art { width: 100%; height: auto; display: block; }
.moving .rest-art .chip { opacity: 0; animation: chip 8s infinite; }
.moving .rest-art .chip2 { animation-delay: 2s; } .moving .rest-art .chip3 { animation-delay: 4s; } .moving .rest-art .chip4 { animation-delay: 6s; }
@keyframes chip { 0% { opacity: 0; transform: translateY(14px); } 6%, 40% { opacity: 1; transform: none; } 50%, 100% { opacity: 0; transform: translateY(-10px); } }
.moving .rest-art .steam path { animation: steam 2.6s ease-in-out infinite; }
.moving .rest-art .steam .s2 { animation-delay: 1.1s; }
@keyframes steam { 0% { opacity: 0; transform: translateY(6px); } 40% { opacity: .9; } 100% { opacity: 0; transform: translateY(-10px); } }
.moving .rest-art .voice-line { animation: dash 1.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -30; } }
.moving .rest-art .head { transform-origin: 164px 240px; animation: nod 6s ease-in-out infinite; }
@keyframes nod { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(-1deg); } }
.moving .rest-art .sb { transform-box: fill-box; transform-origin: left; animation: grow 4s ease-in-out infinite alternate; }
.moving .rest-art .sb2 { animation-delay: .4s; } .moving .rest-art .sb3 { animation-delay: .8s; } .moving .rest-art .sb4 { animation-delay: 1.2s; } .moving .rest-art .sb5 { animation-delay: 1.6s; }
@keyframes grow { from { transform: scaleX(.55); } to { transform: scaleX(1); } }
.moving .rest-art .screen-mic { animation: micp 1.8s infinite; transform-box: fill-box; transform-origin: center; }
@keyframes micp { 50% { transform: scale(1.18); } }
.moving .rest-art .speech { animation: speech 8s infinite; }
@keyframes speech { 0%, 30% { opacity: 1; } 40%, 90% { opacity: 0; } 100% { opacity: 1; } }
@media (max-width: 860px) { .rest { grid-template-columns: 1fr; } }

/* ---- Color and steadier headline ---- */
.rot-line { display: block; height: 1.2em; line-height: 1.15; overflow: hidden; white-space: nowrap; font-size: .9em; }
.hero { position: relative; isolation: isolate; }
.hero::before { content: ""; position: absolute; z-index: -1; right: var(--gutter); top: 50%; width: min(46vw, 560px); aspect-ratio: 1; transform: translate(12%, -50%);
  background: radial-gradient(circle at 30% 30%, rgba(58, 115, 181, .22), transparent 42%), radial-gradient(circle at 72% 28%, rgba(122, 82, 179, .22), transparent 40%),
    radial-gradient(circle at 30% 74%, rgba(35, 112, 75, .22), transparent 42%), radial-gradient(circle at 74% 72%, rgba(185, 130, 47, .26), transparent 42%); filter: blur(8px); }
.ribbon { overflow: hidden; border-top: 1px solid var(--rule); padding: 18px 0; background: #fff; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ribbon-track { display: flex; gap: 10px; width: max-content; }
.moving .ribbon-track { animation: ribbon 70s linear infinite; }
.ribbon:hover .ribbon-track { animation-play-state: paused; }
@keyframes ribbon { to { transform: translateX(-50%); } }
.tag { white-space: nowrap; border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 600; }
.tag-personal { background: var(--personal-bg); color: var(--personal); }
.tag-commercial { background: var(--commercial-bg); color: var(--commercial); }
.tag-life { background: var(--life-bg); color: var(--life); }
.tag-health { background: var(--health-bg); color: var(--health); }
.tag-other { background: var(--other-bg); color: var(--other); }
.closing { background: linear-gradient(120deg, #173c34 0%, #1d4a5c 55%, #3b2f63 100%); }
.closing-sub { color: #d4e2dd; max-width: 56ch; margin: -12px 0 28px; font-size: 18px; }
.feature-list div { border-top-width: 3px; }
.feature-list div:nth-child(4n + 1) { border-top-color: var(--personal); } .feature-list div:nth-child(4n + 2) { border-top-color: var(--commercial); }
.feature-list div:nth-child(4n + 3) { border-top-color: var(--life); } .feature-list div:nth-child(4n + 4) { border-top-color: var(--health); }

/* Why agencies switch */
.compare { padding: 0 var(--gutter) clamp(64px, 8vw, 104px); }
.compare h2 { font-size: clamp(30px, 3.6vw, 46px); letter-spacing: -0.03em; line-height: 1.08; margin: 0 0 24px; }
.compare .table-wrap { overflow-x: auto; }
.compare table { border-collapse: collapse; min-width: 640px; width: 100%; }
.compare th, .compare td { border-bottom: 1px solid #dfe6e2; padding: 14px 16px; text-align: left; vertical-align: top; }
.compare thead th { color: var(--muted); font-size: 14px; font-weight: 600; }
.compare thead th:nth-child(2), .compare td:nth-child(2) { background: #eef6f2; color: var(--ink); }
.compare thead th:nth-child(2) { border-radius: 12px 12px 0 0; font-weight: 800; }
@media (max-width: 700px) { .compare table { min-width: 0; font-size: 14px; } .compare th, .compare td { padding: 10px 8px; } }
.compare tbody th { font-weight: 600; width: 26%; }
.compare td strong { font-size: 1.25em; }
.compare-note { color: var(--muted); font-size: 13px; margin-top: 10px; }
.price-box li.founding { color: var(--go); }
