/* nimbusdev.io: one stylesheet for every page. */

@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/inter-400.woff2) format("woff2")}
@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/inter-500.woff2) format("woff2")}
@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/inter-600.woff2) format("woff2")}
@font-face{font-family:"Inter Display";font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/inter-display-700.woff2) format("woff2")}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/plex-mono-500.woff2) format("woff2")}

:root{
  --bg:#F9F6EE;      /* cream */
  --surf:#E1EBEB;    /* mist */
  --sky:#A1CAE2;
  --ink:#101D38;     /* navy */
  --muted:#3B4A66;
  --accent:#2F6AAA;  /* cobalt */
  --steel:#5C82A5;
  --line:#C9DCEA;
  --it:#9e2b2b;
  --band:#9e2b2b1f;
  --display:"Inter Display","Inter",system-ui,sans-serif;
  --mono:"IBM Plex Mono",ui-monospace,monospace;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font:17px/1.6 "Inter",system-ui,sans-serif;overflow-x:hidden}
img{max-width:100%;display:block}
a{color:var(--accent)}
a:focus-visible,button:focus-visible{outline:3px solid var(--accent);outline-offset:3px;border-radius:6px}
.skip{position:absolute;left:-999px}
.skip:focus{left:16px;top:8px;background:#000;color:#fff;padding:8px 12px;border-radius:6px;z-index:5}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.wrap{max-width:1180px;margin:0 auto;padding:0 32px}

/* Header */
.site-head{display:flex;justify-content:space-between;align-items:center;padding:24px 0}
.lockup{display:inline-flex;align-items:center;gap:10px;color:inherit;text-decoration:none}
.lockup .mas-sm{width:66px;height:64px}
.lockup .word{width:126px;height:auto}
.lockup:focus-visible{outline:2px solid currentColor;outline-offset:4px;border-radius:6px}
.site-head nav{display:flex;gap:6px}
.site-head nav a{color:var(--muted);text-decoration:none;font-size:15px;padding:6px 10px;border-radius:8px}
.site-head nav a:hover{background:#0000000a;color:var(--ink)}
.site-head nav a[aria-current=page]{color:var(--ink);font-weight:500}

/* Type */
h1{font:700 clamp(42px,5.8vw,78px)/1 var(--display);letter-spacing:-.04em;margin:0 0 22px;text-wrap:balance}
h2{text-wrap:balance}
.mono{font:500 12.5px/1.3 var(--mono);letter-spacing:.04em}
.muted{color:var(--muted)}

/* Sky hero band */
.skyhero{background:var(--sky);border-radius:36px;padding:44px 56px;display:grid;grid-template-columns:1fr auto;gap:32px;align-items:center;margin:4px 0 24px}
.skyhero h1{margin-bottom:18px}
.skyhero p{font-size:20px;color:var(--muted);max-width:40ch;margin:0}
.skyhero .mas{width:330px;height:314px}

/* App Store badge (Apple artwork, keep at least 40px tall) */
.badge{display:inline-block;line-height:0;border-radius:9px;transition:transform .15s}
.badge img{height:48px;width:auto}
.badge:hover{transform:translateY(-1px)}
.badge:active{transform:translateY(1px)}
.facts{font-size:14px;color:var(--muted);margin:0}

/* Home: two app columns */
.two{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-bottom:24px}
.col{background:var(--surf);border-radius:28px;padding:32px;display:flex;flex-direction:column;gap:14px}
.hd{display:flex;align-items:center;gap:14px}
.hd img{width:60px;height:60px;border-radius:14px;flex:none}
.hd h2{font:700 34px/1.05 var(--display);letter-spacing:-.03em;margin:4px 0 0}
.hd h2 .sub{display:block;font:500 12.5px/1.3 var(--mono);letter-spacing:.04em;color:var(--muted);margin-top:6px}
.col p{margin:0}
.col .lead{font:700 23px/1.2 var(--display);letter-spacing:-.02em}
.col .vis{margin:6px 0 4px}
.col .bottom{margin-top:auto;padding-top:6px;display:flex;align-items:center;gap:8px 16px;flex-wrap:wrap}
.more-link{font-weight:500;color:var(--accent)}
.col .bottom .more-link{margin-left:auto}

/* Photos */
figure{margin:0}
figcaption{font-size:13px;color:var(--muted);margin-top:8px}
.photos{display:grid;grid-template-columns:1fr 1fr;gap:12px;height:300px;grid-template-rows:repeat(2,minmax(0,1fr))}
.photos img{object-fit:cover;border-radius:16px;width:100%;height:100%;min-height:0}
.photos img:first-child{grid-row:span 2}

/* IronTrend chart illustration */
.chart{background:var(--bg);border:1px solid var(--line);border-radius:20px;padding:16px 16px 10px}
.chart svg{width:100%;height:auto;display:block}
.seg{display:inline-flex;border:1px solid var(--line);border-radius:10px;padding:3px;margin-bottom:10px;background:var(--surf)}
.seg[hidden]{display:none}
.seg button{font:500 13px "Inter",sans-serif;border:0;background:none;padding:6px 12px;border-radius:7px;cursor:pointer;color:var(--ink)}
.seg button[aria-pressed=true]{background:var(--ink);color:var(--bg)}
.dot{fill:var(--steel);fill-opacity:.6}
.med{fill:none;stroke:var(--it);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.bandp{fill:var(--band)}
.med,.bandp{transition:opacity .3s}
.raw .med,.raw .bandp{opacity:.08}

/* Home: small print at the bottom */
.small{border-top:1px solid var(--line);margin-top:48px;padding:28px 0 8px;display:grid;gap:6px;font-size:15px;color:var(--muted)}
.small p{margin:0}
.small b{font-weight:600;color:var(--ink)}
.small a{color:var(--accent);font-weight:500}
.site-foot{padding:20px 0 40px;color:var(--muted);font-size:14px}

/* App pages */
.apphero{grid-template-columns:1.1fr .9fr;padding:48px 56px;overflow:hidden}
.apphero .app-id{display:flex;align-items:center;gap:14px;margin-bottom:22px}
.apphero .app-id img{width:72px;height:72px;border-radius:17px;flex:none;box-shadow:0 10px 24px -14px #101d3880}
.apphero .app-id span{font:500 14px/1.3 var(--mono);letter-spacing:.03em;color:var(--ink)}
.apphero h1{font-size:clamp(40px,5vw,68px)}
.apphero .cta{display:flex;align-items:center;gap:10px 18px;flex-wrap:wrap;margin-top:28px}
.apphero .stack{justify-self:end;position:relative;width:100%;max-width:400px;aspect-ratio:1/1}
.stack img{position:absolute;height:auto;border-radius:22px;object-fit:cover;box-shadow:0 30px 60px -30px #101d3899;border:6px solid var(--bg)}
.stack img:nth-child(1){width:70%;aspect-ratio:1;left:0;top:4%;rotate:-4deg}
.stack img:nth-child(2){width:58%;aspect-ratio:1;right:0;bottom:2%;rotate:4deg}

.feat{background:var(--surf);border-radius:28px;padding:44px;margin-bottom:24px;display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center}
.feat:nth-of-type(even) .feat-vis{order:-1}
.feat .eyebrow{font:500 12.5px/1.3 var(--mono);letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin:0}
.feat h2{font:700 clamp(30px,3.4vw,44px)/1.05 var(--display);letter-spacing:-.03em;margin:12px 0 14px}
.feat p{margin:0 0 14px;max-width:46ch}
.feat ul{margin:0;padding:0;list-style:none;max-width:46ch}
.feat li{padding:6px 0 6px 26px;position:relative}
.feat li::before{content:"";position:absolute;left:0;top:18px;width:14px;height:2px;background:currentColor;opacity:.5}
.feat-vis .photos{height:360px}
.feat-vis .single{border-radius:22px;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover}

/* Phone screens: the screenshot is a bare screen; the frame is drawn here. The phone runs
   off the bottom of its card, so a tall screen is cut by the card edge, not squeezed. */
.dev{position:relative;width:300px;max-width:100%;max-height:580px;overflow:hidden;background:#15171c;padding:9px 9px 0;border-radius:50px 50px 0 0;box-shadow:0 30px 60px -30px #101d38aa}
.dev img{width:100%;height:auto;border-radius:41px 41px 0 0}
.apphero .dev{justify-self:center;align-self:end;margin-bottom:-48px;max-height:540px}
.feat.bleed{padding-bottom:0;overflow:hidden}
.feat.bleed>div:first-child{align-self:center;padding-bottom:44px}
.feat.bleed .feat-vis{align-self:end;display:flex;justify-content:center}
.devs{display:flex;justify-content:center;align-items:flex-end}
.devs .dev{width:260px;max-height:540px}
.devs .dev+.dev{margin-left:-36px;max-height:470px;z-index:1}

/* How the trend works, who it's for, FAQ */
.how .points{margin:0;padding:0;list-style:none;display:grid;gap:14px}
.how .points li{padding:0}
.how .points li::before{display:none}
.how .points b{display:block;font-weight:600}
.band{margin:0 0 24px;padding:44px;border-radius:28px;background:var(--surf)}
.band>h2,.faq>h2{font:700 clamp(30px,3.4vw,44px)/1.05 var(--display);letter-spacing:-.03em;margin:0 0 10px}
.band>p{margin:0 0 24px;max-width:60ch}
.who{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.who div{background:var(--bg);border-radius:20px;padding:22px 24px}
.who h3,.faq h3{font:600 19px/1.3 "Inter",system-ui,sans-serif;margin:0 0 6px}
.who p,.faq p{margin:0}
.faq{margin:48px 0 24px}
.faq>h2{margin-bottom:24px}
.qa{display:grid;grid-template-columns:1fr 1fr;gap:28px 48px}
.qa>div{border-top:1px solid var(--line);padding-top:16px}
.credit{margin:0;color:var(--muted)}

.closing{background:var(--sky);border-radius:36px;padding:48px 56px;margin:8px 0 0;display:grid;grid-template-columns:1fr auto;gap:24px 40px;align-items:center}
.closing h2{font:700 clamp(30px,4vw,52px)/1.05 var(--display);letter-spacing:-.03em;margin:0 0 12px}
.closing p{margin:0;color:var(--muted);max-width:52ch}
.closing .cta{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.closing .mas{width:150px;height:143px}
.closing-row{display:flex;align-items:center;gap:28px}

/* 404 */
.lost{grid-template-columns:1fr auto}
.lost .links{display:flex;gap:10px 22px;flex-wrap:wrap;margin-top:24px;font-weight:500}

@media (max-width:860px){
  body{font-size:16px}
  .wrap{padding:0 16px}
  .site-head{padding:16px 0}
  .site-head nav{gap:0}
  .site-head nav a{padding:6px 8px}
  .lockup .mas-sm{width:50px;height:48px}
  .lockup .word{width:104px}
  .two{grid-template-columns:1fr}
  .col{padding:22px}
  .photos{height:220px}
  .skyhero{grid-template-columns:1fr;padding:26px 22px 0;gap:4px;border-radius:26px}
  .skyhero .mas{width:200px;height:190px;margin:0 auto}
  .apphero{padding:26px 22px 0}
  .apphero .stack{justify-self:center;max-width:320px;margin:24px 0 22px}
  .apphero .cta{margin-top:20px}
  .feat{grid-template-columns:1fr;padding:24px;gap:24px;border-radius:22px}
  .feat:nth-of-type(even) .feat-vis{order:0}
  .apphero .dev{margin:24px auto 0;width:250px;max-height:400px}
  .feat.bleed{padding-bottom:0}
  .feat.bleed>div:first-child{padding-bottom:0}
  .feat .dev{width:250px;max-height:420px}
  .devs .dev{width:52%;max-height:420px}
  .devs .dev+.dev{margin-left:-6%;max-height:370px}
  .dev{padding:7px 7px 0;border-radius:40px 40px 0 0}
  .dev img{border-radius:33px 33px 0 0}
  .band{padding:24px;border-radius:22px}
  .who{grid-template-columns:1fr}
  .qa{grid-template-columns:1fr;gap:20px}
  .feat-vis .photos{height:260px}
  .closing{grid-template-columns:1fr;padding:28px 22px;border-radius:26px}
  .closing .mas{display:none}
  .lost{padding-bottom:0}
}
@media (max-width:420px){
  .site-head nav a{font-size:14px;padding:6px 6px}
  .lockup{gap:6px}
  .lockup .mas-sm{width:42px;height:40px}
  .lockup .word{width:92px}
}

/* Motion: everything rests in its final state; animation only adds the entrance. */
@media (prefers-reduced-motion:no-preference){
  .skyhero>div>*{animation:bt-up .6s both}
  .skyhero>div>:nth-child(2){animation-delay:.06s}
  .skyhero>div>:nth-child(3){animation-delay:.12s}
  .skyhero>div>:nth-child(4){animation-delay:.18s}
  .skyhero .mas{animation:m-in .9s .15s cubic-bezier(.34,1.56,.64,1) both,m-bob 3.2s 1.1s ease-in-out infinite}
  .apphero .dev,.apphero .stack{animation:bt-in .9s .2s cubic-bezier(.2,.8,.2,1) both}
  .col{animation:bt-up .8s cubic-bezier(.2,.7,.2,1) both}
  .col+.col{animation-delay:.12s}
  .closing .mas{animation:m-bob 3.2s ease-in-out infinite}
  html.js .chart:not(.play) .dot,html.js .chart:not(.play) .med,html.js .chart:not(.play) .bandp{opacity:0}
  .chart.play .dot{animation:bt-dot .4s calc(var(--i) * 28ms) both}
  .chart.play .med{stroke-dasharray:1400;animation:bt-draw 1.4s 1s cubic-bezier(.4,0,.2,1) both}
  .chart.play .bandp{animation:bt-fade .6s .8s both}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important}
}
@keyframes m-bob{50%{translate:0 -8px;rotate:-2deg}}
@keyframes m-in{from{opacity:0;scale:.6;rotate:-10deg}}
@keyframes bt-dot{from{opacity:0;transform:translateY(-6px)}}
@keyframes bt-draw{from{stroke-dashoffset:1400}to{stroke-dashoffset:0}}
@keyframes bt-fade{from{opacity:0}}
@keyframes bt-up{from{opacity:0;transform:translateY(16px)}}
@keyframes bt-in{from{opacity:0;transform:translateY(40px) rotate(4deg)}}
