/* The Nofio Academy. One page, no scripts.

   Every rule is scoped to .nf, and the layout answers to the width of .nf
   itself (container queries) rather than the window. That lets the review
   page show the very same markup at phone width inside a 390px column. */

.nf-body{margin:0;background:#FFFFFF}

.nf{
  --navy:#05275A;
  --blue:#0A7BC4;
  --blue-ink:#08659F;
  --teal:#17B4BE;
  --water:#E2F5FB;
  --mist:#F3FBFE;
  --line:#C9E4EF;
  --text:#1A3158;
  --soft:#465C80;
  container:nf / inline-size;
  background:#FFFFFF;
  color:var(--text);
  font:400 1.0625rem/1.55 "Figtree",-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  -webkit-text-size-adjust:100%;
  overflow-wrap:break-word;
}
.nf *,.nf *::before,.nf *::after{box-sizing:border-box}
.nf h1,.nf h2,.nf h3,.nf p,.nf ol{margin:0;padding:0}
.nf img,.nf svg{display:block}
.nf h1,.nf h2,.nf h3,.nf .big{font-family:"Fredoka","Figtree",-apple-system,"Segoe UI",Roboto,sans-serif;color:var(--navy)}
.nf .wrap{width:100%;max-width:1120px;margin:0 auto;padding:0 22px}

.nf .vh{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}

/* ---- buttons and links ---- */
.nf .btn{display:inline-flex;align-items:center;justify-content:center;min-height:54px;padding:0 30px;border-radius:27px;background:var(--navy);color:#FFFFFF;font-weight:700;font-size:1.0625rem;letter-spacing:.01em;text-decoration:none;transition:background-color .15s,transform .15s}
.nf .btn:hover{background:var(--blue-ink)}
.nf .btn:active{transform:translateY(1px)}
.nf .btn-light{background:#FFFFFF;color:var(--navy)}
.nf .btn-light:hover{background:#C9F1F4}
.nf a:focus-visible{outline:3px solid var(--blue-ink);outline-offset:3px}
.nf .cta a:focus-visible{outline-color:#FFFFFF}
.nf .textlink{display:inline-flex;align-items:center;min-height:44px;color:var(--navy);font-weight:700;text-decoration:underline;text-decoration-color:var(--teal);text-decoration-thickness:2px;text-underline-offset:5px}
.nf .textlink:hover{text-decoration-color:var(--navy)}

/* ---- the top ---- */
.nf .strip{display:flex;justify-content:space-between;gap:16px;padding:9px 22px;background:var(--navy);color:#FFFFFF;font-size:0.9375rem;font-weight:600}
.nf .hero-pic{position:relative;background:#BDEBFA}
.nf .hero-pic img{width:100%;height:auto;aspect-ratio:3 / 2;object-fit:cover;object-position:50% 62%}
.nf .hero-edge{position:absolute;left:0;right:0;bottom:-1px;width:100%;height:26px}
.nf .hero-text{padding:22px 22px 54px}
.nf h1{font-weight:600;font-size:clamp(2rem,10cqi,2.4375rem);line-height:1.06;letter-spacing:-.005em;text-wrap:balance}
.nf .splash{display:inline-block;margin-bottom:8px;white-space:nowrap;padding-bottom:9px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 8'%3E%3Cpath d='M0 4C6 0 18 0 24 4S42 8 48 4' fill='none' stroke='%2317B4BE' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") 0 100% / 48px 8px repeat-x}
.nf .lead{margin:26px 0 14px;font-size:1.1875rem;line-height:1.5;font-weight:600;color:var(--navy);max-width:34em}
.nf .hero-text p:not(.lead):not(.pull):not(.start){margin-bottom:14px;max-width:34em}
.nf .pull{margin:22px 0 22px;padding-left:16px;border-left:4px solid var(--teal);font-family:"Fredoka","Figtree",sans-serif;font-weight:500;font-size:1.25rem;line-height:1.35;color:var(--navy);max-width:28em}
.nf .start{margin:0 0 18px;font-weight:600;color:var(--navy)}

/* ---- why choose ---- */
.nf .why{padding:8px 0 60px}
.nf h2{font-weight:600;font-size:1.8125rem;line-height:1.12;text-wrap:balance}
.nf .reasons{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;margin-top:24px}
.nf .reason{padding:24px 22px 26px;border-radius:22px;background:var(--mist);border:1px solid var(--line)}
.nf .reason h3{font-weight:600;font-size:1.3125rem;line-height:1.18}
.nf .reason p{margin-top:8px;color:var(--soft)}
.nf .art{display:block;width:auto;height:84px;margin-bottom:18px}
/* one figure with shoulders needs more height than a row of heads to read at the same size */
.nf .art-figure{height:116px}

.nf .reason-path{background:var(--navy);border-color:var(--navy)}
.nf .reason-path h3{color:#FFFFFF;font-size:1.5rem}
.nf .reason-path p{color:#C8DCF2}
.nf .waves{margin-top:26px}
.nf .waves-label{display:block;margin-bottom:8px;color:#C7EFF2;font-size:0.9375rem;font-weight:600}
.nf .waves ol{display:flex;align-items:flex-end;gap:4px;list-style:none;height:74px}
.nf .waves li{flex:0 0 auto;display:flex;align-items:center;justify-content:center;width:min(32px,calc((100% - 28px) / 8));aspect-ratio:1;border-radius:50%;font:600 1rem/1 "Fredoka","Figtree",sans-serif;color:var(--navy)}
.nf .waves li:nth-child(1){background:#17B4BE;margin-bottom:0px}
.nf .waves li:nth-child(2){background:#3CC0C9;margin-bottom:6px}
.nf .waves li:nth-child(3){background:#5FCBD3;margin-bottom:12px}
.nf .waves li:nth-child(4){background:#82D7DD;margin-bottom:18px}
.nf .waves li:nth-child(5){background:#A4E3E8;margin-bottom:24px}
.nf .waves li:nth-child(6){background:#C7EFF2;margin-bottom:30px}
.nf .waves li:nth-child(7){background:#FFFFFF;margin-bottom:36px}
.nf .waves li.beyond{margin-bottom:42px;background:transparent;border:2px dashed #8FDDE4;color:#C9F1F4}

.nf .reason-pool{background:var(--water)}
.nf .big{font-weight:600;font-size:4rem;line-height:.9;letter-spacing:-.01em}
.nf .reason .big{margin-top:0;color:var(--navy)}
.nf .big span{font-size:2.375rem;margin-left:2px}
/* a lane rope: blue and white floats on a line */
.nf .rope{display:block;height:12px;margin:14px 0 18px;background:
  radial-gradient(circle at 6px 6px,var(--blue) 5.5px,transparent 6px) 0 0 / 28px 12px repeat-x,
  radial-gradient(circle at 20px 6px,#FFFFFF 5.5px,transparent 6px) 0 0 / 28px 12px repeat-x,
  linear-gradient(var(--blue),var(--blue)) 0 50% / 100% 2px no-repeat}

/* ---- where ---- */
.nf .find{padding:0 0 64px}
.nf .find-in{display:grid;align-items:center;gap:4px 16px}
.nf .find h2{font-size:1.375rem}
.nf .addr{margin-top:4px;color:var(--soft);font-style:normal;line-height:1.5}
.nf .mail{margin-top:10px}
.nf .mail a,.nf .foot a{display:inline-flex;align-items:center;min-height:44px;color:var(--navy);font-weight:600;text-decoration:underline;text-decoration-color:var(--teal);text-decoration-thickness:2px;text-underline-offset:4px}
.nf .foot a{min-height:32px}

/* ---- the ask ---- */
.nf .cta{position:relative;background:var(--navy);color:#DCE9F8;padding:34px 0 58px}
.nf .cta-edge{position:absolute;left:0;right:0;bottom:calc(100% - 1px);width:100%;height:40px}
.nf .cta h2{color:#FFFFFF;font-size:2.0625rem}
.nf .cta p{margin:14px 0 26px;font-size:1.125rem;max-width:36em}

/* ---- foot ---- */
.nf .foot{padding:34px 0 40px;text-align:center;color:var(--soft);font-size:1rem}
.nf .foot img{width:190px;height:auto;margin:0 auto 14px}
.nf .foot .small{margin-top:4px;font-size:0.875rem}

/* ---- a big phone on its side, a small tablet: same order, more room ---- */
@container nf (min-width:560px){
  .nf .wrap{padding:0 36px}
  .nf .strip{padding:9px 36px}
  .nf .hero-text{padding:24px 36px 60px}
  .nf h1{font-size:2.875rem}
}

/* ---- a tablet: words beside the picture, reasons in a row ---- */
@container nf (min-width:760px){
  .nf .hero{background:var(--mist)}
  .nf .hero-in{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);align-items:center;gap:36px;max-width:1120px;margin:0 auto;padding:44px 36px 60px}
  .nf .hero-text{order:1;padding:0}
  .nf .hero-pic{order:2;background:none}
  .nf .hero-pic img{aspect-ratio:1;border-radius:28px}
  .nf .hero-edge{display:none}
  .nf h1{font-size:2.75rem}
  .nf h2{font-size:2.125rem}
  .nf .art,.nf .art-figure{height:116px;max-width:100%;object-fit:contain;object-position:left bottom}
  .nf .reasons{grid-template-columns:repeat(3,1fr);gap:18px}
  .nf .reason-path{grid-column:1 / -1;padding:34px 36px}
  .nf .waves li{width:40px;font-size:1.125rem}
  .nf .waves ol{gap:7px;height:82px}
  .nf .find-in{grid-template-columns:1fr auto}
  .nf .cta{padding:44px 0 72px;text-align:center}
  .nf .cta p{margin-left:auto;margin-right:auto}
  .nf .cta-edge{height:56px}
}

/* ---- a computer ---- */
@container nf (min-width:1000px){
  .nf .hero-in{grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:56px;padding:56px 36px 76px}
  .nf .hero-pic img{border-radius:36px}
  .nf h1{font-size:3.875rem}
  .nf .lead{font-size:1.1875rem}
  .nf .strip{padding:10px max(36px,calc((100% - 1048px) / 2))}
  .nf .art,.nf .art-figure{height:128px}
  .nf .why{padding:56px 0 80px}
  .nf h2{font-size:2.375rem}
  .nf .reason{padding:30px 28px 32px}
  .nf .reason-path{display:grid;grid-template-columns:1fr auto;align-items:center;gap:40px;padding:40px 44px}
  .nf .waves{margin-top:0}
  .nf .reason-path h3{font-size:1.75rem}
  .nf .waves li{width:46px;font-size:1.25rem}
  .nf .waves ol{gap:9px;height:88px}
  .nf .find{padding-bottom:88px}
  .nf .cta h2{font-size:2.625rem}
  .nf .cta-edge{height:72px}
}

@media (prefers-reduced-motion:reduce){
  .nf .btn{transition:none}
}
