/* ===========================================================================
   CloudShift — launch site
   ---------------------------------------------------------------------------
   The palette is built from the two colours sampled out of the logo: the blue
   of the C-arc (#1d7cfd) and the orange of the arrow and "SHIFT" (#ff8602).
   Everything else is a *tint* of that blue rather than a neutral grey — the
   page background, the panel fills, the borders and the type all sit on hue
   ~215, so the whole site reads as one colour family with the logo instead of
   as white-with-a-blue-button.

   Deliberately light. Deep shades are reserved for type and for the app
   screenshots, which are dark and are meant to stand out as "the product".

   Interactive blue is --brand-deep, not --brand: the lighter logo blue doesn't
   clear contrast ratios against a pale background, so the bright tone is used
   for fills and washes and the deeper one for anything you have to read.
   =========================================================================== */

:root {
  --brand: #1d7cfd;
  --brand-deep: #0750e8;
  --brand-2: #ff8602;
  --brand-2-deep: #b35c00;

  /* Tinted surfaces: hue 215, descending in lightness */
  --bg: #f2f7fe;
  --bg-2: #e8f0fd;
  --panel: #ffffff;
  --panel-2: #eef4fd;
  --line: #d3e1f5;
  --line-soft: #e3ecf9;

  --text: #0e1d30;
  --body: #3a5169;
  --dim: #64809d;
  --faint: #93a7bd;

  --green: #14804a;
  --amber: #9a6700;
  --red: #c8302c;

  --wash: rgba(29, 124, 253, .06);
  --wash-2: rgba(255, 134, 2, .10);

  --shadow: 0 1px 2px rgba(14, 29, 48, .04), 0 6px 20px rgba(14, 29, 48, .05);

  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --shell: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 24px; }

/* Section rhythm: one class, so vertical spacing never drifts between blocks. */
section { padding: 88px 0; border-top: 1px solid var(--line-soft); }
section:first-of-type { border-top: 0; }

/* Alternating tint keeps the page from reading as one flat sheet. */
section.tinted { background: var(--bg-2); border-top-color: var(--line); }

h1, h2, h3 { letter-spacing: -0.5px; line-height: 1.2; margin: 0; }

.eyebrow {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: 2px;
  color: var(--dim); margin: 0 0 18px; font-weight: 600;
}
.eyebrow .dot { color: var(--brand-2-deep); }

h2 { font-size: clamp(26px, 3.6vw, 36px); margin-bottom: 16px; }

.lede { font-size: 18px; color: var(--body); max-width: 62ch; margin: 0 0 8px; }
p { color: var(--body); margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand-deep); }

/* ---------- nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(242, 247, 254, .85);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav .shell { display: flex; align-items: center; gap: 22px; height: 62px; }
.nav .wordmark {
  font-family: var(--mono); font-size: 16px; font-weight: 600;
  letter-spacing: -.3px; color: var(--text); text-decoration: none;
}
.nav .wordmark span { color: var(--brand-2-deep); }
.nav .grow { flex: 1; }
.nav a.link { color: var(--dim); text-decoration: none; font-size: 14px; }
.nav a.link:hover { color: var(--text); }

/* ---------- buttons ---------- */

