/* ==========================================================================
   Pikap — Destek Paketleri
   Tek sayfa: paketler → ödeme → sonuç
   ========================================================================== */

/* --------------------------------------------------------------- fontlar */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------- tokenlar */
:root {
  /* renkler */
  --ink: #151515;
  --ink-950: #14161c;
  --ink-900: #1e2129;
  --ink-800: #2a3040;
  --purple: #a36aff;
  --lime: #ecff5d;
  --green: #a9c49a;
  --text-muted: #616675;
  --text-faint: #9296a5;
  --text-soft: #3d4555;
  --line: #e1e3ea;
  --surface: #ffffff;
  --surface-soft: #f3f4f6;
  --focus: #2b7fff;
  --danger: #d92d20;

  --on-dark-90: rgba(255, 255, 255, 0.9);
  --on-dark-70: rgba(255, 255, 255, 0.7);
  --on-dark-60: rgba(255, 255, 255, 0.6);
  --on-dark-45: rgba(255, 255, 255, 0.45);
  --on-dark-38: rgba(255, 255, 255, 0.38);
  --on-dark-12: rgba(255, 255, 255, 0.12);
  --on-dark-08: rgba(255, 255, 255, 0.08);

  /* tipografi */
  --font-display: 'Helvetica Now Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-text: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* ölçüler */
  --page-max: 1440px;
  --gutter: 40px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --pill: 9999px;
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
}

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

body,
h1, h2, h3, p, dl, dd, figure, fieldset { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

body {
  background: var(--ink);
  color: var(--surface);
  font-family: var(--font-text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.svg-sprite { display: none; }

/* hidden özniteliği, display:flex/grid tanımlarını her zaman yenmeli */
[hidden] { display: none !important; }

.icon {
  width: 1em;
  height: 1em;
  flex: none;
  font-size: 16px;
  vertical-align: -0.15em;
}
.icon--lg { font-size: 22px; }
.icon--xl { font-size: 36px; }

.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); }

.page {
  max-width: var(--page-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px var(--gutter) 0;
}

/* ekran yönetimi — aktif ekran body[data-screen] ile belirlenir */
.screen { display: none; }
body[data-screen='pricing'] .screen--pricing,
body[data-screen='checkout'] .screen--checkout,
body[data-screen='success'] .screen--success { display: block; }
body[data-screen='success'] .screen--success { display: flex; }

/* ödeme tipine bağlı içerik */
body[data-billing='monthly'] [data-when='once'],
body[data-billing='once'] [data-when='monthly'] { display: none; }

/* --------------------------------------------------------------- düğmeler */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 24px;
  border: none;
  border-radius: var(--pill);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 200ms var(--ease), border-color 200ms var(--ease), color 200ms var(--ease);
}
.button--dark {
  background: var(--ink-950);
  color: var(--surface);
}
.button--dark:hover { background: var(--ink-800); }
.button--ghost {
  height: 40px;
  padding: 0 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-muted);
}
.button--ghost:hover {
  border-color: #d4d4d4;
  background: var(--surface-soft);
}
.button--pay {
  height: 56px;
  background: var(--ink-950);
  color: var(--surface);
  font-size: 16px;
  gap: 10px;
}
.button--pay:hover { background: var(--ink-800); }
.button[aria-busy='true'] {
  opacity: 0.7;
  pointer-events: none;
}

:where(button, a, input, [tabindex]):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* --------------------------------------------------------------- başlık */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 56px;
}
.logo {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--surface);
  text-decoration: none;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav__link {
  font-size: 14px;
  color: var(--on-dark-70);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav__link:hover { color: var(--surface); }

/* --------------------------------------------------------------- paketler */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin-bottom: clamp(48px, 8vw, 106px);
}
.hero-title__muted { color: var(--on-dark-38); }

.pricing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  gap: 32px;
  align-items: start;
}
.pricing__intro {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 4px;
}
.pricing__heading {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1.24;
  letter-spacing: -0.02em;
  font-weight: 500;
}
.pricing__lead {
  font-size: 15px;
  line-height: 1.6;
  color: var(--on-dark-60);
}
.pricing__note {
  font-size: 14px;
  line-height: 1.57;
  color: var(--on-dark-45);
}

