/* =========================================================
   Zehavi Works — main stylesheet
   ---------------------------------------------------------
   Design tokens at the top. Components below.
   Edit tokens to change the overall look globally.
   ========================================================= */

:root {
  /* Color */
  --bg: #F6F7F9;
  --bg-elevated: #FFFFFF;
  --ink: #0B0B0B;
  --ink-soft: #3A3A3A;
  --ink-muted: #6B7280;
  --line: #E4E7EC;
  --line-strong: #CBD0D8;
  --accent: #1E40AF;       /* links only */
  --accent-hover: #1E3A8A;
  --stage-start: #EEF1F5;
  --stage-end: #D9DEE5;

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  /* Rhythm */
  --measure: 66ch;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(11, 11, 11, 0.04);
  --shadow-md: 0 6px 24px rgba(11, 11, 11, 0.06);

  /* Layout */
  --container: 1120px;
  --gutter: clamp(20px, 4vw, 40px);
}

/* =========================================================
   Reset-ish
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
p { margin: 0 0 1em; max-width: var(--measure); }
ul { margin: 0 0 1em; padding-left: 1.2em; }
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 0.4em;
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); font-family: var(--font-sans); font-weight: 600; }

/* =========================================================
   Layout helpers
   ========================================================= */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section   { padding: clamp(40px, 6vw, 72px) 0; }
.section-tight { padding: clamp(28px, 4vw, 48px) 0; }
.section-alt { background: var(--bg-elevated); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(28px, 4vw, 44px);
}
.section-intro h1,
.section-intro h2 { margin-left: auto; margin-right: auto; }
.section-intro .lede { margin-left: auto; margin-right: auto; }
.section-intro .eyebrow { max-width: none; margin-left: auto; margin-right: auto; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  margin: 0 0 12px;
}
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand-mark {
  height: 32px;
  width: auto;
  object-fit: contain;
  display: block;
}
.brand-mark-sm { height: 28px; }

.brand-panel {
  background: linear-gradient(160deg, var(--stage-start) 0%, var(--stage-end) 100%);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}
.brand-panel img {
  max-width: 240px;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.brand-name { font-family: var(--font-serif); font-weight: 700; font-size: 1.1rem; letter-spacing: 0.01em; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.primary-nav a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
}
.primary-nav a:hover { color: var(--ink); text-decoration: none; }
.primary-nav a[aria-current="page"] { color: var(--ink); }

/* =========================================================
   Hero (homepage)
   ========================================================= */
.hero {
  padding: clamp(24px, 4vw, 56px) 0 clamp(28px, 4vw, 48px);
  text-align: left;
}
.hero h1 { max-width: 18ch; margin-bottom: 20px; }
.hero .lede { max-width: 72ch; font-size: clamp(1.05rem, 1.6vw, 1.3rem); }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; }

/* =========================================================
   Hero variant layouts (preview page)
   ========================================================= */
.hero-v2 .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-v2 .hero-text h1 { max-width: 14ch; }
.hero-v2 .hero-visual { position: relative; width: 100%; }
@media (max-width: 860px) {
  .hero-v2 .container { grid-template-columns: 1fr; }
  .hero-v2 .hero-visual { max-width: 440px; margin: 16px auto 0; }
}

/* Variant 1: floating phone stack */
.hero-visual-stack {
  height: clamp(380px, 42vw, 500px);
}
.hero-visual-stack .phone {
  position: absolute;
  width: clamp(150px, 18vw, 210px);
  aspect-ratio: 1320 / 2868;
  border-radius: 26px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 30px 60px rgba(11, 11, 11, 0.16), 0 8px 20px rgba(11, 11, 11, 0.08);
  border: 1px solid rgba(11, 11, 11, 0.06);
}
.hero-visual-stack .phone img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-visual-stack .phone-a {
  top: 30px;
  left: 4%;
  transform: rotate(-8deg);
  z-index: 1;
}
.hero-visual-stack .phone-b {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}
.hero-visual-stack .phone-c {
  top: 40px;
  right: 4%;
  transform: rotate(8deg);
  z-index: 2;
}

/* Variant 2: icon constellation */
.hero-visual-constellation .const-stage {
  background: linear-gradient(160deg, var(--stage-start) 0%, var(--stage-end) 100%);
  border-radius: var(--radius-lg);
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
}
.hero-visual-constellation .const-icon {
  position: absolute;
  width: clamp(92px, 14vw, 150px);
  height: clamp(92px, 14vw, 150px);
  border-radius: clamp(20px, 3vw, 32px);
  object-fit: cover;
  box-shadow: 0 16px 38px rgba(11, 11, 11, 0.14), 0 4px 10px rgba(11, 11, 11, 0.06);
}
.hero-visual-constellation .const-a { top: 14%; left: 14%; }
.hero-visual-constellation .const-b { top: 18%; right: 12%; }
.hero-visual-constellation .const-c {
  bottom: 10%; left: 50%;
  transform: translateX(-50%);
  width: clamp(108px, 16vw, 170px);
  height: clamp(108px, 16vw, 170px);
  border-radius: clamp(24px, 3.5vw, 36px);
}
.hero-visual-constellation .const-dot {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0.18;
}
.hero-visual-constellation .const-dot-1 { top: 8%; right: 38%; }
.hero-visual-constellation .const-dot-2 { bottom: 28%; left: 8%; width: 5px; height: 5px; }
.hero-visual-constellation .const-dot-3 { top: 52%; right: 28%; width: 6px; height: 6px; }

