@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/PlayfairDisplay.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ── Palette (synced with Flutter AppColors) ─────────────── */
:root {
  --primary: #661E1F;
  --accent: #BDAA84;
  --counter: #2D6A4F;
  --bg: #F9F7F2;
  --passive: #E5E5E5;
  --ink: #2B1B1B;
  --surface: #FFFCF8;
  --surface-raised: #F2ECE2;
  --outline: #D9CEBD;
  --outline-soft: #E8DFD2;
  --brand-maroon: #61202D;
  --brand-maroon-dark: #3A141E;
  --brand-gold: #E8C47C;
  --brand-cream: #F8F3EE;
  --brand-cream-light: #FCFAF8;
  --brand-teal: #0E5C52;
  --brand-teal-dark: #0A4039;

  --ink-soft: rgba(43, 27, 27, 0.72);
  --ink-faint: rgba(43, 27, 27, 0.5);
  --shadow-lg: 0 24px 48px rgba(43, 27, 27, 0.10);
  --shadow-md: 0 12px 28px rgba(43, 27, 27, 0.08);
  --shadow-sm: 0 6px 16px rgba(43, 27, 27, 0.06);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --header-h: 72px;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }

.numeric {
  font-variant-numeric: lining-nums tabular-nums;
}

/* ── Page shell ──────────────────────────────────────────── */
.site-shell {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 64px;
}

/* ── Sticky header ───────────────────────────────────────── */
.site-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--header-h);
  background: rgba(249, 247, 242, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--outline-soft);
  padding: 0 max(calc((100vw - 1200px) / 2), 24px);
  margin: 0 calc(-1 * max(calc((100vw - 1200px) / 2), 24px));
  width: 100vw;
}

.brandmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brandmark-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: contain;
}

.site-topbar .brandmark-logo {
  width: 48px;
  height: 48px;
  padding: 6px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(97, 32, 45, 0.08);
  box-shadow: var(--shadow-sm);
}

.brandmark-copy { display: block; }

.brandmark-title {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
}

.brandmark-subtitle {
  display: block;
  margin-top: 1px;
  color: var(--ink-faint);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link,
.language-link {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s;
}

.nav-link { color: var(--ink); }

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--primary);
}

.language-link {
  color: var(--accent);
  font-weight: 700;
  border: 1px solid var(--outline);
  border-radius: 8px;
  padding: 4px 10px;
}

.language-link:hover,
.language-link:focus-visible {
  background: var(--surface-raised);
  color: var(--primary);
}

/* ── Sections ────────────────────────────────────────────── */
.section {
  margin-top: 80px;
}

.anchor-section,
.anchor-target {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  display: grid;
  gap: 48px;
  align-items: center;
  margin-top: 40px;
}

.hero-copy { padding-top: 16px; }

.hero-title {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.8rem, 5.2vw, 4.8rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--primary);
  max-width: 12ch;
}

.hero-text {
  max-width: 44ch;
  margin: 20px 0 0;
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 12px 20px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.store-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.store-button__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex: none;
}

.brand-icon {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.store-button__label {
  display: block;
  font-size: 1rem;
  font-weight: 700;
}

.store-button__caption {
  display: block;
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
  font-weight: 600;
}

/* Hero image */
.hero-media-wrap {
  position: relative;
  max-width: 480px;
  margin-left: auto;
}

.hero-media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(102, 30, 31, 0.06), rgba(102, 30, 31, 0.18)),
    linear-gradient(135deg, var(--brand-cream) 0%, var(--accent) 60%, var(--primary) 100%);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

/* ── Section headings ────────────────────────────────────── */
.section-heading {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.1;
  color: var(--primary);
}

.section-text {
  max-width: 56ch;
  margin: 12px auto 0;
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

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

.feature-card {
  text-align: center;
  padding: 28px 20px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--outline-soft);
  transition: transform 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-card h3 {
  margin: 18px 0 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.4rem;
  line-height: 1.15;
  color: var(--primary);
}

.feature-card p {
  margin: 10px 0 0;
  font-size: 0.96rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* Phone mockup */
.phone-shell {
  width: min(220px, 100%);
  margin: 0 auto;
  padding: 8px;
  border-radius: 32px;
  background: linear-gradient(180deg, #222, #0a0a0a);
  box-shadow: 0 16px 32px rgba(43, 27, 27, 0.14);
  position: relative;
}

.phone-shell::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 34%;
  height: 14px;
  background: #0a0a0a;
  border-radius: 0 0 12px 12px;
  transform: translateX(-50%);
  z-index: 1;
}

.phone-shell img {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  border-radius: 26px;
  object-fit: cover;
  object-position: center top;
  background: var(--brand-cream);
}

/* ── Panel (KVKK, etc.) ──────────────────────────────────── */
.panel {
  padding: 40px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--outline-soft);
  box-shadow: var(--shadow-md);
}

.policy-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.policy-column {
  min-height: 100%;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  border: 1px solid var(--outline-soft);
}

.policy-column h3 {
  margin: 0 0 14px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.6rem;
  line-height: 1.1;
  color: var(--primary);
}

.policy-block + .policy-block {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--outline-soft);
}

