/* Display fonts load after the page is shown (io.js). Do not @import them here — that blocks first paint. */

:root {
  --bg: #fffcfb;
  --panel: #ffead3;
  --panel2: #fffcfb;
  --shell: #ffead3;
  --pink: #d25353;
  --pink2: #ea7b7b;
  --accent: #d25353;
  --text: #9e3b3b;
  --muted: #d25353;
  --line: rgba(158, 59, 59, 0.16);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  width: 100%;
}

html:has(body.io-page) {
  overflow-x: visible;
}

body.io-page {
  margin: 0;
  min-height: 100vh;
  overflow-x: visible;
  max-width: 100%;
  width: 100%;
  background: #fffcfb;
  color: var(--text);
  font-family: var(--font-site);
  line-height: 1.55;
}

.io-skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.io-skip:focus {
  clip: auto;
  clip-path: none;
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  margin: 0;
  padding: 10px 14px;
  background: var(--pink);
  color: #fffcfb;
  border-radius: 8px;
  z-index: 20;
  text-decoration: none;
}

.fonto-isolated {
  background:
    radial-gradient(circle at 12% 0%, rgba(234, 123, 123, 0.45), transparent 28%),
    linear-gradient(135deg, #fffcfb, #ffead3 60%, #fffcfb);
  box-sizing: border-box;
  min-height: 100dvh;
  max-width: 100%;
  overflow-x: visible;
  padding: clamp(24px, 4vw, 48px) clamp(16px, 3vw, 24px);
}

.io-back-wrap {
  position: relative;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1160px;
  margin: 0 auto 14px;
  min-width: 0;
  padding-bottom: 6px;
  pointer-events: none;
}

/* Let .io-back stick for the full page; short flex wrapper would limit sticky range */
body.io-page .io-back-wrap {
  display: contents;
}

body.io-page .fonto-isolated {
  display: grid;
  grid-template-columns: minmax(0, 1160px);
  justify-content: center;
}

body.io-page .io-back-wrap .lang-toggle {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  align-self: start;
  margin-bottom: 14px;
  pointer-events: auto;
}

body.io-page .fonto-isolated > main.page {
  grid-column: 1;
  grid-row: 2;
}

body.io-page .fonto-isolated > .io-contact-wrap {
  grid-column: 1;
  grid-row: 3;
}

.io-back-wrap > * {
  pointer-events: auto;
}

.io-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: calc(100% - 3.5rem);
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(158, 59, 59, 0.28);
  background: rgba(255, 252, 251, 0.92);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(158, 59, 59, 0.08);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

body.io-page .io-back {
  position: sticky;
  top: clamp(8px, 2vw, 16px);
  z-index: 51;
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  align-self: start;
  width: max-content;
  max-width: calc(100% - 4rem);
  margin-bottom: 14px;
  pointer-events: auto;
}

.io-back:hover {
  border-color: var(--pink);
  background: #fffcfb;
  transform: translateX(-2px);
}

html[dir="rtl"] .io-back:hover {
  transform: translateX(2px);
}

html[dir="rtl"] .io-back {
  flex-direction: row-reverse;
}

.io-back svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.fonto-isolated .page {
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: 0 32px 100px rgba(158, 59, 59, 0.12);
  border-radius: 32px 32px 0 0;
  padding-top: 15px;
  border: 1px solid var(--line);
  border-bottom: 0;
}

.fonto-isolated .hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 34px;
  padding: 56px;
  border-bottom: 1px solid var(--line);
}

.fonto-isolated .brand {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 34px;
}

.fonto-isolated .logo {
  width: 78px;
  height: 78px;
  display: block;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 16px 38px rgba(210, 83, 83, 0.28);
}

.fonto-isolated .brand-title {
  min-width: 166px;
  min-height: 70px;
  display: flex;
  align-items: center;
  font-family: var(--font-site);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 400;
  line-height: 1;
  color: #9e3b3b;
  letter-spacing: -0.02em;
  padding-top: 4px;
  white-space: nowrap;
  transition: opacity 0.06s ease;
}

html[lang="fa"] .fonto-isolated .brand-title {
  min-width: 148px;
  letter-spacing: 0;
  font-weight: 700;
  justify-content: flex-start;
}

.fonto-isolated .brand-title.is-flicker {
  opacity: 0.92;
}

@media (prefers-reduced-motion: reduce) {
  .fonto-isolated .brand-title {
    transition: none;
  }
}

.fonto-isolated .brand-sub {
  color: var(--pink2);
  font-size: 17px;
  margin-top: 6px;
  font-weight: 650;
}

.fonto-isolated .headline {
  font-size: clamp(1.75rem, 6vw, 2.8125rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0 0 18px;
  font-weight: 850;
  max-width: 660px;
}

.fonto-isolated .headline span {
  color: var(--pink);
}

.fonto-isolated .intro {
  color: var(--muted);
  font-size: 18px;
  max-width: 620px;
  margin: 0 0 20px;
}

.fonto-isolated .hero-list,
.fonto-isolated ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.fonto-isolated .hero-list {
  color: var(--text);
  max-width: 620px;
}

.fonto-isolated .hero-list li,
.fonto-isolated li {
  position: relative;
  padding-left: 22px;
}

.fonto-isolated .hero-list li::before,
.fonto-isolated li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 4px rgba(210, 83, 83, 0.16);
}

