/* ShiftCompass public site — the app's "editorial planner" look, set
   larger: warm paper with grain, ink text, scrubs-green accent, the amber
   compass needle in the wordmark. The same variables as
   apps/web/src/styles.css so the site and the app read as one thing.

   One bold element: the hero screenshot as a sheet taped to the desk.
   Everything else stays quiet — no eyebrow labels, no accent-colored
   words in headings, no per-section reveals or hover lifts; the only
   motion is the hero settling once on load. Monospace is kept for what
   the app sets in monospace (rotation chips, the block ruler, the
   must/should/nice tag). */

:root {
  --paper: #f6f4ee;
  --panel: #fffdf9;
  --ink: #201f1a;
  --ink-soft: #55524a;
  --ink-faint: #8b8779;
  --line: #e3dfd2;
  --line-strong: #cfcaba;
  --accent: #29584c;
  --accent-deep: #1d4038;
  --accent-ink: #f2efe6;
  --amber: #b97d10;
  --amber-soft: #e8871e;
  --radius: 10px;
  --radius-sm: 7px;
  --shadow: 0 1px 2px rgba(32, 31, 26, 0.06), 0 8px 24px -12px rgba(32, 31, 26, 0.18);
  --shadow-pop: 0 2px 6px rgba(32, 31, 26, 0.1), 0 24px 60px -20px rgba(32, 31, 26, 0.35);
  --sans: "Spline Sans", ui-sans-serif, sans-serif;
  --mono: "Spline Sans Mono", ui-monospace, monospace;
  --serif: "Fraunces", Georgia, serif;
  --measure: 62ch;
  --gutter: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* paper grain — the app's, fixed behind everything */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.55 0 0 0 0 0.53 0 0 0 0 0.47 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, header.top, footer.foot { position: relative; z-index: 1; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }

/* ------------------------------------------------------------ type */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.005em;
}
h1 {
  font-size: clamp(36px, 4.5vw, 60px);
  font-variation-settings: "opsz" 144, "wght" 520, "SOFT" 30;
  text-wrap: balance;
}
h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  font-variation-settings: "opsz" 96, "wght" 520;
  text-wrap: balance;
}
h3 {
  font-size: clamp(24px, 2.4vw, 30px);
  font-variation-settings: "opsz" 72, "wght" 540;
}
p { margin: 0 0 1em; }

/* keyboard focus, visible everywhere */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 3px;
}
.lede { font-size: clamp(18px, 1.45vw, 21px); color: var(--ink-soft); max-width: var(--measure); text-wrap: pretty; }

/* ------------------------------------------------------------ top bar */
.top {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 22px var(--gutter) 10px;
  max-width: 1440px;
  margin: 0 auto;
}
.wordmark {
  font-family: var(--serif);
  font-variation-settings: "opsz" 60, "wght" 560;
  font-style: italic;
  font-size: 30px;
  letter-spacing: 0.2px;
  color: var(--accent-deep);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark .needle { color: var(--amber); }
.wordmark.small { font-size: 24px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15px;
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--amber); }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-solid { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow); }
.btn-solid:hover { background: var(--accent-deep); }
.btn-quiet { background: var(--panel); color: var(--ink); border-color: var(--line-strong); }
.btn-quiet:hover { border-color: var(--ink-faint); }
.btn-big { font-size: 17px; padding: 15px 24px; }
.btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
.btn.is-off { display: none; }

/* ------------------------------------------------------------ hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 88px) var(--gutter) clamp(40px, 5vw, 72px);
}
.hero-copy h1 { margin-bottom: 22px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 14px; }
.hero-note { font-size: 14px; color: var(--ink-faint); margin: 0; }

/* the screenshot, as a sheet on the desk: a hair of rotation, washi tape
   on two corners, a deep soft shadow */
