/* Güvercinim marketing site — shared design system.
   Tokens mirror src/theme/palettes.ts (duo palette) and src/theme/tokens.ts
   from the mobile app, so the site reads as the same product. */

:root {
  --color-primary-50: #d7ffb8;
  --color-primary-100: #bcf590;
  --color-primary-200: #8ee055;
  --color-primary-300: #6dcf2a;
  --color-primary-400: #58cc02;
  --color-primary-500: #46aa00;
  --color-primary-600: #388b00;
  --color-primary-700: #2d7000;

  --color-bg: #faf8ff;
  --color-surface: #ffffff;
  --color-surface-muted: #eeedf4;
  --color-border: #c5c5d3;
  --color-text: #1a1b21;
  --color-text-secondary: #444651;
  --color-text-muted: #757682;
  --color-warning: #e77828;
  --color-warning-bg: #fff2e8;
  --color-warning-border: #f6c9a4;

  --radius-sm: 5px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-3xl: 28px;
  --radius-full: 999px;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;

  --fs-xs: 11px;
  --fs-sm: 13px;
  --fs-base: 15px;
  --fs-md: 16px;
  --fs-lg: 18px;
  --fs-h3: 20px;
  --fs-h2: 24px;
  --fs-h1: 28px;
  --fs-display: 34px;

  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-black: 900;

  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  --shadow-soft: 0 20px 50px rgba(26, 27, 33, 0.14);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-family);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: var(--fs-base);
  line-height: 1.6;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 248, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--color-primary-100);
}

.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-top: var(--space-md);
  padding-bottom: var(--space-md);
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: var(--fw-black);
  font-size: var(--fs-lg);
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--color-text);
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  border: 2px solid var(--color-primary-200);
  object-fit: contain;
  padding: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.nav-links a {
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  text-decoration: none;
  color: var(--color-text-secondary);
}

.nav-links a:hover {
  color: var(--color-primary-600);
}

.lang-toggle {
  display: inline-flex;
  border: 2px solid var(--color-primary-200);
  border-radius: var(--radius-full);
  overflow: hidden;
  font-weight: var(--fw-bold);
  font-size: var(--fs-xs);
}

.lang-toggle button {
  border: none;
  background: var(--color-surface);
  color: var(--color-text-secondary);
  padding: 6px 12px;
  cursor: pointer;
  font-family: inherit;
  font-weight: inherit;
  font-size: inherit;
}

.lang-toggle button.is-active {
  background: var(--color-primary-400);
  color: #ffffff;
}

/* ---------- Buttons / Badges ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-2xl);
  border: 2px solid transparent;
  font-weight: var(--fw-bold);
  font-size: var(--fs-md);
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  background: var(--color-primary-400);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--color-primary-500);
}

.btn-outline {
  background: var(--color-surface);
  border-color: var(--color-border);
  color: var(--color-text);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--color-surface);
  border: 2px solid var(--color-primary-200);
  color: var(--color-primary-700);
  font-weight: var(--fw-black);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- Cards ---------- */

.card {
  border-radius: var(--radius-3xl);
  border: 2px solid var(--color-primary-200);
  background: var(--color-primary-50);
  padding: var(--space-lg);
}

.card-neutral {
  border-radius: var(--radius-3xl);
  border: 2px solid var(--color-border);
  background: var(--color-surface);
  padding: var(--space-lg);
}

/* ---------- Phone frame / screenshots ---------- */

.phone-frame {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  border-radius: var(--radius-3xl);
  border: 10px solid var(--color-text);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

/* No cropping, no transforms — the raw screenshot at its own natural
   aspect ratio, just framed with a border and rounded corners. */
.device-shot {
  display: block;
  width: 100%;
  height: auto;
}

.phone-frame.is-small {
  max-width: 220px;
}

.hero-graphic {
  width: 100%;
  border-radius: var(--radius-3xl);
  box-shadow: var(--shadow-soft);
}

/* ---------- Sections ---------- */

section {
  padding: var(--space-xxl) 0;
}

.eyebrow {
  margin-bottom: var(--space-md);
}

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

h1 {
  font-size: clamp(32px, 6vw, var(--fs-display));
  line-height: 1.1;
}

h2 {
  font-size: var(--fs-h1);
  line-height: 1.2;
}

h3 {
  font-size: var(--fs-h2);
}

.lead {
  color: var(--color-text-secondary);
  font-size: var(--fs-lg);
  line-height: 1.6;
  font-weight: var(--fw-medium);
  max-width: 620px;
}

.section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-xl);
}

.section-heading .lead {
  margin: var(--space-sm) auto 0;
}

/* ---------- Hero ---------- */

.hero .shell {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: var(--space-xl);
  align-items: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

/* ---------- Feature grid ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-2xl);
  background: var(--color-surface);
  border: 2px solid var(--color-primary-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: var(--space-md);
}

.feature h3 {
  margin-bottom: var(--space-sm);
}

.feature p {
  margin: 0;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ---------- Screenshot gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-lg);
}

.gallery-item {
  text-align: center;
}

.gallery-caption {
  margin-top: var(--space-md);
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
}

/* ---------- Pricing / compare table ---------- */

.compare-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg);
}

.plan-card h3 {
  margin-bottom: 4px;
}

.plan-price {
  font-size: var(--fs-h1);
  font-weight: var(--fw-black);
  margin: var(--space-sm) 0 var(--space-md);
}

.plan-price span {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-text-muted);
}

.plan-card ul {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-card li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: var(--fw-medium);
  color: var(--color-text-secondary);
}

