/* Mint home page (staged at /sitedemo/next/home/). One page for brokers, HR teams and employees.
   Type is Inter, the same face the Mint app uses, served from the app's own font folder.
   Colour is Mint's green family only, plus white and one warm paper neutral. Photos of people bring the warmth.
   Names: ms- is the shared shell (wrap, links, buttons, fields, type). Each section takes its own h- prefix. */

@font-face{font-family:"Mint Display";src:url('fonts/young-serif.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:"Mint Text";src:url('fonts/libre-franklin.woff2') format('woff2');font-weight:100 900;font-display:swap}

:root{
  --ink:#06302B;       /* headings and text; 14.6:1 on white */
  --muted:#3F625D;     /* captions and notes; 6.6:1 on white, 5.6:1 on wash */
  --deep:#003A34;      /* the deep band, footer, deep button */
  --deep-2:#0A4A43;    /* a card on deep, deep button hover */
  --teal:#177D75;      /* focus ring, links on hover, small accents; 5.0:1 on white */
  --mint:#55CBA8;      /* the bright field: portals and the hero disc */
  --mint-2:#8FDFC4;    /* second portal tone */
  --mint-3:#C6EFE0;    /* hero and demo field, numerals */
  --wash:#DDF4EC;      /* light bands and cards */
  --paper:#F6F4EE;     /* the one warm neutral */
  --line:#DBE6E1;      /* hairlines */
  --on-deep:#DDF3EB;

  --display:"Mint Display",Georgia,"Times New Roman",serif;
  --text:"Mint Text","Segoe UI",system-ui,-apple-system,Arial,sans-serif;
  --fs-h1:80px; --fs-h2:54px; --fs-h3:26px; --fs-lead:22px; --fs-body:18px; --fs-small:16px;
  --r:10px; --r-card:16px; --r-panel:20px;
  --sec:clamp(72px, calc(40px + 6vw), 128px);
  --shadow:0 18px 40px -18px rgba(0,58,52,.28), 0 2px 6px rgba(0,58,52,.06);
  --ease:cubic-bezier(.2,.7,.3,1);
  color-scheme:light;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;overflow-x:clip;scroll-behavior:smooth;scroll-padding-top:24px;
  scrollbar-color:var(--teal) var(--wash);scrollbar-width:auto}
/* Mint's own scrollbar (Chromium and Safari; Firefox takes the two colours above). */
html::-webkit-scrollbar{width:14px}
html::-webkit-scrollbar-track{background:var(--wash)}
html::-webkit-scrollbar-thumb{background:var(--teal);border-radius:10px;border:3px solid var(--wash)}
html::-webkit-scrollbar-thumb:hover{background:var(--deep)}
body{margin:0;overflow-x:clip;background:#fff;color:var(--ink);font-family:var(--text);font-size:var(--fs-body);font-weight:420;line-height:1.5;
  font-synthesis:none;-webkit-font-smoothing:antialiased}
h1,h2,h3,h4,p,figure,ul,ol,dl,dd{margin:0;padding:0}
ul,ol{list-style:none}
a{color:inherit;text-decoration:none;touch-action:manipulation}
img{display:block;max-width:100%;height:auto}
main:focus{outline:none}
:focus-visible{outline:3px solid var(--teal);outline-offset:3px;border-radius:4px}
.ms-on-deep :focus-visible{outline-color:#fff}
table,.ms-num{font-variant-numeric:tabular-nums}

.ms-skip{position:fixed;top:10px;left:10px;z-index:100;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;background:#fff;color:var(--ink);font-size:15px;font-weight:600}
.ms-skip:focus{width:auto;height:auto;clip-path:none;padding:12px 20px}
.ms-vh{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.ms-wrap{width:min(1200px, 100% - 64px);margin-inline:auto}

/* ---------- Type: big, tight, one colour. Display sizes use Inter's display cut (opsz 32). */
.ms-h1,.ms-h2,.ms-h3{font-family:var(--display);font-weight:400;color:var(--ink);text-wrap:balance}
.ms-h1{font-size:var(--fs-h1);line-height:1.02;letter-spacing:-.022em}
.ms-h2{font-size:var(--fs-h2);line-height:1.08;letter-spacing:-.018em}
.ms-h3{font-size:var(--fs-h3);line-height:1.2;letter-spacing:-.01em}
.ms-lead{max-width:30em;font-size:var(--fs-lead);line-height:1.5;text-wrap:pretty}
.ms-small{font-size:var(--fs-small);line-height:1.45;color:var(--muted)}
.ms-h2 + .ms-lead,.ms-h1 + .ms-lead{margin-top:18px}
.ms-h3 + p{margin-top:8px}
.ms-on-deep,.ms-on-deep .ms-h2,.ms-on-deep .ms-h3{color:#fff}
.ms-on-deep p{color:var(--on-deep)}
.ms-nb{white-space:nowrap}

/* ---------- Links: no underline, no arrow. Teal and semibold; they darken on hover. */
.ms-link{display:inline-flex;align-items:center;min-height:44px;font-weight:640;color:var(--teal);transition:color .16s ease}
@media (hover:hover){.ms-link:hover{color:var(--deep)}}
.ms-on-deep .ms-link{color:var(--mint)}
@media (hover:hover){.ms-on-deep .ms-link:hover{color:#fff}}
.ms-link--plain{color:var(--ink);font-weight:560}
@media (hover:hover){.ms-link--plain:hover{color:var(--teal)}}
.ms-on-deep .ms-link--plain{color:var(--on-deep)}

/* ---------- Buttons: fully round, tall and confident. Hover is a quiet colour shift. No arrow, no icon. */
.ms-btn{display:inline-flex;align-items:center;justify-content:center;min-height:60px;padding:0 34px;border:0;border-radius:999px;
  font:inherit;font-size:17.5px;font-weight:650;letter-spacing:-.005em;white-space:nowrap;cursor:pointer;transition:background-color .2s ease,color .2s ease}
.ms-btn--deep{color:#fff;background:var(--deep)}
@media (hover:hover){.ms-btn--deep:hover{background:var(--teal)}}
.ms-btn--deep:active{background:#002A26}
.ms-btn--mint{color:var(--ink);background:var(--mint)}
@media (hover:hover){.ms-btn--mint:hover{background:var(--mint-2)}}
.ms-acts{display:flex;flex-wrap:wrap;align-items:center;gap:14px 28px}
.ms-lead + .ms-acts{margin-top:32px}

/* ---------- Fields */
.ms-field label{display:block;margin-bottom:8px;font-size:16px;font-weight:600}
.ms-input{display:block;width:100%;height:52px;padding:0 16px;border:0;border-radius:var(--r);background:#fff;color:var(--ink);font:inherit;font-size:17px;box-shadow:inset 0 0 0 1px var(--muted)}
.ms-input:focus-visible{outline:3px solid var(--teal);outline-offset:2px;box-shadow:inset 0 0 0 2px var(--teal)}

/* ---------- Section rhythm: each section owns its top padding. */
.ms-section{padding-top:var(--sec)}
.ms-head{max-width:760px;margin-bottom:56px}
.ms-head--center{margin-inline:auto;text-align:center}
.ms-head--center .ms-lead{margin-inline:auto}

/* ---------- Step numeral: a big toned figure the title sits on, so the number has depth without a badge. */
.ms-step{position:relative;padding-top:104px}
.ms-step__n{position:absolute;top:0;left:-4px;z-index:0;font-family:var(--display);font-size:112px;line-height:.8;font-weight:400;letter-spacing:-.03em;
  color:var(--nc,var(--mint-2));font-variant-numeric:tabular-nums;user-select:none}
.ms-step > :not(.ms-step__n){position:relative;z-index:1}

/* ---------- Portal: a person stands in a disc. The disc hides where the photo is cut off, and the head rises above it.
   Width sets the disc; --rise is how far the person stands above its top. */
.ms-portal{position:relative;width:var(--d,320px);aspect-ratio:1;flex:none}
.ms-portal__disc{position:absolute;inset:0;border-radius:50%;background:var(--pc,var(--mint))}
.ms-portal__clip{position:absolute;left:0;right:0;bottom:0;height:calc(100% + var(--rise,18%));overflow:hidden;border-radius:0 0 999px 999px}
.ms-portal__clip img{position:absolute;left:50%;bottom:0;height:var(--ph,100%);width:auto;max-width:none;transform:translateX(calc(-50% + var(--px,0px)))}

/* ---------- Product card: real Mint UI lifted off the page once, softly. */
.ms-ui{border-radius:10px;background:#fff;box-shadow:var(--shadow);overflow:hidden}
.ms-ui img{width:100%}

/* ---------- Scroll reveal */
.js-reveal [data-reveal]{opacity:0;transform:translateY(20px)}
.js-reveal [data-reveal].is-in{opacity:1;transform:none;transition:opacity .6s var(--ease) var(--d,0ms),transform .7s var(--ease) var(--d,0ms)}


/* ---------- Back to top: Mint's leaf standing upright, a hand-drawn arrow on it. Appears after the first screen. */
.ms-top{position:fixed;right:28px;bottom:28px;z-index:40;display:grid;place-items:center;width:52px;height:52px;padding:0;border:0;border-radius:50%;background:var(--teal);cursor:pointer;
  opacity:0;visibility:hidden;transform:translateY(10px);transition:opacity .25s ease,transform .35s var(--ease),visibility .25s,background-color .2s ease}
.ms-top.is-on{opacity:1;visibility:visible;transform:none}
.ms-top__chev{width:24px;height:24px;fill:none;stroke:#fff;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;transition:translate .3s var(--ease)}
@media (hover:hover){.ms-top:hover{background:#126A63}.ms-top:hover .ms-top__chev{translate:0 -2px}}
.ms-top:focus-visible{outline:3px solid var(--teal);outline-offset:4px}

@media (max-width:1199px){:root{--fs-h1:62px;--fs-h2:44px}}
@media (max-width:759px){
  :root{--fs-h1:46px;--fs-h2:34px;--fs-h3:22px;--fs-lead:19px;--fs-body:17px}
  .ms-wrap{width:calc(100% - 40px)}
  .ms-head{margin-bottom:36px}
  .ms-btn{width:100%;white-space:normal;text-align:center}
  .ms-acts{flex-direction:column;align-items:stretch;gap:8px}
  .ms-acts .ms-link{align-self:center}
  .ms-step{padding-top:84px}.ms-step__n{font-size:88px}
  /* Phone view. Steps keep their numeral but smaller, so the title is not pushed a whole screen down. */
  .ms-h2{line-height:1.1}
  .ms-step{padding-top:62px}.ms-step__n{font-size:72px}
  /* Back to top on phones: a smaller leaf tucked into the right gutter with a full 44px hit area. The script in
     99-motion.html hides it (.is-under) whenever text or a product screen sits beneath it. */
  .ms-top{right:max(12px, env(safe-area-inset-right));bottom:max(12px, calc(env(safe-area-inset-bottom) + 8px));width:44px;height:44px}
  .ms-top__chev{width:21px;height:21px}
  .ms-top.is-on.is-under{opacity:0;visibility:hidden}
}
/* Back to top from far down: the page fades out, jumps, and fades back in (sections/99-motion.html). */
html.ms-jump{scroll-behavior:auto}
html.ms-jump body > *:not(.ms-top):not(script){transition:opacity .2s ease}
html.ms-jump:not(.ms-jump-out) body > *:not(.ms-top):not(script){transition-duration:.4s}
html.ms-jump-out body > *:not(.ms-top):not(script){opacity:0}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important}html{scroll-behavior:auto}}
@media print{.js-reveal [data-reveal]{opacity:1;transform:none}}
