/*
 * The landing page's stylesheet.
 *
 * Kept in its own file rather than inline so the server can send `style-src 'self'` with no
 * 'unsafe-inline'. Combined with a page that ships no script at all, the policy can start from
 * `default-src 'none'` and name only what is really needed.
 *
 * Every colour, size and radius below is a `--fy-*` custom property generated from
 * `@fileyar/theme` — the same tokens the product renders. The build injects them; nothing here
 * restates a token value by hand, so this page cannot drift from the application's palette.
 */

:root {
  --fy-color-primary: #0E5C56;
  --fy-color-primary-deep: #0A4742;
  --fy-color-primary-mid: #13746D;
  --fy-color-primary-soft: #E3F1EF;
  --fy-color-primary-hairline: #C8DEDA;
  --fy-color-primary-tint: #E7EFEE;
  --fy-color-accent: #E8873D;
  --fy-color-accent-light: #F49B55;
  --fy-color-accent-pressed: #D8762D;
  --fy-color-accent-soft: #FBEEE2;
  --fy-color-gold: #E9B949;
  --fy-color-gold-ink: #3D2E08;
  --fy-color-gold-pressed: #D9A93E;
  --fy-color-canvas: #FAF9F6;
  --fy-color-surface: #FFFFFF;
  --fy-color-panel: #F4F3EE;
  --fy-color-panel-border: #E6E4DC;
  --fy-color-hairline: #F3F4F6;
  --fy-color-grid-divider: #D6D8DB;
  --fy-color-border: #E3F1EF;
  --fy-color-border-strong: #C8DEDA;
  --fy-color-ink: #16211D;
  --fy-color-ink-muted: #6E756F;
  --fy-color-ink-faint: #9AA09B;
  --fy-color-ink-quiet: #9CA3AF;
  --fy-color-on-dark: #FFFFFF;
  --fy-color-on-dark-muted: #D1FAE5;
  --fy-color-placeholder: #9AA09B;
  --fy-color-skeleton: #E9E7E0;
  --fy-color-success: #05603A;
  --fy-color-success-soft: #ECFDF5;
  --fy-color-warning: #B45309;
  --fy-color-warning-soft: #FFFBEB;
  --fy-color-danger: #B91C1C;
  --fy-color-danger-soft: #FEF2F2;
  --fy-color-danger-pressed: #8E312A;
  --fy-color-danger-border: #FCCFCB;
  --fy-color-badge-glass: rgba(0, 0, 0, 0.6);
  --fy-color-badge-glass-light: rgba(255, 255, 255, 0.9);
  --fy-color-access-private: rgba(15, 23, 42, 0.8);
  --fy-color-access-private-border: #334155;
  --fy-color-access-team: rgba(14, 92, 86, 0.9);
  --fy-color-scrim: rgba(22, 33, 29, 0.55);
  --fy-color-overlay: rgba(22, 33, 29, 0.55);
  --fy-color-background: #FAF9F6;
  --fy-color-card: #FFFFFF;
  --fy-color-muted: #6E756F;
  --fy-color-orange: #E8873D;
  --fy-color-orange-soft: #FBEEE2;
  --fy-color-white: #FFFFFF;
  --fy-deal-sale-background: #ECFDF5;
  --fy-deal-sale-border: #A7F3D0;
  --fy-deal-sale-text: #065F46;
  --fy-deal-mortgage-and-rent-background: #EFF6FF;
  --fy-deal-mortgage-and-rent-border: #BFDBFE;
  --fy-deal-mortgage-and-rent-text: #1E40AF;
  --fy-deal-presale-background: #FAF5FF;
  --fy-deal-presale-border: #E9D5FF;
  --fy-deal-presale-text: #6B21A8;
  --fy-deal-exchange-background: #FFFBEB;
  --fy-deal-exchange-border: #FDE68A;
  --fy-deal-exchange-text: #92400E;
  --fy-deal-rent-background: #F0F9FF;
  --fy-deal-rent-border: #BAE6FD;
  --fy-deal-rent-text: #075985;
  --fy-deal-mortgage-background: #EEF2FF;
  --fy-deal-mortgage-border: #C7D2FE;
  --fy-deal-mortgage-text: #3730A3;
  --fy-status-active-background: #D1FAE5;
  --fy-status-active-text: #065F46;
  --fy-status-active-dot: #10B981;
  --fy-status-urgent-background: #FBEEE2;
  --fy-status-urgent-text: #E8873D;
  --fy-status-urgent-dot: #E8873D;
  --fy-status-inactive-background: #E5E7EB;
  --fy-status-inactive-text: #374151;
  --fy-status-inactive-dot: #9CA3AF;
  --fy-status-archived-background: #FEE2E2;
  --fy-status-archived-text: #991B1B;
  --fy-status-archived-dot: #EF4444;
  --fy-status-duplicate-background: #FEF3C7;
  --fy-status-duplicate-text: #92400E;
  --fy-status-duplicate-dot: #F59E0B;
  --fy-status-deal-completed-background: #DBEAFE;
  --fy-status-deal-completed-text: #1E40AF;
  --fy-status-deal-completed-dot: #3B82F6;
  --fy-space-xxs: 2px;
  --fy-space-xs: 4px;
  --fy-space-sm: 6px;
  --fy-space-md: 8px;
  --fy-space-ml: 10px;
  --fy-space-lg: 12px;
  --fy-space-xl: 14px;
  --fy-space-xxl: 16px;
  --fy-space-xxxl: 20px;
  --fy-space-huge: 24px;
  --fy-space-giant: 32px;
  --fy-space-list-bottom: 144px;
  --fy-radius-xs: 4px;
  --fy-radius-badge: 6px;
  --fy-radius-chip: 8px;
  --fy-radius-panel: 12px;
  --fy-radius-card: 16px;
  --fy-radius-control: 16px;
  --fy-radius-sheet: 24px;
  --fy-radius-pill: 999px;
  --fy-size-control-height: 48px;
  --fy-size-control-height-compact: 40px;
  --fy-size-touch-target: 44px;
  --fy-size-nav-center-button: 52px;
  --fy-size-header-height: 64px;
  --fy-size-icon-xs: 14px;
  --fy-size-icon-sm: 16px;
  --fy-size-icon-md: 20px;
  --fy-size-icon-lg: 24px;
  --fy-size-content-max-width: 560px;
  --fy-size-card-cover-height: 192px;
  --fy-text-hero-title-size: 20px;
  --fy-text-hero-title-line: 30px;
  --fy-text-hero-title-weight: 800;
  --fy-text-screen-title-size: 18px;
  --fy-text-screen-title-line: 30px;
  --fy-text-screen-title-weight: 800;
  --fy-text-card-title-size: 15px;
  --fy-text-card-title-line: 22px;
  --fy-text-card-title-weight: 800;
  --fy-text-section-title-size: 14px;
  --fy-text-section-title-line: 24px;
  --fy-text-section-title-weight: 700;
  --fy-text-body-strong-size: 14px;
  --fy-text-body-strong-line: 24px;
  --fy-text-body-strong-weight: 500;
  --fy-text-body-size: 14px;
  --fy-text-body-line: 24px;
  --fy-text-body-weight: 400;
  --fy-text-secondary-size: 12px;
  --fy-text-secondary-line: 20px;
  --fy-text-secondary-weight: 400;
  --fy-text-label-size: 12px;
  --fy-text-label-line: 18px;
  --fy-text-label-weight: 500;
  --fy-text-caption-size: 11px;
  --fy-text-caption-line: 16px;
  --fy-text-caption-weight: 500;
  --fy-text-micro-size: 10px;
  --fy-text-micro-line: 14px;
  --fy-text-micro-weight: 700;
  --fy-text-nano-size: 9px;
  --fy-text-nano-line: 13px;
  --fy-text-nano-weight: 500;
  --fy-text-button-size: 13px;
  --fy-text-button-line: 20px;
  --fy-text-button-weight: 700;
  --fy-num-hero-size: 24px;
  --fy-num-hero-line: 38px;
  --fy-num-hero-weight: 800;
  --fy-num-large-size: 16px;
  --fy-num-large-line: 26px;
  --fy-num-large-weight: 800;
  --fy-num-medium-size: 14px;
  --fy-num-medium-line: 22px;
  --fy-num-medium-weight: 700;
  --fy-num-small-size: 11px;
  --fy-num-small-line: 16px;
  --fy-num-small-weight: 700;
  --fy-shadow-card: 0 1px 2px rgba(22, 33, 29, 0.04);
  --fy-shadow-raised: 0 4px 6px rgba(22, 33, 29, 0.08);
  --fy-shadow-floating: 0 10px 30px rgba(14, 92, 86, 0.12);
  --fy-shadow-button: 0 6px 12px rgba(22, 33, 29, 0.14);
  --fy-shadow-modal: 0 16px 40px rgba(22, 33, 29, 0.24);
  --fy-font: 'Vazirmatn', system-ui, sans-serif;
  --fy-motion-fast: 200ms;
  --fy-motion-base: 300ms;
  --fy-motion-slow: 400ms;
  --fy-press-scale: 0.96;
  --fy-active-scale: 1.02;
}


