/* getcrewcheck.app. Tokens come from the app's own themes.ts (Cockpit teal). */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/mono.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --ink: #061e24;
  --ink-deep: #04161b;
  --panel: #0b2d33;
  --panel-2: #082832;
  --line: #1f5561;
  --teal: #3cd6bf;
  --teal-soft: #93f5e6;
  --foam: #e6eef0;
  --mist: #a1b5ba;
  --check: #22c55e;

  --paper: #f5f8fa;
  --paper-2: #e8f1f4;
  --text: #0f172a;
  --text-2: #4a5a6e;
  --teal-dark: #0e7490;
  --rule: #d0dae5;

  --display: "Archivo", "Arial Narrow", -apple-system, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;

  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
  --head: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--head) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; text-wrap: pretty; }
h1, h2, h3 { margin: 0; }
button, input { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.paper :focus-visible { outline-color: var(--teal-dark); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--teal); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.small { font-size: 14px; line-height: 1.55; }
.muted { color: var(--text-2); }
.ink .muted { color: var(--mist); }

/* Surfaces */
.ink { background: var(--ink); color: var(--foam); }
.ink--deep { background: var(--ink-deep); }
.paper { background: var(--paper); color: var(--text); }
.paper--alt { background: var(--paper-2); }

/* Type */
.display {
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 65%;
  text-transform: uppercase;
  line-height: 0.86;
  letter-spacing: -0.01em;
  font-size: clamp(3.6rem, 11.5vw, 9.5rem);
  text-wrap: balance;
}
.display--md { font-size: clamp(2.9rem, 7.4vw, 5.6rem); line-height: 0.88; margin-bottom: 0.32em; }
.ink .display { color: #f2f7f8; }


/* Header */
.top {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid rgba(60, 214, 191, 0.14);
  color: var(--foam);
}
.top__in {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
  height: var(--head); display: flex; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; font-stretch: 75%; font-size: 21px; letter-spacing: 0.01em; text-transform: uppercase; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.top__nav { display: none; gap: 22px; margin-left: 8px; }
.top__nav a { text-decoration: none; font-size: 14px; color: var(--mist); transition: color 0.2s var(--ease); }
.top__nav a:hover { color: var(--foam); }
.zclock {
  margin: 0 0 0 auto;
  font-family: var(--mono); font-size: 14px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--teal); font-variant-numeric: tabular-nums;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  background: var(--teal); color: var(--ink);
  font-weight: 600; font-size: 15px; text-decoration: none;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease);
}
.btn:hover { background: var(--teal-soft); }
.btn:active { transform: scale(0.97); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
@media (min-width: 1000px) { .top__nav { display: flex; } }
@media (max-width: 860px) { .top .btn { display: none; } }

/* App Store badge, drawn in the style of Apple's */
.appstore {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 8px 22px 8px 16px; border-radius: 14px;
  background: #000; color: #fff; text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.appstore svg { width: 28px; height: 28px; fill: currentColor; flex: none; }
.appstore span { display: flex; flex-direction: column; font-size: 22px; font-weight: 600; line-height: 1.05; letter-spacing: -0.01em; }
.appstore small { font-size: 11px; font-weight: 500; letter-spacing: 0.01em; }
.appstore:hover { border-color: var(--teal); }
.appstore:active { transform: scale(0.97); }
.appstore.is-ready { border-color: var(--teal); animation: nudge 0.9s var(--ease) 1; }
@keyframes nudge { 0% { transform: scale(1); } 30% { transform: scale(1.06); } 100% { transform: scale(1); } }

/* Hero */
.hero { padding: clamp(36px, 7vw, 96px) 0 0; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: #c8d6da; max-width: 36ch; margin-top: 26px; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 30px; }
.hero__note { margin: 0; font-size: 14px; color: var(--mist); }
.hero__demo { position: relative; }
.hero__ipad { width: min(100%, 420px); justify-self: center; margin: 32px auto 24px; }

/* Devices: the raw screenshots get a plain black bezel */
.device { margin: 0; background: #010a0c; padding: 9px; border-radius: 46px; box-shadow: 0 0 0 1px rgba(60, 214, 191, 0.22), 0 40px 80px -30px rgba(0, 0, 0, 0.55); }
.device img { border-radius: 37px; width: 100%; }
.device--ipad { border-radius: 34px; padding: 12px; }
.device--ipad img { border-radius: 23px; }
.paper .device { box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08), 0 40px 70px -40px rgba(6, 30, 36, 0.45); }

/* The tickable checklist card */
.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  transition: border-color 0.4s var(--ease);
}
.card.is-done { border-color: var(--teal); }
.card__head { display: flex; align-items: center; gap: 14px; padding: 16px 12px 16px 18px; }
.ring { width: 46px; height: 46px; flex: none; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 4.5; }
.ring__track { stroke: #17434d; }
.ring__fill { stroke: var(--teal); stroke-linecap: round; stroke-dasharray: 113.1; stroke-dashoffset: 113.1; transition: stroke-dashoffset 0.5s var(--ease); }
.card__title { font-family: var(--display); font-weight: 900; font-stretch: 65%; text-transform: uppercase; font-size: 30px; line-height: 1; color: #f2f7f8; }
.card__count { margin: 6px 0 0; font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mist); font-variant-numeric: tabular-nums; }
.card__reset {
  margin-left: auto; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: none; color: var(--mist); cursor: pointer;
  display: grid; place-items: center;
  transition: color 0.2s var(--ease), transform 0.4s var(--ease);
}
.card__reset svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card__reset:hover { color: var(--foam); }
.card__reset:active { transform: rotate(-60deg); }

.items { list-style: none; margin: 0; padding: 0; }
.items li + li, .items li:first-child { border-top: 1px solid #154550; }
.items button {
  width: 100%; min-height: 54px; display: flex; align-items: center; gap: 14px;
  padding: 10px 18px; border: 0; background: transparent; text-align: left; cursor: pointer;
  transition: background-color 0.25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.items button:hover { background: rgba(60, 214, 191, 0.05); }
.items i {
  width: 26px; height: 26px; flex: none; border-radius: 50%;
  border: 2px solid #5f7f86; position: relative;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.3s var(--ease);
}
.items i::after {
  content: ""; position: absolute; left: 8px; top: 4px; width: 6px; height: 11px;
  border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(0.6); opacity: 0; transform-origin: center;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.items .ch { flex: 1; display: flex; align-items: baseline; gap: 10px; font-size: 17px; color: var(--foam); min-width: 0; }
.items .ch::after { content: ""; flex: 1; min-width: 12px; border-bottom: 2px dotted rgba(161, 181, 186, 0.35); transform: translateY(-4px); }
.items .re { font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); white-space: nowrap; }
.items button[aria-pressed="true"] { background: #0d3a36; }
.items button[aria-pressed="true"] i { background: var(--check); border-color: var(--check); transform: scale(1.04); }
.items button[aria-pressed="true"] i::after { transform: rotate(45deg) scale(1); opacity: 1; }
.items button[aria-pressed="true"] .ch { color: var(--mist); }
.card__hint, .card__done { margin: 0; padding: 14px 18px; border-top: 1px solid #154550; font-size: 14px; color: var(--mist); }
.card__done { color: var(--teal); font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; }
.card__done a { color: var(--foam); }

/* Phase pills, as in the app */
.phases {
  list-style: none; display: flex; gap: 10px;
  margin: clamp(40px, 6vw, 72px) auto 0; padding-top: 22px; padding-bottom: 22px;
  border-top: 1px solid rgba(60, 214, 191, 0.14);
  overflow-x: auto; scrollbar-width: none;
}
.phases::-webkit-scrollbar { display: none; }
.phases li {
  flex: none; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mist);
}
.phases li.is-on { background: #2b3b4c; border-color: #3f5468; color: var(--foam); }

/* Split sections */
section.zulu, section.slide, section.tools, section.build, section.themes, section.pro, section.faq, section.close { padding: clamp(64px, 9vw, 128px) 0; }
.split { display: grid; gap: 44px; align-items: center; }
.split__copy p { max-width: 46ch; }
.ink .split__copy p { color: #c8d6da; }
.paper .split__copy p { color: var(--text-2); }
.split__media { width: min(100%, 440px); justify-self: center; }
.themes__grid { display: grid; gap: 44px; align-items: center; }
.themes__media { display: none; }

/* Block time box */
.blocks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 30px 0 10px; max-width: 460px; }
.blocks label, .blocks__out { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel-2); }
.blocks span { font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; white-space: nowrap; text-transform: uppercase; color: var(--mist); }
.blocks input, .blocks output {
  width: 100%; border: 0; background: transparent; padding: 0;
  font-family: var(--mono); font-size: 26px; font-weight: 600; letter-spacing: 0.06em; color: #f2f7f8; font-variant-numeric: tabular-nums;
}
.blocks input:focus { outline: none; }
.blocks label:focus-within { border-color: var(--teal); }
.blocks__out { background: rgba(60, 214, 191, 0.1); border-color: rgba(60, 214, 191, 0.45); }
.blocks output { color: var(--teal); }
.blocks label.is-bad { border-color: #e0605c; }

/* Slide Over */
.slide .wrap { display: grid; gap: 44px; align-items: center; }
.slide__copy p { color: var(--text-2); max-width: 46ch; }
.slide__media { width: min(100%, 520px); justify-self: center; }

/* Dot leaders: challenge on the left, response on the right */
.leaders { list-style: none; margin: 28px 0 0; padding: 0; max-width: 520px; }
.leaders li { display: flex; align-items: baseline; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.leaders li span { flex: 1; display: flex; align-items: baseline; gap: 10px; min-width: 0; color: var(--text); }
.leaders li span::after { content: ""; flex: 1; min-width: 14px; border-bottom: 2px dotted rgba(15, 23, 42, 0.25); transform: translateY(-4px); }
.leaders li b { font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-dark); white-space: nowrap; }
.leaders--tight li { padding: 9px 0; font-size: 16px; }

.note {
  margin-top: 26px; padding: 16px 18px; border-left: 3px solid var(--teal-dark);
  background: rgba(14, 116, 144, 0.07); border-radius: 0 12px 12px 0;
  font-size: 15px;
}
.paper .split__copy .note { color: var(--text); }

/* Themes */
.themes__lede { color: #c8d6da; max-width: 52ch; }
.icons { list-style: none; margin: 40px 0 0; padding: 0 0 6px; display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; }
.icons::-webkit-scrollbar { display: none; }
.icons li { flex: none; width: 104px; text-align: center; }
.icons img { width: 104px; height: 104px; border-radius: 24px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08); }
.icons span { display: block; margin-top: 12px; font-size: 14px; color: var(--mist); }

/* Free and Pro */
.pro__lede { color: var(--text-2); max-width: 46ch; }
.plans { display: grid; gap: 20px; margin: 36px 0 22px; }
.plan { background: #fff; border: 1px solid var(--rule); border-radius: 22px; padding: 26px 26px 18px; }
.plan--pro { border-top: 4px solid var(--teal-dark); }
.plan h3 { font-family: var(--display); font-weight: 900; font-stretch: 65%; text-transform: uppercase; font-size: 36px; line-height: 1; }
.plan__price { margin: 8px 0 0; line-height: 1.5; font-family: var(--mono); font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--teal-dark); }
.plan__price small { font-family: var(--body); font-weight: 500; font-size: 14px; color: var(--text-2); }
.plan__price .or { font-family: var(--body); font-weight: 400; font-size: 14px; color: var(--text-2); margin: 0 4px; }
.plan .leaders { margin-top: 18px; }
.plan .leaders li:last-child { border-bottom: 0; }

/* FAQ */
.faq__grid { display: grid; gap: 24px; }
.faq__list { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px; padding: 14px 0; font-weight: 600; font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px; margin-right: 6px;
  border: solid var(--teal-dark); border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-3px);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { color: var(--text-2); max-width: 60ch; padding-bottom: 8px; }
.faq details a { color: var(--teal-dark); }

/* Close */
.close__in { text-align: center; display: flex; flex-direction: column; align-items: center; }
.close__icon { width: 88px; height: 88px; border-radius: 21px; margin-bottom: 28px; box-shadow: 0 0 0 1px rgba(60, 214, 191, 0.3); }
.close p { color: #c8d6da; margin: 22px 0 28px; }

/* Footer */
.foot { border-top: 1px solid rgba(60, 214, 191, 0.14); padding: 36px 0 40px; font-size: 15px; }
.foot__in { display: grid; gap: 14px; }
.foot p { margin: 0; color: var(--mist); }
.foot a { color: var(--foam); text-decoration-color: rgba(230, 238, 240, 0.35); text-underline-offset: 3px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.foot nav a:hover { color: var(--teal); }

/* Phone: one floating bar, the App Store link */
.dockbar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60;
  display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px;
  background: var(--ink-deep); border: 1px solid var(--line); border-radius: 20px;
  color: var(--foam); text-decoration: none;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.6);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.dockbar img { width: 38px; height: 38px; border-radius: 9px; }
.dockbar span { display: flex; flex-direction: column; line-height: 1.2; }
.dockbar b { font-size: 15px; }
.dockbar small { font-size: 13px; color: var(--mist); }
.dockbar em { margin-left: auto; font-style: normal; font-weight: 700; font-size: 15px; background: var(--teal); color: var(--ink); border-radius: 999px; padding: 9px 22px; }
.dockbar.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }

@media (max-width: 860px) {
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); background: var(--ink); }
  .top { position: relative; }
  .tools .split__media, .build .split__media, .zulu .split__media, .phases { display: none; }
  section.zulu, section.slide, section.tools, section.build, section.themes, section.pro, section.faq, section.close { padding: 56px 0; }
  .hero { padding-bottom: 56px; }
  .split, .slide .wrap { gap: 32px; }
  .slide__media { width: min(100%, 280px); }
  .icons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 10px; margin-top: 28px; overflow: visible; }
  .icons li { width: auto; display: flex; flex-direction: column; align-items: center; }
  .icons img { width: 76px; height: 76px; border-radius: 18px; }
  .icons span { font-size: 13px; }
  .leaders li { padding: 9px 0; }
  .plan__price .or { display: block; margin: 0; }
  .blocks { gap: 8px; }
  .blocks label, .blocks__out { padding: 10px 12px; }
  .blocks input, .blocks output { font-size: 22px; }
  .hero__copy .display { font-size: clamp(3.2rem, 17vw, 6rem); }
}

/* Desktop */
@media (min-width: 861px) {
  .dockbar { display: none; }
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 48px; }
  .hero__copy .display { font-size: clamp(4.2rem, 7.4vw, 7rem); }
  .hero__demo { min-height: 600px; margin-bottom: 36px; }
  .hero__ipad { position: absolute; right: 0; top: 0; width: 430px; margin: 0; }
  .hero__demo .card { position: absolute; left: 0; bottom: -36px; width: min(372px, 72%); z-index: 2; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7); }
  .split { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 64px; }
  .split--rev .split__copy { order: 2; }
  .split--rev .split__media { order: 1; }
  .slide .wrap { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; }
  .plans { grid-template-columns: 1fr 1fr; max-width: 980px; }
  .faq__grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 64px; align-items: start; }
  .foot__in { grid-template-columns: 1fr auto; align-items: center; }
  .foot__in .small { grid-column: 1 / -1; }
  .icons { overflow: visible; flex-wrap: wrap; }
  .themes__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 64px; }
  .themes__media { display: block; width: min(100%, 440px); justify-self: center; }
}

/* Desktop arrival: one short sequence, transforms and opacity only */
@media (min-width: 861px) and (prefers-reduced-motion: no-preference) {
  .hero__copy .display { animation: rise 0.9s var(--ease) 0.05s both; }
  .lede, .hero__cta { animation: fade 0.8s var(--ease) 0.25s both; }
  .hero__ipad { animation: settle 1.1s var(--ease) 0.15s both; }
  .hero__demo .card { animation: lift 0.9s var(--ease) 0.45s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(0.35em); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0; transform: translateY(30px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes lift { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

@media (min-width: 1100px) {
  .hero__ipad { width: 460px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
