/* Whiteboard.zone landing pages (rendered from excalidraw-app/seo/pages/*.json
   by excalidraw-app/seo/render) and the 404 page. Same "Ink & Paper" look as
   public/site.css. The theme follows the editor's saved choice when there is
   one (html[data-theme], set before first paint), otherwise the system. This
   file is removed from the page when the editor opens in place. */

:root {
  --paper: #f6f4ee;
  --surface: #ffffff;
  --ink: #25222f;
  --text: #25222f;
  --muted: #4e4a5c;
  --faint: #615c75;
  --line: rgba(37, 34, 47, 0.14);
  --primary: #5b45e0;
  --primary-hover: #4c37cc;
  --primary-light: #ede9ff;
  --on-primary: #ffffff;
  --sun: #ffd45c;
  --logo-wedge: #f4f4fb;
  --pop: 3px 3px 0 var(--ink);
  --pop-sm: 2px 2px 0 var(--ink);
  --radius: 16px;
  --font: "Nunito", "Segoe UI", system-ui, sans-serif;
  --measure: 68ch;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121116;
    --surface: #1f1e26;
    --ink: #6c6880;
    --text: #f1eff7;
    --muted: #c9c5d6;
    --faint: #a9a4bb;
    --line: rgba(241, 239, 247, 0.14);
    --primary: #a595ff;
    --primary-hover: #b8abff;
    --primary-light: rgba(165, 149, 255, 0.14);
    --on-primary: #16132b;
    --logo-wedge: #ffffff;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper: #121116;
  --surface: #1f1e26;
  --ink: #6c6880;
  --text: #f1eff7;
  --muted: #c9c5d6;
  --faint: #a9a4bb;
  --line: rgba(241, 239, 247, 0.14);
  --primary: #a595ff;
  --primary-hover: #b8abff;
  --primary-light: rgba(165, 149, 255, 0.14);
  --on-primary: #16132b;
  --logo-wedge: #ffffff;
  color-scheme: dark;
}

html[lang="ar"] {
  --font: "Cairo", "Segoe UI", system-ui, sans-serif;
  --measure: 60ch;
}

* {
  box-sizing: border-box;
}

/* the URL carries editor state: the editor opens right away */
.lp-app [data-landing] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

::selection {
  background: var(--sun);
  color: #25222f;
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

a {
  color: var(--primary);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1.5px;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

html[lang="ar"] :is(h1, h2, h3) {
  letter-spacing: 0;
  line-height: 1.35;
}

p {
  margin: 0 0 1em;
  max-width: var(--measure);
}

.lp-wrap {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}

.lp-skip {
  position: absolute;
  inset-inline-start: 16px;
  top: -60px;
  z-index: 20;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1.5px solid var(--ink);
}

.lp-skip:focus {
  top: 12px;
}

/* ---------------------------------------------------------------- header */

.lp-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.lp-header .lp-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
}

.lp-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.lp-brand svg {
  width: 40px;
  height: 24px;
}

.lp-nav {
  display: flex;
  gap: 4px;
  margin-inline-start: auto;
}

.lp-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
}

.lp-nav a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* ---------------------------------------------------------------- buttons */

.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 10px 26px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--primary);
  color: var(--on-primary);
  font: inherit;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  box-shadow: var(--pop);
  transition: transform 160ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 160ms cubic-bezier(0.2, 0.8, 0.2, 1), background-color 160ms;
}

.lp-btn:hover {
  background: var(--primary-hover);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
}

.lp-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--ink);
}

.lp-btn--small {
  min-height: 40px;
  padding: 6px 16px;
  font-size: 0.92rem;
  background: var(--sun);
  color: #25222f;
  box-shadow: var(--pop-sm);
}

.lp-btn--small:hover {
  background: var(--sun);
  box-shadow: var(--pop);
}

/* ---------------------------------------------------------------- content */

.lp-main {
  padding-bottom: 24px;
}

.lp-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  color: var(--faint);
  font-size: 0.88rem;
}

.lp-crumbs li + li::before {
  content: "/";
  margin-inline-end: 4px;
  color: var(--faint);
}

.lp-crumbs a {
  color: var(--muted);
}

.lp-hero {
  display: grid;
  gap: 32px;
  align-items: center;
  padding: 40px 0 24px;
}

.lp-hero h1 {
  font-size: clamp(2rem, 5.2vw, 3.4rem);
  font-weight: 900;
  margin-bottom: 18px;
}

.lp-intro {
  font-size: 1.15rem;
  color: var(--muted);
}

.lp-eyebrow {
  margin: 0 0 8px;
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--primary);
  letter-spacing: 0.08em;
}

.lp-cta {
  margin: 26px 0 0;
}

.lp-figure {
  margin: 0;
  padding: 12px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--pop);
}

.lp-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  border-radius: 10px;
  background: #ffffff;
}

@media (min-width: 900px) {
  .lp-hero {
    padding: 64px 0 40px;
  }

  .lp-hero--image {
    grid-template-columns: 1.05fr 1fr;
  }
}

.lp-section {
  padding: 36px 0;
  border-top: 1px solid var(--line);
}

.lp-section h2 {
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  font-weight: 900;
  margin-bottom: 16px;
}

.lp-section h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.lp-list {
  margin: 0;
  padding-inline-start: 1.3em;
  max-width: var(--measure);
}

.lp-list li {
  margin-bottom: 6px;
}

.lp-steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.lp-steps li {
  position: relative;
  padding: 18px 20px 4px;
  padding-inline-start: 68px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  counter-increment: step;
}

.lp-steps li::before {
  content: counter(step);
  position: absolute;
  inset-inline-start: 18px;
  top: 16px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--sun);
  color: #25222f;
  font-weight: 900;
}

@media (min-width: 900px) {
  .lp-steps {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

.lp-faq {
  display: grid;
  gap: 10px;
  max-width: 860px;
}

.lp-faq details {
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.lp-faq summary {
  padding: 14px 18px;
  font-weight: 800;
  cursor: pointer;
}

.lp-faq details[open] summary {
  border-bottom: 1px solid var(--line);
}

.lp-faq details p {
  margin: 0;
  padding: 14px 18px 16px;
  color: var(--muted);
}

.lp-cards {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}

.lp-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 18px 20px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--pop-sm);
  transition: transform 160ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 160ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lp-card:hover {
  transform: translate(-1px, -1px);
  box-shadow: var(--pop);
}

.lp-card strong {
  color: var(--primary);
  font-weight: 800;
}

.lp-card span {
  color: var(--muted);
  font-size: 0.95rem;
}

.lp-band {
  margin: 24px 0 0;
  padding: 32px 24px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: var(--primary-light);
  text-align: center;
}

.lp-band p {
  margin-inline: auto;
}

.lp-band h2 {
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  font-weight: 900;
}

/* ---------------------------------------------------------------- footer */

.lp-footer {
  margin-top: 56px;
  padding: 32px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.92rem;
}

.lp-footer__grid {
  display: grid;
  gap: 24px 48px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.lp-footer h2 {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 800;
}

.lp-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lp-footer li {
  margin-bottom: 6px;
}

.lp-footer a {
  color: var(--muted);
  text-decoration: none;
}

.lp-footer a:hover,
.lp-footer a[aria-current="page"] {
  color: var(--primary);
  text-decoration: underline;
}

.lp-footer__copy {
  grid-column: 1 / -1;
  margin: 0;
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .lp-nav {
    display: none;
  }

  .lp-btn--small {
    margin-inline-start: auto;
  }

  .lp-cta .lp-btn {
    width: 100%;
  }

  .lp-brand {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-btn,
  .lp-card {
    transition: none;
  }
}
