/* punchbar.app — one stylesheet for all pages.
   System fonts only and no external requests (keeps the privacy policy
   short and true). No inline styles or scripts, so a strict CSP works. */

:root {
  --brand: #0F766E;
  --brand-strong: #115E59;
  --brand-soft: #CCFBF1;
  --on-brand: #FFFFFF;
  --bg: #FAFAF9;
  --bg-alt: #F5F5F4;
  --surface: #FFFFFF;
  --text: #1C1917;
  --muted: #57534E;
  --faint: #A8A29E;
  --line: #E7E5E4;
  --shadow: 0 30px 80px rgba(28, 25, 23, 0.22), 0 2px 8px rgba(28, 25, 23, 0.08);
  --radius: 18px;

  /* The panel mock mimics macOS light appearance */
  --p-bg: rgba(250, 250, 249, 0.86);
  --p-text: #1C1917;
  --p-muted: #78716C;
  --p-line: rgba(28, 25, 23, 0.10);
  --p-field: rgba(255, 255, 255, 0.9);
  --p-chip: rgba(28, 25, 23, 0.06);
  --p-accent: #0A84FF;       /* macOS system accent in the real app */
  --p-block: rgba(28, 25, 23, 0.07);
  --menubar: rgba(255, 255, 255, 0.55);
  --menubar-text: #1C1917;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #2DD4BF;
    --brand-strong: #5EEAD4;
    --brand-soft: #134E4A;
    --on-brand: #042F2E;
    --bg: #0C0A09;
    --bg-alt: #151312;
    --surface: #1C1917;
    --text: #F5F5F4;
    --muted: #A8A29E;
    --faint: #78716C;
    --line: #292524;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.4);

    --p-bg: rgba(38, 35, 33, 0.86);
    --p-text: #F5F5F4;
    --p-muted: #A8A29E;
    --p-line: rgba(255, 255, 255, 0.10);
    --p-field: rgba(255, 255, 255, 0.07);
    --p-chip: rgba(255, 255, 255, 0.09);
    --p-block: rgba(255, 255, 255, 0.08);
    --menubar: rgba(20, 18, 17, 0.55);
    --menubar-text: #F5F5F4;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header & footer ---------- */
header.site { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); }
.brand img { width: 30px; height: 30px; }
.brand:hover { text-decoration: none; }
nav.top { display: flex; align-items: center; gap: 22px; font-size: 15px; }
nav.top a { color: var(--muted); }
nav.top a:hover { color: var(--text); text-decoration: none; }
footer.site { border-top: 1px solid var(--line); margin-top: 96px; padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
footer.site .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer.site nav a { color: var(--muted); }
footer.site p { margin: 6px 0; max-width: 720px; }

/* ---------- Buttons & small parts ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 16px; border: 1px solid transparent; }
.btn:hover { text-decoration: none; }
.btn.primary { background: var(--brand); color: var(--on-brand); }
.btn.primary:hover { background: var(--brand-strong); }
.btn.ghost { color: var(--text); border-color: var(--line); background: var(--surface); }
.btn .icon { width: 18px; height: 18px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.soon { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.soon::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }

/* ---------- Hero ---------- */
.hero { text-align: center; padding-top: 72px; }
.hero h1 { font-size: clamp(38px, 6.2vw, 66px); line-height: 1.05; letter-spacing: -0.035em; margin: 0 auto 18px; max-width: 900px; font-weight: 750; }
.hero h1 span { color: var(--brand); white-space: nowrap; }
.hero .lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 660px; margin: 0 auto 30px; }
.hero .cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 22px; }

