/* ============ Sub-page chrome (Page Nav + Page Footer + Page CTA) ============ */

.nav-links a.is-current {
  color: var(--ink);
  position: relative;
}
.nav-links a.is-current::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1.5px;
  background: var(--accent);
}

.page-foot {
  background: var(--bg);
  border-top: 1px solid var(--line);
  margin-top: 0;
}
.page-foot-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  color: var(--ink-3);
  font-size: 13.5px;
}
.page-foot-l { display: flex; align-items: center; gap: 16px; }
.page-foot-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.page-foot-nav a { color: var(--ink-3); }
.page-foot-nav a:hover { color: var(--ink); }

.page-cta {
  background: var(--ink);
  color: var(--bg);
  padding: 96px 28px;
  text-align: center;
}
.page-cta-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.page-cta-h {
  color: var(--bg);
  margin: 0;
  letter-spacing: -0.02em;
}
.page-cta-h em {
  color: var(--accent);
  font-style: normal;
}
.page-cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 14px;
}

/* ============ Page hero (shared) ============ */

.page-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 96px 28px 64px;
}
.page-hero-eyebrow {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}
.page-hero-h {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(56px, 8vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 0 0 22px;
  max-width: 18ch;
}
.page-hero-h em {
  font-style: italic;
  color: var(--accent);
}
.page-hero-sub {
  font-size: clamp(18px, 1.5vw, 22px);
  color: var(--ink-2);
  max-width: 60ch;
  line-height: 1.45;
  margin: 0;
}
@media (max-width: 820px) {
  .page-hero { padding: 64px 20px 48px; }
}

/* ============ How it works deep page ============ */

.hiw-steps-deep {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 28px;
  display: flex;
  flex-direction: column;
  gap: 80px;
}
.hiw-step-deep {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 40px;
  align-items: start;
}
@media (max-width: 820px) {
  .hiw-step-deep { grid-template-columns: 1fr; gap: 20px; padding: 0; }
  .hiw-steps-deep { padding: 56px 20px; }
}
.hiw-step-num {
  font-family: var(--ff-display);
  font-size: 64px;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.03em;
}
.hiw-step-body h3 {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.1;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.hiw-step-body p {
  margin: 0 0 12px;
  color: var(--ink-2);
  font-size: 16.5px;
  line-height: 1.55;
}
.hiw-step-detail {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 22px;
}
.hiw-step-detail h4 {
  font-family: var(--ff-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 12px;
}
.hiw-step-detail ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hiw-step-detail li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.4;
}
.hiw-step-detail li::before {
  content: "→";
  color: var(--accent);
  flex-shrink: 0;
  font-family: var(--ff-mono);
}

/* What we fix grid */
.fix-grid-section {
  background: var(--bg-2);
  padding: 96px 28px;
}
.fix-grid-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.fix-grid-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.fix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.fix-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.fix-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: color-mix(in oklab, var(--accent) 12%, var(--bg));
  color: var(--accent);
  display: grid;
  place-items: center;
}
.fix-card h4 {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: 22px;
  margin: 0;
  letter-spacing: -0.005em;
}
.fix-card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.5;
}
.fix-card-not {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  text-transform: uppercase;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 4px;
}

/* ============ Gallery deep page ============ */