.hero-shot { margin: 0; }
.sheet {
  position: relative;
  background: var(--panel);
  border-radius: 8px;
  padding: 6px;
  box-shadow: var(--shadow-pop), inset 0 0 0 1px var(--line);
  transform: rotate(-1.2deg);
}
.sheet img { border-radius: 4px; }
/* every other screenshot sits flat: a thin line and a soft shadow */
.quiet img {
  border-radius: 6px;
  box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
  background: var(--panel);
}
.tape {
  position: absolute;
  width: 92px;
  height: 26px;
  background: color-mix(in srgb, var(--tape, #f76b15) 34%, #fffdf6);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tape, #f76b15) 40%, transparent);
  opacity: 0.92;
  z-index: 2;
  border-radius: 2px;
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.tape-a { --tape: #f76b15; top: -12px; left: 34px; transform: rotate(-6deg); }
.tape-b { --tape: #30a46c; bottom: -12px; right: 46px; transform: rotate(4deg); }
figcaption { font-size: 13.5px; color: var(--ink-faint); margin: 18px 6px 0; max-width: 60ch; }

/* ------------------------------------------------------------ ruler */
.ruler {
  display: flex;
  justify-content: space-between;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  position: relative;
}
.ruler::before {
  content: "";
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  top: 0;
  height: 1px;
  background: var(--line-strong);
}
.ruler span { padding-top: 8px; position: relative; }
.ruler span::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 5px;
  background: var(--line-strong);
}

/* ------------------------------------------------------------ sections */
section { max-width: 1440px; margin: 0 auto; padding: clamp(56px, 7vw, 104px) var(--gutter); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 4vw, 64px); }
.section-head h2 { margin-bottom: 0; }

/* how: three steps, copy and shot side by side, alternating */
.step {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  padding: clamp(28px, 3vw, 44px) 0;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step-flip .step-copy { order: 2; }
.step-flip .step-shot { order: 1; }
.step-num {
  font-family: var(--serif);
  font-variation-settings: "opsz" 72, "wght" 500;
  color: var(--amber);
  font-size: 22px;
  line-height: 1;
  margin: 0 0 10px;
}
.step h3 { margin-bottom: 14px; }
.step-copy p:last-child { margin: 0; color: var(--ink-soft); max-width: 52ch; }
.step-shot { margin: 0; }
.step-shot img {
  border-radius: 6px;
  box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
  background: var(--panel);
}
/* crops of a panel are shown near the size they have in the app — a
   rules list blown up to the column width reads as a different product */
.step-shot img.narrow { max-width: 400px; margin: 0 auto; transform: rotate(0.8deg); }
.step-shot img.mid { max-width: 720px; margin: 0 auto; }
.step-shot img.narrow, .step-shot img.mid {
  /* the crop ends mid-list on purpose; let it fade rather than cut */
  mask-image: linear-gradient(#000 78%, transparent 99%);
}
.step-flip { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.tier {
  font-family: var(--mono);
  font-size: 0.72em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: #ebe8de;
  border-radius: 4px;
  padding: 2px 6px;
  vertical-align: 1px;
}

/* a row of the app's chips as a divider — washi tape across the page */
.chips-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 var(--gutter);
  max-width: 1440px;
  margin: 0 auto;
}
.chip {
  --c: #999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 34px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.4px;
  padding: 0 10px;
  color: color-mix(in srgb, var(--c) 60%, #1c1b16);
  background: color-mix(in srgb, var(--c) 16%, #fffdf6);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 34%, transparent);
  transform: rotate(var(--tilt, 0deg));
}
.chips-row .chip:nth-child(odd) { --tilt: -2deg; }
.chips-row .chip:nth-child(3n) { --tilt: 1.5deg; }

/* covers: list + compliance sheet */
.covers-body {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}
.covers-list { list-style: none; margin: 0; padding: 0; }
.covers-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}
.covers-list li:last-child { border-bottom: 1px solid var(--line); }
.covers-list li > div { max-width: 68ch; }
.covers-list b { color: var(--ink); font-weight: 600; }
.dot {
  --c: #999;
  width: 14px;
  height: 14px;
  margin-top: 6px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--c) 22%, #fffdf6);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent);
}
.covers-shot { margin: 0; position: sticky; top: 28px; }

/* video: click-to-load poster, then the iframe */
.video .section-head { margin-bottom: 28px; }
.player {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 1040px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow-pop);
  cursor: pointer;
  outline-offset: 4px;
}
.player .poster { width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0.55; transition: opacity 0.3s; }
.player:hover .poster { opacity: 0.7; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 84px;
  height: 84px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  transition: background 0.2s;
}
.play::after {
  content: "";
  position: absolute;
  left: 54%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 14px 0 14px 24px;
  border-color: transparent transparent transparent var(--accent-ink);
}
.player:hover .play { background: var(--accent-deep); }
/* no video yet (body.no-video, from an empty data-video): the poster stays
   with a "coming soon" label in place of the play button, and the hero's
   "Watch the demo" is not shown */
.video-soon {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  white-space: nowrap;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.5);
}
body.no-video .video-link,
body.no-video .play { display: none; }
body.no-video .video-soon { display: inline-block; }
body.no-video .player { cursor: default; }
body.no-video .player:hover .poster { opacity: 0.55; }

/* demo: one card, the program's green as the paper */
.demo { padding-top: 0; }
.demo-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  background: var(--accent-deep);
  color: var(--accent-ink);
  border-radius: 14px;
  padding: clamp(36px, 5vw, 64px) clamp(28px, 5vw, 80px);
  box-shadow: var(--shadow-pop);
}
.demo-card h2 { color: var(--accent-ink); max-width: 640px; margin-bottom: 18px; }
.demo-card p { color: rgba(242, 239, 230, 0.82); max-width: 56ch; font-size: 18px; }
.demo-card p:last-child { margin-bottom: 0; }
.demo-card .btn:focus-visible { outline-color: var(--paper); }
.demo-card .btn-solid { background: var(--paper); color: var(--accent-deep); }
.demo-card .btn-solid:hover { background: #fff; }
.demo-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 0; }
.demo-soon { color: rgba(242, 239, 230, 0.7); display: none; }
body.no-demo .demo-soon { display: inline; }
body.no-demo .demo-link { display: none; }

/* contact */
.contact { padding-top: clamp(40px, 5vw, 72px); }
.contact-copy { max-width: 720px; }
.contact-copy h2 { margin-bottom: 16px; }
.contact-copy p { color: var(--ink-soft); max-width: 60ch; }
.contact-soon { color: var(--ink-faint); display: none; }
body.no-contact .contact-link { display: none; }
body.no-contact .contact-soon { display: inline; }

/* footer */
.foot {
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px var(--gutter) 48px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--ink-faint);
  font-size: 14px;
}
.foot p { margin: 0; }
.foot .foot-right { margin-left: auto; }

/* ------------------------------------------------------------ motion */
/* the one moment: the hero copy settles line by line and the sheet lands,
   once, on load. Nothing else on the page moves by itself. */
@keyframes settle {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes land {
  from { opacity: 0; transform: rotate(-2.4deg) translateY(18px); }
  to { opacity: 1; transform: rotate(-1.2deg); }
}
.hero-copy > * { animation: settle 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-copy > :nth-child(1) { animation-delay: 0.05s; }
.hero-copy > :nth-child(2) { animation-delay: 0.15s; }
.hero-copy > :nth-child(3) { animation-delay: 0.25s; }
.hero-copy > :nth-child(4) { animation-delay: 0.35s; }
.hero .sheet { animation: land 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s both; }
@media (prefers-reduced-motion: reduce) {
  .hero-copy > *, .hero .sheet { animation: none; }
  .btn, .nav a, .player .poster, .play { transition: none; }
  html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------ narrow */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero-shot { order: 2; }
  .step, .step-flip { grid-template-columns: 1fr; }
  .step-flip .step-copy { order: 1; }
  .step-flip .step-shot { order: 2; }
  .covers-body { grid-template-columns: 1fr; }
  .covers-shot { position: static; }
  .demo-card { grid-template-columns: 1fr; }
  .nav { display: none; }
  .ruler span:nth-child(even) { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .top { gap: 14px; }
  .top .btn { display: none; }
  /* flat on a phone: the landing animation ends where the copy's does */
  .sheet { transform: none; }
  .hero .sheet { animation-name: settle; }
  .tape { display: none; }
}
