/* ================================================================
   RIYO STUDIO — Project planner
   ================================================================ */

@font-face{font-family:'Instrument Serif';font-style:italic;font-weight:400;font-display:swap;src:url(assets/fonts/instrument-serif-italic-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'IBM Plex Sans Arabic';font-weight:400;font-display:swap;src:url(assets/fonts/plex-arabic-400.woff2) format('woff2');unicode-range:U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;}
@font-face{font-family:'IBM Plex Sans Arabic';font-weight:500;font-display:swap;src:url(assets/fonts/plex-arabic-500.woff2) format('woff2');unicode-range:U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;}
@font-face{font-family:'IBM Plex Sans Arabic';font-weight:600;font-display:swap;src:url(assets/fonts/plex-arabic-600.woff2) format('woff2');unicode-range:U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;}
@font-face{font-family:'IBM Plex Sans Arabic';font-weight:700;font-display:swap;src:url(assets/fonts/plex-arabic-700.woff2) format('woff2');unicode-range:U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;}

body.plan-page {
  --ink: #050608;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);
  --ivory: #F3EFE6;
  --mist: #A9AEB6;
  --dim: #80868F;
  --mint: #6FD8B3;
  --mint-2: #B4F5DA;
  --mint-soft: rgba(111, 216, 179, 0.1);
  --sans: 'Inter', 'IBM Plex Sans Arabic', -apple-system, 'Segoe UI', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(900px circle at 85% -10%, rgba(16, 185, 129, 0.12), transparent 60%),
    var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  padding-bottom: 0 !important;
}
body.plan-page::before { display: none; }
html[dir="rtl"] body.plan-page { --sans: 'IBM Plex Sans Arabic', 'Inter', sans-serif; }
html[dir="rtl"] body.plan-page * { letter-spacing: 0 !important; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Top bar */
.pl-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(5, 6, 8, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.pl-brand { display: inline-flex; align-items: center; gap: 10px; }
.pl-brand .nav-brand-name { font-size: 19px; }
.pl-top-right { display: flex; align-items: center; gap: 10px; }
.pl-lang,
.pl-exit {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ivory);
  border: 1px solid var(--line-2);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.pl-lang { font-family: 'IBM Plex Sans Arabic', 'Inter', sans-serif; }
.pl-lang:hover,
.pl-exit:hover { border-color: rgba(111, 216, 179, 0.6); background: rgba(255, 255, 255, 0.04); }

.pl-progress { position: sticky; top: 62px; z-index: 19; height: 3px; background: rgba(255, 255, 255, 0.06); }
.pl-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--mint-2), var(--mint)); box-shadow: 0 0 12px rgba(111, 216, 179, 0.6); transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
html[dir="rtl"] .pl-progress i { margin-left: auto; background: linear-gradient(270deg, var(--mint-2), var(--mint)); }

.pl-main { flex: 1; width: 100%; max-width: 820px; margin: 0 auto; padding: clamp(28px, 6vh, 64px) clamp(16px, 4vw, 32px) 64px; }
.pl-count { margin-bottom: 14px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mint); }

/* Step header */
.pl-head { margin-bottom: 28px; }
.pl-title { font-size: clamp(30px, 4.6vw, 46px); font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; outline: none; }
html[dir="rtl"] .pl-title { font-weight: 700; line-height: 1.3; }
.pl-sub { margin-top: 12px; font-size: 17px; line-height: 1.6; color: var(--mist); max-width: 56ch; }

