/* ==========================================================================
   Bırakalım — public website stylesheet

   Light, airy and card-driven. Tokens mirror app/DESIGN_SYSTEM.md, but the web
   leans flatter than the app: hairline borders do the structural work and
   shadows stay a whisper. White and neutral surfaces are the hero; green is
   reserved for brand, progress and success.

   Contents
     1. Tokens              9. Home dashboard
     2. Base / reset       10. Community
     3. Layout             11. Cities
     4. Nav                12. Editorial (blog / news / stories)
     5. Buttons & chips    13. Calculators
     6. Cards & panels     14. Timeline · FAQ · Stats
     7. Media placeholders 15. Forms
     8. Avatars & meta     16. Footer
                           17. Responsive
   ========================================================================== */

/* 1. Tokens ------------------------------------------------------------- */
:root {
  /* Surfaces */
  --bg: #F4F7F5;
  --surface: #FFFFFF;
  --surface-soft: #F8FBF9;
  --surface-alt: #EFF4F1;
  --surface-sunken: #E8EEEA;

  /* Ink */
  --ink: #16211C;
  --ink-2: #55635C;
  --ink-3: #8C978F;

  /* Brand */
  --primary: #17915F;
  --primary-mid: #1FA971;
  --primary-dark: #0F6F49;
  --primary-soft: #E3F3EA;
  --primary-tint: #F1FAF5;

  /* Accents */
  --lav: #7C6FE8;
  --lav-soft: #EFEDFD;
  --gold: #F5C518;
  --gold-soft: #FFF6D8;
  --warm: #F2A93C;
  --warm-soft: #FDF0DC;
  --heart: #FF5A5F;
  --heart-soft: #FFECEC;
  --info: #4C9BD5;
  --info-soft: #E7F1FA;
  --danger: #E2574C;

  /* Lines */
  --line: #E8EDEA;
  --line-2: #DAE2DD;

  /* Radii */
  --r-xs: 8px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 22px;
  --r-2xl: 28px;
  --r-pill: 999px;

  /* Elevation */
  --sh-1: 0 1px 2px rgba(16, 33, 25, .04);
  --sh-2: 0 6px 18px rgba(16, 33, 25, .06);
  --sh-3: 0 18px 44px rgba(16, 33, 25, .10);

  /* Motion */
  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* 2. Base / reset ------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
button { font: inherit; }

h1, h2, h3, h4 { margin: 0; letter-spacing: -.02em; line-height: 1.2; font-weight: 800; }
h1 { font-size: 40px; letter-spacing: -.035em; }
h2 { font-size: 26px; letter-spacing: -.028em; }
h3 { font-size: 18px; letter-spacing: -.02em; font-weight: 750; }
h4 { font-size: 15px; font-weight: 750; }
p { margin: 0; }

::selection { background: var(--primary-soft); color: var(--primary-dark); }

:focus-visible {
  outline: 2px solid var(--primary-mid);
  outline-offset: 2px;
  border-radius: 6px;
}

.muted { color: var(--ink-2); }
.dim { color: var(--ink-3); }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--primary);
}

/* 3. Layout ------------------------------------------------------------- */
.container { width: min(1280px, 100% - 40px); margin-inline: auto; }
.container-wide { width: min(1420px, 100% - 40px); margin-inline: auto; }
.container-narrow { width: min(880px, 100% - 40px); margin-inline: auto; }

.section { padding: 40px 0; }
.section-tight { padding: 24px 0; }
main { padding-bottom: 56px; }

.stack { display: grid; gap: 22px; align-content: start; }
.stack-sm { display: grid; gap: 12px; align-content: start; }
.stack-lg { display: grid; gap: 32px; align-content: start; }

.row { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.row-wrap { flex-wrap: wrap; }
.spacer { flex: 1; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

/* Main + right rail, used by community / cities / editorial pages. */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: start;
}
.split-wide { grid-template-columns: minmax(0, 1fr) 340px; }

/* 4. Nav ---------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -.03em;
  flex: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--ink-2);
  margin-inline: auto;
  white-space: nowrap;
}

.nav-links a {
  position: relative;
  padding: 22px 0;
  transition: color .18s var(--ease);
}
.nav-links a:hover { color: var(--ink); }

.nav-links a.active,
.nav-links .nav-trigger.active { color: var(--primary); font-weight: 750; }
.nav-links a.active::after,
.nav-links .nav-trigger.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
}

/* --- Dropdown groups -------------------------------------------------- */
/* One level only. The panel is always in the DOM (crawlable) and hidden
   visually; it opens on hover (pointer devices), keyboard focus, or a click. */
.nav-group { position: relative; }

.nav-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 22px 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--ink-2);
  cursor: pointer;
  transition: color .18s var(--ease);
}
.nav-trigger:hover { color: var(--ink); }
.nav-trigger .chev { transition: transform .2s var(--ease); opacity: .7; }
.nav-group.open .nav-trigger .chev { transform: rotate(180deg); }
.nav-group.open .nav-trigger { color: var(--ink); }

.nav-panel {
  position: absolute;
  top: calc(100% - 10px);
  left: 50%;
  transform: translate(-50%, -6px);
  z-index: 70;
  min-width: 268px;
  padding: 8px;
  display: grid;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-3);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .16s var(--ease), transform .16s var(--ease), visibility .16s;
}
.nav-group.open > .nav-panel,
.nav-group:focus-within > .nav-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
@media (hover: hover) {
  .nav-group:hover > .nav-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
  }
}

.nav-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--r-md);
  transition: background .14s var(--ease);
}
.nav-item:hover { background: var(--primary-tint); }
.nav-item.active { background: var(--primary-tint); }
.nav-item.active .t { color: var(--primary-dark); }
.nav-item .icon-chip { margin-top: 1px; }
.nav-item-text { display: grid; gap: 1px; min-width: 0; }
.nav-item .t { font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.nav-item .h { font-size: 11.5px; color: var(--ink-3); line-height: 1.4; }
.nav-item:hover .t { color: var(--primary-dark); }

.nav-cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--r-pill);
  background: var(--primary-dark);
  color: #fff;
  font-size: 13.5px;
  font-weight: 750;
  box-shadow: 0 8px 20px rgba(15, 111, 73, .22);
  transition: transform .18s var(--ease), background .18s var(--ease);
}
.nav-cta:hover { background: #0b5c3c; transform: translateY(-1px); }

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--r-sm);
  padding: 8px 10px;
  cursor: pointer;
  color: var(--ink);
}

.nav-mobile {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 8px 0 14px;
}
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 650;
  color: var(--ink-2);
}
.nav-mobile a.active { color: var(--primary); }
.nav-mobile .btn { margin-top: 18px; }

/* Same grouping as the desktop dropdowns, flattened into labelled sections so
   nothing needs a second tap to reveal. */
