/* Paluk tanıtım ve giriş sayfası */
:root {
  color-scheme: light dark;
  --bg: #f6f7f4; --surface: #ffffff; --surface-2: #f0f2ee; --text: #0d1419; --text-2: #46515b; --muted: #77818a;
  --border: rgba(13, 20, 25, 0.10); --border-strong: rgba(13, 20, 25, 0.18);
  --accent: #2a78d6; --accent-hover: #2066bb; --accent-wash: rgba(42, 120, 214, 0.10);
  --good: #0a8a3a; --err: #b42828; --warm: #ff9d5c; --sea: #0b2a4a; --sea-2: #123e66;
  --r: 14px; --r-lg: 20px; --shadow: 0 1px 2px rgba(13, 20, 25, .05), 0 8px 24px -12px rgba(13, 20, 25, .18);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #080d12; --surface: #0f161d; --surface-2: #141d26; --text: #e8edf0; --text-2: #a9b3bb; --muted: #7c8790;
    --border: rgba(255, 255, 255, .08); --border-strong: rgba(255, 255, 255, .16); --accent: #4a92ea; --accent-hover: #69a6ef;
    --accent-wash: rgba(74, 146, 234, .14); --good: #3fcf6a; --err: #ef7373; --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -12px rgba(0, 0, 0, .6); }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--accent); }
img { display: block; }
h1, h2, h3 { letter-spacing: -0.025em; line-height: 1.15; margin: 0; }
p { margin: 0; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 11px; border: 1px solid transparent;
  font: 600 14.5px/1 var(--font); text-decoration: none; cursor: pointer; transition: background .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease), color .18s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn.primary:hover { background: var(--accent-hover); }
.btn.ghost { color: var(--text); background: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.glass { color: #fff; background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .28); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn.glass:hover { background: rgba(255, 255, 255, .2); }
.btn.lg { height: 50px; padding: 0 22px; font-size: 16px; border-radius: 13px; }
.btn.block { width: 100%; height: 46px; margin-top: 18px; }
.btn:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible, .tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Üst menü */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; gap: 24px; height: 64px; padding: 0 max(20px, calc((100vw - 1180px) / 2));
  color: #fff; transition: background .25s var(--ease), color .25s, box-shadow .25s, height .25s; }
.nav.solid { background: color-mix(in srgb, var(--surface) 86%, transparent); color: var(--text); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); box-shadow: 0 1px 0 var(--border); height: 58px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-size: 18px; }
.brand img { border-radius: 9px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 6px 16px -6px rgba(0, 0, 0, .5); }
.nav-links { display: flex; gap: 22px; margin-left: 12px; }
.nav-links a { color: inherit; opacity: .82; text-decoration: none; font-size: 14.5px; font-weight: 500; }
.nav-links a:hover { opacity: 1; }
.nav-cta { margin-left: auto; display: flex; gap: 6px; }
.nav:not(.solid) .btn.ghost { color: #fff; }
.nav:not(.solid) .btn.ghost:hover { background: rgba(255, 255, 255, .12); }

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; padding: 128px 20px 140px;
  background: radial-gradient(1200px 520px at 72% 88%, rgba(255, 170, 110, .55), transparent 60%),
    linear-gradient(180deg, #0a1f38 0%, #123e66 46%, #2b5f8a 72%, #e49a6c 100%); }
.sky { position: absolute; inset: 0; pointer-events: none; }
.sun { position: absolute; width: 240px; height: 240px; right: 14%; bottom: 40px; border-radius: 50%;
  background: radial-gradient(circle, #ffd9a0 0%, #ffb877 45%, rgba(255, 160, 100, 0) 70%); filter: blur(2px); opacity: .9; }
.b { position: absolute; bottom: -20px; width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .35); animation: rise 9s linear infinite; }
.b1 { left: 12%; animation-delay: 0s; } .b2 { left: 46%; width: 6px; height: 6px; animation-delay: 3s; } .b3 { left: 78%; width: 8px; height: 8px; animation-delay: 6s; }
@keyframes rise { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .9; } 100% { transform: translateY(-520px); opacity: 0; } }
.hero-in { position: relative; max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #ffd7b4;
  padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); }
.hero h1 { font-size: clamp(36px, 5.2vw, 64px); font-weight: 800; margin: 18px 0 18px; letter-spacing: -0.035em; }
.grad { background: linear-gradient(90deg, #ffe1bf, #ffb17a 60%, #ff8d6b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(16px, 1.5vw, 19px); color: rgba(255, 255, 255, .86); max-width: 560px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-stats { list-style: none; padding: 0; margin: 34px 0 0; display: flex; gap: 28px; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; line-height: 1.1; }
.hero-stats b { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hero-stats span { font-size: 13px; color: rgba(255, 255, 255, .7); }

.demo { margin: 0; border-radius: var(--r-lg); padding: 18px; color: #0d1419; background: rgba(255, 255, 255, .94);
  box-shadow: 0 30px 80px -24px rgba(5, 20, 40, .7), 0 0 0 1px rgba(255, 255, 255, .4); transform: rotate(1.2deg); }
@media (prefers-color-scheme: dark) { .demo { background: rgba(15, 22, 29, .92); color: #e8edf0; box-shadow: 0 30px 80px -24px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .08); } }
.demo-top { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; font-weight: 600; }
.demo-top .tag { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 3px 8px; border-radius: 999px; border: 1px solid var(--border-strong); }
.demo-main { display: grid; grid-template-columns: 112px 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center; margin: 14px 0 12px; position: relative; }
.ring { width: 112px; height: 112px; grid-row: span 2; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(13, 20, 25, .08); stroke-width: 10; }
@media (prefers-color-scheme: dark) { .ring-bg { stroke: rgba(255, 255, 255, .08); } }
.ring-fg { fill: none; stroke: #16a34a; stroke-width: 10; stroke-linecap: round; }
.score { position: absolute; left: 0; top: 0; width: 112px; height: 112px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.score b { font-size: 34px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.score span { font-size: 11px; font-weight: 600; color: #16a34a; margin-top: 2px; }
.best { display: flex; flex-direction: column; line-height: 1.3; }
.best small { font-size: 12px; color: var(--muted); }
.best b { font-size: 22px; letter-spacing: -0.02em; }
.factors { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.factors li { display: grid; grid-template-columns: 64px 1fr 86px; gap: 10px; align-items: center; font-size: 12.5px; }
.factors span { color: var(--muted); }
.factors i { height: 7px; border-radius: 4px; background: rgba(13, 20, 25, .07); position: relative; overflow: hidden; }
@media (prefers-color-scheme: dark) { .factors i { background: rgba(255, 255, 255, .08); } }
.factors i::after { content: ""; position: absolute; inset: 0; width: calc(var(--w) * 100%); border-radius: 4px; background: linear-gradient(90deg, #2a78d6, #19b07b); transform-origin: left; transform: scaleX(var(--s, 1)); }
.factors em { font-style: normal; text-align: right; font-weight: 500; }
.demo-foot { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 4px 9px; border-radius: 999px; background: rgba(13, 20, 25, .05); border: 1px solid var(--border); }
@media (prefers-color-scheme: dark) { .chip { background: rgba(255, 255, 255, .05); } }
.chip.ok { color: var(--good); }
.sw { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2); }
.waves { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 110px; }
.waves .w1 { fill: color-mix(in srgb, var(--bg) 55%, transparent); animation: sway 9s ease-in-out infinite alternate; }
.waves .w2 { fill: var(--bg); animation: sway 7s ease-in-out infinite alternate-reverse; }
@keyframes sway { from { transform: translateX(-40px); } to { transform: translateX(40px); } }

/* Bölümler */
.sec { padding: 96px 20px; }
.sec.alt { background: var(--surface); border-block: 1px solid var(--border); }
.sec-head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.kicker { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.sec-head h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 750; }
.sec-head p { margin-top: 14px; color: var(--text-2); font-size: 17px; }
.grid { max-width: 1180px; margin: 0 auto; display: grid; gap: 18px; }
.feats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.feat:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-wash); color: var(--accent); margin-bottom: 18px; }
.feat h3 { font-size: 19px; margin-bottom: 8px; }
.feat p { color: var(--text-2); font-size: 15px; }

.steps { list-style: none; padding: 0; max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: s; position: relative; }
.step { padding: 26px; border-radius: var(--r-lg); background: var(--bg); border: 1px solid var(--border); position: relative; }
.step > b { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 17px; margin-bottom: 16px; box-shadow: 0 0 0 6px var(--accent-wash); }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: 15px; }
.honest { max-width: 1180px; margin: 28px auto 0; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: center;
  padding: 30px; border-radius: var(--r-lg); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 9%, var(--bg)), var(--bg)); border: 1px solid var(--border); }
.honest h3 { font-size: 22px; margin-bottom: 10px; }
.honest p { color: var(--text-2); }
.factor-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.factor-chips li { padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 14px; font-weight: 500; }

.comm { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.comm-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow); }
.comm-card h3 { font-size: 18px; margin-bottom: 14px; }
.comm-card p { color: var(--text-2); font-size: 15px; }
.pts { list-style: none; padding: 0; margin: 0; }
.pts li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.pts li:last-child { border-bottom: 0; }
.pts b { color: var(--good); font-variant-numeric: tabular-nums; }
.ranks { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 6px; }
.ranks li { display: flex; justify-content: space-between; align-items: center; padding: 7px 12px; border-radius: 10px; font-size: 14px;
  background: color-mix(in srgb, var(--accent) calc(4% + var(--i) * 3%), var(--surface)); }
.ranks span { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.link { display: inline-block; margin-top: 12px; font-weight: 600; text-decoration: none; }

.spots { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; }
.spots > div { padding: 24px; border-radius: var(--r-lg); background: var(--bg); border: 1px solid var(--border); }
.spots h3 { font-size: 16px; margin-bottom: 14px; }
.spots ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.spots li { padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 14px; }

/* Giriş / kayıt */
.auth { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 56px; align-items: center; scroll-margin-top: 70px; }
.auth-copy h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 750; margin-bottom: 20px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: center; font-size: 16px; color: var(--text-2); }
.ticks li::before { content: ""; width: 20px; height: 20px; flex: none; border-radius: 50%; background: var(--accent-wash) no-repeat center/12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a78d6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.auth-card { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 22px 24px 24px; box-shadow: 0 30px 60px -30px rgba(13, 20, 25, .35); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 3px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); margin-bottom: 8px; }
.tabs button { height: 36px; border: 0; border-radius: 9px; background: none; color: var(--text-2); font: 600 14.5px var(--font); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.pane label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 6px; }
.pane input[type=text], .pane input[type=password], .pane input[type=tel] { width: 100%; height: 46px; padding: 0 13px; border-radius: 11px; border: 1px solid var(--border-strong); background: var(--bg); color: var(--text); font: 16px var(--font); transition: border-color .15s, box-shadow .15s; }
.pane input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.pane input[aria-invalid] { border-color: var(--err); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace !important; letter-spacing: .12em; text-transform: uppercase; }
.ferr { display: block; color: var(--err); font-size: 12.5px; margin-top: 5px; }
.hint { display: block; color: var(--muted); font-size: 12.5px; margin-top: 5px; }
.note { margin-top: 12px; font-size: 13px; color: var(--muted); text-align: center; }
.err { margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--err) 10%, transparent); color: var(--err); font-size: 14px; }
.inviter { margin: 10px 0 2px; padding: 10px 12px; border-radius: 11px; background: var(--accent-wash); font-size: 14px; }
.code { margin-top: 14px; }
.code summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.code summary span { font-weight: 400; color: var(--muted); }
.code input { margin-top: 8px; }
.check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: 14px !important; color: var(--text-2); margin-top: 16px !important; }
.check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--accent); flex: none; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.foot { max-width: 1180px; margin: 0 auto; padding: 32px 20px 40px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; border-top: 1px solid var(--border); }

/* Kurallar sayfası */
.rules-page { display: grid; place-items: start center; padding: 40px 16px; }
.rules { max-width: 680px; width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); }
.rules .brand { margin-bottom: 22px; color: var(--text); }
.rules .brand span { display: flex; flex-direction: column; line-height: 1.2; }
.rules .brand small { color: var(--muted); font-size: 13px; }
.rules h1 { font-size: 24px; margin-bottom: 8px; }
.rules h2 { font-size: 17px; margin: 24px 0 6px; }
.rules p, .rules li { color: var(--text-2); font-size: 15px; }
.rules ul { padding-left: 20px; } .rules li { margin: 6px 0; }
.rules .back { margin-top: 20px; }

/* Hareket: JS yoksa her şey görünür; JS varsa giriş animasyonu öncesi gizlenir. */
.js-motion .reveal, .js-motion .h-in, .js-motion .h-card { opacity: 0; }

@media (max-width: 1080px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .demo { max-width: 520px; transform: none; }
  .feats, .comm { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .auth-card { max-width: 520px; width: 100%; }
  .honest { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav { gap: 10px; }
  .nav-cta .btn { height: 36px; padding: 0 12px; font-size: 13.5px; }
  .hero { padding: 104px 16px 110px; }
  .hero-stats { gap: 20px; }
  .sun { width: 160px; height: 160px; right: 6%; }
  .sec { padding: 72px 16px; }
  .feats, .comm, .steps, .spots { grid-template-columns: minmax(0, 1fr); }
  .feat, .step, .comm-card { padding: 22px; }
  .factors li { grid-template-columns: 56px 1fr 76px; }
  .two { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .auth-card { padding: 18px; }
}
@media (max-width: 380px) {
  .nav-cta .btn.ghost { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .b, .waves path { animation: none; }
  .feat:hover { transform: none; }
}
.spots h3 { display: flex; align-items: center; gap: 8px; }
.spots h3 svg { color: var(--accent); }
.waves { left: -60px; right: auto; width: calc(100% + 120px); }
.check em { font-style: normal; color: var(--muted); }
.check + .check { margin-top: 10px !important; }

/* Mobil uygulama ("PalukApp"): tanıtım bölümleri gizli, ekranda yalnız logo ve giriş/kayıt kartı. */
.in-app .skip, .in-app .nav, .in-app .hero, .in-app #ozellikler, .in-app #nasil, .in-app #topluluk, .in-app .auth-copy, .in-app .foot { display: none; }
.in-app main { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 22px;
  padding: calc(env(safe-area-inset-top, 0px) + 28px) 16px calc(env(safe-area-inset-bottom, 0px) + 28px); }
.in-app .sec.auth { padding: 0; display: block; max-width: 460px; width: 100%; margin: 0 auto; }
.in-app .auth-card { box-shadow: none; }
.app-head { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.app-head img { border-radius: 16px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 12px 28px -14px rgba(0, 0, 0, .5); margin-bottom: 8px; }
.app-head b { font-size: 26px; font-weight: 750; letter-spacing: -.02em; }
.app-head span { color: var(--muted); font-size: 14.5px; }
.pane label .opt { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.rules h2[id] { scroll-margin-top: 16px; }
