/* Support Magna: the public home page (supportmagna.ca). Same type and colour as the app. */
:root{
  /* Iconic Digital World brand: dark #34386A, accent #A5185E, light #F6F5FF, darker #ECEBF7 */
  --brand:#A5185E;--navy:#34386A;--grey:#A09EB3;--lav:#F6F5FF;--bg2:#ECEBF7;
  --grad:var(--brand);
  --ink:#34386A;--muted:color-mix(in srgb,#34386A 78%,#fff);--soft:#A09EB3;--line:color-mix(in srgb,#A09EB3 30%,#fff);--bg:#F6F5FF;--surface:#fff;
  --wash:color-mix(in srgb,#A5185E 8%,#fff);--ok:#1f7a4d;--due:#b45309;--bad:#b42318;--info:#2563eb;
  --ui:"DM Sans",system-ui,-apple-system,"Segoe UI",sans-serif;--dp:"Sora","DM Sans",system-ui,sans-serif;
  --r:18px;--shadow:0 1px 2px rgba(52,56,106,.06),0 18px 40px -22px rgba(52,56,106,.3);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:84px}
body{margin:0;font:16px/1.6 var(--ui);color:var(--ink);background:var(--bg);-webkit-font-smoothing:antialiased}
img{max-width:100%;display:block}
a{color:inherit}
h1,h2,h3{font-family:var(--dp);letter-spacing:-.02em;line-height:1.12;margin:0}
.wrap{max-width:1160px;margin:0 auto;padding:0 24px}
.gt{color:var(--brand)}
.eyebrow{font-size:13px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--brand);margin:0 0 14px}
.lead{font-size:19px;color:var(--muted);margin:20px 0 0;max-width:560px}
.lead.sm{font-size:17px}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:42px;padding:0 20px;border-radius:999px;border:0;
  background:var(--grad);color:#fff;font:600 14.5px var(--ui);text-decoration:none;cursor:pointer;
  box-shadow:0 8px 22px -12px rgba(165,24,94,.5);transition:transform .15s,box-shadow .15s}
