/* DealLine public site. One stylesheet for both pages, served as a file (the CSP allows style from 'self' only,
   so there are no style attributes or <style> blocks in the HTML).

   Motion rules, all enforced by tests/test_layout.py in a real browser:
   - only transform and opacity animate on large areas; stroke-dashoffset runs on a few short check-mark paths;
   - .anim illustrations pause off screen and in hidden tabs (site.js adds .js, .is-live and .is-hidden);
   - under prefers-reduced-motion nothing animates and every illustration shows its finished state;
   - small screens run fewer moving parts. */

@font-face{font-family:"Inter";font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/fonts/5.3.0/inter-latin-wght-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Mulish";font-style:normal;font-weight:200 1000;font-display:swap;src:url(/assets/fonts/5.3.0/mulish-latin-wght-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

:root{
  /* Palette. tests/test_contrast.py reads these and checks every text pairing against WCAG AA.
     --red is the app's accent, so the site and the app are one brand, and is not the brokerage's red. White on
     --red is only 3.53:1, so filled red buttons use --on-red (near black, 5.60:1), as the app does. */
  --bg:#0A0A0A;
  --surface:#121212;
  --surface-2:#0F0F0F;
  --line:#262626;
  --fg:#FFFFFF;
  --muted:#A3A3A3;
  --red:#FF3B3B;
  --red-hover:#FF5C5C;
  --on-red:#0A0A0A;
  --gutter:16px;
  --max:1120px;
  --radius:16px;
  color-scheme:dark;
  text-size-adjust:100%;
}
@media (min-width:768px){:root{--gutter:32px}}

*,*::before,*::after{box-sizing:border-box}
html{background:var(--bg)}
body{margin:0;background:var(--bg);color:var(--fg);font-family:"Inter",system-ui,sans-serif;font-size:clamp(1rem,.96rem + .2vw,1.0625rem);line-height:1.6}
h1,h2,h3{font-family:"Mulish","Inter",system-ui,sans-serif;line-height:1.12;letter-spacing:-.02em;margin:0;font-weight:800}
h1{font-size:clamp(2.25rem,1.3rem + 4.2vw,4.25rem)}
h2{font-size:clamp(1.75rem,1.25rem + 2vw,2.75rem)}
h3{font-size:clamp(1.0625rem,1rem + .3vw,1.1875rem);font-weight:700;letter-spacing:-.01em}
p{margin:0}
a{color:inherit}
svg{display:block}
:focus-visible{outline:2px solid var(--red);outline-offset:3px;border-radius:8px}

/* The gutter never drops below 16px and grows to clear a notch or rounded corner (viewport-fit=cover). */
.wrap{
  width:100%;max-width:calc(var(--max) + 2 * var(--gutter));margin-inline:auto;
  padding-left:max(var(--gutter),env(safe-area-inset-left,0px));
  padding-right:max(var(--gutter),env(safe-area-inset-right,0px));
}
.red{color:var(--red)}

/* Icons: hand-drawn 24px line icons, colored by currentColor. */
.ico{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;flex:none}
.ico-lg{width:28px;height:28px;color:var(--red)}
.ico-xl{width:40px;height:40px;color:var(--red)}

/* Buttons. Every link on the site is at least 44px tall (tests/test_layout.py measures them). */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;min-width:44px;padding:0 18px;
  border-radius:999px;border:1px solid transparent;font-weight:600;font-size:.9375rem;line-height:1.2;
  text-decoration:none;white-space:nowrap;transition:background-color .2s,border-color .2s,color .2s;
}
.btn-lg{min-height:52px;padding:0 26px;font-size:1rem}
.btn-red{background:var(--red);color:var(--on-red)}
.btn-red:hover{background:var(--red-hover)}
.btn-outline{border-color:rgba(255,255,255,.28);color:var(--fg)}
.btn-outline:hover{border-color:var(--fg)}
.btn-ghost{color:var(--fg)}
.btn-ghost:hover{background:rgba(255,255,255,.07)}

