/* ============================================================
   Petiwo — public site design system (LIGHT, warm cream)
   Brand: 60% neutral (cream) · 25% brand (peach→magenta) · 15% system
   ============================================================ */
:root {
  color-scheme: light only;

  --peach: #FF889A;
  --warm:  #FF5C8A;
  --magenta: #E91E63;
  --coral: #FFBFA3;
  --grad: linear-gradient(135deg, #FF889A 0%, #FF6E97 45%, #E91E63 100%);

  --bg: #FFF8F5;        /* warm cream */
  --bg-2: #FFF1EC;      /* soft peach tint */
  --card: #FFFFFF;
  --line: #F1E2E2;
  --ink: #241B2E;       /* primary text */
  --ink-2: #574C63;     /* secondary text */
  --muted: #8A7F94;     /* tertiary */

  --radius: 22px;
  --radius-sm: 14px;
  --shadow-card: 0 6px 24px rgba(233, 30, 99, 0.07);
  --shadow-lift: 0 18px 50px rgba(233, 30, 99, 0.14);

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Plus Jakarta Sans", var(--font-body);
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;        /* yatay taşmayı kes (sticky nav'ı bozmaz) */
  width: 100%;
  max-width: 100%;
}

img, svg, video { max-width: 100%; height: auto; }

a { color: var(--magenta); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.12; color: var(--ink); margin: 0 0 14px; letter-spacing: -0.02em; }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 22px; }

/* ---------- Brand mark ---------- */
.pw-logo { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 800; font-size: 21px; color: var(--ink); text-decoration: none; }
.pw-logo:hover { text-decoration: none; }
.pw-logo img { width: 40px; height: 40px; border-radius: 12px; box-shadow: var(--shadow-card); display: block; }

/* ---------- Nav (readable, solid) ---------- */
.pw-nav { position: sticky; top: 0; z-index: 30; background: rgba(255, 248, 245, 0.92); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.pw-nav .inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.pw-nav .links { display: flex; align-items: center; gap: 8px; }
.pw-nav .links a.nav-link { color: var(--ink); font-weight: 600; font-size: 15px; padding: 9px 14px; border-radius: 10px; }
.pw-nav .links a.nav-link:hover { color: var(--magenta); background: var(--bg-2); text-decoration: none; }
@media (max-width: 680px) { .pw-nav .links a.nav-link { display: none; } }

/* Language switcher */
.pw-lang { display: inline-flex; align-items: center; gap: 5px; margin: 0 4px; }
.pw-lang .globe { font-size: 14px; opacity: .7; }
.pw-lang select { appearance: none; -webkit-appearance: none; background: #fff; border: 1.5px solid var(--line); color: var(--ink); font-family: var(--font-body); font-weight: 600; font-size: 14px; padding: 8px 26px 8px 10px; border-radius: 10px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238A7F94' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; }
.pw-lang select:hover { border-color: var(--warm); }
.pw-lang select:focus { outline: none; border-color: var(--warm); box-shadow: 0 0 0 3px rgba(255, 92, 138, 0.18); }

/* ---------- Buttons ---------- */
.pw-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: var(--radius-sm); font-weight: 700; font-size: 15px; border: none; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; text-decoration: none; white-space: nowrap; }
.pw-btn:hover { text-decoration: none; }
.pw-btn-grad { background: var(--grad); color: #fff; box-shadow: 0 8px 22px rgba(233, 30, 99, 0.28); }
.pw-btn-grad:hover { transform: translateY(-1px); box-shadow: var(--shadow-lift); color: #fff; }
.pw-btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.pw-btn-ghost:hover { border-color: var(--warm); color: var(--magenta); }
.pw-btn-block { width: 100%; }

/* ---------- Hero ---------- */
.pw-hero { position: relative; overflow: hidden; padding: 72px 0 64px; }
.pw-hero::before { content: ""; position: absolute; width: 620px; height: 620px; border-radius: 50%; background: var(--grad); filter: blur(150px); opacity: .16; right: -180px; top: -160px; z-index: 0; }
.pw-hero .grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .pw-hero .grid { grid-template-columns: 1fr; text-align: center; gap: 44px; } }

.pw-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--magenta); background: #fff; border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; margin-bottom: 20px; box-shadow: var(--shadow-card); }
.pw-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--grad); }
.pw-hero h1 { font-size: clamp(36px, 6vw, 58px); }
.pw-hero h1 .accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.pw-hero p.lead { font-size: 18.5px; color: var(--ink-2); max-width: 48ch; margin: 0 0 30px; }
@media (max-width: 860px) { .pw-hero p.lead { margin-left: auto; margin-right: auto; } }
.pw-hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 860px) { .pw-hero .cta-row { justify-content: center; } }
.pw-hero .microcopy { margin-top: 16px; font-size: 13.5px; color: var(--muted); }

