/* TenantSnap website. Loads after js/scrollcraft.css (reset, type ramp, scroll devices). */

@font-face { font-family: "Plus Jakarta Sans"; src: url(fonts/plus-jakarta-sans-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url(fonts/plus-jakarta-sans-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url(fonts/plus-jakarta-sans-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url(fonts/plus-jakarta-sans-800.woff2) format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --sc-canvas: #F6F9F9;
  --sc-surface: #FFFFFF;
  --sc-ink: #14262B;
  --sc-ink-soft: #4C6268;
  --sc-accent: #0B7C7C;
  --sc-accent-ink: #FFFFFF;
  --aqua: #2EC4C0;
  --mint: #DDF4F2;
  --teal-deep: #0A6E6E;
  --sc-font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --sc-font-text: "Plus Jakarta Sans", system-ui, sans-serif;
  --sc-font-mono: ui-monospace, "SF Mono", Menlo, monospace;
  --sc-shadow-color: 190 45% 18%;
  --r-img: 22px;
  --header-h: 4.25rem;
}

h1, h2, h3 { font-weight: 800; letter-spacing: var(--sc-track-tight); line-height: var(--sc-leading-tight); text-wrap: balance; margin: 0; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--sc-accent); }
a:hover { color: var(--teal-deep); }

/* ---------------------------------------------------------------- header -- */
.site-header {
  position: fixed; z-index: var(--sc-z-chrome); top: 0.75rem; left: var(--sc-gutter); right: var(--sc-gutter);
  height: 3.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0 0.6rem 0 0.75rem; border-radius: var(--sc-r-pill);
  background: color-mix(in oklab, #fff 78%, transparent);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: var(--sc-e1);
}
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 800; color: var(--sc-ink); text-decoration: none; letter-spacing: var(--sc-track-snug); }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.site-nav { display: flex; gap: 0.25rem; }
.site-nav a { color: var(--sc-ink); text-decoration: none; font-weight: 600; font-size: var(--sc-t-sm); padding: 0.6rem 0.9rem; border-radius: var(--sc-r-pill); min-height: 44px; display: inline-flex; align-items: center; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--mint); color: var(--teal-deep); }

/* --------------------------------------------------------- store badges -- */
.badges { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.store-badge {
  display: inline-flex; align-items: center; gap: 0.6rem; min-height: 52px; padding: 0.5rem 1.1rem 0.5rem 0.9rem;
  border-radius: 14px; background: var(--sc-ink); color: #fff; font-weight: 700; line-height: 1.1;
  box-shadow: var(--sc-e2);
}
.store-badge svg { width: 24px; height: 24px; fill: currentColor; flex: none; }
.store-badge small { display: block; font-size: 0.7rem; font-weight: 600; opacity: 0.8; letter-spacing: 0; }
.badges--light .store-badge { background: #fff; color: var(--sc-ink); }

/* ------------------------------------------------- story: hero + steps -- */
.story-stage { height: 100svh; overflow: hidden; background: var(--sc-canvas); }
.story-stage > * { position: absolute; }
.silk { inset: 0; }
/* White wash over the photo: strongest under the text (sides and bottom), lightest behind the phone */
.silk::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgb(255 255 255 / 0.82), rgb(255 255 255 / 0.35) 40%, rgb(255 255 255 / 0.35) 60%, rgb(255 255 255 / 0.78)),
    linear-gradient(0deg, rgb(255 255 255 / 0.55), transparent 55%);
}
.silk img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08) translateY(calc(var(--lift, 0) * -2.5%)); }
.band {
  top: 0; bottom: 0; left: var(--px, 50%); width: clamp(110px, 19vw, 320px); translate: -50% 0;
  background: var(--sc-accent);
}
.wordmark {
  left: 0; right: 0; top: calc(var(--header-h) + 3svh); text-align: center; margin: 0;
  font-weight: 800; font-size: clamp(3.6rem, 16.5vw, 17rem); line-height: 0.8; letter-spacing: -0.055em;
  color: var(--sc-ink);
  opacity: calc(1 - var(--lift, 0));
  transform: translateY(calc(var(--lift, 0) * -5svh)) scale(calc(1 - var(--lift, 0) * 0.05));
}
.arc {
  left: var(--px, 50%); top: 52%; width: min(64svh, 78vw); height: min(64svh, 78vw); translate: -50% -50%;
  opacity: calc(0.9 - var(--lift, 0));
}
.arc circle { fill: none; stroke: var(--aqua); stroke-width: 1.4; stroke-dasharray: 380 223; stroke-dashoffset: 290; stroke-linecap: round; }
.phone3d { inset: 0; width: 100%; height: 100%; }
.phone-flat { display: none; }
.no-webgl .phone3d { display: none; }
.no-webgl .phone-flat { display: block; left: 50%; top: 50%; translate: -50% -50%; height: 62svh; width: auto; border-radius: 28px; box-shadow: var(--sc-e3); }

