/* =====================================================================
   PHICTLY USER GUIDE STYLES
   One stylesheet controls every guide page. Change a value here and
   every guide updates.

   QUICK EDITS
   - Brand colors ............ the :root variables right below
   - Red circle / arrow color  --mark
   - Phone size .............. --phone-h (2 phones) and --phone-h-3 (3 phones)
   - Page size ............... @page and .slide width/height (11in x 8.5in,
                               US Letter landscape)
   ===================================================================== */

:root{
  --teal:#2b5a54;        /* slide background (Phictly green) */
  --teal-dark:#1f4540;   /* page background on screen, footer bar */
  --gold:#f2b23a;        /* Phictly button yellow, used for small accents */
  --cream:#f6f1e7;       /* note boxes */
  --white:#ffffff;
  --mark:#e3262c;        /* red circles, arrows and step numbers */
  --phone-h:5.8in;       /* phone height on slides with 1 or 2 phones */
  --phone-h-3:4.6in;    /* phone height on slides with 3 phones */
  --arrow:34px;          /* arrow length */
  --serif:"Lora", Georgia, "Times New Roman", serif;
  --sans:"Montserrat", "Inter", Arial, Helvetica, sans-serif;
}

@page{ size:11in 8.5in; margin:0; }
*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  background:var(--teal-dark);
  font-family:var(--sans);
  color:var(--white);
  -webkit-print-color-adjust:exact; print-color-adjust:exact;
}

/* ---------- One slide = one printed page ---------- */
.slide{
  width:11in; height:8.5in;
  margin:0.35in auto;
  padding:0.4in 0.5in 0.3in;
  background:var(--teal);
  position:relative;
  display:flex; flex-direction:column;
  overflow:hidden;
  box-shadow:0 10px 30px rgba(0,0,0,.35);
  page-break-after:always; break-after:page;
}
@media print{
  body{ background:var(--teal); }
  .slide{ margin:0; box-shadow:none; }
  .no-print{ display:none !important; }
}

/* ---------- Title area ---------- */
.slide header{ margin-bottom:0.18in; }
.slide h2{
  font-family:var(--serif); font-weight:700;
  font-size:30pt; line-height:1.1; margin:0;
}
.slide .desc{
  font-size:11.5pt; line-height:1.45; margin:6px 0 0; max-width:9.6in;
  color:rgba(255,255,255,.9);
}
.kicker{
  font-size:9pt; letter-spacing:.14em; text-transform:uppercase;
  color:var(--gold); font-weight:700; margin-bottom:4px;
}

/* ---------- Body: steps on the left, phones on the right ---------- */
.slide .body{ flex:1; display:flex; gap:0.35in; align-items:flex-start; min-height:0; }
.col-steps{ flex:0 0 3.05in; }      /* width of the steps column */
.steps{ list-style:none; margin:0; padding:0; }
.steps li{
  position:relative; padding-left:34px; margin:0 0 11px;
  font-size:10.5pt; line-height:1.38;
}
.steps li::before{               /* the red number bubble beside each step */
  content:attr(data-n);
  position:absolute; left:0; top:-1px;
  width:23px; height:23px; border-radius:50%;
  background:var(--mark); color:#fff;
  font:700 10.5pt/23px var(--sans); text-align:center;
  box-shadow:0 0 0 2px #fff;
}
.steps li b{ font-weight:700; }
.dense .steps li{ font-size:9.6pt; margin-bottom:8px; line-height:1.32; }

.phones{ flex:1; display:flex; justify-content:space-evenly; align-items:flex-start; gap:0.25in; }

/* ---------- Phone frame ----------
   <figure class="phone">
     <div class="shot"> <img> + red markers </div>
     <figcaption>Label under the phone</figcaption>
   </figure>
   Markers are measured against the screenshot inside .shot.            */
.phone{ margin:0; position:relative; height:var(--phone-h); flex:0 0 auto; }
.three .phone{ height:var(--phone-h-3); }
.three .col-steps{ flex-basis:2.75in; }  /* narrower steps column when there are 3 phones */
.phone .shot{
  position:relative; height:calc(100% - 1.4em - 7px);
  border:5px solid #0e1f1c; border-radius:24px;
  box-shadow:0 8px 22px rgba(0,0,0,.4);
  background:#0e1f1c;
}
.phone .shot img{ display:block; height:100%; width:auto; border-radius:19px; }
.phone figcaption{
  text-align:center; font-size:9pt; font-weight:600; margin-top:7px; height:1.4em;
  color:rgba(255,255,255,.85);
}

