@font-face {
  font-family: "Vazirmatn";
  src:
    url("/fonts/Vazirmatn-Variable.woff2") format("woff2 supports variations"),
    url("/fonts/Vazirmatn-Variable.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --teal: #00c2c7;
  --teal-deep: #00727a;
  --teal-ink: #063a3e;
  --teal-mid: #0a9ea4;
  --gold: #ffe27a;
  --bg: #f3fafb;
  --bg-soft: #e7f5f6;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-solid: #ffffff;
  --ink: #063a3e;
  --ink-muted: #4a6f73;
  --line: rgba(6, 58, 62, 0.12);
  --accent: var(--teal);
  --accent-deep: var(--teal-deep);
  --accent-soft: rgba(0, 194, 199, 0.18);
  --danger: #d64545;
  --ok: #00727a;
  --radius: 18px;
  --font: "Vazirmatn", "Tahoma", sans-serif;
  --shadow: 0 22px 50px rgba(6, 58, 62, 0.1);
  --max: 68rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--teal-deep);
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 55% at 80% -5%, rgba(0, 194, 199, 0.28), transparent 58%),
    radial-gradient(ellipse 55% 45% at 5% 25%, rgba(255, 226, 122, 0.22), transparent 60%),
    linear-gradient(180deg, #f7fcfc 0%, #eef7f8 42%, #f3fafb 100%);
}

.atmosphere__wash {
  position: absolute;
  border-radius: 50%;
  filter: blur(56px);
  opacity: 0.55;
  animation: drift 18s ease-in-out infinite alternate;
}

.atmosphere__wash--a {
  width: min(48vw, 30rem);
  height: min(48vw, 30rem);
  top: -8%;
  left: -6%;
  background: rgba(0, 194, 199, 0.35);
}

.atmosphere__wash--b {
  width: min(40vw, 24rem);
  height: min(40vw, 24rem);
  bottom: 12%;
  right: -4%;
  background: rgba(0, 114, 122, 0.18);
  animation-delay: -7s;
}

.atmosphere__motif {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(6, 58, 62, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 58, 62, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 70% 55% at 70% 20%, #000 15%, transparent 72%);
  opacity: 0.7;
}

.topbar {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.85rem 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  animation: rise 0.7s ease both;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}

.brand__mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.7rem;
  box-shadow: 0 8px 20px rgba(0, 114, 122, 0.22);
}

.brand--nav .brand__mark {
  width: 2.35rem;
  height: 2.35rem;
}

.brand__text {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  justify-content: flex-end;
}

.nav a {
  text-decoration: none;
  color: var(--ink-muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--teal-deep);
}

main {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding-bottom: 4rem;
}

.hero {
  position: relative;
  display: grid;
  gap: 1.35rem;
  padding: 1.4rem 0 1.75rem;
}

.hero__intro {
  display: grid;
  /* RTL: second track is the physical-left logo column; fixed width keeps
     the logo flush with the panel's left edge. */
  grid-template-columns: minmax(0, 1fr) 17.5rem;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: center;
}

.hero__copy {
  animation: rise 0.75s ease both;
  overflow: visible;
}

