/* Home page: sky hero, product tour tabs, spreadsheet story, plain facts. */

/* ---------- Hero ---------- */
.hero { padding: calc(var(--nav-h) + 12px) 16px 0; text-align: center; }
.banner {
  max-width: 980px;
  margin: 0 auto;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 10px;
  border-radius: var(--card-radius);
  background: color-mix(in srgb, var(--night) 72%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-size: 14.5px;
  text-align: left;
}
.banner .tile {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: var(--paper);
  color: var(--fg);
  display: grid;
  place-items: center;
  flex: none;
}
.banner .tile svg { width: 24px; height: 24px; }
.banner .tile .arc { fill: var(--brand); }
.banner .tile .r { fill: currentColor; }
.banner p { flex: 1; min-width: 0; }
.chip-out {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  box-shadow: inset 0 0 0 1px var(--glass-line);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  transition: background var(--dur) ease;
}
.chip-out:hover { background: color-mix(in srgb, #fff 12%, transparent); }

.hero h1 {
  margin: 64px auto 0;
  font-size: clamp(42px, 6vw, 68px);
  font-weight: 540;
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: 15ch;
  text-wrap: balance;
}
.hero-description {
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.32;
  color: color-mix(in srgb, #fff 90%, transparent);
  max-width: 36ch;
  margin: 22px auto 0;
  text-wrap: balance;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.release-note { margin-top: 18px; color: color-mix(in srgb, #fff 88%, transparent); }

/* Frosted example cards. Text on them is ink: the lower sky is light. */
.stage { position: relative; max-width: 1120px; height: 440px; margin: 60px auto 0; color: var(--fg); text-align: left; }
.glass {
  position: absolute;
  border: 1px solid var(--glass-line);
  border-radius: var(--card-radius);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.glass .meta { font-size: 13.5px; color: color-mix(in srgb, var(--fg) 74%, transparent); }
.g-rail { left: 2%; top: 34px; width: 58px; padding: 8px; border-radius: var(--pill); display: grid; gap: 6px; }
.g-rail span { width: 40px; height: 40px; border-radius: var(--pill); display: grid; place-items: center; }
.g-rail span.on { background: color-mix(in srgb, #fff 70%, transparent); color: var(--accent); }
.g-note { left: 9%; top: 0; width: min(430px, 42%); padding: 20px 22px; }
.g-note .who { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--warm);
  font-weight: 700;
  font-size: 14px;
  flex: none;
}
.g-note p { font-size: 17px; line-height: 1.45; }
.g-next { --glass: 46; left: 39%; top: 160px; width: min(400px, 37%); padding: 20px 22px; }
.g-next strong { display: block; font-size: 18px; margin-top: 6px; }
.g-next .row-b { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.g-next .done {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 30%, transparent);
  font-weight: 600;
  font-size: 14px;
}
.g-chip { right: 4%; top: 14px; height: 46px; padding: 0 18px 0 8px; border-radius: var(--pill); display: flex; align-items: center; gap: 10px; font-weight: 600; }
.g-chip .pl { width: 32px; height: 32px; border-radius: 50%; background: var(--night); color: #fff; display: grid; place-items: center; }
.g-chip .pl svg { width: 16px; height: 16px; }
.g-tiles { right: 0; top: 86px; width: 250px; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; }
.g-tiles div { padding: 14px 16px; }
.g-tiles div + div { border-left: 1px solid var(--glass-line); }
.g-tiles b { display: block; font-size: 30px; font-weight: 460; letter-spacing: -0.02em; line-height: 1.1; }
.art-caption { display: block; padding: 4px 16px 28px; color: color-mix(in srgb, var(--fg) 72%, transparent); }

/* ---------- Product tour ---------- */
#product .tabs { margin-top: 44px; position: sticky; top: var(--nav-h); z-index: 5; }
.prow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-left: 1px solid var(--sub);
  border-right: 1px solid var(--sub);
  border-bottom: 1px solid var(--sub);
  background: var(--bg-2);
}
.prow.bare { border: 0; background: transparent; }
.txt { padding: 56px clamp(20px, 3.6vw, 52px); min-width: 0; }
.txt h3 {
  font-size: clamp(30px, 3.3vw, 44px);
  font-weight: 460;
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 30px 0 16px;
  text-wrap: balance;
}
.txt .lead { color: var(--fg-muted); font-size: 18px; max-width: 46ch; }
.txt .link { margin-top: 24px; }
.prow.bare .txt { padding-block: 88px; }

/* Art panel: two colour fields with a product card entering from the left and
   bleeding off the right edge. */
.art {
  position: relative;
  min-height: 560px;
  display: grid;
  grid-template-columns: 36% 64%;
  overflow: hidden;
  border-left: 1px solid var(--sub);
  margin: 0;
}
.art .f1 { background: var(--a); }
.art .f2 { background: var(--b); }
.art-blue { --a: #3d6ddc; --b: #a9bdf0; }
.art-ink { --a: #1c243c; --b: #34416b; }
.art-mist { --a: #a9bdf0; --b: #dfe6fa; }
.art-gold { --a: #e8c98d; --b: #f4e4c3; }
.art-green { --a: #a9c8b4; --b: #d5e5da; }
.art .cap {
  position: absolute;
  left: 9%;
  top: 22px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: var(--pill);
  background: color-mix(in srgb, #fff 88%, transparent);
  color: var(--fg);
}

/* A window onto a real 1280 × 1000 product capture. It enters from the left
   and fills the rest of the tile, running off the right and bottom edges.
   --x/--y set the capture pixel shown at the window's top-left corner and
   --cw the capture width that spans the window, so a smaller --cw zooms in. */
.shot {
  position: absolute;
  left: 9%;
  top: 64px;
  right: 0;
  bottom: 0;
  overflow: hidden;
  background: var(--paper);
  border-radius: var(--card-radius) 0 0 0;
  box-shadow: var(--shadow);
}
.shot img {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  width: calc(1280 / var(--cw) * 100%);
  height: auto;
  transform: translate(calc(var(--x) / 1280 * -100%), calc(var(--y) / 1000 * -100%));
}
.crop-log { --x: 540; --y: 505; --cw: 700; --ch: 245; }
.crop-next { --x: 540; --y: 240; --cw: 700; }
.crop-today { --x: 250; --y: 20; --cw: 1010; }
.crop-opps { --x: 250; --y: 160; --cw: 1010; }
.crop-account { --x: 263; --y: 86; --cw: 986; --ch: 792; }
/* The logged activity is the last thing on the account page, so this crop
   ends with it and floats, centred, on the colour fields. */
.shot.crop-log {
  top: 50%;
  bottom: auto;
  translate: 0 -50%;
  aspect-ratio: var(--cw) / var(--ch);
  border-radius: var(--card-radius) 0 0 var(--card-radius);
}

/* ---------- Start where you are ---------- */
.fix { list-style: none; padding: 0; margin: 28px 0 0; display: grid; border-top: 1px dashed var(--sub); }
.fix li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--sub);
  align-items: start;
}
.fix li .num { margin-top: 2px; }
.fix .was {
  display: block;
  font-size: 14.5px;
  color: var(--fg-muted);
  text-decoration: line-through;
  text-decoration-color: color-mix(in srgb, var(--fg-muted) 60%, transparent);
}
.fix b { display: block; font-size: 17px; margin-top: 2px; }
.fix-note { margin-top: 22px; font-size: 15px; color: var(--fg-muted); }

.art.move { min-height: 760px; }
.sheet-card {
  position: absolute;
  left: 6%;
  top: 64px;
  right: -48px;
  z-index: 1;
  overflow: hidden;
  background: var(--paper);
  border-radius: var(--card-radius) 0 0 var(--card-radius);
  box-shadow: var(--shadow);
}
.sheet { border-collapse: collapse; font-size: 14px; width: 640px; }
.sheet th,
.sheet td { border: 1px solid #d6dbd6; padding: 7px 10px; text-align: left; white-space: nowrap; }
.sheet th { background: #eef2ee; font-weight: 600; color: #3b4a40; }
.sheet td.n { background: #eef2ee; color: #6b776f; text-align: center; width: 34px; }
.sheet .hot { background: #d9efd9; }
.sheet .dup { background: #fde2c4; }
.sheet .q { background: #fbf3b8; }
.sheet tr:not(.hl) td { opacity: 0.55; }
.art.move .shot { top: 300px; left: 22%; right: auto; bottom: auto; width: 78%; aspect-ratio: var(--cw) / var(--ch); }
.art.move .shot img { z-index: 0; }
.turn {
  position: absolute;
  left: calc(22% - 22px);
  top: 278px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--night);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 4px var(--b);
}
.turn svg { transform: rotate(45deg); }
/* Markers placed over the account capture, in crop percentages. */
.pin { position: absolute; z-index: 2; box-shadow: 0 0 0 3px #fff; }
.pin-1 { left: 15.6%; top: calc(9.6% - 11px); }
.pin-2 { left: calc(29.7% - 11px); top: calc(30.9% - 11px); }
.pin-3 { left: calc(29.7% - 11px); top: calc(66% - 11px); }

/* ---------- Plain facts ---------- */
.facts { margin-top: 40px; }
.facts-links { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 32px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .banner { font-size: 13px; }
  .banner .chip-out { display: none; }
  .hero h1 { margin-top: 44px; }
  .stage { height: auto; display: grid; gap: 12px; margin-top: 40px; padding: 0 4px 24px; }
  .glass { position: relative; inset: auto; width: auto; }
  .g-rail,
  .g-tiles { display: none; }
  .g-chip { justify-self: start; order: -1; }
  #product .tabs { position: static; }
  .prow { grid-template-columns: 1fr; }
  .art { min-height: 380px; border-left: 0; border-top: 1px solid var(--sub); }
  .art.move { min-height: 640px; }
  .art.move .shot { left: 10%; width: 90%; top: 290px; }
  .turn { left: calc(10% - 22px); top: 268px; }
}
@media (max-width: 560px) {
  .art { min-height: 320px; }
  .shot { left: 6%; }
  .art.move { min-height: 560px; }
  .pin { display: none; }
}
