/*
 * Bayim landing — extracted from index.html (audit M12).
 *
 * Inline <style> was ~470 lines, costing a fresh download on every visit.
 * Lifting it into a separate file lets the browser cache it independently
 * of the HTML; the HTML still gets re-fetched on every visit (for fresh
 * copy / OG tags / scripts) but the CSS hits the cache.
 *
 * Cache-busting: index.html loads this as `style.css?v=YYYYMMDD`. Bump
 * the v= when the file changes so updated styles ship immediately
 * instead of waiting on browser cache TTL.
 */

:root {
  --primary: #DC2626;
  --primary-dark: #B91C1C;
  --primary-soft: #FEE2E2;
  --ink: #0F172A;
  --ink-muted: #475569;
  --ink-subtle: #94A3B8;
  --bg: #FFFFFF;
  --bg-soft: #FAFAFA;
  --line: #E2E8F0;
  --line-soft: #F1F5F9;
  --success: #047857;
  --radius: 14px;
  --max-w: 1120px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Apple Color Emoji", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { overflow-x: hidden; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
.nav {
  padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  z-index: 50;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-block;
  /* Handshake icon (assets/images/icon.png) — same mark used on the
     iOS/Android home screen + Web app favicon; keeps the brand
     consistent across every surface. */
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-links a {
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 500;
}

.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--primary-dark); text-decoration: none; }

@media (max-width: 640px) {
  .nav-links a:not(.nav-cta):not(.lang-switch) { display: none; }
}

/* Hero */
.hero {
  padding: 72px 0 56px;
  background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
}

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

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 48px 0 32px; }
}

.hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin: 0 0 20px;
  font-weight: 800;
}

.hero h1 .accent { color: var(--primary); }

.hero p.lead {
  font-size: clamp(17px, 2vw, 19px);
  line-height: 1.55;
  color: var(--ink-muted);
  margin: 0 0 32px;
  max-width: 520px;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: #fff !important;
  padding: 14px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.15s, background 0.15s;
}
.store-btn:hover {
  background: #1E293B;
  text-decoration: none;
  transform: translateY(-1px);
}
.store-btn .pre { font-size: 11px; opacity: 0.7; display: block; font-weight: 500; }
.store-btn .main { font-size: 16px; display: block; font-weight: 700; line-height: 1.15; }

/* Primary CTA — the one live path before the stores go public. */
.store-btn.primary-cta { background: var(--primary); }
.store-btn.primary-cta:hover { background: var(--primary-dark); }

/* Coming-soon store badges — inert until the App Store / Play listings
   go live, then they swap to the real download links. */
.store-soon { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.store-btn.soon {
  background: var(--line-soft);
  color: var(--ink-subtle) !important;
  cursor: default;
  box-shadow: none;
}
.store-btn.soon:hover { background: var(--line-soft); transform: none; }
.store-btn.soon .pre { opacity: 0.85; }
/* On the dark bottom-CTA the muted badge reads as translucent white. */
.cta-final .store-btn.soon {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.55) !important;
}
.cta-final .store-btn.soon:hover { background: rgba(255, 255, 255, 0.08); }