/* Option cards */
.pl-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; border: 0; padding: 0; margin: 0; }
.pl-options--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pl-option { position: relative; cursor: pointer; }
.pl-option input,
.pl-chip input,
.pl-pill input { position: absolute; opacity: 0; pointer-events: none; }
.pl-option-card {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.pl-options--compact .pl-option-card { padding: 14px 15px; }
.pl-options--compact .pl-option-text b { font-size: 14.5px; line-height: 1.35; }
.pl-option:hover .pl-option-card { border-color: var(--line-2); transform: translateY(-1px); }
.pl-option input:focus-visible + .pl-option-card { outline: 2px solid var(--mint); outline-offset: 2px; }
.pl-option input:checked + .pl-option-card { border-color: rgba(111, 216, 179, 0.7); background: linear-gradient(180deg, rgba(111, 216, 179, 0.14), rgba(111, 216, 179, 0.04)); }
.pl-option-icon { display: grid; place-items: center; flex-shrink: 0; width: 46px; height: 46px; border-radius: 14px; color: var(--mint); background: var(--mint-soft); border: 1px solid rgba(111, 216, 179, 0.25); }
.pl-option-icon svg,
.pl-option-check svg,
.pl-chip-check svg,
.pl-btn svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pl-option-text { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.pl-option-text b { font-size: 16px; font-weight: 600; }
.pl-option-text small { font-size: 13.5px; color: var(--mist); line-height: 1.4; }
.pl-option-check { display: grid; place-items: center; flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-2); color: transparent; transition: all 0.2s; }
.pl-option input:checked + .pl-option-card .pl-option-check { background: var(--mint); border-color: var(--mint); color: #052e16; }
.pl-option-check svg { stroke-width: 3; }

/* Text fields */
.pl-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.pl-field label,
.pl-q-label { font-size: 14px; font-weight: 600; color: var(--ivory); }
.pl-field input,
.pl-field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ivory);
  font: inherit;
  font-size: 16px;
  line-height: 1.6;
  transition: border-color 0.2s, background 0.2s;
}
.pl-field textarea { resize: vertical; min-height: 150px; }
.pl-field input:focus,
.pl-field textarea:focus { outline: none; border-color: var(--mint); background: rgba(255, 255, 255, 0.05); box-shadow: 0 0 0 4px rgba(111, 216, 179, 0.12); }
.pl-field ::placeholder { color: rgba(169, 174, 182, 0.55); }
.pl-hint { font-size: 13.5px; color: var(--dim); }
.pl-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }

/* AI panel */
.pl-ai {
  margin-bottom: 22px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(111, 216, 179, 0.3);
  background: radial-gradient(500px circle at 0% 0%, rgba(111, 216, 179, 0.12), transparent 60%), rgba(255, 255, 255, 0.02);
}
.pl-ai--loading { display: flex; align-items: center; gap: 12px; color: var(--mist); font-size: 15px; }
.pl-ai-label { font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mint); margin-bottom: 6px; }
.pl-ai-label + .pl-ai-text { margin-bottom: 12px; }
.pl-ai-text { font-size: 16px; line-height: 1.65; color: var(--ivory); }
.pl-ai-q { display: grid; gap: 6px; padding-inline-start: 18px; color: var(--mist); font-size: 15px; line-height: 1.55; }
.pl-ai-teaser { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(111, 216, 179, 0.18); font-size: 14px; color: var(--mint); }
.pl-ai-msg { transition: opacity 0.3s; }
.pl-chip--custom .pl-chip-card { background: rgba(111, 216, 179, 0.035); }
.pl-dots { display: inline-flex; gap: 4px; }
.pl-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); animation: pl-dot 1.1s infinite ease-in-out; }
.pl-dots i:nth-child(2) { animation-delay: 0.15s; }
.pl-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes pl-dot { 0%, 80%, 100% { opacity: 0.25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }

/* Feature chips */
.pl-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; border: 0; padding: 0; margin: 0 0 16px; }
.pl-group { grid-column: 1 / -1; margin-bottom: 4px; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.pl-chip { cursor: pointer; position: relative; }
.pl-chip-card { display: flex; gap: 12px; height: 100%; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.025); transition: border-color 0.2s, background 0.2s; }
.pl-chip-card b { display: block; font-size: 15px; font-weight: 600; }
.pl-chip-card small { display: block; margin-top: 3px; font-size: 13px; line-height: 1.45; color: var(--mist); }
.pl-chip:hover .pl-chip-card { border-color: var(--line-2); }
.pl-chip input:focus-visible + .pl-chip-card { outline: 2px solid var(--mint); outline-offset: 2px; }
.pl-chip input:checked + .pl-chip-card { border-color: rgba(111, 216, 179, 0.6); background: rgba(111, 216, 179, 0.07); }
.pl-chip-check { display: grid; place-items: center; flex-shrink: 0; width: 22px; height: 22px; margin-top: 1px; border-radius: 7px; border: 1px solid var(--line-2); color: transparent; transition: all 0.2s; }
.pl-chip input:checked + .pl-chip-card .pl-chip-check { background: var(--mint); border-color: var(--mint); color: #052e16; }
.pl-chip-check svg { stroke-width: 3; }
.pl-ai-badge { display: inline-block; margin-top: 7px; padding: 2px 9px; border-radius: 999px; font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--mint); background: var(--mint-soft); border: 1px solid rgba(111, 216, 179, 0.3); }
.pl-more summary { cursor: pointer; margin: 6px 0 14px; font-size: 14.5px; font-weight: 600; color: var(--mint); }
.pl-more[open] summary { margin-bottom: 12px; }

