/* GENERATED from /style.css by sync-design.js — do not edit this copy.
   Edit the root file, then run: npm run design */
/* ============================================================
   BD TECH — monochrome editorial design system
   Spec: DESIGN.md  ·  Logical properties only
   ============================================================ */

:root {
  /* monochrome: neutral grays only — the app icons are the only color */
  --bg: #F5F5F7;
  --surface: #FFFFFF;
  --line: #E3E3E8;
  --line-strong: #C6C6CC;
  --ink: #1D1D1F;
  --ink-soft: #6E6E73;
  --ink-dim: #48484A;   /* dark gray — button fill & contact band */
  --accent: #1D1D1F;
  --accent-ink: #FFFFFF;

  /* system-native stack: SF Pro on Apple devices, zero webfonts */
  --font-display: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --container: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius-card: 12px;
  --radius-icon: 22.5%;
}

/* ---------- reset-lite ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100svh;
}
img, svg { display: block; max-inline-size: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--accent); color: var(--accent-ink); }

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

/* ---------- typography ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 1.2rem + 4.8vw, 4.1rem); letter-spacing: -0.022em; }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); letter-spacing: -0.018em; }
h3 { font-size: 1.08rem; line-height: 1.3; letter-spacing: -0.01em; }

.overline {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}

.lede { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.2rem); color: var(--ink-soft); max-inline-size: 56ch; }

/* ---------- Hebrew typography (pages with lang="he") ---------- */
:lang(he) { line-height: 1.7; }
:lang(he) h1, :lang(he) h2, :lang(he) h3 { letter-spacing: 0; line-height: 1.2; }
:lang(he) .overline, :lang(he) .platform, :lang(he) .chip { letter-spacing: 0.04em; }

/* ---------- hero terminal typing ---------- */
.visually-hidden {
  position: absolute; inline-size: 1px; block-size: 1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.type-caret {
  display: inline-block; inline-size: 3px; block-size: 1.05em;
  margin-inline-start: 3px; vertical-align: -0.18em;
  background: var(--ink-soft);
  animation: caret-blink 1.1s steps(1) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }

/* ---------- layout primitives ---------- */
.container { max-inline-size: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: clamp(56px, 10vw, 104px); }
.rule { border: 0; border-block-start: 1px solid var(--line); }

.section-head { display: flex; flex-direction: column; gap: 12px; margin-block-end: clamp(28px, 5vw, 44px); }

.skip-link {
  position: absolute; inset-inline-start: 16px; inset-block-start: -56px;
  background: var(--ink); color: var(--bg);
  padding: 10px 16px; border-radius: 8px; text-decoration: none;
  z-index: 100; transition: inset-block-start 0.15s ease-out;
}
.skip-link:focus-visible { inset-block-start: 12px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; inset-block-start: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  backdrop-filter: saturate(1.2) blur(8px);
  border-block-end: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-block-size: 64px;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.18rem; letter-spacing: 0.01em;
  text-decoration: none; white-space: nowrap;
}
.wordmark .tld { color: var(--ink-soft); }

.site-nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 28px); }
.site-nav a {
  text-decoration: none; font-size: 0.95rem; font-weight: 500; color: var(--ink-soft);
  padding-block: 8px; white-space: nowrap;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"] { box-shadow: 0 2px 0 0 var(--accent); }

/* ---------- hero ---------- */
.hero { padding-block: clamp(64px, 12vw, 140px) clamp(40px, 7vw, 72px); }
.hero .overline { display: block; margin-block-end: 20px; }
.hero h1 { max-inline-size: 16ch; }

/* main heading: subtle near-black → gray gradient clipped to the text itself
   (monochrome, in-palette: --ink → --ink-soft). Hero titles only. */
.hero h1, .page-hero h1 {
  background-image: linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
/* mirror the diagonal in RTL so the fade follows reading direction (top-start → bottom-end) */
[dir="rtl"] .hero h1, [dir="rtl"] .page-hero h1 {
  background-image: linear-gradient(225deg, var(--ink) 0%, var(--ink-soft) 100%);
}
/* keep the title legible where text-clip isn't supported or the OS forces colors */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1, .page-hero h1 { color: var(--ink); -webkit-text-fill-color: currentColor; }
}
@media (forced-colors: active) {
  .hero h1, .page-hero h1 { background-image: none; color: revert; -webkit-text-fill-color: revert; }
}
.hero .lede { margin-block-start: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 36px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-block-size: 48px; padding: 12px 24px;
  border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 0.98rem;
  transition: transform 0.15s ease-out, background-color 0.15s ease-out, border-color 0.15s ease-out;
}
.btn-primary { background: var(--ink-dim); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--ink-dim) 82%, white); }
.btn-secondary { border: 1px solid var(--line-strong); color: var(--ink); }
.btn-secondary:hover { border-color: var(--ink); }
.btn:active { transform: translateY(1px); }