.hero__brand {
  margin: 0;
  font-size: clamp(2.3rem, 6vw, 3.5rem);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.02em;
  padding-block: 0.08em 0.02em;
  overflow: visible;
  background: linear-gradient(120deg, var(--teal-ink) 20%, var(--teal-deep) 70%, var(--teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__headline {
  margin: 0.55rem 0 0;
  font-size: clamp(1.08rem, 2.3vw, 1.3rem);
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink);
  max-width: 30rem;
  animation: rise 0.75s ease 0.08s both;
}

.hero__lead {
  margin: 0.5rem 0 0;
  max-width: 30rem;
  color: var(--ink-muted);
  font-size: 1rem;
  animation: rise 0.75s ease 0.14s both;
}

.hero__visual {
  display: block;
  width: 100%;
  animation: rise 0.85s ease 0.18s both;
}

.hero-qr {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.75rem;
  box-shadow: 0 22px 48px rgba(0, 114, 122, 0.22);
  animation: qr-float 5.5s ease-in-out infinite;
}

.panel--hero {
  display: grid;
  gap: 1rem;
  padding: 1.35rem 1.4rem 1.25rem;
  animation: rise 0.75s ease 0.16s both;
}

.wizard__steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(231, 245, 246, 0.85);
  border: 1px solid rgba(0, 194, 199, 0.18);
}

.wizard__step {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: none;
  border-radius: 999px;
  padding: 0.7rem 0.9rem;
  font: inherit;
  font-weight: 700;
  color: var(--ink-muted);
  background: transparent;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.wizard__step:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.wizard__step--active,
.wizard__step[aria-selected="true"] {
  color: var(--teal-ink);
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 114, 122, 0.12);
}

.wizard__num {
  display: inline-grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  background: rgba(0, 194, 199, 0.16);
  color: var(--teal-deep);
  font-size: 0.82rem;
}

.wizard__step--active .wizard__num,
.wizard__step[aria-selected="true"] .wizard__num {
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  color: #fff;
}

.wizard__label {
  font-size: 0.95rem;
}

.wizard__pane {
  display: grid;
  gap: 1rem;
  animation: pane-in 0.28s ease both;
}

/* Author `display: grid` otherwise overrides the UA [hidden] rule. */
.wizard__pane[hidden] {
  display: none !important;
}

.wizard__pane .result {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  display: grid;
  gap: 0.75rem;
}

.wizard__pane .result[hidden] {
  display: none !important;
}

.qr-workbench {
  display: grid;
  gap: 0.85rem;
}

.qr-preview {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  justify-items: stretch;
  width: 100%;
  max-width: 16.5rem;
}

.qr-studio[hidden],
.qr-studio__actions[hidden],
.qr-ecc[hidden] {
  display: none !important;
}

.qr-ecc {
  display: grid;
  gap: 0.4rem;
}

.qr-ecc__label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--ink-muted);
}

.qr-ecc__options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
}

.qr-ecc__btn {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0.45rem 0.25rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--ink-muted);
  background: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.qr-ecc__btn:hover {
  color: var(--ink);
  border-color: rgba(0, 194, 199, 0.45);
}

.qr-ecc__btn--active,
.qr-ecc__btn[aria-pressed="true"] {
  color: #fff;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
  border-color: transparent;
}

.link-card {
  display: grid;
  gap: 0.55rem;
  padding: 0.75rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 194, 199, 0.2);
  box-shadow: 0 10px 28px rgba(0, 114, 122, 0.07);
}

.link-card__source {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  padding: 0.15rem 0.2rem;
}

.link-card__arrow {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  color: var(--ink-muted);
  opacity: 0.75;
}

.link-card__target {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  padding: 0.55rem 0.55rem 0.55rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(6, 58, 62, 0.14);
  background: rgba(255, 255, 255, 0.92);
}

.link-card__url {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
  text-align: left;
  font-family: ui-monospace, "Cascadia Code", "Segoe UI", monospace;
}

.link-card__url--muted {
  color: var(--ink-muted);
  font-size: 0.86rem;
  font-weight: 500;
}

.link-card__url--muted:hover {
  color: var(--teal-deep);
}

.link-card__url--strong {
  color: var(--teal-ink);
  font-size: 1rem;
  font-weight: 700;
}

.link-card__url--strong:hover {
  color: var(--teal-deep);
  text-decoration: underline;
}

.btn--copy {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 4.6rem;
  padding: 0.55rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 800;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 114, 122, 0.22);
}

.btn--copy:not(:disabled):hover {
  filter: brightness(1.05);
}

.btn--copy__icon {
  display: block;
}