/* Two weights, self-hosted. The product ships four; a one-page notice needs the body weight and
   the one the brand uses for a heading, and each file is ~125 KB. */
@font-face {
  font-family: 'Vazirmatn';
  src: url('/fonts/Vazirmatn_400Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/fonts/Vazirmatn_800ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

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

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}

body {
  display: grid;
  place-items: center;
  min-height: 100svh;
  margin: 0;
  padding: var(--fy-space-huge);
  background: var(--fy-color-canvas);
  color: var(--fy-color-ink);
  font-family: var(--fy-font);
  font-size: var(--fy-text-body-size);
  line-height: var(--fy-text-body-line);
  text-align: center;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--fy-space-lg);
  width: 100%;
  max-width: 34rem;
  padding: var(--fy-space-giant) var(--fy-space-huge);
  border: 1px solid var(--fy-color-border);
  border-radius: var(--fy-radius-sheet);
  background: var(--fy-color-surface);
  box-shadow: var(--fy-shadow-card);
}

.mark {
  width: 72px;
  height: 72px;
  border-radius: var(--fy-radius-card);
}

.name {
  margin: var(--fy-space-xs) 0 0;
  font-size: var(--fy-text-hero-title-size);
  line-height: var(--fy-text-hero-title-line);
  font-weight: var(--fy-text-hero-title-weight);
  color: var(--fy-color-primary);
}

