@font-face {
  font-family: "Instrument Serif";
  src: url("instrument-serif-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Instrument Serif", Georgia, serif;
  --background: #f5f6fa;
  --surface: #fff;
  --ink: #1c2538;
  --muted: #515f75;
  --border: #d4dbe8;
  --blue: #234fcd;
  --blue-hover: #193eae;
  --accent-text: #234fcd;
  --accent-tint: #e5ebff;
  --editor-ink: #202a40;
  --editor-muted: #535f78;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #131823;
    --surface: #1b2331;
    --ink: #f3f6ff;
    --muted: #bbc7dc;
    --border: #36445a;
    --accent-text: #a4baff;
    --accent-tint: #26365a;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  line-height: 1.55;
}

h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
img { display: block; }
button { font: inherit; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 8px 12px;
  transform: translateY(-170%);
  background: var(--surface);
}
.skip-link:focus { transform: none; }

.shell {
  width: min(100% - 96px, 1216px);
  margin-inline: auto;
}

.site-header, .site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.site-header { min-height: 88px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-size: 1.2rem;
  font-weight: 720;
  letter-spacing: -.045em;
  text-decoration: none;
}

.brand img { border-radius: 10px; }

.site-nav, .site-footer nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 32px;
}

.site-nav a, .site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: .93rem;
  text-decoration: none;
}

.site-nav a:hover, .site-footer nav a:hover {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: .24em;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, .87fr) minmax(0, 1.13fr);
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
  padding-block: clamp(36px, 4.5vw, 70px) clamp(40px, 5vw, 72px);
}

h1, h2, .packs dd {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -.025em;
}

h1 {
  font-size: clamp(4rem, 7.05vw, 6.65rem);
  line-height: .9;
}
h1 em { color: var(--accent-text); }
.hero-description {
  max-width: 35ch;
  margin-block: 24px 26px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.48vw, 1.26rem);
  line-height: 1.5;
}

.download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 11px 19px;
  border-radius: 11px;
  background: var(--blue);
  box-shadow: 0 8px 19px #102c981f;
  color: #fff;
  font-weight: 680;
  text-decoration: none;
  transition: background-color 150ms ease, transform 150ms ease;
}
.download:hover { background: var(--blue-hover); transform: translateY(-1px); }
.download:active { transform: none; }
.download-icon { font-size: 1.4em; line-height: 1; }

.download-details {
  margin-top: 13px;
  color: var(--muted);
  font-size: .91rem;
}
.download-details strong { color: var(--ink); }
.compatibility {
  margin-top: 3px;
  color: var(--muted);
  font-size: .79rem;
}

.demo { min-width: 0; }