.btn--copied {
  background: linear-gradient(135deg, #1aa36a 0%, #0f7a4d 100%);
  box-shadow: 0 6px 16px rgba(15, 122, 77, 0.25);
}

.btn--copy-error {
  background: linear-gradient(135deg, #e15b5b 0%, #b83c3c 100%);
  box-shadow: 0 6px 16px rgba(184, 60, 60, 0.22);
}

.confirm-dialog {
  border: none;
  border-radius: calc(var(--radius) + 6px);
  padding: 0;
  max-width: min(26rem, calc(100vw - 2rem));
  background: transparent;
  color: var(--ink);
}

.confirm-dialog::backdrop {
  background: rgba(6, 58, 62, 0.45);
  backdrop-filter: blur(4px);
}

.confirm-dialog__card {
  margin: 0;
  padding: 1.35rem 1.4rem 1.2rem;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(0, 194, 199, 0.22);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 60px rgba(6, 58, 62, 0.22);
  display: grid;
  gap: 0.75rem;
}

.confirm-dialog__card h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
}

.confirm-dialog__card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.confirm-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-start;
  margin-top: 0.35rem;
}

.confirm-dialog__actions .btn {
  flex: 1 1 8rem;
}

.panel__head h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.panel__head p {
  margin: 0.35rem 0 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.panel__note {
  margin: 0.75rem 0 0;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 194, 199, 0.08);
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.guest-link-meta {
  margin: 0.65rem 0 0;
  color: var(--ink-muted);
  font-size: 0.88rem;
}

.plan-lock-hint {
  margin: 0;
  flex-basis: 100%;
  color: var(--ink-muted);
  font-size: 0.82rem;
}

.qr-tab[aria-disabled="true"],
.qr-tab:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.qr-tab__lock {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.panel__form--inline {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 0.85rem;
}

.panel__form--inline .field {
  min-width: 0;
}

.panel__form--inline .btn {
  white-space: nowrap;
  min-height: 3.35rem;
  padding-inline: 1.45rem;
}

.panel__perks {
  list-style: none;
  margin: 0;
  padding: 0.85rem 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.15rem;
}

.panel__perks li {
  position: relative;
  padding-right: 1.15rem;
  color: var(--ink-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.panel__perks li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0.4rem;
  width: 0.65rem;
  height: 0.4rem;
  border: 2.5px solid var(--teal);
  border-top: none;
  border-right: none;
  transform: rotate(-45deg);
}

.section {
  padding: clamp(2rem, 5vh, 3.25rem) 0;
}

.section__intro {
  max-width: 34rem;
  margin-bottom: 1.6rem;
  animation: rise 0.7s ease both;
}

.section__intro h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3.2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section__intro p {
  margin: 0.55rem 0 0;
  color: var(--ink-muted);
}

.panel {
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: var(--surface);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.panel__form {
  display: grid;
  gap: 0.95rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field__label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-muted);
}

input[type="url"],
.frame-controls .field input[type="text"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.95rem 1rem;
  font: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input[type="url"]::placeholder {
  color: rgba(74, 111, 115, 0.7);
}

input[type="url"]:focus,
.frame-controls .field input[type="text"]:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.btn {
  appearance: none;
  border: none;
  border-radius: var(--radius);
  padding: 0.9rem 1.25rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.15s ease,
    background 0.2s ease,
    opacity 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn:not(:disabled):active {
  transform: translateY(1px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 114, 122, 0.28);
}

.btn--primary:not(:disabled):hover {
  filter: brightness(1.05);
  box-shadow: 0 14px 32px rgba(0, 114, 122, 0.36);
}

.btn--secondary {
  margin-top: 1rem;
  width: 100%;
  background: var(--teal-ink);
  color: #fff;
  border: 1px solid rgba(0, 194, 199, 0.35);
}

.btn--secondary[hidden],
#qr-btn[hidden] {
  display: none !important;
}

.btn--secondary:not(:disabled):hover {
  background: #0a4d52;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn--ghost:not(:disabled):hover {
  background: rgba(0, 194, 199, 0.12);
  border-color: rgba(0, 194, 199, 0.45);
}

.status {
  margin: 0.9rem 0 0;
  font-size: 0.95rem;
}

.status--error {
  color: var(--danger);
}

.status--ok {
  color: var(--ok);
}

.result {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.result__label {
  margin: 0 0 0.45rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.result__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  background: rgba(231, 245, 246, 0.95);
  border: 1px solid rgba(0, 194, 199, 0.22);
  direction: ltr;
}

.result__link {
  flex: 1 1 14rem;
  min-width: 0;
  word-break: break-all;
  color: var(--teal-deep);
  font-weight: 700;
  text-decoration: none;
  font-family: ui-monospace, "Cascadia Code", "Segoe UI", monospace;
  font-size: 0.95rem;
  direction: ltr;
  text-align: left;
}

.result__link:hover {
  color: var(--teal-ink);
  text-decoration: underline;
}

.qr-mount {
  margin-top: 0;
  display: grid;
  justify-items: center;
  align-content: start;
  min-height: 0;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.qr-mount:not(:empty) {
  padding: 1rem;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 194, 199, 0.14);
  box-shadow: 0 10px 28px rgba(6, 58, 62, 0.06);
}

.qr-mount--pulse {
  animation: qr-pulse 0.45s ease;
}

.qr-studio {
  margin-top: 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  animation: rise 0.45s ease both;
  min-width: 0;
}

@media (min-width: 901px) {
  .qr-workbench {
    /* LTR so preview stays on the physical left; studio keeps RTL text. */
    direction: ltr;
    grid-template-columns: 16.5rem minmax(0, 1fr);
    align-items: start;
    gap: 1.25rem;
  }

  .qr-preview {
    position: sticky;
    top: 1rem;
    width: 16.5rem;
    max-width: 16.5rem;
  }

  .qr-mount,
  .qr-mount:not(:empty) {
    width: 100%;
    box-sizing: border-box;
  }

  .qr-mount svg {
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
  }

  .qr-studio {
    direction: rtl;
    padding-top: 0;
    border-top: none;
    padding-left: 1.15rem;
    border-left: 1px solid var(--line);
  }

  .qr-preview .qr-studio__actions {
    grid-template-columns: 1fr;
  }
}

.qr-studio__tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scrollbar-width: thin;
}

.qr-tab {
  appearance: none;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-muted);
  background: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease;
}

.qr-tab:hover {
  color: var(--ink);
  border-color: rgba(0, 194, 199, 0.45);
}

.qr-tab--active,
.qr-tab[aria-selected="true"] {
  color: var(--teal-ink);
  background: rgba(0, 194, 199, 0.18);
  border-color: rgba(0, 114, 122, 0.45);
}

.qr-studio__panels {
  margin-top: 0.9rem;
}

.qr-pane {
  animation: pane-in 0.28s ease both;
}

.qr-pane__hint {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.choice-grid--templates {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-grid--compact {
  margin-bottom: 0.85rem;
}

.frame-controls .choice-grid--compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.frame-controls .choice {
  padding: 0.45rem 0.3rem;
  gap: 0.3rem;
  border-radius: 10px;
}

.frame-controls .choice__mark {
  width: 1.15rem;
  height: 1.15rem;
}

.frame-controls .choice__label {
  font-size: 0.75rem;
}

.choice {
  appearance: none;
  display: grid;
  gap: 0.45rem;
  justify-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.7rem 0.45rem;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.15s ease;
}

.choice:hover {
  border-color: rgba(0, 194, 199, 0.45);
  background: rgba(0, 194, 199, 0.08);
}

.choice--active,
.choice[aria-pressed="true"] {
  border-color: rgba(0, 114, 122, 0.65);
  background: rgba(0, 194, 199, 0.14);
  box-shadow: 0 0 0 1px rgba(0, 194, 199, 0.25);
}

.choice__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.choice--active .choice__label,
.choice[aria-pressed="true"] .choice__label {
  color: var(--ink);
}

.choice__swatch {
  display: flex;
  gap: 0.25rem;
}

.choice__swatch i {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(6, 58, 62, 0.2);
}

.choice__mark {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 0.35rem;
  background:
    radial-gradient(circle at 30% 30%, #00c2c7 0 18%, transparent 19%),
    radial-gradient(circle at 70% 30%, #00c2c7 0 18%, transparent 19%),
    radial-gradient(circle at 30% 70%, #00c2c7 0 18%, transparent 19%),
    radial-gradient(circle at 70% 70%, #00c2c7 0 18%, transparent 19%),
    radial-gradient(circle at 50% 50%, #00727a 0 16%, transparent 17%),
    #f3fafb;
  box-shadow: inset 0 0 0 1px rgba(6, 58, 62, 0.12);
}

.choice__mark--square {
  border-radius: 0.2rem;
  background:
    linear-gradient(#00727a, #00727a) 20% 20% / 22% 22% no-repeat,
    linear-gradient(#00727a, #00727a) 55% 20% / 22% 22% no-repeat,
    linear-gradient(#00727a, #00727a) 20% 55% / 22% 22% no-repeat,
    linear-gradient(#00727a, #00727a) 55% 55% / 22% 22% no-repeat,
    #f3fafb;
}

.choice__mark--dots,
.choice__mark--dot {
  border-radius: 999px;
}

.choice__mark--rounded,
.choice__mark--extra-rounded {
  border-radius: 0.7rem;
}

.choice__mark--classy,
.choice__mark--classy-rounded {
  background:
    linear-gradient(135deg, transparent 42%, #00727a 43% 57%, transparent 58%),
    linear-gradient(45deg, transparent 42%, #00c2c7 43% 57%, transparent 58%),
    #f3fafb;
}

.color-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.color-field {
  display: grid;
  gap: 0.4rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.color-field input[type="color"] {
  appearance: none;
  width: 100%;
  height: 2.6rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.2rem;
  background: #fff;
  cursor: pointer;
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.logo-name {
  margin: 0.65rem 0 0;
  font-size: 0.86rem;
  color: var(--ok);
  word-break: break-all;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.toggle-row input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--teal);
}

.frame-controls .field input[type="range"] {
  width: 100%;
  padding: 0.35rem 0;
  background: transparent;
  border: none;
}

.frame-controls .field + .field,
.frame-controls .color-fields {
  margin-top: 0.75rem;
}

.qr-studio__actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0;
  width: 100%;
}

.qr-studio__actions .btn {
  width: 100%;
  padding: 0.75rem 0.7rem;
  font-size: 0.9rem;
}

.section--features {
  padding-top: clamp(3.25rem, 8vh, 5rem);
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem 1.5rem;
}

.feature {
  padding: 0.35rem 0.2rem;
  animation: rise 0.7s ease both;
}

.feature:nth-child(2) {
  animation-delay: 0.06s;
}

.feature:nth-child(3) {
  animation-delay: 0.12s;
}

.feature:nth-child(4) {
  animation-delay: 0.18s;
}

.feature__icon {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.85rem;
  border-radius: 0.85rem;
  background:
    linear-gradient(135deg, var(--teal), var(--teal-deep));
  box-shadow: 0 10px 22px rgba(0, 114, 122, 0.22);
  position: relative;
}

.feature__icon::after {
  content: "";
  position: absolute;
  inset: 30% 22% 34% 22%;
  border: 2.5px solid #fff;
  border-top: none;
  border-right: none;
  transform: rotate(-45deg);
}

.feature__icon--qr {
  background: linear-gradient(135deg, #0a9ea4, #063a3e);
}

.feature__icon--qr::after {
  inset: 22%;
  border: none;
  transform: none;
  background:
    linear-gradient(#fff, #fff) 0 0 / 35% 35% no-repeat,
    linear-gradient(#fff, #fff) 100% 0 / 35% 35% no-repeat,
    linear-gradient(#fff, #fff) 0 100% / 35% 35% no-repeat,
    radial-gradient(circle at 70% 70%, #fff 0 12%, transparent 13%);
}

.feature__icon--style {
  background: linear-gradient(135deg, #1aa7ad, #0b5f65);
}

.feature__icon--style::after {
  inset: 26%;
  border: none;
  transform: none;
  border-radius: 0.35rem;
  box-shadow:
    inset 0 0 0 2px #fff,
    0 0 0 3px rgba(255, 255, 255, 0.35);
  background:
    linear-gradient(135deg, #ffe27a 0 42%, transparent 43%),
    linear-gradient(225deg, #fff 0 40%, transparent 41%);
}

.feature__icon--fast {
  background: linear-gradient(135deg, var(--gold), #e8b84a);
}

.feature__icon--fast::after {
  inset: 28% 26%;
  border: none;
  border-radius: 2px;
  background: var(--teal-ink);
  transform: skewX(-18deg);
}

.feature h3 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
}

.feature p {
  margin: 0.45rem 0 0;
  color: var(--ink-muted);
  font-size: 0.98rem;
}

.section--pricing {
  border-radius: 2rem;
  padding-inline: clamp(0.5rem, 2vw, 1rem);
  padding-bottom: clamp(2.5rem, 6vh, 3.5rem);
  margin-bottom: clamp(1.5rem, 4vh, 2.75rem);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(231, 245, 246, 0.7));
  border: 1px solid rgba(0, 194, 199, 0.14);
}

.section--about {
  padding-top: clamp(2.75rem, 7vh, 4.25rem);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.plan {
  display: grid;
  align-content: start;
  gap: 0.55rem;
  padding: 1.35rem 1.2rem 1.25rem;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 34px rgba(6, 58, 62, 0.06);
  animation: rise 0.7s ease both;
}

.plan:nth-child(2) {
  animation-delay: 0.06s;
}

.plan:nth-child(3) {
  animation-delay: 0.12s;
}

.plan--featured {
  border-color: rgba(0, 194, 199, 0.55);
  background:
    linear-gradient(180deg, rgba(0, 194, 199, 0.12), rgba(255, 255, 255, 0.92));
  transform: translateY(-0.35rem);
  box-shadow: 0 22px 44px rgba(0, 114, 122, 0.16);
}

.plan__badge {
  margin: 0;
  width: fit-content;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--teal-ink);
  font-size: 0.78rem;
  font-weight: 800;
}

.plan__name {
  margin: 0.15rem 0 0;
  font-size: 1.2rem;
  font-weight: 800;
}

.plan__price {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink-muted);
}

.plan__price span {
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--teal-ink);
  letter-spacing: -0.02em;
}

.plan__period {
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  color: var(--ink-muted) !important;
}

.plan__note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--teal-deep);
  font-weight: 700;
}

.plan__perks {
  margin: 0.4rem 0 0.7rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.plan__perks li {
  position: relative;
  padding-right: 1.35rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.plan__perks li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0.45rem;
  width: 0.7rem;
  height: 0.45rem;
  border: 2.5px solid var(--teal);
  border-top: none;
  border-right: none;
  transform: rotate(-45deg);
}

.plan .btn {
  width: 100%;
  margin-top: auto;
}

.about {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem 0;
}

.about__copy h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3.2vw, 2rem);
  font-weight: 800;
}

.about__copy p {
  margin: 0.85rem 0 0;
  color: var(--ink-muted);
  max-width: 38rem;
}

.about__mark {
  display: grid;
  place-items: center;
}

.about__mark img {
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 1.6rem;
  box-shadow: 0 18px 40px rgba(0, 114, 122, 0.22);
  animation: pop 4s ease-in-out infinite;
}

.footer {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.footer__meta {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-3%, 4%, 0) scale(1.08);
  }
}

@keyframes pane-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes qr-pulse {
  0% {
    transform: scale(1);
    filter: brightness(1);
  }
  40% {
    transform: scale(1.03);
    filter: brightness(1.08);
  }
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}

@keyframes qr-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes pop {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}

@media (max-width: 900px) {
  .hero__intro {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hero__visual {
    width: 11rem;
  }

  .hero-qr {
    border-radius: 1.15rem;
  }

  .panel__form--inline {
    grid-template-columns: 1fr;
  }

  .feature-list,
  .pricing-grid,
  .about {
    grid-template-columns: 1fr;
  }

  .plan--featured {
    transform: none;
  }
}

@media (max-width: 640px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
  }

  .panel {
    padding: 1rem;
  }

  .result__row {
    flex-direction: column;
    align-items: stretch;
  }

  .choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .color-fields,
  .qr-studio__actions {
    grid-template-columns: 1fr;
  }

  .hero__brand {
    font-size: clamp(2rem, 10vw, 2.6rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .atmosphere__wash,
  .topbar,
  .hero__copy,
  .hero__headline,
  .hero__lead,
  .hero__visual,
  .section__intro,
  .panel,
  .feature,
  .plan,
  .qr-studio,
  .qr-pane,
  .qr-mount--pulse,
  .hero-qr,
  .about__mark img {
    animation: none;
  }
}
