/* ==========================================================================
   craft.css: layouts that replace the repeated box grids.
   Loaded after styles.css on every page. Uses the same tokens, so it follows
   the dark bands and the light (.section--light) bands on its own.
   No glows. Depth comes only from --panel-shadow, as elsewhere.
   ========================================================================== */

/* ---------- Split: copy on one side, one object on the other ----------
   Left-aligned on purpose, so the page stops reading as a column of
   centered blocks. .split--flip puts the object first on wide screens. */
.split {
  display: grid;
  gap: clamp(48px, 7vw, 72px);
  align-items: center;
}
.split-copy h2 { font-size: clamp(2rem, 6vw, 3.5rem); }
.split-copy .lede { margin-top: 18px; }
.split-object { display: flex; justify-content: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1.08fr 1fr; gap: 64px; }
  .split--flip { grid-template-columns: 1fr 1.08fr; }
  .split--flip .split-object { order: -1; }
  .split-object { justify-content: flex-end; }
  .split--flip .split-object { justify-content: flex-start; }
}

/* Run-in points: the bold opening sentence carries the point, the rest of
   the paragraph supports it. Replaces three boxes with one readable column. */
.runin {
  margin-top: 32px;
  max-width: 31em;
  display: grid;
  gap: 18px;
}
.runin p {
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-wrap: pretty;
}
.runin strong { color: var(--text); font-weight: 600; }

/* ---------- Object: lock screen content (inside .lock-phone) ---------- */
.lock-date { font-size: 0.8125rem; color: rgba(255,255,255,0.62); font-weight: 500; }
.lock-time {
  font-size: 4rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-top: 2px;
}
.lock-stack { display: grid; gap: 7px; margin-top: 30px; text-align: left; }
.note {
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.09);
  font-size: 0.75rem;
  line-height: 1.35;
}
.note b { display: flex; justify-content: space-between; font-weight: 600; font-size: 0.75rem; }
.note b i { font-style: normal; font-weight: 400; color: rgba(255,255,255,0.5); }
.note span { color: rgba(255,255,255,0.68); }
.note:nth-child(2) { opacity: 0.86; }
.note:nth-child(3) { opacity: 0.7; }
.note:nth-child(4) { opacity: 0.54; }

