/* Light Canvas website.
   The same look as the plugin's panel (LightCanvas/styles.css): dark greys, one
   accent (the logo's blue #54a4db), and a little light in three places only: behind
   the header, under the main button, and on the "light file" in the picture.
   Corners: cards 12, boxes 8, inner 5, buttons fully round.
   Spacing: 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64.
   Built for the phone first: one column, 16px text (iOS doesn't zoom into fields
   at 16px), buttons at least 48px high. Wider screens get two columns where it helps. */
:root {
  color-scheme: dark;
  --bg: #1a1b1e;
  --surface: #232428;
  --sunken: #17181b;
  --line: rgba(255, 255, 255, 0.07);
  --line-top: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.14);
  --grid: rgba(255, 255, 255, 0.045);
  --text: #eeeff2;
  --text-2: #b8bbc3;
  --muted: #8d919a;

  --accent: #54a4db;
  --accent-hi: #68b1e2;
  --accent-lo: #4797d0;
  --accent-soft: #b4d8f1;
  --accent-ink: #06223a;
  --accent-tint: rgba(84, 164, 219, 0.14);
  --accent-line: rgba(84, 164, 219, 0.45);
  --accent-glow: rgba(84, 164, 219, 0.4);

  --ok-text: #7fdcae;
  --bad: #ef5b5b;
  --bad-text: #ff8a84;

  --r-card: 12px;
  --r-box: 8px;
  --r-inner: 5px;
  --r-pill: 999px;

  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;

  --font: "IBM Plex Sans Arabic", -apple-system, BlinkMacSystemFont, "SF Arabic", "Segoe UI", Tahoma, sans-serif;
  --wrap: 1080px;
  --narrow: 560px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  /* the light behind the header, on the logo's side */
  background-image: radial-gradient(56rem 26rem at 88% -8rem, rgba(84, 164, 219, 0.15), rgba(84, 164, 219, 0) 70%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

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

a {
  color: var(--accent-soft);
  text-underline-offset: 3px;
}

a:hover {
  color: #ffffff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-inner);
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.35;
  color: #ffffff;
}

h1 {
  font-size: 30px;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 17px;
}

p {
  margin: 0;
}

.ltr {
  direction: ltr;
  unicode-bidi: isolate;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--s4);
}

.wrap.narrow {
  max-width: var(--narrow);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  inset-inline-start: var(--s4);
  top: -48px;
  z-index: 10;
  padding: var(--s2) var(--s4);
  background: var(--surface);
  border-radius: var(--r-box);
}

.skip:focus {
  top: var(--s2);
}

/* ---------- header / footer ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding-top: var(--s4);
  padding-bottom: var(--s4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  white-space: nowrap;
}

.brand img {
  width: 28px;
  height: 28px;
}

.brand:hover {
  color: #ffffff;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--s4);
}

.nav a:not(.btn) {
  color: var(--text-2);
  text-decoration: none;
  font-size: 15px;
}

.nav a:not(.btn):hover,
.nav a[aria-current="page"] {
  color: #ffffff;
}

.site-footer {
  margin-top: var(--s8);
  border-top: 1px solid var(--line);
  padding-top: var(--s5);
  padding-bottom: var(--s6);
  color: var(--muted);
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
}

.site-footer nav {
  display: flex;
  gap: var(--s4);
}

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

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

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 48px;
  padding: 0 var(--s5);
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn.primary {
  color: var(--accent-ink);
  background-color: var(--accent);
  background-image: linear-gradient(180deg, var(--accent-hi), var(--accent-lo));
  box-shadow: 0 8px 20px -8px var(--accent-glow);
}

.btn.primary:hover {
  color: var(--accent-ink);
  background-image: linear-gradient(180deg, #7dbde8, #56a2d9);
}

.btn.ghost {
  color: var(--text);
  background-color: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
}

.btn.ghost:hover {
  color: var(--accent-soft);
  border-color: var(--accent-line);
}

.btn.small {
  min-height: 36px;
  padding: 0 var(--s4);
  font-size: 14px;
}

.btn.block {
  display: flex;
  width: 100%;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  color: var(--muted);
  background-color: #34363b;
  background-image: none;
  box-shadow: none;
  cursor: progress;
}

.btn .sub {
  font-weight: 400;
  opacity: 0.8;
}

/* ---------- cards and label/value rows (like the panel) ---------- */
.card {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-top-color: var(--line-top);
  border-radius: var(--r-card);
  padding: var(--s4);
}

