/* C-Suite home. Values follow design_handoff_csuite_home/README.md.
   Radius 0 everywhere, no shadows. */

:root {
  --dark-green: #0a2b14;
  --medium-green: #014e20;
  --green: #019a20;
  --green-hover: #016d16;
  --mint: #00ffbc;
  --black: #000;
  --soft-black: #282828;
  --dark-grey: #858a7f;
  --light-grey: #d3dfd4;
  --light-grey-50: #e9f0ea;
  --page: #f4f7f4;
  --border-default: #c2cfc3;
  --white-70: rgba(255, 255, 255, 0.7);
  --white-16: rgba(255, 255, 255, 0.16);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--page);
  color: var(--soft-black);
  font-family: Figtree, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green); }
a:hover { color: var(--black); }
a:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }

.container { max-width: 1280px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* Header */
.site-header { background: var(--dark-green); border-bottom: 1px solid var(--white-16); }
.header-inner { padding-top: 20px; padding-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.header-inner img { width: 28px; height: 28px; display: block; }
.header-inner { flex-wrap: wrap; row-gap: 4px; }
.brand { color: #fff; font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.tagline {
  padding-left: 12px;
  border-left: 1px solid var(--white-16);
  font-size: 15px;
  color: var(--white-70);
}

/* Hero */
.hero { background: var(--dark-green); color: #fff; }
.hero .container { padding-top: 96px; padding-bottom: 120px; }
.hero-text { max-width: 820px; display: flex; flex-direction: column; gap: 24px; }
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
}
h1 {
  margin: 0;
  color: #fff;
  font-weight: 500;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h1 em { font-style: italic; color: var(--mint); }
.subhead {
  margin: 0;
  max-width: 620px;
  font-size: 20px;
  line-height: 1.55;
  color: var(--white-70);
  text-wrap: pretty;
}

/* App grid */
main { flex: 1; }
.apps { margin-top: -64px; padding-bottom: 112px; }
.app-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.card-slot { perspective: 1400px; }
.card-inner {
  display: grid;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 600ms var(--ease);
}
.card-slot.flipped .card-inner { transform: rotateY(180deg); }
.face {
  grid-area: 1 / 1;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.back { transform: rotateY(180deg); }
.flippable .face { cursor: pointer; }
.flippable a { cursor: pointer; }
.shot-wrap { position: relative; flex: 1; min-height: 0; cursor: zoom-in; }
.shot { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; border: 1px solid var(--border-default); }
.enlarge-btn {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid var(--border-default);
  background: var(--light-grey-50);
  color: var(--soft-black);
  font: inherit;
  font-size: 13px;
  cursor: zoom-in;
}
.enlarge-btn:hover { background: var(--light-grey); color: var(--black); }
.enlarge-btn:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.enlarge-btn .icon { width: 14px; height: 14px; }

/* Lightbox */
.lightbox {
  margin: auto;
  padding: 16px;
  border: 0;
  background: #fff;
  max-width: min(1296px, 94vw);
  max-height: 94vh;
  overflow: auto;
}
.lightbox::backdrop { background: rgba(10, 43, 20, 0.82); }
.lightbox-img { display: block; width: 100%; max-height: calc(94vh - 110px); object-fit: contain; border: 1px solid var(--border-default); cursor: default; }
.lightbox-caption { margin: 12px 0 0; font-weight: 600; color: var(--black); }
.lightbox-close {
  display: block;
  margin: 12px 0 0 auto;
  padding: 8px 16px;
  border: 1px solid var(--border-default);
  background: var(--light-grey-50);
  color: var(--soft-black);
  font: inherit;
  cursor: pointer;
}
.lightbox-close:hover { background: var(--light-grey); color: var(--black); }
.lightbox-close:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.back { gap: 16px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.flip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  color: var(--dark-grey);
  cursor: pointer;
}
.flip-btn:hover { color: var(--black); }
.flip-btn:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.flip-btn .icon { width: 16px; height: 16px; }
.icon-link { align-self: flex-start; display: block; line-height: 0; }
.icon-link:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.card {
  background: #fff;
  border: 1px solid var(--light-grey);
  padding: 32px 28px 28px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.card-icon { width: 64px; height: 64px; display: block; }
.stage-row { display: flex; align-items: center; gap: 12px; }
.stage-num { font-size: 14px; font-weight: 600; color: var(--green); font-variant-numeric: tabular-nums; }
.stage-rule { flex: 1; height: 1px; background: var(--border-default); }
.stage-name,
.soon {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dark-grey);
}
.card-body { display: flex; flex-direction: column; gap: 8px; }
.title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.card h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--black);
}
.badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 3px 7px;
  border: 1px solid var(--border-default);
  color: var(--soft-black);
}
.card p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--soft-black); text-wrap: pretty; }
.handoff {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--light-grey-50);
  color: var(--medium-green);
  font-size: 14px;
}
.card-foot { margin-top: auto; }

/* Arrow link */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  text-decoration: none;
  color: var(--green);
}
.arrow-link svg { transition: transform 120ms var(--ease); }
.arrow-link:hover { color: var(--black); }
.arrow-link:hover svg { transform: translateX(4px); }

.icon { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.arrow-link .icon { width: 18px; height: 18px; }

/* Footer */
.site-footer { background: var(--dark-green); color: var(--white-70); }
.footer-inner {
  padding-top: 32px;
  padding-bottom: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
}
.brand-small { color: #fff; font-weight: 600; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a { color: var(--white-70); }
.footer-links a:hover { color: #fff; }

@media (max-width: 560px) {
  .tagline { padding-left: 0; border-left: 0; flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .arrow-link svg, .card-inner { transition: none; }
}