/* ---------- Object: search result page ---------- */
.serp {
  width: min(440px, 100%);
  padding: 18px 20px 22px;
  border-radius: var(--radius);
  background: #ffffff;
  color: #202124;
  box-shadow: var(--panel-shadow);
  text-align: left;
  font-size: 0.8125rem;
}
.serp-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid #dfe1e5;
  color: #3c4043;
}
.serp-bar svg { width: 14px; height: 14px; flex: none; stroke: #9aa0a6; }
.serp-hit { padding: 16px 0 0; }
.serp-hit + .serp-hit { margin-top: 14px; border-top: 1px solid #eceef1; }
.serp-url { color: #4d5156; font-size: 0.75rem; }
.serp-title { color: #1a0dab; font-size: 1rem; line-height: 1.3; margin-top: 2px; }
.serp-desc { color: #4d5156; margin-top: 4px; line-height: 1.45; }
.serp-stars { color: #e7711b; letter-spacing: 1px; }
.serp-hit--stale .serp-title { color: #681da8; }
.serp-hit--stale { opacity: 0.78; }

/* ---------- Object: the same email, sent again and again ---------- */
.inbox {
  width: min(440px, 100%);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--panel-shadow);
  text-align: left;
  overflow: hidden;
}
.inbox-head {
  display: flex;
  justify-content: space-between;
  padding: 14px 18px;
  font-size: 0.8125rem;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.inbox-head span { color: var(--text-faint); font-weight: 400; }
.inbox-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  padding: 11px 18px;
  font-size: 0.8125rem;
  border-bottom: 1px solid var(--line);
}
.inbox-row:last-child { border-bottom: 0; }
.inbox-row b { font-weight: 600; }
.inbox-row i { font-style: normal; color: var(--text-faint); font-size: 0.75rem; }
.inbox-row span { grid-column: 1 / -1; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-row:nth-child(n+5) { opacity: 0.7; }
.inbox-row:nth-child(n+6) { opacity: 0.45; }
.inbox-row:nth-child(n+7) { opacity: 0.25; }

/* ---------- Object: a half-finished lead spreadsheet ---------- */
.sheet {
  width: min(460px, 100%);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: #202124;
  box-shadow: var(--panel-shadow);
  overflow: hidden;
  font-size: 0.75rem;
  text-align: left;
}
.sheet-bar { padding: 8px 12px; background: #f1f3f4; color: #5f6368; border-bottom: 1px solid #dadce0; }
.sheet table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.sheet th, .sheet td {
  border: 1px solid #e3e5e8;
  padding: 6px 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sheet th { background: #f8f9fa; color: #5f6368; font-weight: 500; text-align: left; }
.sheet th:first-child, .sheet td:first-child { width: 28px; text-align: center; color: #80868b; background: #f8f9fa; }
.sheet .s-x { text-decoration: line-through; color: #9aa0a6; }
.sheet .s-q { color: #b06000; }
.sheet .s-sel { outline: 2px solid #1a73e8; outline-offset: -2px; }
.sheet .s-hl { background: #fef7e0; }

/* ---------- Annotated call: the transcript with notes in the margins ----------
   Three columns on wide screens: notes, call, notes. Each line of the call is
   one grid row, and a note sits in the same row as the line it explains.
   On narrow screens the notes drop under their line. */
.annotated {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 980px;
  margin: 56px auto 0;
  text-align: left;
}
.annotated .line { display: flex; padding: 5px 0; }
.annotated .line--caller { justify-content: flex-end; }
.annotated .line--tool { justify-content: center; padding: 10px 0; }
.annotated .say {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 0.9375rem;
  line-height: 1.45;
  background: var(--panel);
  box-shadow: var(--panel-shadow);
}
.annotated .line--caller .say { background: var(--text); color: var(--bg); border-bottom-right-radius: 6px; }
.annotated .line--agent .say { border-bottom-left-radius: 6px; }
.annotated .line--tool .say {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--ok);
  background: color-mix(in srgb, var(--ok) 12%, var(--panel));
  box-shadow: none;
}
.annotated .aside {
  position: relative;
  margin: 2px 0 14px;
  padding-left: 14px;
  border-left: 1px solid var(--line-strong);
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.45;
}
.annotated .aside b { display: block; color: var(--text); font-weight: 600; }
.annotated-foot {
  max-width: 34em;
  margin: 40px auto 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}
@media (min-width: 900px) {
  .annotated {
    grid-template-columns: minmax(0, 1fr) minmax(0, 420px) minmax(0, 1fr);
    column-gap: 40px;
  }
  .annotated .line { grid-column: 2; }
  .annotated .aside { grid-row: var(--r); }
  .annotated .aside {
    grid-column: 1;
    align-self: center;
    margin: 0;
    padding: 0 0 0 0;
    border-left: 0;
    text-align: right;
    max-width: 15em;
    justify-self: end;
  }
  .annotated .aside--r { grid-column: 3; text-align: left; justify-self: start; }
  /* the hairline that ties a note to its line */
  .annotated .aside::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -32px;
    width: 22px;
    border-top: 1px solid var(--line-strong);
  }
  .annotated .aside--r::after { right: auto; left: -32px; }
}

/* ---------- Ledger: heading in the left column, points down the right ----------
   For "what you get" lists. Hairlines, no panels. */
.ledger { display: grid; gap: 40px; text-align: left; }
.ledger-head h2 { font-size: clamp(2rem, 6vw, 3.5rem); }
.ledger-head .lede { margin-top: 18px; font-size: 1.0625rem; }
.ledger-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.ledger-list li {
  display: grid;
  gap: 4px;
  padding: 20px 0 22px;
  border-bottom: 1px solid var(--line);
}
.ledger-list h3 { font-size: 1.125rem; }
.ledger-list p { color: var(--text-muted); font-size: 0.9875rem; line-height: 1.6; }
@media (min-width: 900px) {
  .ledger { grid-template-columns: 0.85fr 1.15fr; gap: 72px; align-items: start; }
  .ledger-head { position: sticky; top: calc(var(--header-h) + 40px); }
  .ledger-list li { grid-template-columns: 13em 1fr; gap: 24px; align-items: baseline; }
}

/* ---------- The week: the process told as one paragraph ----------
   Replaces numbered steps. Day words in full color, the rest toned down. */
.week { position: relative; text-align: left; }
.week h2 { font-size: clamp(2rem, 6vw, 3.5rem); }
.week-text {
  position: relative;
  z-index: 1;
  max-width: 21em;
  margin-top: 28px;
  color: var(--text-tone);
  font-size: clamp(1.5rem, 3.6vw, 2.375rem);
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: pretty;
}
.week-text b { color: var(--text); font-weight: 700; }
.week-note {
  position: relative;
  z-index: 1;
  margin-top: 24px;
  max-width: 32em;
  color: var(--text-muted);
}

/* One oversized figure per page, low contrast, cut off by the edge.
   Fills the space without adding anything to read. */
.ghost {
  position: absolute;
  right: -0.06em;
  bottom: -0.18em;
  z-index: 0;
  font-size: clamp(7rem, 22vw, 17rem);
  line-height: 0.8;
  font-weight: 800;
  letter-spacing: -0.06em;
  color: color-mix(in srgb, var(--text) 5%, transparent);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
.has-ghost { position: relative; overflow: hidden; }

/* ---------- Home: where to start ---------- */
.route { display: grid; gap: 32px; text-align: left; }
.route h2 { font-size: clamp(2rem, 6vw, 3.5rem); }
.route-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.route-list a {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-muted);
  font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
}
.route-list a strong { color: var(--text); font-weight: 600; white-space: nowrap; }
.route-list a .arrow { margin-left: 6px; }
.route-list a:hover strong { color: var(--accent); }
.route-list a:hover .arrow { transform: translateX(3px); }
@media (min-width: 900px) {
  .route { grid-template-columns: 0.85fr 1.15fr; gap: 72px; align-items: start; }
}

/* ---------- Home: showcases that alternate sides ----------
   The phone and the lead list sit beside their copy instead of under it. */
.showcase-split { display: grid; gap: 8px; text-align: center; }
.showcase-split .showcase-line { margin-left: auto; margin-right: auto; }
.showcase-split .actions { justify-content: center; }
@media (min-width: 960px) {
  .showcase-split { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; text-align: left; }
  .showcase-split .showcase-line { margin-left: 0; }
  .showcase-split .actions { justify-content: flex-start; }
  .showcase-split .showcase-visual { margin-top: 0; }
  .showcase-split--flip > .showcase-visual { order: -1; }
}

/* ---------- Lock screen inside the site's iPhone ----------
   Same .iphone body as the call screen, tilted the other way so the two
   phones on the receptionist page don't read as copies. */
.lock-phone {
  width: 258px;
  height: 560px;
  perspective: 1400px;
  transform: scale(var(--lock-s, 1));
  transform-origin: center;
}
.lock-phone .iphone { transform: rotateX(4deg) rotateY(12deg) rotateZ(-2deg); }
.lock-phone .iphone-screen {
  padding: 58px 12px 20px;
  background: linear-gradient(180deg, #26262b 0%, #141416 55%, #0c0c0d 100%);
  color: #f2f2f3;
}
@media (max-width: 899px) {
  .lock-phone { --lock-s: 0.86; margin: -40px 0; }
}

/* ---------- Deck: example sites as stacked browser windows ---------- */
.deck {
  position: relative;
  width: min(560px, 100%);
  aspect-ratio: 16 / 10.4;
  margin: 0 auto;
}
.deck-card {
  position: absolute;
  inset: 0 auto auto 0;
  width: 88%;
  border-radius: var(--radius);
  overflow: hidden;
  background: #1c1c20;
  box-shadow: var(--panel-shadow);
  transition: transform 900ms cubic-bezier(0.65, 0, 0.35, 1), opacity 900ms cubic-bezier(0.65, 0, 0.35, 1), filter 900ms cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}
.deck-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.deck-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  background: #232328;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.deck-dots { display: flex; gap: 6px; flex: none; }
.deck-dots i { width: 9px; height: 9px; border-radius: 50%; background: #3a3a40; }
.deck-url {
  flex: 1;
  padding: 3px 10px;
  border-radius: 6px;
  background: #18181b;
  color: #9a9aa1;
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.deck-card[data-pos="0"] { z-index: 4; transform: translate(12%, 14%); }
.deck-card[data-pos="1"] { z-index: 3; transform: translate(6%, 7%) scale(0.95); filter: brightness(0.5); }
.deck-card[data-pos="2"] { z-index: 2; transform: translate(0, 0) scale(0.9); filter: brightness(0.3); }
.deck-card[data-pos="3"] { z-index: 1; transform: translate(0, 0) scale(0.85); filter: brightness(0.2); opacity: 0; }
.deck-card[data-pos="out"] { z-index: 5; transform: translate(46%, 22%) rotate(4deg); opacity: 0; }
.deck-card[data-pos="0"]:hover { transform: translate(12%, 12.5%); box-shadow: var(--panel-shadow-lift); }
.hero-visual .deck { width: min(600px, 100cqw); }

/* ---------- Object: a Google Maps business profile ----------
   The hero version is complete and alive (the review count ticks up and a
   new review slides in on a loop); .gbp--empty is the half-finished one. */
.gbp {
  width: min(400px, 100%);
  border-radius: var(--radius);
  overflow: hidden;
  background: #ffffff;
  color: #202124;
  box-shadow: var(--panel-shadow);
  text-align: left;
  font-size: 0.8125rem;
}
.hero-visual .gbp { width: min(420px, 100cqw); }
.gbp-map {
  position: relative;
  height: 128px;
  background: #e8eef0;
  overflow: hidden;
}
.gbp-road { position: absolute; background: #ffffff; }
.gbp-road--a { left: -10%; right: -10%; top: 58%; height: 10px; transform: rotate(-8deg); }
.gbp-road--b { top: -10%; bottom: -10%; left: 34%; width: 8px; transform: rotate(14deg); }
.gbp-road--c { top: -10%; bottom: -10%; left: 76%; width: 6px; background: #f6d88a; transform: rotate(-4deg); }
.gbp-pin {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 44%;
  width: 22px;
  height: 22px;
  margin: -22px 0 0 -11px;
  border-radius: 50% 50% 50% 0;
  background: #ea4335;
  transform: rotate(-45deg);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}
.gbp-pin::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: #a50e0e;
}
.gbp-map--flat { height: 96px; filter: grayscale(1); opacity: 0.8; }
.gbp-body { padding: 16px 18px 18px; }
.gbp-name { font-size: 1.25rem; line-height: 1.25; color: #202124; }
.gbp-rating { margin-top: 4px; color: #70757a; display: flex; align-items: center; gap: 6px; }
.gbp-rating b { color: #202124; font-weight: 500; }
.gbp-stars { color: #fbbc04; letter-spacing: 1px; }
.gbp-stars--low { background: linear-gradient(90deg, #fbbc04 74%, #dadce0 74%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gbp-meta { margin-top: 2px; color: #70757a; }
.gbp-open { color: #188038; }
.gbp-missing { color: #b3261e; }
.gbp-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.gbp-actions span {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #dadce0;
  color: #1a73e8;
  font-weight: 500;
}
.gbp-actions span:first-child { background: #1a73e8; border-color: #1a73e8; color: #ffffff; }
.gbp-claim { margin-top: 16px; padding-top: 14px; border-top: 1px solid #eceef1; color: #5f6368; }
.gbp-claim u { color: #1a73e8; text-decoration: none; font-weight: 500; }
.gbp--empty .gbp-actions span:first-child { background: none; color: #1a73e8; border-color: #dadce0; }

.gbp-review {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: #f1f3f4;
  color: #3c4043;
  line-height: 1.45;
}
.gbp-review-head { display: flex; justify-content: space-between; margin-bottom: 4px; }
.gbp-review-head b { font-weight: 600; color: #202124; }
/* Review count: (86) then (87) as the review arrives */
.gbp-count { display: inline-grid; }
.gbp-count span { grid-area: 1 / 1; }
@media (prefers-reduced-motion: no-preference) {
  .gbp-review { animation: gbp-review 7s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
  .gbp-count span:first-child { animation: gbp-old 7s steps(1) infinite; }
  .gbp-count span:last-child { animation: gbp-new 7s steps(1) infinite; }
}
@keyframes gbp-review {
  0%, 12% { opacity: 0; transform: translateY(10px); }
  22%, 86% { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; transform: translateY(-6px); }
}
@keyframes gbp-old { 0% { opacity: 1; } 20% { opacity: 0; } 94% { opacity: 1; } }
@keyframes gbp-new { 0% { opacity: 0; } 20% { opacity: 1; } 94% { opacity: 0; } }

/* ---------- Object: a short video posting everywhere (Marketing) ----------
   A vertical clip plays (the bar fills), then the five platforms tick off
   one by one and clear again while the next clip plays. */
.reel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  width: min(440px, 100%);
  text-align: left;
}
.reel-video {
  position: relative;
  width: clamp(132px, 34vw, 168px);
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(165deg, #2c2c32, #141416 70%);
  box-shadow: var(--panel-shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.reel-play {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 0;
  height: 0;
  margin: -11px 0 0 -6px;
  border-left: 17px solid rgba(255, 255, 255, 0.85);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}
.reel-caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 24px;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
}
.reel-bar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 13px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
}
.reel-bar span {
  display: block;
  height: 100%;
  background: #ffffff;
  transform: scaleX(0.6);
  transform-origin: left;
}
.reel-posts { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.reel-posts li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
}
.reel-mark {
  position: relative;
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--text-faint);
}
.reel-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--ok, #2fa36b);
}
.reel-state { margin-left: auto; color: var(--text-muted); font-size: 0.8125rem; font-weight: 400; }
@media (prefers-reduced-motion: no-preference) {
  .reel-bar span { animation: reel-play 8s linear infinite; }
  .reel-mark::after,
  .reel-state { animation: reel-post 8s ease infinite both; }
  .reel-posts li:nth-child(2) > * { animation-delay: 0.45s; }
  .reel-posts li:nth-child(3) > * { animation-delay: 0.9s; }
  .reel-posts li:nth-child(4) > * { animation-delay: 1.35s; }
  .reel-posts li:nth-child(5) > * { animation-delay: 1.8s; }
  .reel-posts li:nth-child(2) .reel-mark::after { animation-delay: 0.45s; }
  .reel-posts li:nth-child(3) .reel-mark::after { animation-delay: 0.9s; }
  .reel-posts li:nth-child(4) .reel-mark::after { animation-delay: 1.35s; }
  .reel-posts li:nth-child(5) .reel-mark::after { animation-delay: 1.8s; }
}
@keyframes reel-play {
  0% { transform: scaleX(0); }
  45%, 100% { transform: scaleX(1); }
}
@keyframes reel-post {
  0%, 46% { opacity: 0; transform: scale(0.6); }
  52%, 90% { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; transform: none; }
}

/* ---------- Object: a social account that went quiet (Marketing) ---------- */
.feed {
  width: min(360px, 100%);
  padding: 20px;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--panel-shadow);
  text-align: left;
}
.feed-head { display: flex; align-items: center; gap: 14px; }
.feed-avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--line-strong); }
.feed-name { color: var(--text); font-weight: 600; }
.feed-stats { color: var(--text-muted); font-size: 0.875rem; }
.feed-stats b { color: var(--text); font-weight: 600; }
.feed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 18px; }
.feed-grid span { aspect-ratio: 1; border-radius: 4px; background: rgba(255, 255, 255, 0.1); }
.feed-grid .feed-empty { background: none; border: 1px dashed var(--line-strong); }
.feed-note { margin-top: 16px; color: var(--text-muted); font-size: 0.875rem; }
.feed-note span { color: #ff9b9b; }
