/* ==========================================================================
   CrewTech Pro — marketing site styles
   Single stylesheet, no external dependencies. Palette derived from the
   CrewTech Pro brand navy (#1f3a53) so it matches the app + logo.
   ========================================================================== */

:root {
  /* Sturdy-blue brand family (mirrors the app's Tailwind `brand` scale). */
  --navy-900: #0b1722;
  --navy-800: #10202d;
  --navy-700: #142736;
  --navy-600: #182f43;
  --navy:     #1f3a53; /* primary */
  --blue-400: #5b7f9f;
  --blue-300: #90abc4;
  --blue-200: #bccede;
  --blue-100: #dbe5ef;
  --blue-50:  #eef3f8;

  --ink:       #0f1b26;
  --slate:     #47586b;
  --slate-400: #7488a0;
  --line:      #e2e8f0;
  --bg:        #ffffff;
  --bg-soft:   #f7f9fc;

  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 27, 38, 0.06);
  --shadow: 0 6px 24px rgba(15, 27, 38, 0.08);
  --container: 1080px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter,
          "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.15; color: var(--navy-700); margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p  { margin: 0 0 1rem; }
a  { color: var(--navy); }

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

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 10px;
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, transform .05s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--navy-700); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: #fff; color: var(--navy-700); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue-300); background: var(--blue-50); }

/* ---- Header / nav -------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--slate); text-decoration: none; font-weight: 550; font-size: .96rem; }
.nav-links a:hover { color: var(--navy); }
.nav-links .btn { padding: 9px 16px; }
/* The generic .nav-links a color would otherwise override the button's white
   text (higher specificity), making "Get in touch" unreadable on navy. */
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover { color: #fff; }

/* ---- Wordmark ------------------------------------------------------------ */
/* ⟨ASSET SLOT: WORDMARK⟩ — this styled text stands in for the CrewTech Pro
   wordmark + ascending-bars mark. Swap it for <img src="assets/crewtech-logo.svg">
   once the asset is dropped in /assets. See assets/README.md. */
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.wordmark .mark { display: inline-flex; align-items: flex-end; gap: 3px; height: 24px; }
.wordmark .mark span { width: 5px; border-radius: 2px; background: var(--navy); display: block; }
.wordmark .mark span:nth-child(1) { height: 10px; background: var(--blue-400); }
.wordmark .mark span:nth-child(2) { height: 16px; background: var(--blue-400); }
.wordmark .mark span:nth-child(3) { height: 22px; background: var(--navy); }
.wordmark .name { font-weight: 800; font-size: 1.2rem; color: var(--navy-700); letter-spacing: -0.01em; }
.wordmark .name b { color: var(--navy); font-weight: 800; }
/* Real logo image (header). Footer keeps the CSS text wordmark for white-on-navy. */
.wordmark-img { display: block; height: 40px; width: auto; border-radius: 8px; }
@media (max-width: 560px) { .wordmark-img { height: 34px; } }

/* ---- Hero ---------------------------------------------------------------- */
.hero { background: linear-gradient(180deg, var(--blue-50) 0%, #fff 78%); padding: 72px 0 40px; }
.hero .eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--navy); background: var(--blue-100);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { max-width: 16ch; }
.hero .lede { font-size: 1.18rem; color: var(--slate); max-width: 56ch; margin: 0 0 28px; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .cta-note { color: var(--slate-400); font-size: .9rem; margin: 16px 0 0; }

/* ---- Generic section ----------------------------------------------------- */
section { padding: 64px 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: 36px; }
.section-head p { color: var(--slate); font-size: 1.08rem; }

/* ---- How it works -------------------------------------------------------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
}
.feature .ficon {
  width: 42px; height: 42px; border-radius: 10px; background: var(--blue-50);
  border: 1px solid var(--blue-100); display: flex; align-items: center; justify-content: center;
  color: var(--navy); margin-bottom: 16px;
}
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--slate); margin: 0; font-size: .98rem; }

/* ---- Screenshot slots ---------------------------------------------------- */
/* ⟨ASSET SLOTS: SCREENSHOTS⟩ — replace each .shot placeholder with a real
   product screenshot at the aspect ratio noted. Do NOT ship stock images. */
.shots { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
.shot {
  border: 2px dashed var(--blue-200); border-radius: var(--radius-lg);
  background: var(--blue-50);
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--blue-400); padding: 16px; overflow: hidden;
}
.shot img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--radius-lg) - 2px); display: block; }
.shot .ph { font-weight: 650; font-size: .95rem; }
.shot .ph small { display: block; font-weight: 500; color: var(--slate-400); margin-top: 4px; }
.shot-wide { aspect-ratio: 16 / 10; }
.shot-tall { aspect-ratio: 3 / 4; }
.shot-mid  { aspect-ratio: 4 / 3; }
.shots-secondary { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }

/* ---- Real screenshot cards (native aspect ratios → no cropping) ---------- */
.shot--img { border: 1px solid var(--line); background: #fff; padding: 0; box-shadow: var(--shadow-sm); }
.shot--img img { border-radius: 0; } /* container's overflow:hidden + radius clip the corners */
.shot-hero { width: 100%; margin-bottom: 20px; }
.shot-board { aspect-ratio: 1797 / 820; }       /* dispatch board (wide) */
.shot-jobdetail { aspect-ratio: 554 / 818; }    /* job detail (portrait) */
.shot-invoice { aspect-ratio: 1167 / 812; }     /* invoice (landscape) */
.shots-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; margin-bottom: 20px; }
.shot-solo  { max-width: 760px; margin: 0 auto; }
@media (max-width: 860px) { .shots-pair { grid-template-columns: 1fr; } }