.tagline {
  /* Wide enough that «املاک» does not fall alone onto a second line, which read as a typo rather
     than a line break. */
  max-width: 34ch;
  margin: 0;
  text-wrap: balance;
  color: var(--fy-color-ink-muted);
  font-size: var(--fy-text-body-size);
  line-height: var(--fy-text-body-line);
}

.soon {
  margin: var(--fy-space-xs) 0 0;
  padding: var(--fy-space-xs) var(--fy-space-xxl);
  border: 1px solid var(--fy-color-primary-hairline);
  border-radius: var(--fy-radius-pill);
  background: var(--fy-color-primary-soft);
  color: var(--fy-color-primary);
  font-size: var(--fy-text-caption-size);
  line-height: var(--fy-text-caption-line);
  font-weight: var(--fy-text-button-weight);
}

.contact {
  margin: var(--fy-space-lg) 0 0;
  padding-top: var(--fy-space-lg);
  border-top: 1px solid var(--fy-color-hairline);
  width: 100%;
  color: var(--fy-color-ink-muted);
  font-size: var(--fy-text-caption-size);
  line-height: var(--fy-text-caption-line);
}

.contact a {
  /* A left-to-right run inside a right-to-left line: without the isolate the parts come out
     reordered, which is the same bug the product fixes for phone numbers. */
  direction: ltr;
  unicode-bidi: isolate;
  /* An address is one unbreakable word to a browser: there is no break opportunity at `@` or
     `.`, so a long one would run out of the card on a narrow phone rather than wrap. */
  overflow-wrap: anywhere;
  color: var(--fy-color-primary);
  font-weight: var(--fy-text-button-weight);
  text-decoration: none;
}
.contact a:hover,
.contact a:focus-visible {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--fy-color-primary);
  outline-offset: 2px;
}

@media (max-width: 480px) {
  body {
    padding: var(--fy-space-xxl);
  }
  .card {
    padding: var(--fy-space-huge) var(--fy-space-xxl);
  }
}
