/*
  Napsak tanıtım sayfası (napsak.net.tr/).

  `index.html` kök adreste bu sayfayı gösterir, diğer yollarda Flutter web
  uygulamasını başlatır (bkz. index.html başındaki betik). Renkler ve ölçüler
  design-system/napsak/MASTER.md ile aynıdır: düz renkler, marka #6C4DFF,
  Plus Jakarta Sans, beyaz kartlar ve outlineVariant kenarlıklar.
*/

@font-face {
  font-family: "Plus Jakarta Sans";
  font-weight: 400;
  font-display: swap;
  src: url("fonts/jakarta-400.woff2") format("woff2");
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-weight: 600;
  font-display: swap;
  src: url("fonts/jakarta-600.woff2") format("woff2");
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-weight: 800;
  font-display: swap;
  src: url("fonts/jakarta-800.woff2") format("woff2");
}

:root {
  --brand: #6C4DFF;
  --brand-strong: #4B2FD6;
  --brand-soft: #ECE7FF;
  --on-brand: #FFFFFF;
  --logo-dot: #FFB199;
  --coral: #E5532F;
  --surface: #F6F4FB;
  --card: #FFFFFF;
  --sunken: #F1EEF8;
  --outline: #ECE9F4;
  --text: #1A1433;
  --text-2: #4A4563;
  --text-3: #6E6987;
  --primary-text: #4B2FD6;
  --dark-button: #1A1433;
  --success: #1F8A4C;
  --success-soft: #DDF5E6;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --gutter: 20px;
  --max: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand-soft: #2E2654;
    --surface: #0F0C1F;
    --card: #211C3B;
    --sunken: #28233F;
    --outline: #2D2750;
    --text: #F3F0FF;
    --text-2: #A9A3C7;
    --text-3: #8E88AE;
    --primary-text: #8B73FF;
    --dark-button: #F3F0FF;
    --success: #6FD69B;
    --success-soft: #173826;
  }
}

html[data-page="landing"],
html[data-page="landing"] body {
  background: var(--surface);
}

#landing {
  color: var(--text);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Sıfırlamalar :where() ile özgüllüksüzdür; sınıf kuralları onları ezer. */
:where(#landing) *,
:where(#landing) *::before,
:where(#landing) *::after {
  box-sizing: border-box;
}

:where(#landing) :where(h1, h2, h3, p, ul, ol) {
  margin: 0;
}

:where(#landing) a {
  color: inherit;
}

:where(#landing) img {
  display: block;
  max-width: 100%;
  height: auto;
}

:where(#landing) :focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 8px;
}

.l-wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.l-skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  padding: 10px 16px;
  background: var(--card);
  border-radius: var(--radius-sm);
  z-index: 10;
}

.l-skip:focus {
  left: 8px;
}

/* --- Üst çubuk ---------------------------------------------------------- */

.l-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--surface);
  border-bottom: 1px solid var(--outline);
}

.l-header .l-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.l-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.l-logo img {
  width: 36px;
  height: 36px;
  border-radius: 11px;
}

.l-logo .dot {
  color: var(--coral);
}

.l-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.l-nav-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-2);
}

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

.l-nav .l-nav-links {
  display: none;
  gap: 28px;
}

@media (min-width: 760px) {
  .l-nav .l-nav-links {
    display: flex;
  }
}

/* --- Butonlar ----------------------------------------------------------- */

.l-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: var(--radius-md);
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 150ms ease-out, background-color 150ms ease-out;
}

.l-btn:active {
  transform: scale(0.97);
}

.l-btn svg {
  flex: none;
}

.l-btn-small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
  border-radius: var(--radius-sm);
}

.l-btn-primary {
  background: var(--brand);
  color: var(--on-brand);
}

.l-btn-primary:hover {
  background: var(--brand-strong);
}

/* Mağaza butonu: mor zeminde beyaz, açık zeminde koyu. */
.l-store {
  min-height: 60px;
  padding: 0 24px 0 20px;
  text-align: left;
}

.l-store .l-store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.l-store small {
  font-size: 12px;
  font-weight: 400;
  opacity: 0.8;
}

.l-store strong {
  font-size: 18px;
  font-weight: 800;
}

.l-store-light {
  background: var(--on-brand);
  color: var(--brand-strong);
}

.l-store-dark {
  background: var(--dark-button);
  color: var(--surface);
}

.l-store[aria-disabled="true"] {
  cursor: default;
}

.l-store[aria-disabled="true"]:active {
  transform: none;
}

.l-btn-ghost {
  background: transparent;
  color: var(--on-brand);
  border: 2px solid rgba(255, 255, 255, 0.45);
}

.l-btn-ghost:hover {
  border-color: var(--on-brand);
}

/* --- Kahraman bölüm ----------------------------------------------------- */

.l-hero {
  position: relative;
  overflow: hidden;
  background: var(--brand);
  color: var(--on-brand);
}

/* Öne çıkan görseldeki halkalar: düz renk, degrade yok. */
.l-hero::before,
.l-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 64px solid rgba(255, 255, 255, 0.07);
  pointer-events: none;
}