/* ---------- Phone mockup ---------- */
.pw-phone-wrap { display: flex; justify-content: center; }
.pw-phone { width: 300px; max-width: 78vw; padding: 12px; background: #201B2E; border-radius: 46px; box-shadow: var(--shadow-lift), 0 8px 24px rgba(32, 27, 46, 0.28); }
.pw-phone-screen { position: relative; background: var(--bg); border-radius: 34px; overflow: hidden; aspect-ratio: 300 / 630; }
.pw-notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 110px; height: 26px; background: #201B2E; border-radius: 0 0 16px 16px; z-index: 2; }
.pw-screen-inner { padding: 40px 16px 16px; height: 100%; display: flex; flex-direction: column; gap: 12px; text-align: left; }

.pw-screen-topbar { display: flex; align-items: center; justify-content: space-between; }
.pw-chip { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 11px; font-weight: 600; padding: 5px 9px; border-radius: 8px; }
.pw-chip.coin { background: var(--bg-2); color: var(--magenta); }
.pw-chip.streak { background: #FFEFD6; color: #B4690E; }

.pw-casecard { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px; box-shadow: var(--shadow-card); }
.pw-caselabel { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .08em; color: #fff; background: var(--grad); display: inline-block; padding: 3px 8px; border-radius: 6px; }
.pw-casetitle { font-family: var(--font-display); font-weight: 800; font-size: 22px; margin: 9px 0 2px; color: var(--ink); }
.pw-casesub { font-size: 12px; color: var(--muted); }
.pw-vitals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 12px; }
.pw-vital { background: var(--bg); border-radius: 10px; padding: 8px 6px; text-align: center; }
.pw-vital .k { font-size: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.pw-vital .v { font-family: var(--font-mono); font-weight: 600; font-size: 14px; color: var(--ink); }

.pw-labrow { display: flex; align-items: center; justify-content: space-between; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.pw-labrow .lab { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink); }
.pw-badge-crit { font-size: 10px; font-weight: 700; color: #fff; background: #EF4444; padding: 3px 8px; border-radius: 999px; }

.pw-diagnose { margin-top: auto; text-align: center; background: var(--grad); color: #fff; font-weight: 700; font-size: 14px; padding: 13px; border-radius: 14px; box-shadow: 0 8px 18px rgba(233, 30, 99, 0.3); }

/* ---------- Section scaffolding ---------- */
.pw-section { padding: 66px 0; }
.pw-section.tint { background: var(--bg-2); }
.pw-sec-head { text-align: center; max-width: 620px; margin: 0 auto 46px; }
.pw-sec-head .kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--magenta); margin-bottom: 10px; }
.pw-sec-head h2 { font-size: clamp(27px, 4vw, 38px); }
.pw-sec-head p { color: var(--ink-2); font-size: 17px; margin: 6px 0 0; }

/* ---------- How it works (steps) ---------- */
.pw-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 860px) { .pw-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .pw-steps { grid-template-columns: 1fr; } }
.pw-step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow-card); }
.pw-step .num { width: 40px; height: 40px; border-radius: 12px; background: var(--grad); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center; margin-bottom: 15px; }
.pw-step h3 { font-size: 18px; margin-bottom: 7px; }
.pw-step p { color: var(--ink-2); font-size: 14.5px; margin: 0; }

/* ---------- Features ---------- */
.pw-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .pw-features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pw-features { grid-template-columns: 1fr; } }
.pw-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-card); transition: transform .14s ease, box-shadow .14s ease; }
.pw-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.pw-card .ic { width: 50px; height: 50px; border-radius: 14px; background: var(--bg-2); display: flex; align-items: center; justify-content: center; font-size: 25px; margin-bottom: 16px; }
.pw-card h3 { font-size: 19px; margin-bottom: 8px; }
.pw-card p { color: var(--ink-2); margin: 0; font-size: 15px; }