.btn:hover{transform:translateY(-1px);background:#8E1450;box-shadow:0 12px 26px -12px rgba(165,24,94,.55)}
.btn.lg{height:52px;padding:0 26px;font-size:15.5px}
.btn.w{width:100%}
.btn.ghost{background:var(--surface);color:var(--brand);box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--brand) 30%,#fff)}
.btn.ghost:hover{box-shadow:inset 0 0 0 1.5px var(--brand)}
.btn:disabled{opacity:.6;cursor:default;transform:none}
:focus-visible{outline:3px solid color-mix(in srgb,var(--brand) 45%,#fff);outline-offset:2px}

/* nav */
.nav{position:sticky;top:0;z-index:20;background:color-mix(in srgb,var(--bg) 82%,transparent);backdrop-filter:blur(14px);
  border-bottom:1px solid color-mix(in srgb,var(--line) 70%,transparent)}
.navin{display:flex;align-items:center;gap:24px;height:68px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;font:700 18px var(--dp);letter-spacing:-.02em}
.brand img{width:34px;height:34px;border-radius:9px;object-fit:contain}
.brand.sm{font-size:15px}.brand.sm img{width:26px;height:26px}
.links{display:flex;gap:26px;margin-left:18px}
.links a{text-decoration:none;color:var(--muted);font-weight:500;font-size:15px}
.links a:hover{color:var(--ink)}
.navcta{margin-left:auto;display:flex;gap:10px}

/* hero */
.hero{position:relative;overflow:hidden;padding:84px 0 70px}
.hero::before{content:"";position:absolute;inset:-30% -10% auto 40%;height:720px;
  display:none}
.herogrid{position:relative;display:grid;grid-template-columns:1.05fr .95fr;gap:56px;align-items:center}
.hero h1{font-size:clamp(34px,4.2vw,50px)}
.ctas{display:flex;gap:12px;flex-wrap:wrap;margin-top:32px}
.ticks{list-style:none;padding:0;margin:26px 0 0;display:flex;gap:22px;flex-wrap:wrap;color:var(--muted);font-size:14.5px}
.ticks li{display:flex;align-items:center;gap:8px}
.ticks li::before{content:"";width:18px;height:18px;border-radius:50%;flex:none;
  background:var(--wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A5185E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/11px no-repeat}

/* product mock */
.mock{position:relative;min-height:400px}
.mcard{background:var(--surface);border-radius:var(--r);box-shadow:var(--shadow);border:1px solid var(--line);padding:18px 20px;font-size:14px}
.mcard.main{position:relative;margin:26px 34px 0 0}
.mh{display:flex;align-items:center;gap:9px;margin-bottom:12px}
.mh b{font-family:var(--dp);font-size:15px;font-weight:600}
.mh .chip{margin-left:auto}
.dot{width:9px;height:9px;border-radius:50%}.dot.ok{background:var(--ok)}.dot.bad{background:var(--bad)}.dot.info{background:var(--info)}
.chip{display:inline-block;font-size:12px;font-weight:600;padding:3px 10px;border-radius:999px}
.chip.ok{background:#e7f5ee;color:var(--ok)}.chip.due{background:#fdf1e3;color:var(--due)}
.mrow{display:grid;grid-template-columns:110px 1fr;gap:10px;padding:9px 0;border-top:1px solid var(--line)}
.mrow .lbl{color:var(--soft)}
.mfoot{margin-top:10px;padding-top:12px;border-top:1px dashed var(--line);color:var(--soft);font-size:12.5px}
.mcard.float{position:absolute;width:250px}
.mcard.float p{margin:0 0 10px;color:var(--muted)}
.mcard.a{right:-6px;bottom:-52px}
.mcard.b{left:-26px;bottom:-24px;width:230px}
.bar{height:7px;border-radius:9px;background:var(--line);overflow:hidden}.bar i{display:block;height:100%;width:66%;background:var(--grad)}

/* strip */
.strip{border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:var(--surface)}
.stripin{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;padding-top:26px;padding-bottom:26px}
.stripin div{display:flex;flex-direction:column;gap:2px}
.stripin b{font-family:var(--dp);font-size:15px;font-weight:600}
.stripin span{color:var(--muted);font-size:14px}

/* sections */
.sec{padding:100px 0}
.sec h2{font-size:clamp(30px,3.6vw,42px);max-width:720px}
.sec.tint{background:var(--bg2)}
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:48px}
.feat{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:26px;transition:transform .2s,box-shadow .2s}
.feat:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.feat h3{font-size:23px;margin:20px 0 10px}
.feat p{margin:0;color:var(--muted);font-size:15.5px}
.ic{display:grid;place-items:center;width:46px;height:46px;border-radius:14px;background:var(--wash)}
.ic svg{width:23px;height:23px;fill:none;stroke:var(--brand);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

.split{display:grid;grid-template-columns:.9fr 1.1fr;gap:64px;align-items:start}
.split .btn{margin-top:28px}
.checks{list-style:none;padding:0;margin:0;display:grid;gap:14px}
.checks li{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:18px 20px 18px 56px;position:relative;color:var(--muted);font-size:15px}
.checks li::before{content:"";position:absolute;left:18px;top:19px;width:24px;height:24px;border-radius:8px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/13px no-repeat,var(--grad)}
.checks b{color:var(--ink)}

.steps{list-style:none;padding:0;margin:48px 0 0;display:grid;grid-template-columns:repeat(3,1fr);gap:20px;counter-reset:s}
.steps li{position:relative;padding:28px;border-radius:var(--r);background:var(--surface);border:1px solid var(--line)}
.steps span{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:var(--navy);color:#fff;font:700 16px var(--dp)}
.steps h3{font-size:23px;margin:20px 0 10px}
.steps p{margin:0;color:var(--muted);font-size:15px}

/* contact */
.contact{background:var(--surface)}

.cgrid{display:grid;grid-template-columns:.85fr 1.15fr;gap:56px;align-items:start}
.ctext .ticks{flex-direction:column;gap:12px}
.form{background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:30px;box-shadow:var(--shadow)}
.kind{border:0;padding:0;margin:0 0 18px;display:flex;gap:10px;flex-wrap:wrap}
.kind legend{font-weight:600;font-size:14px;margin-bottom:10px;padding:0}
.kind label{flex:1;min-width:160px;cursor:pointer;position:relative}
.kind input{position:absolute;opacity:0;pointer-events:none;width:1px;height:1px;left:0;top:0}
.kind span{display:flex;align-items:center;justify-content:center;height:46px;border-radius:12px;border:1.5px solid var(--line);font-weight:600;color:var(--muted);transition:all .15s}
.kind input:checked+span{border-color:var(--brand);background:var(--wash);color:var(--brand)}
.kind input:focus-visible+span{outline:3px solid color-mix(in srgb,var(--brand) 45%,#fff);outline-offset:2px}
.two{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.fld{display:flex;flex-direction:column;gap:6px;margin-bottom:14px}
.fld label{font-size:14px;font-weight:600}
.fld i{font-style:normal;font-weight:400;color:var(--soft)}
input,select,textarea{font:15px var(--ui);color:var(--ink);background:var(--surface);border:1.5px solid var(--line);border-radius:12px;padding:11px 13px;width:100%;transition:border-color .15s,box-shadow .15s}
select{appearance:none;padding-right:40px;background:var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8a94' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E") right 14px center/16px no-repeat}
textarea{resize:vertical}
input:focus,select:focus,textarea:focus{outline:0;border-color:var(--brand);box-shadow:0 0 0 4px var(--wash)}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.agree{display:flex;gap:10px;align-items:flex-start;font-size:14px;color:var(--muted);margin:4px 0 16px;cursor:pointer}
.agree input{width:18px;height:18px;margin:2px 0 0;accent-color:var(--brand);flex:none}
.ferr{margin:0 0 12px;color:var(--bad);font-size:14px;font-weight:500}
.ferr.ok{color:var(--ok)}
.fine{margin:12px 0 0;font-size:12.5px;color:var(--soft);text-align:center}
.done{text-align:center;padding:30px 10px}
.done h3{font-size:24px;margin:16px 0 8px}
.done p{color:var(--muted);margin:0}
.done .ic{margin:0 auto;width:56px;height:56px}

/* footer */
.foot{border-top:1px solid var(--line);background:var(--surface)}
.footin{display:flex;align-items:center;gap:20px;padding-top:26px;padding-bottom:26px;font-size:14px;color:var(--muted)}
.footin p{margin:0 0 0 auto}
.footin a{color:var(--brand);font-weight:600;text-decoration:none}

/* smaller screens */
@media (max-width:980px){
  .herogrid,.split,.cgrid{grid-template-columns:1fr;gap:44px}
  .mock{max-width:560px}
  .grid3,.steps{grid-template-columns:1fr 1fr}
  .stripin{grid-template-columns:1fr 1fr}
  .links{display:none}
}
@media (max-width:640px){
  .wrap{padding:0 16px}
  .hero{padding:52px 0 60px}
  .navcta .ghost{display:none}
  .grid3,.steps,.two,.stripin{grid-template-columns:1fr}
  .sec{padding:72px 0}
  .mock{min-height:0}
  .mcard.main{margin:0}
  .mcard.float{position:relative;inset:auto;width:auto;margin-top:12px}
  .form{padding:22px}
  .footin{flex-direction:column;align-items:flex-start}
  .footin p{margin:0}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}

/* screenshots in browser frames */
.shots{padding-top:90px;padding-bottom:20px}
.frame{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;box-shadow:0 30px 60px -30px rgba(52,56,106,.35),0 2px 6px rgba(24,24,27,.05)}
.frame img{width:100%;height:auto}
.frame.big{margin-top:44px}
.fbar{display:flex;align-items:center;gap:6px;height:34px;padding:0 14px;background:#f7f6fa;border-bottom:1px solid var(--line)}
.fbar i{width:10px;height:10px;border-radius:50%;background:#e4e2ea}
.fbar i:nth-child(1){background:#f4b4c9}.fbar i:nth-child(2){background:#f6d7a8}.fbar i:nth-child(3){background:#bfe3cf}
.fbar span{margin:0 auto;font-size:12px;color:var(--soft);background:#fff;border:1px solid var(--line);border-radius:999px;padding:2px 14px}
.pair{display:grid;grid-template-columns:1fr 1fr;gap:28px;margin-top:28px}
.pair figure{margin:0}
.pair figcaption{margin-top:14px;color:var(--muted);font-size:15px}
.pair figcaption b{color:var(--ink)}
.fine.center{text-align:center;margin-top:22px}

/* drawings */
.steps img{width:100%;height:auto;margin:-6px 0 14px;border-radius:12px}
.secart{width:100%;max-width:420px;height:auto;margin-top:34px}
.cart{width:100%;max-width:360px;height:auto;margin-top:30px}
@media (max-width:980px){.secart{display:none}}
@media (max-width:640px){.pair{grid-template-columns:1fr}.cart{display:none}}

/* hero illustration (replaces the stacked cards) */
.heroart img{width:100%;max-width:560px;height:auto;margin-left:auto}
@media (max-width:980px){.heroart img{margin:0 auto;max-width:460px}}

/* hero: the three benefits stand in for the paragraph */
.herotext .ticks{flex-direction:column;gap:12px;margin-top:26px;font-size:17.5px;color:#3f3f46}
.herotext .ticks li::before{width:22px;height:22px;background-size:13px}

/* tour: vertical tabs on the left, the screen on the right */
.tour{display:grid;grid-template-columns:minmax(280px,.8fr) 1.7fr;gap:40px;align-items:start;margin-top:44px}
.tabs{display:flex;flex-direction:column;gap:10px}
.tab{position:relative;text-align:left;font:inherit;color:var(--ink);background:transparent;border:1.5px solid transparent;border-radius:16px;padding:16px 18px 18px;cursor:pointer;transition:background .2s,border-color .2s}
.tab b{display:block;font:600 20px var(--dp);letter-spacing:-.01em;color:var(--muted)}
.tab span{display:block;max-height:0;overflow:hidden;opacity:0;margin-top:0;color:var(--muted);font-size:15px;line-height:1.55;transition:max-height .35s ease,opacity .25s,margin-top .25s}
.tab:hover{background:var(--bg2)}
.tab.on{background:var(--surface);border-color:var(--line);box-shadow:var(--shadow)}
.tab.on b{color:var(--ink)}
.tab.on span{max-height:140px;opacity:1;margin-top:8px}
.pg{display:none;position:absolute;left:18px;right:18px;bottom:8px;height:3px;border-radius:3px;background:var(--bg2);overflow:hidden}
.tab.on .pg{display:block}
.pg u{display:block;height:100%;width:0;background:var(--brand);border-radius:3px}
.tour.auto .tab.on .pg u{animation:fill var(--dur,7s) linear forwards}
.tour.hold .tab.on .pg u{animation-play-state:paused}
.tour.manual .tab.on .pg u{animation:none;width:100%}
@keyframes fill{from{width:0}to{width:100%}}
.stage{min-width:0}
.panes{position:relative;aspect-ratio:1431/840;background:var(--bg2)}
.pane{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .45s ease}
.pane.on{opacity:1}
.stage .frame{margin:0}
@media (max-width:900px){
  .tour{grid-template-columns:1fr;gap:22px}
  .tabs{flex-direction:row;gap:8px;overflow-x:auto;padding-bottom:4px}
  .tab{flex:none;padding:12px 16px 16px}
  .tab b{font-size:15px;white-space:nowrap}
  .tab span{display:none}
  .tab.on span{display:none}
}

.strip{background:var(--bg2);border-color:transparent}
.checks li,.steps li,.feat{border-color:transparent}

/* the form lives in a pop-up window */
.contact .ctas{margin-top:28px}
.contact .cart{max-width:420px;margin:0 0 0 auto}
.modal{border:0;padding:30px;border-radius:22px;width:min(640px,calc(100vw - 32px));max-height:min(92vh,860px);overflow:auto;background:var(--surface);color:var(--ink);
  box-shadow:0 40px 90px -30px rgba(52,56,106,.55);margin:auto}
.modal::backdrop{background:rgba(52,56,106,.45);backdrop-filter:blur(3px)}
.modal[open]{animation:pop .22s ease}
@keyframes pop{from{opacity:0;transform:translateY(10px) scale(.985)}to{opacity:1;transform:none}}
.modal h2{font-size:26px;margin:0 36px 4px 0}
.modal .msub{margin:0 0 20px;color:var(--muted);font-size:15px}
.modal .form{border:0;box-shadow:none;padding:0;border-radius:0;background:transparent}
.mclose{position:absolute;top:16px;right:16px;width:38px;height:38px;border-radius:50%;border:0;background:var(--bg2);cursor:pointer;display:grid;place-items:center}
.mclose:hover{background:#dfdef0}
.mclose svg{width:18px;height:18px;fill:none;stroke:var(--ink);stroke-width:2.2;stroke-linecap:round}
html.lock{overflow:hidden}
@media (max-width:980px){.contact .cart{display:none}}
@media (max-width:640px){.modal{padding:22px 18px;border-radius:18px}.modal h2{font-size:22px}}
@media (prefers-reduced-motion:reduce){.modal[open]{animation:none}}

/* navy bands: the brand's primary colour carries the page */
.strip,.sec.tint,.contact{background:var(--navy);color:#fff;border-color:transparent}
.strip b{color:#fff}
.strip span{color:#CFCEE6}
.sec.tint h2,.contact h2{color:#fff}
.sec.tint .eyebrow,.contact .eyebrow{color:#F0B9D2}
.sec.tint .lead,.contact .lead{color:#CFCEE6}
.contact .ticks{color:#E4E3F2}
.contact .ticks li::before{background-color:#fff}
.sec.tint .btn.ghost,.contact .btn.ghost{background:transparent;color:#fff;box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.55)}
.sec.tint .btn.ghost:hover,.contact .btn.ghost:hover{background:rgba(255,255,255,.1);box-shadow:inset 0 0 0 1.5px #fff}
.contact .btn:not(.ghost){background:#fff;color:var(--navy);box-shadow:0 10px 24px -14px rgba(0,0,0,.5)}
.contact .btn:not(.ghost):hover{background:#F0B9D2;color:var(--navy)}
.checks li{box-shadow:none}

/* the tour on navy too: light text, the active tab a white card */
.shots{background:var(--navy);color:#fff;padding-bottom:90px;border-top:1px solid rgba(255,255,255,.12)}
.shots h2{color:#fff}
.shots .eyebrow{color:#F0B9D2}
.shots .tab b{color:#CFCEE6}
.shots .tab:hover{background:rgba(255,255,255,.08)}
.shots .tab.on{background:#fff;border-color:transparent}
.shots .tab.on b{color:var(--ink)}
.shots .fine{color:#CFCEE6}
.shots .frame{box-shadow:0 30px 60px -28px rgba(0,0,0,.55)}
.shots .pg{background:var(--bg2)}

/* the top section is taller: most of the screen, content centred in it */
.hero{display:flex;align-items:center;min-height:clamp(480px,68vh,680px);padding:60px 0}
.hero>.wrap{width:100%}
@media (max-width:980px){.hero{min-height:0;padding:56px 0 64px}}


/* the strip gets an accent line along its top edge */
.strip{border-top:4px solid var(--brand)}

/* section headings centred: See it, What it does, How it works */
#tour .wrap>.eyebrow,#features .wrap>.eyebrow,#how .wrap>.eyebrow{text-align:center}
#tour h2,#features h2,#how h2{text-align:center;margin-left:auto;margin-right:auto}

/* hero headline: regular weight; "hassle out" italic in the accent; "shift and incident reporting" bold */
.hero h1{font-weight:500}
.hero h1 .gt{font-style:italic;font-weight:500}
.hero h1 em{font-style:normal;font-weight:700}

/* bigger hero headline; the text column is wider to hold it */
.herogrid{grid-template-columns:1.3fr .8fr}
.hero h1{font-size:clamp(38px,4.9vw,66px)}
@media (max-width:980px){.herogrid{grid-template-columns:1fr}}
