/* Landing-page presentation; editor and conversion states retain styles.css. */
.landing-page {
  --paper: #ffffff;
  --ink: #242332;
  --muted: #686575;
  --accent: var(--brand-purple);
  --accent-hover: var(--landing-action-hover);
  --sage: #eee7fc;
  --line: #e7e4ec;
  --subtle: #f6f4fa;
  --selection: #8658e5;
  --case-surface: #f0edf8;
  --hero-top: #7138e8;
  --hero-blue: #3b6ce5;
  --hero-sky: #c9e9f8;
  --on-hero: #fff;
  --on-hero-muted: #f0eaff;
}
.landing-page .site-header {
  max-width: none;
  height: 86px;
  padding: 0 max(32px, calc((100% - 1400px) / 2));
  background: var(--hero-top);
  color: var(--on-hero);
  border-bottom: 0;
}
.landing-page .site-header nav {
  gap: 30px;
  font-size: 13px;
}
.landing-page .hero {
  padding: 48px 32px 84px;
  max-width: none;
  background: linear-gradient(
    180deg,
    var(--hero-top) 0%,
    var(--hero-blue) 48%,
    var(--hero-sky) 83%,
    #fff 100%
  );
}
.hero-label,
.section-label,
.landing-page h1 {
  font-size: clamp(48px, 5vw, 80px);
  font-weight: 400;
  letter-spacing: -3.6px;
  line-height: 1.1;
  margin: 18px auto 24px;
  color: var(--on-hero);
}
.landing-page h1 em {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 400;
  color: inherit;
}
.landing-page .hero-description {
  font-size: 18px;
  line-height: 1.65;
  color: var(--on-hero-muted);
}
.landing-page .converter {
  margin-top: 32px;
}
.landing-page .upload-layout {
  display: block;
  max-width: 560px;
  margin: auto;
  border: none;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
.landing-page .upload-panel {
  background: var(--surface);
  padding: 20px;
  border: 1px solid #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 60px #29226624;
}
.landing-page .dropzone {
  padding: 26px 20px 24px;
  border: 1.5px dashed #c9b7ea;
  border-radius: 10px;
}
.landing-page .upload-symbol {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border: none;
  background: var(--sage);
  border-radius: 12px;
  transform: none;
}
.dropzone:has(#upload-state:not([hidden])) > :not(#upload-state) { display: none; }
#upload-state:not([hidden]) { display: grid; justify-items: center; gap: 8px; max-width: 100%; min-width: 0; }
#selected-image { object-fit: contain; border-radius: 5px; }
#selected-name, #submit-message { max-width: 100%; overflow-wrap: anywhere; }
#submit-message:empty { display: none; }
#convert-button:disabled::before { content: ''; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: upload-spin .8s linear infinite; }
@keyframes upload-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { #convert-button:disabled::before { animation: none; } }
.landing-page .upload-symbol svg {
  height: 23px;
  width: 23px;
}
.landing-page .dropzone .primary-button {
  min-width: 226px;
  justify-content: center;
  font-size: 16px;
  font-weight: 500;
  padding: 16px 28px;
  border-radius: 8px;
}
.landing-page .dropzone p {
  font-size: 14px;
  margin: 13px 0 0;
  color: #686575;
}
.landing-page .file-meta {
  font-size: 11px;
  margin-top: 10px;
  color: var(--muted);
}
.landing-page .sample-row {
  border: 0;
  padding-top: 18px;
  font-size: 12px;
  color: var(--muted);
  gap: 16px;
}
.landing-page .sample-thumbnails {
  gap: 8px;
}
.landing-page .sample-thumbnails button {
  padding: 0;
  border-radius: 6px;
}
.landing-page .sample-thumbnails img {
  width: 44px;
  height: 36px;
}
.upload-reassurance {
  color: #353956;
  font-size: 12px;
  text-align: center;
  margin-top: 20px;
  line-height: 1.5;
}
.landing-page .section-wrap {
  max-width: 1200px;
  width: calc(100% - 64px);
  margin: auto;
  padding: 96px 0;
}
.landing-page .section-heading {
  margin-bottom: 34px;
}
.landing-page .centered-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 13px;
}
.landing-page .section-heading h2,
.landing-page .faq-section h2 {
  font-size: clamp(30px, 3.1vw, 46px);
  font-weight: 400;
  letter-spacing: -1.4px;
  line-height: 1.2;
}
.landing-page .section-heading > p:not(.section-label) {
  font-size: 15px;
  line-height: 1.7;
  max-width: 680px;
  padding: 0;
  display: block;
}
.landing-page .section-heading > .section-label {
  font-size: 10px;
  line-height: 1.4;
}
.landing-page .examples-section {
  padding-top: 34px;
  border-top: 0;
}
.case-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.case-comparison figure {
  margin: 0;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
}
.case-comparison figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.case-comparison figcaption > span:first-child {
  display: flex;
  gap: 8px;
  align-items: center;
}
.case-result figcaption {
  color: var(--accent);
  background: #f2ecfc;
}
.format-tag {
  font-size: 10px;
  letter-spacing: 1px;
  font-weight: 400;
}
.case-art {
  padding: 26px;
  background: var(--case-surface);
}
.case-art > img,
.case-art > svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1448 / 1086;
  object-fit: contain;
  box-shadow: 0 2px 10px #26351c0a;
}

.example-disclosure {
  margin-top: 17px;
  font-size: 11px;
  text-align: center;
  color: var(--muted);
  line-height: 1.6;
}
.advantages-section {
  background: #faf9fc;
  border-block: 0;
}
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.benefit-grid article {
  min-width: 0;
}
.benefit-icon {
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid #e2dceb;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  margin-bottom: 22px;
}
.benefit-icon .icon {
  width: 22px;
  height: 22px;
}
.benefit-grid h3 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}
.benefit-grid p {
  color: #686575;
  font-size: 14px;
  line-height: 1.8;
}

