/* Gallery Clusters - marketing & privacy site
   Self-hosted fonts, no third-party requests.
   Palette and type mirror the app's own design tokens
   (lib/shared/design_tokens.dart, lib/main.dart) so the site and the app
   read as the same product: forest green brand, warm off-white surfaces,
   Poppins body text, PT Serif reserved for the one "editorial" headline. */

@font-face {
  font-family: 'Poppins';
  src: url('fonts/Poppins-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('fonts/Poppins-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('fonts/Poppins-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('fonts/Poppins-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'PT Serif';
  src: url('fonts/PTSerif-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'PT Serif';
  src: url('fonts/PTSerif-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #faf9f6;
  --bg-elevated: #fffefb;
  --surface: #fffefb;
  --surface-2: #e9efe7;
  --text: #111210;
  --muted: #62635f;
  --border: #d8d7d2;
  --brand: #0d5c2b;
  --brand-strong: #093f20;
  --brand-soft: #e9efe7;
  --on-brand: #fffefb;
  --success: #1f7a53;
  --shadow: 0 24px 60px -30px rgba(13, 92, 43, 0.35);
  --radius: 24px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111310;
    --bg-elevated: #191c18;
    --surface: #191c18;
    --surface-2: #20241d;
    --text: #f4f3ef;
    --muted: #9ca39b;
    --border: #3c403a;
    --brand: #72c889;
    --brand-strong: #8fe0a6;
    --brand-soft: #1c2820;
    --on-brand: #00390e;
    --success: #6ddba6;
    --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}

:root[data-theme='light'] {
  --bg: #faf9f6;
  --bg-elevated: #fffefb;
  --surface: #fffefb;
  --surface-2: #e9efe7;
  --text: #111210;
  --muted: #62635f;
  --border: #d8d7d2;
  --brand: #0d5c2b;
  --brand-strong: #093f20;
  --brand-soft: #e9efe7;
  --on-brand: #fffefb;
  --success: #1f7a53;
  --shadow: 0 24px 60px -30px rgba(13, 92, 43, 0.35);
  color-scheme: light;
}

:root[data-theme='dark'] {
  --bg: #111310;
  --bg-elevated: #191c18;
  --surface: #191c18;
  --surface-2: #20241d;
  --text: #f4f3ef;
  --muted: #9ca39b;
  --border: #3c403a;
  --brand: #72c889;
  --brand-strong: #8fe0a6;
  --brand-soft: #1c2820;
  --on-brand: #00390e;
  --success: #6ddba6;
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- language switching ---------- */
html[data-lang='tr'] [lang='en'],
html[data-lang='en'] [lang='tr'] {
  display: none !important;
}

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

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

h1 {
  font-family: 'PT Serif', Georgia, serif;
  font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.4rem);
  font-weight: 700;
}

h3 {
  font-size: 1.12rem;
  font-weight: 600;
}

p {
  margin: 0 0 1rem;
}

.wrap {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.section-head {
  max-width: 46rem;
  margin-bottom: 2.5rem;
}

.section-head p {
  color: var(--muted);
  font-size: 1.03rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.75rem;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--text);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.nav + .header-tools {
  margin-left: 1.25rem;
}

.pill-btn {
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
  line-height: 1.4;
}

.pill-btn:hover {
  color: var(--text);
  border-color: var(--brand);
}

@media (max-width: 780px) {
  .nav {
    display: none;
  }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -30% 40% 40% -20%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 32%, transparent), transparent);
  filter: blur(20px);
  pointer-events: none;
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--brand-soft);
  color: var(--brand-strong);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}

.badge svg {
  width: 14px;
  height: 14px;
}

.hero p.lede {
  font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.18rem);
  color: var(--muted);
  max-width: 34rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 16px;
  padding: 0.85rem 1.4rem;
  font-weight: 600;
  font-size: 0.97rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand);
  color: var(--on-brand);
  box-shadow: 0 14px 30px -18px color-mix(in srgb, var(--brand) 90%, transparent);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.store-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.9rem;
}

/* ---------- phone mockup ---------- */
.phone {
  --tile: color-mix(in srgb, var(--brand) 18%, var(--surface-2));
  width: min(320px, 82vw);
  margin-inline: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 1.15rem 1rem 1.4rem;
  box-shadow: var(--shadow);
}

.phone-notch {
  width: 92px;
  height: 6px;
  border-radius: 999px;
  background: var(--border);
  margin: 0 auto 1.1rem;
}