.hero-copy, .hero-side, .steps, .ledger { z-index: var(--sc-z-copy); }
.hero-copy { left: var(--sc-gutter); bottom: clamp(2rem, 7svh, 5rem); width: min(31rem, 32vw); }
.hero-copy h1 { font-size: clamp(2rem, 1.2rem + 2.3vw, 3.5rem); }
.lede { margin-top: var(--sc-4); color: var(--sc-ink-soft); max-width: 36ch; }
.hero-side { right: var(--sc-gutter); bottom: clamp(2rem, 7svh, 5rem); width: max-content; display: grid; gap: var(--sc-5); justify-items: end; }
.hero-side .badges { justify-content: flex-end; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; justify-content: flex-end; gap: 1.1rem; white-space: nowrap; }
.chips li { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; font-size: var(--sc-t-sm); color: var(--sc-ink); }
.chips svg { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--mint); fill: none; stroke: var(--teal-deep); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.steps { left: var(--sc-gutter); top: 50%; width: min(29rem, 34vw); margin: 0; padding: 0; list-style: none; }
.steps li { position: absolute; left: 0; right: 0; top: 0; translate: 0 -50%; }
.step-n {
  display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  border: 1.5px solid var(--sc-accent); color: var(--teal-deep); font-weight: 800; margin-bottom: var(--sc-5);
  background: color-mix(in oklab, #fff 70%, transparent);
}
.steps h2 { font-size: var(--sc-t-2xl); }
.steps p { margin-top: var(--sc-4); color: var(--sc-ink-soft); font-size: var(--sc-t-lg); line-height: 1.5; }

/* The snap ledger: one dated tag per step, sample data */
.ledger { right: var(--sc-gutter); top: 50%; translate: 0 -50%; width: min(17.5rem, 22vw); }
.ledger-title { font-size: var(--sc-t-xs); font-weight: 700; color: var(--sc-ink-soft); margin-bottom: var(--sc-3); opacity: 0; transition: opacity 300ms var(--sc-ease-out); }
.ledger:has(li.on) .ledger-title { opacity: 1; }
.ledger ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.ledger li {
  display: grid; gap: 0.1rem; padding: 0.85rem 1rem; border-radius: 16px; background: #fff;
  border-left: 3px solid var(--sc-accent); box-shadow: var(--sc-e2), var(--sc-edge);
  font-size: var(--sc-t-xs); color: var(--sc-ink-soft); line-height: 1.45;
  opacity: 0; transform: translateY(-14px) scale(0.97);
  transition: opacity 360ms var(--sc-ease-out), transform 520ms var(--sc-ease-out);
}
.ledger li.on { opacity: 1; transform: none; }
.ledger strong { color: var(--sc-ink); font-size: var(--sc-t-sm); }
.ledger code { font-family: var(--sc-font-mono); color: var(--teal-deep); font-size: 0.72rem; margin-top: 0.2rem; }

/* ------------------------------------------------------------- rooms -- */
.rooms-stage { height: 100svh; display: flex; align-items: center; overflow: hidden; background: var(--sc-canvas); }
.rail { gap: clamp(1rem, 2vw, 1.75rem); padding-inline: var(--sc-gutter); align-items: center; }
.rail > * { flex: none; }
.rail-intro { width: min(25rem, 78vw); padding-right: var(--sc-6); }
.rail-intro h2 { font-size: var(--sc-t-3xl); }
.rail-intro p { margin-top: var(--sc-5); color: var(--sc-ink-soft); font-size: var(--sc-t-lg); line-height: 1.5; }
.room { margin: 0; width: clamp(17rem, 27vw, 25rem); align-self: flex-start; }   /* tops line up even when a caption is shorter */
.room img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-img); box-shadow: var(--sc-e2); }
.room figcaption { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 0.25rem 0.75rem; padding: var(--sc-4) 0.25rem 0; }
.room strong { font-size: var(--sc-t-lg); font-weight: 800; }
.room span { font-size: var(--sc-t-xs); font-weight: 700; color: var(--teal-deep); background: var(--mint); padding: 0.2rem 0.6rem; border-radius: var(--sc-r-pill); }
.room small { grid-column: 1 / -1; color: var(--sc-ink-soft); font-size: var(--sc-t-sm); line-height: 1.45; }
.rail-outro { width: min(20rem, 72vw); padding-left: var(--sc-5); border-left: 2px solid var(--sc-accent); }
.rail-outro p { color: var(--sc-ink-soft); }

