/* KAYO — Together light (from logo) */

:root {
  --studio: #e8e4e1;
  --studio-ink: #3d383a;
  --panel: #3a3536;
  --panel-2: #4a4344;
  --panel-line: #5c5456;
  --panel-muted: #c4b6b8;
  --paper: #fbf6f5;
  --phone: #fbf6f5;
  --ink: #3d383a;
  --muted: #8a7d80;
  --line: #ead6d8;
  --fill: #f6e8ea;
  --fill-2: #dff3ea;
  --lock: #c47b88;
  --ok: #4f9a82;
  --warn: #b8864a;
  --bad: #c45c68;
  --note: #f6e8ea;
  --white: #ffffff;
  --clay: #d89aa4;
  --btn: #4f9a82;
  --free: #d8f0e4;
  --prem: #f6dce0;
  --blush: #f7bdc4;
  --mint: #93d2b5;
  --shadow: 0 24px 60px rgba(61, 56, 58, 0.18);
  --phone-w: 390px;
  --phone-h: 844px;
  --tab-h: 72px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font: "Avenir Next", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "SF Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  background: var(--studio);
  color: var(--studio-ink);
  overflow: hidden;
}

.wf {
  display: grid;
  grid-template-columns: 280px 1fr 300px;
  height: 100dvh;
}

/* ——— Left index ——— */
.nav {
  background: var(--panel);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.nav-brand {
  padding: 22px 18px 16px;
  border-bottom: 1px solid var(--panel-line);
}
.nav-brand .mark {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--panel-muted);
}
.nav-brand h1 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-top: 6px;
}
.nav-brand p {
  font-size: 12px;
  color: var(--panel-muted);
  margin-top: 8px;
  line-height: 1.4;
}
.nav-list {
  overflow: auto;
  padding: 10px 0 24px;
  flex: 1;
}
.mod {
  margin: 14px 12px 6px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--panel-muted);
}
.nav a {
  display: block;
  color: #e8e2d4;
  text-decoration: none;
  font-size: 13px;
  padding: 8px 18px;
  border-left: 3px solid transparent;
}
.nav a:hover { background: var(--panel-2); }
.nav a.active {
  background: var(--panel-2);
  border-left-color: var(--mint);
  color: #fff;
}
.nav a small {
  display: block;
  color: var(--panel-muted);
  font-size: 11px;
  margin-top: 2px;
}

/* ——— Stage ——— */
.stage {
  display: grid;
  place-items: center;
  padding: 16px;
  min-width: 0;
  min-height: 0;
}
.phone-wrap {
  --s: min(1, (100dvh - 32px) / 844);
  width: calc(390px * var(--s));
  height: calc(844px * var(--s));
  position: relative;
}
.phone {
  width: var(--phone-w);
  height: var(--phone-h);
  color: var(--ink);
  background:
    linear-gradient(165deg, #fdecef 0%, #fbf7f5 46%, #e9f6ef 100%);
  border: 2px solid #e5d0d3;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: none;
  flex-direction: column;
  position: relative;
  transform: scale(var(--s));
  transform-origin: top left;
  padding-bottom: 44px;
}
.phone.active { display: flex; }
.phone::after {
  content: "";
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 5px;
  background: #c9b4b7;
  border-radius: 4px;
  z-index: 6;
  pointer-events: none;
}
.notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 118px;
  height: 28px;
  background: var(--ink);
  border-radius: 20px;
  z-index: 5;
}
.status {
  height: 54px;
  padding: 16px 24px 0;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}
.body {
  flex: 1;
  overflow: auto;
  padding: 8px 20px 16px;
  min-height: 0;
}
.body.no-pad { padding: 0; }
.tabs {
  height: 64px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.88);
}
.tabs button {
  border: 0;
  background: none;
  font: inherit;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  padding-top: 8px;
}
.tabs button.on { color: var(--btn); font-weight: 700; }
.tabs button::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  margin: 0 auto 6px;
  border: 1.5px solid currentColor;
  border-radius: 4px;
}

/* ——— Right inspector ——— */
.inspect {
  background: var(--paper);
  border-left: 1px solid #e0d0d2;
  padding: 28px 22px;
  overflow: auto;
}
.inspect h2 { font-family: var(--serif); font-size: 22px; margin: 0 0 12px; font-weight: 600; }
.inspect p { font-size: 15px; line-height: 1.55; color: #3a372f; }

/* ——— Phone UI primitives ——— */
.h { font-family: var(--serif); font-size: 28px; line-height: 1.15; font-weight: 600; }
.h2 { font-family: var(--serif); font-size: 20px; font-weight: 600; }
.sub { color: var(--muted); font-size: 14px; line-height: 1.45; margin-top: 8px; }
.row { display: flex; gap: 10px; align-items: center; }
.space { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }

.btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 16px;
  border: 1.5px solid var(--btn);
  background: var(--btn);
  color: var(--paper);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border-radius: 14px;
}
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.warn { background: var(--white); color: var(--bad); border-color: var(--bad); }
.btn.sm { padding: 10px 12px; font-size: 13px; width: auto; }
.btn[disabled], .btn.disabled {
  opacity: 0.4;
  pointer-events: none;
}

