/* Presentia landing page. Tokens follow the root DESIGN.md (The Site Clipboard). */
@font-face { font-family: Inter; src: url(fonts/Inter-Regular.ttf) format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url(fonts/Inter-Medium.ttf) format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: Inter; src: url(fonts/Inter-SemiBold.ttf) format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: Inter; src: url(fonts/Inter-Bold.ttf) format('truetype'); font-weight: 700; font-display: swap; }

:root {
  --teal: #0E6B63; --teal-deep: #0A524C; --wash: #E2F0EE; --mist: #F1F8F7; --rule: #BFDCD8;
  --paper: #F6F8F7; --surface: #fff; --border: #E3E9E7; --divider: #EDF1F0;
  --ink: #13201E; --muted: #66756F;
  --ochre-deep: #6D4309; --ochre-wash: #FEF4E4; --ochre-rule: #F4D8A6;
  --brick-deep: #A33423; --brick-wash: #FDECEA; --brick-rule: #F5C6BF;
  --gut: clamp(20px, 4vw, 56px);
  --bar: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 16px); scrollbar-color: var(--rule) var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
::selection { background: var(--teal); color: #fff; }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--rule); border: 3px solid var(--paper); border-radius: 9px; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
a { color: var(--teal); text-underline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
h1, h2 { text-wrap: balance; font-weight: 700; }
h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.1; letter-spacing: -.03em; }
small { font-size: inherit; }
time { font-variant-numeric: tabular-nums; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 2000; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 9px; }
.skip:focus { top: 10px; }
.wrap { width: min(1320px, 100%); margin: 0 auto; padding-inline: var(--gut); }
.lead { margin-top: 18px; max-width: 34em; font-size: clamp(18px, 1.5vw, 20px); color: var(--muted); }
.demo { font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; }

/* Controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--ink); font: 600 14px/1 Inter, sans-serif; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--mist); border-color: var(--rule); }
.btn.primary { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn.primary:hover { background: var(--teal-deep); border-color: var(--teal-deep); }
.btn.lg { height: 54px; padding: 0 24px; font-size: 15px; }
.pill { display: inline-block; padding: 3px 8px; border: 1px solid; border-radius: 6px; font: 600 12px/1.3 Inter, sans-serif; font-style: normal; white-space: nowrap; }
.pill.ok { background: var(--wash); border-color: var(--rule); color: var(--teal); }
.pill.warn { background: var(--ochre-wash); border-color: var(--ochre-rule); color: var(--ochre-deep); }
.pill.bad { background: var(--brick-wash); border-color: var(--brick-rule); color: var(--brick-deep); }

/* Top bar */
.bar { position: sticky; top: 0; z-index: 1000; background: var(--surface); border-bottom: 1px solid var(--border); }
.bar-in { display: flex; align-items: center; gap: 40px; height: var(--bar); }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-size: 19px; letter-spacing: -.02em; }
.brand.small { font-size: 15px; }
.bar nav { display: flex; gap: 26px; }
.bar nav a { color: var(--muted); font-size: 14px; font-weight: 500; text-decoration: none; }
.bar nav a:hover { color: var(--teal); }

