/* Pejvak landing. Colours, radii and type are the webapp's tokens (pejvak-webapp/src/app/styles.css). */

@font-face {
  font-family: 'Vazirmatn Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/vazirmatn-arabic-wght-normal.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E,
    U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Vazirmatn Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/vazirmatn-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;

  --accent: #1f6fd1;
  --accent-hover: #1858a8;
  --accent-strong: #14467f;
  --accent-soft: #e6effa;
  --accent-subtle: #f3f8fe;
  --accent-line: #c9dcf3;

  --ink: #111c2a;
  --ink-secondary: #4e5a6b;
  --ink-muted: #5b6778;

  --canvas: #f2f4f7;
  --surface: #ffffff;
  --sunken: #eef1f5;

  --line: #d5dbe3;
  --line-subtle: #e3e7ed;
  --line-strong: #b9c2ce;

  --success: #12805c;
  --success-strong: #0e6b4b;
  --success-soft: #e3f4ec;

  /* One radius system: buttons 14, cards 20, panels 28, pills full. */
  --r-button: 14px;
  --r-card: 20px;
  --r-panel: 28px;

  --shadow-screen: 0 24px 48px -28px rgb(17 28 42 / 0.45);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 4rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: 'Vazirmatn Variable', Tahoma, sans-serif;
  font-size: 1rem;
  line-height: normal;
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

a {
  color: inherit;
}

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

.sprite {
  display: none;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wrap {
  width: min(100% - 2rem, 73.75rem);
  margin-inline: auto;
}

.skip {
  position: absolute;
  inset-inline-start: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.75rem 1rem;
  border-radius: var(--r-button);
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.skip:focus {
  top: 0.75rem;
}

/* ---- Buttons (the webapp's Button: primary / secondary, 14 px radius) ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding-inline: 1.25rem;
  border: 1.5px solid transparent;
  border-radius: var(--r-button);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.2s,
    border-color 0.2s,
    transform 0.1s;
}
.btn:active {
  transform: translateY(1px);
}
.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover {
  background: var(--accent-hover);
}
.btn--secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}
.btn--secondary:hover {
  border-color: var(--line-strong);
}
.btn--light {
  background: #fff;
  color: var(--accent-strong);
}
.btn--light:hover {
  background: var(--accent-subtle);
}
.btn--lg {
  min-height: 3.375rem;
  padding-inline: 2rem;
  font-size: 1rem;
}
.btn--sm {
  min-height: 2.75rem;
  padding-inline: 1rem;
  font-size: 0.875rem;
  border-radius: 12px;
}

/* ---- Header ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line-subtle);
  background: rgb(242 244 247 / 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.25rem;
  font-weight: 800;
  text-decoration: none;
}
.nav {
  display: none;
}
.nav a {
  padding: 0.625rem 0.875rem;
  border-radius: 12px;
  color: var(--ink-secondary);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    color 0.2s,
    background-color 0.2s;
}
.nav a:hover {
  background: var(--sunken);
  color: var(--ink);
}
.header-actions {
  display: flex;
  gap: 0.5rem;
  margin-inline-start: auto;
}
.header-cta {
  display: none;
}

/* ---- Hero ---- */

.hero {
  padding-block: 2rem 0;
}
.hero-grid {
  display: grid;
  gap: 2.5rem;
}
.gift {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success-strong);
  font-size: 0.875rem;
  font-weight: 800;
}
.gift .icon {
  width: 1.125rem;
  height: 1.125rem;
}
h1 {
  margin-block: 1.25rem 1rem;
  font-size: clamp(2rem, 1.2rem + 3.4vw, 3.25rem);
  font-weight: 900;
  line-height: 1.35;
  text-wrap: balance;
}
.lead {
  max-width: 34rem;
  color: var(--ink-secondary);
  font-size: 1.0625rem;
  line-height: 1.9;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.hero-actions .btn {
  flex: 1 1 9rem;
}

.hero-visual {
  position: relative;
  isolation: isolate;
  display: flex;
  justify-content: center;
  height: 26rem;
  padding-top: 2.5rem;
  overflow: hidden;
  border-radius: var(--r-panel);
  background: var(--accent);
}
/* The logo's dot and arcs, large and faint: Pejvak = echo. */
.arcs {
  position: absolute;
  z-index: -1;
  top: 50%;
  inset-inline-start: 50%;
  width: 46rem;
  height: 46rem;
  translate: 50% -50%;
  fill: none;
  stroke: #fff;
  stroke-width: 1.6;
  stroke-linecap: round;
  opacity: 0.13;
}
.arcs circle {
  fill: #fff;
  stroke: none;
}
.phone {
  flex-shrink: 0;
  align-self: flex-start;
  width: 15rem;
  overflow: hidden;
  border: 0.5rem solid var(--ink);
  border-radius: 2.5rem;
  background: var(--canvas);
  box-shadow: 0 40px 80px -30px rgb(10 20 40 / 0.6);
}

/* ---- Sections ---- */

.section {
  padding-block: 4rem;
}
.section--tight {
  padding-block: 1rem;
}
.section-head {
  max-width: 42rem;
  margin-bottom: 2rem;
}
h2 {
  font-size: clamp(1.625rem, 1.2rem + 1.8vw, 2.375rem);
  font-weight: 800;
  line-height: 1.4;
  text-wrap: balance;
}
.section-head p {
  margin-top: 0.75rem;
  color: var(--ink-secondary);
  font-size: 1.0625rem;
  line-height: 1.9;
}

/* ---- Features bento: forward (wide), schedule (tall, tinted), directory, accounts ---- */

.bento {
  display: grid;
  gap: 1rem;
}
.cell {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
  padding: 1.5rem 1.5rem 0;
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--surface);
}
.cell--schedule {
  background: var(--accent-soft);
}
.cell-icon {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}
.cell--schedule .cell-icon {
  background: var(--surface);
}
.cell h3 {
  margin-block: 1rem 0.5rem;
  font-size: 1.3125rem;
  font-weight: 800;
  line-height: 1.5;
}
.cell-text p {
  max-width: 34rem;
  color: var(--ink-secondary);
  font-size: 0.9375rem;
  line-height: 1.9;
}
.cell-text .cell-note {
  margin-top: 0.75rem;
  color: var(--accent-strong);
  font-weight: 700;
}
.checks {
  display: grid;
  gap: 0.625rem;
  margin-top: 1.25rem;
  font-size: 0.9375rem;
}
.checks li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.checks .icon {
  width: 1.5rem;
  height: 1.5rem;
  padding: 0.25rem;
  border-radius: 8px;
  background: var(--success-soft);
  color: var(--success);
  stroke-width: 2.4;
}

/* A product screen peeking up from the bottom edge of its cell. */
.cell-visual {
  position: relative;
  height: 17rem;
  margin-top: auto;
  overflow: hidden;
  overflow: clip; /* hidden still lets find-in-page or focus scroll it */
}
.screen {
  max-width: 22rem;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--line-subtle);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  background: var(--canvas);
  box-shadow: var(--shadow-screen);
}
.cell-visual--pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.screen--second {
  display: none;
}

.stickers {
  display: flex;
  justify-content: center;
}
.stickers picture {
  width: 7.5rem;
}
.stickers picture + picture {
  margin-inline-start: -1.25rem;
}
.stickers img {
  filter: drop-shadow(0 10px 14px rgb(17 28 42 / 0.12));
}
.stickers picture:nth-child(1) {
  rotate: 6deg;
}
.stickers picture:nth-child(2) {
  z-index: 1;
  translate: 0 -0.5rem;
}
.stickers picture:nth-child(3) {
  rotate: -7deg;
}

/* ---- How it works: the login screen's blue panel ---- */

.how {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 2.5rem 1.5rem;
  border-radius: var(--r-panel);
  background: var(--accent);
  color: #fff;
}
.how .arcs {
  inset-inline-start: 8%;
  width: 40rem;
  height: 40rem;
  opacity: 0.1;
}
.how :focus-visible {
  outline-color: #fff;
}
.steps {
  display: grid;
  gap: 1.75rem;
  margin-top: 2rem;
}
.steps li {
  display: grid;
  align-content: start;
  grid-template-columns: auto 1fr;
  column-gap: 1rem;
  row-gap: 0.25rem;
}
.step-num {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  background: rgb(255 255 255 / 0.16);
  font-size: 1.125rem;
  font-weight: 800;
}
.steps h3 {
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.6;
}
.steps p {
  font-size: 0.9375rem;
  line-height: 1.8;
}
.how-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgb(255 255 255 / 0.2);
}
.how-foot p {
  display: flex;
  gap: 0.625rem;
  font-weight: 700;
  line-height: 1.8;
}
.how-foot .icon {
  margin-top: 0.25rem;
}
.how-foot .btn {
  flex: 1 1 12rem;
}

