/* ============================================================================
   What a Friend — web İris theme.
   Single source of truth for the site's colour, type, spacing and components.
   Ported from the mobile app's design tokens (mobile/theme/tokens.ts): a soft
   lavender→peach ground, frosted white surfaces lifted by shadow (not borders),
   and violet (#6C4CE0) as the single accent. Edit THIS file to re-theme.
   ============================================================================ */

/* ---- design tokens (light) ---- */
:root {
  --bg: #f0edf5;
  --bg-from: #eceaf8;
  --bg-to: #f7efea;
  --surface: #ffffff;
  --surface-2: #f1edf7;
  --border: #ebe7f1;
  --text: #2c2542;
  --text-soft: #5d5675;
  --text-mute: #9c96ac;
  --accent: #6c4ce0;
  --accent-soft: #ede8fb;
  --accent-text: #ffffff;
  --success: #3f8065;
  --warning: #b5854a;
  --danger: #bc5a43;
  --info: #4e7ca8;
  --overlay: rgba(28, 22, 42, 0.45);

  /* on-photo layer (scheme-independent, mirrors mobile onPhoto) */
  --on-photo-text: #ffffff;
  --on-photo-soft: rgba(255, 255, 255, 0.85);
  --on-photo-mute: rgba(255, 255, 255, 0.7);
  --member-card-from: #8265f2;
  --member-card-to: #5a3ec9;

  /* radii + shadows (mobile radius/shadow scale) */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-full: 999px;
  --shadow-sm: 0 1px 2px rgba(28, 22, 42, 0.06);
  --shadow-md: 0 4px 16px rgba(28, 22, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(28, 22, 42, 0.14);

  /* motion (mobile motion.ts durations) */
  --t-fast: 0.16s;
  --t-base: 0.24s;
  --t-slow: 0.36s;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- dark scheme (mobile darkColors) ----
   Applied via the [data-theme="dark"] attribute the inline head script sets from
   localStorage (falling back to the OS preference), so the nav toggle can override
   the device setting and the choice persists across pages. */
:root[data-theme="dark"] {
  --bg: #1d1826;
  --bg-from: #1a1622;
  --bg-to: #201a25;
  --surface: #282232;
  --surface-2: #2f2838;
  --border: #362f44;
  --text: #eae6f4;
  --text-soft: #ada7be;
  --text-mute: #8e88a0;
  --accent: #7b5fe0;
  --accent-soft: #2a2340;
  --success: #57a97c;
  --warning: #cba268;
  --danger: #d07254;
  --info: #6c9bc7;
  --overlay: rgba(0, 0, 0, 0.55);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 18px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
}

/* ---- reset + base ---- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  background-image: linear-gradient(180deg, var(--bg-from), var(--bg-to));
  background-attachment: fixed;
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
::selection {
  background: var(--accent-soft);
  color: var(--text);
}

/* ---- icons (lucide, hydrated by icons.js into [data-icon]) ---- */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.icon svg {
  display: block;
  width: 1em;
  height: 1em;
}
/* inline icons that sit next to text (feature headings, brand-more, circle rows) */
.icon-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ---- layout ---- */
.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
}
.wrap-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 28px;
}
.section {
  padding: 96px 0;
}
.section-tight {
  padding: 64px 0;
}
@media (max-width: 640px) {
  .wrap, .wrap-narrow {
    padding: 0 20px;
  }
  .section {
    padding: 64px 0;
  }
}

/* ---- section labels ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}
.sec-title {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  margin-bottom: 16px;
  max-width: 640px;
}
.sec-desc {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-soft);
  max-width: 600px;
}

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: 0.94rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-base) var(--ease),
    background var(--t-base) var(--ease);
}
.btn:active {
  transform: scale(0.97);
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(108, 76, 224, 0.35);
}
.btn-ghost {
  background: transparent;
  color: var(--on-photo-text);
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}
.btn-tonal {
  background: var(--accent-soft);
  color: var(--accent);
}
.btn-tonal:hover {
  transform: translateY(-2px);
}

/* ---- nav ---- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* Brand lockup: the ring mark followed by the "What a Friend" wordmark. The mark
   is hydrated into [data-logo] by icons.js and sized off font-size, so it tracks
   the wordmark automatically; 0.95em puts its height just above the wordmark's
   cap height. `color` here feeds the mark's left ring via currentColor, so it
   inverts with the scheme. */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  color: var(--text);
}
.wordmark b {
  color: var(--accent);
}
.wordmark .mark {
  display: inline-flex;
  font-size: 0.95em;
  line-height: 0;
}
.wordmark .mark svg {
  display: block;
  overflow: visible;
}
/* The full name is long, so step it down once the nav collapses to the drawer and
   the bar has to hold the lockup plus both buttons on a phone-width screen. */