.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font: inherit; font-size: 14.5px; font-weight: 600;
  padding: 12px 22px; border-radius: 9px; border: 1px solid transparent;
  background: var(--brand-deep); color: #fff;
  box-shadow: 0 1px 2px rgba(7, 80, 232, .2), 0 4px 14px rgba(7, 80, 232, .16);
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: #0a45c4; }
.btn:active { transform: translateY(1px); }
.btn.ghost {
  background: var(--panel); border-color: var(--line); color: var(--text);
  font-weight: 500; box-shadow: none;
}
.btn.ghost:hover { background: var(--panel-2); border-color: #bcd1ee; }

/* ---------- hero ---------- */

.hero { padding: 92px 0 76px; position: relative; }
.hero::before {
  /* Brand tint bloom behind the headline. Pointer-events off so it never eats clicks. */
  content: ""; position: absolute; inset: -160px 0 auto 0; height: 640px;
  background:
    radial-gradient(52% 50% at 22% 0%, rgba(29, 124, 253, .17), transparent 68%),
    radial-gradient(44% 46% at 82% 12%, rgba(255, 134, 2, .13), transparent 70%);
  pointer-events: none; z-index: -1;
}
.hero-logo { width: 260px; max-width: 62%; display: block; margin: 0 0 34px; }
.hero h1 {
  font-size: clamp(38px, 6.4vw, 62px);
  letter-spacing: -1.6px; margin: 0 0 22px; max-width: 16ch;
}
.hero h1 em { font-style: normal; color: var(--brand-deep); }
.hero .lede { font-size: 19px; max-width: 58ch; }
.hero .caveat {
  font-size: 14px; color: var(--dim); margin-top: 14px; max-width: 58ch;
  padding-left: 14px; border-left: 2px solid var(--brand-2);
}

/* ---------- waitlist form ---------- */

.wait { margin-top: 36px; max-width: 520px; }
.wait form { display: flex; gap: 10px; flex-wrap: wrap; }
.wait input[type=email] {
  flex: 1 1 240px; min-width: 0;
  font: inherit; font-size: 15px; color: var(--text);
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 9px; padding: 12px 15px;
}
.wait input[type=email]::placeholder { color: var(--faint); }
.wait input[type=email]:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(29, 124, 253, .18);
}
.wait .note { font-size: 13px; color: var(--faint); margin: 12px 0 0; }
.wait .msg { font-size: 14px; margin: 12px 0 0; display: none; }
.wait .msg.show { display: block; }
.wait .msg.ok { color: var(--green); }
.wait .msg.err { color: var(--amber); }
.wait button[disabled] { opacity: .6; cursor: default; }

/* ---------- the gap arrow ---------- */

.arrowline {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  flex-wrap: wrap; text-align: center;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 26px; margin: 0 0 26px;
  font-size: clamp(17px, 2.4vw, 22px); box-shadow: var(--shadow);
}
.arrowline .from { color: var(--dim); }
.arrowline .to { color: var(--brand-2-deep); font-size: 22px; }
.arrowline b { color: var(--text); }
.arrowline .gap {
  font-family: var(--mono); font-size: 11px; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--faint);
  width: 100%; padding-top: 4px;
}

/* ---------- generic cards ---------- */

.grid { display: grid; gap: 16px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 24px; box-shadow: var(--shadow);
}
.card h3 { font-size: 17px; margin-bottom: 9px; }
.card p { font-size: 14.5px; color: var(--dim); margin: 0; }
.card .num {
  font-family: var(--mono); font-size: 26px; font-weight: 600;
  color: var(--brand-deep); display: block; margin-bottom: 6px; letter-spacing: -1px;
}
.card .num.alt { color: var(--brand-2-deep); }

/* ---------- the trap demo ---------- */

.trap { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 30px; }

/* Flex column so the two cards' verdict strips sit flush at the bottom even
   though their bodies are different lengths — otherwise the shorter card
   leaves a dead white band under its verdict. */