/* Desktop backdrop with the menu bar and the dropped-down panel */
.desk { position: relative; margin: 56px auto 0; max-width: 1040px; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow);
  background:
    radial-gradient(120% 90% at 85% 0%, #5EEAD4 0%, transparent 55%),
    radial-gradient(90% 80% at 10% 100%, #6366F1 0%, transparent 60%),
    linear-gradient(135deg, #0F766E 0%, #1E3A8A 100%); }
@media (prefers-color-scheme: dark) {
  .desk { background:
    radial-gradient(120% 90% at 85% 0%, #0F766E 0%, transparent 60%),
    radial-gradient(90% 80% at 10% 100%, #312E81 0%, transparent 60%),
    linear-gradient(135deg, #042F2E 0%, #0B1025 100%); }
}
.desk .menubar { display: flex; justify-content: space-between; align-items: center; height: 30px; padding: 0 14px; background: var(--menubar); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); color: var(--menubar-text); font-size: 13px; }
.desk .menubar .left { display: flex; gap: 18px; font-weight: 500; }
.desk .menubar .left b { font-weight: 700; }
.desk .menubar .right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.desk .menubar svg { width: 17px; height: 13px; display: block; fill: currentColor; }
.desk .menubar .item { font-weight: 600; font-variant-numeric: tabular-nums; padding: 1px 8px; border-radius: 5px; background: rgba(128, 128, 128, 0.28); }
.desk .stage { display: flex; justify-content: flex-end; padding: 6px 66px 44px 20px; }

/* ---------- Panel mock (mirrors the real two-column panel) ---------- */
.panel { width: 595px; flex: none; display: grid; grid-template-columns: 380px 1px 214px; background: var(--p-bg); color: var(--p-text); border-radius: 12px; border: 1px solid var(--p-line); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); backdrop-filter: blur(30px) saturate(160%); -webkit-backdrop-filter: blur(30px) saturate(160%); text-align: left; font-size: 12px; line-height: 1.35; overflow: hidden; }
.panel .sep { background: var(--p-line); }
.panel .col { padding: 12px; }
.panel .muted { color: var(--p-muted); }
.panel .run { display: flex; justify-content: space-between; align-items: flex-start; }
.panel .run .key { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.panel .run .key i { width: 8px; height: 8px; border-radius: 50%; background: var(--p-accent); }
.panel .run .key small { font-size: 11px; font-weight: 400; color: var(--p-muted); }
.panel .clock { font-size: 30px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.panel .tools { display: flex; gap: 11px; color: var(--p-muted); padding-top: 3px; }
.panel .tools .icon { width: 15px; height: 15px; stroke-width: 1.7; }
.panel .field { margin-top: 8px; padding: 5px 8px; border-radius: 6px; background: var(--p-field); border: 1px solid var(--p-line); }
.panel .actions { display: flex; gap: 6px; margin-top: 8px; }
.panel .b { padding: 6px 10px; border-radius: 7px; background: var(--p-chip); font-weight: 500; text-align: center; }
.panel .b.main { flex: 1; background: var(--p-accent); color: #fff; font-weight: 600; }
.panel .b.del { color: #EF4444; display: flex; align-items: center; }
.panel .b .icon { width: 14px; height: 14px; }
.panel .dayline { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 11px; color: var(--p-muted); }
.panel .dayline .track { flex: 1; height: 4px; border-radius: 2px; background: var(--p-block); overflow: hidden; }
.panel .dayline .track span { display: block; height: 100%; width: 64%; background: var(--p-accent); }
.panel hr { border: 0; border-top: 1px solid var(--p-line); margin: 12px -12px; }
.panel .hint { font-size: 10.5px; color: var(--p-muted); }
.panel .chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 7px 0; }
.panel .chip { padding: 3px 8px; border-radius: 999px; background: var(--p-chip); font-weight: 600; font-size: 11px; }
.panel .chip.on { box-shadow: inset 0 0 0 1px var(--p-accent); color: var(--p-accent); }
.panel .search { display: flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 7px; background: var(--p-field); border: 1px solid var(--p-line); color: var(--p-muted); }
.panel .search .icon { width: 13px; height: 13px; }
.panel .startrow { display: flex; gap: 6px; margin-top: 8px; }
.panel .startrow .b.main { background: var(--p-chip); color: var(--p-muted); }
.panel .footer { display: flex; gap: 14px; margin: 12px -12px -12px; padding: 7px 12px; border-top: 1px solid var(--p-line); font-size: 11px; color: var(--p-muted); }
.panel .footer span:last-child { margin-left: auto; }

.panel .seg { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--p-chip); border-radius: 6px; padding: 2px; font-size: 11px; text-align: center; margin-bottom: 8px; }
.panel .seg span { padding: 2px 0; border-radius: 5px; }
.panel .seg span.on { background: var(--p-field); box-shadow: 0 1px 2px rgba(0,0,0,0.12); font-weight: 600; }
/* Day timeline: 08:00–15:00, 44px per hour */
.cal { position: relative; height: 330px; margin-left: 26px; }
.cal .h { position: absolute; left: -26px; right: 0; border-top: 1px solid var(--p-line); font-size: 9px; color: var(--p-muted); }
.cal .h span { position: relative; top: -7px; background: transparent; }
.cal .blk { position: absolute; left: 2px; right: 2px; border-radius: 4px; background: var(--p-block); border-left: 3px solid var(--c, #8B5CF6); padding: 2px 5px; font-size: 9.5px; overflow: hidden; }
.cal .blk b { font-weight: 600; }
.cal .blk.meet { left: 50%; border-left: 0; background: rgba(120, 113, 108, 0.16); color: var(--p-muted); font-style: italic; z-index: 2; }
.cal .blk.gap { background: color-mix(in srgb, var(--p-accent) 9%, transparent); border: 1px dashed color-mix(in srgb, var(--p-accent) 45%, transparent); color: var(--p-accent); }
.cal .blk.live { box-shadow: inset 0 0 0 1px var(--p-accent); border-left-color: var(--p-accent); }
.cal .now { position: absolute; left: -4px; right: 0; border-top: 1px solid #EF4444; z-index: 3; }
.cal .now::before { content: ""; position: absolute; left: -2px; top: -3px; width: 5px; height: 5px; border-radius: 50%; background: #EF4444; }
/* Positions: top = (hour - 8) * 44px */
.t0830 { top: 22px; } .t0930 { top: 66px; } .t1000 { top: 88px; } .t1115 { top: 143px; } .t1200 { top: 176px; } .t1312 { top: 229px; } .t1400 { top: 264px; } .t1425 { top: 282px; }
.d90 { height: 64px; } .d15 { height: 11px; } .d75 { height: 53px; } .d45 { height: 31px; } .d72 { height: 51px; } .d73 { height: 52px; } .d60 { height: 42px; }
.cal .h.h8 { top: 0; } .cal .h.h9 { top: 44px; } .cal .h.h10 { top: 88px; } .cal .h.h11 { top: 132px; } .cal .h.h12 { top: 176px; } .cal .h.h13 { top: 220px; } .cal .h.h14 { top: 264px; } .cal .h.h15 { top: 308px; }
.c-api { --c: #8B5CF6; } .c-web { --c: #F59E0B; } .c-int { --c: #10B981; }

/* Scale the fixed-size mock on smaller screens */
@media (max-width: 1060px) { .desk .stage { padding-right: 40px; } }
@media (max-width: 760px) {
  .desk .stage { justify-content: center; padding: 6px 8px 24px; }
  .desk .panel { zoom: 0.62; }
  .desk .menubar .left { display: none; }
}
@media (max-width: 440px) { .desk .panel { zoom: 0.55; } }

/* Real recording / screenshot in the hero */
.shot { margin: 56px auto 0; max-width: 1000px; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); background: #1c1917; }
.shot video, .shot img { display: block; width: 100%; height: auto; }
.visual img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18); }
.visual img.bare { border-radius: 0; box-shadow: none; }
@media (max-width: 560px) { .shot { border-radius: 14px; margin-top: 40px; } }

/* ---------- Trust bar ---------- */
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin: 40px auto 0; color: var(--muted); font-size: 15px; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust .icon { width: 18px; height: 18px; color: var(--brand); }

/* ---------- Story sections ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-top: 120px; }
.story.flip .text { order: 2; }
.story h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 14px; }
.story p { color: var(--muted); font-size: 18px; margin: 0 0 14px; }
.story ul { list-style: none; padding: 0; margin: 18px 0 0; }
.story li { display: flex; gap: 10px; margin: 8px 0; color: var(--text); font-size: 16px; }
.story li .icon { width: 20px; height: 20px; color: var(--brand); margin-top: 2px; }
.visual { border-radius: var(--radius); padding: 36px; display: flex; justify-content: center; align-items: center; background: linear-gradient(145deg, var(--brand-soft), var(--bg-alt)); min-height: 360px; }
.visual .panel { width: auto; display: block; box-shadow: 0 18px 50px rgba(0,0,0,0.18); }
.visual .panel.solo-left { width: 380px; }
.visual .panel.solo-cal { width: 250px; }
.visual .panel.solo-cal .cal { height: 330px; }
@media (max-width: 860px) {
  .story { grid-template-columns: 1fr; gap: 28px; margin-top: 88px; }
  .story.flip .text { order: 0; }
  .visual { padding: 24px 12px; min-height: 0; }
  .visual .panel.solo-left { zoom: 0.85; }
}
@media (max-width: 420px) { .visual .panel.solo-left { zoom: 0.78; } }

/* Insights visual */
.insights { width: 400px; max-width: 100%; background: var(--p-bg); color: var(--p-text); border: 1px solid var(--p-line); border-radius: 12px; padding: 16px; box-shadow: 0 18px 50px rgba(0,0,0,0.18); font-size: 12px; }
.insights .kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.insights .kpi small { display: block; color: var(--p-muted); font-size: 10.5px; }
.insights .kpi b { font-size: 18px; font-weight: 650; font-variant-numeric: tabular-nums; }
.insights .kpi b.neg { color: #EF4444; }
.insights .chart { display: flex; align-items: flex-end; gap: 7px; height: 130px; margin-top: 16px; padding-bottom: 18px; position: relative; border-bottom: 1px solid var(--p-line); }
.insights .chart::after { content: ""; position: absolute; left: 0; right: 0; bottom: 98px; border-top: 1px dashed var(--p-muted); opacity: 0.5; }
.insights .bar { flex: 1; background: var(--p-accent); border-radius: 3px 3px 0 0; opacity: 0.85; position: relative; }
.insights .bar span { position: absolute; bottom: -17px; left: 0; right: 0; text-align: center; font-size: 9.5px; color: var(--p-muted); }
.b1 { height: 78%; } .b2 { height: 84%; } .b3 { height: 80%; } .b4 { height: 92%; } .b5 { height: 76%; } .b6 { height: 86%; } .b7 { height: 70%; } .b8 { height: 88%; }
.insights .split { display: flex; height: 10px; border-radius: 5px; overflow: hidden; margin-top: 16px; }
.insights .split i { display: block; }
.s1 { width: 38%; background: #F59E0B; } .s2 { width: 27%; background: #8B5CF6; } .s3 { width: 17%; background: #10B981; } .s4 { width: 18%; background: var(--p-muted); }
.insights .legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-size: 10.5px; color: var(--p-muted); }
.insights .legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 4px; vertical-align: 0; }

/* ---------- More features grid ---------- */
section.more { margin-top: 120px; }
section.more h2, section.faq h2, section.privacy h2 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.02em; margin: 0 0 28px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px 32px; }
.feat .icon { width: 26px; height: 26px; color: var(--brand); margin-bottom: 8px; }
.feat h3 { font-size: 17px; margin: 0 0 4px; }
.feat p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Privacy band ---------- */
section.privacy { margin-top: 120px; padding: 48px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); display: grid; grid-template-columns: 90px 1fr; gap: 28px; }
section.privacy > .icon { width: 72px; height: 72px; color: var(--brand); stroke-width: 1.3; }
section.privacy h2 { margin-bottom: 10px; }
section.privacy p { color: var(--muted); margin: 0 0 16px; }
section.privacy ul { margin: 0; padding-left: 1.1em; color: var(--muted); }
@media (max-width: 700px) { section.privacy { grid-template-columns: 1fr; padding: 28px; } section.privacy > .icon { width: 48px; height: 48px; } }

/* ---------- FAQ & closing ---------- */
section.faq { margin-top: 120px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin: 10px 0; }
details summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 2px; color: var(--muted); }
.closing { text-align: center; margin-top: 110px; }
.closing img { width: 88px; height: 88px; }
.closing h2 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -0.025em; margin: 14px 0 10px; }
.closing p { color: var(--muted); margin: 0 0 24px; }

/* ---------- Text pages ---------- */
main.doc { padding-top: 48px; max-width: 760px; }
main.doc h1 { font-size: 38px; line-height: 1.15; margin: 0 0 8px; letter-spacing: -0.02em; }
main.doc h2 { font-size: 21px; margin: 36px 0 8px; }
main.doc h3 { font-size: 17px; margin: 24px 0 4px; }
main.doc .meta { color: var(--muted); font-size: 15px; }
.placeholder { background: #FEF08A; color: #1C1917; padding: 0 4px; border-radius: 3px; }
code { font: 14px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--line); padding: 1px 5px; border-radius: 4px; }

@media (max-width: 560px) {
  nav.top { gap: 14px; font-size: 14px; }
  nav.top a.hide-sm { display: none; }
  .hero { padding-top: 48px; }
  .desk { border-radius: 14px; margin-top: 40px; }
}
