:root {
  color-scheme: light;
  --ink: #111111;
  --muted: #5f666d;
  --line: #d9dee3;
  --soft: #f4f7f6;
  --panel: #ffffff;
  --accent: #087f5b;
  --accent-dark: #056146;
  --accent-soft: #dff4ec;
  --ink-soft: #1f2326;
  --danger: #b42318;
  --warn: #f7c948;
  --shadow: 0 24px 70px rgba(17, 17, 17, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: #ffffff;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body,
button,
input,
select {
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

figure {
  margin: 0;
}

[hidden] {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 32px;
  border-bottom: 1px solid rgba(217, 222, 227, 0.8);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.brand,
.site-nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  width: 24px;
  height: 24px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background:
    linear-gradient(90deg, transparent 47%, var(--ink) 47%, var(--ink) 53%, transparent 53%),
    linear-gradient(0deg, transparent 47%, var(--ink) 47%, var(--ink) 53%, transparent 53%),
    var(--accent-soft);
}

.site-nav {
  gap: 24px;
  color: var(--muted);
  font-size: 15px;
}

.site-nav a:hover {
  color: var(--ink);
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  max-width: 1120px;
  margin: 0 auto;
}

.tool-section {
  padding: 64px 0 84px;
}

.eyebrow-row,
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.eyebrow-row {
  align-items: center;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 14px;
}

#creditPill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: #ffffff;
}

.intro-copy {
  width: min(760px, 100%);
  margin-bottom: 34px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 56px;
  line-height: 1.02;
  max-width: 14ch;
  text-wrap: balance;
}

.intro-copy p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.6;
  max-width: 58ch;
  overflow-wrap: break-word;
}

.proof-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -14px 0 28px;
  padding: 0;
  list-style: none;
}

.proof-list li {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--ink-soft);
  background: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

h2 {
  font-size: 34px;
  line-height: 1.15;
  text-wrap: balance;
}

h3 {
  font-size: 28px;
  line-height: 1.15;
}

.tool-board {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 18px;
  align-items: stretch;
}

.tool-board > *,
.results-grid > *,
.plan {
  min-width: 0;
}

.upload-zone,
.control-panel,
.plan,
.step-item,
.trust-grid article,
.faq-list details,
.account-dialog .dialog-body {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.upload-zone {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
  overflow: hidden;
  outline: none;
}

.upload-zone.drag-over {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.upload-zone.custom-selecting {
  cursor: crosshair;
}

.upload-empty {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 28px;
  text-align: center;
}

.upload-empty strong {
  font-size: 24px;
  line-height: 1.25;
}

.upload-empty span {
  color: var(--muted);
}

.sample-collage {
  width: min(360px, 78vw);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--soft);
}

.sample-collage img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.source-preview {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-height: 680px;
  object-fit: contain;
  background: #f8faf9;
}

.preview-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.preview-frame,
.preview-cell,
.custom-selection {
  position: absolute;
  border-radius: 4px;
}

.preview-frame {
  border: 1px solid rgba(17, 17, 17, 0.22);
}

.preview-cell {
  border: 2px solid rgba(8, 127, 91, 0.78);
  background: rgba(8, 127, 91, 0.08);
}

.custom-selection {
  border: 2px solid #111111;
  background: rgba(247, 201, 72, 0.22);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.88);
}

.custom-selection::after {
  content: attr(data-label);
  position: absolute;
  top: 6px;
  left: 6px;
  border-radius: 999px;
  padding: 3px 7px;
  color: #111111;
  background: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 900;
}

.control-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
}

.custom-tools {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.custom-tools p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.field {
  display: grid;
  gap: 8px;
}

.field label,
.field span,
label.field {
  color: var(--ink);
  font-weight: 700;
}

select,
input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  background: #ffffff;
  color: var(--ink);
}

select:focus,
input:focus,
.upload-zone:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: 2px;
}

.primary-button,
.secondary-button,
.ghost-button,
.secondary-link-button {
  min-height: 44px;
  border-radius: var(--radius);
  padding: 0 16px;
  border: 1px solid transparent;
  font-weight: 800;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    transform 0.16s ease;
}

.primary-button {
  background: var(--accent);
  color: #ffffff;
}

.primary-button:hover {
  background: var(--accent-dark);
}

.secondary-button,
.secondary-link-button,
.ghost-button {
  background: #ffffff;
  color: var(--ink);
  border-color: var(--line);
}

.secondary-button:hover,
.secondary-link-button:hover,
.ghost-button:hover {
  border-color: var(--ink);
}

.secondary-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.primary-button:disabled {
  cursor: not-allowed;
  background: #b6c8c1;
}

.wide {
  width: 100%;
}

.status-box {
  min-height: 148px;
  margin-top: auto;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--muted);
  line-height: 1.55;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.status-box strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.status-box.error {
  color: var(--danger);
  background: #fff1f0;
}

.status-box.success {
  color: #085f46;
  background: var(--accent-soft);
}

.tool-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tool-hints span {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.results-section {
  margin-top: 38px;
}

.section-heading {
  margin-bottom: 24px;
}

.kicker,
.plan-name {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.section-note {
  color: var(--muted);
  line-height: 1.5;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.result-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #ffffff;
}

.result-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #f8faf9;
}

.result-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
}