.gallery-deep {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 28px 80px;
}
.gallery-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.gallery-filter {
  background: transparent;
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-family: var(--ff-sans);
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.15s;
}
.gallery-filter:hover { border-color: var(--ink-3); color: var(--ink); }
.gallery-filter.is-active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.gallery-filter-count {
  font-family: var(--ff-mono);
  font-size: 11px;
  margin-left: 6px;
  opacity: 0.6;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 24px;
}
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: 1fr; }
}
.gallery-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.gallery-item-frame {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-2);
  position: relative;
}
.gallery-item-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13.5px;
}
.gallery-item-room {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.gallery-item-note {
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.4;
}

/* ============ Pricing deep page ============ */

.pricing-hero-card {
  max-width: 760px;
  margin: 0 auto 56px;
  padding: 64px 48px;
  text-align: center;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
}
.pricing-big-num {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(96px, 14vw, 168px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--accent);
}
.pricing-big-unit {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(28px, 4vw, 40px);
  color: var(--ink-2);
}
.pricing-big-sub {
  margin-top: 18px;
  color: var(--ink-3);
  font-size: 16px;
  max-width: 38ch;
  margin-left: auto;
  margin-right: auto;
}
.pricing-deep-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px 64px;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.compare-table thead th {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: left;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.compare-table tbody td {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  vertical-align: top;
}
.compare-table tbody tr:hover td { background: var(--bg-2); }
.compare-row-label {
  color: var(--ink) !important;
  font-weight: 500;
}
.compare-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-family: var(--ff-mono);
  letter-spacing: 0.04em;
}
.compare-pill-good { background: color-mix(in oklab, var(--accent) 14%, var(--bg)); color: var(--accent); }
.compare-pill-meh { background: var(--bg-2); color: var(--ink-3); }
.compare-table-head-pix { color: var(--accent) !important; }

.pricing-edge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.pricing-edge-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  background: var(--bg);
}
.pricing-edge-card h4 {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: 20px;
  margin: 0 0 8px;
}
.pricing-edge-card p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
}

/* ============ FAQ deep page ============ */

.faq-deep {
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 28px 80px;
}
.faq-deep-cat {
  margin-bottom: 56px;
}
.faq-deep-cat h2 {
  font-family: var(--ff-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

/* ============ For Agents page ============ */

.agents-hero {
  background: var(--ink);
  color: var(--bg);
  padding: 120px 28px 96px;
}
.agents-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 820px) {
  .agents-hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .agents-hero { padding: 80px 20px 64px; }
}
.agents-eyebrow {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}
.agents-h {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(48px, 6vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--bg);
  margin: 0 0 24px;
}
.agents-h em {
  font-style: italic;
  color: var(--accent);
}
.agents-sub {
  font-size: 18px;
  color: oklch(0.78 0.01 60);
  line-height: 1.5;
  max-width: 50ch;
  margin: 0 0 32px;
}

.agents-side-card {
  background: oklch(0.18 0.005 60);
  border: 1px solid oklch(0.28 0.008 60);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.agents-side-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid oklch(0.28 0.008 60);
  font-size: 14px;
}
.agents-side-row:last-child { border-bottom: none; }
.agents-side-label {
  color: oklch(0.7 0.01 60);
}
.agents-side-value {
  font-family: var(--ff-display);
  font-size: 22px;
  color: var(--accent);
}

.agents-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 96px 28px;
}
.agents-section-head {
  max-width: 720px;
  margin: 0 0 56px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.agents-bullets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.agents-bullet {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.agents-bullet-num {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.agents-bullet h4 {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: 24px;
  margin: 0;
  line-height: 1.15;
}
.agents-bullet p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.5;
}

.agents-flow {
  background: var(--bg-2);
  padding: 96px 28px;
}
.agents-flow-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.agents-flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
}
@media (max-width: 820px) {
  .agents-flow-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .agents-flow-steps { grid-template-columns: 1fr; }
}
.agents-flow-step {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.agents-flow-step-n {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.agents-flow-step h5 {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: 19px;
  margin: 0;
  line-height: 1.2;
}
.agents-flow-step p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.45;
}

/* ============ Photo guide ============ */
.guide-section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 56px 28px;
}
@media (max-width: 820px) { .guide-section { padding: 40px 20px; } }
.guide-section .section-head { max-width: 720px; margin-bottom: 32px; }

/* Golden rules — DO/DON'T cards */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .rules-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .rules-grid { grid-template-columns: 1fr; } }
.rule-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rule-card-do    { border-top: 3px solid var(--accent); }
.rule-card-dont  { border-top: 3px solid oklch(0.62 0.18 25); }
.rule-kind {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--accent);
}
.rule-card-dont .rule-kind { color: oklch(0.55 0.16 25); }
.rule-card h3 {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.005em;
}
.rule-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-3);
  line-height: 1.55;
}

