/* ─────────────────────────────────────────────
   ScreenMark – Site CSS (Apple-style redesign)
   ───────────────────────────────────────────── */

:root {
  --ink:          #1d1d1f;
  --ink-soft:     #3a3a3c;
  --muted:        #6e6e73;
  --canvas:       #ffffff;
  --canvas-alt:   #f5f5f7;
  --canvas-card:  #fbfbfd;
  --line:         rgba(0, 0, 0, 0.08);
  --line-strong:  rgba(0, 0, 0, 0.14);
  --accent:       #0a84ff;
  --accent-dark:  #0077ed;
  --accent2:      #5e5ce6;
  --warm:         #f97316;
  --cool-soft:    #dbeafe;
  --warm-soft:    #ffedd5;
  --success:      #34c759;
  --radius-xl:    28px;
  --radius-lg:    20px;
  --radius-md:    14px;
  --radius-sm:    10px;
  --shadow-sm:    0 2px 14px rgba(0,0,0,0.07);
  --shadow-md:    0 8px 40px rgba(0,0,0,0.10);
  --shadow-lg:    0 24px 80px rgba(0,0,0,0.16);
  --shadow-xl:    0 40px 120px rgba(0,0,0,0.22);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
  background: var(--canvas);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
p, li { line-height: 1.7; color: var(--muted); }

/* ── LAYOUT ── */
.shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

/* ── NAVIGATION ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid var(--line);
}

.site-header .shell {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 20px; padding: 14px 0;
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 700;
  font-size: 17px; letter-spacing: -0.3px; color: var(--ink);
}

.brand-mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  color: white; border-radius: 10px; font-size: 18px;
  background: linear-gradient(140deg, var(--accent), var(--accent2));
  box-shadow: 0 6px 18px rgba(10,132,255,0.35);
  flex-shrink: 0;
}

.nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }

.nav a {
  display: inline-flex; align-items: center;
  padding: 7px 14px; border-radius: 50px;
  font-size: 14px; font-weight: 500;
  color: var(--muted); transition: color 0.15s, background 0.15s;
}
.nav a:hover { color: var(--ink); background: var(--canvas-alt); }

/* App Store button in nav */
.nav .appstore-nav {
  background: var(--ink); color: #fff !important;
  font-weight: 600; padding: 8px 18px; border-radius: 50px;
  font-size: 14px; transition: opacity 0.2s;
}
.nav .appstore-nav:hover { opacity: 0.82; background: var(--ink); }

/* ── EYEBROW / BADGES ── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px; border-radius: 50px;
  background: rgba(10,132,255,0.08); color: var(--accent);
  font-size: 12px; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase;
}

/* ── HERO ── */
.hero {
  padding: 80px 0 0;
  background: linear-gradient(180deg, #fff 0%, var(--canvas-alt) 100%);
  overflow: hidden;
}

.hero-copy { text-align: center; padding: 0 24px; }

.hero-copy h1 {
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 700; letter-spacing: -3px; line-height: 1.02;
  color: var(--ink); margin: 22px 0 20px;
  max-width: 900px; margin-left: auto; margin-right: auto;
}

.hero-copy h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-copy > p {
  font-size: clamp(16px, 2vw, 20px); color: var(--muted);
  max-width: 560px; margin: 0 auto 38px; line-height: 1.65;
}

/* CTA row */
.cta-row {
  display: flex; flex-wrap: wrap; gap: 14px;
  justify-content: center; margin: 0 0 60px;
}

/* ── BUTTONS ── */
.btn-appstore {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff;
  padding: 14px 28px; border-radius: 50px;
  font-size: 15px; font-weight: 700; letter-spacing: -0.2px;
  box-shadow: var(--shadow-md);
  transition: opacity 0.2s, transform 0.15s;
}
.btn-appstore:hover { opacity: 0.82; transform: translateY(-1px); color: #fff; }
.btn-appstore svg { flex-shrink: 0; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--canvas-alt); color: var(--ink);
  padding: 14px 28px; border-radius: 50px;
  font-size: 15px; font-weight: 600;
  border: 0.5px solid var(--line-strong);
  transition: background 0.2s, transform 0.15s;
}
.btn-ghost:hover { background: #e8e8ed; transform: translateY(-1px); }

.button-link.primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff;
  padding: 14px 28px; border-radius: 50px;
  font-size: 15px; font-weight: 700;
  box-shadow: var(--shadow-md);
  transition: opacity 0.2s, transform 0.15s;
}
.button-link.primary:hover { opacity: 0.82; transform: translateY(-1px); color: #fff; }

.button-link.secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--canvas-alt); color: var(--ink);
  padding: 14px 28px; border-radius: 50px;
  font-size: 15px; font-weight: 600;
  border: 0.5px solid var(--line-strong);
  transition: background 0.2s, transform 0.15s;
}
.button-link.secondary:hover { background: #e8e8ed; transform: translateY(-1px); }

/* ── HERO SCREENSHOT ── */
.hero-screenshot-wrap {
  max-width: 1060px; margin: 0 auto;
  padding: 0 24px;
}

.macos-window {
  background: #fff;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -2px 0 0 var(--line), 0 -40px 100px rgba(0,0,0,0.14);
  overflow: hidden;
}

.macos-titlebar {
  background: #f0f0f0;
  height: 36px; display: flex; align-items: center; padding: 0 14px; gap: 7px;
  border-bottom: 1px solid #ddd;
  flex-shrink: 0;
}

.macos-dot {
  width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0;
}
.macos-dot.red    { background: #ff5f57; }
.macos-dot.yellow { background: #ffbd2e; }
.macos-dot.green  { background: #28c840; }

.macos-window img {
  width: 100%; display: block;
  border-radius: 0 0 0 0;
  max-height: 540px; object-fit: cover; object-position: top;
}

/* ── PROOF BAR ── */
.proof-bar {
  background: var(--canvas-alt);
  border-top: 0.5px solid var(--line); border-bottom: 0.5px solid var(--line);
  padding: 18px 40px;
  display: flex; align-items: center; justify-content: center;
  gap: 40px; flex-wrap: wrap;
}

.proof-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--muted); font-weight: 500;
}
.proof-item .pi-icon { font-size: 18px; }

/* ── SECTIONS ── */
.section { padding: 80px 0; }
.section-alt { background: var(--canvas-alt); }
.section-border-top { border-top: 0.5px solid var(--line); }

.section-header { text-align: center; margin-bottom: 56px; }
.section-header .eyebrow { margin-bottom: 14px; }
.section-header h2 { margin-bottom: 14px; }
.section-header p { font-size: 17px; max-width: 540px; margin: 0 auto; }

h1 { font-size: clamp(3rem, 7vw, 5rem); letter-spacing: -0.05em; line-height: 1.05; margin: 0 0 16px; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.04em; line-height: 1.08; margin: 0 0 14px; }
h3 { font-size: 1.2rem; letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 10px; }

/* ── FEATURE GRID ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  background: var(--canvas-card);
  border: 0.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform 0.22s, box-shadow 0.22s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.card-icon {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 18px; flex-shrink: 0;
}
.card-icon.blue   { background: #e4f1ff; }
.card-icon.purple { background: #ece8ff; }
.card-icon.orange { background: #fff2e5; }
.card-icon.green  { background: #e4f7ed; }
.card-icon.pink   { background: #ffe4f0; }
.card-icon.teal   { background: #e4f5f5; }
.card-icon.yellow { background: #fffbe4; }
.card-icon.indigo { background: #eaebff; }

.pro-badge {
  display: inline-block;
  background: #6366f1;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 1px 5px;
  border-radius: 4px;
  vertical-align: middle;
  line-height: 1.6;
}

/* ── SCREENSHOT GALLERY ── */
.gallery-section {
  background: var(--canvas-alt);
  padding: 80px 0 60px;
  border-top: 0.5px solid var(--line);
  border-bottom: 0.5px solid var(--line);
}

.gallery-scroll-wrap {
  overflow-x: auto; overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 8px 40px 24px;
}
.gallery-scroll-wrap::-webkit-scrollbar { display: none; }

.gallery-track {
  display: flex; gap: 20px; width: max-content;
}

.gallery-item {
  flex-shrink: 0; width: 640px;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md); border: 0.5px solid var(--line);
  background: #fff;
  cursor: pointer; transition: transform 0.25s, box-shadow 0.25s;
}
.gallery-item:hover { transform: scale(1.025); box-shadow: var(--shadow-lg); }
.gallery-item img { width: 100%; height: auto; display: block; }
.gallery-caption {
  padding: 12px 18px;
  font-size: 13px; font-weight: 600; color: var(--muted);
  border-top: 0.5px solid var(--line);
}

/* ── SPOTLIGHT ROWS ── */
.spotlight-section { padding: 80px 0; }

.spotlight-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
  max-width: 1100px; margin: 0 auto 80px;
  padding: 0 24px;
}
.spotlight-row:last-child { margin-bottom: 0; }
.spotlight-row.flip { direction: rtl; }
.spotlight-row.flip > * { direction: ltr; }

.spotlight-tag {
  display: inline-block; font-size: 12px; font-weight: 700;
  letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}

.spotlight-content h2 { font-size: clamp(26px, 3.5vw, 36px); letter-spacing: -0.8px; }
.spotlight-content p  { font-size: 16px; line-height: 1.75; margin-bottom: 10px; }

.spotlight-visual img {
  width: 100%; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); border: 0.5px solid var(--line);
  display: block;
}

