/* ==========================================================================
   Platform JW — product pages (product, sectors, user manual)
   Builds on base.css tokens. WhatsApp colors live only inside the chat mockup.
   ========================================================================== */

[hidden] { display: none !important; }

/* --- Product hero: text + phone --- */
.pf-hero {
  padding-top: calc(var(--header-h) + 72px);
  padding-bottom: 96px;
  background:
    radial-gradient(60% 50% at 70% 0%, rgba(109, 74, 255, 0.18) 0%, transparent 70%),
    var(--bg);
  overflow: hidden;
}
.pf-hero-inner {
  display: grid;
  gap: 56px;
  align-items: center;
}
@media (min-width: 960px) {
  .pf-hero-inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
}
.pf-hero .hero-title { max-width: 13ch; }
.pf-hero .hero-actions { justify-content: flex-start; }
.pf-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.pf-kicker svg { width: 22px; height: 22px; color: var(--ink); }
.pf-note { margin-top: 28px; font-size: 0.875rem; color: var(--ink-3); max-width: 46ch; }
.crumbs { font-size: 0.875rem; color: var(--ink-3); margin-bottom: 18px; }
.crumbs a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }

.btn-wa svg { width: 18px; height: 18px; }

/* --- Phone + WhatsApp chat --- */
.phone {
  --wa-wall: #efe7dd;
  --wa-out: #ffffff;
  --wa-in: #d9fdd3;
  --wa-head: #075e54;
  --wa-text: #111b21;
  width: min(340px, 100%);
  aspect-ratio: 9 / 18.5;
  margin-inline: auto;
  border-radius: 44px;
  padding: 11px;
  background: #050507;
  box-shadow: 0 0 0 1px var(--line), 0 50px 90px -30px rgba(109, 74, 255, 0.35);
}
.phone-screen {
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--wa-wall);
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--wa-text);
  letter-spacing: 0;
}
.wa-head { background: var(--wa-head); color: #fff; display: flex; align-items: center; gap: 10px; padding: 34px 14px 10px; }
.wa-avatar { width: 34px; height: 34px; border-radius: 50%; background: #18181d; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.wa-head strong { display: block; font-size: 15px; line-height: 1.2; }
.wa-head small { font-size: 12px; opacity: 0.8; }
.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  scrollbar-width: none;
  background-image: radial-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px);
  background-size: 14px 14px;
}
.chat-body::-webkit-scrollbar { display: none; }
.wa-input { display: flex; gap: 8px; padding: 8px 10px 14px; background: var(--wa-wall); }
.wa-input span { flex: 1; background: #fff; border-radius: 20px; padding: 8px 14px; font-size: 13px; color: #8696a0; }
.wa-input i { width: 36px; height: 36px; border-radius: 50%; background: #1fa855; flex: none; }

.msg { display: flex; flex-direction: column; max-width: 84%; animation: pop 0.28s ease-out; }
.msg-in { align-self: flex-end; align-items: flex-end; }
.msg-out { align-self: flex-start; }
.bubble { background: var(--wa-out); border-radius: 10px; padding: 6px 9px 4px; box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13); font-size: 13.5px; line-height: 1.35; }
.msg-in .bubble { background: var(--wa-in); }
.bubble p { margin: 0; white-space: pre-line; }
.bubble time { display: block; text-align: right; font-size: 10.5px; color: #667781; margin-top: 2px; }
.msg-in .bubble time::after { content: ' ✓✓'; color: #53bdeb; }
.typing { display: flex; gap: 4px; padding: 12px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #8696a0; animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
.quick { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; width: 100%; }
.quick span { background: var(--wa-out); border-radius: 10px; text-align: center; color: #008069; font-weight: 600; font-size: 13px; padding: 7px 10px; box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13); }
.sheet { list-style: none; margin: 6px 0 0; padding: 4px 0; background: #fff; border-radius: 10px; box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13); font-size: 13px; }
.sheet li { padding: 6px 12px; border-bottom: 1px solid #eef0f1; }
.sheet li:last-child { border-bottom: 0; }
.sheet small { display: block; color: #667781; font-size: 11.5px; }
.file { display: flex; gap: 10px; align-items: center; background: #f5f6f6; border-radius: 8px; padding: 8px; margin-bottom: 4px; }
.file-icon { background: #e5484d; color: #fff; font-size: 10px; font-weight: 700; border-radius: 4px; padding: 8px 5px; }
.file strong { display: block; font-size: 13px; }
.file small { color: #667781; font-size: 11px; }
.system { align-self: center; background: #fff6c4; color: #54656f; font-size: 11.5px; border-radius: 8px; padding: 4px 10px; margin-block: 4px; animation: pop 0.28s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(0.98); } }
@keyframes blink { 50% { opacity: 0.3; } }

/* --- Apps of the platform (phone-like icons) --- */
.pf-apps { display: grid; gap: 36px 40px; }
@media (min-width: 640px) { .pf-apps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pf-apps { grid-template-columns: repeat(3, 1fr); } }
.pf-apps li { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; }
.pf-app-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line-soft); color: var(--ink); }
.pf-app-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pf-apps h3 { font-size: 1.1875rem; margin-bottom: 6px; }
.pf-apps p { color: var(--ink-2); font-size: 0.96875rem; }

/* --- Two columns: text and demo --- */
.pf-split { display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) { .pf-split { grid-template-columns: 1fr 1fr; } }
.pf-checks { display: grid; gap: 14px; margin-top: 28px; }
.pf-checks li { position: relative; padding-left: 30px; color: var(--ink-2); max-width: 60ch; }
.pf-checks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.4em;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--violet-ink);
  border-bottom: 2px solid var(--violet-ink);
  transform: rotate(-45deg);
}
.pf-figure { border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line-soft); padding: 24px; background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px); background-size: 18px 18px; }
.pf-figure svg { width: 100%; height: auto; display: block; }

/* --- Sectors list --- */
.pf-sectors { border-top: 1px solid var(--line); }
.pf-sectors li { border-bottom: 1px solid var(--line); }
.pf-sectors a { display: grid; gap: 6px 32px; padding: 28px 4px; align-items: baseline; }
@media (min-width: 760px) { .pf-sectors a { grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr) 140px; } }
.pf-sectors h3 { font-size: 1.625rem; }
.pf-sectors p { color: var(--ink-2); }
.pf-sectors .go { color: var(--violet-ink); font-weight: 500; font-size: 0.9375rem; }
.pf-sectors a:hover h3, .pf-sectors a:focus-visible h3 { color: var(--violet-ink); }
@media (min-width: 760px) { .pf-sectors .go { text-align: right; } }

/* --- A working day (sector pages): a real time sequence --- */
.pf-day li { display: grid; grid-template-columns: 76px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.pf-day li:first-child { border-top: 1px solid var(--line); }
.pf-day time { font-weight: 700; font-size: 1.25rem; color: var(--violet-ink); letter-spacing: -0.02em; }
.pf-day strong { display: block; margin-bottom: 4px; }
.pf-day p { color: var(--ink-2); }

/* --- Final call to action --- */
.pf-cta { text-align: center; }
.pf-cta .hero-actions { margin-top: 36px; }

/* --- Monogram as a quiet structural element --- */
.pf-endorse { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: 0.875rem; }
.pf-endorse svg { width: 18px; height: 18px; color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  .msg, .system, .typing i { animation: none; }
}