/* Header */
.top{
  position:sticky;top:0;z-index:10;background:rgba(10,10,10,.92);border-bottom:1px solid var(--line);
  padding-top:env(safe-area-inset-top,0px);
}
.top-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:64px}
.brand{display:inline-flex;align-items:center;gap:10px;min-height:44px;text-decoration:none;font-family:"Mulish","Inter",sans-serif;font-weight:800;font-size:1.1875rem;letter-spacing:-.01em}
.brand-mark{width:28px;height:28px}
.bm-box{fill:var(--bg);stroke:rgba(255,255,255,.28);stroke-width:2}
.bm-line{stroke:var(--fg);stroke-width:2.5;stroke-linecap:round}
.bm-soft{stroke:rgba(255,255,255,.55);stroke-width:2.5;stroke-linecap:round}
.bm-dot{fill:var(--red)}
.top-nav{display:flex;align-items:center;gap:8px}
/* The phone nav: brand and Sign in. The invitation button is the hero's first action on every screen size,
   so the header drops its copy rather than wrapping or hiding it behind a menu. */
@media (max-width:559px){.top-invite{display:none}}

/* Hero */
.hero{position:relative;isolation:isolate;padding-block:clamp(48px,9vw,112px) clamp(56px,9vw,120px)}
.hero::after{
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:radial-gradient(60% 50% at 85% 20%,rgba(255,59,59,.14),transparent 70%);
}
.hero-grid{position:relative;display:grid;gap:clamp(40px,6vw,64px);align-items:center}
@media (min-width:960px){.hero-grid{grid-template-columns:1.05fr 1fr}}
.hero-copy{display:grid;gap:22px;justify-items:start}
.tagline{
  display:inline-flex;align-items:center;gap:10px;padding:8px 14px;border:1px solid var(--line);border-radius:999px;
  background:rgba(255,255,255,.03);font-size:.875rem;font-weight:600;
}
.tagline .ico{color:var(--red)}
.lead{font-size:clamp(1.0625rem,1rem + .45vw,1.3125rem);color:var(--muted);max-width:36em}
.cta-row{display:flex;flex-wrap:wrap;gap:12px}
.cta-center{justify-content:center}
.fine{font-size:.875rem;color:var(--muted)}
@media (max-width:479px){.cta-row{width:100%}.cta-row .btn{flex:1 1 100%}}

.hero-copy>*{animation:rise .8s cubic-bezier(.2,.7,.2,1) backwards}
.hero-copy>:nth-child(2){animation-delay:.08s}
.hero-copy>:nth-child(3){animation-delay:.16s}
.hero-copy>:nth-child(4){animation-delay:.24s}
.hero-copy>:nth-child(5){animation-delay:.32s}
@keyframes rise{from{opacity:0;transform:translate3d(0,16px,0)}to{opacity:1;transform:none}}

/* The deadline sweep: a static grid, red and white beams crossing it, and a slow vertical scan. Transforms only. */
.sweep{position:absolute;inset:0;z-index:-1;overflow:hidden;pointer-events:none}
.grid{
  position:absolute;inset:0;
  background-image:linear-gradient(to right,rgba(255,255,255,.05) 1px,transparent 1px),linear-gradient(to bottom,rgba(255,255,255,.05) 1px,transparent 1px);
  background-size:56px 56px;
  mask-image:radial-gradient(ellipse 80% 70% at 50% 35%,#000 25%,transparent 75%);
}
.beam{position:absolute;left:0;height:1px;width:45%;will-change:transform;animation:beam 11s linear infinite}
.b1{top:24%;background:linear-gradient(90deg,transparent,var(--red) 75%,#fff 98%,transparent)}
.b2{top:58%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.55) 90%,transparent);animation-duration:15s;animation-delay:-6s}
.b3{top:82%;background:linear-gradient(90deg,transparent,var(--red) 80%,transparent);animation-duration:19s;animation-delay:-11s}
@keyframes beam{from{transform:translate3d(-100%,0,0)}to{transform:translate3d(230%,0,0)}}
.scan{position:absolute;inset:0;will-change:transform;animation:scan 18s linear infinite}
.scan span{position:absolute;left:0;top:0;bottom:0;width:1px;background:linear-gradient(to bottom,transparent,rgba(255,255,255,.28),transparent)}
@keyframes scan{from{transform:translate3d(-2%,0,0)}to{transform:translate3d(102%,0,0)}}
/* Small screens: one beam, no scan, a finer grid. */
@media (max-width:599px){
  .b2,.b3,.scan{display:none}
  .grid{background-size:40px 40px}
}

/* Sections */
.section{padding-block:clamp(64px,9vw,120px)}
.band{background:var(--surface-2);border-block:1px solid var(--line)}
.section-head{display:grid;gap:12px;margin-bottom:clamp(32px,4vw,48px);max-width:40em}
.eyebrow{color:var(--red);font-weight:700;font-size:.8125rem;letter-spacing:.08em;text-transform:uppercase}

.cards{list-style:none;margin:0;padding:0;display:grid;gap:16px;grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),1fr))}
.card-item{display:grid;gap:12px;align-content:start;padding:24px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);transition:border-color .2s}
.card-item:hover{border-color:rgba(255,59,59,.45)}
.card-item p{color:var(--muted)}

