/* ==========================================================================
   Paedcentric — Design tokens
   Mirrors the Flutter app's color constants (kBg, kSurface, kTeal, etc.)
   Light mode derives from the same relationships, not just inverted values —
   teal/red/amber are deepened so they stay legible on a white surface.
   ========================================================================== */

:root {
  --pc-bg: #111318;
  --pc-surface: #1A1A20;
  --pc-border: rgba(255,255,255,0.08);
  --pc-teal: #1D9E75;
  --pc-teal-dark: #0E2018;
  --pc-teal-border: #0F6E56;
  --pc-red: #E24B4A;
  --pc-red-bg: #3D1A1A;
  --pc-amber: #EF9F27;
  --pc-text-primary: #FFFFFF;
  --pc-text-secondary: rgba(255,255,255,0.65);
  --pc-text-tertiary: rgba(255,255,255,0.4);
  --pc-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html[data-theme="light"] {
  --pc-bg: #F7F8FA;
  --pc-surface: #FFFFFF;
  --pc-border: rgba(17,19,24,0.08);
  --pc-teal: #0F8A63;
  --pc-teal-dark: #E3F5EE;
  --pc-teal-border: #1D9E75;
  --pc-red: #C7302F;
  --pc-red-bg: #FCEBEB;
  --pc-amber: #A85F0E;
  --pc-text-primary: #111318;
  --pc-text-secondary: rgba(17,19,24,0.65);
  --pc-text-tertiary: rgba(17,19,24,0.45);
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--pc-bg);
  color: var(--pc-text-primary);
  font-family: var(--pc-font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.2s ease, color 0.2s ease;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

:focus-visible {
  outline: 2px solid var(--pc-teal);
  outline-offset: 2px;
}

.pc-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

.pc-section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pc-text-tertiary);
  margin: 0 0 12px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.pc-header {
  border-bottom: 1px solid var(--pc-border);
  background: var(--pc-bg);
  position: sticky;
  top: 0;
  z-index: 20;
}

.pc-header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pc-logo-img { height: 28px; width: auto; }

.pc-nav-list {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.pc-nav-list a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--pc-text-secondary);
}

.pc-nav-list a:hover { color: var(--pc-text-primary); }

.pc-theme-toggle {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--pc-border);
  border-radius: 10px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--pc-text-secondary);
  flex-shrink: 0;
}

.pc-theme-toggle:hover { color: var(--pc-teal); border-color: var(--pc-teal-border); }

.pc-icon-sun, .pc-icon-moon { display: none; }
html[data-theme="dark"] .pc-icon-sun { display: flex; }
html[data-theme="light"] .pc-icon-moon { display: flex; }

