:root {
  --ink: #202124;
  --muted: #5f6368;
  --line: #d9dee7;
  --surface: #ffffff;
  --soft: #f7f9fc;
  --teal: #0f766e;
  --teal-dark: #115e59;
  --blue: #2563eb;
  --amber: #b45309;
  --rose: #be123c;
  --shadow: 0 18px 45px rgba(32, 33, 36, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--soft);
}

body {
  margin: 0;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

body.payment-modal-open {
  overflow: hidden;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(217, 222, 231, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.topbar-inner,
.section-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 18px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: var(--teal-dark);
}

.language-switcher {
  display: inline-flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.language-switcher select {
  width: auto;
  min-width: 118px;
  min-height: 38px;
  padding: 0 10px;
}

.button,
button,
.download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 16px;
  background: var(--teal);
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

button:disabled,
.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.56;
}

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

.tool-section {
  padding: 34px 0 30px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
}

.tool-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.72fr);
  gap: 18px;
  align-items: stretch;
}

.tool-panel,
.result-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.tool-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.result-panel {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 18px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: 56px;
  line-height: 1.02;
}

h2 {
  font-size: 28px;
  line-height: 1.18;
}

h3 {
  font-size: 18px;
  line-height: 1.3;
}

.lede {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.upload-box {
  display: grid;
  place-items: center;
  min-height: 245px;
  border: 1px dashed #aeb7c5;
  border-radius: 8px;
  background: #fbfcfe;
  text-align: center;
}

.upload-box input {
  width: min(100%, 320px);
}

.upload-box strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.upload-box span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.control-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
}

select,
input[type="number"],
input[type="url"],
input[type="text"] {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  padding: 0 12px;
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.swatch {
  width: 36px;
  height: 36px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  box-shadow: 0 0 0 1px var(--line);
  cursor: pointer;
}

.swatch.is-active {
  box-shadow: 0 0 0 3px var(--teal);
}

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

.account-panel,
.payment-account {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  padding: 14px;
}

.account-panel strong,
.payment-account strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.account-panel span,
.payment-account p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.account-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.account-row button {
  white-space: nowrap;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

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

.status.is-error {
  color: var(--rose);
  font-weight: 750;
}

.preview-frame {
  display: grid;
  place-items: center;
  flex: 1;
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(45deg, #eef1f6 25%, transparent 25%),
    linear-gradient(-45deg, #eef1f6 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #eef1f6 75%),
    linear-gradient(-45deg, transparent 75%, #eef1f6 75%);
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  background-size: 20px 20px;
  overflow: hidden;
}

.preview-frame img {
  display: none;
  max-width: 88%;
  max-height: 330px;
  border: 1px solid rgba(32, 33, 36, 0.16);
  background: #ffffff;
  object-fit: contain;
}

.preview-placeholder {
  width: min(86%, 360px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(32, 33, 36, 0.08);
}

.preview-placeholder img {
  display: block;
  max-width: 100%;
  max-height: none;
  border: 0;
}

.result-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}

.metrics {
  color: var(--muted);
  font-size: 13px;
}

.content-band {
  padding: 42px 0;
  background: #ffffff;
}

.content-band.alt {
  background: var(--soft);
}

.link-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.link-card,
.feature-card {
  min-height: 148px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 16px;
  text-decoration: none;
}

.link-card:hover {
  border-color: #8cc7bd;
}

.link-card p,
.feature-card p,
.article p,
.faq p {
  color: var(--muted);
  line-height: 1.65;
}

.article {
  display: grid;
  gap: 14px;
  max-width: 860px;
}

.article ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.65;
}

.faq {
  display: grid;
  gap: 14px;
  max-width: 880px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 14px 16px;
}

.faq summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 800;
}

.page-hero {
  padding: 44px 0 28px;
  background: #ffffff;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(280px, 0.3fr);
  gap: 24px;
  align-items: start;
}

.side-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 16px;
}

.side-panel dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.side-panel div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #edf0f5;
  padding-bottom: 10px;
}

.side-panel div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.side-panel dt {
  color: var(--muted);
}

.side-panel dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.footer {
  border-top: 1px solid var(--line);
  background: #ffffff;
  padding: 26px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
}

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

@media (max-width: 920px) {
  .tool-shell,
  .page-layout,
  .control-grid,
  .link-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none;
  }

  .language-switcher span {
    display: none;
  }

  h1 {
    font-size: 38px;
  }
}

