/* Nimbus marketing site. One page, no build step, no dependencies, no script. */

:root {
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --paper: #ffffff;
  --mist: #f5f5f7;
  --black: #000000;
  --on-dark: #f5f5f7;
  --on-dark-2: #a1a1a6;
  --link: #0066cc;
  --link-dark: #6aa9ff;
  --rule: rgba(0,0,0,.1);
  --rule-dark: rgba(255,255,255,.14);

  /* The app's own sky (DesignSystem.Stratosphere, dark palette). */
  --sky-top: #0b1640;
  --sky-mid: #0a1030;
  --sky-low: #150c38;
  --action-top: #3d7dff;
  --action-low: #1f55e6;

  --nav-h: 48px;
  --r-tile: 28px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  /* Headlines use the rounded face the app sets its big numerals in. */
  --display: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--text);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.012em;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, .btn:focus-visible { outline: 3px solid #6aa9ff; outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { list-style: none; padding: 0; }
h1, h2 { font-family: var(--display); font-weight: 700; text-wrap: balance; }
h3 { font-weight: 600; letter-spacing: -0.02em; }
code { font-family: var(--mono); font-size: .9em; background: rgba(255,255,255,.12); padding: .1em .4em; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: rgba(10,14,36,.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav__inner { max-width: 1080px; margin: 0 auto; height: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; gap: 24px; }
.nav__brand { display: flex; align-items: center; gap: 8px; color: var(--on-dark); font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.nav__brand img { border-radius: 5px; }
.nav__brand:hover { text-decoration: none; }
.nav__links { display: flex; gap: 26px; }
.nav__links a { color: var(--on-dark); opacity: .78; font-size: 12px; letter-spacing: -0.01em; }
.nav__links a:hover { opacity: 1; text-decoration: none; }
.nav__cta { font-size: 12px; font-weight: 600; color: #fff; padding: 5px 13px; border-radius: 980px; background: linear-gradient(var(--action-top), var(--action-low)); }
.nav__cta:hover { text-decoration: none; filter: brightness(1.1); }
@media (max-width: 900px) { .nav__links { display: none; } }

/* ---------- Shared pieces ---------- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.wrap--narrow { max-width: 820px; }

.section { padding: 136px 0; }
.section--mist { background: var(--mist); }
.section--black { background: var(--black); color: var(--on-dark); }
@media (max-width: 700px) { .section { padding: 84px 0; } }

/* The app's backdrop: a navy-to-violet fall with two glows. */
.sky {
  color: var(--on-dark);
  background:
    radial-gradient(60% 50% at 82% 0%, rgba(64,120,255,.50), transparent 70%),
    radial-gradient(55% 45% at 8% 100%, rgba(128,72,255,.42), transparent 70%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 55%, var(--sky-low) 100%);
}
.sky--flat { background: linear-gradient(180deg, #0e1a4a 0%, var(--sky-mid) 60%, #120b33 100%); }

.head { text-align: center; max-width: 860px; margin: 0 auto 64px; }
.head h2 { font-size: clamp(34px, 5.4vw, 60px); line-height: 1.06; letter-spacing: -0.022em; }
.head h2 span { color: var(--ink-3); }
.section--black .head h2 span, .sky .head h2 span { color: #8f93b0; }
.lede { font-size: clamp(18px, 2vw, 21px); line-height: 1.4; color: var(--ink-2); max-width: 700px; margin: 22px auto 0; letter-spacing: -0.014em; }
.section--black .lede { color: var(--on-dark-2); }
.sky .lede { color: #c5c9e6; }
.fine { font-size: 13px; color: var(--ink-3); margin-top: 20px; }
@media (max-width: 700px) { .head { margin-bottom: 44px; } }

.actions { display: flex; gap: 28px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.actions--left { justify-content: flex-start; margin-top: 22px; gap: 20px; }
.btn {
  display: inline-block; font-weight: 600; font-size: 17px; line-height: 1; color: #fff;
  padding: 14px 26px; border-radius: 980px;
  background: linear-gradient(var(--action-top), var(--action-low));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 10px 28px -8px rgba(47,107,255,.75);
  transition: filter .2s, transform .2s var(--ease);
}
.btn:hover { text-decoration: none; filter: brightness(1.1); }
.btn:active { transform: scale(.98); }
.btn--large { font-size: 19px; padding: 17px 32px; }
.btn--small { font-size: 15px; padding: 11px 20px; box-shadow: inset 0 1px 0 rgba(255,255,255,.28); }
.more { font-size: 17px; }
.more::after { content: " ›"; }
.sky .more, .section--black .more { color: var(--link-dark); }

/* A screenshot of a whole window. Traffic lights are drawn on, since the
   renders come from SwiftUI previews, which have no title bar. */
.win { position: relative; container-type: inline-size; border-radius: clamp(8px, 1.4vw, 16px); overflow: hidden; background: var(--sky-mid);
  box-shadow: 0 0 0 1px rgba(255,255,255,.10), 0 40px 90px -30px rgba(10,16,48,.75), 0 12px 30px -12px rgba(0,0,0,.35); }
.win img { width: 100%; }
.win--lights::before {
  content: ""; position: absolute; left: 2cqw; top: 1.75cqw; width: .95cqw; height: .95cqw; border-radius: 50%;
  background: #ff5f57; box-shadow: 1.55cqw 0 0 #febc2e, 3.1cqw 0 0 #28c840;
}
.shot { max-width: 1000px; margin: 0 auto; }
.shot figcaption, .sheets figcaption, .panels figcaption { text-align: center; font-size: 14px; color: var(--ink-3); margin-top: 18px; }
.sky figcaption { color: #9da2c4; }

/* Short columns of supporting points under a screenshot. */
.trio, .quad { display: grid; gap: 40px 44px; margin-top: 72px; }
.trio { grid-template-columns: repeat(3, 1fr); }
.quad { grid-template-columns: repeat(4, 1fr); }
.trio h3, .quad h3, .panels__copy h3 { font-size: 19px; margin-bottom: 6px; }
.trio p, .quad p, .panels__copy p { font-size: 16px; line-height: 1.45; color: var(--ink-2); }
.section--black .trio p, .section--black .panels__copy p { color: var(--on-dark-2); }
.quad--on-dark p { color: #b9bedd; }
@media (max-width: 900px) { .quad { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .trio, .quad { grid-template-columns: 1fr; gap: 28px; margin-top: 48px; } }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 84px 0 0; overflow: hidden; }
.hero__copy { max-width: 900px; margin: 0 auto; padding: 0 22px; animation: rise .9s var(--ease) both; }
.hero__icon { margin: 0 auto 26px; filter: drop-shadow(0 16px 34px rgba(64,128,255,.6)); }
.hero h1 { font-size: clamp(44px, 8.6vw, 96px); line-height: 1; letter-spacing: -0.028em; }
.hero__sub { font-size: clamp(18px, 2.3vw, 24px); line-height: 1.36; color: #c5c9e6; max-width: 740px; margin: 26px auto 0; letter-spacing: -0.015em; }
.hero__fine { font-size: 13px; color: #9da2c4; margin-top: 22px; }
.hero__fine + .hero__fine { margin-top: 6px; }
.hero__fine a { color: #c5c9e6; text-decoration: underline; text-underline-offset: 2px; }
.hero__fine a:hover { color: #fff; }
.hero__shot { max-width: 1160px; margin: 68px auto 0; padding: 0 22px; animation: rise 1.1s .15s var(--ease) both; }
/* The window stands on the fold: its lower edge is cut by the next section. */
.hero__shot .win { border-bottom-left-radius: 0; border-bottom-right-radius: 0; margin-bottom: -6%;
  box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 0 140px -10px rgba(72,120,255,.55); }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero__copy, .hero__shot { animation: none; } }

/* ---------- Services ---------- */
.services { background: var(--black); color: var(--on-dark-2); text-align: center; padding: 56px 22px 8px; position: relative; }
.services__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; max-width: 860px; margin: 0 auto; }
.services__row li { width: 56px; height: 56px; border-radius: 14px; background: #fff; display: grid; place-items: center;
  box-shadow: 0 6px 18px -6px rgba(0,0,0,.6); }
.services__row img { width: 30px; height: 30px; object-fit: contain; }
.services__note { font-size: 15px; max-width: 560px; margin: 26px auto 0; }
.services__note a { color: var(--link-dark); }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bento--2 { grid-template-columns: repeat(2, 1fr); }
.tile { border-radius: var(--r-tile); padding: 34px; display: flex; flex-direction: column; overflow: hidden; position: relative; min-height: 260px; justify-content: flex-end; }
.bento--2 .tile { min-height: 0; justify-content: flex-start; }
.tile h3 { font-family: var(--display); font-weight: 700; font-size: 25px; line-height: 1.15; letter-spacing: -0.012em; margin-bottom: 10px; }
.tile p { color: var(--ink-2); font-size: 16px; line-height: 1.45; }
.tile--white { background: #fff; }
.tile--span2 { grid-column: span 2; }
.tile--sky { color: var(--on-dark);
  background:
    radial-gradient(70% 80% at 100% 0%, rgba(64,120,255,.55), transparent 70%),
    radial-gradient(60% 70% at 0% 100%, rgba(128,72,255,.40), transparent 70%),
    linear-gradient(180deg, var(--sky-top), var(--sky-low)); }
.tile--sky p { color: #c5c9e6; }
.tile--row { flex-direction: row; align-items: center; justify-content: space-between; gap: 36px; }
.tile__copy { max-width: 400px; }

.tile--glass { color: var(--on-dark);
  background: linear-gradient(135deg, #2a49c9 0%, #5a3fd0 55%, #9a4bd6 100%); }
.tile--glass::before { content: ""; position: absolute; inset: 14px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.06));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 0 0 1px rgba(255,255,255,.16); }
.tile--glass > * { position: relative; }
.tile--glass p { color: rgba(255,255,255,.86); }

.tile .tile__figure { font-family: var(--display); font-weight: 700; font-size: 34px; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: auto; padding-bottom: 28px; color: var(--ink); }
.tile .tile__figure span { color: #e8892b; }

.tile--shot { padding: 0; background: #0a0d2c; color: var(--on-dark); justify-content: flex-start; }
.tile__crop { aspect-ratio: 1500 / 730; overflow: hidden; }
.tile__crop img { width: 100%; }
.tile__over { padding: 26px 34px 34px; }
.tile__over p { color: #c5c9e6; }

.tile__img { margin: -10px -10px 26px; }
.tile__img img { width: 100%; border-radius: 14px; box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 18px 40px -16px rgba(0,0,0,.25); }
.tile__img--small { max-width: 240px; margin: 0 0 auto; padding-bottom: 26px; }
@media (max-width: 900px) {
  .bento, .bento--2 { grid-template-columns: 1fr; }
  .tile--span2 { grid-column: auto; }
  .tile--row { flex-direction: column; align-items: flex-start; }
  .tile--row .ring { align-self: center; }
}

/* The storage ring, drawn the way Home draws it. */
.ring { position: relative; width: 220px; flex: none; }
.ring svg { transform: rotate(-90deg); width: 100%; }
.ring circle { fill: none; stroke-width: 9; }
.ring__track { stroke: rgba(255,255,255,.14); }
.ring__label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring__label strong { font-family: var(--display); font-size: 46px; line-height: 1; letter-spacing: -0.02em; color: #fff; }
.tile .ring__label span { font-size: 13px; color: #c5c9e6; margin-top: 6px; }

/* ---------- Add Cloud sheets ---------- */
.sheets { display: grid; grid-template-columns: 1184fr 1200fr; gap: 44px; align-items: start; max-width: 940px; margin: 0 auto; }
.sheets img { filter: drop-shadow(0 30px 50px rgba(0,0,0,.45)); }
@media (max-width: 760px) { .sheets { grid-template-columns: 1fr; max-width: 440px; } }

/* ---------- Menu bar panels ---------- */
.panels { display: grid; grid-template-columns: 300px 300px 1fr; gap: 44px; align-items: start; }
.panels img { border-radius: 18px; box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 40px 80px -24px rgba(40,70,200,.5); }
.panels figcaption { color: var(--ink-3); }
.panels__copy { display: grid; gap: 28px; padding-top: 12px; }
@media (max-width: 1000px) { .panels { grid-template-columns: 1fr 1fr; justify-items: center; } .panels figure { max-width: 300px; } .panels__copy { grid-column: span 2; grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .panels { grid-template-columns: 1fr; } .panels__copy { grid-column: auto; grid-template-columns: 1fr; } }

/* ---------- Tables ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 16px; }
.table th, .table td { text-align: left; padding: 16px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.table thead th { font-size: 13px; color: var(--ink-3); font-weight: 600; padding-top: 0; }
.table tbody tr:last-child td, .table tbody tr:last-child th { border-bottom: 0; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; background: #fff; border-radius: var(--r-tile); padding: 26px 22px 12px; }
.compare tbody th { font-weight: 600; white-space: nowrap; }
.compare tbody td:first-of-type { font-weight: 600; color: var(--link); }
.compare th, .compare td { font-size: 15px; min-width: 132px; }
.compare__title { font-family: var(--display); font-weight: 700; font-size: 30px; margin: 84px 0 24px; text-align: center; }

/* ---------- From the same studio ---------- */
.fund { display: grid; grid-template-columns: 7fr 5fr; gap: 20px; }
.fund__card { background: var(--mist); border-radius: var(--r-tile); overflow: hidden; display: flex; flex-direction: column; }
.fund__art { position: relative; padding: 28px 28px 0; }
.fund__art--tv { padding-right: 84px; }
.fund__tv { border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0,0,0,.2), 0 30px 60px -24px rgba(0,0,0,.6); }
.fund__phone { position: absolute; right: 20px; bottom: -24px; width: 136px; }
.fund__art--phone { display: flex; justify-content: center; }
.fund__hero-phone { width: 230px; margin-bottom: -44px; }
.fund__body { padding: 40px 28px 28px; display: flex; flex-direction: column; flex: 1; position: relative; background: var(--mist); }
.fund__name { display: flex; align-items: center; gap: 12px; }
.fund__name img { border-radius: 10px; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.fund__name h3 { font-family: var(--display); font-weight: 700; font-size: 28px; }
.fund__what { margin-top: 14px; font-size: 21px; letter-spacing: -0.015em; }
.fund__copy { margin-top: 8px; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.fund__price { margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--link); }
.fund .actions { margin-top: auto; padding-top: 22px; }
@media (max-width: 860px) { .fund { grid-template-columns: 1fr; } }

/* ---------- Download ---------- */
.cta { padding: 136px 0 120px; text-align: center; }
.cta__icon { margin: 0 auto 26px; filter: drop-shadow(0 18px 40px rgba(64,128,255,.6)); }
.cta h2 { font-size: clamp(40px, 6.4vw, 72px); line-height: 1.04; letter-spacing: -0.024em; }
.reqs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 40px; text-align: left; margin: 64px auto 0; max-width: 720px; }
.reqs div { border-top: 1px solid var(--rule-dark); padding-top: 12px; }
.reqs dt { font-size: 13px; color: #9da2c4; font-weight: 600; }
.reqs dd { margin-top: 4px; font-size: 15px; color: var(--on-dark); }
@media (max-width: 600px) { .reqs { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: #070a1f; padding: 28px 0 40px; font-size: 12px; color: #8f93b0; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; }
.footer ul { display: flex; gap: 20px; flex-wrap: wrap; }
.footer a { color: #c5c9e6; }
.footer__fine { flex-basis: 100%; }
@media (max-width: 700px) { .compare tbody th { white-space: normal; } .compare th, .compare td { min-width: 120px; } }