@media (max-width: 640px) {
  .pc-nav-list { gap: 16px; }
  .pc-nav-list a { font-size: 13px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.pc-hero {
  text-align: center;
  padding: 64px 20px 48px;
}

.pc-hero-eyebrow {
  color: var(--pc-amber);
  font-weight: 600;
  font-size: 14px;
  margin: 0 0 16px;
}

.pc-hero-title {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin: 0 0 16px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.pc-hero-sub {
  font-size: 17px;
  color: var(--pc-text-secondary);
  max-width: 480px;
  margin: 0 auto 28px;
}

@media (max-width: 640px) {
  .pc-hero-title { font-size: 28px; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.pc-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--pc-teal);
  color: #ffffff !important;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  padding: 15px 30px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(29, 158, 117, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pc-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(29, 158, 117, 0.4); }

.pc-btn-secondary {
  background: transparent;
  color: var(--pc-text-primary) !important;
  border: 1px solid var(--pc-border);
  box-shadow: none;
}

/* ==========================================================================
   Problem / feature sections
   ========================================================================== */

.pc-section {
  padding: 48px 0;
  border-top: 1px solid var(--pc-border);
}

.pc-section-title {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 28px;
  text-align: center;
}

.pc-problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.pc-card {
  background: var(--pc-surface);
  border: 1px solid var(--pc-border);
  border-radius: 16px;
  padding: 20px;
}

.pc-card p { margin: 0; color: var(--pc-text-secondary); font-size: 14px; }

@media (max-width: 640px) {
  .pc-problem-grid { grid-template-columns: 1fr; }
}

/* Feature rows — ordered: Drug calculator, Timeline, Handover */
.pc-feature {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid var(--pc-border);
}

.pc-feature:last-child { border-bottom: none; }

.pc-feature-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--pc-teal-dark);
  color: var(--pc-teal);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pc-feature h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
.pc-feature p { margin: 0; color: var(--pc-text-secondary); font-size: 14px; }

/* Coming soon teaser — matches the "Coming soon" unit card treatment used in-app */
.pc-teaser {
  background: var(--pc-surface);
  border: 1px dashed var(--pc-border);
  border-radius: 16px;
  padding: 20px 24px;
  text-align: center;
  opacity: 0.85;
}

.pc-teaser-badge {
  display: inline-block;
  background: rgba(255,255,255,0.06);
  color: var(--pc-text-tertiary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 20px;
  padding: 4px 12px;
  margin-bottom: 10px;
}

.pc-teaser p { margin: 0; color: var(--pc-text-secondary); font-size: 14px; }

/* ==========================================================================
   Signup form
   ========================================================================== */

.pc-form-section {
  background: var(--pc-surface);
  border: 1px solid var(--pc-border);
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
}

.pc-form-section h2 { margin: 0 0 8px; font-size: 24px; }
.pc-form-section .pc-form-sub { margin: 0 0 24px; color: var(--pc-text-secondary); font-size: 15px; }

.pc-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto;
  text-align: left;
}

.pc-form input,
.pc-form select,
.pc-form textarea {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--pc-border);
  border-radius: 10px;
  padding: 13px 14px;
  color: var(--pc-text-primary);
  font-size: 15px;
  font-family: var(--pc-font);
  outline: none;
}

html[data-theme="light"] .pc-form input,
html[data-theme="light"] .pc-form select,
html[data-theme="light"] .pc-form textarea {
  background: #F7F8FA;
}

.pc-form input:focus,
.pc-form select:focus,
.pc-form textarea:focus {
  border-color: var(--pc-teal);
}

.pc-form textarea { min-height: 90px; resize: vertical; }

.pc-form-note {
  font-size: 12px;
  color: var(--pc-text-tertiary);
  margin-top: 14px;
}

.pc-form-status {
  display: none;
  margin-top: 14px;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 10px;
}

.pc-form-status.pc-status-error {
  display: block;
  background: var(--pc-red-bg);
  color: var(--pc-red);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.pc-footer {
  border-top: 1px solid var(--pc-border);
  padding: 40px 20px 60px;
  text-align: center;
}

.pc-footer-line { color: var(--pc-text-secondary); font-size: 14px; margin: 0 0 16px; }

.pc-footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.pc-footer-links a {
  font-size: 13px;
  color: var(--pc-text-secondary);
  text-decoration: none;
}

.pc-footer-links a:hover { color: var(--pc-teal); }

.pc-footer-copy { font-size: 12px; color: var(--pc-text-tertiary); margin: 0; }

/* ==========================================================================
   Simple content pages (Privacy Policy, Support)
   ========================================================================== */

.pc-content-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 56px 20px 80px;
}

.pc-content-page h1 { font-size: 30px; margin: 0 0 8px; }
.pc-content-page .pc-updated { color: var(--pc-text-tertiary); font-size: 13px; margin: 0 0 32px; }
.pc-content-page h2 { font-size: 19px; margin: 32px 0 10px; }
.pc-content-page h3 { font-size: 16px; margin: 24px 0 8px; }
.pc-content-page p, .pc-content-page li { color: var(--pc-text-secondary); font-size: 15px; line-height: 1.7; }
.pc-content-page ul, .pc-content-page ol { padding-left: 20px; }
.pc-content-page a { color: var(--pc-teal); }
.pc-content-page img { border-radius: 12px; margin: 20px 0; }
.pc-content-page blockquote {
  margin: 20px 0;
  padding: 4px 20px;
  border-left: 3px solid var(--pc-teal-border);
  color: var(--pc-text-secondary);
  font-style: italic;
}
.pc-content-page pre {
  background: var(--pc-surface);
  border: 1px solid var(--pc-border);
  border-radius: 10px;
  padding: 16px;
  overflow-x: auto;
  font-size: 13px;
}
.pc-content-page code {
  background: var(--pc-surface);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
}

/* ==========================================================================
   Blog — archive + single post
   ========================================================================== */

.pc-blog-header {
  text-align: center;
  padding: 56px 20px 8px;
}

.pc-blog-grid {
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

.pc-blog-card {
  padding: 28px 0;
  border-bottom: 1px solid var(--pc-border);
}

.pc-blog-card:first-child { padding-top: 0; }
.pc-blog-card:last-child { border-bottom: none; }

.pc-blog-card-date {
  font-size: 12px;
  color: var(--pc-text-tertiary);
  margin: 0 0 8px;
}

.pc-blog-card h2 { margin: 0 0 8px; font-size: 21px; }
.pc-blog-card h2 a { color: var(--pc-text-primary); text-decoration: none; }
.pc-blog-card h2 a:hover { color: var(--pc-teal); }

.pc-blog-card-excerpt { color: var(--pc-text-secondary); font-size: 15px; margin: 0 0 10px; }

.pc-blog-card-more { font-size: 14px; color: var(--pc-teal); text-decoration: none; font-weight: 600; }

.pc-blog-empty {
  text-align: center;
  color: var(--pc-text-secondary);
  padding: 40px 20px;
}

.pc-post-meta {
  color: var(--pc-text-tertiary);
  font-size: 13px;
  margin: 0 0 32px;
}

.pc-post-nav {
  max-width: 680px;
  margin: 40px auto 0;
  padding: 24px 20px 0;
  border-top: 1px solid var(--pc-border);
  text-align: center;
}

.pc-post-nav a { color: var(--pc-teal); text-decoration: none; font-weight: 600; font-size: 14px; }

.pc-pagination {
  max-width: 680px;
  margin: 20px auto 0;
  padding: 0 20px;
  display: flex;
  justify-content: center;
  gap: 16px;
}

.pc-pagination a, .pc-pagination span {
  font-size: 14px;
  color: var(--pc-text-secondary);
  text-decoration: none;
}

.pc-pagination a:hover { color: var(--pc-teal); }

/* ==========================================================================
   Download page
   ========================================================================== */

.pc-download-hero {
  text-align: center;
  padding: 56px 20px 8px;
}

.pc-download-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  margin: 0 auto 20px;
  display: block;
  box-shadow: 0 8px 24px rgba(29, 158, 117, 0.25);
  object-fit: cover;
}

.pc-download-meta {
  margin-top: 14px;
  font-size: 13px;
  color: var(--pc-text-tertiary);
}

.pc-cta-block {
  text-align: center;
  margin: 8px 0 40px;
}

.pc-trust {
  background: var(--pc-surface);
  border: 1px solid var(--pc-border);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 40px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.pc-trust-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pc-teal);
  margin-top: 7px;
  flex-shrink: 0;
}

.pc-trust p { margin: 0; font-size: 14px; color: var(--pc-text-secondary); }
.pc-trust strong { color: var(--pc-text-primary); }

.pc-download-steps {
  max-width: 640px;
  margin: 0 auto 40px;
}

.pc-step {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--pc-border);
}