.nav-mobile-top {
  font-size: 16px !important;
  font-weight: 750 !important;
  color: var(--ink) !important;
  padding: 12px 0 !important;
  border-bottom: 1px solid var(--line);
}
.nav-mobile-group {
  padding: 14px 0 6px;
  border-bottom: 1px solid var(--line);
}
.nav-mobile-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 4px;
}

/* 5. Buttons & chips ---------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }

.btn-primary {
  background: var(--primary-dark);
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 111, 73, .2);
}
.btn-primary:hover { background: #0b5c3c; }

.btn-mid { background: var(--primary-mid); color: #fff; }
.btn-mid:hover { background: var(--primary); }

.btn-soft {
  background: #fff;
  border-color: var(--line-2);
  color: var(--ink);
}
.btn-soft:hover { border-color: var(--primary-mid); color: var(--primary); }

.btn-tint {
  background: var(--primary-soft);
  color: var(--primary-dark);
}
.btn-tint:hover { background: #d6ecdf; }

.btn-lav { background: var(--lav-soft); color: #4b3fc0; }
.btn-lav:hover { background: #e5e1fb; }

.btn-ghost { background: transparent; color: var(--primary); padding-inline: 4px; }

.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 14px 24px; font-size: 15px; }
.btn-block { width: 100%; }

/* Small "Tümünü Gör →" style link */
.more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 750;
  color: var(--primary);
  flex: none;
}
.more-link:hover { color: var(--primary-dark); }
.more-link .arw { transition: transform .18s var(--ease); }
.more-link:hover .arw { transform: translateX(3px); }