@media (max-width: 560px) {
  .wordmark {
    font-size: 1.25rem;
  }
}
.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}
.nav-links a {
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--t-fast);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}
.nav-cta {
  background: var(--accent);
  color: var(--accent-text) !important;
  padding: 10px 20px;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: 0.86rem;
  box-shadow: var(--shadow-sm);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--t-fast), transform var(--t-fast);
}
.theme-toggle:hover {
  transform: translateY(-1px);
  background: var(--accent-soft);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
}
.theme-toggle .icon-sun {
  display: none;
}
.theme-toggle .icon-moon {
  display: block;
}
:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}
:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}
@media (max-width: 820px) {
  .nav-links {
    position: fixed;
    top: 58px;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 28px 28px;
    gap: 18px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-160%);
    transition: transform var(--t-slow) var(--ease);
  }
  .nav-links.open {
    transform: translateY(0);
  }
  .nav-toggle {
    display: block;
  }
}

/* ---- hero ----
   Full-bleed photo hero: community-*.jpg photos cross-fade behind a gradient
   scrim, with the eyebrow / headline / CTA layered on top as HTML. The photos
   carry no baked-in type, so a dark scrim guarantees text contrast in both
   schemes. Cross-fade is driven by heroSlider() in app.js via the .active class. */
.hero {
  position: relative;
  width: 100%;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #1a1530;
}
.hero-slides {
  position: absolute;
  inset: 0;
}
.hero .hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.2s var(--ease), transform 7s linear;
}
.hero .hero-slide.active {
  opacity: 1;
  transform: scale(1);
}
/* scrim: darkens the bottom-left where the copy sits, keeps the top airy */
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 14, 32, 0.15) 0%, rgba(18, 14, 32, 0.05) 32%, rgba(18, 14, 32, 0.72) 100%),
    linear-gradient(75deg, rgba(18, 14, 32, 0.55) 0%, rgba(18, 14, 32, 0.12) 55%, transparent 80%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 40px;
  padding-bottom: 64px;
  max-width: 1140px;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--on-photo-soft);
  padding: 7px 14px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  margin-bottom: 20px;
}
.hero-title {
  color: var(--on-photo-text);
  font-size: clamp(2.2rem, 5.4vw, 4rem);
  line-height: 1.05;
  max-width: 16ch;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.hero-sub {
  color: var(--on-photo-soft);
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  line-height: 1.55;
  max-width: 46ch;
  margin: 20px 0 30px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}
.btn-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
/* glass button for use over photos */
.btn-glass {
  background: rgba(255, 255, 255, 0.14);
  color: var(--on-photo-text);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-glass:hover {
  background: rgba(255, 255, 255, 0.24);
}
@media (max-width: 640px) {
  .hero {
    min-height: 84vh;
  }
  .hero-content {
    padding-bottom: 48px;
  }
}

/* ---- marquee band ---- */
.marquee-band {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  overflow: hidden;
  position: relative;
}
.marquee-band::before,
.marquee-band::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 90px;
  z-index: 2;
  pointer-events: none;
}
.marquee-band::before {
  left: 0;
  background: linear-gradient(90deg, var(--surface), transparent);
}
.marquee-band::after {
  right: 0;
  background: linear-gradient(270deg, var(--surface), transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee-band:hover .marquee-track {
  animation-play-state: paused;
}
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.marquee-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 34px;
  white-space: nowrap;
  font-size: 0.94rem;
  color: var(--text-soft);
}
.marquee-item .dot {
  color: var(--accent);
  font-size: 0.6rem;
}
.marquee-item b {
  font-weight: 700;
  color: var(--text);
}

/* ---- cards / surfaces ---- */
.card {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.why-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-md);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.why-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.why-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.why-card p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-soft);
}
@media (max-width: 900px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 540px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- app showcase (violet member-card gradient block) ---- */
.showcase {
  background: linear-gradient(150deg, var(--member-card-from), var(--member-card-to));
  border-radius: var(--r-xl);
  padding: 64px 52px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.showcase::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -8%;
  width: 55%;
  height: 160%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 65%);
}
.showcase .eyebrow {
  color: rgba(255, 255, 255, 0.85);
}
.showcase .eyebrow::before {
  background: rgba(255, 255, 255, 0.85);
}
.showcase h2 {
  color: #fff;
  font-size: clamp(1.8rem, 2.8vw, 2.3rem);
  margin-bottom: 18px;
}
.showcase .lead {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 640px;
  position: relative;
}
.feature-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 36px;
  position: relative;
  z-index: 1;
}
.feature {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--r-md);
  padding: 20px 22px;
}
.feature h4 {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.feature p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.8);
}
@media (max-width: 720px) {
  .showcase {
    padding: 44px 26px;
  }
  .feature-row {
    grid-template-columns: 1fr;
  }
}

