/* Lenci · Nawaa — Brand DNA & 90-day strategy (v3/nawaa-strategy.js; v3/docs/NAWAA-STRATEGY-CONTRACT.md). Builds on studio.css + nawaa.css
   tokens (panels, the cyan → violet Nawaa gradient). Card-based, Arabic-first: logical properties only, one column below 760 px. */
.nw-dna { padding: 18px 22px 64px; animation: panelIn .3s var(--ease) both; }
.nwd-wrap { max-width: 1180px; margin: 0 auto; display: grid; gap: 16px; min-width: 0; }
.nwd-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; padding: 6px 0 4px; }
.nwd-title-wrap { min-width: 0; display: grid; gap: 6px; }
.nwd-title { margin: 0; font-family: var(--display); font-size: clamp(26px, 4vw, 40px); letter-spacing: -0.02em; line-height: 1.1; overflow-wrap: anywhere; }
.nwd-sub { margin: 0; color: var(--dim); font-size: 12.5px; }
.nwd-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.nwd-versions { background: var(--panel-2); color: var(--ink); border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 12px; font: inherit; font-size: 12.5px; max-width: 100%; }
.nwd-nav { position: sticky; top: 0; z-index: 5; display: flex; gap: 6px; overflow-x: auto; padding: 8px 2px; margin: 0 -2px; background: linear-gradient(180deg, var(--canvas) 70%, transparent); scrollbar-width: none; }
.nwd-nav::-webkit-scrollbar { display: none; }
.nwd-nav-btn { flex: none; font-family: var(--display); font-size: 12px; font-weight: 600; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); color: var(--muted); cursor: pointer; }
.nwd-nav-btn:hover { color: var(--ink); border-color: rgba(34,211,238,.5); }