/* Hero */
.hero { overflow: hidden; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 6vw, 96px); align-items: center; min-height: calc(100svh - var(--bar)); padding-block: 28px; }
h1 { font-size: clamp(42px, min(5.2vw, 9.4vh), 76px); line-height: 1.04; letter-spacing: -.035em; }
h1 span { display: block; color: var(--teal); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.pitch .lead { max-width: 26em; text-wrap: pretty; }
.day-label { margin-top: 30px; font-size: 13px; font-weight: 500; color: var(--muted); }
.day { display: inline-flex; gap: 6px; margin-top: 8px; }
.day button { min-width: 92px; height: 42px; padding: 0 14px; border: 1px solid var(--border); border-radius: 10px; background: none; color: var(--ink); font: 600 14px/1 Inter, sans-serif; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.day button:hover { border-color: var(--rule); }
.day button[aria-pressed="true"] { background: var(--wash); border-color: var(--rule); color: var(--teal); }

/* Phone */
.phone { position: relative; flex: none; width: 330px; height: min(660px, calc(100svh - var(--bar) - 56px)); min-height: 590px; padding: 10px; background: var(--ink); border-radius: 44px; box-shadow: 0 20px 60px rgba(19, 32, 30, .22); }
.phone figcaption { position: absolute; right: calc(100% + 14px); bottom: 12px; font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.screen { position: relative; height: 100%; padding: 26px 14px 14px; overflow: hidden; background: var(--paper); border-radius: 35px; font-size: 13px; line-height: 1.35; }
.app-head small { display: block; color: var(--muted); font-size: 12px; }
.app-head b { font-size: 23px; letter-spacing: -.02em; }
.app-card { margin-top: 10px; padding: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.app-site { padding: 0; overflow: hidden; }
.app-site .app-row { padding: 9px 10px; }
.p-map { height: clamp(100px, calc(100svh - 620px), 150px); background: var(--divider); }
.app-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.app-row small { display: block; font-size: 11.5px; color: var(--muted); }
.app-times { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 6px; margin-top: 10px; }
.app-times small { display: block; font-size: 11.5px; color: var(--muted); }
.app-times b { font-size: 13px; font-variant-numeric: tabular-nums; }
.app-where { margin-top: 8px; font-size: 12px; }
.app-btn { display: flex; align-items: center; justify-content: center; height: 46px; margin-top: 10px; padding: 0 8px; border-radius: 10px; background: var(--teal); color: #fff; font-size: 13.5px; font-weight: 600; text-align: center; transition: background .25s, color .25s; }
.app-btn.done { background: #E6EBE9; color: #6F7C77; }
.app-note { margin-top: 8px; padding: 7px 10px; border: 1px solid var(--ochre-rule); border-radius: 10px; background: var(--ochre-wash); color: var(--ochre-deep); font-size: 12px; font-weight: 500; }
.app-note[hidden], .app-tiles[hidden] { display: none; }
.app-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.app-tiles div { padding: 8px 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; font-size: 12px; line-height: 1.3; }
.app-tiles b { display: block; }
.app-tiles small { display: block; margin-top: 1px; font-size: 11px; color: var(--muted); }
.app-nav { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; height: 50px; padding: 0 16px 6px; background: var(--surface); border-top: 1px solid var(--border); font-size: 12px; text-align: center; color: var(--muted); }
.app-nav b { color: var(--teal); font-weight: 600; }
.p-map .leaflet-control-attribution { font-size: 8px; padding: 0 3px; line-height: 1.4; }

/* Map marks */
.leaflet-container { font: inherit; }
.leaflet-container .leaflet-control-attribution { background: rgba(255, 255, 255, .86); color: var(--muted); border-radius: 6px 0 0 0; }
.leaflet-container .leaflet-control-attribution a { color: var(--muted); }
.site-tile { display: block; width: 16px; height: 16px; margin: -8px 0 0 -8px; border: 2px solid #fff; border-radius: 6px; background: var(--teal); box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.site-tile.sm { width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 4px; }
.dot { width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #2F6BE0; border: 2.5px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }

/* Feature rows */
.sec { padding-block: clamp(64px, 8vw, 112px); }
.tint { background: var(--surface); border-block: 1px solid var(--border); }
.row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.row.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.row.flip .copy { order: 2; }
.copy p { margin-top: 16px; max-width: 34em; color: var(--muted); }
.visual { min-width: 0; }

.scene { position: relative; overflow: hidden; background: var(--mist); border: 1px solid var(--rule); border-radius: 12px; }
.scene svg { display: block; width: 100%; height: auto; }
.scene text { font-family: Inter, sans-serif; }
.scene-tag rect { fill: #fff; stroke: var(--border); }
.scene-tag text { font-size: 17px; font-weight: 600; fill: var(--ink); }
.scene-t { font-size: 16px; font-weight: 600; fill: var(--ink); }
.scene-t.ok { fill: var(--teal); }
.scene-t.on { fill: #fff; }
.stamp { position: absolute; left: 16px; bottom: 16px; width: min(300px, calc(100% - 32px)); padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 8px 24px rgba(19, 32, 30, .14); font-size: 13px; line-height: 1.4; }
.stamp time { font-size: 18px; font-weight: 700; }
.stamp b { display: block; margin-top: 6px; font-size: 15px; font-weight: 600; }
.stamp small { display: block; color: var(--muted); }

.ledger, .crew { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.tint .ledger { background: var(--paper); }
.ledger header, .crew header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.ledger li { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 14px; line-height: 1.35; }
.ledger time { font-size: 28px; font-weight: 700; letter-spacing: -.03em; color: var(--teal); }
.ledger li b { display: block; color: var(--ink); font-size: 16px; font-weight: 600; }
.ledger footer { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 14px 20px; font-size: 13px; color: var(--muted); }
.ledger footer b { display: block; color: var(--ink); font-size: 16px; font-weight: 600; }

.crew ul { padding: 4px 20px 8px; }
.crew li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px; border-top: 1px solid var(--divider); font-size: 14px; line-height: 1.3; color: var(--muted); }
.crew li:first-child { border-top: 0; }
.crew li b { display: block; color: var(--ink); font-size: 16px; font-weight: 600; }

/* The desk: panel screenshots run off the right edge */
.desk { padding-bottom: 0; background: var(--paper); overflow: hidden; }
.desk-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.desk-h > div:first-child { max-width: 760px; }
.seg { flex: none; display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--divider); }
.seg button { height: 38px; padding: 0 14px; border: 0; border-radius: 9px; background: none; color: var(--ink); font: 600 14px/1 Inter, sans-serif; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--teal); box-shadow: 0 1px 2px rgba(19, 32, 30, .08); }
.shot { margin-top: clamp(28px, 4vw, 44px); padding-left: max(var(--gut), calc((100vw - 1320px) / 2 + var(--gut))); }
.shot-frame { width: max(1040px, 100%); max-width: 1500px; height: clamp(380px, 38vw, 560px); overflow: hidden; background: var(--paper); border: 1px solid var(--border); border-right: 0; border-bottom: 0; border-radius: 12px 0 0 0; }
.shot-frame img { width: 100%; }
.shot-frame [hidden] { display: none; }
.shot figcaption { padding-block: 10px 14px; font-size: 13px; color: var(--muted); }

/* Privacy: the one teal field, the scanner corners at full scale */
.privacy { padding-block: clamp(64px, 8vw, 112px); background: var(--teal); color: #fff; }
.privacy ::selection { background: #fff; color: var(--teal); }
.frame { position: relative; padding: clamp(60px, 8vw, 120px) clamp(52px, 8vw, 120px); }
.frame h2 { max-width: 13em; margin-inline: auto; text-align: center; font-size: clamp(34px, 5vw, 72px); line-height: 1.04; letter-spacing: -.035em; }
.c { position: absolute; width: clamp(48px, 8vw, 112px); height: clamp(48px, 8vw, 112px); }
.c path { fill: none; stroke: #fff; stroke-width: 15; stroke-linecap: round; stroke-linejoin: round; }
.c.tl { left: 0; top: 0; }
.c.tr { right: 0; top: 0; transform: scaleX(-1); }
.c.bl { left: 0; bottom: 0; transform: scaleY(-1); }
.c.br { right: 0; bottom: 0; transform: scale(-1); }
.vows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); margin-top: clamp(32px, 4vw, 52px); }
.vows p { color: #D5E9E5; font-size: 16px; }
.vows b { display: block; margin-bottom: 4px; color: #fff; font-size: 18px; font-weight: 600; }

/* Close: one door per audience */
.close { padding-top: 0; }
.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: clamp(24px, 3vw, 36px); }
.doors article { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(22px, 3vw, 36px); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.doors h3 { font-size: 24px; line-height: 1.2; letter-spacing: -.02em; }
.doors ol { margin-block: 14px 26px; counter-reset: s; color: var(--muted); }
.doors li { display: flex; gap: 10px; padding-block: 5px; counter-increment: s; }
.doors li::before { content: counter(s); flex: none; width: 1.2em; font-weight: 700; color: var(--teal); font-variant-numeric: tabular-nums; }
.doors .btn { margin-top: auto; }

.foot { padding-block: 22px; background: var(--surface); border-top: 1px solid var(--border); font-size: 14px; color: var(--muted); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }

@media (max-width: 900px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); justify-items: center; min-height: 0; padding-block: 36px 44px; }
  .pitch { width: 100%; }
  h1 { font-size: clamp(52px, 8vw, 72px); }
  .phone { height: 640px; }
  .p-map { height: 150px; }
  .phone figcaption { right: auto; left: 50%; top: calc(100% + 8px); bottom: auto; transform: translateX(-50%); }
}

@media (max-width: 1040px) {
  .row, .row.flip { grid-template-columns: minmax(0, 1fr); }
  .row.flip .copy { order: 0; }
  .desk-h { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .bar nav { display: none; }
  h1 { font-size: clamp(34px, 10vw, 52px); }
  .actions .btn { flex: 1 1 100%; }
  .day { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .day button { min-width: 0; }
  .phone { width: min(330px, 100%); }
  .ledger li { grid-template-columns: 76px minmax(0, 1fr); }
  .ledger time { font-size: 22px; }
  .ledger li .pill { grid-column: 2; justify-self: start; }
  .ledger footer { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .vows, .doors { grid-template-columns: minmax(0, 1fr); }
  .doors .btn { width: 100%; }
  .shot-frame img { width: 1040px; max-width: none; margin-left: -176px; }
  .scene svg { margin-bottom: -7.5%; }
  .stamp { position: relative; left: auto; bottom: auto; width: auto; border: 0; border-top: 1px solid var(--rule); border-radius: 0; box-shadow: none; }
  .seg { width: 100%; }
  .seg button { flex: 1; padding: 0 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
