/* plumaeditor.com */
@font-face { font-family: "Familjen Grotesk"; src: url("../fonts/familjen-grotesk.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Familjen Grotesk"; src: url("../fonts/familjen-grotesk-italic.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }

:root {
  --paper: #f6f7f5;
  --white: #ffffff;
  --ink: #1a1d24;
  --mute: #5a606c;
  --rule: #dadde3;
  --blue: #2852c8;
  --blue-deep: #1d3e9e;
  --wash: #e4eafb;
  --add: #e3f3e8;
  --add-ink: #1d6b3a;
  --del: #fbe7e5;
  --del-ink: #a3302a;
  --sans: "Familjen Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --gutter: clamp(20px, 4vw, 48px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
code, pre, kbd { font-family: var(--mono); font-size: .88em; }
:not(pre) > code { background: var(--white); border: 1px solid var(--rule); border-radius: 5px; padding: .08em .35em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---- header ---- */
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.15rem; letter-spacing: -.01em; }
.brand:hover { color: var(--ink); }
.brand img { width: 26px; height: 26px; }
.site-head nav ul { display: flex; align-items: center; gap: 6px 22px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.site-head nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.site-head nav a:hover { color: var(--blue); }
.head-cta { display: inline-block; padding: 8px 16px; border-radius: 999px; background: var(--ink); color: var(--paper) !important; font-weight: 600; }
.head-cta:hover { background: var(--blue); }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 12px; font: 600 1.05rem/1.2 var(--sans); text-decoration: none; border: 1.5px solid var(--ink); color: var(--ink); background: transparent; cursor: pointer; }
.btn:hover { background: var(--white); color: var(--ink); text-decoration: none; }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }
.btn small { font-weight: 400; opacity: .8; }

/* ---- hero ---- */
.hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; padding-top: clamp(28px, 5vw, 64px); padding-bottom: clamp(56px, 8vw, 104px); }
.hero h1 { margin: 0 0 20px; font-size: clamp(2.6rem, 5.6vw, 4.6rem); line-height: 1; letter-spacing: -.035em; font-weight: 700; }
.hero .lead { margin: 0 0 28px; font-size: clamp(1.15rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--mute); max-width: 32em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0; font-size: .95rem; }
.facts div { display: flex; gap: 6px; }
.facts dt { color: var(--mute); }
.facts dd { margin: 0; font-weight: 600; }

/* ---- live demo ---- */
.demo { position: relative; border-radius: 14px; background: var(--white); border: 1px solid var(--rule); box-shadow: 0 30px 60px -30px rgba(26, 29, 36, .35), 0 2px 6px rgba(26, 29, 36, .06); overflow: hidden; font-size: 15px; }
.demo-chrome { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #eef0f3; border-bottom: 1px solid var(--rule); }
.demo-dots { display: flex; gap: 6px; }
.demo-dots i { width: 10px; height: 10px; border-radius: 50%; background: #cfd3da; display: block; }
.demo-url { flex: 1; background: var(--white); border-radius: 6px; padding: 3px 10px; font-size: 12.5px; color: var(--mute); }
.demo-bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid #e6e2d9; background: #fff; font-size: 13px; }
.demo-bar img { width: 18px; height: 18px; }
.demo-bar .name { font-weight: 600; }
.demo-bar .page { border: 1px solid #d6d1c5; border-radius: 6px; padding: 2px 8px; color: var(--mute); }
.demo-status { margin-left: auto; display: flex; align-items: center; gap: 6px; color: var(--mute); }
.demo-status i { width: 7px; height: 7px; border-radius: 50%; background: #1f7a4d; display: block; }
.demo-status.is-dirty i { background: #e0a100; }
.demo-save { border: 0; border-radius: 7px; background: #27508f; color: #fff; font: 600 13px/1 var(--sans); padding: 7px 12px; cursor: pointer; }
.demo-save:disabled { opacity: .45; cursor: default; }
.demo-page { position: relative; padding: 22px 24px 26px; background: #fbf8f3; color: #2b2418; font-family: Georgia, "Times New Roman", serif; }
.demo-hero { display: grid; grid-template-columns: 1fr 150px; gap: 18px; align-items: center; margin-bottom: 18px; }
.demo-page h3 { margin: 0 0 6px; font-size: 26px; line-height: 1.1; font-weight: 700; }
.demo-page p { margin: 0; line-height: 1.5; color: #5b5142; }
.demo-pic { width: 150px; height: 112px; border-radius: 10px; overflow: hidden; cursor: pointer; }
.demo-pic svg { width: 100%; height: 100%; display: block; }
.demo-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; list-style: none; margin: 0; padding: 0; }
.demo-cards li { position: relative; background: #fff; border-radius: 10px; padding: 12px; box-shadow: 0 1px 2px rgba(43, 36, 24, .08); }
.demo-cards b { display: block; font-size: 15px; margin-bottom: 2px; }
.demo-cards span { font-size: 13px; color: #7a6f5d; }
.demo [data-demo-edit] { cursor: text; border-radius: 3px; }
.demo [data-demo-edit]:hover, .demo [data-demo-edit]:focus-visible { outline: 2px dashed rgba(39, 80, 143, .6); outline-offset: 3px; }
.demo [data-demo-edit][contenteditable="true"] { outline: 2px solid #27508f; outline-offset: 3px; }
.demo-pic:hover, .demo-pic:focus-visible { outline: 2px dashed rgba(39, 80, 143, .6); outline-offset: 3px; }
.demo-cards li:hover { box-shadow: 0 0 0 1px rgba(39, 80, 143, .45), 0 1px 2px rgba(43, 36, 24, .08); }
.demo-block { position: absolute; top: -14px; right: 6px; display: none; gap: 2px; background: #fff; border: 1px solid #d6d1c5; border-radius: 8px; padding: 2px; box-shadow: 0 4px 12px rgba(20, 22, 28, .12); font-family: var(--sans); z-index: 2; }
.demo-cards li:hover .demo-block, .demo-cards li:focus-within .demo-block { display: flex; }
.demo-block button { border: 0; background: none; border-radius: 6px; padding: 3px 7px; font: 500 12px/1.2 var(--sans); color: #1c1d21; cursor: pointer; }
.demo-block button:hover { background: #f1efe9; }
.demo-toast { position: absolute; left: 50%; bottom: 14px; transform: translate(-50%, 8px); background: #1c1d21; color: #fff; font: 500 13px/1.35 var(--sans); padding: 8px 12px; border-radius: 9px; opacity: 0; transition: opacity .15s, transform .15s; pointer-events: none; max-width: calc(100% - 28px); text-align: center; }
.demo-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.demo-hint { margin: 12px 0 0; font-size: .92rem; color: var(--mute); }
.demo-hint button { font: inherit; color: var(--blue); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }

/* ---- sections ---- */
.section { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 104px); border-top: 1px solid var(--rule); }
.section > h2, .split .copy > h2 { margin: 0 0 14px; font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.08; letter-spacing: -.025em; font-weight: 700; max-width: 18em; }
.section-intro { margin: 0 0 40px; color: var(--mute); font-size: 1.15rem; max-width: 38em; }

/* steps: a real sequence */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step { counter-increment: step; }
.step::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--ink); font-weight: 700; margin-bottom: 14px; }
.step h3 { margin: 0 0 6px; font-size: 1.25rem; letter-spacing: -.01em; }
.step p { margin: 0; color: var(--mute); }

/* diff */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: start; }
.split .copy p { color: var(--mute); margin: 0 0 16px; max-width: 32em; }
.guarantees { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.guarantees li { padding-left: 30px; position: relative; }
.guarantees li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px; border-left: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: rotate(-45deg); }
.guarantees b { display: block; }
.guarantees span { color: var(--mute); }
.diff { background: var(--white); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; font: 13px/1.65 var(--mono); }
.diff-head { padding: 9px 14px; border-bottom: 1px solid var(--rule); color: var(--mute); font-family: var(--sans); font-size: 13px; display: flex; justify-content: space-between; gap: 12px; }
.diff pre { margin: 0; padding: 10px 0; overflow-x: auto; }
.diff code { display: block; padding: 0 14px 0 42px; white-space: pre; position: relative; }
.diff code::before { content: attr(data-n); position: absolute; left: 0; width: 30px; text-align: right; color: #a3a8b3; }
.diff .del { background: var(--del); color: var(--del-ink); }
.diff .add { background: var(--add); color: var(--add-ink); }
.diff .del::after, .diff .add::after { position: absolute; left: 33px; }
.diff .del::after { content: "−"; }
.diff .add::after { content: "+"; }

/* features */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; list-style: none; margin: 0; padding: 0; }
.feature { padding: 22px 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 9.5rem 1fr; gap: 4px 20px; }
.feature h3 { margin: 0; font-size: 1.05rem; font-weight: 700; }
.feature p { margin: 0; color: var(--mute); }

.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; margin-top: 48px; align-items: start; }
.shot { margin: 0; }
.shot:first-child { grid-column: 1 / -1; }
.shot img { border-radius: 12px; border: 1px solid var(--rule); box-shadow: 0 20px 40px -28px rgba(26, 29, 36, .4); width: 100%; }
.shot figcaption { margin-top: 8px; font-size: .92rem; color: var(--mute); }

/* AI prompt */
.prompt { position: relative; background: var(--ink); color: #e6e9ef; border-radius: 14px; padding: 22px 22px 20px; }
.prompt pre { margin: 0; white-space: pre-wrap; font: 13.5px/1.6 var(--mono); }
.copy-btn { position: absolute; top: 12px; right: 12px; border: 1px solid #3a3f4b; background: #252934; color: #fff; border-radius: 8px; padding: 6px 12px; font: 600 13px/1 var(--sans); cursor: pointer; }
.copy-btn:hover { background: #313644; }

/* faq */
.faq { max-width: 50rem; }
.faq details { border-top: 1px solid var(--rule); padding: 16px 0; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { font-weight: 600; font-size: 1.1rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; color: var(--mute); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding-top: 10px; color: var(--mute); }
.faq .answer p { margin: 0 0 10px; }

/* closing download band */
.band { background: var(--blue); color: #fff; border-radius: 20px; padding: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: center; margin-top: clamp(56px, 8vw, 104px); }
.band h2 { margin: 0 0 8px; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.1; letter-spacing: -.02em; }
.band p { margin: 0; color: #dfe6fb; max-width: 34em; }
.band .btn { background: #fff; border-color: #fff; color: var(--blue-deep); }
.band .btn:hover { background: var(--wash); }
.band a:not(.btn) { color: #fff; }
.band code { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .25); color: #fff; }

/* footer */
.site-foot { display: grid; grid-template-columns: 1fr auto; gap: 18px 40px; padding-top: 40px; padding-bottom: 48px; margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--rule); font-size: .95rem; color: var(--mute); }
.site-foot p { margin: 0; }
.site-foot ul { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; margin: 0; padding: 0; }
.site-foot a { color: var(--ink); }

/* ---- inner pages (docs, support, license) ---- */
.page-head { padding-top: clamp(28px, 5vw, 56px); padding-bottom: 28px; }
.page-head h1 { margin: 0 0 12px; font-size: clamp(2.3rem, 5vw, 3.6rem); letter-spacing: -.03em; line-height: 1.04; }
.page-head p { margin: 0; color: var(--mute); font-size: 1.2rem; max-width: 36em; }
.doc { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 48px; padding-top: 24px; }
.toc { position: sticky; top: 24px; align-self: start; font-size: .95rem; }
.toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.toc a { color: var(--mute); text-decoration: none; }
.toc a:hover { color: var(--blue); }
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.75rem; letter-spacing: -.02em; line-height: 1.15; margin: 48px 0 14px; padding-top: 24px; border-top: 1px solid var(--rule); }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 1.2rem; margin: 28px 0 8px; }
.prose p, .prose li { color: #2f343e; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 6px; }
.prose pre { background: var(--ink); color: #e6e9ef; border-radius: 12px; padding: 16px 18px; overflow-x: auto; font: 13.5px/1.6 var(--mono); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 16px 0 24px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--rule); }
.prose th { font-weight: 600; color: var(--mute); }
.note { background: var(--wash); border-radius: 12px; padding: 14px 18px; margin: 18px 0; }
.note p { margin: 0; }
.cards-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; list-style: none; margin: 24px 0; padding: 0; }
.cards-2 li { background: var(--white); border: 1px solid var(--rule); border-radius: 14px; padding: 22px; }
.cards-2 h3 { margin: 0 0 6px; font-size: 1.2rem; }
.cards-2 p { margin: 0 0 14px; color: var(--mute); }
.license-text { white-space: pre-wrap; font: 14px/1.65 var(--mono); background: var(--white); border: 1px solid var(--rule); border-radius: 12px; padding: 22px; max-width: 46rem; }

/* ---- responsive ---- */
@media (max-width: 960px) {
  .hero, .split { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr; }
  .doc { grid-template-columns: 1fr; }
  .toc { position: static; }
  .band { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .site-head { flex-wrap: wrap; }
  .site-head nav ul { gap: 6px 16px; }
  .steps { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; }
  .demo-hero { grid-template-columns: 1fr 110px; }
  .demo-pic { width: 110px; height: 90px; }
  .demo-cards { grid-template-columns: 1fr; }
  .demo-page h3 { font-size: 22px; }
  .cards-2 { grid-template-columns: 1fr; }
  .site-foot { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-toast { transition: none; }
}
@media (max-width: 680px) {
  .demo-status span, .demo-bar .page { display: none; }
}
.prose td code { white-space: nowrap; }