.rows {
  margin: 0;
  display: grid;
  gap: var(--s2);
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
}

.row dt {
  flex: 1;
  min-width: 0;
  color: var(--text-2);
  font-size: 15px;
}

.row dd {
  margin: 0;
  flex-shrink: 0;
  max-width: 64%;
  background-color: var(--sunken);
  border: 1px solid var(--line);
  border-radius: var(--r-box);
  padding: var(--s1) var(--s3);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-align: start;
}

.eyebrow {
  display: inline-block;
  color: var(--accent-soft);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: var(--s3);
}

.lead {
  color: var(--text-2);
  font-size: 17px;
  margin-top: var(--s3);
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 14px;
}

.section {
  margin-top: var(--s8);
}

.section-head {
  margin-bottom: var(--s5);
}

.section-head p {
  color: var(--text-2);
  margin-top: var(--s2);
}

/* ---------- home: hero ---------- */
.hero {
  padding-top: var(--s5);
  display: grid;
  gap: var(--s6);
  align-items: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  margin-top: var(--s5);
}

.hero-actions .btn.primary {
  flex: 1 1 100%;
}

.hero-actions .btn.ghost {
  flex: 1 1 100%;
}

/* the picture: the real banner, and the light working file in its corner, to scale */
.figure {
  margin: 0;
}

.canvas {
  position: relative;
  aspect-ratio: 2 / 1;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-box);
  overflow: hidden;
  background-color: var(--sunken);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 12.5% 25%;
}

.canvas .tag {
  position: absolute;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
  white-space: nowrap;
}

.canvas .tag.full {
  bottom: var(--s3);
  inset-inline-end: var(--s3);
}

.canvas .work {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 25%;
  height: 25%;
  background-color: var(--accent-tint);
  border: 1px solid var(--accent);
  border-top: 0;
  border-inline-start: 0;
  box-shadow: 0 0 28px rgba(84, 164, 219, 0.35);
}

.canvas .tag.light {
  top: calc(25% + var(--s2));
  inset-inline-start: var(--s2);
  color: var(--accent-soft);
}

.figure .rows {
  margin-top: var(--s3);
}

.swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-inline-end: var(--s2);
  vertical-align: 0;
  border: 1px solid var(--line-strong);
  background-color: var(--sunken);
}

.swatch.light {
  border-color: var(--accent);
  background-color: var(--accent-tint);
}

.figure figcaption {
  margin-top: var(--s3);
  color: var(--muted);
  font-size: 14px;
}

/* ---------- home: the three steps ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s5);
  counter-reset: step;
}

.steps > li {
  position: relative;
  counter-increment: step;
  padding-inline-start: var(--s7);
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-soft);
  background-color: var(--accent-tint);
  border: 1px solid var(--accent-line);
}

.steps h3 {
  margin-bottom: var(--s1);
  line-height: 32px;
}

.steps p {
  color: var(--text-2);
}

.steps .ui {
  display: inline-block;
  color: var(--text);
  background-color: var(--sunken);
  border: 1px solid var(--line);
  border-radius: var(--r-inner);
  padding: 0 var(--s2);
  font-size: 14px;
  white-space: nowrap;
}

/* ---------- home: price ---------- */
.price-card,
.have-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--s5);
}

.price-card h3,
.have-card h3 {
  margin: var(--s2) 0 var(--s2);
}

.have-card .muted {
  font-size: 15px;
}

/* "لو عميل جديد" / "لو عندك حساب" above the two last cards */
.who {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-soft);
  background-color: var(--accent-tint);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-pill);
  padding: 0 var(--s3);
  line-height: 26px;
}

