/* Overlap website: only what's Overlap's own. Everything else comes from studio.css (loaded first).
   Flat colours and hairlines only, per the studio rules in README.md.
   Day-part colours are the app's (src dayPartColors.json). */

:root {
  --accent-light: #1b4ed8; --accent-dark: #6b93f6;
  --on-accent-light: #fff; --on-accent-dark: #0a0a0a;

  --morning: #F4B740; --morning-soft: #FCEFD2; --morning-deep: #8A5A00;
  --afternoon: #3DB4EE; --afternoon-soft: #D9F0FC; --afternoon-deep: #0B6A99;
  --evening: #F7845A; --evening-soft: #FDE3D8; --evening-deep: #A3401B;
  --night: #8088F2; --night-soft: #E3E5FD; --night-deep: #3D45B8;
  --asleep: #9AA1AE; --asleep-soft: #E8EAEE; --asleep-deep: #4B5260;
  /* "Ink": a day-part colour that reads on the page, used as the studio --tint for icons and chips. */
  --ink-morning: var(--morning-deep); --ink-afternoon: var(--afternoon-deep); --ink-evening: var(--evening-deep);
  --ink-night: var(--night-deep); --ink-asleep: var(--asleep-deep);

  --track: var(--secondary);   /* empty part of a day ring */
  --sleep: var(--secondary);   /* asleep stretch in the planner */
  --live: #22a355;

  /* The globe's night sky, the same in light and dark mode. */
  --space: #07080c; --space-card: #14151b; --space-border: #24252d; --space-fg: #f5f5f7; --space-muted: #9aa0b4;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink-morning: var(--morning); --ink-afternoon: var(--afternoon); --ink-evening: var(--evening);
    --ink-night: var(--night); --ink-asleep: var(--asleep);
    --live: #34c46a;
  }
}

/* -- Pieces drawn like the app: day-part pill and the day ring around an avatar ----------------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; line-height: 16px; font-weight: 700; white-space: nowrap; }
.pill i { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.ring { position: relative; display: inline-block; flex: none; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring b { position: absolute; border-radius: 50%; display: grid; place-items: center; font-weight: 700; }

/* -- Store buttons: App Store is a label until the iOS app ships -------------------------------- */
.btn.soon { cursor: default; color: var(--muted-fg); }
.btn.soon:hover { background: var(--surface-2); }
.btn.soon small { padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); font-size: 11px; line-height: 16px; font-weight: 500; }