.split{display:grid;gap:clamp(32px,5vw,64px);align-items:center}
@media (min-width:900px){
  .split{grid-template-columns:1fr 1.1fr}
  .split-flip{grid-template-columns:1.1fr 1fr}
  .split-flip .split-copy{order:2}
}
.split-copy{display:grid;gap:16px;align-content:start}
.split-copy>p{color:var(--muted)}
.ticks{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:10px}
.ticks li{display:flex;gap:12px;align-items:flex-start}
.ticks .ico{color:var(--red);margin-top:4px}
.ticks-lg{gap:14px;font-size:1.0625rem}

.invite-box{display:grid;justify-items:center;gap:16px;text-align:center}
.invite{background:radial-gradient(50% 60% at 50% 0%,rgba(255,59,59,.12),transparent 70%)}
.invite-box>p{color:var(--muted);max-width:32em}

/* Footer */
.foot{border-top:1px solid var(--line);padding-top:16px;padding-bottom:calc(16px + env(safe-area-inset-bottom,0px))}
.foot-row{display:grid;gap:4px}
@media (min-width:768px){.foot-row{grid-template-columns:1fr auto;align-items:center;gap:24px}}
.foot-text{display:flex;flex-wrap:wrap;align-items:center;gap:4px 16px;color:var(--muted);font-size:.875rem}
.foot-link{display:inline-flex;align-items:center;min-height:44px;min-width:44px;color:var(--muted);text-decoration:underline;text-underline-offset:3px}
.foot-link:hover{color:var(--fg)}

/* Privacy page */
.prose{max-width:calc(720px + 2 * var(--gutter));display:grid;gap:18px}
.prose h1{font-size:clamp(2rem,1.4rem + 2.8vw,3.25rem);margin-bottom:8px}
.prose h2{font-size:1.25rem;margin-top:24px}
.prose p{color:var(--muted)}
.text-link{display:inline-flex;align-items:center;min-height:44px;color:var(--red);overflow-wrap:anywhere}

/* Illustrations. Stylized, never screenshots. Every lit or drawn part's resting state is its finished state; the
   keyframes below start them from nothing. So with no animation (reduced motion) they simply show finished. */