/* ---- Pricing (the webapp's Plans: a row per plan on mobile, a tile on desktop) ---- */

.plans {
  display: grid;
  gap: 0.75rem;
}
.plans[hidden],
.plans-fallback[hidden] {
  display: none;
}
.plan {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 1rem;
  row-gap: 0.25rem;
  min-height: 5.25rem;
  padding: 1rem 1.25rem;
  border: 1.5px solid var(--line-subtle);
  border-radius: 18px;
  background: var(--surface);
}
.plan--popular {
  border: 2px solid var(--accent);
  background: var(--accent-subtle);
}
.plan-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  grid-column: 1;
}
.plan-name {
  font-size: 1.0625rem;
  font-weight: 800;
}
.badge {
  padding: 0.125rem 0.625rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
}
.badge--popular {
  background: var(--accent-soft);
  color: var(--accent-strong);
}
.badge--best_value {
  background: var(--success-soft);
  color: var(--success-strong);
}
.plan-sub {
  grid-column: 1;
  color: var(--ink-secondary);
  font-size: 0.8125rem;
  line-height: 1.7;
}
.plan-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  grid-column: 2;
  grid-row: 1 / span 2;
  font-size: 1.125rem;
  font-weight: 900;
}
.plan-unit {
  color: var(--ink-secondary);
  font-size: 0.75rem;
  font-weight: 500;
}
.plan--skeleton {
  border-color: transparent;
  background: var(--sunken);
}