/* Pills (situation + contact preference) */
.pl-q { margin-bottom: 22px; }
.pl-q-label { margin-bottom: 10px; }
.pl-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pl-pill { position: relative; cursor: pointer; }
.pl-pill span { display: inline-block; padding: 11px 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14.5px; color: var(--mist); transition: all 0.2s; }
.pl-pill:hover span { color: var(--ivory); border-color: rgba(255, 255, 255, 0.28); }
.pl-pill input:focus-visible + span { outline: 2px solid var(--mint); outline-offset: 2px; }
.pl-pill input:checked + span { color: #052e16; background: var(--mint); border-color: var(--mint); font-weight: 600; }

.pl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Nav */
.pl-error { min-height: 22px; margin-top: 6px; font-size: 14px; color: #FCA5A5; }
.pl-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; padding-top: 22px; border-top: 1px solid var(--line); }
.pl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font: inherit;
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}
.pl-btn--solid { background: var(--ivory); color: #07080A; box-shadow: 0 18px 40px -18px rgba(243, 239, 230, 0.55); }
.pl-btn--solid:hover { background: #fff; transform: translateY(-1px); }
.pl-btn--ghost { color: var(--ivory); border-color: var(--line-2); background: rgba(255, 255, 255, 0.02); }
.pl-btn--ghost:hover { border-color: rgba(255, 255, 255, 0.3); }
.pl-btn--wa { background: #25D366; color: #052e16; }
.pl-btn--wa:hover { background: #34e077; }
.pl-btn--link { color: var(--mist); background: none; padding: 0 10px; }
.pl-btn--link:hover { color: var(--ivory); }
html[dir="rtl"] .pl-btn svg { transform: scaleX(-1); }

/* Result */
.pl-status { margin-bottom: 18px; padding: 12px 16px; border-radius: 14px; font-size: 14.5px; color: var(--ivory); background: var(--mint-soft); border: 1px solid rgba(111, 216, 179, 0.3); }
.pl-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* The plan document */
.pd {
  padding: clamp(24px, 5vw, 52px);
  border-radius: 22px;
  background: #FCFBF8;
  color: #16181D;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 50px 100px -40px rgba(0, 0, 0, 0.9);
}
.pd-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 1px solid #E8E4DC; }
.pd-brand { display: flex; align-items: center; gap: 10px; }
.pd-brand b { display: block; font-family: 'Outfit', 'Inter', sans-serif; font-weight: 400; font-size: 19px; color: #0F5E47; }
.pd-brand small { display: block; font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: #6B8F82; }
html[dir="rtl"] .pd-brand small { font-size: 12px; text-transform: none; }
.pd-meta { display: flex; flex-direction: column; gap: 2px; text-align: end; font-size: 13px; color: #6B6F76; }
.pd-meta b { color: #16181D; }
.pd-eyebrow { margin-top: 26px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #0F8A64; }
.pd-title { margin-top: 8px; font-size: clamp(26px, 3.6vw, 36px); font-weight: 650; line-height: 1.15; letter-spacing: -0.025em; outline: none; }
html[dir="rtl"] .pd-title { font-weight: 700; line-height: 1.35; }
.pd-summary { margin-top: 14px; font-size: 17px; line-height: 1.7; color: #33373E; }
.pd-sec { margin-top: 30px; padding: 24px 0 0; border-top: 1px solid #ECE8E0; }
.pd-sec h2 { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #0F8A64; margin-bottom: 14px; }
html[dir="rtl"] .pd-sec h2 { font-size: 15px; text-transform: none; }
.pd-sec h3 { font-size: 15px; font-weight: 650; margin: 14px 0 8px; color: #16181D; }
.pd-sec p { font-size: 15.5px; line-height: 1.7; color: #33373E; }
.pd-sec p + p { margin-top: 8px; }
.pd-ai { margin-top: 26px; padding: 20px 22px; border: 1px solid #CDEFE1; border-radius: 16px; background: #F1FBF6; }
.pd-quote { margin: 0; padding: 14px 18px; border-inline-start: 3px solid #6FD8B3; background: #F5F3EE; border-radius: 10px; font-size: 15.5px; line-height: 1.7; color: #33373E; white-space: pre-wrap; }
.pd-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-tags span { padding: 6px 12px; border-radius: 999px; font-size: 13.5px; background: #fff; border: 1px solid #E3DFD6; color: #24272D; }
.pd-features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pd-features li { padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid #ECE8E0; }
.pd-features b { display: block; font-size: 14.5px; }
.pd-features span { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.5; color: #5B6068; }
.pd-custom .pd-features li { border-color: #CDEFE1; background: #F6FCF9; }
.pd-loc { margin-top: 12px !important; font-size: 14.5px !important; color: #5B6068 !important; }
.pd-loc b { color: #24272D; font-weight: 600; }
.pd-players b { color: #16181D; font-weight: 650; margin-inline-end: 4px; }
.pd-players b::after { content: ' \00B7'; font-weight: 400; color: #9FA4AB; }
.pd-small { margin-top: 14px !important; font-size: 13px !important; color: #8A8F96 !important; }
.pl-site-row { display: flex; gap: 10px; }
.pl-site-row input { flex: 1; min-width: 0; }
.pl-check { flex-shrink: 0; min-height: 0 !important; }
.pl-scan { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 2px 0 20px; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.025); color: var(--mist); font-size: 14.5px; }
.pl-scan--done { display: block; border-color: rgba(111, 216, 179, 0.3); }
.pl-scan-head { color: var(--ivory); font-size: 15px; margin-bottom: 10px; }
.pl-scan-head b { color: var(--mint); font-weight: 650; }
.pl-scan-list { display: grid; gap: 6px; }
.pl-scan-list li { display: flex; align-items: center; gap: 10px; color: var(--ivory); font-size: 14.5px; }
.pl-scan-list span { flex-shrink: 0; min-width: 96px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; text-align: center; }
.pl-sev-high span { background: rgba(224, 97, 79, 0.18); color: #F4A497; }
.pl-sev-med span { background: rgba(227, 168, 59, 0.16); color: #F2C77A; }
.pl-sev-low span { background: rgba(143, 184, 216, 0.16); color: #B5D3EA; }
.pl-scan-more { margin-top: 10px; font-size: 13.5px; color: var(--mist); }
.pd-scan-meta { font-size: 14.5px !important; color: #5B6068 !important; margin-bottom: 14px; }
.pd-scan-meta b { color: #16181D; font-weight: 650; }
.pd-scan-wait { display: flex; align-items: center; gap: 10px; color: #5B6068 !important; }
.pd-issues { display: grid; gap: 10px; }
.pd-issue { padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid #ECE8E0; border-inline-start: 4px solid #C9CDD2; break-inside: avoid; }
.pd-issue--high { border-inline-start-color: #E0614F; }
.pd-issue--med { border-inline-start-color: #E3A83B; }
.pd-issue--low { border-inline-start-color: #8FB8D8; }
.pd-issue-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.pd-issue-head b { font-size: 15px; color: #16181D; }
.pd-sev { flex-shrink: 0; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.02em; background: #F1F2F4; color: #5B6068; }
.pd-issue--high .pd-sev { background: #FDECE9; color: #B23A2A; }
.pd-issue--med .pd-sev { background: #FDF3E1; color: #8A5A0B; }
.pd-issue--low .pd-sev { background: #EAF3FA; color: #2F5F86; }
.pd-sec .pd-issue p { font-size: 14px; line-height: 1.55; }
.pd-sec .pd-issue p + p { margin-top: 4px; }
.pd-issue p span { font-weight: 600; color: #16181D; }
.pd-tags--ok span { background: #F1FBF6; border-color: #CDEFE1; color: #0F5E47; }
.pd-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 16px 0 6px; }
.pd-stat { padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid #ECE8E0; break-inside: avoid; }
.pd-stat span { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #0F8A64; }
html[dir="rtl"] .pd-stat span { letter-spacing: 0; text-transform: none; font-size: 13px; }
.pd-stat b { display: block; margin-top: 6px; font-size: 18px; line-height: 1.3; color: #16181D; }
.pd-stat b.pd-stat-none { font-size: 14px; font-weight: 500; color: #8A8F96; }
.pd-stat small { display: block; margin-top: 4px; font-size: 13px; line-height: 1.45; color: #5B6068; }
.pd-stat--opp { background: #F1FBF6; border-color: #CDEFE1; }
.pd-cite { margin-inline-start: 2px; font-size: 11px; }
.pd-cite a { color: #0F8A64; text-decoration: none; }
.pd-sources { display: grid; gap: 4px; padding-inline-start: 22px; font-size: 13px; color: #5B6068; }
.pd-sources a { color: #0F5E47; word-break: break-word; }
.pd-list { display: grid; gap: 7px; }
.pd-list li { position: relative; padding-inline-start: 22px; font-size: 15px; line-height: 1.55; color: #33373E; }
.pd-list li::before { content: ''; position: absolute; inset-inline-start: 2px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: #34B38A; }
.pd-phases { display: grid; gap: 16px; }
.pd-phases > li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.pd-num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-size: 13px; font-weight: 700; color: #0F5E47; background: #E2F7EE; border: 1px solid #BFEBD9; }
.pd-phases h3 { margin: 8px 0 8px; }
.pl-status bdi { white-space: nowrap; }
.pd-next { padding: 22px; border: 0; border-radius: 16px; background: #0B0F0E; color: #F3EFE6; }
.pd-next h2 { color: #6FD8B3; }
.pd-next p { color: #DAD6CE; }
.pd-note { margin-top: 10px !important; font-size: 13.5px !important; color: #9FA4AB !important; }

.pl-foot { padding: 22px clamp(16px, 4vw, 40px) calc(22px + env(safe-area-inset-bottom, 0px)); text-align: center; font-size: 12.5px; color: var(--dim); border-top: 1px solid var(--line); }

@media (max-width: 640px) {
  .pl-options,
  .pl-chips,
  .pl-grid2,
  .pd-features,
  .pd-stats { grid-template-columns: 1fr; }
  .pl-options--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pl-options--compact .pl-option-card { padding: 12px; gap: 8px; }
  .pl-options--compact .pl-option-text b { font-size: 13.5px; }
  .pl-options--compact .pl-option-check { display: none; }
  .pl-site-row { flex-direction: column; }
  .pl-top { padding: 12px 16px; }
  .pl-brand .nav-brand-name { display: none; }
  .pl-progress { top: 58px; }
  .pl-btn { min-height: 50px; padding: 0 20px; }
  .pl-nav .pl-btn--solid { flex: 1; }
  .pl-actions .pl-btn { flex: 1 1 100%; }
  .pd-phases > li { grid-template-columns: 32px 1fr; gap: 12px; }
  .pd-num { width: 32px; height: 32px; font-size: 12px; }
  .pd-phases h3 { margin-top: 5px; }
  .pd-sec h2 { font-size: 12.5px !important; }
  html[dir="rtl"] .pd-sec h2 { font-size: 15px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .pl-progress i, .pl-option-card, .pl-dots i { transition: none; animation: none; }
}

/* Download as PDF: print only the plan */
@media print {
  @page { margin: 14mm; }
  body.plan-page { background: #fff !important; }
  .pl-top, .pl-progress, .pl-count, .pl-status, .pl-actions, .pl-foot { display: none !important; }
  .pl-main { max-width: none; padding: 0; }
  .pd { box-shadow: none; padding: 0; border-radius: 0; }
  .pd-sec { break-inside: avoid; }
  .pd-next { background: #F1FBF6 !important; color: #16181D !important; border: 1px solid #CDEFE1; }
  .pd-next p { color: #33373E !important; }
}

@media (min-width: 641px) and (max-width: 860px) {
  .pl-options--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Google scores (site step and plan) */
.pl-speed,
.pd-speed { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 4px 0 14px; }
.sc { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 8px; border-radius: 14px; text-align: center; }
.sc b { font-size: 26px; line-height: 1.1; font-weight: 700; }
.sc span { font-size: 12.5px; line-height: 1.3; }
.sc small { font-size: 11.5px; font-weight: 700; }
.pl-speed .sc { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); color: var(--mist); }
.pl-speed .sc--good b, .pl-speed .sc--good small { color: #7BE0B5; }
.pl-speed .sc--ok b, .pl-speed .sc--ok small { color: #F2C77A; }
.pl-speed .sc--poor b, .pl-speed .sc--poor small { color: #F4A497; }
.pd-speed .sc { background: #fff; border: 1px solid #ECE8E0; color: #5B6068; break-inside: avoid; }
.pd-speed .sc--good b, .pd-speed .sc--good small { color: #0F8A64; }
.pd-speed .sc--ok b, .pd-speed .sc--ok small { color: #A86B05; }
.pd-speed .sc--poor b, .pd-speed .sc--poor small { color: #B23A2A; }
.pl-speed-wait { display: flex; align-items: center; gap: 10px; margin: 2px 0 12px; font-size: 13.5px; color: var(--mist); }
.pl-scan-list li { align-items: flex-start !important; }
.pl-scan-list li span { margin-top: 2px; }
.pl-scan-list li div b { display: block; font-weight: 600; }
.pl-scan-list li div small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.45; color: var(--mist); }
.pl-scan-list { gap: 10px !important; }
.pl-scan-more b { color: var(--mint); }
.pd-speed-meta { font-size: 14px !important; color: #5B6068 !important; margin: -4px 0 6px; }
.pd-audits { display: grid; gap: 8px; }
.pd-audits li { padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid #ECE8E0; break-inside: avoid; }
.pd-audits b { display: block; font-size: 14.5px; color: #16181D; }
.pd-sec .pd-audits p { margin-top: 3px; font-size: 14px; line-height: 1.5; color: #33373E; }
.pd-audits p span { color: #5B6068; }
.pd-fixall { margin-top: 12px !important; padding: 12px 16px; border-radius: 12px; background: #F1FBF6; border: 1px solid #CDEFE1; font-weight: 600; color: #0F5E47 !important; }

/* Moving the site across */
.pd-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 6px; }
.pd-facts div { padding: 10px 14px; border-radius: 12px; background: #fff; border: 1px solid #ECE8E0; }
.pd-facts dt { font-size: 12px; color: #5B6068; }
.pd-facts dd { margin: 2px 0 0; font-size: 15px; font-weight: 600; color: #16181D; word-break: break-word; }
.pd-steps { display: grid; gap: 12px; margin-top: 16px; }
.pd-steps > li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; break-inside: avoid; }
.pd-steps .pd-num { width: 30px; height: 30px; font-size: 13px; }
.pd-steps b { display: block; margin-top: 4px; font-size: 15px; color: #16181D; }
.pd-sec .pd-steps p { margin-top: 2px; font-size: 14.5px; line-height: 1.6; }
.pd-needs { margin-top: 18px; padding: 16px 18px; border-radius: 14px; background: #F1FBF6; border: 1px solid #CDEFE1; break-inside: avoid; }
.pd-needs h3 { margin-top: 0 !important; }
.pd-checks { display: grid; gap: 7px; }
.pd-checks li { position: relative; padding-inline-start: 26px; font-size: 14.5px; line-height: 1.55; color: #24272D; }
.pd-checks li::before { content: ''; position: absolute; inset-inline-start: 2px; top: 4px; width: 14px; height: 14px; border-radius: 4px; border: 2px solid #34B38A; }
.pd-sec .pd-needs > p { margin-top: 10px; font-weight: 600; color: #0F5E47; }
.pl-status a { color: var(--mint); font-weight: 600; margin-inline-start: 4px; }

@media (max-width: 640px) {
  .pl-speed,
  .pd-speed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd-facts { grid-template-columns: 1fr; }
}
