/* sokanai.ir. Editorial and quiet: white paper, black ink, one warm grey for panels
   and black for the closing sections. Headings are large and light (Vazirmatn 400)
   so the words carry the page; the only colour is the teal of the real app inside
   the product frame.
   Dials: ENERGY 2 / RHYTHM 3 / MOTION 1. */

:root {
  --paper: #ffffff;
  --ink: #0b0b0a;
  --ink-soft: #4a4a46;
  --panel: #ededeb;
  --panel-line: #d6d6d2;
  --night: #0b0b0a;
  --night-2: #1e1e1c;
  --night-text: #f4f4f2;
  --night-soft: #b4b4ae;
  --night-line: #3a3a37;
  --wrap: 1180px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f0f0e;
    --ink: #f4f4f2;
    --ink-soft: #b4b4ae;
    --panel: #1b1b19;
    --panel-line: #33332f;
    --night: #000000;
    --night-2: #151514;
  }
}

body { background: var(--paper); color: var(--ink); font-size: 17px; }
.wrap { width: min(100%, var(--wrap)); margin-inline: auto; padding-inline: 32px; }
/* Text sections keep a reading width but start at the same edge as everything else. */
.narrow > * { max-width: 860px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
section[id] { scroll-margin-top: 80px; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---- logo and buttons ---- */
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: inherit; text-decoration: none; font-weight: 700; font-size: 22px; }
.logo:hover { color: inherit; }
.mark { width: 30px; height: 30px; }

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font: 500 15px/1 Vazirmatn, Tahoma, sans-serif;
  text-decoration: none;
  white-space: nowrap;
}
.cta:hover { background: var(--ink-soft); color: var(--paper); }
.cta:active { transform: translateY(1px); }
.cta.big { min-height: 52px; padding: 0 26px; font-size: 16px; }
.cta.light { background: var(--night-text); color: var(--night); }
.cta.light:hover { background: #d9d9d4; color: var(--night); }
.cta:disabled { background: var(--night-soft); color: var(--night); cursor: not-allowed; transform: none; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; color: inherit; font-weight: 500; }
.text-link:hover { color: var(--ink-soft); }

/* ---- header ---- */
.nav { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid transparent; }
.nav.scrolled { border-bottom-color: var(--panel-line); }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--ink-soft); font-size: 15px; text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
.nav-end { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--panel-line); border-radius: 8px; background: none; color: var(--ink); }
.menu-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* ---- hero ---- */
.hero { padding: 120px 0 72px; text-align: center; }
.hero h1 { font-size: clamp(38px, 6.6vw, 80px); font-weight: 400; line-height: 1.3; }
.lede { max-width: 40rem; margin: 28px auto 0; color: var(--ink-soft); font-size: clamp(17px, 1.9vw, 20px); line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 28px; margin-top: 40px; }

/* ---- product frame: a faithful copy of the customer app ---- */
.shot { padding: 24px 0 120px; }
.frame { margin: 0; padding: clamp(14px, 3vw, 44px); border-radius: 20px; background: var(--panel); }
.frame-bar { display: flex; align-items: center; gap: 16px; padding: 10px 14px; border-radius: 12px 12px 0 0; background: var(--paper); border-bottom: 1px solid var(--panel-line); direction: ltr; }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--panel-line); }
.url { flex: 1; color: var(--ink-soft); font-size: 13px; text-align: center; }
.app {
  --app-accent: #0f766e;
  border-radius: 0 0 12px 12px;
  background: #f8fafc;
  color: #0f172a;
  overflow: hidden;
}
@media (prefers-color-scheme: dark) {
  .app { --app-accent: #2dd4bf; background: #020617; color: #e2e8f0; }
}
.app-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding: 14px 24px; border-bottom: 2px solid rgba(100, 116, 139, 0.3); }
.app-brand { font-weight: 700; font-size: 18px; }
.app-meta { font-size: 14px; opacity: 0.75; }
.app-body { display: flex; flex-direction: column; gap: 18px; padding: clamp(18px, 3vw, 36px); }
.app-q { font-size: clamp(19px, 2.3vw, 26px); font-weight: 700; line-height: 1.5; }
.app-a { color: var(--app-accent); font-size: clamp(17px, 1.9vw, 21px); font-weight: 700; line-height: 1.8; }
.app-table { overflow-x: auto; border: 2px solid rgba(100, 116, 139, 0.3); border-radius: 10px; }
.app-table table { min-width: 560px; }
.app-table th, .app-table td { padding: 9px 14px; font-size: 15px; border-bottom: 1px solid rgba(100, 116, 139, 0.25); font-variant-numeric: tabular-nums; }
.app-table th { background: rgba(100, 116, 139, 0.1); }
.app-table td:first-child { white-space: nowrap; }
.app-table td:not(:first-child), .app-table th:not(:first-child) { text-align: end; }
.app-tip { line-height: 1.9; }
.frame figcaption { margin-top: 16px; color: var(--ink-soft); font-size: 14px; text-align: center; }