/* Variant 3: brand mark + mini row */
.hero-visual-brand .brand-stage {
  background: linear-gradient(160deg, var(--stage-start) 0%, var(--stage-end) 100%);
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual-brand .brand-watermark {
  position: absolute;
  width: 92%;
  max-width: 680px;
  opacity: 0.09;
  transform: rotate(-6deg);
  pointer-events: none;
}
.hero-visual-brand .brand-row {
  position: relative;
  z-index: 2;
  display: flex;
  gap: clamp(10px, 1.5vw, 18px);
  padding: 0 clamp(16px, 3vw, 36px);
  align-items: flex-end;
}
.hero-visual-brand .mini-phone {
  width: clamp(86px, 11vw, 132px);
  aspect-ratio: 1320 / 2868;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 20px 40px rgba(11, 11, 11, 0.15), 0 6px 14px rgba(11, 11, 11, 0.06);
  border: 1px solid rgba(11, 11, 11, 0.06);
}
.hero-visual-brand .mini-phone img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-visual-brand .mini-phone:nth-child(1) { transform: translateY(24px); }
.hero-visual-brand .mini-phone:nth-child(3) { transform: translateY(24px); }

/* Preview page bars */
.preview-bar {
  position: sticky;
  top: 56px;
  z-index: 40;
  background: var(--bg-elevated);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  padding: 10px 0;
}
.preview-bar .container { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.preview-bar a { color: var(--ink-soft); }
.preview-label {
  background: var(--bg);
  padding: 32px 0 0;
  scroll-margin-top: 112px;
}
.preview-label .eyebrow { color: var(--accent); font-weight: 600; }
.preview-label h2 { margin-top: 4px; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 500;
  font-family: var(--font-sans);
  transition: transform 0.1s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #1d1d1d; color: #fff; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--bg-elevated); color: var(--ink); border-color: var(--ink); }

.app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 500;
}
.app-store-badge:hover { background: #1d1d1d; color: #fff; text-decoration: none; transform: translateY(-1px); }
.app-store-badge svg { flex-shrink: 0; }

/* =========================================================
   App cards
   ========================================================= */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.app-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  overflow: hidden;
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.app-card:hover {
  text-decoration: none;
  color: var(--ink);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.app-card-screenshot {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, var(--stage-start) 0%, var(--stage-end) 100%);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 28px 28px 0;
}
.app-card-screenshot img {
  max-width: 58%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: bottom center;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.08), 0 -2px 6px rgba(0, 0, 0, 0.04);
}
.app-card-tiny-baby .app-card-screenshot img {
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 -12px 28px rgba(0, 0, 0, 0.12));
}
.app-card-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink-muted);
  letter-spacing: 0.01em;
}
.app-card-body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.app-card-body .btn { margin-top: auto; align-self: flex-start; }
.app-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
}
.app-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}
.app-card-headings { min-width: 0; flex: 1; }
.app-card-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  margin: 0;
  line-height: 1.2;
}
.app-card-meta { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-muted); margin: 2px 0 0; }
.app-card-meta strong { color: var(--ink); font-weight: 600; }
.app-card-blurb { font-size: 1.05rem; color: var(--ink-soft); margin-bottom: 12px; }
.app-card-cta { font-size: 0.95rem; color: var(--accent); font-weight: 500; }

/* =========================================================
   Feature grid (3-up on home)
   ========================================================= */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.feature-card h3 { margin-bottom: 8px; font-family: var(--font-serif); font-size: 1.3rem; }
.feature-card p { color: var(--ink-soft); }

/* =========================================================
   Split / about teaser
   ========================================================= */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 720px) { .split { grid-template-columns: 1fr; } }

/* =========================================================
   Product page hero
   ========================================================= */
.product-hero { padding: clamp(40px, 6vw, 80px) 0 clamp(24px, 4vw, 44px); }
.product-hero .eyebrow { color: var(--ink-muted); margin: 0 0 6px; }
.product-hero h1 { margin-bottom: 18px; }
.product-hero-head {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 12px;
}
.product-hero-icon {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.10), 0 2px 6px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .product-hero-head { gap: 16px; }
  .product-hero-icon { width: 68px; height: 68px; border-radius: 18px; }
}
.product-hero .platforms {
  display: flex; flex-wrap: wrap; gap: 10px;
  font-size: 0.85rem; color: var(--ink-muted);
  margin: 8px 0 28px;
}
.product-hero .platforms span { padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-elevated); }
.product-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.product-screenshot {
  margin-top: clamp(24px, 3vw, 40px);
  background: linear-gradient(160deg, var(--stage-start) 0%, var(--stage-end) 100%);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-muted);
  font-family: var(--font-serif);
  overflow: hidden;
  position: relative;
  padding: clamp(24px, 4vw, 48px);
  min-height: 280px;
}
.product-screenshot img {
  max-width: 100%;
  max-height: 560px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 22px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.14), 0 8px 20px rgba(0, 0, 0, 0.06);
}
.product-screenshot.phone-cutout img {
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 30px 42px rgba(0, 0, 0, 0.16));
}
.product-screenshot.square-hero img {
  max-height: 420px;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.10);
}