.field label {
  display: block;
  font-size: 12px;
  margin-bottom: 6px;
  color: var(--muted);
}
.field input, .field select {
  width: 100%;
  border: 1.5px solid var(--line);
  background: var(--white);
  padding: 12px;
  font: inherit;
  font-size: 15px;
  border-radius: 12px;
}
.field { margin-top: 12px; }

.card {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 14px;
  border-radius: 16px;
}
.card.dash { border-style: dashed; background: var(--fill); }
.card.lock { border-color: var(--lock); }

.ph {
  background: repeating-linear-gradient(
    -45deg,
    var(--fill),
    var(--fill) 8px,
    var(--fill-2) 8px,
    var(--fill-2) 16px
  );
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  position: relative;
  border-radius: 16px;
}
.ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom right, transparent calc(50% - 0.8px), var(--ink) calc(50% - 0.8px), var(--ink) calc(50% + 0.8px), transparent calc(50% + 0.8px)),
    linear-gradient(to top right, transparent calc(50% - 0.8px), var(--ink) calc(50% - 0.8px), var(--ink) calc(50% + 0.8px), transparent calc(50% + 0.8px));
  opacity: 0.18;
  pointer-events: none;
}
.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--fill);
  display: grid;
  place-items: center;
  font-size: 12px;
  flex-shrink: 0;
}
.avatar.lg { width: 88px; height: 88px; }
.avatar.sm { width: 36px; height: 36px; font-size: 10px; }