.mock {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden; font-size: 14px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.mock-body { flex: 1; }
.mock-head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 13px 16px; background: var(--panel-2); border-bottom: 1px solid var(--line);
}
.tid { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.prio {
  font-family: var(--mono); font-size: 10px; letter-spacing: .6px;
  padding: 2px 7px; border-radius: 5px;
  background: rgba(255, 134, 2, .12); color: var(--brand-2-deep);
  border: 1px solid rgba(255, 134, 2, .35);
}
.mock-head .who { margin-left: auto; font-size: 12px; color: var(--dim); }
.mock-body { padding: 16px; }
.mock-body .title { font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.mock-body p { font-size: 14px; color: var(--dim); margin: 0 0 14px; }

.opt {
  display: flex; gap: 11px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; margin-bottom: 9px; background: var(--bg);
}
.opt:last-child { margin-bottom: 0; }
.opt .key {
  font-family: var(--mono); font-size: 11px; color: var(--dim);
  border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px;
  flex: none; margin-top: 2px; background: var(--panel);
}
.opt .txt { font-size: 13.5px; color: var(--body); line-height: 1.5; }
.opt code { font-family: var(--mono); font-size: 12px; color: var(--text); }
.opt.picked { border-color: rgba(200, 48, 44, .4); background: rgba(200, 48, 44, .05); }
.opt.picked .key { border-color: rgba(200, 48, 44, .4); color: var(--red); }
.opt.right { border-color: rgba(20, 128, 74, .4); background: rgba(20, 128, 74, .05); }
.opt.right .key { border-color: rgba(20, 128, 74, .4); color: var(--green); }

.verdict {
  border-top: 1px solid var(--line); padding: 15px 16px;
  font-size: 13.5px; line-height: 1.6;
}
.verdict .tag {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 1px;
  text-transform: uppercase; display: block; margin-bottom: 7px; font-weight: 600;
}
.verdict.bad { background: rgba(200, 48, 44, .05); }
.verdict.bad .tag { color: var(--red); }
.verdict.good { background: rgba(20, 128, 74, .05); }
.verdict.good .tag { color: var(--green); }
.verdict p { color: var(--body); font-size: 13.5px; margin: 0; }
.verdict .score { font-family: var(--mono); font-size: 12px; color: var(--dim); margin-top: 9px; display: block; }

.trap-kicker {
  margin-top: 26px; padding: 20px 22px;
  background: var(--wash-2); border-left: 3px solid var(--brand-2);
  border-radius: 0 12px 12px 0; font-size: 16px; color: var(--text); line-height: 1.6;
}

/* ---------- day timeline ---------- */

.day { margin-top: 34px; border-left: 1px solid var(--line); padding-left: 0; list-style: none; }
.day li { position: relative; padding: 0 0 26px 26px; }
.day li:last-child { padding-bottom: 0; }
.day li::before {
  content: ""; position: absolute; left: -5px; top: 7px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--brand);
}
.day li.hot::before { border-color: var(--brand-2); background: var(--brand-2); }
.day .t {
  font-family: var(--mono); font-size: 11.5px; color: var(--brand-deep);
  letter-spacing: .4px; display: block; margin-bottom: 3px;
}
.day li.hot .t { color: var(--brand-2-deep); }
.day .h { font-weight: 600; font-size: 15.5px; margin-bottom: 3px; }
.day .d { font-size: 14px; color: var(--dim); }

/* ---------- screenshots ---------- */

.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 32px; }
.shot {
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: var(--panel); box-shadow: var(--shadow);
}
.shot img { display: block; width: 100%; height: auto; }
.shot .cap {
  padding: 11px 14px; font-size: 13px; color: var(--dim);
  border-top: 1px solid var(--line); background: var(--panel-2);
}

/* ---------- honesty claims ---------- */

.claims { list-style: none; padding: 0; margin: 0; }
.claims li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px;
}
.claims li:last-child { border-bottom: 0; }
.claims .mark { flex: none; font-size: 13px; line-height: 1.6; }
.claims.yes .mark { color: var(--green); }
.claims.no .mark { color: var(--red); }
.claims.no li { color: var(--dim); }

.pull {
  background: var(--panel); border-left: 3px solid var(--brand);
  border-radius: 0 12px 12px 0; padding: 20px 22px;
  font-size: 16px; line-height: 1.65; color: var(--text); box-shadow: var(--shadow);
}

/* ---------- closing CTA ---------- */

.close {
  text-align: center; padding: 96px 0 88px; position: relative;
  background: var(--bg-2); border-top: 1px solid var(--line);
}
.close h2 { max-width: 20ch; margin: 0 auto 16px; }
.close .lede { margin: 0 auto 8px; text-align: center; }
.close .wait { margin: 32px auto 0; }
.close .wait form { justify-content: center; }
.close .note { text-align: center; }

/* ---------- footer ---------- */

footer { border-top: 1px solid var(--line); padding: 34px 0 46px; background: var(--bg-2); }
footer .shell { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
footer .tagline {
  font-family: var(--mono); font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--faint);
}
footer .grow { flex: 1; }
footer a { color: var(--dim); text-decoration: none; font-size: 14px; }
footer a:hover { color: var(--text); }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .grid.c4 { grid-template-columns: repeat(2, 1fr); }
  .grid.c3 { grid-template-columns: 1fr; }
  .trap { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  section { padding: 62px 0; }
  .hero { padding: 60px 0 54px; }
  .shell { padding: 0 18px; }
  .grid.c2, .grid.c4, .shots { grid-template-columns: 1fr; }
  .nav .link.hide-sm { display: none; }
  .wait form { flex-direction: column; }
  /* The row-layout `flex: 1 1 240px` would become a 240px *height* once the
     main axis is vertical, so the basis has to be dropped here. */
  .wait input[type=email] { flex: 0 0 auto; width: 100%; }
  .wait .btn { width: 100%; text-align: center; }
}

/* Respect users who don't want the smooth-scroll jump. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