/* -- Hero globe: the app's globe, flat, on a flat night sky in a hairline card ------------------ */
.space {
  position: relative; overflow: hidden; max-width: 64rem; margin-top: 56px; padding: 24px 16px 20px;
  border-radius: var(--radius-2xl); border: 1px solid var(--line); background: var(--space); color: var(--space-fg);
}
.live {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 10px; border-radius: 999px;
  background: var(--space-card); border: 1px solid var(--space-border); font-size: 12px; line-height: 16px; font-weight: 500; color: var(--space-muted);
}
.live b { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; outline: 3px solid #123d24; }
.stage { position: relative; width: min(560px, 100%); aspect-ratio: 1; margin: 16px auto 0; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; }
.space-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 16px; }
.pin { position: absolute; left: 0; top: 0; opacity: 0; will-change: transform; text-align: left; }
.pin .dot { position: absolute; width: 14px; height: 14px; left: -7px; top: -7px; border-radius: 50%; border: 2.5px solid #fff; }
.pin-card {
  position: absolute; left: 14px; top: -22px; display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 6px;
  border-radius: 999px; background: var(--space-card); border: 1px solid var(--space-border); white-space: nowrap;
  --track: #2c2d36; --ring-bg: var(--space-card);
}
.pin.flip .pin-card { left: auto; right: 14px; }
.pin .t { font-size: 14px; line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }
.pin .t small { display: block; font-size: 11px; font-weight: 500; color: var(--space-muted); }
.pin .pill { font-size: 11px; padding: 2px 8px; }
@media (max-width: 519px) { .pin .pill { display: none; } }
@media (min-width: 768px) { .space { padding: 28px 32px 24px; } .stage { margin-top: 8px; } }
@media (prefers-color-scheme: dark) { .space { border-color: var(--border); } }

/* -- At a glance: one card per friend, in the colour of their part of the day -------------------- */
.clocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.clock {
  display: flex; flex-direction: column; min-width: 0; height: 220px; padding: 16px; border-radius: var(--radius-2xl);
  --track: #0000001a; --ring-bg: transparent;
}
.clock:first-child { grid-column: span 2; height: 190px; }
.clock .top { display: flex; align-items: center; gap: 10px; line-height: 1.2; min-width: 0; }
.clock .top strong { display: block; font-size: 14px; font-weight: 700; letter-spacing: -0.02em; }
.clock .top small { font-size: 12px; opacity: .8; }
.clock .time { margin-top: auto; font-size: 42px; line-height: 1; font-weight: 500; letter-spacing: -1.6px; white-space: nowrap; }
.clock .time sup { position: relative; top: 4px; margin-left: 3px; font-size: 13px; font-weight: 700; letter-spacing: 0; vertical-align: top; }
.clock-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; font-size: 12px; font-weight: 500; }
.clock-foot span:first-child { display: none; }
.clock .pill { background: #fff !important; }
.note { margin-top: 16px; font-size: 13px; line-height: 1.6; color: var(--muted-fg); }
.note b { display: inline-flex; align-items: center; gap: 6px; margin-right: 8px; color: var(--fg); font-weight: 700; }
.note b::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--live); }
@media (min-width: 640px) {
  .clocks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .clock:first-child { grid-column: auto; height: 240px; }
  .clock { height: 240px; }
  .clock:nth-child(n+4) { display: none; }
  .clock-foot span:first-child { display: inline; }
}
@media (min-width: 1024px) {
  .clocks { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
  .clock, .clock:first-child { height: 280px; padding: 18px; }
  .clock:nth-child(n+4) { display: flex; }
  .clock .time { font-size: 50px; letter-spacing: -2px; }
  .clock .time sup { font-size: 15px; top: 6px; }
}

/* -- Plan a call: the planner board on the visitor's own day ------------------------------------- */
.board { padding: 16px 12px; border-radius: var(--radius-2xl); border: 1px solid var(--line); background: var(--card); }
.bhead { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; }
.bhead h3 { font-size: 15px; font-weight: 700; letter-spacing: -0.025em; }
.bhead .best { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; font-size: 13px; color: var(--muted-fg); }
.bhead .best b { padding: 4px 12px; border-radius: var(--radius); background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 700; white-space: nowrap; }
.lanes-grid { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 8px; }
.ticks { grid-column: 2; display: flex; justify-content: space-between; padding-bottom: 8px; font-size: 11px; font-weight: 500; color: var(--muted-fg); }
.ticks .minor { display: none; }
.who { display: flex; align-items: center; gap: 12px; height: 58px; line-height: 1.2; }
.who div { display: none; }
.who strong { display: block; font-size: 14px; font-weight: 700; letter-spacing: -0.02em; }
.who small { font-size: 12px; color: var(--muted-fg); }
.lanes { position: relative; }
.lane { position: absolute; left: 0; right: 0; height: 58px; }
.lane .bar { position: absolute; top: 17px; height: 24px; border-radius: 6px; }
.bestband { position: absolute; top: -4px; bottom: -4px; border-radius: 10px; background: var(--accent-soft); border: 1.5px dashed var(--accent); }
.nowline { position: absolute; top: -28px; bottom: -4px; width: 2px; margin-left: -1px; border-radius: 2px; background: var(--fg); }
.nowline span { position: absolute; top: -2px; left: 50%; transform: translateX(-50%); padding: 1px 8px; border-radius: 999px; background: var(--fg); color: var(--bg); font-size: 11px; font-weight: 700; }
.legend { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
@media (min-width: 768px) {
  .board { padding: 20px 24px; }
  .bhead .best { width: auto; margin-left: auto; }
  .lanes-grid { grid-template-columns: 180px minmax(0, 1fr); column-gap: 12px; }
  .ticks .minor { display: inline; }
  .who div { display: block; }
  .legend { justify-content: flex-end; }
}

/* -- Screens: the shots are taller than the studio frame, so keep the top of the screen ---------- */
.phone img { object-position: top; }

/* -- Text pages: contact tiles are links on the support page ------------------------------------- */
a.tile { transition: border-color .15s, background-color .15s; }
a.tile:hover { border-color: var(--line-strong); background: color-mix(in srgb, var(--secondary) 30%, var(--bg)); }
.prose .search { margin-bottom: 0; }
.prose em { font-style: normal; color: var(--faint-fg); }