.landing-page .faq-section {
  grid-template-columns: 1fr 1.65fr;
  gap: 70px;
}
.landing-page .faq-section .section-label {
  font-size: 10px;
  margin-bottom: 18px;
}
.landing-page .faq-list summary {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}
.landing-page .faq-list p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}
.landing-page .faq-list details {
  padding: 20px 0;
}
.landing-page .faq-list details:first-child {
  padding-top: 0;
}
.landing-page .site-footer {
  max-width: none;
  border-top: 1px solid var(--line);
  background: #f7f6fa;
  padding: 36px max(32px, calc((100% - 1200px) / 2));
  gap: 40px;
  align-items: center;
}
.site-footer > div > p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 10px;
}
.site-footer nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
  font-size: 12px;
}
.landing-page .site-footer > span {
  font-size: 11px;
  display: block;
  color: var(--muted);
}
.landing-page .compact-hero h1 {
  font-size: 38px;
  line-height: 1.15;
}
.landing-page .compact-hero h1 br {
  display: none;
}
.landing-page .compact-hero .hero-description {
  font-size: 14px;
}
.landing-page .compact-hero {
  padding-top: 30px;
}

/* Product-specific adaptation of the reference's gradient, media and whitespace. */
.landing-page .site-header nav,
.landing-page .site-header nav a:hover,
.landing-page .site-header .icon-button {
  color: var(--on-hero);
}
.account-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.account-credit-pill {
  display: flex;
  align-items: center;
  min-height: 32px;
  padding: 2px;
  border: 1px solid var(--brand-edge);
  border-radius: 999px;
  background: var(--brand-tint);
  color: var(--ink);
  font-size: 14px;
  white-space: nowrap;
}
#account-popover {
  position: fixed; inset: auto; margin: 0; padding: 8px;
  width: min(250px, calc(100vw - 24px)); box-sizing: border-box;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  color: var(--ink); box-shadow: 0 8px 24px #24233218;
}
.profile-row { display: flex; align-items: center; gap: 12px; padding: 8px 6px 14px; border-bottom: 1px solid var(--line); }
.profile-picture { display: grid; place-items: center; flex: 0 0 38px; height: 38px; overflow: hidden; border-radius: 50%; background: var(--sage); color: var(--accent-hover); }
.profile-picture > * { grid-area: 1 / 1; }
.profile-picture img { width: 100%; height: 38px; object-fit: cover; }
.profile-copy { min-width: 0; }
.profile-copy > * { display: block; overflow-wrap: anywhere; white-space: normal; }
.profile-copy small { color: var(--muted); }
.profile-copy small:empty { display: none; }
#account-popover button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 8px; margin-top: 4px; border-radius: 8px; color: var(--ink); }
#account-popover #top-up { color: var(--brand-purple); }
#account-popover #logout { color: var(--danger); }
#account-popover button:is(:hover, :focus-visible) { background: var(--subtle); }
.account-balance {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  font-variant-numeric: tabular-nums;
}
.account-balance .icon {
  width: 16px;
  height: 16px;
  color: var(--accent);
  fill: currentColor;
}
.account-credit-unit {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.account-controls .account-avatar {
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--sage);
  color: var(--accent-hover);
  font-size: 14px;
  font-weight: 600;
}
.account-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.conversion-credit {
  padding-left: 8px;
  border-left: 1px solid currentColor;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .account-controls { gap: 6px; }
  .account-balance { padding-inline: 7px; }
  .account-controls .account-avatar { width: 36px; height: 36px; }
}
.landing-page .hero-label {
  color: var(--on-hero-muted);
}
.landing-page .hero h1 br {
  display: none;
}
.landing-page .hero-description {
  margin-inline: auto;
  max-width: 690px;
}
.landing-page .converter {
  max-width: 1200px;
  margin-inline: auto;
}
.landing-page :is(button, a, summary, input, select, textarea):focus-visible {
  outline-color: #a789e6;
}
.landing-page .dropzone:hover,
.landing-page .dropzone.dragover {
  border-color: var(--accent);
  background: #f8f4ff;
}
.case-panel {
  padding: 32px;
  border-radius: 24px;
  background: linear-gradient(125deg, #edf8fa, #eee8fb 56%, #e3eafc);
}
.case-comparison figure {
  border-color: #ffffffb3;
  box-shadow: 0 8px 28px #4335680b;
}
.case-result {
  outline: 2px solid #ab8be2;
  outline-offset: -2px;
}
.case-result .case-art {
  background: #eee8f9;
}
.benefit-grid article {
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  padding: 0 26px 26px;
}
.benefit-grid .benefit-icon {
  display: none;
}
.benefit-visual {
  height: 208px;
  margin: 0 -26px 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.benefit-visual--text {
  background: #ece5fb;
}
.text-selection {
  position: relative;
  padding: 10px 14px;
  font-size: 35px;
  letter-spacing: -1px;
  color: #493578;
  border: 2px solid #9264df;
  background: #ffffff55;
}
.text-selection::before,
.text-selection::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1.5px solid #9264df;
  background: #fff;
}
.text-selection::before {
  top: -5px;
  left: -5px;
}
.text-selection::after {
  bottom: -5px;
  right: -5px;
}
.text-caret {
  display: inline-block;
  height: 34px;
  border-right: 2px solid #7140d9;
  vertical-align: -5px;
  margin-left: 3px;
}
.visual-toolbar {
  position: absolute;
  top: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 13px;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 4px 12px #51398012;
  font-size: 11px;
}
.benefit-visual--fidelity {
  background: #e8edfd;
}
.fidelity-pair {
  display: flex;
  gap: 14px;
  transform: rotate(-6deg);
}
.fidelity-art {
  width: 106px;
  height: 136px;
  padding: 16px;
  border: 3px solid #fff;
  border-radius: 8px;
  background: #f9f2e8;
  box-shadow: 0 10px 24px #3d42761a;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.fidelity-art span {
  color: #493578;
  font:
    36px Georgia,
    serif;
}
.fidelity-art i {
  align-self: flex-end;
  width: 44px;
  height: 44px;
  border-radius: 50% 50% 6px 50%;
  background: #a96e62;
}
.benefit-visual--method {
  gap: 18px;
  background: #e5f2f4;
}
.method-source {
  width: 78px;
  height: 108px;
  padding: 14px;
  border: 2px solid #fff;
  border-radius: 8px;
  background: #f9f2e8;
  box-shadow: 0 8px 18px #3d527619;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.method-source span {
  width: 38px;
  height: 8px;
  border-radius: 2px;
  background: #6d5c8f;
}
.method-source i {
  align-self: flex-end;
  width: 35px;
  height: 35px;
  border-radius: 50% 50% 5px 50%;
  background: #a96e62;
}
.method-arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  color: #7152bf;
}
.method-arrow .icon {
  width: 18px;
  height: 18px;
}
.method-layers {
  position: relative;
  width: 98px;
  height: 110px;
}
.method-layers span {
  position: absolute;
  width: 72px;
  height: 78px;
  border: 2px solid #fff;
  border-radius: 8px;
  box-shadow: 0 7px 15px #3d527619;
}
.method-layers span:nth-child(1) {
  top: 2px;
  left: 0;
  background: #b2b2ee;
}
.method-layers span:nth-child(2) {
  top: 16px;
  left: 12px;
  background: #74b9ca;
}
.method-layers span:nth-child(3) {
  top: 30px;
  left: 24px;
  background: #fff;
}