/* =========================================================
   Callout / at-a-glance
   ========================================================= */
.callout-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
}
@media (max-width: 820px) { .callout-grid { grid-template-columns: 1fr; } }
.callout-grid ul { list-style: none; padding: 0; }
.callout-grid li {
  padding: 10px 0 10px 26px;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.callout-grid li:last-child { border-bottom: 0; }
.callout-grid li::before {
  content: "";
  position: absolute; left: 0; top: 18px;
  width: 10px; height: 10px;
  border-radius: 999px;
  background: var(--ink);
}

.pill-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pill-list li {
  padding: 8px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  position: static;
}
.callout-grid .pill-list li { border-bottom: 0; position: static; }
.callout-grid .pill-list li::before { content: none; display: none; }

/* =========================================================
   Feature list on product pages
   ========================================================= */
.product-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.product-feature { padding: 28px; background: var(--bg-elevated); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.product-feature h3 { font-size: 1.2rem; margin-bottom: 10px; font-family: var(--font-serif); }
.product-feature p { color: var(--ink-soft); margin: 0; }

/* =========================================================
   Screenshot gallery (product pages)
   ========================================================= */
.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(24px, 3vw, 40px);
}
.screenshot-tile {
  margin: 0;
  padding: clamp(20px, 3vw, 36px) clamp(16px, 2vw, 28px);
  background: linear-gradient(160deg, var(--stage-start) 0%, var(--stage-end) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}
.screenshot-tile img {
  max-width: 100%;
  max-height: 480px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.05);
}
.screenshot-tile.phone-cutout img {
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.14));
}

/* =========================================================
   FAQ accordion
   ========================================================= */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  background: transparent;
  border: none;
  font: inherit;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.faq-question .chev {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  transition: transform 0.2s ease, background 0.2s ease;
}
.faq-question .chev::after {
  content: "";
  width: 8px; height: 8px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg) translate(-1px, -1px);
}
.faq-item[open] .chev { transform: rotate(180deg); background: var(--bg); }
.faq-answer { padding: 0 0 22px; color: var(--ink-soft); max-width: 70ch; }
.faq-answer p { margin: 0; }

/* =========================================================
   Related apps row
   ========================================================= */
.related-apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--line);
  padding: clamp(32px, 4vw, 56px) 0 20px;
  margin-top: clamp(32px, 5vw, 64px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  margin-bottom: 40px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand .brand-name { font-size: 1rem; }
.footer-blurb { margin-top: 14px; color: var(--ink-soft); }
.footer-meta { font-size: 0.88rem; color: var(--ink-muted); }
.footer-col h4 { margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--ink-soft); font-size: 0.95rem; }
.footer-col a:hover { color: var(--ink); text-decoration: none; }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--ink-muted);
  font-size: 0.88rem;
}
.footer-bottom a { color: var(--ink-muted); }
.footer-bottom a:hover { color: var(--ink); }

/* =========================================================
   Content pages (about, legal, etc.)
   ========================================================= */
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 0.3em; }
.prose a { color: var(--accent); }

/* Contact card grid */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.contact-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
}
.contact-card h3 { font-family: var(--font-serif); font-size: 1.15rem; margin-bottom: 10px; }
.contact-card .email { font-family: var(--font-sans); font-size: 1.1rem; font-weight: 500; display: block; margin-bottom: 10px; }

/* Support page grid reuses app-card styling */

/* Accessibility: focus states */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Skip nav */
a.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px;
}
a.skip:focus { left: 16px; top: 10px; z-index: 1000; }

/* =========================================================
   Responsive tweaks
   ========================================================= */
@media (max-width: 560px) {
  .primary-nav ul { gap: 18px; }
  .hero { padding-top: 56px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Contact form
   ========================================================= */

.contact-form {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  gap: 8px;
  letter-spacing: 0.01em;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: var(--shadow-sm);
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(11, 11, 11, 0.08);
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
  font-family: var(--font-sans);
  line-height: 1.5;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

.contact-form button[type="submit"] {
  align-self: flex-start;
  margin-top: 8px;
}

.contact-form button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-status {
  margin: 12px 0 0;
  font-size: 0.95rem;
  color: var(--ink-muted);
  min-height: 1.25em;
}

.form-status--error {
  color: #b4232c;
}

.contact-alternatives {
  max-width: 640px;
  margin: 56px auto 0;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.contact-alternatives p {
  margin: 0 0 12px;
}

.contact-alternatives p:last-child {
  margin-bottom: 0;
}
