/* The website on ibonche.ir. Brand: stone #15181C, orange #FF5500 (#C24100 on light ground for contrast), white; the app's own font and tones. */

@font-face {
  font-family: 'Vazirmatn';
  src: url('/fonts/Vazirmatn-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --stone: #15181c;
  --stone-2: #1f2328;
  --orange: #ff5500;
  --bg: #f4f5f6;
  --surface: #ffffff;
  --surface-2: #eef0f2;
  --ink: #15181c;
  --ink-2: #474d55;
  --line: #e2e5e8;
  --accent: #c24100;
  --accent-soft: #fdf0e9;
  --good: #006300;
  --bad: #b3261e;
  --t1: #2a78d6;
  --t2: #eb6834;
  --t3: #1baf7a;
  --t4: #eda100;
  --t5: #e87ba4;
  --t6: #008300;
  --t7: #6250d6;
  --t8: #e34948;
  --radius: 18px;
  --shadow: 0 1px 2px rgb(21 24 28 / 6%), 0 8px 24px rgb(21 24 28 / 6%);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #15181c;
    --surface: #1b1f24;
    --surface-2: #23282e;
    --ink: #f4f5f6;
    --ink-2: #c3c8ce;
    --line: #2a2f36;
    --accent: #ff5500;
    --accent-soft: #3a1e10;
    --good: #0ca30c;
    --bad: #e66767;
    --t1: #3987e5;
    --t2: #d95926;
    --t3: #199e70;
    --t4: #c98500;
    --t5: #d55181;
    --t6: #0ca30c;
    --t7: #9085e9;
    --t8: #e66767;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Vazirmatn', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.85;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  line-height: 1.45;
  margin: 0;
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 20px;
}

.wrap-narrow {
  max-width: 760px;
}

.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  z-index: 20;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--orange);
  color: var(--stone);
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 22px;
  border: 1.5px solid transparent;
  border-radius: 14px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--orange);
  color: var(--stone);
}

.btn-primary:hover {
  background: #ff6a1f;
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: progress;
}

.btn-ghost {
  border-color: rgb(255 255 255 / 35%);
  color: #fff;
}

.btn-ghost:hover {
  border-color: rgb(255 255 255 / 70%);
  background: rgb(255 255 255 / 6%);
}

/* Header and hero: one stone band */

.band {
  position: relative;
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgb(255 85 0 / 22%), transparent 60%),
    radial-gradient(40rem 26rem at 0% 110%, rgb(255 85 0 / 10%), transparent 60%),
    var(--stone);
  color: #fff;
}

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(21 24 28 / 88%);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid rgb(255 255 255 / 8%);
  color: #fff;
}

.top-row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-size: 1.3rem;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: auto;
}

.top-nav {
  display: flex;
  gap: 4px;
  margin-inline-start: auto;
}

.top-nav a {
  padding: 6px 12px;
  border-radius: 10px;
  color: rgb(255 255 255 / 80%);
  font-size: 0.95rem;
  text-decoration: none;
}

.top-nav a:hover {
  background: rgb(255 255 255 / 8%);
  color: #fff;
}

.top-login {
  min-height: 40px;
  padding: 6px 16px;
}

@media (max-width: 760px) {
  .top-nav {
    display: none;
  }

  .top-login {
    margin-inline-start: auto;
  }
}

.hero {
  padding-block: 56px 72px;
}

.hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero h1 span {
  color: var(--orange);
}