.result-footer span {
  color: var(--muted);
  font-size: 14px;
}

.pricing-section,
.use-cases-section,
.steps-section,
.faq-section {
  padding: 76px 0;
  border-top: 1px solid var(--line);
}

.pricing-section,
.steps-section {
  background: #f8faf9;
}

.use-cases-section {
  background: #ffffff;
}

.example-section {
  padding: 76px 0;
  background: #111111;
  color: #ffffff;
}

.example-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(420px, 1.3fr);
  gap: 44px;
  align-items: center;
}

.example-copy p:not(.kicker) {
  margin-top: 16px;
  max-width: 54ch;
  color: #c9d0d4;
  line-height: 1.7;
}

.example-board {
  display: grid;
  grid-template-columns: minmax(220px, 0.95fr) minmax(260px, 1.05fr);
  gap: 14px;
  align-items: stretch;
}

.example-before,
.crop-tile {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: #1f2326;
}

.example-before img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.example-after {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.crop-tile {
  aspect-ratio: 1 / 1;
}

.crop-tile img {
  width: 200%;
  max-width: none;
  height: 200%;
  object-fit: cover;
}

.crop-two img {
  transform: translateX(-50%);
}

.crop-three img {
  transform: translateY(-50%);
}

.crop-four img {
  transform: translate(-50%, -50%);
}

.example-before figcaption,
.crop-tile figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  min-height: 28px;
  border-radius: 999px;
  padding: 5px 9px;
  color: #111111;
  background: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 900;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.link-item {
  display: grid;
  gap: 12px;
  min-height: 150px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: #ffffff;
}

.link-item span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.link-item strong {
  font-size: 22px;
  line-height: 1.25;
}

.step-grid,
.trust-grid {
  display: grid;
  gap: 16px;
}

.step-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step-item,
.trust-grid article {
  min-height: 190px;
  padding: 20px;
}

.step-item span {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.step-item p,
.trust-grid p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.65;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.plan {
  display: flex;
  min-height: 270px;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
}

.plan h3 span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
}

.plan p:not(.plan-name) {
  color: var(--muted);
  line-height: 1.55;
}

.plan button {
  margin-top: auto;
}

.featured-plan {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

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

.trust-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1.2fr);
  gap: 48px;
  align-items: start;
}

.trust-copy p {
  margin-top: 16px;
  color: var(--muted);
  line-height: 1.7;
}

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.faq-list details {
  padding: 18px 20px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 800;
}

.faq-list p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.7;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  max-width: min(420px, calc(100vw - 40px));
  border-radius: var(--radius);
  padding: 14px 16px;
  color: #ffffff;
  background: #111111;
  box-shadow: var(--shadow);
}

.account-dialog {
  width: min(460px, calc(100vw - 28px));
  border: 0;
  padding: 0;
  background: transparent;
}

.account-dialog::backdrop {
  background: rgba(17, 17, 17, 0.38);
}

.dialog-body {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.dialog-body h2 {
  font-size: 26px;
}

.dialog-note {
  color: var(--muted);
  line-height: 1.55;
}

.close-button {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.site-footer {
  padding: 54px 0 60px;
  border-top: 1px solid var(--line);
  background: #111111;
  color: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(160px, 0.8fr));
  gap: 32px;
}

.site-footer .brand-mark {
  border-color: #ffffff;
  background:
    linear-gradient(90deg, transparent 47%, #ffffff 47%, #ffffff 53%, transparent 53%),
    linear-gradient(0deg, transparent 47%, #ffffff 47%, #ffffff 53%, transparent 53%),
    var(--accent);
}

.site-footer p {
  margin-top: 16px;
  max-width: 420px;
  color: #c9d0d4;
  line-height: 1.6;
}

.site-footer nav {
  display: grid;
  align-content: start;
  gap: 10px;
}

.site-footer h2 {
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.site-footer a:not(.brand) {
  color: #c9d0d4;
}

.site-footer a:hover {
  color: #ffffff;
}

@media (max-width: 920px) {
  .site-header {
    padding: 14px 20px;
  }

  .site-nav {
    display: none;
  }

  .tool-section {
    padding-top: 42px;
  }

  h1 {
    font-size: 42px;
  }

  .intro-copy p {
    font-size: 18px;
  }

  .tool-board,
  .example-layout,
  .trust-layout {
    grid-template-columns: 1fr;
  }

  .tool-board,
  .eyebrow-row,
  .section-heading,
  .trust-layout {
    display: grid;
  }

  .upload-zone {
    min-height: 360px;
  }

  .plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .link-grid,
  .step-grid {
    grid-template-columns: 1fr;
  }

  .example-board {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .wrap {
    width: calc(100% - 28px);
  }

  .site-header {
    gap: 12px;
    padding: 12px 14px;
  }

  .brand {
    font-size: 15px;
    min-width: 0;
  }

  .brand span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .ghost-button {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 10px;
    font-size: 14px;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 28px;
  }

  .proof-list li {
    width: 100%;
  }

  .example-section,
  .pricing-section,
  .use-cases-section,
  .steps-section,
  .faq-section,
  .trust-section {
    padding: 58px 0;
  }

  .plan-grid {
    grid-template-columns: 1fr;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .example-before img {
    min-height: 260px;
  }
}