.demo-stage {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(430px, 38vw, 550px);
  padding: clamp(20px, 3.3vw, 46px);
  overflow: hidden;
  border: 1px solid #adc2f55e;
  border-radius: 37px;
  background-color: #cbd8fb;
  background-image:
    linear-gradient(90deg, #819ae326 1px, transparent 1px),
    linear-gradient(#819ae326 1px, transparent 1px),
    radial-gradient(ellipse at 15% 14%, #f1edff 1%, transparent 56%),
    linear-gradient(142deg, #d8dafc, #d8e5ff 53%, #adc3fc);
  background-size: 17px 17px, 17px 17px, auto, auto;
  color: var(--editor-ink);
  color-scheme: light;
}
.demo-stage::before {
  position: absolute;
  z-index: -1;
  right: -18%;
  bottom: -18%;
  width: 125%;
  height: 57%;
  transform: rotate(-25deg);
  border-radius: 50%;
  background: #eff5ff84;
  box-shadow: 0 -12px 32px #e4e8ff9e;
  content: "";
}

.draft {
  width: 98%;
  min-height: 222px;
  overflow: hidden;
  border: 1px solid #a4b2d2;
  border-radius: 15px;
  background: #f9faff;
  box-shadow: 0 20px 34px #2b40782e;
}

.draft-toolbar {
  position: relative;
  display: grid;
  min-height: 43px;
  place-items: center;
  border-bottom: 1px solid #d7deed;
  background: #eef0f8;
  font-size: .83rem;
  font-weight: 600;
}

.window-controls {
  position: absolute;
  left: 14px;
  display: flex;
  gap: 7px;
}
.window-controls i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e15b5e;
}
.window-controls i:nth-child(2) { background: #ecb24c; }
.window-controls i:nth-child(3) { background: #50ad5b; }

.draft-text {
  max-width: 40ch;
  padding: 22px 22px 0;
  font-size: clamp(.92rem, 1.35vw, 1.12rem);
}
.draft-text mark {
  padding: 2px;
  background: #c6d7ff;
  color: #192647;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.demo-popover {
  z-index: 1;
  align-self: flex-end;
  width: min(94%, 470px);
  margin-top: -100px;
  padding: 14px;
  border: 1px solid #b8c5e0;
  border-radius: 17px;
  background: #f8f9fe;
  box-shadow: 0 17px 34px #2b407845, 0 4px 9px #3543691a;
}

.demo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.demo-brand { gap: 7px; font-size: .99rem; }
.demo-brand img { border-radius: 6px; }

kbd {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding-inline: .3em;
  font: inherit;
  font-size: .85em;
  line-height: 1.45;
  white-space: nowrap;
}
.demo-header kbd {
  border-color: #d7dfef;
  background: #f0f3fb;
  color: var(--editor-muted);
}

.demo-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 10px;
  padding: 3px;
  border: 1px solid #d7dfef;
  border-radius: 9px;
  background: #edf1fa;
}
.demo-actions button {
  min-width: 0;
  min-height: 44px;
  padding: 5px 3px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--editor-ink);
  font-size: .83rem;
  font-weight: 640;
  cursor: pointer;
}
.demo-actions button:hover { background: #e0e8fb; }
.demo-actions button[aria-pressed="true"] { background: #dce6ff; color: #183caa; }
.demo-actions button:focus-visible { outline-color: #234fcd; outline-offset: -2px; }
.demo-result {
  min-height: 78px;
  padding: 13px 12px;
  border: 1px solid #d9e1f1;
  border-radius: 9px;
  background: #f0f3fa;
  font-size: clamp(.9rem, 1.2vw, 1.08rem);
  line-height: 1.42;
}
figcaption { margin-top: 10px; color: var(--muted); font-size: .79rem; text-align: right; }

.section {
  padding-block: clamp(36px, 5.5vw, 76px);
  border-top: 1px solid var(--border);
}
h2 { font-size: clamp(2.65rem, 5.1vw, 4.85rem); line-height: .96; }
.section h2 { scroll-margin-top: 20px; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4.6vw, 66px);
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.step-icon {
  display: inline-grid;
  width: 51px;
  height: 51px;
  margin-bottom: 13px;
  place-items: center;
  border-radius: 13px;
  background: var(--accent-tint);
  color: var(--accent-text);
  font-size: 1.5rem;
  line-height: 1;
}
.steps h3 { margin-bottom: 7px; font-size: 1.14rem; line-height: 1.3; letter-spacing: -.02em; }
.steps p { max-width: 33ch; color: var(--muted); font-size: .94rem; }
.steps strong { color: var(--ink); }

.pricing-intro { margin-bottom: 26px; }
.pricing-intro p { margin-top: 11px; color: var(--muted); }
.packs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 22px 0;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: var(--surface);
}
.packs div {
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 3px clamp(22px, 3.8vw, 46px);
}
.packs div + div { border-left: 1px solid var(--border); }
.packs dt { font-size: 1.06rem; font-weight: 650; }
.packs dt small { display: block; color: var(--muted); font-size: .78rem; font-weight: 450; }
.packs dd { margin: 4px 0 0; color: var(--accent-text); font-size: 3.5rem; line-height: 1; }
.packs dd span {
  font: 600 .69rem / 1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: .05em;
}

.faq { max-width: 760px; margin-top: 28px; border-block: 1px solid var(--border); }
.faq details + details { border-top: 1px solid var(--border); }
.faq summary { padding-block: 14px; cursor: pointer; font-weight: 650; }
.faq p { padding: 0 0 18px 18px; color: var(--muted); }

.site-footer {
  min-height: 88px;
  border-top: 1px solid var(--border);
}
.site-footer .brand { font-size: 1.04rem; }

@media (max-width: 1000px) {
  .shell { width: calc(100% - 56px); }
  .hero { gap: 26px; }
  .demo-stage { min-height: 420px; border-radius: 28px; }
  .draft { min-height: 205px; }
  .demo-popover { width: 97%; margin-top: -92px; }
}

@media (max-width: 760px) {
  .shell { width: calc(100% - 40px); }
  .site-header { min-height: 74px; }
  .site-nav, .site-footer nav { gap: 8px 16px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 30px; padding-top: 24px; }
  h1 { font-size: clamp(3.85rem, 11vw, 6.1rem); }
  .hero-break { display: none; }
  .demo-stage { min-height: 375px; }
  .steps { gap: 22px; }
  .packs { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; }
  .packs div { padding: 14px 18px; }
  .packs div:nth-child(odd) { border-left: 0; }
  .packs div:nth-child(n+3) { border-top: 1px solid var(--border); }
}

@media (max-width: 480px) {
  .site-header, .site-footer { gap: 6px 16px; }
  .brand { gap: 6px; font-size: 1rem; }
  .site-header .brand img { width: 32px; height: 32px; }
  .site-nav { gap: 4px 13px; }
  .site-nav a { font-size: .81rem; }
  .hero-description { margin-block: 19px 21px; }
  .demo-stage { justify-content: flex-start; min-height: 330px; padding: 19px 15px; border-radius: 23px; }
  .draft { min-height: 177px; }
  .draft-text { padding: 15px 11px 0; }
  .demo-popover { width: 97%; margin-top: -75px; padding: 10px; }
  .demo-brand { font-size: .94rem; }
  .demo-result { min-height: 69px; padding: 9px 10px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 23px; }
  .steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; align-items: start; }
  .step-icon { grid-row: span 2; width: 44px; height: 44px; margin: 0; }
  .steps h3 { margin-bottom: 4px; }
  .packs { grid-template-columns: minmax(0, 1fr); padding: 0 17px; }
  .packs div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 0; }
  .packs div + div { border-left: 0; border-top: 1px solid var(--border); }
  .packs dd { margin: 0; font-size: 2.8rem; }
  .site-footer { flex-direction: column; align-items: flex-start; padding-block: 14px; }
  .site-footer nav { gap: 4px 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .download { transition: none; }
}