.lead {
  margin-top: 18px;
  max-width: 36rem;
  color: rgb(255 255 255 / 82%);
  font-size: 1.1rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero .note {
  margin-top: 16px;
  color: rgb(255 255 255 / 62%);
  font-size: 0.9rem;
}

.hero-phone {
  width: 290px;
}

@media (max-width: 860px) {
  .hero {
    padding-block: 36px 48px;
  }

  .hero-row {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-phone {
    width: min(260px, 72vw);
    margin-inline: auto;
  }
}

@media (max-width: 400px) {
  .actions .btn {
    flex: 1 1 100%;
  }
}

/* A phone with a picture of the app in it */

.phone {
  margin: 0;
  padding: 9px;
  border-radius: 38px;
  background: #0b0d0f;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 10%), 0 24px 60px rgb(0 0 0 / 35%);
}

.phone img {
  width: 100%;
  height: auto;
  border-radius: 30px;
}

/* Sections */

.section {
  padding-block: 64px;
}

.section-alt {
  background: var(--surface-2);
}

.section h2 {
  font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2rem);
  font-weight: 800;
}

.section-note {
  margin-top: 8px;
  max-width: 44rem;
  color: var(--ink-2);
}

@media (max-width: 600px) {
  .section {
    padding-block: 44px;
  }
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.feature {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.feature h3 {
  margin-top: 14px;
  font-size: 1.08rem;
  font-weight: 800;
}

.feature p {
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 0.95rem;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--tone) 14%, transparent);
  color: var(--tone);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tone-1 { --tone: var(--t1); }
.tone-2 { --tone: var(--t2); }
.tone-3 { --tone: var(--t3); }
.tone-4 { --tone: var(--t4); }
.tone-5 { --tone: var(--t5); }
.tone-6 { --tone: var(--t6); }
.tone-7 { --tone: var(--t7); }
.tone-8 { --tone: var(--t8); }

/* Pictures: a row that scrolls sideways on a phone */

.shots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.shots li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.shots .phone {
  width: 100%;
  max-width: 250px;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 6%), 0 14px 36px rgb(21 24 28 / 18%);
}

.shots span {
  color: var(--ink-2);
  font-size: 0.95rem;
  font-weight: 600;
}

@media (max-width: 900px) {
  .shots {
    display: flex;
    gap: 16px;
    margin-inline: -20px;
    padding: 4px 20px 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .shots li {
    flex: 0 0 min(62vw, 230px);
    scroll-snap-align: center;
  }
}

/* Install guide */

.install {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
  margin-top: 28px;
}

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 800;
}

.card ol {
  margin: 12px 0 0;
  padding-inline-start: 1.6em;
  list-style-type: persian;
}

.card li {
  padding-block: 4px;
}

.card li::marker {
  color: var(--accent);
  font-weight: 800;
}

/* Questions */

.faq {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.faq summary {
  position: relative;
  padding: 16px 20px;
  padding-inline-end: 52px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '';
  position: absolute;
  inset-inline-end: 22px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-inline-end: 2px solid var(--ink-2);
  border-bottom: 2px solid var(--ink-2);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: translateY(-25%) rotate(-135deg);
}

.faq details p {
  padding: 0 20px 18px;
  color: var(--ink-2);
}

/* The invitation form */

.invite {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  text-align: start;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}

.field input[dir='ltr'] {
  text-align: right;
}

.field input[dir='ltr']:placeholder-shown {
  direction: ltr;
}

.field-invalid input,
.field-invalid textarea {
  border-color: var(--bad);
}

.field-error {
  color: var(--bad);
  font-size: 0.88rem;
}

/* Kept out of sight and out of the tab order: only a robot fills it. */
.field-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.form-message:empty {
  display: none;
}

.form-message {
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 600;
}

.form-message.ok {
  background: color-mix(in srgb, var(--good) 12%, transparent);
  color: var(--good);
}

.form-message.error {
  background: color-mix(in srgb, var(--bad) 12%, transparent);
  color: var(--bad);
}

.invite .btn-primary {
  justify-self: start;
}

.invite .note {
  color: var(--ink-2);
  font-size: 0.88rem;
}

@media (max-width: 480px) {
  .invite .btn-primary {
    justify-self: stretch;
  }
}

/* Privacy and other text pages */

.page {
  padding-block: 48px 64px;
}

.page h1 {
  font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem);
  font-weight: 800;
}

.page .lead {
  color: var(--ink-2);
}

.page section {
  margin-top: 32px;
}

.page h2 {
  font-size: 1.25rem;
  font-weight: 800;
}

.page section p,
.page section ul {
  margin-top: 8px;
  color: var(--ink-2);
}

.page section ul {
  padding-inline-start: 1.3em;
}

.page section li {
  padding-block: 3px;
}

.updated {
  margin-top: 40px;
  color: var(--ink-2);
  font-size: 0.88rem;
}

.lost {
  padding-block: 88px;
  text-align: center;
}

.lost h1 {
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem);
  font-weight: 800;
}

.lost p {
  margin-top: 10px;
  color: var(--ink-2);
}

.lost .actions {
  justify-content: center;
}

.lost .btn-ghost {
  border-color: var(--line);
  color: var(--ink);
}

/* Footer */

.foot {
  padding-block: 28px;
  background: var(--stone);
  color: rgb(255 255 255 / 75%);
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-small {
  font-size: 1.05rem;
  color: #fff;
}

.brand-small img {
  width: 28px;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.foot a {
  color: rgb(255 255 255 / 80%);
  text-decoration: none;
}

.foot a:hover {
  color: #fff;
  text-decoration: underline;
}
