:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --border: #ece6de;
  --border-strong: #d6cfc5;
  --text: #1c1410;
  --text-muted: #57534e;
  --accent: #ea580c;
  --accent-soft: #fff7ed;
  --accent-border: #fed7aa;
  --shadow: 0 1px 2px rgba(28, 20, 16, 0.04), 0 6px 18px rgba(28, 20, 16, 0.05);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.topbar {
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: block;
}

.brand-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.privacy-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border: 1px dashed var(--border-strong);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
}

.privacy-pill svg {
  color: #16a34a;
  flex-shrink: 0;
}

.lang-picker {
  position: relative;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.lang-toggle:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.lang-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.lang-toggle svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.lang-chevron {
  transition: transform 0.15s ease;
}

.lang-toggle[aria-expanded="true"] .lang-chevron {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  min-width: 196px;
  max-height: 320px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(28, 20, 16, 0.14);
  z-index: 50;
}

.lang-menu[hidden] {
  display: none;
}

.lang-divider {
  height: 1px;
  margin: 4px 6px;
  background: var(--border);
}

.lang-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  text-align: start;
  cursor: pointer;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.lang-option:hover {
  background: var(--accent-soft);
}

.lang-option.is-active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

.lang-option-code {
  min-width: 34px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.lang-option.is-active .lang-option-code {
  color: var(--accent);
}

.main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 30px 24px 32px;
}

.hero {
  margin-bottom: 26px;
}

.hero h1 {
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 8px;
}

.hero p {
  font-size: 15px;
  color: var(--text-muted);
}

.steps-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.step-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px 16px 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.step-num {
  position: absolute;
  top: -11px;
  inset-inline-start: 16px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 3px #ffffff, 0 4px 10px rgba(234, 88, 12, 0.3);
}

.shot-frame {
  background: linear-gradient(180deg, var(--accent-soft) 0%, #ffffff 100%);
  border: 1px solid var(--accent-border);
  border-radius: 12px;
  padding: 6px;
  margin-bottom: 16px;
}

.shot-frame img,
.shot-frame .step-art {
  display: block;
  width: 100%;
  height: auto;
}

/* Calm micro-animations for the step illustrations (no bouncing/jumping arrows). */
.step-art text {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.step-art .ring { transform-box: fill-box; transform-origin: center; animation: ring-glow 2.2s ease-out infinite; }
.step-art .ring.late { animation-delay: 1.1s; }
.step-art .dash { stroke-dasharray: 5 4; animation: dash-flow 1.1s linear infinite; }
.step-art .dash-slow { stroke-dasharray: 6 4; animation: dash-flow 1.8s linear infinite; }
.step-art .file-drift { transform-box: fill-box; transform-origin: center; animation: file-drift 3.2s ease-in-out infinite; }
.step-art .chip-hl { opacity: 0; animation: chip-cycle 3.6s ease-in-out infinite; }
.step-art .chip-hl.c2 { animation-delay: 1.2s; }
.step-art .chip-hl.c3 { animation-delay: 2.4s; }
.step-art .soft-glow { animation: soft-glow 2.2s ease-in-out infinite; }
.step-art .soft-glow.late { animation-delay: 1.1s; }
.step-art .drop-glow { animation: drop-glow 3.2s ease-in-out infinite; }

@keyframes ring-glow {
  0% { transform: scale(0.95); opacity: 0.9; }
  75%, 100% { transform: scale(1.75); opacity: 0; }
}
@keyframes dash-flow { to { stroke-dashoffset: -18; } }
@keyframes file-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  45%, 65% { transform: translate(38px, -10px) scale(0.95); }
}
@keyframes chip-cycle {
  0% { opacity: 0; }
  8%, 32% { opacity: 1; }
  42%, 100% { opacity: 0; }
}
@keyframes soft-glow {
  0%, 100% { opacity: 0.72; }
  50% { opacity: 1; }
}
@keyframes drop-glow {
  0%, 100% { fill-opacity: 0.2; }
  45%, 65% { fill-opacity: 0.75; }
}

.step-card h2 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.step-card p {
  font-size: 14px;
  color: var(--text-muted);
}

.tip {
  margin-top: 22px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--accent-border);
  border-radius: 16px;
  background: linear-gradient(90deg, var(--accent-soft) 0%, #ffffff 70%);
}

.tip-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid var(--accent-border);
  background: #ffffff;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tip-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}

.tip-body {
  font-size: 13.5px;
  color: var(--text-muted);
}

[dir="rtl"] .tip {
  background: linear-gradient(270deg, var(--accent-soft) 0%, #ffffff 70%);
}

.shot-frame {
  direction: ltr;
}

@media (max-width: 900px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

.brand-name,
.privacy-pill {
  white-space: nowrap;
}

@media (max-width: 480px) {
  .topbar-inner {
    padding: 12px 16px;
    gap: 10px;
  }

  .brand-name {
    font-size: 14px;
  }

  .topbar-actions {
    gap: 6px;
  }

  .privacy-pill {
    padding: 4px 9px;
    font-size: 11.5px;
  }

  .lang-toggle {
    padding: 4px 9px;
    font-size: 11.5px;
  }

  .pill-extra {
    display: none;
  }
}