/* ---- SMS phone mockup (stands in for a real message screenshot) ---------- */
/* Pure CSS so it's crisp at any size and easy to reword. The message text is
   the actual notification the app sends. */
.sms-slot {
  border: 1px solid var(--line);
  background: linear-gradient(165deg, var(--blue-50) 0%, #fff 70%);
  padding: 20px 12px;
}
.phone {
  width: min(252px, 100%); aspect-ratio: 250 / 412;
  background: #0f1b26; border-radius: 34px; padding: 8px;
  box-shadow: 0 16px 38px rgba(15, 27, 38, 0.22);
}
.phone-screen {
  position: relative; height: 100%;
  background: #fff; border-radius: 27px; overflow: hidden;
  display: flex; flex-direction: column;
}
/* Dynamic-island pill — a strong "this is a phone" cue. */
.phone-screen::before {
  content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 62px; height: 16px; background: #0f1b26; border-radius: 9px; z-index: 3;
}
.phone-statusbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px 6px; font-size: 10.5px; font-weight: 700; color: var(--navy-700);
}
.phone-statusbar .batt {
  display: inline-block; width: 18px; height: 9px;
  border: 1.5px solid var(--navy-700); border-radius: 2px; position: relative;
}
.phone-statusbar .batt::after {
  content: ""; position: absolute; top: 1.5px; bottom: 1.5px; left: 1.5px; right: 5px;
  background: var(--navy-700); border-radius: 1px;
}
.sms-topbar {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 12px 10px; border-bottom: 1px solid var(--line);
}
.sms-avatar {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: var(--navy); color: #fff; font-size: 10px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.sms-name { font-size: 12px; font-weight: 700; color: var(--navy-700); line-height: 1.2; }
.sms-sub  { font-size: 9.5px; color: var(--slate-400); }
.sms-body { padding: 12px 11px 6px; }
.sms-bubble {
  background: var(--blue-100); color: #14212e;
  font-size: 11.5px; line-height: 1.5; white-space: pre-line;
  padding: 9px 12px; border-radius: 15px 15px 15px 4px; max-width: 92%;
  box-shadow: var(--shadow-sm);
}
.sms-time { font-size: 9px; color: var(--slate-400); margin: 6px 0 0 6px; }
/* Home indicator — pushed to the bottom (flex auto) so the message sits at the
   top of the screen like a real conversation. */
.phone-home { margin: auto auto 8px; width: 36%; height: 4px; border-radius: 3px; background: #0f1b26; opacity: 0.5; }

/* ---- Pricing ------------------------------------------------------------- */
.pricing { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 760px; }
.plan {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 28px; box-shadow: var(--shadow-sm);
}
.plan.featured { border-color: var(--navy); box-shadow: var(--shadow); position: relative; }
.plan .tag {
  position: absolute; top: -12px; right: 20px; background: var(--navy); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.plan .plan-name { font-weight: 700; color: var(--navy-700); font-size: 1.05rem; }
.plan .price { font-size: 2.4rem; font-weight: 800; color: var(--navy-700); margin: 8px 0 2px; letter-spacing: -0.02em; }
.plan .price span { font-size: 1rem; font-weight: 550; color: var(--slate-400); }
.plan .who { color: var(--slate); margin: 0 0 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; }
.plan li { padding: 7px 0 7px 26px; position: relative; color: var(--slate); font-size: .97rem; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--navy); font-weight: 800; }
.plan .btn { width: 100%; text-align: center; }
.pricing-note { text-align: center; color: var(--slate-400); font-size: 0.95rem; margin: 22px auto 0; max-width: 62ch; }

/* ---- SMS / compliance note ---------------------------------------------- */
.sms-note {
  background: #fff; border: 1px solid var(--blue-100); border-left: 4px solid var(--navy);
  border-radius: var(--radius); padding: 22px 24px; max-width: 78ch; color: var(--slate);
}
.sms-note h3 { color: var(--navy-700); margin-bottom: 8px; }
.sms-note b { color: var(--navy-700); }

/* ---- Contact ------------------------------------------------------------- */
.contact { text-align: center; }
.contact h2 { margin-bottom: 10px; }
.contact p { color: var(--slate); max-width: 52ch; margin: 0 auto 20px; }

/* ---- Footer -------------------------------------------------------------- */
.site-footer { background: var(--navy-700); color: var(--blue-200); padding: 40px 0; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.footer-links { display: flex; gap: 22px; }
.footer-copy { color: var(--blue-300); }
.site-footer .wordmark .name { color: #fff; }
.site-footer .wordmark .name b { color: #fff; }
.site-footer .wordmark .mark span:nth-child(3) { background: #fff; }

/* ---- Legal / long-form pages -------------------------------------------- */
.legal { padding: 56px 0 72px; }
.legal .container { max-width: 760px; }
.legal h1 { margin-bottom: 6px; }
.legal .updated { color: var(--slate-400); font-size: .92rem; margin-bottom: 32px; }
.legal h2 { font-size: 1.3rem; margin-top: 36px; }
.legal h3 { margin-top: 22px; }
.legal p, .legal li { color: #2a3a49; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal .callout {
  background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: var(--radius);
  padding: 18px 20px; margin: 22px 0;
}
.back-link { display: inline-block; margin-bottom: 18px; color: var(--slate); text-decoration: none; font-weight: 550; }
.back-link:hover { color: var(--navy); }

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 860px) {
  .features { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .nav-links { gap: 16px; }
  .nav-links .hide-sm { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  section { padding: 48px 0; }
  .hero { padding: 48px 0 28px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