/* ---- the problem, said plainly ---- */
.problem { padding: 40px 0 120px; }
.problem h2 { font-size: clamp(30px, 4.6vw, 54px); font-weight: 400; line-height: 1.35; }
.problem p { margin-top: 28px; color: var(--ink-soft); font-size: clamp(18px, 2vw, 22px); line-height: 1.9; }
.problem p.strong { color: var(--ink); font-weight: 500; }

/* ---- how it works: numbered columns on ledger rules ---- */
.how { padding: 0 0 120px; }
.how h2 { max-width: 34rem; font-size: clamp(26px, 3.4vw, 40px); font-weight: 400; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin: 48px 0 0; padding: 0; list-style: none; }
.steps li { padding-top: 20px; border-top: 2px solid var(--ink); }
.step-no { display: block; margin-bottom: 18px; color: var(--ink-soft); font-size: 15px; }
.steps h3 { font-size: 20px; font-weight: 500; }
.steps p { margin-top: 10px; color: var(--ink-soft); font-size: 16px; line-height: 1.85; }

/* ---- questions: grey panel with tabs ---- */
.questions { padding: 104px 0; background: var(--panel); }
.q-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; }
.q-head h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 400; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 10px; background: var(--paper); }
.tabs button { min-height: 44px; padding: 0 16px; border: 0; border-radius: 7px; background: none; color: var(--ink-soft); font: 500 15px/1 Vazirmatn, Tahoma, sans-serif; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.q-list { margin: 40px 0 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.q-list li { padding: 26px 0; border-bottom: 1px solid var(--panel-line); font-size: clamp(20px, 2.8vw, 32px); line-height: 1.55; }
.q-note { margin-top: 24px; color: var(--ink-soft); font-size: 15px; }

/* ---- security: the first black section ---- */
.security { padding: 120px 0; background: var(--night-2); color: var(--night-text); }
.sec-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
.security h2 { font-size: clamp(30px, 4.2vw, 50px); font-weight: 400; line-height: 1.35; }
.sec-lede { margin-top: 24px; color: var(--night-soft); font-size: 18px; line-height: 1.85; }
.sec-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; margin: 0; padding: 0; list-style: none; }
.sec-list li { padding-top: 18px; border-top: 1px solid var(--night-line); }
.sec-list h3 { font-size: 19px; font-weight: 500; }
.sec-list p { margin-top: 10px; color: var(--night-soft); font-size: 16px; line-height: 1.85; }

/* ---- pricing ---- */
.pricing { padding: 120px 0; }
.pricing h2 { font-size: clamp(28px, 3.8vw, 44px); font-weight: 400; }
.pricing p { margin-top: 24px; color: var(--ink-soft); font-size: clamp(18px, 2vw, 21px); line-height: 1.9; }

/* ---- demo request: the closing black section ---- */
.demo { padding: 120px 0; background: var(--night); color: var(--night-text); }
.demo-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: start; }
.demo h2 { font-size: clamp(32px, 4.4vw, 54px); font-weight: 400; line-height: 1.35; }
.demo-grid > div > p { margin-top: 24px; color: var(--night-soft); font-size: 18px; line-height: 1.85; }
.demo-form { display: flex; flex-direction: column; gap: 18px; }
.demo-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.demo-form label { color: var(--night-text); font-size: 15px; font-weight: 500; }
.demo-form input, .demo-form textarea {
  border: 1px solid var(--night-line);
  border-radius: 8px;
  background: var(--night-2);
  color: var(--night-text);
}
.demo-form input:hover, .demo-form textarea:hover { border-color: var(--night-soft); }
.demo-form input::placeholder, .demo-form textarea::placeholder { color: #8a8a84; }
.demo-form input[aria-invalid="true"] { border-color: #fca5a5; }
.demo-form :focus-visible { outline-color: var(--night-text); }
.demo-form .cta { align-self: flex-start; }
.demo-msg { padding: 12px 14px; border-radius: 8px; border: 1px solid var(--night-line); font-size: 15px; }
.demo-msg.error { border-color: #fca5a5; color: #fecaca; }
.demo-msg.ok { border-color: var(--night-soft); }
.trap { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- footer ---- */
.foot { padding: 40px 0; background: var(--night); color: var(--night-soft); border-top: 1px solid var(--night-line); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.foot .logo { color: var(--night-text); }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--night-soft); text-decoration: none; font-size: 15px; }
.foot-links a:hover { color: var(--night-text); }
.copy { font-size: 14px; }

/* ---- smaller screens ---- */
@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
  .sec-grid, .demo-grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 820px) {
  .menu-btn { display: inline-block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
    background: var(--paper);
    border-bottom: 1px solid var(--panel-line);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0 8px; font-size: 17px; }
}
@media (max-width: 640px) {
  .wrap { padding-inline: 16px; }
  .hero { padding: 72px 0 48px; }
  .shot, .problem, .how { padding-bottom: 80px; }
  .questions, .security, .pricing, .demo { padding: 80px 0; }
  .steps, .sec-list, .demo-row { grid-template-columns: 1fr; }
  .frame { border-radius: 14px; }
  .nav-end .cta { padding: 0 12px; }
}