/* Shot-inventory table — leans on existing .compare-table; this just tunes column widths + spacing */
.inventory-table td:nth-child(2) { color: var(--ink); white-space: nowrap; }
.inventory-table td:nth-child(3) { color: var(--ink-3); font-size: 14.5px; line-height: 1.5; }

/* Blank-canvas checklist */
.checklist-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .checklist-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .checklist-grid { grid-template-columns: 1fr; } }
.checklist-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 22px 24px;
}
.checklist-card h4 {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.1;
  margin: 0 0 12px;
  color: var(--ink);
  border-bottom: 1px dashed var(--line);
  padding-bottom: 10px;
}
.checklist-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.checklist-card li {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.5;
  padding-left: 18px;
  position: relative;
}
.checklist-card li::before {
  content: "□";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 600;
}

/* "Where we come in" closer */
.guide-where-we-fit {
  background: var(--bg-2);
  max-width: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.guide-where-we-fit > * { max-width: 1080px; margin-left: auto; margin-right: auto; }
.guide-where-we-fit-p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 64ch;
  margin: 0;
  text-wrap: pretty;
}
.guide-fixes {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  margin: 24px 0 0;
  font-family: var(--ff-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--accent);
}

/* ============ Photo guide v2 — visual upgrade ============ */

/* Hero contact-sheet strip */
.guide-hero-strip {
  max-width: 1080px;
  margin: 24px auto 16px;
  padding: 0 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 720px) {
  .guide-hero-strip { grid-template-columns: repeat(2, 1fr); padding: 0 20px; }
}
.guide-hero-thumb {
  margin: 0;
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-3);
  box-shadow: var(--shadow-md);
}
.guide-hero-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.guide-hero-thumb figcaption {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: white;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  padding: 4px 8px;
  border-radius: 4px;
}

/* Golden rule card — head row with icon + n + kind */
.rule-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.rule-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-ink);
  flex-shrink: 0;
}
.rule-card-dont .rule-icon {
  background: oklch(0.95 0.04 25);
  color: oklch(0.4 0.14 25);
}
[data-theme="dark"] .rule-icon { color: oklch(0.9 0.1 42); }
[data-theme="dark"] .rule-card-dont .rule-icon { color: oklch(0.85 0.1 25); }
.rule-n {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  margin-left: auto;
}

/* Inventory grid (replaces the spreadsheet-y table) */
.inventory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 900px) { .inventory-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .inventory-grid { grid-template-columns: 1fr; } }
.inventory-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.18s, transform 0.18s;
}
.inventory-card:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
}
.inventory-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 12px;
}
.inventory-room {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.inventory-count {
  font-family: var(--ff-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  white-space: nowrap;
}
.inventory-focus {
  margin: 0;
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.55;
}

/* Checklist card head with room icon */
.checklist-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 10px;
  margin-bottom: 12px;
}
/* Override the v1 .checklist-card h4 (had its own border) */
.checklist-card-head h4 {
  border: 0;
  padding: 0;
  margin: 0;
}
.checklist-icon {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-ink);
  flex-shrink: 0;
}
[data-theme="dark"] .checklist-icon { color: oklch(0.9 0.1 42); }

/* "Where we come in" — fix-card grid (replaces inline mono list) */
.fix-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 8px;
}
@media (max-width: 900px) { .fix-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .fix-grid { grid-template-columns: 1fr; } }
.fix-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.18s, transform 0.18s;
}
.fix-card:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
}
.fix-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  margin-bottom: 6px;
  color: var(--ink-2);
}
.fix-card h4 {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.005em;
}
.fix-card p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.55;
}
