@font-face {
  font-family: "Vazirmatn";
  src: url("/assets/vazirmatn-v33.003.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f4f5f0;
  --white: #fff;
  --ink: #172d36;
  --muted: #627369;
  --line: #e3e9e3;
  --teal: #087f73;
  --teal-deep: #056659;
  --teal-pale: #eaf6f1;
  --amber: #a36b17;
  --amber-pale: #fff4dc;
  --danger: #a83e3e;
  font-family: "Vazirmatn", Tahoma, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
body {
  margin: 0; min-width: 320px; min-height: 100vh;
  background: radial-gradient(ellipse at 86% 0%, #e5f0e9 0, transparent 33rem), var(--paper);
  color: var(--ink); font-size: 15px; line-height: 1.85;
}
button, input { font: inherit; }
button { color: inherit; -webkit-tap-highlight-color: transparent; }
button, label { touch-action: manipulation; }
::selection { background: #c6ece0; color: #173b32; }
.topbar {
  width: min(100% - 64px, 1080px); height: 84px; margin: auto;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid #dce5dc;
}
.brand { display: inline-flex; gap: 11px; align-items: center; color: var(--ink); text-decoration: none; }
.brand-mark {
  width: 41px; height: 41px; display: grid; place-items: center; color: white;
  border-radius: 14px; background: var(--teal);
  box-shadow: 0 5px 13px #087f731b, inset 0 1px 0 #ffffff25;
}
.brand-mark svg { width: 29px; height: 29px; }
.brand-name { font-size: 21px; font-weight: 850; }
.topbar-note { display: inline-flex; gap: 7px; align-items: center; color: #627770; font-size: 12px; }
.privacy-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px #087f730a; }
.page-shell { width: min(100% - 40px, 800px); margin: auto; }
.intro { padding: 42px 0 28px; text-align: center; }
.eyebrow { display: inline-flex; gap: 9px; align-items: center; margin: 0 0 12px; color: #4c7066; font-size: 12px; font-weight: 650; }
.eyebrow-line { width: 19px; height: 2px; background: #c5964c; border-radius: 2px; }
h1 { margin: 0; font-size: clamp(35px, 5.5vw, 49px); font-weight: 850; line-height: 1.38; letter-spacing: -.65px; }
h1 span { color: var(--teal); }
.intro-copy { margin: 13px auto 0; color: #687c74; font-size: 14px; line-height: 1.95; }
.intro-note {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; padding: 4px 12px;
  border: 1px solid #d9e8dc; background: #fafcf8; border-radius: 100px; color: #587165; font-size: 11.5px;
}
.intro-note > span { color: var(--teal); font-weight: 800; }
.converter-card {
  position: relative; margin: 0; padding: 34px 38px 30px; border: 1px solid #dce5de;
  border-top: 3px solid #a6caba; border-radius: 23px; background: var(--white);
  box-shadow: 0 22px 58px #23392d08, 0 3px 9px #23392d03;
}
.step-heading { display: flex; align-items: flex-start; gap: 13px; }
.step-heading > div { min-width: 0; }
.step-number {
  flex: 0 0 31px; width: 31px; height: 31px; display: grid; place-items: center;
  border-radius: 10px; background: #eef5ee; color: #557864; font-size: 14px; font-weight: 750; line-height: 1;
}
.field-label { display: block; margin: 0; font-size: 17px; font-weight: 800; line-height: 1.85; }
.field-hint { margin: 2px 0 0; color: var(--muted); font-size: 12px; line-height: 1.95; }
.input-wrap {
  display: flex; align-items: center; gap: 11px; min-height: 63px; margin-top: 17px;
  margin-inline-start: 44px; padding: 0 16px; border: 1.5px solid #dbe4dd;
  border-radius: 13px; background: #fafcf9;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.input-wrap:focus-within { border-color: var(--teal); background: white; box-shadow: 0 0 0 4px #087f730d; }
.input-icon { flex: 0 0 21px; width: 21px; height: 21px; color: #7c9489; }
.input-wrap input {
  width: 100%; min-width: 0; height: 60px; padding: 0; outline: 0; border: 0; background: transparent;
  text-align: left; color: #234439; font-family: "Vazirmatn", Tahoma, sans-serif; font-size: 15px;
}
.input-wrap input::placeholder { color: #9baea3; }
.input-lock { flex: 0 0 23px; width: 23px; display: grid; place-items: center; color: #a5b4aa; }
.input-lock svg { width: 17px; height: 17px; }
.connection-note { margin: 18px 0 0; margin-inline-start: 44px; color: #6c7d70; font-size: 11px; line-height: 1.9; }
.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 26px; margin-inline-start: 44px; }
.convert-button {
  display: inline-flex; gap: 11px; align-items: center; justify-content: center; min-width: 196px; min-height: 53px; padding: 0 22px;
  border: 1px solid #087366; border-radius: 12px; color: white; background: #087f73;
  box-shadow: 0 6px 16px #087f7317, inset 0 1px 0 #ffffff15;
  font-size: 14px; font-weight: 750; cursor: pointer;
  transition: background .18s, transform .18s, box-shadow .18s;
}
.convert-button:hover { background: #056659; transform: translateY(-1px); box-shadow: 0 9px 20px #087f7325; }
.convert-button:disabled { opacity: .66; cursor: wait; transform: none; }
.convert-button svg { width: 18px; height: 18px; transform: rotate(180deg); }
form[aria-busy="true"] .convert-button svg { display: none; }
form[aria-busy="true"] .convert-button::after { content: ""; width: 15px; height: 15px; border: 2px solid #ffffff55; border-top-color: white; border-radius: 50%; animation: loading-spin .7s linear infinite; }
@keyframes loading-spin { to { transform: rotate(360deg); } }
.convert-button:focus-visible, .copy-button:focus-visible, .result-url:focus-visible { outline: 3px solid #087f7333; outline-offset: 3px; }
.secure-note { display: inline-flex; gap: 5px; align-items: center; color: #87948a; font-size: 11px; }
.secure-note svg { width: 15px; height: 15px; color: #6b9881; }
.status-message { min-height: 0; margin: 0; margin-inline-start: 44px; color: var(--danger); font-size: 12px; line-height: 1.9; }
.status-message:not(:empty) { margin-top: 12px; padding: 9px 12px; border-radius: 9px; background: #fdf3f2; }
.status-message[data-kind="success"] { color: #347558; background: #f0f8f1; }
.results { margin-top: 27px; padding-top: 23px; border-top: 1px dashed #d7e4da; }
.results[hidden] { display: none; }
.results-heading { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.results-heading > div { min-width: 0; }
.result-step-number { background: #eaf6ef; color: var(--teal); }
.results-heading h2 { margin: 0; font-size: 17px; font-weight: 800; }
.results-heading p { margin: 1px 0 0; color: #859389; font-size: 11.5px; }
.result-list { display: grid; gap: 11px; margin-inline-start: 44px; }
.result-row { min-width: 0; padding: 14px 15px; border: 1px solid #e0e8e2; border-radius: 13px; background: #fbfdfb; }
.result-meta { display: flex; gap: 8px; align-items: center; margin-bottom: 7px; }
.result-index { font-size: 13px; font-weight: 800; color: #426350; }
.result-kind { font-size: 10.5px; padding: 1px 8px; border-radius: 100px; color: #6d8475; background: #edf3ed; }
.result-special .result-kind { color: #9c772f; background: #fff2d6; }
.result-action { display: flex; gap: 10px; align-items: center; min-width: 0; }
.result-url {
  display: block; flex: 1; min-width: 0; height: 42px; padding: 8px 9px; border: 1px solid #e7eee8; border-radius: 8px;
  background: white; outline: 0; color: #4f7562; font-family: "Vazirmatn", Tahoma, sans-serif; font-size: 12px; text-align: left;
}
.copy-button {
  display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; gap: 6px; min-width: 91px; min-height: 44px;
  padding: 0 11px; border: 1px solid #cbded1; border-radius: 8px; background: #f4faf4; color: #437354;
  font-size: 11.5px; font-weight: 650; cursor: pointer; transition: background .15s, border-color .15s;
}
.copy-button:hover, .copy-button.copied { background: #e2f3e7; border-color: #a8cdb1; }
.copy-button svg { width: 16px; height: 16px; }
.page-footer { display: flex; gap: 7px; justify-content: center; align-items: center; margin: 24px 0 32px; color: #839386; text-align: center; }
.page-footer p { margin: 0; font-size: 11.5px; }
.footer-mark { color: #b79354; font-size: 16px; }
.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; }
@media (min-width: 1200px) { .intro { padding-top: 47px; } }
@media (max-width: 650px) {
  .topbar { width: calc(100% - 36px); height: 67px; }
  .brand-name { font-size: 19px; }
  .brand-mark { width: 36px; height: 36px; border-radius: 12px; }
  .topbar-note { font-size: 10.5px; }
  .page-shell { width: calc(100% - 28px); max-width: 520px; }
  .intro { padding: 30px 0 24px; }
  h1 { font-size: 36px; }
  .intro-copy { font-size: 12px; line-height: 1.95; }
  .intro-note { font-size: 10.5px; margin-top: 12px; }
  .converter-card { padding: 24px 20px; border-radius: 19px; }
  .field-label { font-size: 15.5px; }
  .field-hint { font-size: 11.5px; }
  .input-wrap, .connection-note, .submit-row, .status-message, .result-list { margin-inline-start: 0; }
  .input-wrap { margin-top: 15px; padding: 0 12px; min-height: 59px; }
  .input-wrap input { height: 56px; font-size: 14px; }
  .submit-row { margin-top: 21px; gap: 12px; }
  .convert-button { width: 100%; min-height: 53px; }
  .secure-note { margin: auto; font-size: 10px; }
  .results-heading { gap: 10px; flex-wrap: wrap; }
  .results-heading h2 { font-size: 15px; }
  .results-heading p { font-size: 10.5px; }
  .result-list { gap: 10px; }
  .result-row { padding: 12px; }
  .result-url { font-size: 11px; }
  .copy-button { min-width: 80px; padding: 0 8px; font-size: 10.5px; }
  .page-footer { margin: 20px 6px 27px; align-items: flex-start; }
  .page-footer p { font-size: 10.5px; }
}
@media (max-width: 370px) {
  h1 { font-size: 32px; }
  .converter-card { padding: 22px 16px; }
  .result-action { gap: 7px; }
  .copy-button { min-width: 74px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