/* ---- steps / expectations ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 44px;
}
.step-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.step-check {
  width: 28px;
  height: 28px;
  border-radius: var(--r-full);
  background: var(--accent);
  color: var(--accent-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.step-item p {
  font-size: 0.95rem;
  font-weight: 500;
}
@media (max-width: 640px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ---- CTA band ---- */
.cta-band {
  background: linear-gradient(135deg, var(--member-card-from), var(--member-card-to));
  border-radius: var(--r-xl);
  padding: 60px 52px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 {
  color: #fff;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  max-width: 480px;
}
.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  margin-top: 8px;
  max-width: 420px;
}
.btn-light {
  background: #fff;
  color: var(--member-card-to);
}
.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}
@media (max-width: 640px) {
  .cta-band {
    padding: 42px 26px;
    flex-direction: column;
    text-align: center;
  }
}

/* ---- footer ---- */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 56px 0 28px;
  margin-top: 40px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--border);
}
.foot-brand .wordmark {
  margin-bottom: 12px;
}
.foot-brand p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-soft);
  max-width: 280px;
}
footer h5 {
  color: var(--text);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
footer li a {
  font-size: 0.88rem;
  color: var(--text-soft);
  transition: color var(--t-fast);
}
footer li a:hover {
  color: var(--accent);
}
.foot-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 22px;
  font-size: 0.8rem;
  color: var(--text-mute);
  flex-wrap: wrap;
  gap: 10px;
}
@media (max-width: 820px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 30px;
  }
}

/* ---- page hero (inner pages) ---- */
.page-hero {
  padding: 140px 0 56px;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  margin-bottom: 16px;
}
.page-hero p {
  font-size: 1.1rem;
  color: var(--text-soft);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.6;
}
.page-hero .eyebrow {
  justify-content: center;
}

/* ---- reveal-on-scroll ---- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ============================================================================
   Content pages (topluluk / üyelik) — shared building blocks.
   ============================================================================ */
.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-inline {
  margin-top: 40px;
}

/* generic content grid of cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 44px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 44px;
}
@media (max-width: 860px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .grid-3, .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ---- live event cards (index: Yaklaşan Etkinlikler, from /public/events) ---- */
.ev-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 44px;
}
@media (max-width: 860px) {
  .ev-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .ev-grid { grid-template-columns: 1fr; }
}
.ev-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.ev-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.ev-cover {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-2);
}
.ev-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ev-cover-empty {
  background: linear-gradient(135deg, var(--accent-soft), var(--surface-2));
}
.ev-body {
  padding: 18px 20px 22px;
}
.ev-tagline {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.ev-title {
  font-size: 1.1rem;
  line-height: 1.25;
  margin-bottom: 8px;
}
.ev-meta {
  font-size: 0.88rem;
  color: var(--text-soft);
}

/* ---- live deal cards (topluluk: Avantajlar, from /public/deals) ---- */
.deal-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}
.deal-card.featured {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.deal-cover {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-2);
}
.deal-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.deal-body {
  padding: 20px 22px 24px;
}
.deal-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.deal-logo {
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm);
  object-fit: cover;
  background: var(--surface-2);
}
.deal-body .name {
  font-size: 1.15rem;
  font-weight: 800;
}
.deal-body p {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.55;
}

/* brand / advantage card */
.brand-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  position: relative;
}
.brand-card .badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--r-full);
  margin-bottom: 12px;
}
.brand-card .name {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.brand-card p {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.55;
}
.brand-more {
  margin-top: 28px;
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-soft);
}

/* event list rows */
.event-list {
  margin-top: 44px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.event-row {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 26px 28px;
  box-shadow: var(--shadow-md);
}
.event-row h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.event-row p {
  color: var(--text-soft);
  line-height: 1.6;
}
.event-row ul {
  margin: 10px 0 0 18px;
  color: var(--text-soft);
  line-height: 1.7;
}

/* club / value card */
.club-card,
.value-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-md);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.club-card:hover,
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.club-emoji,
.value-card .glyph {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 14px;
}
.club-card h3,
.value-card h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.club-card p,
.value-card p {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.55;
}

/* semt circle box */
.circle-box {
  margin-top: 28px;
  background: linear-gradient(150deg, var(--member-card-from), var(--member-card-to));
  color: #fff;
  border-radius: var(--r-xl);
  padding: 36px 34px;
  box-shadow: var(--shadow-lg);
}
.circle-box h3 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.circle-box p {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  max-width: 640px;
}
.circle-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}
.circle-tag {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff;
  border-radius: var(--r-full);
  padding: 7px 14px;
  font-size: 0.85rem;
  font-weight: 600;
}
.circle-note {
  margin-top: 6px;
  font-size: 0.92rem;
}