.landing-page .compact-hero {
  background: linear-gradient(
    180deg,
    var(--hero-top),
    #eef0fc 180px,
    #fff 430px
  );
  padding-bottom: 44px;
}
.landing-page .compact-hero .hero-label {
  display: none;
}
.landing-page .compact-hero .hero-description {
  color: #f0eaff;
}

@media (max-width: 1000px) {
  .case-panel {
    padding: 24px;
  }
  .case-art {
    padding: 14px;
  }
  .benefit-grid {
    gap: 28px;
  }
}
@media (max-width: 760px) {
  .landing-page .site-header {
    padding: 0 20px;
    height: 72px;
  }
  .landing-page .site-header nav {
    gap: 18px;
  }
  .landing-page .site-header nav a:not(:first-child) {
    display: none;
  }
  .landing-page .header-actions {
    gap: 8px;
  }
  .landing-page .hero {
    padding: 40px 20px 50px;
  }
  .landing-page h1 {
    font-size: 46px;
    letter-spacing: -2px;
  }
  .landing-page .hero h1 {
    max-width: 520px;
  }
  .landing-page .hero:not(.compact-hero) h1 br {
    display: block;
  }
  .case-panel {
    padding: 18px;
    border-radius: 18px;
  }
  .benefit-visual {
    height: 200px;
  }
  .hero-label {
    font-size: 9px;
  }
  .landing-page .hero-description {
    font-size: 15px;
    max-width: 440px;
  }
  .landing-page .hero-description br {
    display: none;
  }
  .landing-page .converter {
    margin-top: 25px;
  }
  .landing-page .upload-panel {
    padding: 14px;
  }
  .landing-page .dropzone {
    padding: 24px 12px;
  }
  .landing-page .dropzone .primary-button {
    min-width: 210px;
  }
  .landing-page .sample-row {
    gap: 10px;
    font-size: 11px;
    flex-wrap: wrap;
  }
  .landing-page .sample-thumbnails img {
    width: 40px;
    height: 34px;
  }
  .landing-page .sample-thumbnails {
    gap: 6px;
  }
  .upload-reassurance {
    font-size: 11px;
  }
  .landing-page .section-wrap {
    width: calc(100% - 40px);
    padding: 52px 0;
  }
  .landing-page .section-heading h2,
  .landing-page .faq-section h2 {
    font-size: 30px;
    letter-spacing: -0.9px;
  }
  .landing-page .section-heading > p:not(.section-label) {
    font-size: 14px;
  }
  .case-comparison {
    gap: 12px;
  }
  .case-art {
    padding: 7px;
  }
  .case-comparison figcaption {
    font-size: 11px;
    padding: 11px 10px;
  }
  .case-comparison figcaption .icon {
    display: none;
  }
  .format-tag {
    font-size: 8px;
  }

  .example-disclosure {
    font-size: 10px;
    text-align: left;
  }
  .benefit-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 32px;
  }
  .benefit-icon {
    margin-bottom: 16px;
  }
  .benefit-grid h3 {
    font-size: 21px;
  }

  .landing-page .faq-section {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .landing-page .faq-section h2 br {
    display: none;
  }
  .landing-page .site-footer {
    flex-wrap: wrap;
    padding: 30px 20px;
    gap: 25px;
  }
  .site-footer nav {
    margin: 0;
    gap: 18px;
  }
  .landing-page .site-footer > div {
    width: 100%;
  }
  .landing-page .site-footer > span {
    margin-left: auto;
    font-size: 10px;
  }
  .landing-page .compact-hero h1 {
    font-size: 30px;
  }
}
@media (max-width: 480px) {
  .case-comparison {
    grid-template-columns: 1fr;
  }
  .case-art {
    padding: 13px;
  }
  .case-comparison figcaption {
    font-size: 12px;
  }
}

