/* ============================================================
   satlık web — mobil öncelikli, bağımsız statik site
   İstemci tarafı JS yok. Renkler uygulama temasıyla aynı.
   ============================================================ */

:root {
  color-scheme: light dark;
  --bg: #f6f7f6;
  --bg-soft: #eef1ee;
  --surface: #ffffff;
  --surface-2: #f9faf9;
  --text: #111827;
  --muted: #57606a;
  --line: #e5e7eb;
  --brand: #087a08;
  --brand-dark: #065c06;
  --brand-soft: #e7f4e7;
  --brand-contrast: #ffffff;
  --accent: #b45309;
  --shadow: 0 10px 30px rgb(17 24 39 / 8%);
  --radius: 18px;
  --radius-sm: 12px;
  --wrap: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --bg-soft: #111820;
    --surface: #161b22;
    --surface-2: #1b222c;
    --text: #e6edf3;
    --muted: #8b949e;
    --line: #30363d;
    --brand: #3fb950;
    --brand-dark: #2ea043;
    --brand-soft: #12261a;
    --brand-contrast: #0d1117;
    --accent: #d29922;
    --shadow: 0 10px 30px rgb(0 0 0 / 35%);
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  color: var(--brand-dark);
}

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

h1 {
  font-size: clamp(1.95rem, 7vw, 3.4rem);
}

h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
}

h3 {
  font-size: 1.1rem;
}

p {
  margin: 0;
}

p,
li {
  overflow-wrap: break-word;
}

.hero-copy,
.cta > *,
.feature,
.post-card,
.doc,
.article {
  min-width: 0;
}

.wrap {
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}

.skip-link:focus {
  left: 16px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.muted {
  color: var(--muted);
  font-size: 0.92rem;
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}

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

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 22px;
  font-size: 0.93rem;
  font-weight: 600;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.site-nav a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Mobil menü: JS yok, native <details> ile açılır/kapanır. */
.nav-drawer {
  display: none;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.nav-toggle::-webkit-details-marker {
  display: none;
}

.nav-toggle:hover {
  border-color: var(--brand);
}

.nav-toggle:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent);
  outline-offset: 2px;
}

.nav-toggle-lines {
  display: grid;
  gap: 4px;
  width: 20px;
}

.nav-toggle-lines span {
  display: block;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.nav-drawer[open] .nav-toggle-lines span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-drawer[open] .nav-toggle-lines span:nth-child(2) {
  opacity: 0;
}

.nav-drawer[open] .nav-toggle-lines span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.site-nav--mobile {
  display: none;
}

/* --- Hero --- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(260px, 0.88fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  padding-block: clamp(48px, 8vw, 96px);
}

.hero-copy .lead {
  margin-top: 20px;
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(1.03rem, 1.6vw, 1.18rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.platforms {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* --- Buttons --- */
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 150px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 3px 10px rgb(17 24 39 / 5%);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.store:hover {
  color: var(--text);
  border-color: var(--brand);
  transform: translateY(-1px);
}

.store svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  flex: none;
}

.store small {
  display: block;
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.2;
}

.store strong {
  display: block;
  font-size: 0.98rem;
  line-height: 1.3;
}

.store-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.button,
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 22px;
  border-radius: 14px;
  font-weight: 700;
  text-decoration: none;
}

.button {
  background: var(--brand);
  color: var(--brand-contrast);
}

.button:hover {
  background: var(--brand-dark);
  color: var(--brand-contrast);
}

.link-button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}

.link-button:hover {
  border-color: var(--brand);
  color: var(--text);
}

/* --- Phone mockup --- */
.hero-visual {
  display: flex;
  justify-content: center;
}

.phone {
  position: relative;
  width: min(286px, 78vw);
  aspect-ratio: 9 / 18.5;
  padding: 11px;
  border-radius: 42px;
  background: linear-gradient(160deg, #2b3139, #0b0d10);
  box-shadow: 0 30px 70px rgb(8 122 8 / 18%), var(--shadow);
  transform: rotate(2deg);
}

.phone-notch {
  position: absolute;
  top: 20px;
  left: 50%;
  z-index: 2;
  width: 84px;
  height: 20px;
  border-radius: 99px;
  background: #0b0d10;
  transform: translateX(-50%);
}

.phone-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 56px 20px 24px;
  border-radius: 32px;
  background: linear-gradient(180deg, var(--brand-soft), var(--surface) 45%);
  color: var(--text);
  text-align: center;
  overflow: hidden;
}

.phone-logo {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 10px;
  border-radius: 16px;
  background: var(--brand);
  color: var(--brand-contrast);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}

.phone-screen strong {
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.phone-screen > span:not(.phone-logo) {
  color: var(--muted);
  font-size: 0.78rem;
}

.phone-card {
  display: grid;
  gap: 7px;
  width: 100%;
  margin-top: 22px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.phone-card span {
  height: 8px;
  border-radius: 99px;
  background: var(--line);
}

.phone-card span:first-child {
  width: 62%;
  background: var(--brand);
  opacity: 0.55;
}

.phone-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
}

.phone-grid i {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}

/* --- Sections --- */
.section {
  padding-block: clamp(36px, 6vw, 68px);
}

.section-head {
  max-width: 42rem;
  margin-bottom: 28px;
}

.section-head h2 {
  margin-top: 2px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 13px;
  background: var(--brand-soft);
  color: var(--brand);
}

.feature-icon svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.feature h3 {
  margin-bottom: 6px;
}

.feature p {
  color: var(--muted);
  font-size: 0.95rem;
}

.steps {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.steps-wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 32px;
}

.steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--muted);
}

.step-number {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--brand-contrast);
  font-size: 0.82rem;
  font-weight: 800;
}

.cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  margin-bottom: clamp(40px, 7vw, 80px);
  padding: clamp(28px, 5vw, 48px);
  border-radius: 24px;
  background: linear-gradient(135deg, #0a6b0a, #0d8f0d);
  color: #fff;
}

.cta .eyebrow {
  color: #c9f2c9;
}

.cta .lead {
  margin-top: 12px;
  max-width: 38rem;
  color: #e3f6e3;
}

.cta .store {
  border-color: rgb(255 255 255 / 25%);
  background: rgb(255 255 255 / 96%);
  color: #111827;
}

.cta .store-note,
.cta .muted {
  color: #e3f6e3;
}

.cta-actions {
  justify-self: end;
}

/* --- Blog --- */
.blog,
.article {
  max-width: 820px;
  padding-block: clamp(32px, 6vw, 64px) 72px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.post-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.post-card h2 {
  margin-top: 6px;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.post-card h2 a {
  color: var(--text);
  text-decoration: none;
}

.post-card h2 a:hover {
  color: var(--brand);
}

.post-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.94rem;
}

.post-meta {
  color: var(--brand) !important;
  font-size: 0.78rem !important;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.post-link {
  margin-top: auto;
  padding-top: 16px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.article-lead {
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(1.03rem, 1.6vw, 1.14rem);
}

.article .doc-section {
  margin-top: 34px;
}

.article .doc-section h2 {
  font-size: 1.3rem;
}

.article-cta {
  margin-top: 44px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--brand-soft);
}

.article-cta h2 {
  font-size: 1.2rem;
}

.article-cta p {
  max-width: 40rem;
  margin-top: 8px;
  color: var(--muted);
}

.article-back {
  margin-top: 28px;
  font-size: 0.92rem;
}

.support-links {
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* --- Docs / legal --- */
.doc {
  max-width: 780px;
  padding-block: clamp(32px, 6vw, 64px) 72px;
}

.breadcrumb {
  margin-bottom: 22px;
  font-size: 0.92rem;
}

.breadcrumb a {
  text-decoration: none;
}

.doc-header h1 {
  margin-top: 4px;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
}

.updated {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.86rem;
}

.doc-intro {
  margin-top: 22px;
  padding: 18px 20px;
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--surface);
  color: var(--muted);
}

.doc-section {
  margin-top: 32px;
}

.doc-section h2 {
  margin-bottom: 10px;
  font-size: 1.22rem;
  letter-spacing: -0.01em;
}

.doc-section p,
.doc-section li {
  color: var(--muted);
}

.doc-section p + p {
  margin-top: 10px;
}

.doc-section ul {
  margin: 10px 0 0;
  padding-left: 22px;
}

.doc-section li + li {
  margin-top: 6px;
}

/* --- Support --- */
.support-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.support-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.support-card h2 {
  font-size: 1.02rem;
}

.support-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.93rem;
}

.faq {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.faq details {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
}

.faq p,
.faq li {
  margin-top: 10px;
  color: var(--muted);
}

.faq ul {
  margin: 10px 0 0;
  padding-left: 22px;
}

.not-found {
  padding-block: clamp(70px, 14vw, 150px);
}

.not-found .doc-intro {
  max-width: 40rem;
  margin-inline: 0;
}

.not-found .hero-actions {
  justify-content: flex-start;
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 32px;
  padding-block: 44px;
}

.footer-brand p {
  max-width: 24rem;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-grid h2 {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.footer-grid ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid li a {
  color: var(--text);
  font-size: 0.92rem;
  text-decoration: none;
}

.footer-grid li a:hover {
  color: var(--brand);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 18px 26px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--muted);
}

/* --- Responsive --- */
@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: 2;
  }

  .features,
  .support-cards,
  .post-grid {
    grid-template-columns: 1fr;
  }

  .steps-wide {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .cta {
    grid-template-columns: 1fr;
  }

  .cta-actions {
    justify-self: start;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

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

  .nav-drawer {
    display: block;
    margin-left: auto;
  }

  .site-nav--mobile {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    grid-template-columns: 1fr;
    gap: 2px;
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
    padding: 12px 14px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .nav-drawer[open] .site-nav--mobile {
    display: grid;
  }

  .site-nav--mobile a {
    padding: 12px 14px;
    border-radius: 10px;
    color: var(--text);
    font-size: 1rem;
  }

  .site-nav--mobile a:hover,
  .site-nav--mobile a[aria-current="page"] {
    background: var(--brand-soft);
    color: var(--brand-dark);
  }
}

@media (max-width: 620px) {
  .wrap {
    width: min(100% - 28px, var(--wrap));
  }

  .header-inner {
    min-height: 58px;
  }

  .brand {
    gap: 8px;
    font-size: 1.18rem;
  }

  .brand img {
    width: 30px;
    height: 30px;
  }

  .hero {
    padding-block: 38px 46px;
  }

  .hero-visual {
    display: none;
  }

  .store {
    flex: 1 1 150px;
  }

  .cta {
    padding: 24px;
    border-radius: 18px;
  }

  .feature,
  .post-card,
  .doc-intro {
    padding: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .footer-bottom a {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 440px) {
  .wrap {
    width: min(100% - 24px, var(--wrap));
  }

  .nav-toggle-text {
    display: none;
  }

  .nav-toggle {
    padding: 10px 11px;
  }

  .site-nav--mobile {
    max-height: calc(100dvh - 58px);
  }

  .hero-actions,
  .cta-actions,
  .stores,
  .hero-actions .button,
  .hero-actions .link-button,
  .cta-actions .button,
  .cta-actions .link-button,
  .store {
    width: 100%;
  }

  .store {
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