.hero-prompt-link {
  display: inline-flex; align-items: center;
  min-block-size: 48px;
  text-decoration: none; font-weight: 600; font-size: 0.98rem;
  color: var(--ink);
}
.hero-prompt-link .prompt-prefix {
  font-family: var(--font-mono); font-weight: 700; font-size: 0.9em;
  color: var(--ink-soft); margin-inline-start: 2px;
  animation: caret-blink 1.1s steps(1) infinite;
}
.hero-prompt-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- featured (home, numbered editorial rows) ---------- */
.featured-list { list-style: none; padding: 0; margin: 0; border-block-start: 1px solid var(--line); }
.featured-row { border-block-end: 1px solid var(--line); }
.featured-row > a {
  display: grid; grid-template-columns: auto auto 1fr auto; align-items: center;
  gap: clamp(14px, 3vw, 28px); padding-block: clamp(18px, 3vw, 28px);
  text-decoration: none;
}
.featured-num { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-soft); }
.featured-row .app-icon { inline-size: clamp(52px, 7vw, 72px); block-size: clamp(52px, 7vw, 72px); }
.featured-body { min-inline-size: 0; }
.featured-body h3 { font-size: clamp(1.15rem, 1rem + 1vw, 1.6rem); }
.featured-body p { color: var(--ink-soft); font-size: 0.95rem; margin-block-start: 4px; max-inline-size: 64ch; }
.featured-go { font-family: var(--font-mono); font-size: 1rem; color: var(--ink-soft); transition: color 0.15s ease-out; }
.featured-row a:hover .featured-go { color: var(--accent); }
.featured-foot { margin-block-start: 24px; }

.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent); font-weight: 600; text-decoration: none; font-size: 0.98rem;
  padding-block: 8px;
}
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- capabilities ---------- */
.cap-grid {
  display: grid; gap: clamp(24px, 4vw, 40px);
  grid-template-columns: 1fr;
  border-block-start: 1px solid var(--line); padding-block-start: clamp(24px, 4vw, 40px);
}
.cap { max-inline-size: 44ch; }
.cap .cap-num { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-soft); display: block; margin-block-end: 10px; }
.cap h3 { margin-block-end: 8px; font-size: 1.25rem; }
.cap p { color: var(--ink-soft); font-size: 0.97rem; }

/* ---------- app cards (apps page) ---------- */
.group { margin-block-end: clamp(48px, 8vw, 80px); }
.group:last-of-type { margin-block-end: 0; }
.group-head {
  display: flex; align-items: baseline; gap: 16px;
  border-block-start: 1px solid var(--line); padding-block-start: 16px; margin-block-end: 24px;
}
.group-head h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); }

.card-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  list-style: none; padding: 0; margin: 0;
}

