/* SoldSites — one stylesheet for English (LTR) and Farsi (RTL) */
:root {
  --ink: #14213d;        /* deep navy: text, header */
  --ink-soft: #4a5872;   /* secondary text */
  --paper: #ffffff;
  --mist: #f3f5f8;       /* section background */
  --line: #d9dfe7;
  --sold: #c8102e;       /* the red of a SOLD sign: used only for sold moments */
  --lead: #1f7a5a;       /* confirmation green for captured leads */
  --focus: #2f6fed;
  --radius-s: 6px;
  --radius-l: 14px;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 66ch;
}
:lang(fa) { --font: "Vazirmatn", "Archivo", system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.6;
  font-variation-settings: "wdth" 100;
}
:lang(fa) body, body:lang(fa) { line-height: 1.85; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--sold); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
.skip { position: absolute; top: 1rem; inset-inline-start: 1rem; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 10; transform: translateY(-300%); }
.skip:focus { transform: none; }
html, body { overflow-x: clip; }

.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }

/* Type: Archivo's width axis does the talking. Wide and heavy for display, normal for reading. */
h1, h2, h3 { margin: 0 0 .6em; line-height: 1.08; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); font-weight: 800; font-variation-settings: "wdth" 118; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.55rem); font-weight: 750; font-variation-settings: "wdth" 112; }
h3 { font-size: 1.2rem; font-weight: 700; font-variation-settings: "wdth" 104; }
:lang(fa) h1, :lang(fa) h2, :lang(fa) h3 { line-height: 1.4; letter-spacing: 0; font-variation-settings: normal; }
p { margin: 0 0 1em; max-width: var(--measure); }
.lede { font-size: 1.2rem; color: var(--ink-soft); }
.small { font-size: .9rem; color: var(--ink-soft); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 800; font-size: 1.1rem; font-variation-settings: "wdth" 115; white-space: nowrap; }
.brand svg { width: 30px; height: 30px; }
.nav { display: flex; gap: 1.4rem; margin-inline-start: auto; font-size: .97rem; }
.nav a { text-decoration: none; color: var(--ink-soft); }
.nav a:hover { color: var(--ink); }
.lang { font-size: .95rem; text-decoration: none; padding: .35rem .7rem; border: 1px solid var(--line); border-radius: var(--radius-s); }
@media (max-width: 860px) { .nav { display: none; } .lang { margin-inline-start: auto; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.35rem; border-radius: var(--radius-s); border: 2px solid var(--ink); background: var(--ink); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; line-height: 1.2; }
.btn:hover { background: #0b1427; color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--mist); color: var(--ink); }
.btn.small-btn { padding: .55rem .9rem; font-size: .95rem; }
.site-header .btn { padding: .55rem .95rem; font-size: .95rem; }
@media (max-width: 560px) { .site-header .btn { display: none; } }

/* Hero */
.hero { padding: clamp(2.5rem, 6vw, 5.5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 920px) { .hero .wrap { grid-template-columns: 1fr; } }
.hero .actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 1.2rem; }
.hero .note { font-size: .92rem; color: var(--ink-soft); }

/* The demo: an agent's listing page where the sold price unlocks after sign-up */
.demo { position: relative; }
.demo-frame { border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--paper); overflow: hidden; box-shadow: 0 18px 40px -24px rgba(20,33,61,.45); }
.demo-bar { display: flex; align-items: center; gap: .5rem; padding: .6rem .9rem; border-bottom: 1px solid var(--line); background: var(--mist); font-size: .82rem; color: var(--ink-soft); }
.demo-bar .dots { display: flex; gap: 5px; }
.demo-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); display: block; }
.demo-bar .url { margin-inline-start: .4rem; direction: ltr; }
.demo-house { background: #e9eef4; padding: 1.2rem 1.2rem 0; }
.demo-house svg { width: 100%; height: auto; }
.demo-body { padding: 1.1rem 1.2rem 1.3rem; }
.demo-tag { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 4px; padding: .1rem .45rem; margin-bottom: .5rem; }
.demo-title { font-weight: 750; font-size: 1.15rem; font-variation-settings: "wdth" 108; margin: 0 0 .2rem; }
.demo-meta { color: var(--ink-soft); font-size: .92rem; margin: 0 0 .9rem; }
.demo-prices { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; border-top: 1px solid var(--line); padding-top: .9rem; }
.demo-prices dt { font-size: .82rem; color: var(--ink-soft); }
.demo-prices dd { margin: 0; font-weight: 750; font-size: 1.25rem; font-variation-settings: "wdth" 110; }
.sold-value { color: var(--sold); }
.sold-value.locked { filter: blur(7px); user-select: none; }
.demo-unlock { margin-top: 1rem; }
.demo-form { display: none; gap: .5rem; margin-top: 1rem; }
.demo-form.open { display: flex; flex-wrap: wrap; }
.demo-form input { flex: 1 1 180px; padding: .65rem .75rem; border: 1px solid var(--line); border-radius: var(--radius-s); font: inherit; font-size: .95rem; }
.demo-form .tiny { flex-basis: 100%; font-size: .78rem; color: var(--ink-soft); margin: 0; }
.demo-sold-detail { display: none; margin: .9rem 0 0; font-size: .92rem; }
.demo-sold-detail.show { display: block; }
.stamp { position: absolute; top: 4.2rem; inset-inline-end: -10px; transform: rotate(8deg); background: var(--sold); color: #fff; font-weight: 800; font-variation-settings: "wdth" 125; letter-spacing: .06em; padding: .35rem .9rem; border-radius: 4px; font-size: 1.05rem; opacity: 0; transition: opacity .35s, transform .35s; }
:lang(fa) .stamp { transform: rotate(-8deg); letter-spacing: 0; }
.stamp.show { opacity: 1; }
.lead-toast { position: absolute; inset-inline-start: -1.4rem; top: 7.5rem; width: min(330px, 92%); background: var(--ink); color: #fff; border-radius: 10px; padding: .85rem 1rem; font-size: .88rem; line-height: 1.45; box-shadow: 0 16px 30px -18px rgba(20,33,61,.8); opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .4s; pointer-events: none; }
.lead-toast strong { display: block; color: #9fe3c6; margin-bottom: .15rem; }
.lead-toast.show { opacity: 1; transform: none; }
@media (max-width: 920px) { .lead-toast { position: static; width: auto; margin-top: .8rem; transform: none; } .lead-toast:not(.show) { display: none; } .stamp { inset-inline-end: .6rem; } }

/* Sections */
section { scroll-margin-top: 80px; }
.band { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.band.mist { background: var(--mist); }
.band.dark { background: var(--ink); color: #fff; }
.band.dark .lede, .band.dark .small { color: #c9d2e1; }
.band.dark a:hover { color: #ffd2d9; }
.section-head { max-width: 760px; margin-bottom: 2.5rem; }

/* Sold data facts: a ledger, not cards */
.ledger { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid #fff; margin-top: 2.2rem; }
.ledger div { padding: 1.1rem 1.2rem 0 0; }
:lang(fa) .ledger div { padding: 1.1rem 0 0 1.2rem; }
.ledger b { display: block; font-size: 1.15rem; font-variation-settings: "wdth" 110; margin-bottom: .3rem; }
.ledger span { color: #c9d2e1; font-size: .95rem; }
@media (max-width: 820px) { .ledger { grid-template-columns: 1fr 1fr; row-gap: 1rem; } }

/* Features: three plain columns with rule lines */
.feature-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
@media (max-width: 860px) { .feature-cols { grid-template-columns: 1fr; gap: 1.8rem; } }
.feature-cols h3 { padding-top: .9rem; border-top: 3px solid var(--ink); }
.feature-cols ul { list-style: none; padding: 0; margin: 0; }
.feature-cols li { padding: .55rem 0; border-bottom: 1px solid var(--line); }
.feature-cols li small { display: block; color: var(--ink-soft); font-size: .88rem; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; background: var(--paper); }
@media (max-width: 980px) { .plans { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }
.plan { padding: 1.6rem 1.4rem; border-inline-end: 1px solid var(--line); display: flex; flex-direction: column; }
.plan:last-child { border-inline-end: 0; }
@media (max-width: 980px) { .plan { border-bottom: 1px solid var(--line); } }
.plan.pick { background: var(--ink); color: #fff; }
.plan.pick .plan-for, .plan.pick .price small, .plan.pick .founding { color: #c9d2e1; }
.plan-name { font-weight: 800; font-size: 1.25rem; font-variation-settings: "wdth" 112; margin: 0; }
.plan-flag { font-size: .8rem; font-weight: 700; color: #ffd2d9; margin: .1rem 0 0; }
.plan-for { color: var(--ink-soft); font-size: .92rem; min-height: 3em; margin: .4rem 0 1rem; }
.price { font-size: 2.3rem; font-weight: 800; font-variation-settings: "wdth" 115; line-height: 1; margin: 0; }
.price small { font-size: .95rem; font-weight: 500; color: var(--ink-soft); font-variation-settings: "wdth" 100; }
.founding { font-size: .92rem; color: var(--ink-soft); margin: .5rem 0 1.1rem; }
.founding b { color: var(--sold); }
.plan.pick .founding b { color: #ffb3bf; }
.plan ul { list-style: none; padding: 0; margin: 0 0 1.4rem; font-size: .95rem; }
.plan li { padding: .38rem 0; border-top: 1px solid var(--line); }
.plan.pick li { border-color: rgba(255,255,255,.18); }
.plan li.inherit { font-weight: 700; }
.plan .btn { margin-top: auto; }
.plan.pick .btn { background: #fff; color: var(--ink); border-color: #fff; }
.plans-note { margin-top: 1rem; font-size: .92rem; color: var(--ink-soft); max-width: none; }

/* Founding offer */
.offer { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 820px) { .offer { grid-template-columns: 1fr; gap: 1.5rem; } }
.spots { display: flex; gap: 6px; margin: 1.2rem 0 .5rem; flex-wrap: wrap; }
.spots i { width: 26px; height: 26px; border: 2px solid var(--sold); border-radius: 4px; display: block; }
.give-get { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 480px) { .give-get { grid-template-columns: 1fr; } }
.give-get ul { padding-inline-start: 1.1rem; margin: 0; }
.give-get li { margin-bottom: .45rem; }

/* Steps: this is a real sequence, so it is numbered */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 0; max-width: 820px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3.2rem 1fr; gap: 1rem; padding: 1.2rem 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(step); font-weight: 800; font-size: 1.6rem; font-variation-settings: "wdth" 120; line-height: 1.1; color: var(--sold); }
:lang(fa) .steps li::before { content: counter(step, persian); }
.steps h3 { margin-bottom: .25rem; }
.steps p { margin: 0; color: var(--ink-soft); }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 0; font-weight: 700; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--ink-soft); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-soft); padding-bottom: .6rem; }

/* Apply form */
.apply-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 3rem; }
@media (max-width: 860px) { .apply-grid { grid-template-columns: 1fr; gap: 1.5rem; } }
form.apply { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; background: var(--paper); color: var(--ink); padding: 1.6rem; border-radius: var(--radius-l); }
@media (max-width: 560px) { form.apply { grid-template-columns: 1fr; padding: 1.2rem; } }
.field { display: flex; flex-direction: column; gap: .3rem; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 600; font-size: .93rem; }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; padding: .7rem .8rem; border: 1px solid #b8c2d0; border-radius: var(--radius-s); background: #fff; color: var(--ink); width: 100%; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:user-invalid { border-color: var(--sold); }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); grid-column: 1 / -1; }
.check input { margin-top: .3rem; width: 18px; height: 18px; flex: none; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-status { grid-column: 1 / -1; margin: 0; font-weight: 600; }
.form-status.ok { color: var(--lead); }
.form-status.err { color: var(--sold); }
form.apply .btn { grid-column: 1 / -1; justify-self: start; }
.contact-lines { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.contact-lines li { margin-bottom: .4rem; }

/* Footer */
.site-footer { padding: 2.5rem 0; border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; gap: 1.2rem; }

/* Legal pages */
.legal { padding: 3rem 0 4rem; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2rem; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
[dir="rtl"] [lang="en"] { unicode-bidi: isolate; }
[dir="rtl"] .demo-prices dd { text-align: right; }