.landing-page .compact-hero h1 em {
  margin-left: 0.2em;
}

/* Retain the approved floating tools within the previous landing style. */
.landing-page .hero-constellation {
  position: relative;
  height: 84px;
  max-width: 660px;
  margin: 24px auto -8px;
  pointer-events: none;
}
.float-tile {
  position: absolute;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgb(255 255 255 / 58%);
  border-radius: 8px;
  background: rgb(255 255 255 / 38%);
  color: #fff;
  box-shadow:
    0 8px 16px rgb(40 25 98 / 12%),
    inset 0 0 0 1px rgb(255 255 255 / 20%);
  backdrop-filter: blur(8px);
  font-size: 24px;
  font-weight: 600;
  transform: rotate(-8deg);
}
.float-tile--text {
  left: 8%;
  top: 16px;
  color: #fff49a;
}
.float-tile--sparkle {
  left: 26%;
  top: 0;
  background: rgb(233 80 247 / 62%);
  transform: rotate(12deg);
}
.float-tile--shape {
  left: 47%;
  top: 28px;
  background: rgb(0 196 204 / 60%);
  transform: rotate(-17deg);
}
.float-tile--code {
  right: 24%;
  top: 4px;
  background: rgb(255 97 5 / 72%);
  font-size: 15px;
  transform: rotate(9deg);
}
.float-tile--heart {
  right: 7%;
  top: 34px;
  background: rgb(255 61 77 / 70%);
  transform: rotate(-13deg);
}

.landing-page .hero:not(.compact-hero) .converter {
  position: relative;
  margin-top: 0;
}
.landing-page .compact-hero .hero-constellation {
  display: none;
}
@media (max-width: 760px) {
  .landing-page .hero-constellation {
    height: 72px;
    margin-top: 20px;
  }
  .float-tile {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }
  .float-tile--code {
    font-size: 14px;
  }
}