/* Filter chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 9px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: #fff;
  font-size: 13px;
  font-weight: 650;
  color: var(--ink-2);
  cursor: pointer;
  transition: all .18s var(--ease);
}
.chip:hover { border-color: var(--primary-mid); color: var(--primary); }
.chip.active {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
}

/* Soft category tag */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 11.5px;
  font-weight: 750;
  white-space: nowrap;
}
.tag-lav { background: var(--lav-soft); color: #4b3fc0; }
.tag-gold { background: var(--gold-soft); color: #8a6b06; }
.tag-warm { background: var(--warm-soft); color: #8d5f18; }
.tag-info { background: var(--info-soft); color: #2c6f9f; }
.tag-heart { background: var(--heart-soft); color: #c93f43; }
.tag-plain { background: var(--surface-alt); color: var(--ink-2); }

/* Hashtag pill (community sidebar) */
.hash {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--primary-tint);
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 650;
  color: var(--primary-dark);
}
.hash b { color: var(--ink-3); font-weight: 600; font-size: 11.5px; }

/* Icon chip — tinted rounded square behind a glyph */
.icon-chip {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary-dark);
}
.icon-chip-lg { width: 46px; height: 46px; border-radius: var(--r-lg); }
.icon-chip-sm { width: 30px; height: 30px; border-radius: var(--r-sm); }
.icon-chip.lav { background: var(--lav-soft); color: #4b3fc0; }
.icon-chip.gold { background: var(--gold-soft); color: #8a6b06; }
.icon-chip.warm { background: var(--warm-soft); color: #8d5f18; }
.icon-chip.heart { background: var(--heart-soft); color: var(--heart); }
.icon-chip.info { background: var(--info-soft); color: #2c6f9f; }

/* 6. Cards & panels ---------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-1);
}
.card-pad { padding: 20px; }
.card-pad-sm { padding: 14px; }
.card-pad-lg { padding: 26px; }

a.card, .card-hover {
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
a.card:hover, .card-hover:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-2);
  border-color: var(--line-2);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 20px;
  box-shadow: var(--sh-1);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.panel-head h2,
.panel-title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0;
}

.tint-panel {
  background: var(--primary-tint);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 18px;
}
.tint-panel.lav { background: var(--lav-soft); border-color: #e2ddfa; }

.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* Page head (title + subtitle block at the top of a list page) */
.page-head { padding: 34px 0 22px; }
.page-head h1 { margin-bottom: 10px; }
.page-head p { color: var(--ink-2); font-size: 15.5px; max-width: 560px; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-3);
  padding: 18px 0 0;
  flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { opacity: .55; }

.notice {
  background: var(--warm-soft);
  border: 1px solid #f2ddba;
  border-radius: var(--r-lg);
  padding: 14px 16px;
  color: #7d5c22;
  font-size: 14px;
}
.notice.ok { background: var(--primary-soft); border-color: #c6e6d4; color: var(--primary-dark); }

.empty {
  border: 1px dashed var(--line-2);
  border-radius: var(--r-lg);
  padding: 28px;
  text-align: center;
  color: var(--ink-3);
  font-size: 14px;
  background: var(--surface-soft);
}

/* 7. Media placeholders ------------------------------------------------- */
/* Every photo in the design goes through partials/_photo.html: a real upload
   renders as <img>, everything else falls back to a labelled gradient block so
   it is obvious where artwork is still missing. */
.photo {
  width: 100%;
  border-radius: var(--r-lg);
  object-fit: cover;
  background: var(--surface-alt);
}

.photo--ph {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(140deg, #D9EDE1, #EAF3E4 48%, #CFE6DC);
}
.photo--ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 12% 8%, rgba(255, 255, 255, .7), transparent 60%),
    radial-gradient(90% 70% at 88% 96%, rgba(255, 255, 255, .35), transparent 60%);
}

.photo-ph-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .78);
  color: #4d6a5e;
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Placeholder moods, so a page of placeholders still reads as varied artwork. */
.ph-forest  { background: linear-gradient(140deg, #CDE7D8, #A9D3BC 55%, #D9EBDF); }
.ph-sunrise { background: linear-gradient(140deg, #FBE0BC, #F4C89A 50%, #E9DCC4); }
.ph-dawn    { background: linear-gradient(140deg, #E5DDF7, #CFE3EE 55%, #EAF0E6); }
.ph-city    { background: linear-gradient(140deg, #DCE6EF, #C6D8E6 55%, #E7EDE9); }
.ph-warm    { background: linear-gradient(140deg, #FBEAD3, #EFDCC2 55%, #DEEADF); }
.ph-night   { background: linear-gradient(140deg, #C3D3D0, #9FB8B6 55%, #D5E1DC); }
.ph-lung    { background: linear-gradient(140deg, #CFE9E4, #A8D6CE 55%, #DCEFE9); }

/* Aspect helpers */
.photo-16x9 { aspect-ratio: 16 / 9; }
.photo-4x3  { aspect-ratio: 4 / 3; }
.photo-3x2  { aspect-ratio: 3 / 2; }
.photo-2x1  { aspect-ratio: 2 / 1; }
.photo-1x1  { aspect-ratio: 1 / 1; }
.photo-hero { aspect-ratio: 21 / 9; }

/* Landscape artwork sitting beside hero copy (calculators, about, app pages). */
.wash-art {
  flex: none;
  width: min(420px, 42%);
  aspect-ratio: 2 / 1;
  position: relative;
  z-index: 1;
}
.wash-art.wide { width: min(480px, 46%); }

.photo-thumb { width: 116px; height: 84px; flex: none; border-radius: var(--r-md); }
.photo-thumb-sm { width: 62px; height: 56px; flex: none; border-radius: var(--r-sm); }
.photo-avatarish { width: 78px; height: 60px; flex: none; border-radius: var(--r-md); }

/* Photo with copy laid over it */
.overlay-media {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  isolation: isolate;
}
.overlay-media > .photo { border-radius: 0; }
.overlay-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9, 24, 17, .78) 0%, rgba(9, 24, 17, .28) 45%, rgba(9, 24, 17, .04) 100%);
}
.overlay-body {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 20px;
  color: #fff;
}
.overlay-body h2, .overlay-body h1, .overlay-body h3 { color: #fff; }
.overlay-body p { color: rgba(255, 255, 255, .82); }

/* Floating stat card over a hero photo */
.float-stat {
  position: absolute;
  z-index: 3;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(8px);
  border-radius: var(--r-lg);
  padding: 12px 16px;
  text-align: center;
  box-shadow: var(--sh-2);
}
.float-stat .label { font-size: 11px; font-weight: 700; color: var(--ink-3); }
.float-stat .value { font-size: 22px; font-weight: 850; letter-spacing: -.03em; color: var(--primary-dark); }
.float-stat .unit { font-size: 11px; color: var(--ink-2); line-height: 1.25; }

/* Heart / count badge pinned inside a photo */
.photo-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .93);
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
  box-shadow: var(--sh-1);
}
.photo-badge svg { color: var(--heart); }

.photo-tag {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 3;
}

/* 8. Avatars & meta ----------------------------------------------------- */
.avatar {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #B7E0CD, #DCD7F6);
  color: #2c4a3d;
  font-size: 12.5px;
  font-weight: 800;
  overflow: hidden;
  border: 1.5px solid #fff;
}
.avatar-sm { width: 26px; height: 26px; font-size: 10.5px; }
.avatar-lg { width: 46px; height: 46px; font-size: 15px; }
.avatar-xl { width: 58px; height: 58px; font-size: 18px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.avatar-stack { display: flex; }
.avatar-stack .avatar { margin-left: -10px; box-shadow: 0 0 0 2px #fff; }
.avatar-stack .avatar:first-child { margin-left: 0; }

.byline {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.byline .name { font-size: 13px; font-weight: 750; }
.byline .sub { font-size: 11.5px; color: var(--ink-3); }
.byline .verified { color: var(--primary-mid); }

.meta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 650;
}
.meta-row .m { display: inline-flex; align-items: center; gap: 5px; }
.meta-row .m.heart { color: var(--heart); }

/* Stat tile — icon chip on top, big value, small label */
.stat-tile {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 14px;
  text-align: center;
}
.stat-tile .value {
  font-size: 24px;
  font-weight: 850;
  letter-spacing: -.035em;
  margin-top: 8px;
}
.stat-tile .label { font-size: 11.5px; color: var(--ink-2); font-weight: 600; }
.stat-tile .icon-chip { margin-inline: auto; }

/* Inline stat, icon to the left of the number (city hero strip) */
.stat-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
}
.stat-inline .value { font-size: 22px; font-weight: 850; letter-spacing: -.03em; line-height: 1.1; }
.stat-inline .label { font-size: 12px; color: var(--ink-2); font-weight: 600; }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-1);
  overflow: hidden;
}
.stat-strip > * + * { border-left: 1px solid var(--line); }

/* Sparkline block */
.spark { flex: none; width: 118px; }
.spark svg { overflow: visible; }

/* 9. Home ---------------------------------------------------------------- */
/* The home page is one column of full-width sections, stacked in reading
   order — hero, metrics, map, featured posts, news, blog, question. */
.home-sections {
  display: grid;
  gap: 26px;
  padding: 22px 0 8px;
}

/* Map panel + city ranking side by side inside the map section. */
.map-split {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

/* Hero — photo with the headline over it */
.hero {
  position: relative;
  border-radius: var(--r-2xl);
  overflow: hidden;
  min-height: 440px;
  display: flex;
  align-items: center;
  isolation: isolate;
}
.hero > .photo {
  position: absolute;
  inset: 0;
  height: 100%;
  border-radius: 0;
  z-index: -1;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(255, 255, 255, .96) 0%, rgba(255, 255, 255, .9) 34%, rgba(255, 255, 255, .42) 58%, rgba(255, 255, 255, .04) 100%);
}
.hero-body { padding: 48px 44px; max-width: 620px; }
.hero-body h1 { font-size: 46px; line-height: 1.1; }
.hero-body h1 .accent { color: var(--primary); display: block; }
.hero-body p {
  color: var(--ink-2);
  font-size: 16.5px;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 470px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-social { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.hero-social .txt { font-size: 13px; font-weight: 700; }

/* Leaf watermark used on soft green washes */
.leafy { position: relative; overflow: hidden; }
.leafy > .leaf-art {
  position: absolute;
  right: -6px;
  bottom: -10px;
  width: 150px;
  opacity: .9;
  pointer-events: none;
}
.leafy > * { position: relative; z-index: 1; }
.leafy > .leaf-art { z-index: 0; }

/* Metric tiles under the hero — six across on a full-width row */
.stat-card-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.stat-card-grid .stat-tile { padding: 18px 14px; }
.stat-card-grid .value { font-size: 26px; }

/* Map panel */
.map-panel { padding: 18px; }
.map-wrap {
  position: relative;
  background: var(--surface-soft);
  border-radius: var(--r-lg);
  padding: 8px;
}
.map-wrap svg { width: 100%; height: auto; display: block; }
.map-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  color: var(--ink-3);
  font-weight: 650;
  margin-top: 12px;
}
.map-ramp {
  height: 8px;
  flex: 1;
  max-width: 130px;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, #E7F1EA, #CFE9DA, #A9DCC1, #5CC095, #17915F);
}

/* Ranked city list ("En Güçlü Şehirler" / "En Aktif Şehirler") */
.rank-list { display: grid; gap: 2px; }
.rank-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-radius: var(--r-md);
  transition: background .16s var(--ease);
}
.rank-row:hover { background: var(--surface-soft); }
.rank-num {
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: var(--primary-dark);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
}
.rank-row:nth-child(1) .rank-num { background: var(--primary-dark); }
.rank-row:nth-child(2) .rank-num { background: var(--primary-mid); }
.rank-row:nth-child(3) .rank-num { background: #46bd8c; }
.rank-row:nth-child(n+4) .rank-num { background: #8ed3b3; color: #10402c; }
.rank-name { font-size: 14px; font-weight: 700; flex: 1; min-width: 0; }
.rank-value { font-size: 13.5px; font-weight: 800; color: var(--ink-2); }

/* "Bu ay Türkiye genelinde …" banner */
.month-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--primary-tint);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 18px;
}
.month-banner .txt { flex: 1; min-width: 0; }
.month-banner .txt p { font-size: 13px; color: var(--ink-2); }
.month-banner .txt strong { font-size: 19px; font-weight: 850; letter-spacing: -.03em; display: block; margin: 2px 0 10px; }

/* Full-width variant: copy on the left, CTA pinned right. */
.month-banner.wide { justify-content: space-between; padding: 22px 26px; }
.month-banner.wide .txt strong { font-size: 23px; margin-bottom: 0; }

/* Featured post carousel */
.carousel { position: relative; }
.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { scroll-snap-align: start; }

.carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--line-2);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: all .2s var(--ease);
}
.dot.active { width: 18px; background: var(--primary-mid); }

.carousel-nav {
  position: absolute;
  top: 50%;
  right: -14px;
  transform: translateY(-50%);
  z-index: 4;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--sh-2);
}
.carousel-nav:hover { color: var(--primary); }
.carousel-nav.prev { left: -14px; right: auto; }

/* Post card (used in carousels + grids) */
.post-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.post-card:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.post-card .media { position: relative; }
.post-card .media .photo { border-radius: 0; }
.post-card .body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card .body h3 { font-size: 15px; line-height: 1.35; }
.post-card .body p {
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card .foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }

/* News / blog row (thumb + copy) */
.media-row {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.media-row:first-of-type { padding-top: 0; }
.media-row:last-of-type { border-bottom: 0; padding-bottom: 0; }
.media-row .body { min-width: 0; flex: 1; display: grid; gap: 6px; align-content: start; }
.media-row .body h3 { font-size: 15.5px; line-height: 1.35; }
.media-row .body p {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 90ch;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.media-row:hover .body h3 { color: var(--primary-dark); }

/* Question of the week */
.qotw {
  background: var(--lav-soft);
  border: 1px solid #e3dffb;
  border-radius: var(--r-xl);
  padding: 20px;
  position: relative;
}
.qotw .quote-mark {
  position: absolute;
  left: 18px;
  top: 16px;
  font-size: 30px;
  line-height: 1;
  color: #b7aef2;
  font-weight: 800;
}
.qotw-inner { padding-left: 34px; }
.qotw .kicker { font-size: 12px; font-weight: 750; color: #6b5fd6; }
.qotw h3 { font-size: 19px; line-height: 1.35; margin: 6px 0 14px; letter-spacing: -.025em; }

.answer-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 14px;
  display: grid;
  gap: 10px;
  align-content: start;
}
.answer-card p {
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.foot-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary-tint);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 14px;
  font-size: 13.5px;
  font-weight: 750;
  color: var(--primary-dark);
}
.foot-cta:hover { background: var(--primary-soft); }

/* 10. Community -------------------------------------------------------- */
.member-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--primary-tint);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 20px;
}
.member-card .value { font-size: 26px; font-weight: 850; letter-spacing: -.035em; }
.member-card .label { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.member-card .note { font-size: 12.5px; color: var(--primary-dark); font-weight: 700; margin-top: 12px; }

.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  padding: 0 14px;
  height: 44px;
  flex: 1;
  min-width: 0;
}
.search-field svg { color: var(--ink-3); flex: none; }
.search-field input {
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  width: 100%;
  color: var(--ink);
}
.search-field input::placeholder { color: var(--ink-3); }

.tabs {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid var(--line);
}
.tabs a, .tabs button {
  padding: 12px 2px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-3);
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
}
.tabs a.active, .tabs button.active { color: var(--primary-dark); }
.tabs a.active::after, .tabs button.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--primary-dark);
  border-radius: 2px;
}

/* Feed item — thumbnail left, copy right */
.feed-item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.feed-item:last-child { border-bottom: 0; }
.feed-item .body { flex: 1; min-width: 0; display: grid; gap: 7px; align-content: start; }
.feed-item .body h3 { font-size: 17px; line-height: 1.32; }
.feed-item .body > p {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feed-item:hover h3 { color: var(--primary-dark); }
.feed-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Post detail */
.post-detail { padding: 26px; }
.post-detail h1 { font-size: 30px; line-height: 1.18; margin: 12px 0 16px; }
.post-hero { border-radius: var(--r-lg); overflow: hidden; position: relative; }

.post-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  font-weight: 750;
  color: var(--ink-2);
  cursor: pointer;
  transition: all .18s var(--ease);
}
.action-btn:hover { border-color: var(--line-2); color: var(--ink); }
.action-btn.liked { background: var(--heart-soft); border-color: #f8d3d3; color: #c93f43; }
.action-btn.liked svg { color: var(--heart); }

.post-body { padding: 20px 0; display: grid; gap: 14px; }
.post-body p { font-size: 15px; line-height: 1.8; color: #37463f; }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }

.author-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px;
  flex-wrap: wrap;
}
.author-card .body { flex: 1; min-width: 160px; }
.author-card .name { font-size: 14.5px; font-weight: 800; }
.author-card .sub { font-size: 12.5px; color: var(--ink-2); }

.comment-list { display: grid; gap: 4px; }
.comment {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.comment:last-child { border-bottom: 0; }
.comment .body { flex: 1; min-width: 0; }
.comment .head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.comment .head .name { font-size: 13px; font-weight: 750; }
.comment .head .days { font-size: 11.5px; color: var(--ink-3); font-weight: 650; }
.comment p { font-size: 13.5px; line-height: 1.65; color: #3d4b44; margin-top: 4px; }
.comment .foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-3);
}
.comment .foot .reply:hover { color: var(--primary); }

/* Right rail lists */
.side-list { display: grid; gap: 2px; }
.side-row {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.side-row:last-child { border-bottom: 0; }
.side-row .body { flex: 1; min-width: 0; display: grid; gap: 4px; align-content: start; }
.side-row .body h4 {
  font-size: 13.5px;
  line-height: 1.35;
  font-weight: 750;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.side-row:hover .body h4 { color: var(--primary-dark); }
.side-row .sub { font-size: 11.5px; color: var(--ink-3); font-weight: 650; }

/* App promo rail with a phone mock */
.app-promo {
  background: var(--primary-tint);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.app-promo h3 { font-size: 16px; line-height: 1.35; }
.app-promo p { font-size: 13px; color: var(--ink-2); line-height: 1.6; margin: 8px 0 16px; }
.store-row { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.store-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--ink);
}
.store-btn:hover { border-color: var(--line-2); }

.store-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid var(--line-2);
  font-size: 13px;
  font-weight: 750;
}
.store-badge:hover { border-color: var(--primary-mid); }

/* Small phone mock (pure CSS, stands in for a real screenshot) */
.phone-mock {
  width: 108px;
  border-radius: 16px;
  border: 4px solid #1d2b24;
  background: linear-gradient(160deg, #F2FAF6, #E2F2E9);
  aspect-ratio: 9 / 17;
  padding: 8px;
  display: grid;
  gap: 6px;
  align-content: start;
  box-shadow: var(--sh-2);
  flex: none;
}
.phone-mock .ring {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 4px solid var(--primary-mid);
  border-right-color: var(--primary-soft);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 850;
  color: var(--primary-dark);
  margin: 6px auto 2px;
}
.phone-mock .bar { height: 7px; border-radius: 4px; background: rgba(23, 145, 95, .16); }
.phone-mock .bar.w70 { width: 70%; }
.phone-mock .bar.w50 { width: 50%; }
.phone-mock .card-lite { height: 22px; border-radius: 6px; background: #fff; border: 1px solid var(--line); }

/* 11. Cities ----------------------------------------------------------- */
.wash-hero {
  position: relative;
  background: linear-gradient(120deg, #EAF6EE 0%, #F3F9F3 45%, #E6F3EA 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  padding: 34px;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.wash-hero h1 { font-size: 34px; line-height: 1.15; }
.wash-hero h1 .accent { color: var(--primary); display: block; }
.wash-hero p { color: var(--ink-2); font-size: 15px; margin-top: 12px; max-width: 460px; }
.wash-hero .body { flex: 1; min-width: 260px; position: relative; z-index: 1; }

.hero-stat {
  position: relative;
  z-index: 1;
  flex: none;
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px 22px;
  text-align: center;
  box-shadow: var(--sh-1);
}
.hero-stat .label { font-size: 12px; font-weight: 700; color: var(--ink-3); }
.hero-stat .value { font-size: 30px; font-weight: 850; letter-spacing: -.04em; color: var(--primary-dark); }
.hero-stat .unit { font-size: 12px; color: var(--ink-2); line-height: 1.3; }

.city-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 14px;
  box-shadow: var(--sh-1);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.city-row:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--line-2); }
.city-row .body { flex: 1; min-width: 0; }
.city-row .name { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.city-row .desc { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.city-row .nums { display: flex; gap: 18px; margin-top: 10px; flex-wrap: wrap; }
.city-row .num { display: flex; align-items: center; gap: 7px; }
.city-row .num .n { font-size: 13.5px; font-weight: 800; }
.city-row .num .l { font-size: 11px; color: var(--ink-3); font-weight: 650; }
.city-row .chev { color: var(--ink-3); flex: none; }
.city-row:hover .chev { color: var(--primary); }

.city-hero {
  position: relative;
  border-radius: var(--r-2xl);
  overflow: hidden;
  min-height: 210px;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.city-hero > .photo { position: absolute; inset: 0; height: 100%; border-radius: 0; z-index: -1; }
.city-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(10, 26, 18, .72), rgba(10, 26, 18, .18) 65%, rgba(10, 26, 18, .05));
}
.city-hero .body { padding: 26px; color: #fff; }
.city-hero h1 { font-size: 36px; color: #fff; }
.city-hero p { color: rgba(255, 255, 255, .85); font-size: 15px; margin-top: 8px; max-width: 420px; }
.city-hero .breadcrumb { color: rgba(255, 255, 255, .8); padding-top: 0; margin-bottom: 10px; }
.city-hero .breadcrumb a:hover { color: #fff; }

.activity-item {
  display: flex;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 14px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.activity-item:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.activity-item .photo { width: 150px; height: 108px; flex: none; }
.activity-item .body { flex: 1; min-width: 0; display: grid; gap: 8px; align-content: start; }
.activity-item .body h3 { font-size: 16px; line-height: 1.35; }
.activity-item .body p {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.place-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.place-row:last-child { border-bottom: 0; }
.place-row .body { flex: 1; min-width: 0; }
.place-row .name { font-size: 13.5px; font-weight: 750; }
.place-row .sub { font-size: 11.5px; color: var(--ink-3); }

/* 12. Editorial (blog / news / stories) -------------------------------- */
.feature-article {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.feature-article > .photo { position: absolute; inset: 0; height: 100%; border-radius: 0; z-index: -1; }
.feature-article::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(8, 24, 16, .82), rgba(8, 24, 16, .3) 55%, rgba(8, 24, 16, .05));
}
.feature-article .body { padding: 24px; color: #fff; }
.feature-article h2 { color: #fff; font-size: 26px; line-height: 1.2; margin: 10px 0; }
.feature-article p { color: rgba(255, 255, 255, .84); font-size: 14px; line-height: 1.6; max-width: 420px; }

.article-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.article-row:last-child { border-bottom: 0; }
.article-row .body { flex: 1; min-width: 0; display: grid; gap: 6px; align-content: start; }
.article-row .body h3 { font-size: 15px; line-height: 1.35; }
.article-row:hover .body h3 { color: var(--primary-dark); }

.numbered-list { display: grid; gap: 2px; counter-reset: n; }
.numbered-row {
  display: flex;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.numbered-row:last-child { border-bottom: 0; }
.numbered-row .n {
  width: 20px;
  flex: none;
  font-size: 15px;
  font-weight: 850;
  color: var(--ink-3);
  line-height: 1.4;
}
.numbered-row .t { font-size: 13.5px; font-weight: 700; line-height: 1.45; }
.numbered-row:hover .t { color: var(--primary-dark); }

/* Article detail: share rail · main · sidebar */
.article-layout {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: start;
}
.share-rail {
  display: grid;
  gap: 8px;
  position: sticky;
  top: 88px;
}
.share-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--ink-2);
  cursor: pointer;
  transition: all .18s var(--ease);
}
.share-btn:hover { color: var(--primary); border-color: var(--primary-mid); }

.prose { display: grid; gap: 16px; }
.prose h1 { font-size: 34px; line-height: 1.15; }
.prose h2 { font-size: 22px; margin-top: 14px; }
.prose h3 { font-size: 17px; margin-top: 8px; }
.prose p, .prose li { font-size: 15.5px; line-height: 1.85; color: #384740; }
.prose ul, .prose ol { margin: 0; padding-left: 22px; display: grid; gap: 7px; }
.prose img { border-radius: var(--r-lg); }
.prose a { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 3px; }

.callout {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px;
}
.callout h4 { margin-bottom: 10px; }
.callout ol, .callout ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.callout li { font-size: 14px; color: var(--ink-2); }

.quote {
  border-left: 3px solid var(--primary-mid);
  background: var(--primary-tint);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  padding: 18px 20px;
  font-size: 16px;
  line-height: 1.7;
  color: #2a4238;
}
.quote cite { display: block; margin-top: 10px; font-size: 13px; font-style: normal; font-weight: 750; color: var(--ink-2); }

.checklist { display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; font-size: 14px; color: var(--ink-2); list-style: none; }
.checklist li svg { flex: none; color: var(--primary-mid); margin-top: 3px; }
.checklist { padding: 0; margin: 0; }

.newsletter-card {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px;
}
.newsletter-card h4 { margin-bottom: 6px; }
.newsletter-card p { font-size: 12.5px; color: var(--ink-2); line-height: 1.55; }

.pull-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}
.pull-card .body { padding: 14px; }

/* Success stories */
.story-row {
  display: flex;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px;
  position: relative;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.story-row:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.story-row .photo { width: 108px; height: 116px; flex: none; }
.story-row .body { flex: 1; min-width: 0; display: grid; gap: 8px; align-content: start; padding-right: 60px; }
.story-row .who { font-size: 13px; font-weight: 750; color: var(--ink-2); }
.story-row h3 { font-size: 16.5px; line-height: 1.4; }
.story-row p { font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }
.story-row .year-badge { position: absolute; top: 16px; right: 16px; }

/* 13. Calculators ------------------------------------------------------ */
.calc-card {
  display: grid;
  gap: 10px;
  align-content: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px;
  box-shadow: var(--sh-1);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.calc-card:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--line-2); }
.calc-card h3 { font-size: 15px; }
.calc-card p { font-size: 12.5px; color: var(--ink-2); line-height: 1.55; }
.calc-card .go { margin-top: 4px; color: var(--primary); }

.calc-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.field { display: grid; gap: 7px; }
.field label { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: #fff;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
}
.field input:focus,
.field select:focus,
.field textarea:focus { outline: 2px solid var(--primary-soft); border-color: var(--primary-mid); }
.field .hint { font-size: 11.5px; color: var(--ink-3); }
.field .err { font-size: 11.5px; color: var(--danger); font-weight: 650; }

.result-list { display: grid; gap: 12px; }
.result-tile {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 14px 16px;
}
.result-tile .label { font-size: 12.5px; color: var(--ink-2); font-weight: 650; }
.result-tile .value {
  font-size: 26px;
  font-weight: 850;
  letter-spacing: -.04em;
  color: var(--primary-dark);
  margin-top: 2px;
}
.result-tile.hero { background: var(--primary-tint); border-color: #cfe7da; }
.result-tile.hero .value { font-size: 32px; }

/* Line chart (savings projection) */
.line-chart { width: 100%; }
.line-chart svg { width: 100%; height: auto; overflow: visible; }
.chart-axis { font-size: 10px; fill: var(--ink-3); font-weight: 650; }

/* Feature strip — icon + title + text cells split by hairline dividers.
   Used under the calculators hero and for the contact channel cards. */
.feature-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.feature-strip > * + * { border-left: 1px solid var(--line); }
.feature-cell {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
}
.feature-cell .t { font-size: 13.5px; font-weight: 750; line-height: 1.35; }
.feature-cell .s { font-size: 12px; color: var(--ink-2); margin-top: 2px; line-height: 1.45; }

/* Calculator inputs — the design renders every field as a select */
.calc-fields { display: grid; gap: 12px; }
.field-select {
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  padding: 10px 14px 11px;
  background: #fff;
  transition: border-color .16s var(--ease);
}
.field-select:focus-within { border-color: var(--primary-mid); }
.field-select label {
  display: block;
  font-size: 11.5px;
  font-weight: 650;
  color: var(--ink-3);
}
.field-select select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  padding: 3px 0 0;
  appearance: none;
  cursor: pointer;
}
.field-select { position: relative; }
.field-select::after {
  content: "";
  position: absolute;
  right: 15px;
  bottom: 17px;
  width: 8px;
  height: 8px;
  border-right: 1.8px solid var(--ink-3);
  border-bottom: 1.8px solid var(--ink-3);
  transform: rotate(45deg);
  pointer-events: none;
}
.calc-fields[hidden] { display: none; }

.note-box {
  display: flex;
  gap: 11px;
  background: var(--surface-alt);
  border-radius: var(--r-md);
  padding: 13px 14px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-2);
}
.note-box svg { flex: none; margin-top: 2px; color: var(--ink-3); }

/* Result period tabs */
.period-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.period-tab {
  padding: 7px 13px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
  cursor: pointer;
  transition: all .16s var(--ease);
}
.period-tab:hover { background: var(--surface-alt); color: var(--ink); }
.period-tab.active { background: var(--primary-dark); color: #fff; }

/* Headline result with artwork on the right */
.result-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: var(--primary-tint);
  border: 1px solid #cfe7da;
  border-radius: var(--r-lg);
  padding: 18px 20px;
  overflow: hidden;
}
.result-hero .label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.result-hero .value {
  font-size: 34px;
  font-weight: 850;
  letter-spacing: -.04em;
  color: var(--primary);
  line-height: 1.1;
  margin-top: 2px;
}
.result-art { flex: none; width: 160px; }
.result-art svg { width: 100%; height: auto; }

/* Breakdown rows under the headline result */
.breakdown { display: grid; }
.breakdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.breakdown-row:last-child { border-bottom: 0; }
.breakdown-row .k { color: var(--ink-2); }
.breakdown-row .v { font-weight: 800; }

/* "Bu parayla neler yapabilirdiniz?" */
.idea-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.idea {
  text-align: center;
  padding: 12px 8px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  transition: all .18s var(--ease);
}
.idea .icon-chip { margin-inline: auto; }
.idea .l { font-size: 11.5px; font-weight: 750; margin-top: 8px; line-height: 1.3; }
.idea .p { font-size: 11px; color: var(--ink-3); font-weight: 650; }
.idea.affordable {
  background: var(--primary-tint);
  border-color: #cfe7da;
}
.idea.affordable .p { color: var(--primary-dark); }

/* Wide app-download band (calculators, contact) */
.app-band {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--primary-tint);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 20px 26px;
  position: relative;
  overflow: hidden;
  flex-wrap: wrap;
}
.app-band .body { flex: 1; min-width: 220px; position: relative; z-index: 1; }
.app-band h3 { font-size: 19px; letter-spacing: -.025em; }
.app-band p { font-size: 13.5px; color: var(--ink-2); line-height: 1.6; margin-top: 6px; max-width: 460px; }
.app-band .phone-mock { position: relative; z-index: 1; }

/* QR placeholder */
.qr {
  flex: none;
  width: 66px;
  height: 66px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  background: #fff;
  padding: 5px;
  position: relative;
  z-index: 1;
}
.qr svg { width: 100%; height: 100%; }

/* 14b. Contact --------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.contact-grid-lower { margin-top: 18px; }

/* The upper fold sits on one full-bleed photo band: headline left, form right,
   channel cards over its lower edge. The band is the positioning context, so the
   photo and its scrim can span the viewport while the content stays in the grid. */
.contact-band {
  position: relative;
  isolation: isolate;
  padding: 34px 0 26px;
  margin-bottom: 2px;
  overflow: hidden;
}
.contact-band > .contact-band-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  z-index: -2;
}
.contact-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Legibility scrim: opaque behind the headline, clearing toward the photo's
     bright side. The vertical pass keeps the band from cutting hard into the page. */
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 62%, var(--bg) 100%),
    linear-gradient(100deg, rgba(255, 255, 255, .96) 0%, rgba(255, 255, 255, .86) 34%, rgba(255, 255, 255, .42) 62%, rgba(255, 255, 255, .12) 100%);
}

.contact-hero { padding: 28px 4px 30px; max-width: 560px; }
.contact-hero h1 {
  font-size: 42px;
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.contact-hero h1 .leaf { color: var(--primary-mid); }
.contact-hero p { color: var(--ink-2); font-size: 16px; line-height: 1.7; margin-top: 14px; max-width: 400px; }

.trust-row { display: flex; gap: 26px; margin-top: 26px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 10px; max-width: 165px; }
.trust-item .t { font-size: 13px; font-weight: 650; line-height: 1.4; color: var(--ink-2); }
.trust-item .icon-chip { background: #fff; box-shadow: var(--sh-1); color: var(--primary); }

/* Contact channel cards: one row, hairline dividers, e-mail + CTA per cell */
.channel-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-2);
  overflow: hidden;
}
.channel-strip > * + * { border-left: 1px solid var(--line); }
.channel {
  padding: 20px 18px;
  display: grid;
  gap: 8px;
  align-content: start;
}
.channel h3 { font-size: 15px; }
.channel.is-primary h3 { color: var(--info); }
.channel p { font-size: 12.5px; color: var(--ink-2); line-height: 1.55; }
.channel .mail { font-size: 12.5px; color: var(--ink-2); word-break: break-all; }
.channel.is-primary .mail { color: var(--info); }
.channel .more-link { margin-top: 4px; }

/* Form card with the dark header block */
.form-card {
  border-radius: var(--r-xl);
  align-self: start;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--sh-2);
  background: var(--surface);
}
.form-card-head {
  background: #14382A;
  color: #fff;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 15px;
}
.form-card-head .icon-chip {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
}
.form-card-head h2 { font-size: 19px; color: #fff; }
.form-card-head p { font-size: 13px; color: rgba(255, 255, 255, .74); line-height: 1.55; margin-top: 3px; }
.form-card-body { padding: 22px 24px 24px; display: grid; gap: 14px; }

.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Input with a leading icon */
.input-icon { position: relative; }
.input-icon > svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-3);
  pointer-events: none;
}
.input-icon input,
.input-icon select { padding-left: 42px; }
.input-icon select { appearance: none; cursor: pointer; }
.input-icon.select::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 44%;
  width: 8px;
  height: 8px;
  border-right: 1.8px solid var(--ink-3);
  border-bottom: 1.8px solid var(--ink-3);
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
}

.textarea-wrap { position: relative; }
.textarea-wrap textarea { resize: vertical; min-height: 132px; padding-bottom: 30px; }
.char-counter {
  position: absolute;
  right: 14px;
  bottom: 11px;
  font-size: 11.5px;
  font-weight: 650;
  color: var(--ink-3);
  pointer-events: none;
}
.char-counter.near { color: var(--warm); }
.char-counter.full { color: var(--danger); }

.privacy-note {
  display: flex;
  gap: 11px;
  background: var(--primary-tint);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 13px 14px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-2);
}
.privacy-note svg { flex: none; margin-top: 1px; color: var(--primary); }

.address-card p { font-size: 13px; line-height: 1.75; color: var(--ink-2); position: relative; z-index: 1; }

/* 14. Timeline · FAQ · Stats ------------------------------------------- */
.timeline { position: relative; display: grid; gap: 4px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary-soft), #cfe7da);
}
.timeline-item {
  position: relative;
  display: flex;
  gap: 18px;
  padding: 12px 0;
  align-items: flex-start;
}
.timeline-icon {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--primary-soft);
  display: grid;
  place-items: center;
  color: var(--primary-mid);
  position: relative;
  z-index: 1;
}
.timeline-item .body { flex: 1; min-width: 0; padding-top: 4px; }
.timeline-item .when { font-size: 15.5px; font-weight: 800; letter-spacing: -.02em; }
.timeline-item .what { font-size: 13.5px; color: var(--ink-2); line-height: 1.6; margin-top: 3px; }

.faq-list { display: grid; gap: 10px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  overflow: hidden;
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { color: var(--ink-3); flex: none; transition: transform .2s var(--ease); }
.faq-item[open] summary { color: var(--primary-dark); }
.faq-item[open] summary .chev { transform: rotate(180deg); color: var(--primary); }
.faq-item .answer { padding: 0 18px 18px; font-size: 14px; line-height: 1.75; color: var(--ink-2); }

.faq-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--primary-tint);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 20px;
  flex-wrap: wrap;
}
.faq-cta .body { flex: 1; min-width: 200px; }
.faq-cta h3 { font-size: 16px; }
.faq-cta p { font-size: 13px; color: var(--ink-2); margin-top: 4px; }

/* Bar chart (stats centre) */
.bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 140px;
}
.bar {
  flex: 1;
  min-width: 0;
  background: linear-gradient(180deg, #4dc192, var(--primary));
  border-radius: 4px 4px 2px 2px;
  min-height: 3px;
  position: relative;
}
.bar:hover { background: var(--primary-dark); }
.bar-labels {
  display: flex;
  gap: 4px;
  margin-top: 8px;
  font-size: 9.5px;
  color: var(--ink-3);
  font-weight: 650;
}
.bar-labels span { flex: 1; min-width: 0; text-align: center; }

.chart-card { padding: 18px; }
.chart-card .panel-head { margin-bottom: 14px; }

.mini-rank { display: grid; gap: 1px; }
.mini-rank-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  font-size: 13px;
}
.mini-rank-row .n { width: 16px; color: var(--ink-3); font-weight: 750; font-size: 11.5px; }
.mini-rank-row .name { flex: 1; font-weight: 650; }
.mini-rank-row .v { font-weight: 800; color: var(--ink-2); }

.select-lite {
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: #fff;
  padding: 7px 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
}

/* 15. Forms ------------------------------------------------------------ */
.form-grid { display: grid; gap: 16px; }
.form-grid .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.inline-form { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-form input {
  flex: 1;
  min-width: 160px;
  padding: 11px 13px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  font: inherit;
  font-size: 13.5px;
}

/* 16. Footer ----------------------------------------------------------- */
/* Deep forest band — the only large dark surface on the site. */
footer {
  background: #14382A;
  color: #E6F0EA;
  margin-top: 36px;
  border-radius: var(--r-2xl) var(--r-2xl) 0 0;
  padding: 44px 0 24px;
}

.footer-grid {
  display: grid;
  /* brand · 4 link columns · quote — mirrors the nav groups so the footer is a
     complete second crawl path. */
  grid-template-columns: 1.15fr .8fr .85fr .9fr .75fr 1fr;
  gap: 26px;
}

.footer-brand .brand { color: #fff; }
.footer-brand p {
  color: rgba(230, 240, 234, .72);
  font-size: 13.5px;
  line-height: 1.75;
  max-width: 280px;
  margin-top: 14px;
}
.footer-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  font-size: 13px;
  font-weight: 700;
  color: #8FD9B4;
}

.footer-col h4 { margin-bottom: 14px; font-size: 13.5px; color: #fff; }
.footer-col a {
  display: block;
  color: rgba(230, 240, 234, .7);
  font-size: 13.5px;
  padding: 5px 0;
  transition: color .16s var(--ease);
}
.footer-col a:hover { color: #8FD9B4; }

/* Pull-quote card in the last footer column */
.footer-quote {
  position: relative;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--r-lg);
  padding: 20px;
  overflow: hidden;
}
.footer-quote p {
  position: relative;
  z-index: 1;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
  color: #fff;
  max-width: 220px;
}
.footer-quote .qm { color: #7FCFA6; opacity: .85; }
.footer-quote .leaf-art { right: -14px; bottom: -18px; width: 132px; opacity: .3; }

.social-row { display: flex; gap: 8px; }
.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--ink-2);
  background: #fff;
  transition: all .18s var(--ease);
}
.social-btn:hover { color: var(--primary); border-color: var(--primary-mid); }

.copyright {
  border-top: 1px solid rgba(255, 255, 255, .12);
  margin-top: 34px;
  padding-top: 20px;
  color: rgba(230, 240, 234, .6);
  font-size: 12.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.copyright .company { display: inline-flex; align-items: center; gap: 9px; }
.company-mark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 750;
  color: rgba(255, 255, 255, .9);
}

/* 17. Responsive ------------------------------------------------------- */
@media (max-width: 1240px) {
  .stat-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .article-layout { grid-template-columns: 46px minmax(0, 1fr); }
  .article-layout > .article-side { grid-column: 2; }
  .footer-grid { grid-template-columns: 1.2fr .9fr .9fr .9fr .8fr; }
  .footer-grid > .footer-quote-col { grid-column: 1 / -1; }
  .footer-quote p { max-width: none; }
}

/* Five short items fit far longer than the old nine did, so the bar survives
   well into tablet widths before falling back to the sheet. */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-inner { justify-content: space-between; }
}
/* Keep the download CTA visible as long as it fits — it is the primary action. */
@media (max-width: 620px) {
  .nav-cta { display: none; }
}

@media (max-width: 1020px) {
  .split, .split-wide { grid-template-columns: minmax(0, 1fr); }
  .calc-shell { grid-template-columns: minmax(0, 1fr); }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-band::after {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0) 70%, var(--bg) 100%),
      linear-gradient(100deg, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .86) 55%, rgba(255, 255, 255, .7) 100%);
  }
  .contact-hero { max-width: none; padding-top: 8px; }
  .channel-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .channel-strip > :nth-child(3) { border-left: 0; }
  .channel-strip > :nth-child(n+3) { border-top: 1px solid var(--line); }
  h1 { font-size: 34px; }
}

@media (max-width: 900px) {
  .map-split { grid-template-columns: minmax(0, 1fr); }
  .hero-body { padding: 36px 28px; }
  .hero-body h1 { font-size: 36px; }
  .idea-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact-hero h1 { font-size: 34px; }
  .field-pair { grid-template-columns: minmax(0, 1fr); }
  .feature-strip { grid-auto-flow: row; }
  .feature-strip > * + * { border-left: 0; border-top: 1px solid var(--line); }
  .wash-art, .wash-art.wide { width: 100%; }
  .contact-hero::after {
    background: linear-gradient(to top, rgba(255, 255, 255, .97) 45%, rgba(255, 255, 255, .6));
  }
  .contact-hero .body { max-width: none; padding: 28px 22px; }
  .contact-hero h1 { font-size: 30px; }
}

@media (max-width: 860px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-strip > * { border-left: 0 !important; border-top: 1px solid var(--line); }
  .stat-strip > :nth-child(1), .stat-strip > :nth-child(2) { border-top: 0; }
  .stat-strip > :nth-child(2n) { border-left: 1px solid var(--line) !important; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .share-rail { grid-auto-flow: column; justify-content: start; position: static; }
  .hero { min-height: 0; }
  .hero::after { background: linear-gradient(to top, rgba(255, 255, 255, .97) 40%, rgba(255, 255, 255, .55)); }
  .hero-body { max-width: none; padding: 26px 20px; }
  .activity-item { flex-direction: column; }
  .activity-item .photo { width: 100%; height: 170px; }
  .story-row .body { padding-right: 0; }
  .story-row .year-badge { position: static; }
}

@media (max-width: 620px) {
  .container, .container-wide, .container-narrow { width: min(100% - 28px, 1420px); }
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
  .hero-body h1, .wash-hero h1, .city-hero h1 { font-size: 27px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .stat-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .channel-strip { grid-template-columns: minmax(0, 1fr); }
  .channel-strip > * + * { border-left: 0; border-top: 1px solid var(--line); }
  .idea-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .result-hero { flex-direction: column; align-items: flex-start; }
  .result-art { width: 100%; max-width: 220px; }
  .app-band { padding: 20px; }
  .contact-hero h1 { font-size: 26px; }
  .form-grid .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .post-detail { padding: 18px; }
  .post-detail h1 { font-size: 24px; }
  .prose h1 { font-size: 26px; }
  .card-pad-lg, .wash-hero { padding: 20px; }
  .media-row .photo-thumb { width: 88px; height: 66px; }
  .feed-item { gap: 12px; }
  .feed-item .photo-thumb { width: 96px; height: 78px; }
  .story-row { flex-direction: column; }
  .story-row .photo { width: 100%; height: 180px; }
  .month-banner, .faq-cta, .member-card { flex-direction: column; align-items: flex-start; }
  .carousel-nav { display: none; }
  .bars { height: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
