/* ============================================================
   Owl — iPhone living mockups
   Recreated from the shipping iOS app on its real design tokens.
   All demo data is fictional. Theme-aware (light / dark).
   Lift .device + screens + this file into index.html when ready.
   ============================================================ */

/* iOS palette — pure black in dark, Apple grouped-background in light */
:root {
  --ph-bg: #F2F2F7;
  --ph-card: #FFFFFF;
  --ph-ink: #1C1C1E;
  --ph-ink-2: #6E6E73;
  --ph-ink-3: #A1A1A8;
  --ph-hairline: rgba(0,0,0,0.07);
  --ph-field: #E9E9EE;
  --ph-accent: #2F6DF6;
  --ph-accent-soft: #E7EEFF;
  --ph-accent-softink: #2F6DF6;
  --ph-coral: #C6553F;
  --ph-bezel: #C9CBD2;
  --ph-bezel-2: #E4E6EC;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ph-bg: #000000;
    --ph-card: #1C1C1E;
    --ph-ink: #FFFFFF;
    --ph-ink-2: #8E8E93;
    --ph-ink-3: #636366;
    --ph-hairline: rgba(255,255,255,0.09);
    --ph-field: #1C1C1E;
    --ph-accent: #3F7BF5;
    --ph-accent-soft: #16233F;
    --ph-accent-softink: #6BA0FF;
    --ph-coral: #C6553F;
    --ph-bezel: #2A2A2E;
    --ph-bezel-2: #3A3A40;
  }
}
:root[data-theme="dark"] {
  --ph-bg: #000000;
  --ph-card: #1C1C1E;
  --ph-ink: #FFFFFF;
  --ph-ink-2: #8E8E93;
  --ph-ink-3: #636366;
  --ph-hairline: rgba(255,255,255,0.09);
  --ph-field: #1C1C1E;
  --ph-accent: #3F7BF5;
  --ph-accent-soft: #16233F;
  --ph-accent-softink: #6BA0FF;
  --ph-coral: #C6553F;
  --ph-bezel: #2A2A2E;
  --ph-bezel-2: #3A3A40;
}

/* ---- Device frame ---- */
.device {
  width: 300px;
  flex-shrink: 0;
  border-radius: 54px;
  padding: 11px;
  background: linear-gradient(150deg, var(--ph-bezel-2), var(--ph-bezel));
  box-shadow:
    0 1px 0 rgba(255,255,255,0.35) inset,
    var(--shadow-card, 0 24px 60px -24px rgba(0,0,0,0.35));
}
.screen {
  position: relative;
  border-radius: 44px;
  background: var(--ph-bg);
  color: var(--ph-ink);
  height: 630px;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
}
.screen * { box-sizing: border-box; }

/* Status bar */
.ph-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 26px 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ph-ink);
  flex-shrink: 0;
}
.ph-status .ph-right { display: inline-flex; align-items: center; gap: 5px; }
.ph-batt { width: 22px; height: 11px; border: 1px solid var(--ph-ink); border-radius: 3px; position: relative; opacity: 0.9; }
.ph-batt::before { content: ""; position: absolute; inset: 1.5px; right: 5px; background: var(--ph-ink); border-radius: 1px; }
.ph-batt::after { content: ""; position: absolute; right: -3px; top: 3px; width: 2px; height: 5px; background: var(--ph-ink); border-radius: 0 1px 1px 0; }
.ph-sig { font-size: 11px; letter-spacing: 1px; }

/* Dynamic Island */
.ph-island {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 108px; height: 30px;
  background: #000;
  border-radius: 999px;
  z-index: 5;
}
.ph-island.rec::after {
  content: "";
  position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  width: 7px; height: 7px; border-radius: 50%; background: #F0A23B;
}

/* Scrollable body */
.ph-body { flex: 1; overflow: hidden; padding: 0 18px; }
.ph-title { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin: 6px 0 12px; }
.ph-title-row { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 12px; }
.ph-plus { width: 30px; height: 30px; border-radius: 50%; background: var(--ph-card); display: grid; place-items: center; color: var(--ph-accent); font-size: 18px; font-weight: 500; }

.ph-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--ph-field);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--ph-ink-2);
  font-size: 14px;
  margin-bottom: 18px;
}
.ph-search svg { width: 15px; height: 15px; opacity: 0.7; }