.l-hero::before {
  width: 520px;
  height: 520px;
  right: -180px;
  top: -200px;
}

.l-hero::after {
  width: 420px;
  height: 420px;
  left: -220px;
  bottom: -240px;
}

.l-hero .l-wrap {
  position: relative;
  display: grid;
  gap: 40px;
  padding-top: 48px;
  padding-bottom: 0;
}

.l-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 14px;
  font-weight: 600;
}

.l-hero h1 {
  margin-top: 20px;
  font-size: clamp(38px, 9vw, 64px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.l-hero h1 .dot {
  color: var(--logo-dot);
}

.l-hero-lead {
  margin-top: 20px;
  max-width: 520px;
  font-size: 18px;
}

.l-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.l-hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 15px;
}

.l-hero-art {
  display: flex;
  justify-content: center;
  align-self: end;
}

.l-hero-art img {
  width: min(320px, 78vw);
  margin-bottom: -2px;
}

@media (min-width: 900px) {
  .l-hero .l-wrap {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    padding-top: 72px;
  }

  .l-hero-copy {
    padding-bottom: 72px;
  }

  .l-hero-art img {
    width: 340px;
  }
}

/* --- Bölüm başlıkları --------------------------------------------------- */

.l-section {
  padding: 80px 0;
}

.l-section-tight {
  padding-top: 0;
}

.l-section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.l-section-head-flush {
  margin-bottom: 0;
}

.l-eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-text);
}

.l-section h2 {
  margin-top: 10px;
  font-size: clamp(30px, 6vw, 42px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.l-section-head p {
  margin-top: 14px;
  font-size: 17px;
  color: var(--text-2);
}

/* --- Kartlar ------------------------------------------------------------ */

.l-grid {
  display: grid;
  gap: 16px;
}

.l-steps {
  list-style: none;
  padding: 0;
  margin: 0;
}

.l-privacy-grid {
  gap: 40px;
  align-items: start;
}

@media (min-width: 700px) {
  .l-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .l-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .l-features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.l-card {
  background: var(--card);
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.l-card h3 {
  margin-top: 18px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.l-card p {
  margin-top: 8px;
  color: var(--text-2);
}

.l-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 800;
  font-size: 18px;
}

.l-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--brand-soft);
  color: var(--primary-text);
}

/* --- Ekranlar ----------------------------------------------------------- */

.l-shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(260px, 72vw);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px var(--gutter) 20px;
  margin: 0 calc(-1 * var(--gutter));
  scrollbar-width: thin;
}

.l-shot {
  scroll-snap-align: start;
  margin: 0;
  padding: 24px 22px 0;
  border-radius: var(--radius-xl);
  background: var(--brand);
  color: var(--on-brand);
  display: flex;
  flex-direction: column;
}

.l-shot figcaption {
  min-height: 2.6em;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.l-shot img {
  margin-top: 18px;
  width: 100%;
  object-fit: cover;
  object-position: top;
  /* Telefonun alt kısmı kart kenarında kesilir. */
  height: 360px;
}

@media (min-width: 1100px) {
  .l-shots {
    grid-auto-flow: row;
    grid-template-columns: repeat(5, 1fr);
    overflow: visible;
    padding: 0;
    margin: 0;
  }

  .l-shot img {
    height: 340px;
  }
}

/* --- Gizlilik ----------------------------------------------------------- */

.l-privacy {
  background: var(--card);
  border-top: 1px solid var(--outline);
  border-bottom: 1px solid var(--outline);
}

.l-checks {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 14px;
}

.l-checks li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 17px;
}

.l-checks svg {
  flex: none;
  margin-top: 1px;
  padding: 4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--success-soft);
  color: var(--success);
}

.l-link {
  display: inline-block;
  margin-top: 24px;
  font-weight: 600;
  color: var(--primary-text);
}

/* --- Kapanış çağrısı ---------------------------------------------------- */

.l-cta {
  border-radius: var(--radius-xl);
  background: var(--brand);
  color: var(--on-brand);
  padding: 48px 28px;
  text-align: center;
}

.l-cta h2 {
  margin: 0;
  font-size: clamp(28px, 6vw, 40px);
}

.l-cta p {
  margin: 12px auto 0;
  max-width: 480px;
  font-size: 17px;
}

.l-cta .l-hero-actions {
  justify-content: center;
}

/* --- Alt bilgi ---------------------------------------------------------- */

.l-footer {
  padding: 48px 0 56px;
  border-top: 1px solid var(--outline);
  color: var(--text-2);
  font-size: 15px;
}

.l-footer .l-wrap {
  display: grid;
  gap: 24px;
}

@media (min-width: 760px) {
  .l-footer .l-wrap {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

.l-footer .l-logo {
  color: var(--text);
}

.l-footer p {
  margin-top: 10px;
}

.l-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.l-footer-links a {
  text-decoration: none;
  font-weight: 600;
}

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

@media (prefers-reduced-motion: reduce) {
  .l-btn {
    transition: none;
  }

  .l-btn:active {
    transform: none;
  }

  .l-shots {
    scroll-behavior: auto;
  }
}