/* ---------- Stat strip ---------- */
.pw-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center; }
@media (max-width: 560px) { .pw-stats { grid-template-columns: 1fr; gap: 26px; } }
.pw-stat .n { font-family: var(--font-display); font-weight: 800; font-size: 40px; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.pw-stat .l { color: var(--ink-2); font-size: 15px; margin-top: 2px; }

/* ---------- CTA band ---------- */
.pw-cta { background: var(--grad); border-radius: 30px; padding: 56px 40px; text-align: center; color: #fff; box-shadow: var(--shadow-lift); }
.pw-cta h2 { color: #fff; font-size: clamp(26px, 4vw, 36px); }
.pw-cta p { color: rgba(255, 255, 255, 0.94); max-width: 46ch; margin: 0 auto 28px; font-size: 17px; }
.pw-cta .pw-btn-ghost { background: rgba(255, 255, 255, 0.16); color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.pw-cta .pw-btn-ghost:hover { background: rgba(255, 255, 255, 0.26); color: #fff; }

/* ---------- Auth landing (verify / reset) ---------- */
.pw-auth-wrap { min-height: calc(100vh - 70px - 140px); display: flex; align-items: center; justify-content: center; padding: 48px 20px; }
.pw-auth-card { width: 100%; max-width: 440px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lift); overflow: hidden; }
.pw-auth-head { background: var(--grad); padding: 30px 32px; text-align: center; }
.pw-auth-head img { width: 56px; height: 56px; border-radius: 15px; background: #fff; padding: 6px; }
.pw-auth-head .t { color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 20px; margin-top: 12px; }
.pw-auth-body { padding: 34px 32px; }
.pw-auth-body h1 { font-size: 22px; text-align: center; }
.pw-auth-body .msg { text-align: center; color: var(--ink-2); margin: 0 0 24px; }
.pw-status-icon { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 800; margin: 0 auto 18px; }
.pw-status-icon.ok { background: #E6F7EE; color: #22C55E; }
.pw-status-icon.err { background: #FDECEC; color: #EF4444; }

.pw-field { margin-bottom: 16px; }
.pw-field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.pw-field input { width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); color: var(--ink); font-size: 15px; font-family: var(--font-body); }
.pw-field input:focus { outline: none; border-color: var(--warm); box-shadow: 0 0 0 3px rgba(255, 92, 138, 0.18); }
.pw-alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 18px; }
.pw-alert.err { background: #FDECEC; color: #C0392B; border: 1px solid #F5C6C6; }
.pw-hint { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ---------- Footer ---------- */
.pw-footer { border-top: 1px solid var(--line); padding: 40px 0; margin-top: 8px; background: #fff; }
.pw-footer .inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pw-footer .muted { color: var(--muted); font-size: 14px; }
.pw-footer nav a { color: var(--ink-2); font-size: 14px; margin-left: 20px; font-weight: 500; }

/* ============================================================
   Responsive / mobile-first (insanlar çoğunlukla telefon kullanır)
   ============================================================ */

/* Nav: dar ekranda taşmayı önle */
.pw-nav .inner { gap: 10px; }
.pw-nav .links { min-width: 0; flex-shrink: 1; }
.pw-logo { min-width: 0; }

@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .pw-nav .inner { height: 60px; }
  .pw-nav .links { gap: 8px; }
  /* Üstteki "Uygulamayı edin" CTA'sını gizle — hero'daki CTA zaten var (TR'de taşmaya sebep oluyordu). */
  .pw-nav .links .pw-btn-grad { display: none; }
  .pw-logo { font-size: 18px; gap: 8px; }
  .pw-logo img { width: 34px; height: 34px; }
  .pw-lang { margin: 0; }
  .pw-lang select { padding: 8px 24px 8px 9px; font-size: 13.5px; }
}

@media (max-width: 860px) {
  .pw-hero { padding: 52px 0 44px; }
  .pw-hero h1 { font-size: clamp(32px, 9vw, 46px); }
  .pw-hero p.lead { font-size: 17px; }
  .pw-section { padding: 52px 0; }
  .pw-sec-head { margin-bottom: 34px; }
  .pw-sec-head h2 { font-size: clamp(24px, 6vw, 32px); }
}

@media (max-width: 640px) {
  /* Hero CTA'ları alt alta + tam genişlik (parmakla kolay) */
  .pw-hero .cta-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .pw-hero .cta-row .pw-btn { width: 100%; }
  .pw-hero .microcopy { text-align: center; }
  .pw-eyebrow { font-size: 11.5px; }

  .pw-phone { width: 264px; padding: 10px; border-radius: 40px; }

  .pw-section { padding: 44px 0; }
  .pw-cta { padding: 40px 22px; border-radius: 22px; }
  .pw-cta p { font-size: 15.5px; }
  .pw-stat .n { font-size: 34px; }

  .pw-card, .pw-step { padding: 22px 20px; }

  /* Footer alt alta ortalı */
  .pw-footer .inner { flex-direction: column; text-align: center; gap: 12px; }
  .pw-footer nav a { margin: 0 10px; }
}

@media (max-width: 380px) {
  .pw-logo span { display: none; }   /* çok dar: sadece ikon kalsın */
  .pw-phone { width: 236px; }
}