/* A dedicated before/after section, separate from the upload hero. */
.landing-page .examples-section.section-wrap {
  padding: clamp(40px, 5vw, 76px) 0;
  scroll-margin-top: 24px;
}
.landing-page .examples-section .section-heading {
  margin-bottom: 20px;
}
.landing-page .case-panel {
  max-width: 1100px;
  margin: auto;
  padding: clamp(12px, 1.7vw, 24px);
  border-radius: 16px;
  background: var(--landing-panel);
  border: 1px solid var(--landing-rule);
}
.landing-page .case-comparison {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin: auto;
}
.landing-page .case-comparison figure {
  border: 1px solid var(--landing-rule);
  border-radius: 10px;
  outline: 0;
  box-shadow: 0 2px 6px #24232109;
}
.landing-page .case-comparison figcaption {
  display: flex;
  background: var(--surface);
  color: var(--landing-ink);
  padding: 10px 14px;
}
.landing-page .case-direction {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: transparent;
  color: var(--landing-secondary);
}
.landing-page .case-direction .icon {
  width: 22px;
  height: 22px;
}
.landing-page .case-art {
  padding: 0;
}
.landing-page .case-art > img,
.landing-page .case-art > svg {
  box-shadow: none;
}
.landing-page .demo-svg [data-demo-object]:not([data-demo-object="paper"]) {
  cursor: grab;
  touch-action: none;
}
.landing-page
  .demo-svg
  [data-demo-object]:not([data-demo-object="paper"]):hover {
  filter: drop-shadow(0 1px 5px #7140d988);
}
.landing-page .demo-svg [data-demo-object].is-selected {
  filter: drop-shadow(0 0 0.5px var(--accent)) drop-shadow(0 2px 8px #7140d966);
  opacity: 0.9;
}
.landing-page .demo-svg .is-dragging {
  cursor: grabbing !important;
}
@media (prefers-reduced-motion: no-preference) {
  .demo-svg .demo-gesture { animation: demo-drag-title 4s ease-in-out infinite; }
  .demo-svg .demo-pointer { animation: demo-point 4s ease-in-out infinite; }
  .demo-svg .demo-outline { animation: demo-select 4s ease-in-out infinite; }
  .demo-svg:not(.demo-visible) .demo-gesture,
  .demo-svg:not(.demo-visible) .demo-gesture *,
  .demo-svg.demo-paused .demo-gesture,
  .demo-svg.demo-paused .demo-gesture * { animation-play-state: paused; }
}
@keyframes demo-drag-title {
  0%, 30%, 92%, 100% { transform: translate(0, 0); }
  55%, 72% { transform: translate(42px, 90px); }
}
@keyframes demo-point {
  0%, 100% { transform: translate(90px, 65px); }
  22%, 92% { transform: translate(0, 0); }
}
@keyframes demo-select {
  0%, 18%, 100% { opacity: 0; }
  26%, 92% { opacity: 1; }
}
@media (max-width: 760px) {
  .landing-page .examples-section.section-wrap {
    padding: 32px 0;
  }
  .landing-page .examples-section .section-heading {
    margin-bottom: 20px;
  }
  .landing-page .case-panel {
    padding: 16px;
    border-radius: 16px;
  }
  .landing-page .case-comparison {
    grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
    gap: 8px;
  }
  .landing-page .case-direction {
    width: 28px;
    height: 28px;
  }
  .landing-page .case-direction .icon {
    width: 18px;
    height: 18px;
  }
  .landing-page .case-comparison figcaption {
    padding: 10px;
  }
  .landing-page .case-comparison figure {
    border-radius: 8px;
  }
  .landing-page .demo-actions {
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
  }
}
@media (max-width: 480px) {
  .landing-page .case-comparison {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .landing-page .case-comparison figure {
    width: 100%;
    max-width: none;
    justify-self: center;
  }
  .landing-page .case-direction {
    justify-self: center;
    transform: rotate(90deg);
  }
}
.landing-page .paywall-dialog {
  width: min(780px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  border-radius: 16px;
  overflow: auto;
  background: var(--surface);
}
.paywall-content {
  position: relative;
  padding: 36px 32px 24px;
}
.paywall-content .dialog-close {
  top: 14px;
  right: 14px;
}
.paywall-heading {
  margin: 0 20px 26px;
  text-align: center;
}
.paywall-heading h2 {
  margin: 0 0 8px;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.2;
}
.paywall-heading p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.paywall-packs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.paywall-pack {
  position: relative;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.paywall-pack input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.paywall-pack:has(input:checked) {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
  background: var(--sage);
}
.paywall-pack:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.paywall-packs:disabled .paywall-pack {
  cursor: wait;
}
.paywall-pack-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 15px;
}
.paywall-radio {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  border: 1px solid var(--muted);
  border-radius: 50%;
  background: var(--surface);
}
.paywall-pack:has(input:checked) .paywall-radio {
  border: 5px solid var(--accent);
}
.paywall-pack-use,
.paywall-pack-price > span {
  color: var(--muted);
  font-size: 12px;
}
.paywall-credits {
  margin-top: 12px;
  font-size: 14px;
}
.paywall-credits strong {
  font-size: 30px;
  line-height: 1;
}
.paywall-pack-price {
  display: grid;
  gap: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.paywall-pack-price strong {
  font-size: 19px;
}
.paywall-savings {
  min-height: 1.3em;
  color: var(--accent-hover);
  font-size: 12px;
  font-weight: 600;
}
.paywall-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 22px;
}
.paywall-cta {
  min-height: 44px;
  min-width: 220px;
  font-size: 14px;
}
.paywall-cta:disabled {
  opacity: 0.6;
  cursor: wait;
}
.paywall-content #paypal-approval:not([hidden]) {
  display: block;
  margin: 12px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}
.paywall-content #paywall-error:not(:empty) {
  margin-top: 10px;
}
@media (max-width: 640px) {
  .paywall-content {
    padding: 36px 16px 18px;
  }
  .paywall-heading {
    margin: 0 12px 18px;
  }
  .paywall-heading h2 {
    font-size: 24px;
  }
  .paywall-packs {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .paywall-pack {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 12px;
    padding: 12px;
  }
  .paywall-pack-head {
    justify-content: flex-start;
    grid-column: 1;
  }
  .paywall-radio { order: -1; }
  .paywall-pack-use { grid-column: 1; }
  .paywall-credits {
    grid-area: 1 / 2;
    margin: 0;
    text-align: right;
  }
  .paywall-credits strong { font-size: 18px; }
  .paywall-pack-price {
    grid-area: 2 / 2 / span 2;
    align-self: start;
    gap: 2px;
    border: 0;
    padding: 0;
    text-align: right;
  }
  .paywall-pack-price strong { font-size: 15px; }
  .paywall-savings:empty { display: none; }
  .paywall-bottom {
    margin-top: 16px;
  }
  .paywall-cta { min-width: min(220px, 100%); }
}

.landing-page .auth-dialog--login {
  width: min(560px, calc(100% - 32px));
  max-height: min(90vh, 700px);
  overflow: auto;
  text-align: center;
  background: #fff;
}
.auth-dialog--login .dialog-close {
  z-index: 1;
  top: 18px;
  right: 18px;
}
.auth-login-content {
  min-width: 0;
  padding: 56px 52px 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.auth-logo {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  margin-bottom: 30px;
}
.auth-login-content h2 {
  font-size: 30px;
  font-weight: 550;
  line-height: 1.2;
  margin-bottom: 10px;
}
.auth-login-content h2:focus {
  outline: none;
}
.auth-login-content > p:not(.inline-error) {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 32px;
}
.auth-login-content .google-mount {
  width: 100%;
  max-width: 360px;
  min-height: 50px;
  align-items: center;
}
.auth-login-content .google-button {
  min-height: 50px;
  font-size: 14px;
  border-color: var(--line);
  border-radius: 7px;
  box-shadow: 0 2px 6px #25203e0a;
}
.auth-login-content .inline-error {
  min-height: 18px;
  margin-top: 14px;
  font-size: 12px;
}
.auth-login-content .auth-legal {
  max-width: 390px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.auth-legal a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
@media (max-width: 700px) {
  .auth-login-content {
    padding: 52px 24px 36px;
  }
  .auth-logo {
    margin-bottom: 20px;
  }
  .auth-login-content h2 {
    font-size: 26px;
  }
  .auth-login-content > p:not(.inline-error) {
    margin-bottom: 26px;
  }
}

/* Focused canvas shown after submitting a conversion. */
.landing-page.canvas-mode {
  background: #f7f7fa;
}
.landing-page.canvas-mode .site-header {
  background: #fff;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.landing-page.canvas-mode .site-header nav,
.landing-page.canvas-mode .hero > :not(.converter),
.landing-page.canvas-mode main > section:not(.hero) {
  display: none;
}
.landing-page.canvas-mode .hero {
  min-height: calc(100vh - 86px);
  padding: 28px 32px 60px;
  background: #f7f7fa;
}
.landing-page.canvas-mode .converter {
  margin: 0 auto;
  max-width: 1400px;
}
.landing-page.canvas-mode .site-footer {
  background: #fff;
}
.conversion-canvas {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 40px #2423320b;
}
.conversion-toolbar {
  min-height: 62px;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}
.conversion-file {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 13px;
}
.conversion-file strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.conversion-file > span {
  color: var(--accent);
  font-size: 12px;
}
.conversion-toolbar .text-button {
  white-space: nowrap;
}
.conversion-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}
.conversion-pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: min(640px, calc(100vh - 190px));
  background: #fff;
}
.conversion-pane-heading {
  min-height: 48px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
}
.conversion-pane-heading span:last-child {
  color: var(--muted);
  font-weight: 400;
}
.conversion-pane-art {
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  background: #f8f8fb;
}
.conversion-pane-art img {
  width: auto;
  max-width: 100%;
  max-height: 550px;
  object-fit: contain;
  box-shadow: 0 8px 24px #24233214;
}
.conversion-loading {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: #f8f8fb;
  text-align: center;
}
.conversion-loading-art {
  position: relative;
  width: min(100%, 380px);
  height: min(340px, 45vh);
  min-height: 180px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #eae5f7;
  border: 1px solid #ddd2f1;
  border-radius: 7px;
}
.conversion-loading-art > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.18;
  filter: grayscale(1);
}
.conversion-loading-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 35%,
    #fff9 50%,
    transparent 65%
  );
  transform: translateX(-100%);
  animation: conversion-sweep 2.4s ease-in-out infinite;
}
.conversion-progress-ring {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 5px solid #ffffffb8;
  border-top-color: var(--accent);
  border-radius: 50%;
  background: #fffdf9;
  box-shadow: 0 8px 30px #34205b24;
  animation: spin 1s linear infinite;
}
.conversion-progress-ring .icon {
  color: var(--accent);
  animation: spin 1s linear infinite reverse;
}
.conversion-loading h2 {
  margin-top: 24px;
  font-size: 19px;
  font-weight: 600;
}
.conversion-stage-count {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
}
.conversion-stage-track {
  width: min(100%, 380px);
  height: 5px;
  margin-top: 22px;
  overflow: hidden;
  border-radius: 5px;
  background: #e8e3f0;
}
.conversion-stage-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 400ms ease;
}
.conversion-result-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 20px;
  border-top: 1px solid var(--line);
}
@keyframes conversion-sweep {
  to {
    transform: translateX(100%);
  }
}
@media (max-width: 760px) {
  .landing-page.canvas-mode .hero {
    padding: 16px 12px 36px;
  }
  .conversion-toolbar {
    padding: 12px 14px;
  }
  .conversion-panels {
    grid-template-columns: 1fr;
  }
  .conversion-pane {
    min-height: 0;
  }
  .conversion-source .conversion-pane-art {
    min-height: 210px;
    max-height: 260px;
  }
  .conversion-source .conversion-pane-art img {
    max-height: 200px;
  }
  .conversion-output .conversion-pane-art,
  .conversion-loading {
    min-height: 300px;
  }
  .conversion-loading-art {
    height: 180px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .conversion-loading-art::after,
  .conversion-progress-ring,
  .conversion-progress-ring .icon {
    animation: none;
  }
  .conversion-stage-track span {
    transition: none;
  }
}

/* Shared presentation tokens for the landing page and editor chrome. */
.landing-page {
  --landing-ground: #faf9f6;
  --landing-ink: #242321;
  --landing-secondary: #605e5a;
  --landing-rule: #e1dfda;
  --landing-panel: #fff;
  --display-serif: 'Untitled Serif', Georgia, Cambria, serif;
  --landing-shadow: 0 4px 20px rgb(0 0 0 / 5%);
  --brand-purple: #7140d9;
  --landing-action-hover: #592bb9;
  --brand-tint: #f4effc;
  --brand-edge: #dfd4f4;
  --landing-selected: #eeeae3;
}
.landing-page:has(#examples):not(.canvas-mode) {
  --on-hero: var(--landing-ink);
  --on-hero-muted: var(--landing-secondary);
  background: var(--landing-ground);
  color: var(--landing-ink);
}
.landing-page:not(.canvas-mode) :is(.site-header, .hero) {
  background: var(--landing-ground);
}
.landing-page:not(.canvas-mode) .site-header {
  height: 72px;
}
.landing-page:not(.canvas-mode) .hero:not(.compact-hero) {
  padding-block: clamp(40px, 5vw, 80px) clamp(40px, 6vw, 96px);
  text-align: center;
}
.landing-page:not(.canvas-mode) .hero:not(.compact-hero) h1,
.landing-page:not(.canvas-mode) .hero h1 em,
.landing-page .section-heading h2,
.landing-page .faq-section h2 {
  font-family: var(--display-serif);
  font-weight: 400;
  color: var(--landing-ink);
}
.landing-page:not(.canvas-mode) .hero:not(.compact-hero) h1 {
  font-size: clamp(44px, 7.1vw, 84px);
  line-height: 1;
  letter-spacing: -.03em;
  margin: 0 auto 24px;
}
.landing-page:not(.canvas-mode) .hero .hero-description {
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.5;
  margin-block: 0;
}
.landing-page .section-heading h2, .landing-page .faq-section h2 {
  font-size: clamp(36px, 4.85vw, 58px);
  line-height: 1.1;
  letter-spacing: -.025em;
}
.landing-page .hero:not(.compact-hero) .hero-constellation {
  display: none;
}
.landing-page .hero:not(.compact-hero) .converter {
  margin-top: clamp(20px, 3vw, 32px);
}
.landing-page .dropzone > p {
  margin: 0;
}
.landing-page .dropzone > .file-meta {
  margin-top: 6px;
}
.landing-page .dropzone > #upload-button {
  order: 1;
  align-self: center;
  margin-top: 18px;
}
.landing-page:not(.canvas-mode) .upload-panel {
  padding: clamp(12px, 1.5vw, 24px);
  background: white;
  border: 1px solid white;
  border-radius: 24px;
  box-shadow: var(--landing-shadow);
}
.landing-page:not(.canvas-mode) .dropzone {
  background: white;
  border: 1px dashed #c8c6c6;
  border-radius: 12px;
}
.landing-page:not(.canvas-mode) .dropzone:is(:hover,.dragover) {
  background: #f7f7f7;
  border-color: #888787;
}
.landing-page:not(.canvas-mode) .upload-symbol {
  border-radius: 100px;
  background: var(--landing-ground);
  color: var(--landing-ink);
}
.landing-page .primary-button {
  color: white;
  background: var(--brand-purple);
  border-radius: 100px;
  border: 0;
  box-shadow: none;
  font-weight: 600;
}
.landing-page .primary-button:hover { background: var(--landing-action-hover); }
.landing-page:not(.canvas-mode) .site-header nav a {
  color: var(--landing-ink);
  border-radius: 100px;
}
.landing-page .examples-section.section-wrap,
.landing-page .advantages-section .section-wrap,
.landing-page .faq-section.section-wrap { padding-block: clamp(48px, 8vw, 96px); }
.landing-page .examples-section .section-heading { margin-bottom: 28px; }
.landing-page .case-panel { padding: 0; border: 0; background: transparent; }
.landing-page .case-comparison figure { border-radius: 12px; box-shadow: none; }
.landing-page .case-comparison figcaption { padding: 12px 16px; background: white; }
.landing-page .format-tag { border-radius: 100px; background: #f7f7f7; padding: 4px 10px; }
.landing-page .advantages-section { background: #f5f3ee; }
.landing-page .benefit-grid article { border-radius: 24px; box-shadow: none; }
.landing-page .benefit-visual--fidelity, .landing-page .benefit-visual--method { background: var(--landing-ground); }
.landing-page .benefit-visual--text { background: #e9eff6; }
.landing-page .faq-list details { border-color: var(--landing-rule); }
.landing-page .faq-list summary { padding-block: 18px; font-size: 18px; color: var(--landing-ink); }
.landing-page .site-footer { background: var(--landing-ground); }

/* Account and checkout share these colors wherever the controls are mounted. */
.landing-page :is(.account-controls, .paywall-dialog),
.landing-page.canvas-mode:has(#editor-mount) {
  --ink: var(--landing-ink);
  --muted: var(--landing-secondary);
  --line: var(--landing-rule);
  --surface: var(--landing-panel);
  --accent: var(--brand-purple);
  --accent-hover: var(--landing-action-hover);
  --subtle: var(--landing-ground);
  --sage: var(--brand-tint);
  color: var(--ink);
}
.landing-page .paywall-dialog { border-radius: 24px; }
.paywall-heading h2 { font-family: var(--display-serif); font-weight: 400; }
.paywall-pack { border-radius: 12px; }
.landing-page.canvas-mode:has(#editor-mount) :is(.site-header, .hero) {
  background: var(--landing-ground);
  color: var(--landing-ink);
}
.landing-page.canvas-mode:has(#editor-mount) .site-header {
  height: 72px;
  border: 0;
}
.editor {
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--landing-shadow);
}
.editor .canvas-area {
  background-color: var(--landing-ground);
  background-image: radial-gradient(var(--landing-rule) 0.7px, transparent 0.7px);
}
.editor .editor-coach {
  background: var(--landing-ground);
  border-color: var(--line);
}
.editor :is(.editor-coach, .editor-bottom, .icon-button, .layer-button, .panel-label,
  .property-empty, .property-empty .icon, .field, .segmented button, .mobile-layer-picker) {
  color: var(--muted);
}
.editor .editor-title, .editor .layer-button, .editor .field { font-size: 12px; }
.editor :is(.editor-coach, .editor-bottom, .segmented button) { font-size: 11px; }
.editor .layer-button { border-radius: 8px; }
.editor :is(.layer-button, .icon-button):hover { background: var(--landing-ground); }
.editor :is(.editor-tag, .layer-button.active, .segmented button.active) {
  background: var(--landing-selected);
  color: var(--ink);
}
.editor :is(.segmented, .segmented button, .editor-tag) { border-radius: 999px; }
.editor .editor-tag { padding: 4px 8px; font-size: 10px; }
.editor :is(.field input, .field select, .field textarea, .mobile-layer-picker) {
  border-color: var(--line);
  border-radius: 8px;
}
.editor .editor-delete { color: var(--danger); }
.editor .editor-actions .primary-button { padding: 10px 16px; font-size: 13px; }
.editor :is(button, input, select, textarea):focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.landing-page .secondary-button {
  background: var(--brand-tint);
  color: var(--brand-purple);
  border: 1px solid var(--brand-edge);
  border-radius: 999px;
}
.landing-page :is(.text-button, .icon-button) { color: var(--brand-purple); }
.landing-page :is(.secondary-button, .text-button, .icon-button):enabled:hover {
  background: var(--brand-tint);
  color: var(--brand-purple);
}
.landing-page button:focus-visible { outline: 2px solid var(--brand-purple); outline-offset: 2px; }

.landing-page .site-header #sign-in {
  background: var(--brand-purple);
  color: #fff;
  border: 0;
  border-radius: 9px;
  padding: 0 20px;
  min-height: 38px;
  font-size: 15px;
  font-weight: 650;
}
.landing-page .site-header #sign-in:hover { background: var(--landing-action-hover); }
.logout-dialog { width: min(360px, calc(100vw - 32px)); }
.logout-dialog form { padding: 24px; }
.logout-dialog h2 { margin: 0 0 24px; font-size: 22px; line-height: 1.25; }
.logout-actions { display: flex; gap: 10px; }
.logout-actions button { flex: 1; }