/* ── PILL LIST ── */
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pill {
  background: var(--canvas-alt); border: 0.5px solid var(--line-strong);
  font-size: 13px; font-weight: 500; color: var(--muted);
  padding: 5px 13px; border-radius: 50px;
}
.pill.cool { background: var(--cool-soft); color: #1d4ed8; border-color: transparent; }
.pill.warm { background: var(--warm-soft); color: #c2410c; border-color: transparent; }

/* ── PRICING ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.price-card {
  background: var(--canvas-card);
  border: 0.5px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  position: relative;
}

.price-card.highlight {
  border-color: rgba(10,132,255,0.3);
  background: linear-gradient(180deg, rgba(10,132,255,0.04), var(--canvas-card));
  box-shadow: 0 0 0 1px rgba(10,132,255,0.15), var(--shadow-sm);
}

.price-card .eyebrow { margin-bottom: 12px; }

.price-tag {
  display: inline-flex; align-items: baseline; gap: 6px;
  font-size: 2.2rem; font-weight: 800; color: var(--ink); margin: 12px 0 10px;
}
.price-tag span { font-size: 0.95rem; font-weight: 600; color: var(--muted); }

/* ── METRICS / HERO STATS ── */
.hero-metrics {
  display: flex; gap: 0;
  justify-content: center; flex-wrap: wrap;
  border-top: 0.5px solid var(--line);
  border-bottom: 0.5px solid var(--line);
  background: var(--canvas-alt);
  margin-top: 40px;
}
.metric {
  flex: 1 1 200px;
  padding: 24px 32px; text-align: center;
  border-right: 0.5px solid var(--line);
}
.metric:last-child { border-right: none; }
.metric strong { display: block; font-size: 1.4rem; color: var(--ink); margin-bottom: 4px; }
.metric span { font-size: 14px; }

/* ── INFO LIST (panels) ── */
.panel {
  background: var(--canvas-card);
  border: 0.5px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
}

.info-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 12px;
}

.info-list li {
  background: var(--canvas-alt);
  border: 0.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.info-list li strong {
  display: block; font-size: 15px;
  color: var(--ink); margin-bottom: 4px;
}

.accent-rule {
  width: 56px; height: 3px; border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  margin: 16px 0 22px;
}

/* ── TWO-UP LAYOUT ── */
.two-up {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

/* ── CTA BAND ── */
.cta-band {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  padding: 80px 40px; text-align: center;
}
.cta-band h2  { color: #fff; margin-bottom: 14px; letter-spacing: -1.5px; }
.cta-band p   { color: rgba(255,255,255,0.8); font-size: 18px; max-width: 480px; margin: 0 auto 38px; }

.btn-white {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: var(--accent);
  padding: 15px 32px; border-radius: 50px;
  font-size: 16px; font-weight: 700;
  box-shadow: 0 10px 40px rgba(0,0,0,0.22);
  transition: opacity 0.2s, transform 0.15s;
}
.btn-white:hover { opacity: 0.9; transform: translateY(-2px); color: var(--accent); }

/* ── REQUIREMENTS STRIP ── */
.req-strip {
  background: var(--canvas-alt);
  border-top: 0.5px solid var(--line); border-bottom: 0.5px solid var(--line);
  padding: 32px 40px;
  display: flex; justify-content: center; flex-wrap: wrap; gap: 48px;
}
.req-item { text-align: center; }
.req-label { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.req-value { font-size: 16px; font-weight: 600; color: var(--ink); }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: var(--canvas-alt);
  border-bottom: 0.5px solid var(--line);
  padding: 64px 0 52px; text-align: center;
}
.page-hero h1 {
  font-size: clamp(36px, 5vw, 52px);
  letter-spacing: -1.5px; margin-bottom: 12px;
}
.page-hero p { font-size: 18px; max-width: 520px; margin: 0 auto; }

/* ── HIGHLIGHT BOX ── */
.highlight-box {
  background: #e8f3ff;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px; margin-bottom: 44px;
}
.highlight-box strong { display: block; font-size: 15px; color: var(--ink); margin-bottom: 6px; }
.highlight-box p { font-size: 15px; color: var(--ink-soft); margin: 0; }

/* ── FAQ ── */
.faq-list { display: grid; gap: 10px; }
.faq-item {
  border: 0.5px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--canvas-card);
}
.faq-q {
  padding: 18px 22px; font-size: 15px; font-weight: 600;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  gap: 12px; user-select: none; color: var(--ink);
  transition: background 0.15s;
}
.faq-q:hover { background: var(--canvas-alt); }
.faq-q .faq-arrow {
  font-size: 11px; color: var(--muted); flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item.open .faq-q .faq-arrow { transform: rotate(180deg); }
.faq-a {
  display: none;
  padding: 0 22px 18px; font-size: 15px; color: var(--muted); line-height: 1.7;
  border-top: 0.5px solid var(--line);
}
.faq-item.open .faq-a { display: block; padding-top: 16px; }

/* ── CONTACT CARDS ── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px; margin-bottom: 56px;
}
.contact-card {
  background: var(--canvas-card); border: 0.5px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px 24px; text-align: center;
  text-decoration: none; color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.contact-card .cc-icon { font-size: 30px; margin-bottom: 12px; display: block; }
.contact-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
.contact-card p { font-size: 14px; line-height: 1.55; }
.contact-card .cc-link {
  display: inline-block; margin-top: 13px; font-size: 13px;
  font-weight: 700; color: var(--accent);
}

/* ── REQUIREMENTS TABLE ── */
.req-table {
  width: 100%; border-collapse: collapse;
  border: 0.5px solid var(--line);
  border-radius: var(--radius-md); overflow: hidden;
  margin-bottom: 44px;
}
.req-table th {
  background: var(--canvas-alt); padding: 11px 20px; text-align: left;
  font-size: 12px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase;
  color: var(--muted); border-bottom: 0.5px solid var(--line);
}
.req-table td {
  padding: 14px 20px; font-size: 15px; color: var(--ink);
  border-bottom: 0.5px solid var(--line);
}
.req-table tr:last-child td { border-bottom: none; }
.req-table tr:nth-child(even) td { background: var(--canvas-alt); }

/* ── LEGAL NOTE ── */
.legal-note { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ── DIVIDER ── */
.section-divider { border: none; border-top: 0.5px solid var(--line); margin: 44px 0 36px; }

/* ── FOOTER ── */
.site-footer {
  background: var(--canvas);
  border-top: 0.5px solid var(--line);
  padding: 36px 0;
}

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

.footer-brand { font-size: 15px; font-weight: 700; color: var(--ink); }

.footer-links { display: flex; flex-wrap: wrap; gap: 6px; }
.footer-links a {
  font-size: 14px; color: var(--muted); padding: 5px 12px;
  border-radius: 50px; transition: color 0.15s, background 0.15s;
}
.footer-links a:hover { color: var(--ink); background: var(--canvas-alt); }

.footer-copy { font-size: 14px; color: var(--muted); }

/* ── LIGHTBOX ── */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.88);
  align-items: center; justify-content: center; padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw; max-height: 88vh; border-radius: 12px;
  box-shadow: 0 40px 120px rgba(0,0,0,0.6);
}
.lightbox-close {
  position: fixed; top: 20px; right: 20px;
  background: rgba(255,255,255,0.14); border: none; cursor: pointer;
  color: #fff; font-size: 22px; width: 44px; height: 44px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.26); }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .feature-grid,
  .pricing-grid,
  .cards-grid,
  .two-up        { grid-template-columns: 1fr; }
  .spotlight-row { grid-template-columns: 1fr; gap: 32px; }
  .spotlight-row.flip { direction: ltr; }
  .gallery-item { width: 300px; }
}

@media (max-width: 680px) {
  .shell { width: calc(100% - 32px); }
  .site-header .shell { padding: 10px 0; }
  .hero { padding: 56px 0 0; }
  .hero-copy h1 { letter-spacing: -2px; }
  .section { padding: 56px 0; }
  .proof-bar { gap: 20px; padding: 16px 24px; }
  .req-strip { gap: 24px; padding: 24px; }
  .cta-band { padding: 56px 24px; }
  .page-hero { padding: 48px 24px 36px; }
  .hero-metrics { border: none; flex-direction: column; gap: 0; }
  .metric { border-right: none; border-bottom: 0.5px solid var(--line); }
  .metric:last-child { border-bottom: none; }
  .site-footer .shell { flex-direction: column; align-items: flex-start; }
  .nav .nav-hide-sm { display: none; }
}

.brand-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
  object-fit: contain;
}