/* cards */
.nwd-card { position: relative; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01)), var(--panel); padding: 18px 20px 20px; min-width: 0; scroll-margin-top: 56px; }
.nwd-card::before { content: ""; position: absolute; inset-block-start: 0; inset-inline: 20px; height: 2px; border-radius: 2px; background: var(--nw-h); opacity: .55; }
.nwd-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.nwd-card-head h2 { margin: 0; font-family: var(--display); font-size: 18px; letter-spacing: -0.01em; }
.nwd-card-tools { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.nwd-edit { font-size: 12px; padding: 6px 12px; }
.nwd-card-body { display: grid; gap: 12px; min-width: 0; }
.nwd-lead { margin: 0; font-size: 15px; line-height: 1.7; color: var(--ink); }
.nwd-p { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--muted); overflow-wrap: anywhere; }
.nwd-big { margin: 0 0 6px; font-family: var(--display); font-weight: 700; font-size: 17px; }
.nwd-label { margin: 6px 0 4px; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
[dir="rtl"] .nwd-label { font-family: var(--arabic); letter-spacing: 0; font-size: 11.5px; text-transform: none; }
.nwd-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.nwd-block { border-radius: 14px; border: 1px solid var(--line); background: var(--panel-2); padding: 12px 14px; min-width: 0; }
.nwd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.nwd-chip { font-size: 12.5px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); color: var(--ink); overflow-wrap: anywhere; }
.nwd-chip.violet { border-color: rgba(139,92,246,.45); background: rgba(139,92,246,.12); }
.nwd-chip.cyan { border-color: rgba(34,211,238,.45); background: rgba(34,211,238,.1); }
.nwd-chip.ok { border-color: rgba(52,211,153,.45); background: rgba(52,211,153,.08); }
.nwd-chip.no { border-color: rgba(248,113,113,.45); background: rgba(248,113,113,.08); text-decoration: line-through; text-decoration-color: rgba(248,113,113,.6); }
.nwd-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.nwd-list li { position: relative; padding-inline-start: 18px; overflow-wrap: anywhere; }
.nwd-list li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--dim); }
.nwd-list.ok li::before { background: #34d399; } .nwd-list.no li::before { background: #f87171; } .nwd-list.go li::before { background: #22d3ee; border-radius: 1px; transform: rotate(45deg); }
.nwd-list.occ li { display: flex; justify-content: space-between; gap: 10px; } .nwd-list.occ small { color: var(--dim); white-space: nowrap; }
.nwd-quote { margin: 4px 0 0; padding: 10px 14px; border-inline-start: 3px solid var(--pc, #8b5cf6); border-radius: 4px 12px 12px 4px; background: rgba(255,255,255,.03); font-size: 13.5px; font-style: italic; color: var(--ink); }
[dir="rtl"] .nwd-quote { border-radius: 12px 4px 4px 12px; font-style: normal; }
.nwd-do { border-color: rgba(52,211,153,.3); } .nwd-dont { border-color: rgba(248,113,113,.3); }

/* positioning */
.nwd-statement { border-radius: 18px; padding: 20px 22px; background: radial-gradient(600px 200px at 100% 0, rgba(34,211,238,.18), transparent 70%), radial-gradient(500px 200px at 0 100%, rgba(139,92,246,.2), transparent 70%), var(--panel-2); border: 1px solid rgba(99,102,241,.35); display: grid; gap: 12px; }
.nwd-st-ar { margin: 0; font-family: var(--arabic); font-size: clamp(17px, 2.3vw, 22px); line-height: 1.8; font-weight: 600; text-align: start; }
.nwd-st-en { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--muted); text-align: start; }
.nwd-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.nwd-fact { border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); padding: 10px 12px; } .nwd-fact p { margin: 2px 0 0; font-size: 13.5px; line-height: 1.55; }

/* voice samples */
.nwd-samples { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.nwd-sample { margin: 0; border-radius: 14px; border: 1px solid var(--line); background: var(--panel-2); padding: 12px 14px; display: grid; gap: 8px; align-content: start; }
.nwd-sample figcaption { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #8be9fd; }
.nwd-s-ar { margin: 0; font-family: var(--arabic); font-size: 15px; line-height: 1.7; text-align: start; } .nwd-s-en { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.55; text-align: start; }
.nwd-copy { justify-self: start; font-size: 12px; }

/* personas */
.nwd-personas { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.nwd-persona { border-radius: 18px; border: 1px solid var(--line); background: var(--panel-2); padding: 14px 16px 16px; display: grid; gap: 6px; align-content: start; border-block-start: 3px solid var(--pc); min-width: 0; }
.nwd-persona-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.nwd-persona-head strong { display: block; font-family: var(--display); font-size: 16px; } .nwd-persona-head small { color: var(--dim); font-size: 12px; }
.nwd-avatar { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 18px; color: #fff; background: linear-gradient(135deg, var(--pc), #1d1d2b); box-shadow: 0 0 0 2px rgba(255,255,255,.08); }
.nwd-plats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.nwd-plat { font-size: 11.5px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--pc); color: var(--ink); }

/* competitors */
.nwd-comps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.nwd-comp { border-radius: 16px; border: 1px solid var(--line); background: var(--panel-2); padding: 14px 16px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.nwd-comp-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; } .nwd-comp-head strong { font-family: var(--display); font-size: 16px; } .nwd-comp-head small { color: var(--dim); font-size: 12px; overflow-wrap: anywhere; }
.nwd-read { margin-inline-start: auto; font-size: 10.5px; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.nwd-read.ok { border-color: rgba(52,211,153,.5); color: #6ee7b7; }

/* SWOT */
.nwd-swot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.nwd-q { border-radius: 16px; padding: 12px 14px; border: 1px solid var(--line); background: var(--panel-2); min-width: 0; }
.nwd-q h3 { margin: 0 0 8px; font-family: var(--display); font-size: 14px; }
.nwd-q.strengths { border-color: rgba(52,211,153,.4); } .nwd-q.strengths h3 { color: #6ee7b7; }
.nwd-q.weaknesses { border-color: rgba(248,113,113,.4); } .nwd-q.weaknesses h3 { color: #fca5a5; }
.nwd-q.opportunities { border-color: rgba(96,165,250,.45); } .nwd-q.opportunities h3 { color: #93c5fd; }
.nwd-q.threats { border-color: rgba(245,176,65,.45); } .nwd-q.threats h3 { color: #fcd34d; }

/* pillars */
.nwd-sharebar { display: flex; height: 26px; border-radius: 999px; overflow: hidden; background: var(--panel-3); }
.nwd-sharebar i { display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.4); min-width: 0; overflow: hidden; transition: width .6s var(--ease); }
.nwd-pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.nwd-pillar { border-radius: 16px; border: 1px solid var(--line); border-inline-start: 4px solid var(--pc); background: var(--panel-2); padding: 12px 14px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.nwd-pillar-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; } .nwd-pillar-head strong { font-family: var(--display); font-size: 14.5px; overflow-wrap: anywhere; } .nwd-pillar-head b { color: var(--pc); font-family: var(--display); font-size: 18px; }

/* the 90-day plan */
.nwd-phases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; position: relative; }
.nwd-phase { border-radius: 18px; border: 1px solid var(--line); background: var(--panel-2); padding: 14px 16px 16px; display: grid; gap: 6px; align-content: start; border-block-start: 4px solid var(--pc); min-width: 0; }
.nwd-phase-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; align-items: baseline; }
.nwd-phase-n { font-family: var(--display); font-weight: 700; color: var(--pc); font-size: 14px; } .nwd-phase-days { font-size: 11.5px; color: var(--dim); }
.nwd-phase-title { margin: 2px 0 0; font-family: var(--display); font-size: 17px; line-height: 1.3; }
.nwd-kpis { width: 100%; border-collapse: collapse; font-size: 13px; } .nwd-kpis td { padding: 5px 0; border-bottom: 1px solid var(--line); vertical-align: top; } .nwd-kpis td + td { text-align: end; font-weight: 700; color: var(--pc); padding-inline-start: 10px; white-space: nowrap; }
.nwd-cadence { display: grid; gap: 4px; font-size: 13px; } .nwd-cadence div { display: flex; align-items: center; gap: 8px; } .nwd-cadence i { width: 8px; height: 8px; border-radius: 50%; flex: none; } .nwd-cadence b { margin-inline-start: auto; font-weight: 600; color: var(--muted); font-size: 12px; }
.nwd-idea { border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line); padding: 8px 10px; display: grid; gap: 3px; } .nwd-idea strong { font-size: 13.5px; } .nwd-idea small { color: var(--pc); font-size: 11.5px; }
.nwd-phase-go { margin-top: 8px; width: 100%; justify-content: center; white-space: normal; text-align: center; line-height: 1.35; }

/* editor */
.nwd-editor { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.nwd-field { display: grid; gap: 4px; font-size: 12px; color: var(--dim); min-width: 0; } .nwd-field.wide { grid-column: 1 / -1; }
.nwd-field input, .nwd-field textarea, .nwd-comp-row input, .nwd-opt input, .nwd-opt select, .nwd-social input { width: 100%; min-width: 0; font: inherit; font-size: 13.5px; color: var(--ink); background: var(--canvas); border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 11px; }
.nwd-field textarea { resize: vertical; line-height: 1.55; }
.nwd-field input:focus, .nwd-field textarea:focus, .nwd-comp-row input:focus, .nwd-social input:focus { outline: none; border-color: rgba(34,211,238,.6); box-shadow: 0 0 0 3px rgba(34,211,238,.15); }
.nwd-editor-foot { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }

/* empty state + form */
.nwd-empty { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 24px; align-items: start; border-radius: 24px; border: 1px solid rgba(99,102,241,.3); padding: 26px; background: radial-gradient(700px 300px at 100% 0, rgba(34,211,238,.12), transparent 70%), radial-gradient(600px 300px at 0 100%, rgba(139,92,246,.16), transparent 70%), var(--panel); }
.nwd-empty-body { display: grid; gap: 12px; min-width: 0; } .nwd-empty-body h2 { margin: 0; font-family: var(--display); font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -0.02em; line-height: 1.15; }
.nwd-gets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px; }
.nwd-gets li { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--muted); line-height: 1.45; } .nwd-gets i { font-style: normal; color: #22d3ee; flex: none; }
.nwd-warn { margin: 0; color: #fcd34d; font-size: 13.5px; }
.nwd-cta { justify-self: start; padding-inline: 20px; white-space: normal; text-align: center; }
.nwd-helix { position: relative; height: 240px; display: grid; align-content: center; gap: 9px; justify-items: center; }
.nwd-helix i { display: block; height: 8px; border-radius: 8px; width: calc(40% + 50% * var(--w, .5)); background: var(--nw-h); opacity: .85; animation: helix 3.2s ease-in-out infinite; animation-delay: calc(var(--i) * -.27s); box-shadow: 0 0 14px var(--nw-glow); }
@keyframes helix { 0%, 100% { transform: scaleX(1); opacity: .9; } 50% { transform: scaleX(.18); opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .nwd-helix i, .nwd-gen-steps li { animation: none !important; opacity: 1 !important; } }
.nwd-form { display: grid; gap: 10px; border-radius: 18px; border: 1px solid var(--line-2); background: rgba(10,10,15,.45); padding: 14px 16px; min-width: 0; scroll-margin-top: 60px; }
.nwd-form-title { margin: 0; font-family: var(--display); font-size: 15px; } .nwd-hint { margin: 0; color: var(--dim); font-size: 12.5px; line-height: 1.5; }
.nwd-comp-rows { display: grid; gap: 8px; }
.nwd-comp-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto; gap: 8px; align-items: center; }
.nwd-x { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--muted); font-size: 18px; cursor: pointer; }
.nwd-x:hover { color: #fca5a5; border-color: rgba(248,113,113,.5); }
.nwd-add { justify-self: start; }
.nwd-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.nwd-opt { display: grid; gap: 4px; font-size: 12px; color: var(--dim); } .nwd-opt input[type="date"] { color-scheme: dark; }
.nwd-form-foot { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-items: center; }

/* generating */
.nwd-gen { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 40px 16px 50px; border-radius: 24px; border: 1px solid var(--line); background: var(--panel); }
.nwd-gen h2 { margin: 10px 0 0; font-family: var(--display); }
.nwd-gen-steps { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; text-align: start; }
.nwd-gen-steps li { opacity: .25; font-size: 14px; color: var(--muted); animation: genStep 11s linear infinite; padding-inline-start: 22px; position: relative; }
.nwd-gen-steps li::before { content: "✦"; position: absolute; inset-inline-start: 0; color: #22d3ee; }
@keyframes genStep { 0% { opacity: .25; } 4%, 20% { opacity: 1; color: var(--ink); } 26%, 100% { opacity: .45; } }
.nwd-skel-wrap { display: grid; gap: 12px; } .nwd-skel { height: 140px; border-radius: 20px; background: linear-gradient(90deg, var(--panel) 0%, var(--panel-2) 50%, var(--panel) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.nwd-notes { font-size: 12.5px; color: var(--dim); border-radius: 14px; border: 1px dashed var(--line-2); padding: 10px 14px; } .nwd-notes ul { margin: 6px 0 0; padding-inline-start: 18px; }

/* board nudge */
.nw-dna-nudge { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 16px; border-radius: 16px; border: 1px solid rgba(99,102,241,.35); background: linear-gradient(90deg, rgba(34,211,238,.08), rgba(139,92,246,.1)); }
.nw-dna-nudge[hidden] { display: none; }
.nwd-nudge-ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--nw); color: #fff; flex: none; }
.nwd-nudge-text { display: grid; gap: 2px; flex: 1 1 220px; min-width: 0; } .nwd-nudge-text strong { font-family: var(--display); font-size: 14px; } .nwd-nudge-text span { font-size: 12.5px; color: var(--muted); }

/* wizard hooks: intake (step 1), dialect (step 3), length (step 5) */
.nwd-intake { margin-top: 14px; display: grid; gap: 10px; max-width: 760px; }
.nwd-intake-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.nwd-intake-btn { display: inline-flex; align-items: center; gap: 7px; font-family: var(--display); font-weight: 600; font-size: 12.5px; padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); background: rgba(10,10,15,.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--ink); cursor: pointer; }
.nwd-intake-btn:hover { border-color: rgba(34,211,238,.6); } .nwd-intake-btn[aria-expanded="true"] { border-color: rgba(34,211,238,.7); background: rgba(34,211,238,.12); }
.nwd-intake-btn svg { width: 15px; height: 15px; flex: none; }
.nwd-intake-have { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #6ee7b7; } .nwd-intake-have img { width: 26px; height: 26px; border-radius: 6px; object-fit: contain; background: #fff; }
.nwd-socials { border-radius: 16px; border: 1px solid var(--line-2); background: rgba(10,10,15,.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); padding: 12px 14px; display: grid; gap: 10px; }
.nwd-socials-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; }
.nwd-social { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 6px 8px; font-size: 12.5px; color: var(--muted); } .nwd-social i { width: 8px; height: 8px; border-radius: 50%; } .nwd-social input { padding: 7px 10px; }
.nwd-socials-foot { display: flex; flex-wrap: wrap; gap: 8px; }
.nwd-dialects .nw-chip { flex-direction: column; align-items: flex-start; gap: 2px; white-space: normal; }
.nwd-dialect-ex { font-family: var(--arabic); font-weight: 400; font-size: 11.5px; opacity: .8; }
.nwd-length { margin: 4px 0 6px; } .nwd-len-cost { font-weight: 500; font-size: 11px; opacity: .8; margin-inline-start: 4px; }

@media (max-width: 900px) { .nwd-phases { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .nw-dna { padding: 12px 14px 56px; }
  .nwd-grid2, .nwd-swot, .nwd-editor, .nwd-socials-grid { grid-template-columns: minmax(0, 1fr); }
  .nwd-empty { grid-template-columns: minmax(0, 1fr); padding: 18px; } .nwd-helix { height: 120px; gap: 6px; }
  .nwd-comp-row { grid-template-columns: minmax(0, 1fr) auto; } .nwd-comp-row .nwd-comp-url { grid-column: 1; grid-row: 2; }
  .nwd-comp-row .nwd-x { grid-row: 1 / span 2; grid-column: 2; }
  .nwd-card { padding: 14px 14px 16px; border-radius: 18px; }
  .nwd-actions { width: 100%; } .nwd-actions > * { flex: 1 1 auto; }
}