.phone h4 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.phone .sub {
  font-size: 0.76rem;
  color: var(--muted);
  margin: 0.1rem 0 1rem;
}

.chip {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--brand-soft);
  color: var(--brand-strong);
  border-radius: 999px;
  padding: 0.24rem 0.6rem;
}

.phone-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.85rem;
  margin-bottom: 0.85rem;
}

.phone-card .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
}

.tile {
  aspect-ratio: 1;
  border-radius: 10px;
  background: linear-gradient(140deg, color-mix(in srgb, var(--brand) 45%, transparent), color-mix(in srgb, var(--brand) 12%, transparent));
  position: relative;
}

.tile.best {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}

.tile.best::after {
  content: '★';
  position: absolute;
  right: 3px;
  bottom: 0;
  font-size: 0.62rem;
  color: var(--on-brand);
}

.phone-bar {
  height: 42px;
  border-radius: 14px;
  background: var(--brand);
  color: var(--on-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 600;
}

/* ---------- trust strip ---------- */
.trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.trust div {
  background: var(--surface);
  padding: 1.4rem 1.25rem;
}

.trust strong {
  display: block;
  font-size: 0.95rem;
}

.trust span {
  font-size: 0.84rem;
  color: var(--muted);
}

/* ---------- cards ---------- */
.grid {
  display: grid;
  gap: 1.1rem;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
}

.card .icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

.card .icon svg {
  width: 21px;
  height: 21px;
}

.card p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

/* ---------- steps ---------- */
.steps {
  counter-reset: step;
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.4rem;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--brand);
  color: var(--on-brand);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.step p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

/* ---------- privacy panel ---------- */
.panel {
  background: linear-gradient(155deg, color-mix(in srgb, var(--brand) 16%, var(--surface)), var(--surface));
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: clamp(1.8rem, 4vw, 3rem);
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.checklist li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.94rem;
  color: var(--text);
}

.checklist svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--success);
}

/* ---------- permissions ---------- */
.perms {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.perm {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
}

.perm .platform {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-strong);
  background: var(--brand-soft);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  margin-bottom: 0.7rem;
}

.perm code {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.4rem 0.6rem;
  margin-bottom: 0.7rem;
  overflow-wrap: anywhere;
}

.perm p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- faq ---------- */
.faq {
  display: grid;
  gap: 0.75rem;
}

details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.05rem 1.3rem;
}

details[open] {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--border));
}

summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  color: var(--brand);
  font-size: 1.3rem;
  line-height: 1;
}

details[open] summary::after {
  content: '\2013';
}

details p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0.8rem 0 0;
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 3rem;
  margin-top: 2rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.9rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 1.5rem;
}

/* ---------- legal document ---------- */
.legal {
  padding-top: 3rem;
}

.legal-body {
  max-width: 48rem;
}

.legal-body h2 {
  font-size: 1.35rem;
  margin-top: 2.6rem;
}

.legal-body h3 {
  margin-top: 1.8rem;
}

.legal-body p,
.legal-body li {
  color: var(--muted);
  font-size: 0.96rem;
}

.legal-body strong {
  color: var(--text);
}

.legal-body ul {
  padding-left: 1.2rem;
  display: grid;
  gap: 0.45rem;
  margin: 0 0 1rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.9rem 1.2rem;
  background: var(--surface);
  margin-bottom: 2rem;
}

.callout {
  border-left: 3px solid var(--brand);
  background: var(--surface-2);
  border-radius: 0 16px 16px 0;
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
}

.callout p {
  margin: 0;
  color: var(--text);
  font-size: 0.94rem;
}

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
}

.toc ol {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.toc a {
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

/* ---------- contact form ---------- */
.contact-form {
  display: grid;
  gap: 1rem;
  max-width: 32rem;
  margin: 1.5rem auto 0;
}

.contact-form .field {
  display: grid;
  gap: 0.4rem;
}

.contact-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}

.contact-form textarea {
  min-height: 8rem;
}

.contact-form button[type='submit'] {
  justify-self: start;
}

.contact-form button[type='submit']:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

/* Web3Forms honeypot: kept in the DOM for bots, hidden from everyone else. */
.contact-form .hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  font-size: 0.9rem;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-pending {
  background: var(--surface-2);
  color: var(--muted);
}

.form-status.is-success {
  background: color-mix(in srgb, var(--success) 16%, transparent);
  color: var(--success);
}

.form-status.is-error {
  background: color-mix(in srgb, #c0362c 16%, transparent);
  color: #c0362c;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn:hover {
    transform: none;
  }
}