@media (max-width: 560px) {
  .topbar-inner,
  .section-inner {
    width: min(100% - 24px, 1180px);
  }

  .dimension-grid,
  .result-actions {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .tool-panel,
  .result-panel {
    padding: 14px;
  }
}

/* ── Pricing / Plans ── */
.pricing-mvp-note {
  max-width: 820px;
  margin: 0 0 28px;
  padding: 12px 16px;
  border: 1px solid #fde68a;
  border-radius: 8px;
  background: #fffbeb;
  color: var(--amber);
  font-size: 14px;
  line-height: 1.65;
  font-weight: 650;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 32px;
}

.pricing-grid.single-plan {
  grid-template-columns: minmax(0, 460px);
  justify-content: center;
}

.pricing-card {
  display: block;
  width: 100%;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 24px 20px;
  text-align: center;
  appearance: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.pricing-card:hover,
.pricing-card:focus-visible {
  border-color: var(--teal);
  box-shadow: 0 8px 28px rgba(15, 118, 110, 0.14);
  transform: translateY(-2px);
}

.pricing-plan-title {
  display: block;
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 800;
}

.pricing-price {
  margin: 0 0 6px;
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
}

.pricing-currency {
  font-size: 24px;
  font-weight: 650;
  vertical-align: top;
  margin-right: 2px;
}

.pricing-quota {
  margin: 0 0 12px;
  color: var(--teal-dark);
  font-size: 15px;
  font-weight: 750;
}

.pricing-desc {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.pricing-card-action {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 12px;
  background: var(--teal);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.pricing-card-featured {
  border-color: var(--teal);
  box-shadow: 0 4px 24px rgba(15, 118, 110, 0.12);
  position: relative;
}

.pricing-features-shared {
  margin: 0 0 32px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.pricing-features-shared h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.pricing-features-shared ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.pricing-payment-area {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 22px 20px;
}

.pricing-payment-area h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.pricing-payment-area > p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.pricing-qr-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  align-items: flex-start;
}

.pricing-qr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 140px;
}

.pricing-qr-item img {
  width: 160px;
  height: 160px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: contain;
  background: #ffffff;
}

.pricing-qr-item span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  text-align: center;
}

.payment-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}

.payment-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(32, 33, 36, 0.48);
}

.payment-dialog {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 8px;
  background: #ffffff;
  padding: 28px;
  box-shadow: 0 24px 70px rgba(32, 33, 36, 0.22);
}

.payment-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  min-height: 38px;
  padding: 0;
  border-color: var(--line);
  background: #ffffff;
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
}

.payment-eyebrow {
  margin: 0 0 6px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
}

.payment-dialog h2 {
  margin: 0 44px 16px 0;
  font-size: 26px;
  line-height: 1.2;
}

.payment-plan-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.payment-plan-summary > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--soft);
}

.payment-plan-summary span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.payment-plan-summary strong {
  display: block;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.2;
}

.payment-note {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.payment-account {
  margin-bottom: 16px;
}

.payment-online {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 8px;
  background: #eefcf8;
}

.payment-online-link {
  width: 100%;
}

.payment-online p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.payment-qr-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.payment-qr-row-single {
  grid-template-columns: minmax(180px, 240px);
  justify-content: center;
}

.payment-dynamic-qr {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 0 0 16px;
}

.payment-dynamic-qr img {
  width: 190px;
  height: 190px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: contain;
  background: #ffffff;
}

.payment-dynamic-qr span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.payment-qr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-height: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
  color: var(--ink);
  cursor: zoom-in;
}

.payment-qr-item:hover,
.payment-qr-item:focus-visible {
  border-color: var(--teal);
  box-shadow: 0 8px 22px rgba(15, 118, 110, 0.14);
}

.payment-qr-item img {
  width: 150px;
  height: 150px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: contain;
  background: #ffffff;
}

.payment-qr-item span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.payment-check {
  width: 100%;
  margin-top: 18px;
}

.qr-zoom-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
}

.qr-zoom-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(32, 33, 36, 0.62);
}

.qr-zoom-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 12px;
  width: min(440px, 100%);
  border-radius: 8px;
  background: #ffffff;
  padding: 26px;
  box-shadow: 0 24px 70px rgba(32, 33, 36, 0.24);
}

.qr-zoom-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  min-height: 38px;
  padding: 0;
  border-color: var(--line);
  background: #ffffff;
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
}

.qr-zoom-dialog img {
  width: min(340px, 82vw);
  height: min(340px, 82vw);
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: contain;
  background: #ffffff;
}

.qr-zoom-dialog strong {
  color: var(--ink);
  font-size: 16px;
}

@media (max-width: 920px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-features-shared ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .pricing-price {
    font-size: 34px;
  }

  .pricing-qr-row {
    gap: 16px;
  }

  .pricing-qr-item img {
    width: 130px;
    height: 130px;
  }

  .payment-modal {
    padding: 14px;
  }

  .payment-dialog {
    padding: 24px 18px;
  }

  .payment-plan-summary,
  .payment-qr-row {
    grid-template-columns: 1fr;
  }

  .account-row {
    grid-template-columns: 1fr;
  }

  .payment-qr-item img {
    width: 136px;
    height: 136px;
  }

  .qr-zoom-dialog {
    padding: 22px 16px;
  }
}