.pc-step:last-child { border-bottom: none; }

.pc-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--pc-teal-dark);
  color: var(--pc-teal);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pc-step-body h4 { margin: 2px 0 4px; font-size: 15px; font-weight: 600; color: var(--pc-text-primary); }
.pc-step-body p { margin: 0; font-size: 14px; color: var(--pc-text-secondary); }

.pc-mock {
  background: var(--pc-surface);
  border: 1px solid var(--pc-border);
  border-radius: 16px;
  padding: 20px;
  margin-top: 10px;
}

.pc-mock-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--pc-text-secondary);
  padding: 10px 12px;
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
}

html[data-theme="light"] .pc-mock-row { background: rgba(17,19,24,0.04); }

.pc-mock-toggle {
  width: 38px;
  height: 22px;
  border-radius: 12px;
  background: var(--pc-teal);
  position: relative;
  flex-shrink: 0;
}

.pc-mock-toggle::after {
  content: '';
  position: absolute;
  top: 3px; right: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
}

.pc-download-footnote {
  text-align: center;
  font-size: 13px;
  color: var(--pc-text-tertiary);
  margin: 48px 0 60px;
  line-height: 1.7;
}

.pc-download-footnote a { color: var(--pc-teal); text-decoration: none; }

@media (max-width: 480px) {
  .pc-download-hero { padding: 40px 16px 8px; }
}