.segmented {
  display: inline-flex;
  align-self: flex-start;
  gap: 4px;
  padding: 4px;
  border-radius: var(--pill);
  background: var(--on-dark-08);
}
.segmented__option {
  height: 38px;
  padding: 0 20px;
  border: none;
  border-radius: var(--pill);
  background: transparent;
  color: var(--on-dark-60);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 200ms var(--ease), color 200ms var(--ease);
}
.segmented__option[aria-selected='true'] {
  background: var(--surface);
  color: var(--ink-950);
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
body[data-billing='once'] .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 340px;
  padding: 28px;
  border-radius: var(--radius-lg);
}
.plan--light { background: var(--surface); color: var(--ink-900); }
.plan--purple { background: var(--purple); color: var(--surface); }
.plan--lime { background: var(--lime); color: var(--ink-900); }

.plan__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.plan__name {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
}
.plan__desc {
  font-size: 14px;
  line-height: 1.43;
  color: rgba(30, 33, 41, 0.7);
}
.plan--purple .plan__desc { color: rgba(255, 255, 255, 0.8); }

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: auto;
}
.plan__amount {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1.09;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.plan__period {
  font-size: 16px;
  color: rgba(30, 33, 41, 0.6);
}
.plan--purple .plan__period { color: var(--on-dark-70); }

.plan__terms {
  font-size: 13px;
  line-height: 1.54;
  color: rgba(30, 33, 41, 0.6);
}
.plan--purple .plan__terms { color: var(--on-dark-70); }

.plan__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  border-radius: var(--pill);
  background: rgba(30, 33, 41, 0.12);
  font-size: 14px;
  font-weight: 500;
}
.plan__ribbon {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 14px;
  border-radius: var(--pill);
  background: url('../img/badge-texture.png') center / cover;
  color: var(--ink-900);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

/* --------------------------------------------------------------- kapsam */
.scope { padding-top: 72px; }

.section-title {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.33;
  font-weight: 700;
  margin-bottom: 8px;
}

.scope__row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--on-dark-08);
}
body[data-billing='once'] .scope__row { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }

.scope__row--head {
  padding: 16px 0;
  border-bottom-color: rgba(255, 255, 255, 0.14);
}
.scope__col {
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}
.scope__label {
  font-size: 15px;
  color: var(--on-dark-90);
}
.scope__mark {
  display: flex;
  justify-content: center;
  font-size: 18px;
}
.scope__mark--yes { color: var(--green); }
.scope__mark--no { color: rgba(255, 255, 255, 0.28); }

.scope__footnote {
  max-width: 900px;
  margin-top: 24px;
  font-size: 14px;
  line-height: 1.71;
  color: rgba(255, 255, 255, 0.55);
}

/* --------------------------------------------------------------- markalar */
.brands {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding-top: 64px;
}
.brands__title {
  font-size: 13px;
  color: var(--on-dark-45);
}
.brands__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 64px;
}
.brands__list li {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--on-dark-45);
}

.trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--on-dark-45);
}
.trust strong { color: var(--on-dark-70); font-weight: 600; }
.trust--dark { color: var(--text-faint); }
.trust--dark strong { color: var(--text-muted); }

/* --------------------------------------------------------------- ödeme */
.panel {
  background: var(--surface);
  color: var(--ink-900);
  border-radius: var(--radius-xl);
  padding: 40px;
}
.checkout__back { margin-bottom: 32px; }

.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 32px;
  align-items: start;
}
.checkout__form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.checkout__intro {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.checkout__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.checkout__lead {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-muted);
}

.card-box {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  min-width: 0;
}
.card-box__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.card-box__title {
  padding: 0;
  font-size: 18px;
  font-weight: 600;
}
.card-box__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-faint);
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  min-width: 0;
}
.field__control {
  position: relative;
  display: block;
}
.field__input {
  height: 48px;
  width: 100%;
  min-width: 0;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  color: var(--ink-900);
  background: var(--surface);
  outline: none;
  transition: border-color 150ms var(--ease);
}
.field__input::placeholder { color: var(--text-faint); }
.field__input:focus { border-color: var(--focus); }
.field__control .field__input { padding-right: 44px; }
.field__icon {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--text-faint);
  pointer-events: none;
}
.field__input[aria-invalid='true'] { border-color: var(--danger); }
.field__error {
  font-size: 12px;
  font-weight: 400;
  color: var(--danger);
}
.field__error:empty { display: none; }

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.57;
  color: var(--text-muted);
}
.check input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--ink-950);
  cursor: pointer;
  flex: none;
}
.check--terms { flex-wrap: wrap; }

.callout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.57;
}
.callout--tight {
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
}
.callout .icon { margin-top: 0.15em; }

.form-error {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: #fef3f2;
  color: var(--danger);
  font-size: 14px;
}

.card-box__hint {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.57;
  color: var(--text-muted);
}
.card-box__hint .icon {
  margin-top: 0.2em;
  color: var(--text-faint);
}

