/* floorsite landing page. Same tokens as the app (globals.css): navy ground,
   deep-blue text, one green. Josefin Sans for display, Poppins for body. */

:root {
  color-scheme: light;
  --navy: #0b1a2e;
  --navy-2: #122740;
  --navy-line: #284b73;
  --ink: #183d65;
  --mute: #5c6b82;
  --mute-on-dark: #8095ae;
  --paper: #f3f3f5;
  --white: #ffffff;
  --raised: #eaeef3;
  --line: #dce3ec;
  --green: #019247;
  --green-bright: #2aaf65;
  --on-dark: #eaeff5;
  --display: "Josefin Sans", "Avenir Next", "Segoe UI", sans-serif;
  --body: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 4vw, 48px);
  --measure: 62ch;
  --wrap: 1160px;
  --radius: 14px;
  --shadow: 0 24px 48px -32px rgba(11, 26, 46, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 300;
  line-height: 1.1;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-bottom: 0.55em; }
h3 { font-size: 1.35rem; font-weight: 600; margin-bottom: 0.35em; }
p { margin: 0 0 1em; max-width: var(--measure); }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--green-bright); outline-offset: 3px; }
img { max-width: 100%; display: block; }
figure { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; }

/* Header ------------------------------------------------------------------ */

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--navy);
  color: var(--on-dark);
  border-bottom: 1px solid var(--navy-line);
  padding: 0 var(--gutter);
}
.top-row { display: flex; align-items: center; gap: 28px; height: 64px; }
.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  color: var(--green-bright);
  text-decoration: none;
  line-height: 1;
  padding-top: 4px;
}
.anchors { display: flex; gap: 22px; margin: 0 auto; font-size: 0.92rem; }
.anchors a { text-decoration: none; color: var(--on-dark); opacity: 0.85; white-space: nowrap; }
.anchors a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }

.button {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 6px;
  line-height: 1.2;
}
.button:hover { background: var(--green-bright); }
.button.small { padding: 9px 16px; font-size: 0.92rem; margin-left: auto; }
.link { margin-left: 22px; text-underline-offset: 5px; }

/* Hero -------------------------------------------------------------------- */

.hero {
  background: var(--navy);
  color: var(--on-dark);
  padding: clamp(48px, 7vw, 96px) var(--gutter) 0;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: end;
}
.hero-text { padding-bottom: clamp(56px, 8vw, 104px); align-self: center; }
.hero h1 { color: var(--white); max-width: 15ch; }
.hero p { font-size: 1.12rem; color: var(--on-dark); max-width: 46ch; }
.hero .actions { margin-top: 28px; max-width: none; }
.hero .link { color: var(--on-dark); }
.hero-phone { justify-self: center; width: min(100%, 340px); padding-top: 24px; }
.hero-phone .ph { aspect-ratio: 390 / 500; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.7); }
/* Show the filled checklist, not the app header: start the crop below the title. */
.hero-phone .ph img { object-position: 50% 20%; }

/* Bands and intros --------------------------------------------------------- */

.band { padding: clamp(56px, 7vw, 96px) var(--gutter); }
.band.raised { background: var(--raised); }
.intro { max-width: var(--measure); margin-bottom: 36px; }
.intro p:last-child { margin-bottom: 0; }

.grid-8-4 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 28px; align-items: stretch; }
.grid-5-7 { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.grid-5-7 .intro { margin-bottom: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 28px; }
.stack { display: grid; gap: 28px; }

/* Panels: one screen each, with a caption. The screen is the content;
   the panel is the quiet frame around it. ------------------------------------ */

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.panel figcaption {
  font-size: 0.92rem;
  color: var(--mute);
  line-height: 1.45;
}
.panel figcaption b { color: var(--ink); font-weight: 600; }

/* Desk screen: a thin bar, then the screenshot at panel width. */
.dk {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--raised);
}
.dk::before {
  content: "";
  display: block;
  height: 14px;
  background: var(--raised);
  border-bottom: 1px solid var(--line);
}
.dk img { width: 100%; height: auto; aspect-ratio: 1440 / 900; object-fit: cover; }