.have-card .who {
  color: var(--text-2);
  background-color: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
}

.end-grid {
  display: grid;
  gap: var(--s3);
}


.price {
  font-size: 15px;
  color: var(--text-2);
}

.price b {
  font-size: 34px;
  line-height: 1.2;
  font-weight: 600;
  color: #ffffff;
  margin-inline-end: var(--s1);
}

.price .was {
  font-size: 17px;
  font-weight: 400;
  color: var(--muted);
  text-decoration-thickness: 1px;
  margin-inline-end: var(--s2);
}

.offer {
  color: var(--accent-soft);
  font-size: 14px;
  font-weight: 600;
}

.hero-offer {
  margin-top: var(--s3);
}

.price-card ul {
  margin: var(--s4) 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-2);
  display: grid;
  gap: var(--s1);
}

.price-card li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent);
  margin-inline-end: var(--s2);
  vertical-align: 2px;
}

.price-foot {
  margin-top: var(--s3);
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- buy ---------- */
.page-head {
  padding-top: var(--s4);
  margin-bottom: var(--s5);
}

.page-head p {
  color: var(--text-2);
  margin-top: var(--s2);
}

.step-title {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin: var(--s6) 0 var(--s3);
}

.step-title .n {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-soft);
  background-color: var(--accent-tint);
  border: 1px solid var(--accent-line);
}

.amount {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s3);
}

.amount .price b {
  font-size: 28px;
}

.pay-list {
  display: grid;
  gap: var(--s3);
  margin-top: var(--s3);
}

.pay-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  margin-bottom: var(--s2);
}

.pay-head h3 {
  font-size: 16px;
}

.pay-head .muted {
  font-size: 14px;
}

.copy-row {
  display: flex;
  align-items: center;
  gap: var(--s2);
  background-color: var(--sunken);
  border: 1px solid var(--line);
  border-radius: var(--r-box);
  padding: var(--s1) var(--s1) var(--s1) var(--s1);
  padding-inline-start: var(--s3);
  margin-top: var(--s2);
}

.copy-row .val {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: start;
}

.copy-row .label {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--muted);
}

.copy {
  flex-shrink: 0;
  min-width: 64px;
  min-height: 40px;
  padding: 0 var(--s3);
  border-radius: var(--r-inner);
  border: 1px solid var(--line-strong);
  background-color: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.copy:hover {
  border-color: var(--accent-line);
  color: var(--accent-soft);
}

.copy.done {
  color: var(--ok-text);
  border-color: rgba(76, 195, 138, 0.45);
}

.pay-open {
  margin-top: var(--s3);
}

/* ---------- form ---------- */
.form {
  display: grid;
  gap: var(--s5);
}

.field {
  display: grid;
  gap: var(--s2);
  min-width: 0;
}

.field > label,
.field > .field-label,
.field legend {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  padding: 0;
}

.field .help {
  font-size: 14px;
  color: var(--muted);
  margin-top: calc(var(--s1) * -1);
}

fieldset.field {
  border: 0;
  margin: 0;
  padding: 0;
}

.input {
  width: 100%;
  min-height: 48px;
  padding: var(--s3) var(--s3);
  border-radius: var(--r-box);
  border: 1px solid var(--line-strong);
  background-color: var(--sunken);
  color: #ffffff;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
  transition: border-color 0.15s ease;
}

.input::placeholder {
  color: #6b6f78;
}

.input:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}

.input[dir="ltr"] {
  text-align: left;
}

.input[dir="ltr"]:placeholder-shown {
  text-align: right;
  direction: rtl;
}

[aria-invalid="true"] {
  border-color: var(--bad) !important;
}

.field-error {
  color: var(--bad-text);
  font-size: 14px;
}

/* the payment method: two big choices side by side */
.choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s2);
  background-color: var(--sunken);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-box);
  padding: var(--s1);
}

.choices.invalid {
  border-color: var(--bad);
}