/* paynet.js kendi butonunu bu kabın içine basar — dış görünümü hizalıyoruz */
.paynet-mount button,
.paynet-mount input[type='button'],
.paynet-mount input[type='submit'] {
  display: block !important;
  width: 100% !important;
  height: 56px !important;
  padding: 0 24px !important;
  border: none !important;
  border-radius: var(--pill) !important;
  background: var(--ink-950) !important;
  color: var(--surface) !important;
  font-family: var(--font-text) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 56px !important;
  text-align: center !important;
  cursor: pointer !important;
}
.paynet-mount button:hover,
.paynet-mount input[type='button']:hover,
.paynet-mount input[type='submit']:hover {
  background: var(--ink-800) !important;
}

.paynet-note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-faint);
}

/* Ödeme dönüşünde paketler ekranında görünen uyarı */
.banner {
  margin-bottom: 24px;
  padding: 14px 18px;
  border: 1px solid rgba(217, 45, 32, 0.4);
  border-radius: var(--radius-md);
  background: rgba(217, 45, 32, 0.12);
  color: #ffb4ad;
  font-size: 14px;
  line-height: 1.6;
}

.summary__line--muted dt,
.summary__line--muted dd {
  color: var(--text-faint);
  font-weight: 400;
  font-size: 14px;
}

/* --------------------------------------------------------- sipariş özeti */
.summary {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.summary__plan {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.summary__plan-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
}
.summary__plan-capacity {
  font-size: 14px;
  color: var(--text-muted);
}
.summary__lines {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.summary__line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
}
.summary__line dt { color: var(--text-muted); }
.summary__line dd { margin: 0; font-weight: 500; }
.summary__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  font-weight: 500;
}
.summary__total span:last-child {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
}

/* --------------------------------------------------------------- sonuç */
.screen--success {
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 80px 40px;
  text-align: center;
}
.success__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: var(--pill);
  background: var(--green);
  color: var(--ink-950);
}
.success__lead {
  max-width: 480px;
  font-size: 17px;
  line-height: 1.53;
  color: var(--text-muted);
}
.success__receipt {
  width: 100%;
  max-width: 520px;
  margin-top: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: left;
}
.summary__line--ref {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.success__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}
.success__actions .button { height: 48px; font-size: 15px; }
.success__hint {
  max-width: 480px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-faint);
}

/* --------------------------------------------------------------- alt bilgi */
.site-footer {
  padding-top: clamp(64px, 9vw, 120px);
}

/* Sayfa kabından taşıp ekranın iki kenarına dayanır: genişlik, yatay konum ve
   alttaki boşluk JS ile ölçülerek verilir (app.js > fitWordmark). Buradakiler
   yalnızca JS çalışana kadarki ilk çizim içindir. */
.site-footer__wordmark {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  /* Kesme burada yapılır, .site-footer'da değil: yüksekliği JS harflerin
     ortasına ayarlar, alt yarı kırpılır ve kaydırma alanına girmez. */
  overflow: hidden;
  overflow: clip;
  font-family: var(--font-display);
  font-size: 34vw;
  line-height: 0.74;
  font-weight: 700;
  white-space: nowrap;
}
.site-footer__wordmark span {
  display: inline-block;
  line-height: 0.74;
  letter-spacing: -0.055em;
  /* Son harften sonra da uygulanan negatif harf aralığını telafi eder,
     böylece ölçülen genişlik görünen genişliğe eşit olur. */
  padding-right: 0.055em;
}

/* --------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .pricing { grid-template-columns: minmax(0, 1fr); }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checkout { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
}

@media (max-width: 760px) {
  :root { --gutter: 20px; }
  .page { padding-top: 24px; }
  .site-header { padding-bottom: 36px; }
  .site-nav { gap: 14px; }
  .site-nav__link { display: none; }
  .site-nav__link--phone { display: inline; }
  .plans,
  body[data-billing='once'] .plans { grid-template-columns: minmax(0, 1fr); }
  .plan { min-height: 0; }
  .panel { padding: 24px 20px; border-radius: var(--radius-lg); }
  .field-grid { grid-template-columns: minmax(0, 1fr); }
  .field-grid--thirds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .scope { padding-top: 48px; }
  .scope__row,
  body[data-billing='once'] .scope__row { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); }
  .scope__label { font-size: 14px; }
  .brands__list { gap: 28px; }
  .brands__list li { font-size: 18px; }
  .site-footer { padding-top: 56px; }
  .screen--success { padding: 48px 4px; }
}

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