/* Phone screen: cropped to the top of the screen, where the content is,
   and cut by the panel's bottom edge. Caption sits above the phones. */
.panel.phones { padding-bottom: 0; overflow: hidden; }
.panel.phones figcaption { order: -1; }
.panel.phones .ph { margin: 0 auto; }
.panel.phones.two, .panel.phones.three {
  display: grid;
  gap: 20px;
  align-items: end;
}
.panel.phones.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel.phones.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.panel.phones.two figcaption, .panel.phones.three figcaption { grid-column: 1 / -1; }

.ph {
  width: min(100%, 300px);
  aspect-ratio: 390 / 600;
  border: 8px solid var(--navy);
  border-bottom: 0;
  border-radius: 26px 26px 0 0;
  background: var(--navy-2);
  overflow: hidden;
}
.ph img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ph.peek { margin-bottom: -1px; }
.grid-8-4 .panel.phones .ph { width: min(100%, 280px); }

/* How it works: numbered stages, text beside the screens. ------------------ */

.stages { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(48px, 6vw, 80px); }
.stage {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.stage-text { position: sticky; top: 96px; }
.stage-text .n {
  display: block;
  font-family: var(--display);
  font-weight: 300;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--green);
  margin-bottom: 10px;
}
.stage-text p { margin-bottom: 0; }

/* Facts, roadmap ----------------------------------------------------------- */

.facts { margin: 0; padding: 0; list-style: none; max-width: var(--measure); }
.facts li { padding: 11px 0; border-top: 1px solid var(--line); }
.facts li:last-child { border-bottom: 1px solid var(--line); }
.band.raised .facts li { border-color: #d3dbe6; }

.roadmap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 40px;
}
.roadmap .group h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.roadmap ul { margin: 0; padding: 0; list-style: none; }
.roadmap li { padding: 7px 0; border-top: 1px solid var(--line); font-size: 0.97rem; }
.roadmap li:last-child { border-bottom: 1px solid var(--line); }

/* Footer -------------------------------------------------------------------- */

.foot {
  background: var(--navy);
  color: var(--on-dark);
  padding: clamp(48px, 6vw, 72px) var(--gutter) 28px;
  border-top: 1px solid var(--navy-line);
}
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--navy-line);
}
.foot-brand p { color: var(--mute-on-dark); max-width: 36ch; margin: 14px 0 0; font-size: 0.95rem; }
.foot-col { display: grid; gap: 9px; align-content: start; font-size: 0.95rem; }
.foot-col h4 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 6px;
  color: var(--white);
}
.foot-col a { color: var(--on-dark); text-decoration: none; }
.foot-col a:hover { text-decoration: underline; text-underline-offset: 5px; color: var(--green-bright); }
.foot-col span { color: var(--mute-on-dark); }
.foot-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  font-size: 0.88rem;
  color: var(--mute-on-dark);
}

/* Narrow screens ---------------------------------------------------------- */

@media (max-width: 960px) {
  .grid-8-4, .grid-5-7, .grid-2, .stage, .foot-grid { grid-template-columns: 1fr; }
  .grid-5-7 .intro { margin-bottom: 8px; }
  .stage-text { position: static; }
  .roadmap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-text { padding-bottom: 8px; }
  .hero-phone { justify-self: start; width: min(100%, 300px); }
}
@media (max-width: 720px) {
  .anchors { display: none; }
  .top-row { gap: 16px; }
  .panel { padding: 16px 16px 14px; }
  .panel.phones.two, .panel.phones.three { grid-template-columns: 1fr; }
  .panel.phones .ph { width: min(100%, 260px); }
  .roadmap { grid-template-columns: 1fr; }
  .foot-bar { flex-direction: column; }
}