.choice {
  position: relative;
}

.choice input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: var(--r-inner);
  border: 1px solid transparent;
  color: var(--text-2);
  font-weight: 600;
  font-size: 15px;
  text-align: center;
  pointer-events: none;
}

.choice input:checked + span {
  color: var(--accent-soft);
  background-color: var(--accent-tint);
  border-color: var(--accent-line);
}

.choice input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* the screenshot: a big place to tap, then a preview */
.drop {
  display: flex;
  align-items: center;
  gap: var(--s3);
  min-height: 72px;
  padding: var(--s3);
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: var(--r-box);
  background-color: var(--sunken);
  color: var(--text-2);
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.drop:hover,
.drop.over {
  border-color: var(--accent);
}

.drop.invalid {
  border-color: var(--bad);
}

.file-input:focus-visible + .drop {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.drop .icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--r-box);
  display: grid;
  place-items: center;
  background-color: var(--accent-tint);
  color: var(--accent-soft);
}

.drop .thumb {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: var(--r-inner);
  object-fit: cover;
  border: 1px solid var(--line-strong);
}

.drop .text {
  flex: 1;
  min-width: 0;
  display: grid;
}

.drop .text b {
  color: var(--text);
  font-weight: 600;
}

.drop .text small {
  font-size: 13px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hp {
  position: absolute;
  inset-inline-start: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-error {
  color: var(--bad-text);
  background-color: #2c2122;
  border: 1px solid rgba(239, 91, 91, 0.45);
  border-radius: var(--r-box);
  padding: var(--s3);
  font-size: 15px;
}

.after-send {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin-top: calc(var(--s3) * -1);
}

[hidden] {
  display: none !important;
}

/* ---------- thanks ---------- */
.done-mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: var(--s5);
  color: var(--ok-text);
  background-color: rgba(76, 195, 138, 0.12);
  border: 1px solid rgba(76, 195, 138, 0.4);
}

.sent-to {
  margin-top: var(--s4);
  color: var(--text-2);
}

.sent-to b {
  color: #ffffff;
  font-weight: 600;
  word-break: break-all;
}

.next {
  margin-top: var(--s6);
  display: grid;
  gap: var(--s3);
}

.note-list {
  margin: var(--s5) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--s2);
  color: var(--text-2);
  font-size: 15px;
}

/* ---------- download ---------- */
.dl-list {
  display: grid;
  gap: var(--s4);
}

.dl-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s3);
  margin-bottom: var(--s3);
}

.dl-head p {
  color: var(--text-2);
  font-size: 15px;
  margin-top: var(--s1);
}

.badge {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-soft);
  background-color: var(--accent-tint);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-pill);
  padding: 0 var(--s3);
  line-height: 26px;
  white-space: nowrap;
}

.how {
  margin: var(--s4) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: how;
  display: grid;
  gap: var(--s3);
}

.how > li {
  position: relative;
  counter-increment: how;
  padding-inline-start: var(--s6);
  color: var(--text-2);
  font-size: 15px;
}

.how > li::before {
  content: counter(how);
  position: absolute;
  inset-inline-start: 0;
  top: 1px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background-color: var(--sunken);
  border: 1px solid var(--line-strong);
}

.how b {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

.size {
  font-weight: 400;
  opacity: 0.75;
  font-size: 14px;
}

.callout {
  margin-top: var(--s4);
  padding: var(--s3);
  border-radius: var(--r-box);
  background-color: var(--sunken);
  border: 1px solid var(--line);
  color: var(--text-2);
  font-size: 14px;
}

.callout b {
  color: var(--text);
  font-weight: 600;
}

kbd,
.kbd {
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background-color: var(--sunken);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-inner);
  padding: 0 var(--s1);
  white-space: nowrap;
}

/* ---------- wider screens ---------- */
@media (min-width: 560px) {
  .hero-actions .btn.primary,
  .hero-actions .btn.ghost {
    flex: 0 0 auto;
  }

  .card {
    padding: var(--s5);
  }
}