.ph-sec { font-size: 14px; color: var(--ph-ink-2); margin: 4px 0 10px; font-weight: 500; }

/* Meetings — upcoming card */
.ph-card { background: var(--ph-card); border-radius: 20px; overflow: hidden; }
.ph-up-row { display: flex; align-items: center; gap: 8px; padding: 12px 12px; }
.ph-up-row + .ph-up-row { border-top: 1px solid var(--ph-hairline); }
.ph-up-time { font-size: 11px; color: var(--ph-ink-2); width: 42px; flex-shrink: 0; font-weight: 500; line-height: 1.3; }
.ph-up-main { flex: 1; min-width: 0; }
.ph-up-main b { font-size: 13.5px; font-weight: 600; display: block; line-height: 1.25; }
.ph-up-main span { font-size: 12px; color: var(--ph-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.ph-recbtn {
  display: inline-flex; align-items: center; gap: 3px;
  background: var(--ph-accent-soft); color: var(--ph-accent-softink);
  border-radius: 999px; padding: 4px 9px 4px 7px; font-size: 10.5px; font-weight: 600;
  flex-shrink: 0;
}
.ph-recbtn svg { width: 10px; height: 10px; }

/* Meetings — past rows */
.ph-past { display: flex; align-items: center; gap: 12px; padding: 12px 2px; }
.ph-past + .ph-past { border-top: 1px solid var(--ph-hairline); }
.ph-av {
  width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  background: var(--ph-field); color: var(--ph-ink-2);
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
}
.ph-past-main { flex: 1; min-width: 0; }
.ph-past-main b { font-size: 14.5px; font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-past-main span { font-size: 12.5px; color: var(--ph-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.ph-past-time { font-size: 12px; color: var(--ph-ink-2); flex-shrink: 0; }

/* Floating record pill */
.ph-float {
  position: absolute; left: 50%; bottom: 92px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--ph-accent); color: #fff;
  padding: 11px 22px; border-radius: 999px; font-size: 14px; font-weight: 600;
  box-shadow: 0 12px 30px -8px color-mix(in srgb, var(--ph-accent) 70%, transparent);
  white-space: nowrap;
}
.ph-float svg { width: 15px; height: 15px; }

/* Tab bar */
.ph-tabs {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  display: flex; justify-content: space-around; align-items: center;
  background: color-mix(in srgb, var(--ph-card) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--ph-hairline);
  border-radius: 26px; padding: 9px 6px 8px;
}
.ph-tab { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--ph-ink-2); font-size: 10.5px; font-weight: 500; padding: 3px 9px; border-radius: 16px; white-space: nowrap; }
.ph-tab svg { width: 20px; height: 20px; }
.ph-tab.on { color: var(--ph-accent); background: color-mix(in srgb, var(--ph-accent) 12%, transparent); }

/* ---- Live recording ---- */
.ph-live { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 4px 18px 0; text-align: center; min-height: 0; }
.ph-live-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--ph-field); border-radius: 999px; padding: 4px 11px;
  font-size: 11.5px; font-weight: 800; color: var(--ph-coral); letter-spacing: 0.08em; margin-top: 2px;
}
.ph-live-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--ph-coral); display: inline-block; }
.ph-live-sub { font-size: 13.5px; color: var(--ph-ink-2); margin-top: 10px; }
.ph-timer { font-size: 54px; font-weight: 800; letter-spacing: -0.03em; margin: 2px 0 10px; font-variant-numeric: tabular-nums; }
.ph-hearing {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--ph-accent-soft); color: var(--ph-accent-softink);
  border-radius: 999px; padding: 6px 13px; font-size: 12.5px; font-weight: 600;
}
.ph-wave { display: flex; align-items: center; gap: 3px; height: 24px; margin: 16px 0 14px; }
.ph-wave i { width: 3.5px; border-radius: 2px; background: var(--ph-accent); height: 30%; }
.ph-cap { font-size: 12.5px; color: var(--ph-ink-2); max-width: 240px; line-height: 1.5; }
.ph-cap b { font-weight: 400; }
.ph-mynotes { align-self: stretch; text-align: left; margin-top: 14px; }
.ph-mynotes-h { font-size: 14px; font-weight: 700; white-space: nowrap; }
.ph-mynotes-h span { font-weight: 400; color: var(--ph-ink-2); font-size: 11px; margin-left: 6px; }
.ph-notepad { background: var(--ph-card); border-radius: 16px; padding: 14px; margin-top: 10px; color: var(--ph-ink-3); font-size: 14px; min-height: 60px; flex: 1; }
.ph-live-foot { display: flex; align-items: center; gap: 12px; padding: 12px 18px 16px; flex-shrink: 0; }
.ph-pause { width: 46px; height: 46px; border-radius: 50%; background: var(--ph-field); display: grid; place-items: center; flex-shrink: 0; }
.ph-pause span { width: 4px; height: 15px; background: var(--ph-ink-2); border-radius: 2px; box-shadow: 7px 0 0 var(--ph-ink-2); margin-right: 7px; }
.ph-stop { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--ph-coral); color: #fff; border-radius: 999px; padding: 15px 12px; font-size: 14.5px; font-weight: 600; white-space: nowrap; }
.ph-stop i { width: 13px; height: 13px; background: #fff; border-radius: 3px; display: inline-block; flex-shrink: 0; }

@media (prefers-reduced-motion: no-preference) {
  .ph-wave i, .ph-hearing-bars i { animation: phwv 1.1s ease-in-out infinite; }
  .ph-live-badge i, .ph-island.rec::after { animation: phpulse 2s ease-in-out infinite; }
}
.ph-wave i:nth-child(3n) { animation-delay: .15s; }
.ph-wave i:nth-child(3n+1) { animation-delay: .3s; }
.ph-wave i:nth-child(4n) { animation-delay: .45s; }
@keyframes phwv { 0%,100% { height: 22%; } 50% { height: 96%; } }
@keyframes phpulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ---- Notes summary ---- */
.ph-detail-head { display: flex; align-items: center; gap: 12px; margin: 4px 0 14px; }
.ph-back { width: 30px; height: 30px; border-radius: 50%; background: var(--ph-card); display: grid; place-items: center; flex-shrink: 0; color: var(--ph-ink); }
.ph-back svg { width: 13px; height: 13px; }
.ph-detail-title { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.ph-seg { display: flex; background: var(--ph-field); border-radius: 999px; padding: 3px; margin-bottom: 14px; }
.ph-seg span { flex: 1; text-align: center; padding: 8px; font-size: 13.5px; font-weight: 600; border-radius: 999px; color: var(--ph-ink-2); }
.ph-seg .on { background: var(--ph-card); color: var(--ph-ink); box-shadow: 0 1px 3px rgba(0,0,0,0.12); }
.ph-keepcurrent {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--ph-accent-soft); color: var(--ph-accent-softink);
  border-radius: 999px; padding: 6px 12px; font-size: 11px; font-weight: 600; margin-bottom: 14px;
  white-space: nowrap;
}
.ph-keepcurrent svg { width: 12px; height: 12px; flex-shrink: 0; }
.ph-notecard { background: var(--ph-card); border-radius: 20px; padding: 18px; }
.ph-note-h { font-size: 17px; font-weight: 700; margin: 14px 0 8px; }
.ph-note-h:first-child { margin-top: 0; }
.ph-note-p { font-size: 14px; color: var(--ph-ink-2); line-height: 1.55; }
.ph-note-b { font-size: 14px; color: var(--ph-ink-2); line-height: 1.5; padding-left: 16px; position: relative; margin-top: 8px; }
.ph-note-b::before { content: ""; position: absolute; left: 2px; top: 8px; width: 4px; height: 4px; border-radius: 50%; background: var(--ph-ink-3); }
.ph-note-b em { font-style: normal; color: var(--ph-ink-3); }

/* ---- To-Do's ---- */
.ph-td-controls { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
.ph-mineseg { display: inline-flex; background: var(--ph-field); border-radius: 999px; padding: 3px; }
.ph-mineseg span { padding: 6px 12px; font-size: 12px; font-weight: 600; border-radius: 999px; color: var(--ph-ink-2); display: inline-flex; gap: 6px; align-items: center; }
.ph-mineseg span em { font-style: normal; color: var(--ph-ink-3); font-weight: 500; }
.ph-mineseg .on { background: var(--ph-card); color: var(--ph-ink); }
.ph-mineseg .on em { color: var(--ph-ink-2); }
.ph-trackbtn { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--ph-hairline); border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 600; color: var(--ph-ink); }
.ph-trackbtn svg { width: 12px; height: 12px; }
.ph-unassigned {
  background: var(--ph-accent-soft); border: 1px solid color-mix(in srgb, var(--ph-accent) 22%, transparent);
  border-radius: 16px; padding: 14px; display: flex; gap: 11px; margin-bottom: 20px;
}
.ph-unassigned svg { width: 20px; height: 20px; color: var(--ph-accent-softink); flex-shrink: 0; margin-top: 1px; }
.ph-unassigned b { font-size: 13px; color: var(--ph-ink); white-space: nowrap; }
.ph-unassigned b em { font-style: normal; color: var(--ph-ink-2); font-weight: 500; margin-left: 4px; }
.ph-unassigned p { font-size: 12.5px; color: var(--ph-ink-2); margin-top: 3px; line-height: 1.45; }
.ph-td-group { font-size: 14px; color: var(--ph-ink-2); font-weight: 600; margin: 4px 2px 10px; }
.ph-td-group em { font-style: normal; color: var(--ph-ink-3); font-weight: 500; margin-left: 4px; }
.ph-td { display: flex; align-items: flex-start; gap: 12px; background: var(--ph-card); border-radius: 16px; padding: 14px; margin-bottom: 10px; }
.ph-cb { width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--ph-accent); flex-shrink: 0; margin-top: 1px; }
.ph-td-main { flex: 1; min-width: 0; }
.ph-td-main b { font-size: 14.5px; font-weight: 600; display: block; line-height: 1.35; }
.ph-fromnotes { display: inline-flex; align-items: center; gap: 4px; background: var(--ph-field); border-radius: 999px; padding: 3px 8px; font-size: 10.5px; color: var(--ph-ink-2); margin-top: 8px; }
.ph-fromnotes svg { width: 10px; height: 10px; }
.ph-owner { display: inline-flex; align-items: center; gap: 5px; background: var(--ph-field); border-radius: 999px; padding: 3px 9px 3px 4px; font-size: 11px; color: var(--ph-ink-2); flex-shrink: 0; }
.ph-owner-av { width: 20px; height: 20px; border-radius: 50%; background: var(--ph-accent); color: #fff; display: grid; place-items: center; font-size: 9px; font-weight: 700; }
.ph-owner-av.grey { background: var(--ph-ink-3); }

/* ---- Processing "Owl is writing your notes" ---- */
.ph-proc-chevron { width: 30px; height: 30px; border-radius: 50%; background: var(--ph-card); display: grid; place-items: center; color: var(--ph-ink-2); margin: 4px 0 14px; }
.ph-proc-chevron svg { width: 14px; height: 14px; }
.ph-proc-title { font-size: 27px; font-weight: 800; letter-spacing: -0.02em; }
.ph-proc-meta { font-size: 13.5px; color: var(--ph-ink-2); margin: 4px 0 18px; }
.ph-proc-card { background: var(--ph-accent-soft); border: 1px solid color-mix(in srgb, var(--ph-accent) 22%, transparent); border-radius: 20px; padding: 18px; }
.ph-proc-head { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 16px; }
.ph-proc-spark { width: 40px; height: 40px; border-radius: 50%; background: var(--ph-accent); display: grid; place-items: center; flex-shrink: 0; }
.ph-proc-spark svg { width: 21px; height: 21px; color: #fff; }
.ph-proc-head b { font-size: 14.5px; display: block; color: var(--ph-ink); white-space: nowrap; }
.ph-proc-head span { font-size: 13px; color: var(--ph-ink-2); }
.ph-proc-step { display: flex; align-items: center; gap: 12px; padding: 7px 0; font-size: 14px; white-space: nowrap; }
.ph-proc-step .done { width: 22px; height: 22px; border-radius: 50%; background: var(--ph-accent); display: grid; place-items: center; flex-shrink: 0; }
.ph-proc-step .done svg { width: 12px; height: 12px; color: #fff; }
.ph-proc-step .wait { width: 22px; height: 22px; border-radius: 50%; border: 1.5px dashed var(--ph-ink-3); flex-shrink: 0; }
.ph-proc-step.is-done { color: var(--ph-ink); font-weight: 600; }
.ph-proc-step.is-wait { color: var(--ph-ink-2); }
.ph-skel { height: 12px; border-radius: 6px; background: var(--ph-field); margin-top: 14px; }
.ph-skel.s1 { width: 92%; } .ph-skel.s2 { width: 96%; } .ph-skel.s3 { width: 60%; }
.ph-skip { position: absolute; left: 18px; right: 18px; bottom: 22px; text-align: center; font-size: 15px; font-weight: 600; color: var(--ph-ink-2); }

/* ---- "Which voice is you?" transcript ---- */
.ph-voice-card { background: var(--ph-accent-soft); border: 1px solid color-mix(in srgb, var(--ph-accent) 30%, transparent); border-radius: 20px; padding: 18px; }
.ph-voice-card h4 { font-size: 17px; font-weight: 700; }
.ph-voice-card p { font-size: 13px; color: var(--ph-ink-2); line-height: 1.5; margin-top: 6px; }
.ph-voice-opt { background: color-mix(in srgb, var(--ph-card) 70%, transparent); border-radius: 12px; padding: 11px 13px; margin-top: 11px; display: flex; gap: 11px; }
.ph-voice-opt b { color: var(--ph-accent-softink); font-size: 13.5px; flex-shrink: 0; }
.ph-voice-opt span { font-size: 13.5px; color: var(--ph-ink); }
.ph-voice-dismiss { font-size: 13.5px; color: var(--ph-ink-2); margin-top: 14px; }
.ph-tx-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ph-ink-2); margin: 18px 2px 12px; }
.ph-tx-meta svg { width: 15px; height: 15px; }
.ph-tx-block { background: var(--ph-card); border-radius: 16px; padding: 14px 16px; }
.ph-tx-spk { color: var(--ph-accent-softink); font-size: 13.5px; font-weight: 600; margin-top: 10px; }
.ph-tx-spk:first-child { margin-top: 0; }
.ph-tx-txt { font-size: 14.5px; color: var(--ph-ink); line-height: 1.5; margin-top: 2px; }

/* ---- Standalone Dynamic Island widget ---- */
.island-demo {
  background: linear-gradient(160deg, #1a2740, #0c1424);
  border-radius: 28px; padding: 30px 22px; display: flex; justify-content: center;
}
.island-live {
  background: #000; color: #fff; border-radius: 26px; padding: 14px 16px;
  width: 300px; display: flex; flex-direction: column; gap: 12px;
}
.island-top { display: flex; align-items: center; gap: 11px; }
.island-mic { width: 40px; height: 40px; border-radius: 11px; background: var(--ph-accent); display: grid; place-items: center; flex-shrink: 0; }
.island-mic svg { width: 20px; height: 20px; color: #fff; }
.island-txt { flex: 1; }
.island-txt b { font-size: 15px; display: block; }
.island-txt span { font-size: 12.5px; color: #F0A23B; display: inline-flex; align-items: center; gap: 6px; }
.island-txt span i { width: 6px; height: 6px; border-radius: 50%; background: #F0A23B; }
.island-time { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.island-ctrl { display: flex; gap: 10px; }
.island-pause { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.14); display: grid; place-items: center; flex-shrink: 0; }
.island-pause span { width: 4px; height: 15px; background: #fff; border-radius: 2px; box-shadow: 6px 0 0 #fff; margin-right: 6px; }
.island-stop { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--ph-coral); color: #fff; border-radius: 999px; font-size: 15px; font-weight: 600; }
.island-stop i { width: 13px; height: 13px; background: #fff; border-radius: 3px; }

/* ---- Showcase layout (preview page only) ---- */
.phone-row { display: flex; flex-wrap: wrap; gap: 40px; justify-content: center; align-items: flex-start; padding: 40px 20px 80px; }
.phone-item { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.phone-cap { max-width: 300px; text-align: center; }
.phone-cap b { font-size: 16px; }
.phone-cap p { font-size: 14px; color: var(--ink-2); margin-top: 4px; }