/* story block */
.story-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 44px;
  margin-top: 40px;
  align-items: start;
}
.story-quote {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--text);
}
.story-stamp {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.story-stamp b {
  font-size: 1.4rem;
  color: var(--accent);
  display: block;
}
.story-stamp span {
  font-size: 0.9rem;
  color: var(--text-mute);
}
.story-body p {
  color: var(--text-soft);
  line-height: 1.75;
  margin-bottom: 16px;
}
@media (max-width: 760px) {
  .story-wrap {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ---- prose / legal documents ---- */
.doc {
  max-width: 800px;
}
.doc h2 {
  font-size: 1.5rem;
  margin: 40px 0 14px;
}
.doc h3 {
  font-size: 1.1rem;
  margin: 26px 0 8px;
}
.doc p,
.doc li {
  color: var(--text-soft);
  line-height: 1.75;
  margin-bottom: 12px;
}
.doc ul,
.doc ol {
  margin: 0 0 14px 20px;
}
.doc .lead {
  font-size: 1.1rem;
  color: var(--text-soft);
  line-height: 1.7;
}

/* ---- accordion (KVKK / sözleşme sections) ---- */
.accordion {
  margin-top: 20px;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--surface);
}
.acc-item + .acc-item {
  border-top: 1px solid var(--border);
}
.acc-head {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.acc-head .plus {
  color: var(--accent);
  font-size: 1.2rem;
  transition: transform var(--t-base);
  flex-shrink: 0;
}
.acc-item.open .plus {
  transform: rotate(45deg);
}
.acc-body {
  display: none;
  padding: 0 22px 20px;
}
.acc-item.open .acc-body {
  display: block;
}
.acc-body p,
.acc-body li {
  color: var(--text-soft);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ============================================================================
   Forms (başvuru) + OTP.
   ============================================================================ */
.form-card {
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  margin-top: 40px;
}
/* Mark at the head of the form card. Sits alone above the first block, sized in
   px rather than em because it has no wordmark next to it to track. */
.form-mark {
  display: flex;
  justify-content: center;
  color: var(--text);
  font-size: 30px;
  line-height: 0;
  margin-bottom: 34px;
}
@media (max-width: 640px) {
  .form-card {
    padding: 26px 20px;
  }
}
.form-block {
  margin-bottom: 34px;
}
.form-block:last-of-type {
  margin-bottom: 0;
}
.form-block h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}
.form-block .hint {
  font-size: 0.88rem;
  color: var(--text-mute);
  margin-bottom: 20px;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field.full {
  grid-column: 1 / -1;
}
.field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-soft);
}
.field .req {
  color: var(--danger);
}
.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-mute);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea {
  resize: vertical;
  min-height: 84px;
}
@media (max-width: 600px) {
  .field-grid {
    grid-template-columns: 1fr;
  }
}

/* couple toggle */
.toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.switch {
  position: relative;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.switch .slider {
  position: absolute;
  inset: 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  cursor: pointer;
  transition: background var(--t-fast);
}
.switch .slider::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 2px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-fast);
}
.switch input:checked + .slider {
  background: var(--accent);
  border-color: var(--accent);
}
.switch input:checked + .slider::before {
  transform: translateX(20px);
}

/* consents */
.consent-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.45;
  cursor: pointer;
}
.consent-row input {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.link-inline {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
}
.form-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-mute);
  margin-top: 14px;
}
.form-error {
  background: color-mix(in srgb, var(--danger) 12%, transparent);
  color: var(--danger);
  border-radius: var(--r-md);
  padding: 12px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 18px;
}
.hidden {
  display: none !important;
}

/* stepper (application progress) */
.stepper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 22px;
}
.step-pill {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-mute);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: var(--r-full);
}
.step-pill.now {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
}

/* ---- OTP verify panel ---- */
.otp-card {
  max-width: 460px;
  margin: 40px auto 0;
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: 40px 36px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.otp-card h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.otp-card p {
  color: var(--text-soft);
  line-height: 1.6;
  margin-bottom: 24px;
}
.otp-card p b {
  color: var(--text);
}
.otp-input {
  width: 100%;
  text-align: center;
  letter-spacing: 0.5em;
  font-size: 1.6rem;
  font-weight: 700;
  padding: 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
}
.otp-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.otp-resend {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--text-mute);
}
.otp-resend button {
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
}
.otp-resend button:disabled {
  color: var(--text-mute);
  cursor: default;
}

/* success panel */
.result-card {
  max-width: 500px;
  margin: 40px auto 0;
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: 44px 36px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.result-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--r-full);
  background: color-mix(in srgb, var(--success) 16%, transparent);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 20px;
}
.result-card h2 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}
.result-card p {
  color: var(--text-soft);
  line-height: 1.65;
  margin-bottom: 22px;
}
.btn-block {
  width: 100%;
  justify-content: center;
}
.spin {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