.art{margin:0;min-width:0}
.art svg{width:100%;height:auto}
.card{fill:var(--surface);stroke:var(--line);stroke-width:1.5}
.bar{fill:#2A2A2A}
.bar-strong{fill:#3A3A3A}
.bar-red{fill:var(--red)}
.rule{fill:var(--line)}
.pill{fill:#1C1C1C;stroke:#2E2E2E}
.pill-line{stroke:var(--red);stroke-width:3;stroke-linecap:round}
.pill-text{fill:var(--muted);font:600 12px "Inter",sans-serif;text-anchor:middle}
.tl-track{stroke:#2E2E2E;stroke-width:3;stroke-linecap:round;fill:none}
.tl-progress{stroke:var(--red);stroke-width:3;stroke-linecap:round;fill:none;transform-box:fill-box;transform-origin:0 50%}
.chip{fill:#1A1A1A;stroke:#2E2E2E}
.chip-lit{fill:rgba(255,59,59,.14);stroke:var(--red)}
.chip-text{fill:var(--fg);font:700 13px "Inter",sans-serif;text-anchor:middle}
.dot{fill:var(--bg);stroke:#3A3A3A;stroke-width:2}
.dot-lit{fill:var(--red)}
.finish-ring{fill:var(--bg);stroke:#3A3A3A;stroke-width:2}
.finish-lit{fill:var(--red)}
.finish-check,.tick{fill:none;stroke:var(--on-red);stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1 1}
.tick{stroke-width:3}
.cell{fill:#171717;stroke:#232323}
.cell-lit{fill:var(--red)}
.row{fill:#171717;stroke:var(--line)}
.box{fill:none;stroke:#3A3A3A;stroke-width:2}
.box-lit{fill:var(--red)}
.line{transform-box:fill-box;transform-origin:0 50%}
.review-box{fill:#171717;stroke:#2E2E2E}
.review-text{fill:var(--fg);font:600 15px "Inter",sans-serif}
.send-box{fill:rgba(255,59,59,.12);stroke:var(--red)}
.send-plane{fill:var(--red);transform-box:fill-box;transform-origin:50% 50%}

/* One 9s cycle for every illustration. Steps land at 2, 10, 20, 30, 40 and 50%; all reset together at 88-95%. */
.art-timeline .tl-progress{animation:track 9s linear infinite}
.n1 .chip-lit,.n1 .dot-lit{animation:on-0 9s ease infinite}
.n2 .chip-lit,.n2 .dot-lit{animation:on-1 9s ease infinite}
.n3 .chip-lit,.n3 .dot-lit{animation:on-2 9s ease infinite}
.n4 .chip-lit,.n4 .dot-lit{animation:on-3 9s ease infinite}
.n5 .chip-lit,.n5 .dot-lit{animation:on-4 9s ease infinite}
.art-timeline .finish-lit{animation:on-5 9s ease infinite}
.art-timeline .finish-check{animation:draw-5 9s ease infinite}

.c1{animation:on-0 9s ease infinite}
.c2{animation:on-1 9s ease infinite}
.c3{animation:on-2 9s ease infinite}
.c4{animation:on-3 9s ease infinite}
.c5{animation:on-4 9s ease infinite}
.t1 .box-lit{animation:on-1 9s ease infinite}
.t1 .tick{animation:draw-1 9s ease infinite}
.t2 .box-lit{animation:on-2 9s ease infinite}
.t2 .tick{animation:draw-2 9s ease infinite}
.t3 .box-lit{animation:on-3 9s ease infinite}
.t3 .tick{animation:draw-3 9s ease infinite}
.t4 .box-lit{animation:on-4 9s ease infinite}
.t4 .tick{animation:draw-4 9s ease infinite}

.l1{animation:grow-0 9s ease infinite}
.l2{animation:grow-1 9s ease infinite}
.l3{animation:grow-2 9s ease infinite}
.l4{animation:grow-3 9s ease infinite}
.l5{animation:grow-4 9s ease infinite}
.art-draft .finish-lit{animation:on-5 9s ease infinite}
.art-draft .finish-check{animation:draw-5 9s ease infinite}
.send-plane{animation:fly 9s ease infinite}

@keyframes track{0%{transform:scaleX(0);opacity:1}50%,88%{transform:scaleX(1);opacity:1}95%{transform:scaleX(1);opacity:0}100%{transform:scaleX(0);opacity:0}}
@keyframes on-0{0%,2%{opacity:0}5%,88%{opacity:1}95%,100%{opacity:0}}
@keyframes on-1{0%,10%{opacity:0}13%,88%{opacity:1}95%,100%{opacity:0}}
@keyframes on-2{0%,20%{opacity:0}23%,88%{opacity:1}95%,100%{opacity:0}}
@keyframes on-3{0%,30%{opacity:0}33%,88%{opacity:1}95%,100%{opacity:0}}
@keyframes on-4{0%,40%{opacity:0}43%,88%{opacity:1}95%,100%{opacity:0}}
@keyframes on-5{0%,50%{opacity:0}53%,88%{opacity:1}95%,100%{opacity:0}}
@keyframes draw-1{0%,12%{stroke-dashoffset:1;opacity:1}20%,88%{stroke-dashoffset:0;opacity:1}95%{stroke-dashoffset:0;opacity:0}100%{stroke-dashoffset:1;opacity:0}}
@keyframes draw-2{0%,22%{stroke-dashoffset:1;opacity:1}30%,88%{stroke-dashoffset:0;opacity:1}95%{stroke-dashoffset:0;opacity:0}100%{stroke-dashoffset:1;opacity:0}}
@keyframes draw-3{0%,32%{stroke-dashoffset:1;opacity:1}40%,88%{stroke-dashoffset:0;opacity:1}95%{stroke-dashoffset:0;opacity:0}100%{stroke-dashoffset:1;opacity:0}}
@keyframes draw-4{0%,42%{stroke-dashoffset:1;opacity:1}50%,88%{stroke-dashoffset:0;opacity:1}95%{stroke-dashoffset:0;opacity:0}100%{stroke-dashoffset:1;opacity:0}}
@keyframes draw-5{0%,52%{stroke-dashoffset:1;opacity:1}62%,88%{stroke-dashoffset:0;opacity:1}95%{stroke-dashoffset:0;opacity:0}100%{stroke-dashoffset:1;opacity:0}}
@keyframes grow-0{0%,2%{transform:scaleX(0);opacity:1}10%,88%{transform:scaleX(1);opacity:1}95%{transform:scaleX(1);opacity:0}100%{transform:scaleX(0);opacity:0}}
@keyframes grow-1{0%,10%{transform:scaleX(0);opacity:1}18%,88%{transform:scaleX(1);opacity:1}95%{transform:scaleX(1);opacity:0}100%{transform:scaleX(0);opacity:0}}
@keyframes grow-2{0%,20%{transform:scaleX(0);opacity:1}28%,88%{transform:scaleX(1);opacity:1}95%{transform:scaleX(1);opacity:0}100%{transform:scaleX(0);opacity:0}}
@keyframes grow-3{0%,30%{transform:scaleX(0);opacity:1}38%,88%{transform:scaleX(1);opacity:1}95%{transform:scaleX(1);opacity:0}100%{transform:scaleX(0);opacity:0}}
@keyframes grow-4{0%,40%{transform:scaleX(0);opacity:1}48%,88%{transform:scaleX(1);opacity:1}95%{transform:scaleX(1);opacity:0}100%{transform:scaleX(0);opacity:0}}
@keyframes fly{0%,64%{transform:none;opacity:1}72%{transform:translate(16px,-10px);opacity:0}76%{transform:translate(-10px,6px);opacity:0}84%,100%{transform:none;opacity:1}}

/* Small screens: the calendar keeps its grid still and only the task list ticks. */
@media (max-width:599px){
  .c1,.c2,.c3,.c4,.c5{animation:none}
}

/* Paused off screen and in hidden tabs. Only once site.js is running (.js), so without it nothing stays paused. */
.js .anim:not(.is-live) *,.is-hidden .anim *{animation-play-state:paused}

/* Scroll reveal. .reveal-on is added by site.js only when motion is allowed. */
.reveal{transition:opacity .7s ease,transform .7s cubic-bezier(.2,.7,.2,1)}
.reveal-on .reveal:not(.is-in){opacity:0;transform:translate3d(0,24px,0)}
.cards .card-item:nth-child(3n+2){transition-delay:.06s}
.cards .card-item:nth-child(3n){transition-delay:.12s}
@media (max-width:599px){.reveal-on .reveal:not(.is-in){transform:translate3d(0,12px,0)}}

/* Reduced motion: nothing moves, and everything is already in its finished state. */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
  .beam,.scan{display:none}
}