.plans-fallback {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--r-card);
  background: var(--surface);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.8;
}

.plan-extras {
  display: grid;
  gap: 2rem;
  margin-top: 1rem;
  padding: 1.5rem;
  border-radius: var(--r-card);
  background: var(--surface);
}
.plan-extras h3 {
  font-size: 1.0625rem;
  font-weight: 800;
}
.plan-extras .checks {
  margin-top: 1rem;
}
.plan-cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.plan-cta p {
  color: var(--ink-muted);
  font-size: 0.8125rem;
  line-height: 1.8;
  text-align: center;
}

/* ---- FAQ ---- */

.faq-grid {
  display: grid;
  gap: 2rem;
}
.faq-side p {
  margin-top: 0.75rem;
  color: var(--ink-secondary);
  line-height: 1.9;
}
.mail {
  display: inline-block;
  margin-top: 0.25rem;
  padding-block: 0.5rem;
  /* --accent is 4.48:1 on the canvas; links on it use the darker hover blue. */
  color: var(--accent-hover);
  font-weight: 700;
  text-decoration: none;
}
.mail:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}
.faq {
  display: grid;
  gap: 0.75rem;
}
.faq details {
  border-radius: 18px;
  background: var(--surface);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
  padding: 1rem 1.25rem;
  border-radius: 18px;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.6;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary .icon {
  color: var(--ink-muted);
  transition: rotate 0.25s var(--ease);
}
.faq details[open] summary .icon {
  rotate: 180deg;
}
.faq details p {
  padding: 0 1.25rem 1.25rem;
  color: var(--ink-secondary);
  font-size: 0.9375rem;
  line-height: 1.95;
}

/* ---- Footer ---- */

.site-footer {
  padding-block: 2.5rem;
  border-top: 1px solid var(--line-subtle);
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.footer-brand p {
  margin-top: 0.5rem;
  color: var(--ink-secondary);
  font-size: 0.875rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.footer-links a {
  display: inline-block;
  padding-block: 0.625rem;
  color: var(--ink-secondary);
  font-weight: 700;
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--accent-hover);
}
.copy {
  color: var(--ink-muted);
  font-size: 0.875rem;
}

/* ---- ≥ 768 px ---- */

@media (min-width: 48rem) {
  .wrap {
    width: min(100% - 4rem, 73.75rem);
  }
  .header-cta {
    display: inline-flex;
  }
  .hero-actions .btn {
    flex: 0 0 auto;
  }
  .hero-visual {
    height: 32rem;
  }
  .phone {
    width: 17rem;
  }

  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cell--forward {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    column-gap: 2rem;
    padding: 2rem 2rem 0;
  }
  .cell--forward .cell-text {
    padding-bottom: 2rem;
  }
  .cell--forward .cell-visual {
    height: auto;
    min-height: 20rem;
  }
  .cell-visual--pair {
    grid-template-columns: 1fr 1fr;
  }
  .screen--second {
    display: block;
    margin-top: 2.5rem;
  }
  .cell--schedule {
    grid-row: 2 / span 2;
  }
  .cell--schedule .cell-visual {
    flex: 1 0 17rem;
  }

  .steps li {
    grid-template-columns: 1fr;
  }
  .step-num {
    grid-row: auto;
    margin-bottom: 0.75rem;
  }
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
  }
  .how {
    padding: 3rem;
  }
  .how-foot .btn {
    flex: 0 0 auto;
  }

  .plans {
    grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
    gap: 1rem;
  }
  .plan {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    min-height: 13rem;
    padding: 1.5rem;
    border-radius: var(--r-card);
  }
  .plan-name {
    font-size: 1.125rem;
  }
  .plan-price {
    flex-direction: row;
    align-items: baseline;
    gap: 0.375rem;
    margin-top: auto;
    font-size: 1.625rem;
  }
  .plan-unit {
    font-size: 0.8125rem;
  }
  .plan-extras {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 2rem;
  }
  .checks--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2rem;
  }
}