.pill {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 3px 8px;
  background: var(--white);
  border-radius: 999px;
}
.pill.free { background: var(--free); }
.pill.prem { background: var(--prem); }
.pill.alert { background: #f3d9d6; color: var(--bad); border-color: var(--bad); }
.pill.ok { background: var(--free); }
.pill.warn { background: #f3e4c6; }

.banner {
  border: 1px solid var(--line);
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.35;
  background: var(--note);
  margin-bottom: 12px;
  border-radius: 12px;
}
.banner.alert { background: #f3d9d6; border-color: var(--bad); }
.banner.warn { background: #f3e4c6; }
.banner.ok { background: #dceadf; }

.divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 16px 0;
}

.seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.seg.four { grid-template-columns: repeat(4, 1fr); }
.choice {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 10px 6px;
  text-align: center;
  font-size: 13px;
  cursor: pointer;
  border-radius: 12px;
  font: inherit;
}
.choice.on { background: var(--btn); color: var(--paper); }

.list-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.list-row .grow { flex: 1; min-width: 0; }
.list-row .t { font-weight: 600; font-size: 14px; }
.list-row .d { font-size: 12px; color: var(--muted); margin-top: 2px; }
.chev { color: var(--muted); }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  min-height: 28px;
}
.topbar .back, .icon-btn {
  border: 1px solid var(--line);
  background: var(--white);
  width: 32px;
  height: 32px;
  cursor: pointer;
  font: inherit;
  border-radius: 10px;
}
.icon-btn.wide { width: auto; padding: 0 10px; font-size: 12px; }
.topbar h1 { font-family: var(--serif); font-size: 17px; font-weight: 600; }

.modal {
  position: absolute;
  inset: 0;
  background: rgba(28, 27, 25, 0.45);
  display: flex;
  align-items: flex-end;
  z-index: 8;
  padding: 16px;
}
.sheet {
  background: var(--white);
  border: 1px solid var(--line);
  width: 100%;
  padding: 20px;
  border-radius: 20px 20px 28px 28px;
}

.phone.call { padding-bottom: 0; }

.live-stage {
  flex: 1;
  min-height: 0;
  position: relative;
  background: var(--fill-2);
}
.live-stage .video-main {
  position: absolute;
  inset: 0;
  height: auto;
  border: 0;
  border-radius: 0;
}
.live-stage .pip {
  right: 14px;
  bottom: 168px;
  top: auto;
}
.live-states {
  position: absolute;
  top: 44px;
  left: 10px;
  right: 10px;
  z-index: 4;
  border-radius: 6px;
  border: 1px solid var(--ink);
}
.live-hud {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 3;
}
.live-hud.top {
  top: 0;
  padding: 108px 16px 28px;
  background: linear-gradient(to bottom, rgba(28, 27, 25, 0.5), transparent);
}
.live-hud.bottom {
  bottom: 0;
  padding: 28px 16px 48px;
  background: linear-gradient(to top, rgba(28, 27, 25, 0.55), transparent);
}
.live-hud .timer { color: #fffcf6; }
.live-hud .pill { background: rgba(255, 252, 246, 0.92); }
.live-hud .sound-bar {
  background: rgba(255, 252, 246, 0.92);
  margin-bottom: 12px;
}
.live-hud .controls { margin-top: 0; }
.live-hud .ctrl { background: rgba(255, 252, 246, 0.95); }
.live-hud .ctrl.off { background: var(--ink); color: var(--paper); }
.live-hud .ctrl.end { background: var(--bad); color: #fff; }

.video-main {
  height: 300px;
  position: relative;
}
.pip {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 110px;
  height: 148px;
  z-index: 2;
  background: var(--fill-2);
}
.controls {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 16px;
}
.ctrl {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--white);
  display: grid;
  place-items: center;
  font-size: 10px;
  text-align: center;
  line-height: 1.15;
  cursor: pointer;
}
.ctrl.off { background: var(--ink); color: var(--paper); }
.ctrl.end { background: var(--bad); color: #fff; border-color: var(--bad); }

.timer {
  font-variant-numeric: tabular-nums;
  font-size: 28px;
  letter-spacing: 0.04em;
  text-align: center;
  font-weight: 600;
}
.sound-bar {
  border: 1px solid var(--line);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  background: var(--fill);
  border-radius: 12px;
}
.eq {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 16px;
}
.eq i {
  width: 3px;
  background: var(--ink);
  display: block;
}
.eq i:nth-child(1) { height: 6px; }
.eq i:nth-child(2) { height: 14px; }
.eq i:nth-child(3) { height: 9px; }
.eq i:nth-child(4) { height: 16px; }
.eq i:nth-child(5) { height: 7px; }

.nature {
  height: 100%;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 20px 28px;
  border: 0;
}
.nature.forest { background: linear-gradient(#9aaf8c, #4d6244); color: #f3efe6; }
.nature.mountain { background: linear-gradient(#9aabbc, #4d5764); color: #f3efe6; }
.nature.sea { background: linear-gradient(#8eb4c4, #3e6170); color: #f3efe6; }
.nature .ph { background: transparent; border-color: rgba(243,239,230,0.45); color: inherit; }
.nature .ph::after { opacity: 0.12; }

.count {
  border: 1.5px solid currentColor;
  padding: 8px 12px;
  font-size: 13px;
  background: rgba(28,27,25,0.25);
}

.note-flag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  background: var(--note);
  border: 1px solid var(--ink);
  padding: 4px 6px;
  display: inline-block;
}

.brand-logo {
  width: 148px;
  height: 148px;
  object-fit: contain;
  margin: 28px auto 12px;
  display: block;
  border-radius: 36px;
  box-shadow: 0 16px 32px rgba(147, 210, 181, 0.28);
}
.center { text-align: center; }

.room-thumb { height: 64px; width: 64px; flex-shrink: 0; }
.room-hero { height: 180px; margin-bottom: 14px; }

.foot-actions {
  margin-top: auto;
  padding-top: 16px;
  padding-bottom: 4px;
  flex-shrink: 0;
}

.state-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px 12px 10px;
  background: var(--note);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.state-bar .lbl {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  width: 100%;
  color: var(--muted);
}
.state-bar button {
  font: inherit;
  font-size: 11px;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 3px 7px;
  cursor: pointer;
  border-radius: 999px;
}
.state-bar button.on {
  background: var(--btn);
  color: #fff;
}
[data-panel] { display: none; }
[data-panel].on { display: block; }
.body > [data-panel].on {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.modal[data-panel] { display: none; }
.modal[data-panel].on { display: flex; }

.tiny { font-size: 12px; color: var(--muted); line-height: 1.4; }
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.4;
}
.check i {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--line);
  flex-shrink: 0;
  background: var(--white);
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 12px;
}
.check i.on { background: var(--btn); color: #fff; }
.otp {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 16px;
}
.otp .box {
  border: 1.5px solid var(--line);
  height: 48px;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 600;
  background: var(--white);
  border-radius: 12px;
}

/* split body for screens that pin a footer CTA */
.col {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

body[data-plan="free"] .for-sub { display: none; }
body[data-plan="sub"] .for-free { display: none; }

@media (max-width: 1100px) {
  .wf { grid-template-columns: 240px 1fr; }
  .inspect { display: none; }
}