.policy-block h4 {
  margin: 0 0 8px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.1rem;
  color: var(--primary);
}

.policy-block p,
.policy-block li {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.policy-block p { margin: 0 0 8px; }

.policy-block ul,
.detail-card ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

/* ── Support / Contact ───────────────────────────────────── */
.contact-intro {
  max-width: 70ch;
  margin: 10px 0 0;
  color: var(--ink-faint);
  font-size: 0.96rem;
}

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

.contact-card,
.detail-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--outline-soft);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
}

.contact-card:hover,
.detail-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.contact-card h3,
.detail-card h3 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.12;
  color: var(--primary);
}

.contact-card p,
.detail-card p,
.detail-card li {
  font-size: 0.94rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

.pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 18px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--primary);
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.pill-button:hover,
.pill-button:focus-visible {
  background: var(--brand-maroon);
  transform: translateY(-1px);
}

.contact-bar {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 24px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  border: 1px solid var(--outline-soft);
}

.contact-meta strong,
.footer-meta strong {
  display: block;
  margin-bottom: 4px;
  color: var(--primary);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-meta span,
.footer-meta span {
  display: block;
  color: var(--ink-soft);
  line-height: 1.5;
  font-size: 0.94rem;
}

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

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  margin-top: 64px;
  padding: 40px 36px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--brand-maroon) 0%, var(--brand-maroon-dark) 100%);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.footer-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  align-items: start;
}

.footer-panel,
.footer-meta {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.site-footer .brandmark-title,
.site-footer .footer-title,
.site-footer .footer-meta strong {
  color: #fff;
}

.site-footer .brandmark-subtitle,
.site-footer .footer-text,
.site-footer .footer-meta span {
  color: rgba(255, 255, 255, 0.72);
}

.footer-title {
  margin: 0 0 14px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.2rem;
  color: #fff;
}

.footer-text {
  margin: 12px 0 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}

.social-row,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-row { margin-top: 18px; }

.social-link,
.footer-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.2s;
}

.social-link {
  width: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 0;
}

.social-link .brand-icon {
  width: 18px;
  height: 18px;
}

.footer-link:hover,
.footer-link:focus-visible,
.social-link:hover,
.social-link:focus-visible {
  background: rgba(255, 255, 255, 0.16);
}

/* ── Redirect shell (shared utility) ─────────────────────── */
.redirect-shell {
  width: min(560px, calc(100% - 32px));
  margin: 72px auto;
  padding: 32px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--outline-soft);
  box-shadow: var(--shadow-lg);
}

.redirect-shell h1 {
  margin: 0 0 12px;
  font-family: "Playfair Display", Georgia, serif;
  color: var(--primary);
}

.redirect-shell p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (min-width: 920px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
  }
}

@media (max-width: 1080px) {
  .features-grid,
  .contact-grid,
  .details-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .site-topbar {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .site-nav {
    gap: 16px;
  }

  .section {
    margin-top: 56px;
  }

  .policy-grid,
  .features-grid,
  .contact-grid,
  .details-grid,
  .contact-bar,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 24px, 1200px);
  }

  .hero-title {
    max-width: 100%;
    font-size: clamp(2.4rem, 10vw, 3.4rem);
  }

  .store-row {
    flex-direction: column;
  }

  .store-button,
  .pill-button {
    width: 100%;
  }

  .panel {
    padding: 24px 18px;
  }

  .site-footer {
    padding: 28px 20px;
  }

  .policy-column,
  .contact-card,
  .detail-card,
  .footer-panel,
  .footer-meta {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .feature-card,
  .contact-card,
  .detail-card,
  .store-button,
  .pill-button {
    transition: none;
  }
}