.fonto-isolated .visual-card {
  background: linear-gradient(145deg, #fffcfb, #ffead3);
  border: 1px solid var(--line);
  border-radius: 28px;
  min-height: 300px;
  padding: 6px;
  position: relative;
  overflow: hidden;
}

.fonto-isolated .visual-card::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -110px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234, 123, 123, 0.55), transparent 68%);
}

.fonto-isolated .screen {
  position: relative;
  z-index: 2;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: #ffead3;
  padding: 28px;
  height: 100%;
  min-height: 240px;
}

.fonto-isolated .proof-grid {
  margin-top: 0;
  display: grid;
  gap: 16px;
  min-height: 160px;
}

.fonto-isolated .proof-stat {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  min-height: 200px;
  padding: 20px 16px;
  border-radius: 22px;
  border: 1px solid rgba(158, 59, 59, 0.12);
  background: linear-gradient(180deg, #fffcfb, #ffead3);
}

.fonto-isolated .proof-wheat {
  position: absolute;
  inset: 0;
}

.fonto-isolated .proof-wheat img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  max-width: 100%;
  height: 100%;
  padding: 10px;
  transform: translate(-50%, -50%);
  object-fit: contain;
}

.fonto-isolated .proof-stores {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 12px;
}

.fonto-isolated .proof-stores img {
  width: 40px;
  height: auto;
}

.fonto-isolated .proof-value {
  position: relative;
  z-index: 1;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -1.3px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 8px;
  white-space: nowrap;
}

.fonto-isolated .proof-label {
  position: relative;
  z-index: 1;
  font-size: 15px;
  font-weight: 750;
  color: var(--muted);
}

.fonto-isolated .proof-stars {
  position: relative;
  z-index: 1;
  color: #ea7b7b;
  font-size: 27px;
  line-height: 1;
  letter-spacing: 4px;
  margin: 4px 0 12px;
  text-shadow: 0 8px 22px rgba(244, 182, 47, 0.2);
  white-space: nowrap;
}

