/* Whenvia web sitesi. Renkler uygulama simgesinden gelir (lacivert zemin, mavi → nane W). */

:root {
  --navy-900: #05113b;
  --navy-700: #143266;
  --navy-500: #255b8f;
  --blue: #2b7fe8;
  --blue-dark: #1b62c4;
  --teal: #0f9d94;
  --mint: #5be6d1;
  --ink: #0b1b3f;
  --text: #33415c;
  --muted: #5b6b86;
  --line: #dce4f0;
  --paper: #f4f7fb;
  --surface: #ffffff;
  --on-navy: #c9d8ee;

  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Simgedeki takvim karoları: zemin dokusu olarak kullanılır. */
  --tiles: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='126' height='112'%3E%3Crect x='19' y='12' width='88' height='88' rx='16' fill='%238FBCE8' fill-opacity='.075'/%3E%3C/svg%3E");
}

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

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

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, svg { display: block; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 6px; }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ---------- Üst şerit ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.brand img { width: 40px; height: 40px; border-radius: 10px; }

.brand .name {
  font-family: var(--display);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lang {
  min-width: 46px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(201, 216, 238, 0.35);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.lang:hover { background: rgba(255, 255, 255, 0.1); }

/* ---------- Lacivert zemin (giriş bölümü, alt bölüm, tek kartlı sayfalar) ---------- */

.navy {
  position: relative;
  color: var(--on-navy);
  background: linear-gradient(200deg, var(--navy-500) 0%, var(--navy-700) 42%, var(--navy-900) 100%);
  isolation: isolate;
}

.navy::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--tiles) 0 0 / 126px 112px;
  -webkit-mask-image: linear-gradient(100deg, transparent 30%, #000 100%);
  mask-image: linear-gradient(100deg, transparent 30%, #000 100%);
}

/* ---------- Giriş bölümü ---------- */

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 48px;
  padding-top: 40px;
}

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

.hero h1 {
  max-width: 13em;
  color: #fff;
  font-family: var(--display);
  font-size: clamp(2.5rem, 5.4vw, 4.1rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero .lead {
  max-width: 32em;
  margin-top: 22px;
  font-size: 1.12rem;
}

.hero .stores { margin-top: 34px; }

/* ---------- Mağaza rozetleri ---------- */

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 16px 0 13px;
  border: 1px solid #a6a6a6;
  border-radius: 9px;
  background: #000;
  color: #fff;
  font-family: -apple-system, "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: default;
  -webkit-user-select: none;
  user-select: none;
}

.badge[href] { cursor: pointer; }
.badge[href]:hover { border-color: #fff; }

.badge svg { flex: none; width: 28px; height: 28px; }

.badge-text { display: flex; flex-direction: column; gap: 4px; text-align: left; }

.badge-text small {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.badge-play .badge-text small { letter-spacing: 0.06em; }

.badge-text b {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.stores-note {
  margin-top: 12px;
  font-size: 14px;
  opacity: 0.85;
}

/* ---------- Telefon: uygulamanın uzman ana ekranı ---------- */
/* Renkler ve ölçüler Android temasından (core/theme/Theme.kt) alınmıştır. */

/* Telefon giriş bölümünün altından taşar ve kesilir; bölümün yüksekliğini metin belirler. */
.phone-stage {
  align-self: end;
  display: flex;
  justify-content: center;
  overflow: hidden;
  padding: 8px 20px 0;
}

/* Güncel iPhone ölçüleri: ekran 402 × 874 oranında, ince çerçeve, üstte Dynamic Island. */
.phone {
  position: relative;
  width: 290px;
  margin-bottom: -102px;
  padding: 8px;
  border-radius: 52px;
  background: linear-gradient(145deg, #3a4152, #151924 30%, #151924 70%, #2c3242);
  box-shadow: 0 0 0 1px rgba(143, 188, 232, 0.3), 0 30px 70px rgba(2, 7, 26, 0.55);
  animation: phone-in 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes phone-in {
  from { transform: translateY(36px); }
  to { transform: none; }
}

/* Yan tuşlar: solda eylem ve ses, sağda güç. */
.phone::before,
.phone::after {
  content: "";
  position: absolute;
  width: 3px;
  border-radius: 2px;
  background: #262b38;
}

.phone::before { left: -3px; top: 108px; height: 22px; box-shadow: 0 44px 0 #262b38, 0 62px 0 #262b38, 0 96px 0 #262b38, 0 114px 0 #262b38; }
.phone::after { right: -3px; top: 176px; height: 68px; }

.screen {
  display: flex;
  flex-direction: column;
  aspect-ratio: 402 / 874;
  overflow: hidden;
  border-radius: 44px;
  background: #f4f7fc;
  color: #0f172a;
  font-family: Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 11px;
  line-height: 1.3;
}

.screen svg { fill: currentColor; }

.app-top {
  padding: 10px 16px 15px;
  background: linear-gradient(100deg, #2563eb, #4f46e5);
  color: #fff;
}

.app-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 24px;
  padding: 0 14px;
  font-size: 11px;
  font-weight: 700;
}

.app-status u {
  width: 78px;
  height: 23px;
  border-radius: 999px;
  background: #000;
}

.app-status i {
  width: 17px;
  height: 9px;
  border: 1.5px solid #fff;
  border-radius: 3px;
  background: linear-gradient(#fff, #fff) 1px 1px / 9px 3px no-repeat;
}

.app-title {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 16px;
}

.app-title b { flex: 1; font-size: 17px; font-weight: 700; }
.app-title svg { width: 17px; height: 17px; }

.app-chat { position: relative; }

.app-chat em {
  position: absolute;
  top: -6px;
  right: -7px;
  display: grid;
  place-items: center;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff6b35;
  font-size: 7.5px;
  font-style: normal;
  font-weight: 700;
}

.app-body { position: relative; flex: 1; padding: 13px 13px 0; }

.app-pending { color: #ff6b35; font-size: 12.5px; font-weight: 700; }

.req {
  margin-top: 9px;
  padding: 11px;
  border: 1px solid #fdba9a;
  border-radius: 15px;
  background: #fff4ec;
}

.req-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.req-head strong { display: block; font-size: 12.5px; font-weight: 700; }
.req-head span { color: #64748b; font-size: 9.5px; }

.req-head em {
  flex: none;
  padding: 4px 7px;
  border-radius: 7px;
  background: #ffdccb;
  color: #ff6b35;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
}

.req-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 9px; }

.req-actions span {
  padding: 8px 0;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  color: #e11d48;
  font-size: 10.5px;
  font-weight: 700;
  text-align: center;
}

.req-actions span + span { border-color: #00b884; background: #00b884; color: #fff; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 9px; }

.stat {
  padding: 11px 12px 9px;
  border-radius: 15px;
  background: linear-gradient(120deg, #2563eb, #4f46e5);
  color: #fff;
  box-shadow: 0 4px 8px rgba(15, 23, 42, 0.16);
}

.stat.mint { background: linear-gradient(120deg, #059669, #00b884); }
.stat span { display: block; font-size: 9px; font-weight: 500; letter-spacing: 0.02em; opacity: 0.92; white-space: nowrap; }
.stat b { display: block; margin-top: 3px; font-size: 21px; font-weight: 700; line-height: 1.15; }

.sched-head { display: flex; align-items: center; justify-content: space-between; margin-top: 15px; }
.sched-head b { font-size: 12.5px; font-weight: 700; }

.filter {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  background: #fff;
  font-size: 9.5px;
  font-weight: 700;
}

.filter svg { width: 11px; height: 11px; }

.day { margin-top: 12px; font-size: 12.5px; font-weight: 700; }

.appt {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 9px;
  padding: 10px 12px 10px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.1);
}

.appt-time { padding-left: 12px; border-left: 3px solid #2563eb; border-radius: 2px; text-align: center; }
.appt-time b { display: block; font-size: 12.5px; font-weight: 700; }
.appt-time span { color: #334155; font-size: 9px; }

.appt-body { flex: 1; }
.appt-body strong { display: block; font-size: 12.5px; font-weight: 700; }
.appt-body span { color: #64748b; font-size: 9.5px; }

.appt > svg { width: 15px; height: 15px; color: #64748b; }

.fab {
  position: absolute;
  right: 13px;
  bottom: 2px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: #ff6b35;
  color: #fff;
  box-shadow: 0 5px 10px rgba(15, 23, 42, 0.25);
}

.fab svg { width: 18px; height: 18px; }

.app-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 0 10px;
  padding: 5px;
  border: 1px solid #e2e8f0;
  border-radius: 17px;
  background: #fff;
}

.app-nav > span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
  padding: 5px 2px;
  border-radius: 11px;
  color: #475569;
  font-size: 8px;
  font-weight: 500;
}

.app-nav > span > span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-nav svg { width: 15px; height: 15px; }
.app-nav > .on { background: #e0ecff; color: #2563eb; font-weight: 700; }

.app-home {
  width: 96px;
  height: 4px;
  margin: 9px auto 7px;
  border-radius: 999px;
  background: #0f172a;
}

/* ---------- Açık bölümler ---------- */

.section { padding: 96px 0; }

.section h2,
.closing h2 {
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.section h2 { max-width: 18em; color: var(--ink); }

.section .intro { max-width: 36em; margin-top: 16px; }

.sides {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-top: 56px;
}

.side h3 {
  padding-bottom: 14px;
  border-bottom: 3px solid var(--blue);
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.side.member h3 { border-bottom-color: var(--teal); }

.side li { padding: 20px 0; border-bottom: 1px solid var(--line); }

.side li strong { display: block; color: var(--ink); font-size: 1.05rem; font-weight: 600; }
.side li span { display: block; margin-top: 4px; color: var(--muted); font-size: 0.97rem; }

.steps-band { background: var(--surface); border-top: 1px solid var(--line); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 52px;
  counter-reset: step;
}

.steps li { counter-increment: step; }

.steps li::before {
  content: counter(step);
  display: block;
  color: var(--blue);
  font-family: var(--display);
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.steps strong { display: block; margin-top: 14px; color: var(--ink); font-size: 1.12rem; font-weight: 600; }
.steps span { display: block; margin-top: 6px; color: var(--muted); font-size: 0.97rem; }

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

.closing { padding-top: 88px; text-align: center; }

.closing h2 { color: #fff; }

.closing p { max-width: 34em; margin: 16px auto 0; }

.closing .stores { justify-content: center; margin-top: 32px; }

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 80px;
  padding-top: 24px;
  padding-bottom: 28px;
  border-top: 1px solid rgba(201, 216, 238, 0.18);
  font-size: 14px;
}

.footer .brand img { width: 28px; height: 28px; border-radius: 7px; }
.footer .brand .name { font-size: 17px; }

/* ---------- Tek kartlı sayfalar (davet, 404) ---------- */

body.simple {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.simple-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px 56px;
}

.card {
  width: 100%;
  max-width: 440px;
  padding: 28px;
  border-radius: 24px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 24px 60px rgba(2, 8, 32, 0.4);
}

.card h1 {
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

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

.code-box {
  margin: 22px 0 12px;
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  text-align: center;
}

.code-box .label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.code-box .code {
  color: var(--ink);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.08em;
  overflow-wrap: anywhere;
  -webkit-user-select: all;
  user-select: all;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover { background: var(--blue-dark); }

.card .btn-home { margin-top: 22px; }

.card-steps {
  margin-top: 24px;
  padding-left: 22px;
  list-style: decimal;
  font-size: 0.97rem;
}

.card-steps li + li { margin-top: 4px; }

.card .stores { justify-content: center; margin-top: 20px; gap: 8px; }
.card .badge { height: 48px; padding: 0 12px 0 10px; gap: 8px; }
.card .badge svg { width: 24px; height: 24px; }
.card .badge-text b { font-size: 17px; }
.card .badge-text small { font-size: 9.5px; }

.card .stores-note { color: var(--muted); text-align: center; opacity: 1; }

.note { margin-top: 18px; color: var(--muted); font-size: 0.85rem; }

.simple-footer { padding: 0 20px 24px; font-size: 14px; text-align: center; }

/* ---------- Dar ekranlar ---------- */

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 8px; padding-top: 24px; }
  .hero-copy { padding-bottom: 40px; }
  .phone { margin-bottom: -182px; }
  .section { padding: 68px 0; }
  .sides { grid-template-columns: 1fr; gap: 48px; margin-top: 40px; }
  .steps { grid-template-columns: 1fr; gap: 32px; margin-top: 40px; }
  .closing { padding-top: 68px; }
  .footer { margin-top: 60px; }
}

@media (max-width: 400px) {
  .wrap { padding-left: 18px; padding-right: 18px; }
  .badge { height: 50px; padding: 0 12px 0 10px; gap: 8px; }
  .badge svg { width: 24px; height: 24px; }
  .badge-text b { font-size: 17.5px; }
  .card { padding: 22px; }
  .card .badge { padding: 0 9px 0 8px; gap: 6px; }
  .card .badge-text b { font-size: 15.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .phone { animation: none; }
}
