/* @font-face local definitions (self-hosted fonts) */
@font-face {
  font-family: 'Manrope';
  src: url('fonts/Manrope_500Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('fonts/Manrope_600SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('fonts/Manrope_700Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('fonts/Manrope_800ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/JetBrainsMono_500Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/JetBrainsMono_700Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Design Tokens from apps/mobile/src/theme/tokens.ts */
:root {
  --bg: #F2F3F5;
  --surface: #FFFFFF;
  --surface2: #F7F8FA;
  --line: rgba(20, 22, 27, 0.09);
  --lineSolid: #D6D9DE;
  --ink: #14161B;
  --ink2: #5C6270;
  --ink3: #9AA0AC;
  --accent: #4F46E5;
  --accentSoft: #EEEDFD;
  --ok: #0E9F6E;
  --okSoft: #E6F6F0;
  --okInk: #0A7A54;
  --inv: #14161B;
  --invInk: #FFFFFF;
  --invInk2: rgba(255, 255, 255, 0.55);
  --invLine: rgba(255, 255, 255, 0.16);
  --r-sm: 7px;
  --r-md: 9px;
  --r-card: 14px;
  --sans: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Arabic", "Geeza Pro", "Cairo", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

[data-theme="dark"] {
  --bg: #0B0C0F;
  --surface: #14161B;
  --surface2: #1B1E25;
  --line: rgba(255, 255, 255, 0.1);
  --lineSolid: #3B4049;
  --ink: #F4F5F7;
  --ink2: #9AA2B0;
  --ink3: #6B7280;
  --accent: #7A74F2;
  --accentSoft: #211F3F;
  --ok: #34D399;
  --okSoft: #0F2A22;
  --okInk: #34D399;
  --inv: #1B1E25;
  --invInk: #F4F5F7;
  --invInk2: rgba(244, 245, 247, 0.6);
  --invLine: rgba(255, 255, 255, 0.14);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[dir="rtl"] body {
  line-height: 1.75;
}

[dir="rtl"] * {
  letter-spacing: 0 !important;
}

a {
  color: inherit;
}

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  height: 28px;
  width: auto;
  display: block;
}

:root:not([data-theme="dark"]) .logo-dark {
  display: none;
}

[data-theme="dark"] .logo-light {
  display: none;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

.muted {
  color: var(--ink2);
}

.overline {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

[dir="rtl"] .overline {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0 !important;
  text-transform: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 18px;
  border-radius: var(--r-md);
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--lineSolid);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  background: var(--surface2);
}

.btn.primary {
  background: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
}

.btn.primary:hover {
  filter: brightness(1.06);
}

.icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* Header */
header.site-header {
  padding: 20px 0;
}

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

.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
  font-weight: 600;
  font-size: 15px;
}

.nav-link.n {
  text-decoration: none;
  color: var(--ink2);
  transition: color 0.15s ease;
}

.nav-link.n:hover {
  color: var(--ink);
}

.controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ctrl-btn {
  all: unset;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink2);
  font-weight: 700;
  font-size: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.ctrl-btn:hover {
  color: var(--ink);
  background: var(--surface2);
  border-color: var(--lineSolid);
}

.ctrl-btn .icon {
  width: 16px;
  height: 16px;
}

[data-theme="dark"] .theme-icon-dark {
  display: none;
}

:root:not([data-theme="dark"]) .theme-icon-light {
  display: none;
}

/* Hero */
.hero {
  padding: 48px 0 72px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.05;
  margin: 14px 0 18px;
}

[dir="rtl"] .hero h1 {
  line-height: 1.3;
}

.hero p.lead {
  font-size: 19px;
  color: var(--ink2);
  max-width: 34ch;
  margin-bottom: 28px;
}

.hero .phone-wrap {
  display: flex;
  justify-content: center;
}

.trialnote {
  margin-top: 16px;
  font-size: 14px;
  color: var(--ink2);
}

/* Badges */
.badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 16px;
  border-radius: var(--r-md);
  background: var(--inv);
  color: var(--invInk);
  text-decoration: none;
  border: 1px solid var(--invLine);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.badge-icon {
  flex-shrink: 0;
}

.badge-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: start;
}

.badge-text small {
  display: block;
  font-size: 10px;
  color: var(--invInk2);
  line-height: 1.15;
  font-weight: 500;
}

.badge-text b {
  display: block;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--invInk);
}

/* Phone Mockup */
.phone {
  width: 280px;
  border-radius: 38px;
  background: var(--surface);
  border: 1px solid var(--lineSolid);
  padding: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.screen {
  border-radius: 26px;
  background: var(--bg);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 470px;
}

.s-top {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink2);
}

.s-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 14px;
}

.s-greeting {
  font-size: 13px;
  margin-bottom: 4px;
}

.s-clock {
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}

.s-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  background: var(--okSoft);
  color: var(--okInk);
  border-radius: 999px;
  padding: 4px 10px;
}