/* =====================================================================
   RED MARKERS (circle + arrow + number)
   <span class="mark arrow-left" data-n="1"
         style="--x:50%; --y:80%; --w:90%; --h:5%"></span>
   --x / --y  = center of the circle, % from the screenshot's top-left
   --w / --h  = circle width / height, % of the screenshot
   arrow-left | arrow-right | arrow-top | arrow-bottom = side the arrow
   comes FROM. Use "no-arrow" to show only the circle.
   ===================================================================== */
.mark{
  position:absolute; left:var(--x); top:var(--y);
  width:var(--w); height:var(--h);
  transform:translate(-50%,-50%);
  border:3px solid var(--mark); border-radius:50%;
  box-shadow:0 0 0 2px rgba(255,255,255,.9), inset 0 0 0 1px rgba(255,255,255,.6);
  pointer-events:none;
}
.mark::before{                     /* number bubble at the tail of the arrow */
  content:attr(data-n);
  position:absolute; width:22px; height:22px; border-radius:50%;
  background:var(--mark); color:#fff; font:700 10pt/22px var(--sans); text-align:center;
  box-shadow:0 0 0 2px #fff;
}
.mark::after{ content:""; position:absolute; background-repeat:no-repeat; background-size:100% 100%; }

.arrow-left::after{ right:100%; top:50%; width:var(--arrow); height:16px; margin-top:-8px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 16'%3E%3Cpath d='M1 8h24' stroke='%23fff' stroke-width='6' stroke-linecap='round'/%3E%3Cpath d='M20 1l13 7-13 7z' fill='%23e3262c' stroke='%23fff' stroke-width='1.5'/%3E%3Cpath d='M2 8h20' stroke='%23e3262c' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E"); }
.arrow-left::before{ right:calc(100% + var(--arrow)); top:50%; margin-top:-11px; }

.arrow-right::after{ left:100%; top:50%; width:var(--arrow); height:16px; margin-top:-8px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 16'%3E%3Cpath d='M33 8H9' stroke='%23fff' stroke-width='6' stroke-linecap='round'/%3E%3Cpath d='M14 1L1 8l13 7z' fill='%23e3262c' stroke='%23fff' stroke-width='1.5'/%3E%3Cpath d='M32 8H12' stroke='%23e3262c' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E"); }
.arrow-right::before{ left:calc(100% + var(--arrow)); top:50%; margin-top:-11px; }

.arrow-top::after{ bottom:100%; left:50%; height:var(--arrow); width:16px; margin-left:-8px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 34'%3E%3Cpath d='M8 1v24' stroke='%23fff' stroke-width='6' stroke-linecap='round'/%3E%3Cpath d='M1 20l7 13 7-13z' fill='%23e3262c' stroke='%23fff' stroke-width='1.5'/%3E%3Cpath d='M8 2v20' stroke='%23e3262c' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E"); }
.arrow-top::before{ bottom:calc(100% + var(--arrow)); left:50%; margin-left:-11px; }

.arrow-bottom::after{ top:100%; left:50%; height:var(--arrow); width:16px; margin-left:-8px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 34'%3E%3Cpath d='M8 33V9' stroke='%23fff' stroke-width='6' stroke-linecap='round'/%3E%3Cpath d='M1 14l7-13 7 13z' fill='%23e3262c' stroke='%23fff' stroke-width='1.5'/%3E%3Cpath d='M8 32V12' stroke='%23e3262c' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E"); }
.arrow-bottom::before{ top:calc(100% + var(--arrow)); left:50%; margin-left:-11px; }

.no-arrow::before{ left:-11px; top:-11px; }

/* ---------- Note box ---------- */
.note{
  background:var(--cream); color:#203b37; border-left:5px solid var(--gold);
  border-radius:8px; padding:8px 12px; font-size:9.8pt; line-height:1.4;
  margin:10px 0 0;
}
.steps + .note, .steps .note{ margin-top:4px; }

/* ---------- Footer ---------- */
.slide footer{
  position:absolute; left:0; right:0; bottom:0; height:0.3in;
  display:flex; justify-content:space-between; align-items:center;
  padding:0 0.5in; font-size:8pt; color:rgba(255,255,255,.7);
  background:var(--teal-dark);
}

/* ---------- Cover and contents pages ---------- */
.cover{ justify-content:center; align-items:flex-start; padding-left:0.9in; }
.cover .brand{ font-family:var(--serif); font-style:italic; font-size:58pt; margin:0; line-height:1; }
.cover h1{ font-family:var(--serif); font-size:34pt; margin:10px 0 8px; font-weight:700; }
.cover p{ font-size:12.5pt; max-width:3.4in; line-height:1.5; color:rgba(255,255,255,.9); }
.cover .meta{ margin-top:22px; font-size:9.5pt; color:var(--gold); letter-spacing:.08em; text-transform:uppercase; font-weight:700; }
.cover .collage{ position:absolute; right:0.5in; top:1.6in; display:flex; gap:0.18in; align-items:flex-end; }
.cover .collage img{ height:3.5in; border-radius:20px; border:5px solid #0e1f1c; box-shadow:0 10px 26px rgba(0,0,0,.45); }
.cover .collage img:nth-child(2){ height:4.3in; }

.toc{ list-style:none; padding:0; margin:6px 0 0; columns:2; column-gap:0.6in; }
.toc li{ break-inside:avoid; padding:12px 0; border-bottom:1px solid rgba(255,255,255,.18); }
.toc .num{ display:inline-block; width:34px; height:34px; border-radius:50%; background:var(--gold); color:#1f4540;
  font:700 12pt/34px var(--sans); text-align:center; margin-right:12px; vertical-align:middle; }
.toc .t{ font-family:var(--serif); font-size:15pt; font-weight:700; vertical-align:middle; }
.toc .d{ display:block; margin:4px 0 0 46px; font-size:9.6pt; color:rgba(255,255,255,.8); }

/* ---------- Edit helper (screen only) ---------- */
.edit-toggle{
  position:fixed; right:18px; bottom:18px; z-index:50;
  background:var(--gold); color:#1f4540; border:0; border-radius:999px;
  font:700 12px var(--sans); padding:10px 16px; cursor:pointer;
  box-shadow:0 6px 16px rgba(0,0,0,.35);
}
body.edit-on .phone .shot::after{
  content:""; position:absolute; inset:0; border-radius:19px;
  background-image:
    repeating-linear-gradient(to right, rgba(255,0,255,.55) 0 1px, transparent 1px 10%),
    repeating-linear-gradient(to bottom, rgba(0,255,255,.55) 0 1px, transparent 1px 5%);
  pointer-events:none;
}
body.edit-on .phone .shot{ cursor:crosshair; }
.coord-tip{
  position:fixed; z-index:60; background:#111; color:#fff; font:12px/1.4 monospace;
  padding:6px 9px; border-radius:6px; pointer-events:none;
}

/* ---------- Analysis pages ---------- */
.cols{ display:grid; grid-template-columns:1fr 1fr; gap:0.3in; flex:1; min-height:0; }
.card{ background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.14); border-radius:10px; padding:12px 14px; margin-bottom:10px; }
.card h3{ font-family:var(--serif); font-size:13pt; margin:0 0 5px; }
.card p, .card li{ font-size:9.6pt; line-height:1.42; margin:0; }
.card ul{ margin:4px 0 0; padding-left:18px; }
.tag{ display:inline-block; font:700 7.5pt var(--sans); letter-spacing:.06em; text-transform:uppercase; padding:2px 7px; border-radius:99px; margin-right:6px; vertical-align:2px; }
.tag.high{ background:var(--mark); color:#fff; } .tag.med{ background:var(--gold); color:#1f4540; } .tag.low{ background:#cfe3df; color:#1f4540; }
table.flows{ width:100%; border-collapse:collapse; font-size:9.3pt; }
table.flows th{ text-align:left; color:var(--gold); font-size:8pt; letter-spacing:.08em; text-transform:uppercase; padding:5px 6px; border-bottom:1px solid rgba(255,255,255,.25); }
table.flows td{ padding:6px; border-bottom:1px solid rgba(255,255,255,.12); vertical-align:top; line-height:1.35; }
.thumbs{ display:flex; gap:12px; }
.thumbs figure{ margin:0; text-align:center; font-size:8pt; color:rgba(255,255,255,.8); }
.thumbs img{ height:2.4in; border-radius:12px; border:4px solid #0e1f1c; display:block; margin-bottom:4px; }
