/* Homepage only. Every class is prefixed hp- so it can't collide with main.css.
   Layouts are fluid (clamp / auto-fit / min()) so they hold up under browser zoom. */

.hp{--hp-gap:clamp(20px,3vw,32px);--hp-pad:clamp(56px,9vw,112px);color:var(--ink);overflow-x:clip}
.hp *{min-width:0}
.hp-wrap{width:min(100% - 2*var(--gutter),var(--maxw));margin-inline:auto}
.hp-section{padding-block:var(--hp-pad)}
.hp-section--alt{background:var(--surface-alt);border-block:1px solid var(--line)}
.hp-section--dark{background:var(--surface-dark);color:#fff}
.hp-section--dark h2,.hp-section--dark h3{color:#fff}

.hp-h2{font-size:clamp(28px,4.2vw,46px);line-height:1.05;max-width:20ch;text-wrap:balance}
.hp-h2 em{font-style:normal;color:var(--brand)}
.hp-lede{font-size:clamp(16px,1.6vw,19px);color:var(--ink-soft);max-width:56ch;margin-top:16px;line-height:1.6}
.hp-section--dark .hp-lede{color:#B8BBC4}
.hp-head{margin-bottom:clamp(32px,5vw,56px)}
.hp-head .eyebrow{margin-bottom:14px}

/* ---------- Hero ---------- */
.hp-hero{background:var(--surface-alt);padding-block:clamp(40px,7vw,96px);position:relative;border-bottom:1px solid var(--line)}
.hp-hero::before{content:"";position:absolute;inset:0;background-image:linear-gradient(var(--line) 1px,transparent 1px),linear-gradient(90deg,var(--line) 1px,transparent 1px);background-size:48px 48px;opacity:.35;mask-image:radial-gradient(ellipse at 75% 40%,#000 0,transparent 70%);-webkit-mask-image:radial-gradient(ellipse at 75% 40%,#000 0,transparent 70%);pointer-events:none}
.hp-hero__grid{position:relative;display:grid;gap:clamp(36px,6vw,72px);align-items:center;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr)}
@media (max-width:960px){.hp-hero__grid{grid-template-columns:minmax(0,1fr)}}
.hp-hero__h1{font-size:clamp(38px,6.4vw,76px);line-height:.98;letter-spacing:-.02em;margin-top:18px;text-wrap:balance}
.hp-hero__h1 em{font-style:normal;color:var(--brand);display:block}
.hp-hero__sub{font-size:clamp(17px,1.9vw,21px);color:var(--ink-soft);max-width:34em;margin-top:clamp(18px,2.4vw,26px);line-height:1.55}
.hp-hero__cta{display:flex;flex-wrap:wrap;align-items:center;gap:14px 20px;margin-top:clamp(24px,3vw,34px)}
.hp-hero__note{font-size:14.5px;color:var(--ink-faint)}
.hp-btn-lg{padding:16px 28px;font-size:1.1rem}
.hp-trust{display:flex;flex-wrap:wrap;gap:10px 24px;list-style:none;margin-top:clamp(28px,4vw,44px);padding-top:22px;border-top:1px solid var(--line);font-weight:600;font-size:15px;color:var(--ink-soft)}
.hp-trust li{display:flex;align-items:center;gap:8px}
.hp-trust li::before{content:"✓";display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--brand-light);color:var(--brand-dark);font-size:12px}

/* Hero visual: a real HTML "app" so it scales crisply at any zoom */
.hp-device{position:relative;justify-self:center;width:min(100%,400px)}
.hp-device__glow{position:absolute;inset:8% -6% -6% 10%;background:var(--brand-light);border-radius:32px;transform:rotate(3deg);z-index:0}
.hp-phone{position:relative;z-index:1;background:var(--surface);border:2px solid var(--ink);border-radius:30px;padding:14px;box-shadow:var(--shadow-lg)}
.hp-phone__bar{display:flex;justify-content:space-between;font-family:var(--mono);font-size:12px;color:var(--ink-faint);padding:4px 8px 12px}
.hp-phone__title{font-family:var(--font);font-weight:700;font-size:22px;padding:0 8px 12px}
.hp-row{display:flex;justify-content:space-between;gap:12px;padding:12px 10px;border-top:1px solid var(--line);font-size:15px}
.hp-row b{font-family:var(--font);font-weight:700;white-space:nowrap}
.hp-row span small{display:block;color:var(--ink-faint);font-size:12.5px}
.hp-total{display:flex;justify-content:space-between;margin-top:8px;padding:14px 12px;background:var(--ink);color:#fff;border-radius:12px;font-family:var(--font);font-weight:700;font-size:18px}
.hp-chip{display:inline-block;padding:3px 10px;border-radius:99px;font-size:12px;font-weight:600;font-family:var(--font-body)}
.hp-chip--paid{background:#DDF1E5;color:var(--success)}
.hp-chip--due{background:var(--brand-light);color:var(--brand-dark)}
.hp-toast{position:absolute;z-index:2;left:-6%;bottom:-18px;display:flex;align-items:center;gap:10px;background:var(--surface);border:2px solid var(--ink);border-radius:14px;padding:10px 14px;box-shadow:var(--shadow-md);font-weight:600;font-size:14px}
.hp-toast i{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--circuit);color:#fff;font-style:normal;font-size:13px}
@media (max-width:480px){.hp-toast{left:0}}

/* ---------- Pain points ---------- */
.hp-quotes{display:grid;gap:var(--hp-gap);grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr))}
.hp-quote{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:clamp(22px,3vw,32px);display:flex;flex-direction:column;gap:18px;justify-content:space-between}
.hp-quote p{font-family:var(--font);font-weight:600;font-size:clamp(18px,2vw,22px);line-height:1.3}
.hp-quote cite{font-style:normal;font-size:14px;color:var(--ink-faint);font-family:var(--mono)}

/* ---------- Four steps ---------- */
.hp-steps{display:grid;gap:var(--hp-gap);grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr))}
.hp-step{display:flex;flex-direction:column;gap:6px}
.hp-step__no{font-family:var(--mono);font-size:13px;color:var(--brand-dark);font-weight:500}
.hp-step h3{font-size:clamp(22px,2.4vw,28px)}
.hp-step__say{color:var(--ink-soft);font-size:15.5px;margin-bottom:12px}
.hp-step__more{margin-top:14px;font-weight:600;font-size:15px;color:var(--brand-dark);text-decoration:none}
.hp-step__more:hover{text-decoration:underline}
.hp-card{background:var(--surface);border:1.5px solid var(--ink);border-radius:18px;padding:10px 6px;box-shadow:4px 4px 0 var(--ink);flex:1}
.hp-card__head{display:flex;justify-content:space-between;gap:8px;padding:8px 12px 10px;font-family:var(--mono);font-size:12px;color:var(--ink-faint)}
.hp-card .hp-row{font-size:14.5px}

/* ---------- Assistant / calendar split ---------- */
.hp-split{display:grid;gap:clamp(32px,6vw,72px);align-items:center;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
@media (max-width:900px){.hp-split{grid-template-columns:minmax(0,1fr)}.hp-split--flip .hp-split__media{order:2}}
.hp-list{list-style:none;display:grid;gap:12px;margin:24px 0 30px}
.hp-list li{position:relative;padding-left:30px;color:var(--ink-soft);line-height:1.5}
.hp-list li::before{content:"";position:absolute;left:0;top:.3em;width:18px;height:18px;border-radius:50%;background:var(--brand-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.4 2.4 4.6-5' fill='none' stroke='%23C4470A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat}
.hp-chat{display:grid;gap:12px}
.hp-msg{max-width:88%;padding:12px 16px;border-radius:16px;font-size:15px;line-height:1.45}
.hp-msg--user{justify-self:end;background:var(--ink);color:#fff;border-bottom-right-radius:4px}
.hp-msg--bot{background:var(--surface-alt);border:1px solid var(--line);border-bottom-left-radius:4px}
.hp-confirm{margin-top:6px;text-align:center;padding:12px;border-radius:10px;background:var(--brand);color:#fff;font-weight:700;font-family:var(--font)}

.hp-week{background:var(--surface);border:1.5px solid var(--ink);border-radius:18px;box-shadow:6px 6px 0 var(--ink);overflow:hidden}
.hp-week__head{display:flex;justify-content:space-between;gap:10px;padding:14px 18px;border-bottom:1.5px solid var(--ink);font-family:var(--mono);font-size:12.5px;text-transform:uppercase;letter-spacing:.05em}
.hp-week__grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
.hp-day{min-height:170px;padding:8px 5px;border-right:1px solid var(--line);display:flex;flex-direction:column;gap:5px}
.hp-day:last-child{border-right:0}
.hp-day--today{background:var(--brand-light)}
.hp-day--off{background:var(--surface-alt)}
.hp-day__l{font-family:var(--mono);font-size:11px;color:var(--ink-faint);text-transform:uppercase;text-align:center}
.hp-job{font-size:11px;line-height:1.25;padding:5px 6px;border-radius:6px;background:var(--circuit-light);border-left:3px solid var(--circuit);overflow-wrap:anywhere}
.hp-job--urgent{background:#FDE3D2;border-color:var(--brand)}
.hp-job--cert{background:#E7E9F5;border-color:#4254A8}
@media (max-width:560px){.hp-job{font-size:10px;padding:4px}.hp-day__l{font-size:10px}}

/* ---------- Not list ---------- */
.hp-nots{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr))}
.hp-not{display:flex;gap:14px;align-items:flex-start;padding:18px 20px;border:1px solid #2E333D;border-radius:14px;background:var(--surface-dark-soft)}
.hp-not__x{flex:none;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#3A2218;color:#FF9152;font-size:13px}
.hp-not strong{display:block;font-weight:600;line-height:1.35}
.hp-not span{display:block;margin-top:4px;font-size:14px;color:#9EA2AD}

/* ---------- Price + FAQ ---------- */
.hp-price{display:grid;gap:clamp(24px,5vw,56px);align-items:center;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);background:var(--surface);border:1.5px solid var(--ink);border-radius:24px;padding:clamp(28px,5vw,56px);box-shadow:8px 8px 0 var(--ink)}
@media (max-width:800px){.hp-price{grid-template-columns:minmax(0,1fr)}}
.hp-price__big{font-family:var(--font);font-weight:700;font-size:clamp(44px,7vw,84px);line-height:1;color:var(--brand)}
.hp-price__big small{font-size:.3em;color:var(--ink-soft);font-weight:600}
.hp-faq{display:grid;gap:12px;max-width:820px}
.hp-faq details{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:18px 22px}
.hp-faq summary{cursor:pointer;font-family:var(--font);font-weight:700;font-size:clamp(17px,1.8vw,20px);list-style:none;display:flex;justify-content:space-between;gap:16px}
.hp-faq summary::-webkit-details-marker{display:none}
.hp-faq summary::after{content:"+";color:var(--brand);font-size:1.3em;line-height:1}
.hp-faq details[open] summary::after{content:"–"}
.hp-faq p{margin-top:10px;color:var(--ink-soft)}

/* ---------- Close ---------- */
.hp-close{text-align:center}
.hp-close h2{font-size:clamp(34px,6vw,68px);max-width:none;margin-inline:auto}
.hp-close .hp-btn-lg{margin-top:28px}
.hp-close p{color:#9EA2AD;margin-top:14px;font-size:15px}

/* ---------- Demo video ---------- */
.hp-demo{background:var(--surface)}
.hp-video{width:100%;max-width:1040px;margin-inline:auto;border-radius:clamp(10px,2vw,24px);overflow:hidden;border:1.5px solid var(--ink);box-shadow:clamp(3px,.8vw,8px) clamp(3px,.8vw,8px) 0 var(--ink);background:var(--surface-dark)}
.hp-video video{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:contain;background:var(--surface-dark)}

/* App download buttons */
.hp-apps{margin-top:clamp(20px,2.6vw,30px)}
.hp-apps__label{font-size:13px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-faint)}
.hp-apps__row{display:flex;flex-wrap:wrap;gap:12px;margin-top:10px}
.hp-store{display:inline-flex;align-items:center;gap:12px;padding:10px 20px 10px 16px;border-radius:12px;background:var(--surface-dark);color:#fff;text-decoration:none;border:1px solid var(--surface-dark);transition:transform .15s ease,box-shadow .15s ease}
.hp-store:hover{transform:translateY(-1px);box-shadow:0 6px 18px rgba(22,24,29,.22)}
.hp-store__icon{width:26px;height:26px;flex:none}
.hp-store span{display:flex;flex-direction:column;line-height:1.15;font-weight:600;font-size:16px}
.hp-store small{font-size:11px;font-weight:500;opacity:.75;letter-spacing:.02em}
.hp-store--soon{background:transparent;color:var(--ink-faint);border:1px dashed var(--line);cursor:default}
.hp-store--soon:hover{transform:none;box-shadow:none}
.hp-apps__note{margin-top:10px;font-size:13px;color:var(--ink-faint);max-width:36em}
.hp-apps--dark .hp-apps__label,.hp-apps--dark .hp-apps__note{color:rgba(255,255,255,.6)}
.hp-apps--dark .hp-store{background:#fff;color:var(--ink);border-color:#fff}
.hp-apps--dark .hp-store--soon{background:transparent;color:rgba(255,255,255,.55);border:1px dashed rgba(255,255,255,.3)}
.hp-social{display:flex;align-items:center;gap:10px;margin-top:22px}
.hp-social__label{font-size:14px;color:var(--ink-faint);margin-right:4px}
.hp-social__link{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:12px;color:#fff;transition:transform .15s}
.hp-social__link:hover{transform:translateY(-2px)}
.hp-social__link--ig{background:linear-gradient(45deg,#f09433,#e6683c 30%,#dc2743 55%,#cc2366 75%,#bc1888)}
.hp-social__link--fb{background:#1877f2}