/* ---- ≥ 1024 px ---- */

@media (min-width: 64rem) {
  .nav {
    display: flex;
    gap: 0.25rem;
  }
  .brand {
    margin-inline-end: 1rem;
  }

  .hero {
    padding-block: 3.5rem 0;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 3.5rem;
  }
  .hero-visual {
    height: 36rem;
    padding-top: 3.5rem;
  }
  .phone {
    width: 18.5rem;
  }

  .section {
    padding-block: 5rem;
  }
  .section--tight {
    padding-block: 1rem;
  }
  .section-head {
    margin-bottom: 3rem;
  }

  .bento {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }
  .cell--forward {
    grid-column: 1 / span 2;
    grid-row: 1;
  }
  .cell--schedule {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
  .cell--directory {
    grid-column: 1;
    grid-row: 2;
  }
  .cell--accounts {
    grid-column: 2;
    grid-row: 2;
  }
  .cell {
    padding: 2rem 2rem 0;
  }

  .how {
    padding: 4rem;
  }

  .faq-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
    align-items: start;
    gap: 4rem;
  }
  .faq-side {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
}

/* ---- Motion: only an entrance for the hero, a pulse while plans load; none when reduced ---- */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
  .hero-copy > *,
  .hero-visual {
    animation: rise 0.7s var(--ease) both;
  }
  .hero-copy > :nth-child(2) {
    animation-delay: 60ms;
  }
  .hero-copy > :nth-child(3) {
    animation-delay: 120ms;
  }
  .hero-copy > :nth-child(4) {
    animation-delay: 180ms;
  }
  .hero-visual {
    animation-delay: 120ms;
  }
  .phone {
    animation: rise 0.9s var(--ease) 0.25s both;
  }
  .plan--skeleton {
    animation: pulse 1.4s ease-in-out infinite;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
}

@keyframes pulse {
  50% {
    opacity: 0.55;
  }
}
