/* WritePlainly v2 — marketing landing page.
   Ported from docs/designs/redesign-v2/project/redesign/wp-landing.css
   (Claude Design, chat12). Tokens come from css/wp-tokens.css (loaded by
   base_v2.html.twig) — no palette hardcoded here.
   Class prefix kept as the design's `wpl-` (landing) namespace; inline JSX/JS
   styles from the prototype are translated into the classes below. */

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.wp-landing { font-size: 14px; }
.wp-landing section[id], .wp-landing header[id] { scroll-margin-top: 72px; }

.wpl-wrap { max-width: 1040px; margin: 0 auto; padding: 0 28px; }

/* ── Nav ── */
.wpl-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline-soft);
}
.wpl-nav-in { display: flex; align-items: center; gap: 26px; height: 56px; }
.wpl-logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.wpl-logo-mark { width: 22px; height: 22px; border-radius: 6px; background: var(--accent); color: var(--on-accent); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.wpl-links { display: flex; gap: 4px; flex: 1; }
.wpl-links a { color: var(--ink-2); text-decoration: none; font-size: 13px; font-weight: 500; padding: 6px 10px; border-radius: 999px; transition: background 0.15s var(--ease), color 0.15s; }
.wpl-links a:hover { background: var(--bg-hover); color: var(--ink); }
.wpl-nav-cta { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.wpl-nav-cta .wp-btn { text-decoration: none; }
.wpl-login { color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.wpl-login:hover { background: var(--bg-hover); }

/* ── Lang dropdown ── */
.wpl-lang { position: relative; }
.wpl-lang-btn { appearance: none; border: 0; background: transparent; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; color: var(--ink-2); font-size: 11.5px; font-weight: 500; letter-spacing: 0.03em; padding: 6px 8px; border-radius: 999px; text-transform: uppercase; font-family: var(--font-ui); }
.wpl-lang-btn:hover { background: var(--bg-hover); color: var(--ink); }
.wpl-lang-menu { position: absolute; top: calc(100% + 6px); right: 0; background: var(--bg); border: 1px solid var(--hairline); border-radius: var(--radius); box-shadow: var(--shadow-pop); padding: 4px; min-width: 140px; z-index: 60; }
.wpl-lang-menu[hidden] { display: none; }
.wpl-lang-menu a, .wpl-lang-menu button {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px;
  appearance: none; border: 0; background: transparent; cursor: pointer;
  font-size: 12.5px; color: var(--ink); text-decoration: none;
  padding: 8px 10px; border-radius: var(--radius-s); font-family: var(--font-ui);
}
.wpl-lang-menu a:hover, .wpl-lang-menu button:hover { background: var(--bg-hover); }
.wpl-lang-menu .on { color: var(--ink); font-weight: 600; }
.wpl-lang-menu a[aria-current="true"] { font-weight: 600; }

/* ── Hero ── */
.wpl-hero { padding: 92px 0 36px; text-align: center; }
.wpl-h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.06; margin: 0 0 22px; }
.wpl-h1 .dim { color: var(--ink-3); }
.wpl-hero-sub { font-size: 17px; line-height: 1.65; color: var(--ink-2); max-width: 600px; margin: 0 auto 30px; text-wrap: pretty; }
.wpl-hero-cta { display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; }
.wpl-hero-note { margin-top: 16px; font-size: 12px; color: var(--ink-3); font-family: var(--font-mono); }
.wpl-btn-lg { height: 42px; padding: 0 24px; font-size: 14.5px; text-decoration: none; }

/* ── Demo card ── */
.wpl-demo { margin: 56px auto 0; max-width: 860px; border: 1px solid var(--hairline); border-radius: var(--radius-l); box-shadow: 0 30px 80px rgba(17,17,20,0.08), 0 4px 20px rgba(17,17,20,0.04); overflow: hidden; text-align: left; background: var(--bg); }
.wpl-demo-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--hairline-soft); }
.wpl-demo-tabs { display: inline-flex; gap: 2px; background: var(--bg-subtle); border-radius: 999px; padding: 3px; }
.wpl-demo-tab { appearance: none; border: 0; cursor: pointer; background: transparent; font-family: var(--font-ui); font-size: 12px; font-weight: 600; color: var(--ink-2); padding: 5px 14px; border-radius: 999px; transition: all 0.18s var(--ease); }
.wpl-demo-tab.on { background: var(--bg); color: var(--ink); box-shadow: 0 1px 3px rgba(17,17,20,0.1); }
.wpl-demo-body { display: grid; grid-template-columns: 1fr 250px; min-height: 270px; }
.wpl-demo-text { padding: 26px 30px; font-size: 14.5px; line-height: 1.8; color: var(--ink); border-right: 1px solid var(--hairline-soft); }
.wpl-demo-text p { margin: 0 0 1em; }
.wpl-demo-text [role="tabpanel"]:focus { outline: none; }
.wpl-demo-side { padding: 24px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; }