@media (min-width: 900px) {
  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 26px;
  }

  .lead {
    font-size: 18px;
  }

  .site-header {
    padding-top: var(--s5);
    padding-bottom: var(--s5);
  }

  .hero {
    grid-template-columns: 1fr 1.1fr;
    gap: var(--s7);
    padding-top: var(--s7);
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s6);
  }

  .split {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: var(--s7);
    align-items: start;
  }

  .split .section-head {
    margin-bottom: 0;
  }

  .page-head {
    padding-top: var(--s6);
  }
}

/* ---------- home: the numbers ---------- */
.stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s3);
}

.stat {
  display: grid;
  gap: var(--s1);
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-top-color: var(--line-top);
  border-radius: var(--r-card);
  padding: var(--s4) var(--s5);
}

.stat b {
  font-size: 34px;
  line-height: 1.2;
  font-weight: 600;
  color: var(--accent-soft);
  text-align: right;
}

.stat-title {
  font-weight: 600;
  color: #ffffff;
}

.stat-sub {
  font-size: 14px;
  color: var(--muted);
}

/* ---------- home: the moving demo ----------
   A drawing of Photoshop with the Light Canvas panel. site.js sets data-step
   0..8 on #demo and the CSS below moves things for each step. Everything sits at
   fixed % places inside .ps (16:10), and text is sized in cqw, so the whole
   picture scales with its width like an image. */
.demo {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-card);
  overflow: hidden;
  background-color: #1f1f22;
}

.ps {
  position: relative;
  aspect-ratio: 16 / 10;
  container-type: inline-size;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #d6d7db;
  background-color: #1f1f22;
}

.ps-bar {
  position: absolute;
  inset: 0 0 auto 0;
  height: 7%;
  background-color: #2c2d31;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ps-dots {
  position: absolute;
  left: 1.6%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 0.8cqw;
}

.ps-dots i {
  width: 1.3cqw;
  height: 1.3cqw;
  border-radius: 50%;
  background-color: #ff5f57;
}

.ps-dots i:nth-child(2) {
  background-color: #febc2e;
}

.ps-dots i:nth-child(3) {
  background-color: #28c840;
}

.ps-menu {
  position: absolute;
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 0.9cqw;
  font-size: 1.7cqw;
  color: #c4c5ca;
}

.m1 { left: 10%; }
.m2 { left: 16%; }
.m3 { left: 22%; }
.m4 { left: 29%; }