.s-pill .icon {
  width: 14px;
  height: 14px;
}

.s-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 6px 0;
  border-top: 1px solid var(--line);
}

.s-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.s-row:last-child {
  padding-bottom: 0;
}

.s-btn {
  margin-top: auto;
  height: 58px;
  border-radius: var(--r-card);
  background: var(--accent);
  color: #FFFFFF;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 17px;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.3);
}

/* Bands */
section.band {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

section.band h2 {
  font-size: 32px;
  margin: 10px 0 32px;
  max-width: 24ch;
}

.cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

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

.col h3 {
  font-size: 18px;
  margin-bottom: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.col h3 .icon {
  color: var(--accent);
}

.col ul {
  margin: 0;
  padding-inline-start: 18px;
  color: var(--ink2);
  display: grid;
  gap: 8px;
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 20px;
}

.privacy-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.privacy-item .icon {
  color: var(--accent);
  margin-top: 3px;
}

.privacy-item h3 {
  font-size: 17px;
  margin-bottom: 4px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

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

.step .num {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--accent);
  font-size: 14px;
}

.step h3 {
  font-size: 18px;
  margin: 10px 0 6px;
}

/* CTA */
.cta {
  padding: 64px 0;
}

.cta .box {
  background: var(--inv);
  color: var(--invInk);
  border-radius: 20px;
  padding: 40px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.cta h2 {
  font-size: 28px;
  margin: 0 0 8px;
}

.cta p {
  color: var(--invInk2);
}

/* Footer */
footer.site {
  border-top: 1px solid var(--line);
  padding: 28px 0 64px;
  font-size: 14px;
  color: var(--ink2);
}

footer.site .wrap {
  display: flex;
  gap: 20px 28px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

footer.site nav {
  display: flex;
  gap: 12px 24px;
  flex-wrap: wrap;
  align-items: center;
}

footer.site a {
  text-decoration: none;
  color: inherit;
  transition: color 0.15s ease;
}

footer.site a:hover {
  color: var(--ink);
}

.mailto-link {
  font-weight: 600;
}

/* Sub-pages (/support, /delete-account): reuse the home page shell,
   single-column head instead of the hero with the phone mockup. */
.hero.plain .wrap {
  grid-template-columns: 1fr;
}

.hero.plain p.lead {
  max-width: 52ch;
}

.cols.four {
  grid-template-columns: repeat(4, 1fr);
}

.prose {
  max-width: 68ch;
  display: grid;
  gap: 12px;
  color: var(--ink2);
}

.prose p {
  margin: 0;
}

.mail-line {
  display: inline-block;
  margin-top: 10px;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
}

.note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 14px 16px;
  margin-top: 16px;
  max-width: 68ch;
  color: var(--ink2);
  font-size: 14px;
}

.note .icon {
  color: var(--accent);
  margin-top: 2px;
}

/* Responsive */
@media (max-width: 860px) {
  .hero .wrap,
  .cols,
  .steps,
  .privacy-grid {
    grid-template-columns: 1fr;
  }

  .cols.four {
    grid-template-columns: repeat(2, 1fr);
  }

  header.site-header nav .nav-link.n {
    display: none;
  }

  .cta .box {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .cols.four {
    grid-template-columns: 1fr;
  }
}