.fonto-isolated .grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.fonto-isolated .block {
  padding: 34px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fonto-isolated .block:nth-child(2n) {
  border-right: 0;
}

.fonto-isolated .wide {
  grid-column: 1 / -1;
}

.fonto-isolated h2 {
  color: var(--pink);
  font-size: 20px;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.fonto-isolated .icon {
  width: 36px;
  height: 36px;
  border-radius: 13px;
  border: 1px solid rgba(210, 83, 83, 0.65);
  display: inline-grid;
  place-items: center;
  background: rgba(234, 123, 123, 0.18);
  flex: 0 0 auto;
}

.fonto-isolated .icon svg {
  width: 21px;
  height: 21px;
  stroke: var(--pink);
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fonto-isolated p {
  color: var(--muted);
  margin: 0 0 14px;
}

.fonto-isolated .section-lead {
  font-size: 24px;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.4px;
  margin-bottom: 10px;
}

.fonto-isolated .features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.fonto-isolated .feature {
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  min-height: 150px;
  position: relative;
  overflow: hidden;
}

.fonto-isolated .feature h3 {
  font-size: 15px;
  margin: 13px 0 8px;
}

.fonto-isolated .feature p {
  font-size: 13px;
  margin: 0;
}

.fonto-isolated .stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.fonto-isolated .stat {
  background: #fffcfb;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 0;
  min-height: 138px;
  display: flex;
  flex-direction: column;
  width: 100%;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.fonto-isolated .feature .mouse,
.fonto-isolated .stat .mouse {
  display: block;
  width: 300px;
  height: 300px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0;
  z-index: 0;
  transition: opacity 0.3s linear;
  background: radial-gradient(circle, rgba(234, 123, 123, 0.28) 0%, rgba(234, 123, 123, 0.12) 40%, transparent 70%);
}

.fonto-isolated .feature:hover .mouse,
.fonto-isolated .stat:hover .mouse {
  opacity: 1;
}

.fonto-isolated .stat strong {
  display: block;
  font-size: 28px;
  color: var(--pink);
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -1px;
}

.fonto-isolated .stat span {
  color: var(--muted);
}

.fonto-isolated .footer {
  padding: 34px 42px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  background: linear-gradient(90deg, #ffead3, #fffcfb);
}

.fonto-isolated .cta {
  font-size: 30px;
  line-height: 1.15;
  font-weight: 850;
  letter-spacing: -1px;
}

.fonto-isolated .cta span {
  color: var(--pink);
}

.fonto-isolated .links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.fonto-isolated .links a {
  color: #9e3b3b;
  text-decoration: none;
  border: 1px solid var(--line);
  background: #fffcfb;
  padding: 13px 18px;
  border-radius: 999px;
  font-weight: 800;
}

.fonto-isolated .links a:first-child {
  background: linear-gradient(135deg, var(--pink), #9e3b3b);
  color: #fffcfb;
  border-color: transparent;
}

.io-contact-wrap {
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
  background: var(--shell);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 32px 32px;
  padding: 20px 20px 40px;
  box-sizing: border-box;
}

.io-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.io-contact-wrap .collab-title {
  margin-bottom: 24px;
}

html[dir="rtl"] .fonto-isolated h2 {
  text-transform: none;
  letter-spacing: 0;
}

.collab-lead {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #9e3b3b;
  margin: 0 0 18px;
  line-height: 1.2;
}

.collab-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.collab-list li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
  font-weight: 500;
}

.collab-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 3px rgba(210, 83, 83, 0.2);
}

html[dir="rtl"] .fonto-isolated .hero-list li,
html[dir="rtl"] .fonto-isolated li {
  padding-left: 0;
  padding-right: 22px;
}

html[dir="rtl"] .fonto-isolated .hero-list li::before,
html[dir="rtl"] .fonto-isolated li::before {
  left: auto;
  right: 0;
}

html[dir="rtl"] .collab-list li {
  padding-left: 0;
  padding-right: 26px;
}

html[dir="rtl"] .collab-list li::before {
  left: auto;
  right: 0;
}

.io-form {
  margin: 20px;
}

.io-form label {
  display: block;
  margin-bottom: 10px;
}

.io-form select,
.io-form input,
.io-form textarea {
  width: 100%;
  color: #9e3b3b;
  background: #fffcfb;
  border: 1px solid rgba(234, 123, 123, 0.7);
  border-radius: 15px;
  padding: 14px 16px;
  font: inherit;
}

.io-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23d25353' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
  padding-right: 40px;
}

html[dir="rtl"] .io-form select {
  background-position: left 16px center;
  padding-right: 16px;
  padding-left: 40px;
  text-align: right;
  direction: rtl;
}

.io-form textarea {
  min-height: 120px;
  resize: vertical;
}

.io-form button {
  width: 100%;
  margin-top: 4px;
  border: 0;
  border-radius: 15px;
  padding: 14px 18px;
  background: var(--accent);
  color: #fffcfb;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.io-form button:hover {
  filter: brightness(1.05);
}

.io-form-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  min-height: 1.2em;
}

.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 (max-width: 960px) {
  .fonto-isolated .hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: clamp(20px, 5vw, 34px);
  }

  .fonto-isolated .grid {
    grid-template-columns: 1fr;
  }

  .fonto-isolated .footer {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: clamp(20px, 5vw, 34px);
  }

  .io-contact-grid {
    grid-template-columns: 1fr;
  }

  .fonto-isolated .features,
  .fonto-isolated .stats {
    grid-template-columns: 1fr;
  }

  .fonto-isolated .proof-value {
    font-size: 31px;
  }

  .fonto-isolated .block {
    border-right: 0;
    padding: clamp(20px, 5vw, 34px);
  }

  .fonto-isolated .links {
    justify-content: flex-start;
  }

  .fonto-isolated .cta {
    font-size: clamp(1.35rem, 5vw, 1.875rem);
  }

  .fonto-isolated .section-lead {
    font-size: clamp(1.1rem, 4vw, 1.5rem);
  }

  .collab-lead {
    font-size: clamp(1.25rem, 5vw, 1.5rem);
  }

  .fonto-isolated .page,
  .io-contact-wrap {
    border-radius: 20px 20px 0 0;
  }

  .io-contact-wrap {
    border-radius: 0 0 20px 20px;
    padding: clamp(16px, 4vw, 20px) clamp(12px, 4vw, 20px) 32px;
  }
}

@media (max-width: 500px) {
  body.io-page .fonto-isolated {
    padding: 12px 10px 20px;
  }

  .io-back {
    padding: 8px 12px;
    font-size: 13px;
  }

  .fonto-isolated .brand {
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
  }

  .fonto-isolated .brand-title {
    min-width: 0;
    white-space: normal;
    font-size: clamp(1.65rem, 8vw, 2.25rem);
  }

  .fonto-isolated .screen {
    padding: 18px;
    min-height: 200px;
  }

  .fonto-isolated .proof-stat {
    min-height: 160px;
    padding: 16px 12px;
  }

  .fonto-isolated .proof-value {
    font-size: 20px;
    white-space: normal;
  }

  .fonto-isolated .proof-label {
    font-size: 12px;
    line-height: 1.3;
  }

  .fonto-isolated .proof-stores img {
    width: 30px;
  }

  .fonto-isolated .proof-stars {
    font-size: 14px;
    letter-spacing: 0;
    white-space: normal;
  }

  .fonto-isolated .stat strong {
    font-size: clamp(1.25rem, 6vw, 1.75rem);
  }

  .io-form {
    margin: 0;
  }

  .fonto-isolated h2 {
    font-size: 1rem;
    flex-wrap: wrap;
  }
}