.ps-drop {
  position: absolute;
  left: 29%;
  top: 7.5%;
  width: 17%;
  height: 6.5%;
  display: flex;
  align-items: center;
  padding: 0 0.6cqw;
  font-size: 1.7cqw;
  background-color: #3a3b40;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.8cqw;
  box-shadow: 0 1cqw 2cqw rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(-0.6cqw);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.ps-drop span {
  flex: 1;
  padding: 0.4cqw 0.8cqw;
  border-radius: 0.5cqw;
}

.ps-tools {
  position: absolute;
  left: 0;
  top: 7%;
  bottom: 0;
  width: 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4cqw;
  padding-top: 1.6cqw;
  background-color: #2a2b2f;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.ps-tools i {
  width: 2cqw;
  height: 2cqw;
  border-radius: 0.4cqw;
  background-color: #4a4b51;
}

.ps-stage {
  position: absolute;
  left: 5%;
  top: 7%;
  width: 59%;
  bottom: 0;
}

/* the banner: 2:1, in the middle of the stage */
.ps-doc {
  position: absolute;
  left: 7.6%;
  width: 84.7%;
  top: 24.7%;
  height: 43%;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 1cqw 3cqw rgba(0, 0, 0, 0.45);
}

.art {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(165deg, #ffd27a 0%, #ff9a5c 50%, #e8566a 100%);
}

.art-sun {
  position: absolute;
  right: 14%;
  top: 14%;
  width: 18%;
  aspect-ratio: 1;
  border-radius: 50%;
  background-color: #fff3c4;
  opacity: 0.9;
}

.art-hill {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -35%;
  height: 70%;
  border-radius: 50%;
  background-color: #8c2f45;
  opacity: 0.85;
}

.art-title,
.art-sub {
  position: absolute;
  left: 8%;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.05em;
  transition: transform 1.1s ease;
}

.art-title {
  top: 18%;
  font-size: 5.4cqw;
  line-height: 1;
}

.art-sub {
  top: 44%;
  font-size: 2.2cqw;
  color: #fff3c4;
}

.ps-tiles {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(2, 1fr);
}

.ps-tiles i {
  border: 1px solid rgba(255, 255, 255, 0);
}

.ps-info {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 4%;
  display: flex;
  align-items: center;
  gap: 1.6cqw;
  font-size: 1.5cqw;
  color: #9a9ba1;
}

.info-light {
  display: none;
  color: var(--accent-soft);
}

.ps-mem {
  margin-left: auto;
  width: 11cqw;
  height: 0.9cqw;
  border-radius: 1cqw;
  background-color: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.ps-mem i {
  display: block;
  height: 100%;
  width: 88%;
  background-color: #e6a23c;
  transition: width 0.9s ease, background-color 0.9s ease;
}

/* the Light Canvas panel */
.lc {
  position: absolute;
  left: 64%;
  top: 7%;
  right: 0;
  bottom: 0;
  background-color: #1a1b1e;
  border-left: 1px solid rgba(255, 255, 255, 0.07);
  background-image: radial-gradient(ellipse at 80% 0%, rgba(84, 164, 219, 0.16), rgba(84, 164, 219, 0) 60%);
  font-family: var(--font);
  text-align: right;
  opacity: 0;
  transform: translateX(3cqw);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.lc-head {
  position: absolute;
  top: 2.5%;
  left: 6%;
  right: 6%;
  height: 7%;
  display: flex;
  align-items: center;
  gap: 0.8cqw;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.8cqw;
  font-weight: 700;
  color: #eeeff2;
}

.lc-head img {
  width: 2.4cqw;
  height: 2.4cqw;
}

.lc-card {
  position: absolute;
  left: 6%;
  right: 6%;
  background-color: #232428;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-top-color: rgba(255, 255, 255, 0.1);
  border-radius: 1.2cqw;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.lc-open { top: 12%; height: 31%; }
.lc-work { top: 46%; height: 17%; }
.lc-export { top: 66%; height: 31%; }

.lc-work,
.lc-export {
  opacity: 0;
  transform: translateY(1cqw);
}

.lc-title {
  position: absolute;
  top: 9%;
  right: 7%;
  font-size: 1.5cqw;
  font-weight: 600;
  color: #eeeff2;
}

.lc-value {
  position: absolute;
  top: 34%;
  left: 7%;
  right: 7%;
  padding: 0.4cqw 0.8cqw;
  border-radius: 0.8cqw;
  background-color: #17181b;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.5cqw;
  font-weight: 700;
  text-align: center;
  direction: ltr;
}

.lc-btn {
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: 10%;
  height: 26%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3cqw;
  background-image: linear-gradient(180deg, #68b1e2, #4797d0);
  color: #06223a;
  font-size: 1.45cqw;
  font-weight: 600;
  box-shadow: 0 0.8cqw 1.6cqw -0.8cqw rgba(84, 164, 219, 0.6);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.lc-seg {
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: 14%;
  height: 40%;
  display: flex;
  flex-direction: row-reverse;
  padding: 0.3cqw;
  border-radius: 0.8cqw;
  background-color: #17181b;
}

.lc-seg i,
.lc-chips i {
  font-style: normal;
}

.lc-seg i {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3cqw;
  color: #80848d;
  border-radius: 0.5cqw;
}

.lc-seg i.on {
  color: #b4d8f1;
  background-color: rgba(84, 164, 219, 0.18);
  box-shadow: inset 0 0 0 1px rgba(84, 164, 219, 0.45);
}

.lc-chips {
  position: absolute;
  top: 32%;
  right: 7%;
  display: flex;
  flex-direction: row-reverse;
  gap: 0.6cqw;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.lc-chips i {
  font-size: 1.15cqw;
  font-weight: 700;
  padding: 0.2cqw 0.8cqw;
  border-radius: 2cqw;
  color: #b4d8f1;
  background-color: rgba(84, 164, 219, 0.14);
  border: 1px solid rgba(84, 164, 219, 0.45);
}

.lc-bar {
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: 42%;
  height: 0.7cqw;
  border-radius: 1cqw;
  background-color: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  opacity: 0;
}

.lc-bar i {
  display: block;
  width: 0;
  height: 100%;
  background-color: var(--accent);
}

.lc-done {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 46%;
  padding: 1cqw;
  border-radius: 1.2cqw;
  background-color: #1f2a25;
  border: 1px solid rgba(76, 195, 138, 0.4);
  color: #7fdcae;
  font-size: 1.5cqw;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  transform: translateY(1cqw);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.cursor {
  position: absolute;
  width: 3.2cqw;
  height: 3.2cqw;
  left: 45%;
  top: 55%;
  margin: -0.4cqw 0 0 -0.6cqw;
  filter: drop-shadow(0 0.3cqw 0.4cqw rgba(0, 0, 0, 0.5));
  transition: left 0.7s cubic-bezier(0.45, 0, 0.25, 1), top 0.7s cubic-bezier(0.45, 0, 0.25, 1), transform 0.15s ease;
  z-index: 3;
}

.cursor.click {
  transform: scale(0.82);
}

/* step by step: where the pointer is, and what shows */
[data-step="1"] .cursor { left: 32%; top: 3.5%; }
[data-step="2"] .cursor { left: 36%; top: 10.6%; }
[data-step="3"] .cursor { left: 82%; top: 40.5%; }
[data-step="4"] .cursor { left: 22%; top: 41%; }
[data-step="5"] .cursor { left: 35%; top: 50.5%; }
[data-step="6"] .cursor,
[data-step="7"] .cursor { left: 82%; top: 90.6%; }
[data-step="8"] .cursor { left: 72%; top: 70%; }

[data-step="1"] .m4,
[data-step="2"] .m4 {
  color: #ffffff;
  background-color: rgba(84, 164, 219, 0.28);
}

[data-step="1"] .ps-drop,
[data-step="2"] .ps-drop {
  opacity: 1;
  transform: none;
}

[data-step="2"] .ps-drop span {
  color: #ffffff;
  background-color: #3d7fb0;
}

[data-step="3"] .lc,
[data-step="4"] .lc,
[data-step="5"] .lc,
[data-step="6"] .lc,
[data-step="7"] .lc,
[data-step="8"] .lc {
  opacity: 1;
  transform: none;
}

[data-step="4"] .lc-work,
[data-step="5"] .lc-work,
[data-step="6"] .lc-work,
[data-step="7"] .lc-work,
[data-step="8"] .lc-work,
[data-step="4"] .lc-export,
[data-step="5"] .lc-export,
[data-step="6"] .lc-export,
[data-step="7"] .lc-export,
[data-step="8"] .lc-export {
  opacity: 1;
  transform: none;
}

/* the light working file: lighter numbers, the memory bar drops */
[data-step="4"] .info-full,
[data-step="5"] .info-full,
[data-step="6"] .info-full,
[data-step="7"] .info-full,
[data-step="8"] .info-full {
  display: none;
}

[data-step="4"] .info-light,
[data-step="5"] .info-light,
[data-step="6"] .info-light,
[data-step="7"] .info-light,
[data-step="8"] .info-light {
  display: inline;
}

[data-step="4"] .ps-mem i,
[data-step="5"] .ps-mem i,
[data-step="6"] .ps-mem i,
[data-step="7"] .ps-mem i,
[data-step="8"] .ps-mem i {
  width: 18%;
  background-color: var(--accent);
}

/* working: the title is dragged a little */
[data-step="5"] .art-title,
[data-step="6"] .art-title,
[data-step="7"] .art-title,
[data-step="8"] .art-title,
[data-step="5"] .art-sub,
[data-step="6"] .art-sub,
[data-step="7"] .art-sub,
[data-step="8"] .art-sub {
  transform: translate(13cqw, 6cqw);
}

/* the export: tile after tile, then done */
[data-step="7"] .lc-chips,
[data-step="8"] .lc-chips {
  opacity: 0.35;
}

[data-step="7"] .lc-bar,
[data-step="8"] .lc-bar {
  opacity: 1;
}

[data-step="7"] .lc-bar i {
  width: 100%;
  transition: width 2.6s linear;
}

[data-step="8"] .lc-bar i {
  width: 100%;
}

[data-step="7"] .ps-tiles i {
  animation: tile 2.6s linear both;
  animation-delay: calc(var(--i, 0) * 0.15s);
}

@keyframes tile {
  0% {
    background-color: rgba(84, 164, 219, 0);
    border-color: rgba(255, 255, 255, 0);
  }
  6% {
    background-color: rgba(84, 164, 219, 0.45);
    border-color: rgba(180, 216, 241, 0.9);
  }
  20%,
  100% {
    background-color: rgba(84, 164, 219, 0);
    border-color: rgba(255, 255, 255, 0);
  }
}

[data-step="8"] .lc-done {
  opacity: 1;
  transform: none;
}

[data-step="8"] .lc-work {
  opacity: 0;
}

.demo-steps {
  list-style: none;
  margin: var(--s4) 0 0;
  padding: 0;
  display: grid;
  gap: var(--s2);
  counter-reset: demo;
}

.demo-steps li {
  position: relative;
  counter-increment: demo;
  padding-inline-start: var(--s6);
  color: var(--muted);
  font-size: 15px;
  transition: color 0.3s ease;
}

.demo-steps li::before {
  content: counter(demo);
  position: absolute;
  inset-inline-start: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.demo-steps li.on {
  color: #ffffff;
}

.demo-steps li.on::before {
  color: var(--accent-soft);
  background-color: var(--accent-tint);
  border-color: var(--accent-line);
}

.demo-steps b {
  font-weight: 600;
}

.demo-toggle {
  margin-top: var(--s3);
  min-height: 36px;
  padding: 0 var(--s4);
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background-color: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
}

.demo-toggle:hover {
  color: var(--accent-soft);
  border-color: var(--accent-line);
}

/* ---------- gentle entrances ---------- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-text > * {
  animation: rise 0.6s ease both;
}

.hero-text > :nth-child(2) { animation-delay: 0.06s; }
.hero-text > :nth-child(3) { animation-delay: 0.12s; }
.hero-text > :nth-child(4) { animation-delay: 0.18s; }
.hero-text > :nth-child(5) { animation-delay: 0.24s; }

.hero .figure {
  animation: rise 0.7s 0.2s ease both;
}

@keyframes breathe {
  50% {
    box-shadow: 0 0 40px rgba(84, 164, 219, 0.55);
  }
}

.canvas .work {
  animation: breathe 4s ease-in-out infinite;
}

/* site.js adds .js, then shows each .reveal as it scrolls into view */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (min-width: 760px) {
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .end-grid {
    grid-template-columns: 1.2fr 1fr;
  }

  .demo-steps {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--s4);
  }

  .demo-steps li {
    padding-inline-start: 0;
    padding-top: var(--s6);
  }

  .demo-steps li::before {
    top: 0;
  }
}

@media (min-width: 960px) {
  .demo-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
    gap: var(--s6);
    align-items: center;
  }

  .demo-steps {
    grid-template-columns: 1fr;
    gap: var(--s4);
    margin-top: 0;
  }

  .demo-steps li {
    padding-top: 0;
    padding-inline-start: var(--s6);
    font-size: 16px;
  }

  .demo-steps li::before {
    top: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

#sentEmail {
  white-space: normal;
  word-break: break-all;
}
