/* ==========================================================================
   COMPONENTS
   Everything that renders *inside* a page: the cover, headings, lists,
   tables, checklists, callouts, and the closing page.
   ========================================================================== */

/* ---------- Base typography ---------- */
.eyebrow{
  font-family:var(--font-display); text-transform:uppercase; letter-spacing:.28em;
  font-size:11px; color:var(--accent); font-weight:600;
}
h1, h2, h3{ font-family:var(--font-display); font-weight:600; letter-spacing:-0.01em; color:var(--ink); }
em{ font-style:italic; }
strong{ font-weight:600; }

/* ---------- Cover ---------- */
.cover{
  background:
    radial-gradient(ellipse 700px 500px at 50% 10%, rgba(47,75,214,0.08), transparent 65%),
    linear-gradient(160deg, #ffffff 0%, #f5f6fc 100%);
  align-items:center; justify-content:center; text-align:center;
}
.cover .page-inner{ align-items:center; justify-content:center; }
.cover .brand, .divider .brand{ font-family:var(--font-display); font-size:12px; letter-spacing:.35em; color:var(--grey-soft); margin-bottom:10px; }
.cover .brand strong, .divider .brand strong{ color:var(--ink); font-weight:700; }
.cover h1{ font-size:clamp(2rem,6vw,3.2rem); line-height:1.05; color:var(--ink); margin:14px 0 18px; }
.cover h1 em{ font-style:italic; font-weight:400; }
.cover .tagline{
  font-family:var(--font-display); font-weight:700; font-size:clamp(1rem,2.6vw,1.35rem);
  color:var(--ink-soft); letter-spacing:.03em; margin-bottom:6px;
}
.cover .audience{ font-family:var(--font-display); font-weight:600; font-size:.95rem; color:var(--accent-deep); margin-bottom:6px; }
.cover .sub{ font-style:italic; color:var(--grey); font-size:.92rem; margin-bottom:22px; }
.cover .desc{ max-width:540px; color:var(--grey); font-size:.88rem; line-height:1.6; margin-bottom:26px; }
.cover .foot-lines{ display:flex; flex-direction:column; gap:4px; }
.cover .foot-lines p{ font-size:.78rem; color:var(--grey-soft); }

/* ---------- Generic page content ---------- */
.kicker{ margin-bottom:12px; }
.ptitle{ font-size:clamp(1.3rem,3vw,1.9rem); color:var(--ink); margin-bottom:18px; }
.plead{ color:var(--grey); font-size:.92rem; max-width:640px; margin-bottom:20px; line-height:1.6; }
.subhead{ font-size:1.05rem; color:var(--ink); margin:22px 0 10px; }
.subhead:first-child{ margin-top:0; }
.body-p{ color:var(--ink-soft); font-size:.9rem; line-height:1.7; margin-bottom:14px; max-width:680px; }

/* label chip — e.g. "EMPLOYEE ACTIONS", "CUSTOMER JOURNEY" */
.label-chip{
  display:inline-block; font-family:var(--font-display); font-weight:700; font-size:.72rem;
  letter-spacing:.14em; text-transform:uppercase; color:var(--accent-deep);
  background:var(--paper-tint); border:1px solid rgba(47,75,214,.25);
  padding:7px 14px; border-radius:999px; margin-bottom:16px;
}

/* plain bullet list */
.list{ list-style:none; display:flex; flex-direction:column; gap:8px; margin-bottom:16px; }
.list li{ color:var(--ink-soft); font-size:.9rem; padding-left:20px; position:relative; line-height:1.5; }
.list li::before{ content:'—'; position:absolute; left:0; color:var(--accent); }

/* checkbox checklist — text already contains the ☐ glyph from source */
.checklist{ list-style:none; margin:6px 0 16px; }
.checklist li{ color:var(--ink-soft); font-size:.9rem; padding:6px 0; line-height:1.5; }

/* numbered process steps */
.num-list{ list-style:none; counter-reset:none; margin:10px 0 16px; display:flex; flex-direction:column; gap:10px; }
.num-list li{ color:var(--ink-soft); font-size:.9rem; line-height:1.6; }
.num-list li strong{ color:var(--accent-deep); margin-right:6px; }

/* quote / callout italic line */
.quote{ font-style:italic; color:var(--ink-soft); font-size:.95rem; border-left:3px solid var(--accent); padding-left:16px; margin:8px 0 18px; }

/* small note under a checklist or table */
.note{ font-style:italic; color:var(--grey); font-size:.82rem; margin-top:10px; line-height:1.6; }

/* flow banner — "A → B → C" journey lines */
.flow-banner{
  font-family:var(--font-display); font-weight:600; color:var(--ink);
  font-size:clamp(.82rem, 1.6vw, 1.02rem); line-height:1.9;
  background:var(--paper-soft); border:1px solid var(--hairline);
  border-radius:12px; padding:18px 20px; margin-bottom:14px;
}

/* ---------- Tables ---------- */
.table-wrap{ border:1px solid var(--hairline); border-radius:10px; overflow-x:auto; -webkit-overflow-scrolling:touch; margin:10px 0 16px; }
table.doc-table{ width:100%; border-collapse:collapse; min-width:340px; }
table.doc-table th, table.doc-table td{
  text-align:left; padding:11px 16px; font-size:.82rem; color:var(--ink-soft);
  border-top:1px solid var(--hairline); vertical-align:top;
}
table.doc-table tr:first-child th, table.doc-table tr:first-child td{ border-top:none; }
table.doc-table thead tr th{
  background:linear-gradient(90deg, var(--samsung-blue), var(--accent-deep));
  color:#ffffff; font-family:var(--font-display); font-weight:600; font-size:.7rem;
  letter-spacing:.06em; text-transform:uppercase; border-top:none;
}
table.doc-table tr:nth-child(even) td{ background:var(--paper-soft); }

/* two-column "key / value" info table variant (Section 1 style) */
table.doc-table.kv td:first-child, table.doc-table.kv th:first-child{ width:34%; }

/* ---------- Closing ---------- */
.closing{ align-items:center; justify-content:center; text-align:center; }
.closing .page-inner{ align-items:center; justify-content:center; }
.closing h2{
  font-size:clamp(1.8rem,4vw,2.6rem);
  background:linear-gradient(90deg, var(--samsung-blue), var(--accent));
  -webkit-background-clip:text; background-clip:text; color:transparent; margin-bottom:10px;
}
.closing p{ font-style:italic; color:var(--grey); }

/* ---------- Page footer (kept minimal / brand mark) ---------- */
.page-footer{
  margin-top:auto; padding-top:16px; display:flex; justify-content:space-between; align-items:center;
  border-top:1px solid var(--hairline); font-size:.68rem; color:var(--grey-soft);
  font-family:var(--font-display); letter-spacing:.06em;
}

/* ---------- Chapter divider (standalone "Title:" pages) ---------- */
.divider{
  background:
    radial-gradient(ellipse 700px 500px at 50% 15%, rgba(47,75,214,0.10), transparent 65%),
    linear-gradient(160deg, #ffffff 0%, #f0f2fa 100%);
  align-items:center; justify-content:center; text-align:center;
}
.divider .page-inner{ align-items:center; justify-content:center; }
.divider .eyebrow{ margin-bottom:16px; }
.divider h1{
  font-size:clamp(1.7rem,4.4vw,2.7rem); color:var(--ink); max-width:640px; line-height:1.15;
}
.divider .bar{ width:56px; height:3px; background:var(--accent); border-radius:2px; margin:22px auto 0; }

/* ---------- Media gallery (screenshots / product renders) ---------- */
.gallery{
  display:grid; grid-template-columns:repeat(auto-fit, minmax(220px,1fr));
  gap:16px; margin:8px 0 18px;
}
.gallery.dense{ grid-template-columns:repeat(auto-fit, minmax(130px,1fr)); gap:10px; }
.gallery figure{
  margin:0; border-radius:10px; overflow:hidden; border:1px solid var(--hairline);
  background:var(--paper-soft); box-shadow:0 4px 14px rgba(20,26,60,.06); cursor:zoom-in;
}
.gallery img{
  width:100%; aspect-ratio:4/3; object-fit:cover; display:block; transition:transform .3s ease;
}
.gallery.dense img{ aspect-ratio:1/1; }
.gallery figure:hover img{ transform:scale(1.05); }
.gallery figcaption{
  font-family:var(--font-display); font-size:.66rem; letter-spacing:.05em; color:var(--grey);
  padding:6px 10px; border-top:1px solid var(--hairline);
}

/* single framed screenshot */
.shot-frame{
  border-radius:10px; overflow:hidden; border:1px solid var(--hairline);
  box-shadow:0 4px 14px rgba(20,26,60,.06); margin:6px 0 18px; max-width:420px; cursor:zoom-in;
}
.shot-frame img{ width:100%; display:block; }

/* ---------- Placeholder (assets pending) ---------- */
.placeholder{
  border:2px dashed rgba(20,26,60,.18); border-radius:12px; background:var(--paper-soft);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px;
  padding:48px 20px; color:var(--grey-soft); text-align:center; min-height:200px; margin:6px 0 18px;
}
.placeholder .ph-icon{ font-size:1.8rem; opacity:.45; }
.placeholder .ph-label{
  font-family:var(--font-display); font-size:.72rem; letter-spacing:.12em; text-transform:uppercase; color:var(--grey);
}

/* ---------- Reference links ---------- */
.link-block{ display:flex; flex-direction:column; gap:10px; margin:6px 0 18px; }
.link-row{ display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; font-size:.86rem; }
.link-row .tag{
  font-family:var(--font-display); font-weight:700; font-size:.66rem; letter-spacing:.08em; text-transform:uppercase;
  color:var(--accent-deep); background:var(--paper-tint); border:1px solid rgba(47,75,214,.25);
  padding:4px 10px; border-radius:999px; flex-shrink:0;
}
.link-row a{ color:var(--accent); word-break:break-all; text-decoration:none; border-bottom:1px solid rgba(47,75,214,.3); }
.link-row a:hover{ border-bottom-color:var(--accent); }

/* ---------- Video embeds ---------- */
.video-label{
  font-family:var(--font-display); font-weight:700; font-size:.68rem; letter-spacing:.1em; text-transform:uppercase;
  color:var(--accent-deep); margin-bottom:8px;
}
.video-frame{
  border-radius:12px; overflow:hidden; border:1px solid var(--hairline); background:#000;
  box-shadow:0 6px 20px rgba(20,26,60,.12); margin-bottom:18px;
}
.video-frame video{ width:100%; display:block; max-height:340px; background:#000; }
.video-grid{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
@media (max-width:700px){ .video-grid{ grid-template-columns:1fr; } }

/* ---------- Lightbox (click-to-enlarge for gallery/shot images) ---------- */
.lightbox{
  position:fixed; inset:0; z-index:1000; background:rgba(10,12,26,.88);
  display:flex; align-items:center; justify-content:center; padding:40px;
  opacity:0; pointer-events:none; transition:opacity .2s ease;
}
.lightbox.open{ opacity:1; pointer-events:auto; }
.lightbox img{ max-width:100%; max-height:100%; border-radius:8px; box-shadow:0 20px 60px rgba(0,0,0,.5); }
.lightbox-close{
  position:absolute; top:20px; right:24px; width:40px; height:40px; border-radius:50%;
  background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.3); color:#fff;
  font-size:20px; cursor:pointer; display:flex; align-items:center; justify-content:center;
}
.lightbox-close:hover{ background:rgba(255,255,255,.2); }