.plan-card.is-pro {
  background: linear-gradient(160deg, var(--color-primary-50), var(--color-surface));
  border-color: var(--color-primary-300);
}

/* ---------- Store badges ---------- */

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border-radius: var(--radius-2xl);
  border: 2px solid var(--color-border);
  background: var(--color-surface);
  text-decoration: none;
  color: var(--color-text);
  min-width: 190px;
}

.store-badge--disabled {
  opacity: 0.65;
  cursor: default;
}

.store-badge-icon {
  font-size: 22px;
}

.store-badge-text small {
  display: block;
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  font-weight: var(--fw-semibold);
}

.store-badge-text strong {
  font-size: var(--fs-md);
}

/* ---------- Guide steps ---------- */

.guide-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.6fr);
  gap: var(--space-xl);
  align-items: center;
  padding: var(--space-xl) 0;
  border-bottom: 2px solid var(--color-surface-muted);
}

.guide-step:last-child {
  border-bottom: none;
}

.guide-step:nth-child(even) .guide-visual {
  order: -1;
}

.guide-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--color-primary-400);
  color: #ffffff;
  font-weight: var(--fw-black);
  margin-bottom: var(--space-md);
}

.guide-step ul {
  margin: var(--space-md) 0 0;
  padding-left: 20px;
  color: var(--color-text-secondary);
}

.guide-step li {
  margin-bottom: 6px;
}

/* ---------- FAQ ---------- */

.faq-item summary {
  cursor: pointer;
  font-weight: var(--fw-bold);
  font-size: var(--fs-lg);
  padding: var(--space-lg);
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  font-size: 22px;
  color: var(--color-primary-600);
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item p {
  margin: 0;
  padding: 0 var(--space-lg) var(--space-lg);
  color: var(--color-text-secondary);
}

.faq-item {
  border-radius: var(--radius-3xl);
  border: 2px solid var(--color-border);
  background: var(--color-surface);
  margin-bottom: var(--space-md);
}

/* ---------- Legal pages ---------- */

.legal-main {
  width: min(860px, calc(100% - 40px));
  margin: var(--space-xl) auto var(--space-xxl);
  background: var(--color-surface);
  border: 2px solid var(--color-primary-200);
  border-radius: var(--radius-3xl);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.legal-header {
  padding: var(--space-xl);
  background: linear-gradient(135deg, var(--color-primary-50), var(--color-surface));
  border-bottom: 2px solid var(--color-primary-100);
  text-align: center;
}

.legal-header h1 {
  margin: var(--space-md) 0 var(--space-sm);
}

.legal-header .lead {
  margin: 0 auto;
}

.legal-nav {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--color-surface-muted);
}

.legal-nav a {
  color: var(--color-primary-600);
  font-weight: var(--fw-bold);
  text-decoration: none;
  font-size: var(--fs-sm);
}

.legal-section {
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--color-surface-muted);
}

.legal-section:last-child {
  border-bottom: none;
}

.legal-section h2 {
  font-size: var(--fs-h2);
  margin-bottom: var(--space-md);
}

.legal-section p,
.legal-section li {
  color: var(--color-text-secondary);
  line-height: 1.72;
}

.legal-section ul,
.legal-section ol {
  padding-left: 22px;
  margin: var(--space-sm) 0 0;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
}

.legal-note {
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
}

.legal-email {
  display: inline-block;
  margin-top: var(--space-sm);
  color: var(--color-primary-600);
  font-weight: var(--fw-bold);
  text-decoration: none;
  word-break: break-word;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 2px solid var(--color-primary-100);
  padding: var(--space-xl) 0;
}

.site-footer .shell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
}

.footer-links {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  color: var(--color-text-secondary);
  font-weight: var(--fw-semibold);
}

/* ---------- Contextual component rules (replace one-off inline styles) ---------- */

.badge img {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-md);
  object-fit: contain;
}

.card-neutral p {
  margin: 0;
}

.legal-grid h2 {
  font-size: var(--fs-h3);
}

.legal-main.is-narrow {
  width: min(760px, calc(100% - 40px));
}

.download-lead {
  margin: var(--space-sm) auto var(--space-lg);
}

.guide-intro {
  padding-bottom: var(--space-lg);
}

.guide-steps {
  padding-top: 0;
}

.mini-card {
  text-align: center;
  max-width: 220px;
  margin: 0 auto;
}

.mini-card img {
  width: 120px;
  margin: 0 auto;
}

.mini-card .emoji-lg {
  font-size: 48px;
}

/* ---------- Utilities ---------- */

.text-center {
  text-align: center;
}

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

.justify-center {
  justify-content: center;
}

.mt-sm {
  margin-top: var(--space-sm);
}

.mt-md {
  margin-top: var(--space-md);
}

.section-muted {
  background: var(--color-surface-muted);
}

.shell.is-narrow {
  max-width: 760px;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero .shell,
  .guide-step {
    grid-template-columns: 1fr;
  }

  .guide-step:nth-child(even) .guide-visual {
    order: 0;
  }

  .grid-3,
  .grid-2,
  .compare-table,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .site-header .shell {
    justify-content: center;
    text-align: center;
  }

  .nav-links {
    justify-content: center;
  }

  /* Gallery collapses to a single column below this breakpoint, so the
     equal-height row trick is no longer needed — revert to normal
     proportional width-based sizing so cards aren't tiny and off-ratio. */
  .gallery .phone-frame {
    width: 100%;
    max-width: 240px;
    height: auto;
  }
}