/* Inline severity marks (always-on background; landing variant of .wp-mark) */
.wpl-mark { border-radius: 2px; padding-bottom: 1px; }
.wpl-mark-critical { border-bottom: 2px solid var(--sev-critical); background: var(--sev-critical-bg); }
.wpl-mark-major { border-bottom: 2px solid var(--sev-major); background: var(--sev-major-bg); }

/* Score ring (state swap animates stroke + arc, as the prototype intends) */
.wpl-ring { position: relative; width: 88px; height: 88px; }
.wpl-ring-track { fill: none; stroke: var(--hairline-soft); stroke-width: 5; }
.wpl-ring-fill { fill: none; stroke-width: 5; stroke-linecap: round; transition: stroke-dasharray 0.6s var(--ease), stroke 0.6s var(--ease); }
.wpl-ring-fill.is-before { stroke: var(--revise); stroke-dasharray: 152.8 238.8; }
.wpl-ring-fill.is-after { stroke: var(--good); stroke-dasharray: 205.3 238.8; }
@media (prefers-reduced-motion: reduce) { .wpl-ring-fill { transition: none; } }
.wpl-ring-num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.wpl-ring-score { font-size: 23px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.wpl-ring-score[hidden] { display: none; }
.wpl-ring-cap { font-size: 8.5px; color: var(--ink-3); font-family: var(--font-mono); letter-spacing: 0.05em; }

.wpl-chip { font-size: 11.5px; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.wpl-chip[hidden] { display: none; }
.wpl-chip-revise { color: var(--revise); background: var(--revise-bg); }
.wpl-chip-good { color: var(--good); background: var(--good-bg); }

.wpl-flags { width: 100%; margin-top: 8px; }
.wpl-flag-group { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.wpl-flag-group[hidden] { display: none; }
.wpl-flag { display: flex; gap: 8px; align-items: flex-start; font-size: 11.5px; line-height: 1.5; color: var(--ink-2); width: 100%; }
.wpl-flag .dot { width: 6px; height: 6px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; }
.wpl-flag .dot.is-critical { background: var(--sev-critical); }
.wpl-flag .dot.is-good { background: var(--good); }

/* ── Sections ── */
.wpl-section { padding: 88px 0 8px; }
.wpl-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 10px; font-family: var(--font-mono); }
.wpl-h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.12; margin: 0 0 14px; }
.wpl-section-sub { font-size: 15px; line-height: 1.65; color: var(--ink-2); max-width: 560px; margin: 0 0 44px; text-wrap: pretty; }

/* ── Steps ── */
.wpl-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 44px; }
.wpl-step .num { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); display: block; margin-bottom: 12px; }
.wpl-step h3 { font-size: 16.5px; font-weight: 650; letter-spacing: -0.015em; margin: 0 0 8px; }
.wpl-step p { font-size: 13.5px; line-height: 1.65; color: var(--ink-2); margin: 0; }