/* Language switcher (TR | EN) — pages are single-language, never mixed. */
.lang-switch {
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.lang-switch:hover { background: var(--bg-soft); text-decoration: none; }

/* Hero phone mockup — a real Bayim "Siparişlerim" screen in a device frame */
.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 0;
}
.phone {
  width: 268px;
  height: 548px;
  background: #0F172A;
  border-radius: 44px;
  padding: 11px;
  box-shadow: 0 32px 64px -24px rgba(15, 23, 42, 0.5),
              0 0 0 1px rgba(15, 23, 42, 0.05);
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--bg-soft);
  border-radius: 34px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.phone-topbar {
  background: var(--primary);
  padding: 26px 18px 16px;
  color: #fff;
  flex-shrink: 0;
}
.phone-topbar .t-title { font-size: 17px; font-weight: 700; letter-spacing: -0.2px; }
.phone-topbar .t-sub { font-size: 11.5px; opacity: 0.85; margin-top: 3px; }
.phone-body { padding: 13px; display: flex; flex-direction: column; gap: 9px; }
.p-card {
  background: #fff;
  border-radius: 13px;
  padding: 12px 13px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.07);
}
.p-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.p-store { font-size: 12.5px; font-weight: 700; color: var(--ink); }
.p-badge {
  font-size: 9.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.p-badge.ok   { background: #D1FAE5; color: #047857; }
.p-badge.prep { background: #FEF3C7; color: #B45309; }
.p-badge.ship { background: #DBEAFE; color: #1D4ED8; }
.p-meta { font-size: 10.5px; color: var(--ink-subtle); margin-top: 6px; }
.p-amount { font-size: 13.5px; font-weight: 700; color: var(--ink); margin-top: 3px; }

/* Trust / proof bar */
.proof {
  padding: 28px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg);
}
.proof-inner {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}
.proof-inner span { display: inline-flex; align-items: center; gap: 6px; }

/* Features */
.section { padding: 80px 0; }
@media (max-width: 880px) { .section { padding: 56px 0; } }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -1px;
  margin: 0 0 12px;
  font-weight: 800;
  line-height: 1.15;
}
.section-head p {
  font-size: 17px;
  color: var(--ink-muted);
  margin: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feature {
  padding: 28px 24px;
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  transition: border-color 0.2s, transform 0.2s;
}
.feature:hover {
  border-color: var(--line);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--primary);
}
.feature-icon svg { width: 22px; height: 22px; }
/* Inline-SVG icons: inherit currentColor, consistent stroke */
.icon { display: inline-block; vertical-align: middle; }
.proof-inner .icon { width: 16px; height: 16px; color: var(--ink-muted); }
.store-btn .icon { width: 20px; height: 20px; }

.feature h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.feature p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.55;
}

/* Dual persona */
.persona-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 760px) { .persona-grid { grid-template-columns: 1fr; } }

.persona {
  padding: 36px 32px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--bg);
}
.persona.buyer {
  background: linear-gradient(160deg, #F8FAFC 0%, #FFFFFF 60%);
  border-color: var(--line);
}
.persona.supplier {
  background: linear-gradient(160deg, var(--primary-soft) 0%, #FFFFFF 60%);
  border-color: #FECACA;
}

.persona-eyebrow {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 8px;
}

.persona h3 {
  margin: 0 0 16px;
  font-size: 24px;
  letter-spacing: -0.5px;
  font-weight: 800;
}

.persona ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.persona li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 15px;
  color: var(--ink);
}
.persona li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 8px;
  color: var(--success);
  font-weight: 700;
}

/* FAQ */
.faq-list { max-width: 720px; margin: 0 auto; }
details {
  border-bottom: 1px solid var(--line-soft);
  padding: 20px 0;
}
details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+";
  font-size: 24px;
  color: var(--ink-subtle);
  font-weight: 300;
  transition: transform 0.2s;
}
details[open] summary::after {
  transform: rotate(45deg);
}
details p {
  margin: 12px 0 0;
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* CTA bottom */
.cta-final {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: 72px 24px;
  border-radius: 24px;
  margin: 40px auto;
  max-width: calc(var(--max-w) - 48px);
}
.cta-final h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.8px;
  font-weight: 800;
}
.cta-final p {
  margin: 0 0 28px;
  color: #CBD5E1;
  font-size: 17px;
}
.cta-final .store-btn { background: var(--primary); }
.cta-final .store-btn:hover { background: var(--primary-dark); }

/* English summary */
.en-summary {
  background: var(--bg-soft);
  padding: 48px 0;
  border-top: 1px solid var(--line-soft);
}
.en-summary h2 {
  font-size: 22px;
  margin: 0 0 12px;
  letter-spacing: -0.3px;
}
.en-summary p {
  color: var(--ink-muted);
  font-size: 15px;
  max-width: 640px;
  margin: 0 0 8px;
}

/* Footer */
footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-muted);
  font-size: 14px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-links a { color: var(--ink-muted); font-weight: 500; }
.footer-bottom {
  color: var(--ink-muted);
  font-size: 13px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