/* ==========================================================================
   Demo page
   ========================================================================== */

.pc-demo-wrap { padding: 24px 20px 80px; }

.pc-demo-stage {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  gap: 48px;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
}

/* Phone shell — deliberately fixed dark hex values, not theme tokens.
   This depicts the actual app, which is dark-only by decision, regardless
   of what the surrounding website is set to. */
.pc-demo-phone {
  width: 300px;
  background: #0f0f0f;
  border-radius: 32px;
  padding: 10px;
  flex-shrink: 0;
}

.pc-demo-screen-frame {
  background: #111318;
  border-radius: 24px;
  overflow: hidden;
  min-height: 560px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pc-demo-statusbar {
  display: flex;
  justify-content: space-between;
  padding: 10px 16px 2px;
  color: #fff;
  font-size: 10px;
  opacity: 0.7;
}

.pc-demo-screen {
  display: none;
  flex-direction: column;
  padding: 8px 14px 14px;
  flex: 1;
  position: relative;
}

.pc-demo-screen.is-active { display: flex; }

.pc-demo-topbar { margin-bottom: 10px; }
.pc-demo-toptitle { color: #fff; font-size: 17px; font-weight: 600; }
.pc-demo-sub2 { color: rgba(255,255,255,0.45); font-size: 11px; margin-top: 2px; }
.pc-demo-backrow { display: flex; align-items: center; gap: 8px; }
.pc-demo-back { color: rgba(255,255,255,0.5); font-size: 18px; }

.pc-demo-sync { display: flex; align-items: center; gap: 5px; font-size: 10px; color: #1D9E75; margin-top: 2px; }
.pc-demo-syncdot { width: 6px; height: 6px; border-radius: 50%; background: #1D9E75; }

.pc-demo-alert {
  background: #3D1A1A;
  border: 1px solid rgba(226,75,74,0.3);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.pc-demo-alertdot { width: 7px; height: 7px; border-radius: 50%; background: #E24B4A; flex-shrink: 0; }
.pc-demo-alerttext { font-size: 11px; color: #f09595; }

.pc-demo-sectionlabel {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin: 0 0 8px;
}

.pc-demo-unitcard {
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: box-shadow 0.3s ease;
}
.pc-demo-unit-scbu { background: #0e1f1a; }
.pc-demo-unit-chew { background: #1a0e0e; }
.pc-demo-unitcard.pc-demo-glow { box-shadow: 0 0 0 2px #1D9E75; }

.pc-demo-unitrow { display: flex; justify-content: space-between; margin-bottom: 8px; }
.pc-demo-unitname { font-size: 14px; font-weight: 600; color: #fff; }
.pc-demo-unitsub { font-size: 10px; color: rgba(255,255,255,0.45); margin-top: 1px; }
.pc-demo-unitbadge { border-radius: 20px; padding: 3px 8px; font-size: 10px; font-weight: 600; }
.pc-badge-scbu { background: #0F6E56; color: #9FE1CB; }
.pc-badge-chew { background: #7c1a1a; color: #f0a0a0; }

.pc-demo-pills { display: flex; gap: 5px; flex-wrap: wrap; }
.pc-demo-pill {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 4px 8px;
  font-size: 10px;
  color: rgba(255,255,255,0.7);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.pc-demo-pill.pc-pill-alert { border-color: rgba(226,75,74,0.5); color: #f09595; }
.pc-demo-pill.pc-demo-glow { box-shadow: 0 0 0 2px #1D9E75; border-color: #1D9E75; color: #fff; }

.pc-demo-listcard {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 8px;
}

.pc-demo-addbtn {
  margin-top: 6px;
  align-self: flex-start;
  background: #1D9E75;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 20px;
}

.pc-demo-fieldlabel {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin: 10px 0 4px;
}
.pc-demo-fieldvalue {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  color: #fff;
}

.pc-demo-calcresult {
  margin-top: 16px;
  background: #0e2018;
  border: 1px solid #0F6E56;
  border-radius: 12px;
  padding: 14px;
}
.pc-demo-calc-label { font-size: 10px; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.pc-demo-calc-value { font-size: 17px; font-weight: 700; color: #1D9E75; }
.pc-demo-calcresult[data-calc-state="idle"] .pc-demo-calc-value { color: rgba(255,255,255,0.3); }

.pc-demo-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.pc-demo-modal {
  background: #1A1A20;
  border: 1px solid rgba(226,75,74,0.4);
  border-radius: 16px;
  padding: 20px;
}
.pc-demo-modal-title { color: #fff; font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.pc-demo-modal-text { color: rgba(255,255,255,0.6); font-size: 12px; margin: 0 0 16px; line-height: 1.5; }
.pc-demo-modal-actions { display: flex; gap: 10px; justify-content: flex-end; }
.pc-demo-modal-btn { font-size: 12px; font-weight: 600; padding: 8px 14px; border-radius: 10px; }
.pc-demo-modal-cancel { color: rgba(255,255,255,0.6); }
.pc-demo-modal-confirm { background: #E24B4A; color: #fff; }

.pc-demo-taskrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: 12px;
  background: rgba(255,255,255,0.04);
}
.pc-demo-tasktag { font-size: 10px; font-weight: 600; padding: 3px 8px; border-radius: 10px; }
.pc-task-overdue { color: #f09595; }
.pc-task-overdue .pc-demo-tasktag { background: rgba(226,75,74,0.2); color: #f09595; }
.pc-task-due { color: rgba(255,255,255,0.85); }
.pc-task-due .pc-demo-tasktag { background: rgba(239,159,39,0.15); color: #EF9F27; }
.pc-task-done { color: rgba(255,255,255,0.4); }
.pc-task-done .pc-demo-tasktag { background: rgba(29,158,117,0.15); color: #1D9E75; }

.pc-demo-handovertext {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 14px;
  font-size: 11px;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
  margin-bottom: 14px;
}

.pc-demo-whatsappbtn {
  background: #1D9E75;
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  padding: 12px;
  border-radius: 12px;
  transition: opacity 0.2s ease;
}
.pc-demo-whatsappbtn[data-wa-state="sent"] { background: rgba(29,158,117,0.15); color: #1D9E75; }

/* ---- Panel outside the phone: theme-aware, matches the rest of the site ---- */

.pc-demo-panel {
  max-width: 340px;
  padding-top: 20px;
}

.pc-demo-caption {
  font-size: 18px;
  font-weight: 500;
  color: var(--pc-text-primary);
  min-height: 84px;
  margin: 0 0 20px;
}

.pc-demo-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
}
.pc-demo-progress span {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: var(--pc-border);
}
.pc-demo-progress span.is-done { background: var(--pc-teal); }

.pc-demo-controls { display: flex; align-items: center; gap: 14px; }

.pc-demo-ctrl {
  background: var(--pc-surface);
  border: 1px solid var(--pc-border);
  color: var(--pc-text-secondary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
}
.pc-demo-ctrl-main { background: var(--pc-teal); color: #fff; border: none; }

.pc-demo-replay {
  background: none;
  border: none;
  color: var(--pc-teal);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  padding: 8px 0;
}

@media (prefers-reduced-motion: reduce) {
  .pc-demo-unitcard, .pc-demo-pill, .pc-demo-whatsappbtn { transition: none; }
}

@media (max-width: 720px) {
  .pc-demo-stage { flex-direction: column; align-items: center; }
  .pc-demo-panel { max-width: 300px; text-align: center; }
  .pc-demo-controls { justify-content: center; }
}