/* ── Modules ── */
.wpl-modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.wpl-module { border: 1px solid var(--hairline-soft); border-radius: var(--radius-l); padding: 22px 22px 20px; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.wpl-module:hover { border-color: var(--hairline); box-shadow: 0 8px 24px rgba(17,17,20,0.05); }
.wpl-module h3 { font-size: 14.5px; font-weight: 650; letter-spacing: -0.01em; margin: 0 0 7px; display: flex; align-items: center; gap: 8px; }
.wpl-module p { font-size: 12.8px; line-height: 1.6; color: var(--ink-2); margin: 0; }
.wpl-lock { font-size: 9.5px; font-weight: 600; font-family: var(--font-mono); color: var(--ink-3); border: 1px solid var(--hairline); border-radius: 999px; padding: 2px 7px; white-space: nowrap; }

/* ── Pricing ── */
.wpl-pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: stretch; margin-top: 44px; }
.wpl-price { border: 1px solid var(--hairline-soft); border-radius: var(--radius-l); padding: 26px 24px; display: flex; flex-direction: column; gap: 4px; }
.wpl-price.featured { border-color: var(--ink); box-shadow: 0 16px 44px rgba(17,17,20,0.08); }
.wpl-price .tier { font-size: 13px; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.wpl-price .amount { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; margin: 8px 0 0; }
.wpl-price .amount small { font-size: 13px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.wpl-price .amount [hidden] { display: none; }
.wpl-price ul { list-style: none; margin: 16px 0 22px; padding: 0; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.wpl-price li { font-size: 13px; color: var(--ink-2); display: flex; gap: 9px; align-items: baseline; }
.wpl-price li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-3); flex-shrink: 0; transform: translateY(-2px); }
.wpl-price .pcta { justify-content: center; text-decoration: none; }
.wpl-price-foot { margin-top: 18px; font-size: 11.5px; color: var(--ink-3); font-family: var(--font-mono); }

/* ── FAQ ── */
.wpl-faq { max-width: 640px; margin-top: 32px; }
.wpl-faq details { border-bottom: 1px solid var(--hairline-soft); }
.wpl-faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 4px; font-size: 14.5px; font-weight: 550; }
.wpl-faq summary::-webkit-details-marker { display: none; }
.wpl-faq summary::after { content: "+"; font-size: 18px; color: var(--ink-3); font-weight: 400; transition: transform 0.2s var(--ease); }
.wpl-faq details[open] summary::after { transform: rotate(45deg); }
.wpl-faq .a { font-size: 13.5px; line-height: 1.65; color: var(--ink-2); padding: 0 4px 20px; max-width: 560px; }

/* ── Final CTA ── */
.wpl-final { text-align: center; padding: 104px 0 110px; }
.wpl-final .wpl-h2 { margin-bottom: 24px; }

/* ── Footer ── */
.wpl-footer { border-top: 1px solid var(--hairline-soft); padding: 28px 0 40px; }
.wpl-footer-in { display: flex; align-items: center; gap: 18px; font-size: 12px; color: var(--ink-3); flex-wrap: wrap; }
.wpl-footer-brand { font-weight: 600; color: var(--ink-2); }
.wpl-footer-in .sp { flex: 1; }
.wpl-footer-in a { color: var(--ink-3); text-decoration: none; }
.wpl-footer-in a:hover { color: var(--ink); }

/* ── Responsive ── */
@media (max-width: 880px) {
  .wpl-steps, .wpl-modules, .wpl-pricing { grid-template-columns: 1fr; }
  .wpl-demo-body { grid-template-columns: 1fr; }
  .wpl-demo-text { border-right: 0; border-bottom: 1px solid var(--hairline-soft); }
  .wpl-links { display: none; }
}

/* Production addition: tighten chrome down to 375px (prototype stopped at 880). */
@media (max-width: 480px) {
  .wpl-wrap { padding: 0 18px; }
  .wpl-nav-in { gap: 12px; }
  .wpl-nav-cta { gap: 4px; }
  .wpl-hero { padding-top: 64px; }
  .wpl-hero-cta .wpl-btn-lg { width: 100%; justify-content: center; }
  .wpl-section { padding-top: 64px; }
  .wpl-demo-text { padding: 20px 18px; }
  .wpl-final { padding: 72px 0 80px; }
}