/* ------------------------------------------------------------ report -- */
.report { background: #fff; }
.report-grid { display: grid; gap: var(--sc-8); align-items: center; }
.report-text h2 { font-size: var(--sc-t-3xl); }
.report-text .intro { margin-top: var(--sc-4); color: var(--sc-ink-soft); font-size: var(--sc-t-lg); }
.facts { margin: var(--sc-7) 0 0; }
.facts div { padding: var(--sc-4) 0; border-top: 1px solid var(--sc-hairline); display: grid; gap: 0.2rem; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; color: var(--sc-ink-soft); }
.pages { position: relative; margin: 0; padding-bottom: 14%; }
.pages img { width: 100%; height: auto; border-radius: 10px; background: #fff; box-shadow: var(--sc-e3); }
.page-cover { transform: rotate(-2.5deg); }
.page-issues { position: absolute; right: -2%; bottom: 0; width: 78% !important; transform: rotate(2deg); }
.pages figcaption { position: absolute; left: 0; bottom: -2.25rem; font-size: var(--sc-t-sm); color: var(--sc-ink-soft); }
.repairs { margin: var(--sc-7) auto 0; max-width: 17rem; text-align: center; }
.repairs img { width: 100%; height: auto; border-radius: 28px; box-shadow: var(--sc-e3); }
.repairs figcaption { margin-top: var(--sc-4); font-size: var(--sc-t-sm); color: var(--sc-ink-soft); }
@media (min-width: 900px) { .report-grid { grid-template-columns: 1.05fr 1fr; } .repairs { grid-column: 1 / -1; } }

/* ----------------------------------------------------------- tenancy -- */
.tenancy { padding-block: var(--sc-section) 0; }
.tenancy h2 { font-size: var(--sc-t-3xl); max-width: 16ch; }
.tiles { display: grid; gap: 6px; margin-top: var(--sc-7); }
.tile { margin: 0; position: relative; }
.tile img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.tile figcaption { padding: var(--sc-4) var(--sc-gutter) var(--sc-6); color: var(--sc-ink-soft); font-size: var(--sc-t-lg); line-height: 1.5; }
.tile strong { display: block; color: var(--sc-ink); font-size: var(--sc-t-lg); font-weight: 800; margin-bottom: 0.2rem; }
@media (min-width: 820px) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .tile img { aspect-ratio: 4 / 5; }
  .tile figcaption { padding: var(--sc-5) var(--sc-5) 0; max-width: 30ch; }
}

/* ----------------------------------------------------------- private -- */
.private-inner { display: grid; gap: var(--sc-5); }
.private h2 { font-size: var(--sc-t-3xl); max-width: 13ch; }
.private p { color: var(--sc-ink-soft); max-width: 58ch; font-size: var(--sc-t-lg); line-height: 1.55; }
.private a { font-weight: 700; }
@media (min-width: 900px) {
  .private-inner { grid-template-columns: 1fr 1.2fr; column-gap: var(--sc-8); align-items: start; }
  .private-inner h2 { grid-row: span 2; }
}

/* ------------------------------------------------------------- close -- */
.close-stage { height: 100svh; display: grid; align-items: center; overflow: hidden; background: var(--sc-canvas); }
.close-band {
  position: absolute; inset: 0; background: var(--sc-accent);
  transform: scaleX(clamp(0.18, calc(0.18 + var(--sc-p, 0) * 1.9), 1)); transform-origin: 50% 50%;   /* fully open by p = 0.43, before the words arrive */
}
.close-copy { position: relative; z-index: var(--sc-z-copy); padding-inline: var(--sc-gutter); max-width: calc(36rem + 2 * var(--sc-gutter)); color: #fff; }
.close-copy h2 { font-size: var(--sc-t-4xl); letter-spacing: -0.045em; }
.close-copy p { margin: var(--sc-5) 0 var(--sc-6); font-size: var(--sc-t-lg); line-height: 1.5; color: color-mix(in oklab, #fff 90%, transparent); }

/* ------------------------------------------------------------ footer -- */
.site-footer { background: var(--sc-ink); color: #C9D8DA; padding-block: var(--sc-7); font-size: var(--sc-t-sm); }
.footer-inner { display: grid; gap: var(--sc-4); }
.site-footer .brand { color: #fff; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.site-footer a { color: #fff; }
.site-footer nav a { min-height: 44px; display: inline-flex; align-items: center; }
@media (min-width: 900px) { .footer-inner { grid-template-columns: auto 1fr auto; align-items: center; gap: var(--sc-7); } }

/* ------------------------------------------------- support / privacy -- */
.doc { max-width: 46rem; margin: 0 auto; padding: calc(var(--header-h) + var(--sc-8)) var(--sc-gutter) var(--sc-9); }
.doc h1 { font-size: var(--sc-t-3xl); }
.doc h2 { font-size: var(--sc-t-xl); margin-top: var(--sc-8); }
.doc h3 { font-size: var(--sc-t-lg); margin-top: var(--sc-6); }
.doc p, .doc li { color: var(--sc-ink-soft); }
.doc p { margin-top: var(--sc-4); }
.doc details { border-top: 1px solid var(--sc-hairline); padding: var(--sc-4) 0; }
.doc details:last-of-type { border-bottom: 1px solid var(--sc-hairline); }
.doc summary { cursor: pointer; font-weight: 700; color: var(--sc-ink); min-height: 44px; display: flex; align-items: center; }
.doc summary::marker { color: var(--sc-accent); }

/* --------------------------------------- narrower wide screens (tablet landscape) -- */
@media (max-width: 1180px) and (min-aspect-ratio: 1/1) {
  .hero-copy { width: min(28rem, 34vw); }
  .steps { width: min(26rem, 36vw); }
  .ledger { width: min(15rem, 20vw); }
}

/* -------------------- upright screens (phones, upright tablets): phone on top, words below -- */
@media (max-aspect-ratio: 1/1) {
  .band { -webkit-mask-image: linear-gradient(180deg, #000 58%, transparent 70%); mask-image: linear-gradient(180deg, #000 58%, transparent 70%); }
  .arc { top: 37%; width: min(78vw, 52svh); height: min(78vw, 52svh); }
  .hero-copy { left: var(--sc-gutter); right: var(--sc-gutter); width: auto; bottom: calc(4.5rem + 5svh); max-width: 40rem; }
  .hero-copy h1 { font-size: clamp(1.6rem, 1rem + 3.2vw, 3rem); }
  .lede { display: none; }
  .hero-side { left: var(--sc-gutter); right: var(--sc-gutter); width: auto; bottom: 3svh; justify-items: start; }
  .hero-side .badges { justify-content: flex-start; flex-wrap: nowrap; }
  .chips { display: none; }
  .steps { top: auto; bottom: 4svh; left: var(--sc-gutter); right: var(--sc-gutter); width: auto; max-width: 34rem; }
  .steps li { top: auto; bottom: 0; translate: none; }
  .step-n { width: 2.25rem; height: 2.25rem; margin-bottom: var(--sc-3); }
  .steps h2 { font-size: var(--sc-t-xl); }
  .steps p { font-size: var(--sc-t-base); margin-top: var(--sc-2); }
  .ledger { display: none; }
}
/* Upright tablets have room for the words beside the record and for the lede */
@media (max-aspect-ratio: 1/1) and (min-width: 640px) {
  .steps { right: auto; width: 50vw; }
  .ledger { display: block; top: auto; bottom: 4svh; left: auto; right: var(--sc-gutter); translate: none; width: min(17rem, 36vw); }
  .ledger ol { display: block; position: relative; height: 7rem; }
  .ledger li { position: absolute; left: 0; right: 0; bottom: 0; }
}

/* ----------------------------------------------------------- phone -- */
@media (max-width: 639px) {
  :root { --header-h: 3.75rem; }
  .site-header { top: 0.5rem; height: 3rem; }
  .site-nav a { padding: 0.5rem 0.7rem; }
  .wordmark { top: calc(var(--header-h) + 2.5svh); font-size: 17.5vw; }
  .band { width: 34vw; }
  .store-badge { min-height: 48px; padding: 0.4rem 0.8rem 0.4rem 0.7rem; font-size: 0.85rem; }
  .rail-intro h2, .report-text h2, .tenancy h2, .private h2 { font-size: var(--sc-t-2xl); }
  .close-copy h2 { font-size: var(--sc-t-3xl); }
  .page-issues { right: 0; }
  .room { width: 76vw; }
  /* Compact snap record under the phone: the latest tag only, one line */
  .ledger { display: block; top: 61svh; bottom: auto; left: var(--sc-gutter); right: var(--sc-gutter); width: auto; translate: none; }
  .ledger-title { display: none; }
  .ledger ol { display: block; position: relative; height: 2.6rem; }
  .ledger li { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.5rem 0.85rem; border-radius: 12px; }
  .ledger li span { display: none; }
  .ledger li strong { font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ledger code { margin: 0; white-space: nowrap; }
}