.app-card {
  position: relative;
  display: flex; flex-direction: column; gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 22px;
  transition: transform 0.18s ease-out, border-color 0.18s ease-out;
}
.app-card:hover:not(.app-card--soon) { transform: translateY(-2px); border-color: var(--line-strong); }
.app-card-top { display: flex; align-items: center; gap: 14px; min-inline-size: 0; }
.app-card h3 a { text-decoration: none; }
/* stretch the title link over the whole card */
.app-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-card); }
.app-card:has(h3 a:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.app-card h3 a:focus-visible { outline: none; }

.platform {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-soft); display: block; margin-block-start: 3px;
}
.app-card > p { color: var(--ink-soft); font-size: 0.92rem; flex-grow: 1; }
.app-card-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-soft);
}
.app-card:hover .app-card-link { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
/* two-destination cards: the whole card links to one target; this sits above
   that overlay so it is independently clickable (e.g. an App Store link). */
.app-card-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.app-card-store {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600;
  color: var(--ink); text-decoration: none;
}
.app-card-store:hover { text-decoration: underline; text-underline-offset: 3px; }

.chip {
  align-self: flex-start;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px;
}

/* ---------- app icons ---------- */
.app-icon {
  inline-size: 56px; block-size: 56px; flex-shrink: 0; border-radius: var(--radius-icon);
  /* App Store-style hairline ring so light icons keep an edge on white */
  outline: 1px solid rgba(29, 29, 31, 0.1);
  outline-offset: -1px;
}
.app-icon--shaped { outline: none; }
/* icons whose artwork already carries its own macOS squircle + padding */
.app-icon--shaped { border-radius: 0; transform: scale(1.12); }
/* fallback monogram tile for apps without a public icon yet */
.app-icon--letter {
  display: grid; place-items: center;
  background: var(--ink); color: var(--bg);
  font-family: var(--font-display); font-weight: 600; font-size: 1.6rem;
}

/* ---------- contact ---------- */
.contact { background: var(--ink-dim); color: var(--bg); }
.contact .overline { color: #C7C7CC; }
.contact h2 { max-inline-size: 22ch; }
.contact .lede { color: #D6D6DB; margin-block-start: 14px; }
.contact-mail {
  display: inline-block; margin-block-start: 32px;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1rem + 2.4vw, 2.2rem); font-weight: 600;
  color: var(--bg); text-decoration: none;
  border-block-end: 2px solid rgba(255, 255, 255, 0.35);
  padding-block-end: 4px;
  overflow-wrap: anywhere;
}
.contact-mail:hover { color: #FFFFFF; border-color: #FFFFFF; }
.contact a:focus-visible, .contact :focus-visible { outline-color: var(--bg); }

/* ---------- footer ---------- */
.site-footer { border-block-start: 1px solid var(--line); padding-block: 28px; padding-block-end: max(28px, env(safe-area-inset-bottom)); }
.site-footer .container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 0.85rem; color: var(--ink-soft);
}
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.footer-nav { display: flex; gap: 20px; list-style: none; padding: 0; margin: 0; }

/* ---------- apps page hero ---------- */
.page-hero { padding-block: clamp(48px, 9vw, 96px) clamp(36px, 6vw, 64px); }
.page-hero .overline { display: block; margin-block-end: 16px; }
.page-hero .lede { margin-block-start: 18px; }

/* ---------- reveal motion (JS adds .js to <html>) ---------- */
html.js .reveal { opacity: 0; translate: 0 14px; }
html.js .reveal.in {
  opacity: 1; translate: 0 0;
  transition: opacity 0.5s ease-out, translate 0.5s ease-out;
  transition-delay: var(--reveal-delay, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; translate: none; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- desktop enhancements ---------- */
@media (min-width: 720px) {
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1080px) {
  .cap-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 719px) {
  .featured-row > a { grid-template-columns: auto 1fr auto; }
  .featured-num { display: none; }
  .site-nav a { padding-block: 12px; }
}

@media (max-width: 419px) {
  .site-nav { gap: 10px; }
  .site-nav a { font-size: 0.9rem; }
  .wordmark { font-size: 1.05rem; }
  .site-header .container { padding-inline: 16px; }
}

/* touch devices: 44px minimum tap targets (header controls) */
@media (pointer: coarse) {
  .site-nav a { min-block-size: 44px; display: inline-flex; align-items: center; }
}
