/* ============================================================
   PDF Sıkıştırma — PREMIUM dark-purple SaaS design (Visuo/Mufi)
   "WAO on open": gradient orbs, glassmorphism, 3D tilt,
   micro-interactions. Zero frameworks, zero remote assets.
   Fonts: Plus Jakarta Sans (OFL), self-hosted latin + latin-ext
   (Turkish: ğ ş İ ı ç ö ü) in assets/fonts/.
   Class names and IDs are identical to the current build: app.js
   depends on them, so nothing was renamed.
   Design tokens from the reference homepage-premium system.
   NOTE: .tool-card entrance animation uses fill-mode `backwards`
   (not `both`) so the JS 3D-tilt (inline transform) keeps working —
   animation fill `forwards` would permanently override inline styles.
   ============================================================ */

/* ---------- self-hosted fonts ---------- */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("assets/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  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;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("assets/fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* brand — deep purple-black, violet, orange accent */
  --bg-950: #12101d;
  --bg-900: #181527;
  --bg-800: #1f1b33;
  --violet-500: #8b5cf6;
  --violet-400: #a78bfa;
  --violet-700: #6d28d9;
  --orange-400: #fb923c;
  --orange-500: #f97316;

  --ink: #f4f2fb;
  --muted: #a9a3c7;
  --faint: #7c76a0;
  --line: rgba(139, 92, 246, 0.22);
  --card: rgba(31, 27, 51, 0.72);
  --card-solid: #1f1b33;
  --danger: #f87171;
  --danger-bg: rgba(248, 113, 113, 0.12);
  --success: #34d399;
  --success-bg: rgba(52, 211, 153, 0.10);
  --warning: #fbbf24;
  --warning-bg: rgba(251, 191, 36, 0.10);
  --info: #60a5fa;

  --radius: 16px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --focus-ring: 0 0 0 3px rgba(139, 92, 246, 0.45);
  --shadow-lift: 0 18px 50px -12px rgba(139, 92, 246, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg-950);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { max-width: 960px; margin: 0 auto; padding: 0 20px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* The `hidden` attribute must win over any author `display` (e.g. .btn's
   inline-flex). Without this, [hidden] buttons stay visible. */
[hidden] { display: none !important; }

.skip-link {
  position: absolute; left: 8px; top: -48px; z-index: 100;
  background: var(--violet-500); color: #fff;
  padding: 10px 16px; border-radius: 8px; text-decoration: none;
  transition: top 0.15s ease; font-weight: 700;
}
.skip-link:focus { top: 8px; }

/* ---------- background orbs ---------- */
.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; animation: drift 16s ease-in-out infinite alternate; }
.orb-a { width: 480px; height: 480px; left: -140px; top: -140px; background: radial-gradient(circle, rgba(139,92,246,0.55), transparent 65%); }
.orb-b { width: 420px; height: 420px; right: -120px; top: 30%; background: radial-gradient(circle, rgba(249,115,22,0.28), transparent 65%); animation-delay: -8s; }
.orb-c { width: 380px; height: 380px; left: 20%; bottom: -160px; background: radial-gradient(circle, rgba(167,139,250,0.35), transparent 65%); animation-delay: -4s; }
@keyframes drift { from { transform: translate(0,0) scale(1); } to { transform: translate(50px,36px) scale(1.1); } }

/* ---------- entrance animations ---------- */
@keyframes float-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes card-in { from { opacity: 0; transform: translateY(26px) rotateX(6deg); } to { opacity: 1; transform: none; } }
@keyframes result-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes bounce-icon { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- header / hero ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 16, 29, 0.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.brand { font-size: 1.35rem; font-weight: 800; margin: 0; letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--violet-400), var(--orange-400));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.tagline { margin: 0; color: var(--muted); font-size: 0.88rem; }

.hero { text-align: center; padding: 56px 0 12px; position: relative; perspective: 1200px; }
.hero .kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 16px; font-size: 0.82rem; font-weight: 700; color: var(--muted);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: float-in 0.7s var(--ease-out) both;
}
.hero .kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(52,211,153,0.15); }
.hero h1 {
  font-size: clamp(2rem, 5.2vw, 3.2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1;
  margin: 20px 0 14px;
  background: linear-gradient(120deg, #f4f2fb 20%, var(--violet-400) 60%, var(--orange-400));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: float-in 0.7s var(--ease-out) 0.08s both;
}
.lede { color: var(--muted); font-size: 1.08rem; margin: 0 auto; max-width: 36rem; animation: float-in 0.7s var(--ease-out) 0.14s both; }
.lede strong { color: var(--ink); }
.lede-honest { font-size: 0.9rem; color: var(--faint); margin: 10px auto 0; max-width: 36rem; animation: float-in 0.7s var(--ease-out) 0.2s both; }
.trust-row { list-style: none; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 24px 0 0; padding: 0; animation: float-in 0.7s var(--ease-out) 0.26s both; }
.trust-row li {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 9px 15px; font-size: 0.86rem; font-weight: 600; color: var(--muted);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform 0.2s var(--ease-out), border-color 0.2s ease;
}
.trust-row li:hover { transform: translateY(-2px); border-color: rgba(139,92,246,0.5); }
.trust-row svg { width: 18px; height: 18px; color: var(--success); flex: 0 0 auto; }

/* ---------- tool card (3D glass) ---------- */
.tool-card {
  position: relative;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.06), transparent 32%), var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px; margin: 32px 0;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 70px -18px rgba(0,0,0,0.65), 0 0 0 1px rgba(139,92,246,0.12), 0 0 44px -12px rgba(139,92,246,0.28);
  animation: card-in 0.8s var(--ease-out) 0.15s backwards;
  transform: perspective(1400px) rotateX(0);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.tool-card:hover { transform: perspective(1400px) rotateX(0.5deg); }

/* JS 3D tilt: appended verbatim by tilt-snippet.js — the class below is
   the hook; inline transform from JS takes over on pointer move. */
.tilt-3d { transform-style: preserve-3d; will-change: transform; transition: transform 0.18s ease-out; }

.dropzone {
  border: 2px dashed rgba(139, 92, 246, 0.4); border-radius: var(--radius);
  background: rgba(139, 92, 246, 0.06); text-align: center;
  padding: 40px 20px; cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s var(--ease-out);
  min-height: 48px;
}
.dropzone:hover { border-color: var(--violet-400); background: rgba(139, 92, 246, 0.12); transform: scale(1.005); }
.dropzone:focus { outline: none; box-shadow: var(--focus-ring); border-color: var(--violet-400); }
.dropzone.dragover { border-color: var(--orange-400); background: rgba(249, 115, 22, 0.08); border-style: solid; transform: scale(1.01); }
.dropzone-inner { display: flex; flex-direction: column; align-items: center; }
.dropzone-icon { color: var(--violet-400); margin-bottom: 10px; animation: bounce-icon 2.6s ease-in-out infinite; }
.dropzone-title { margin: 0 0 4px; font-size: 1.15rem; font-weight: 700; }
.dropzone-sub { margin: 0 0 8px; color: var(--muted); }
.dropzone-cta { color: var(--orange-400); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.dropzone-limits { margin: 0; font-size: 0.82rem; color: var(--faint); }

/* ---------- file chip ---------- */
.file-chip {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; background: rgba(139, 92, 246, 0.08); margin-top: 18px;
}
.file-chip-icon { color: var(--violet-400); flex: 0 0 auto; }
.file-chip-info { flex: 1 1 auto; min-width: 0; }
.file-chip-name { font-weight: 700; font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 0; }
.file-chip-meta { font-size: 0.82rem; color: var(--muted); margin: 2px 0 0; }

/* ---------- presets ---------- */
.preset-section { margin-top: 22px; }
.preset-section h3 { margin: 0 0 4px; font-size: 1.05rem; }
.preset-hint { margin: 0 0 14px; font-size: 0.88rem; color: var(--muted); }
.preset-group { display: flex; flex-direction: column; gap: 10px; }
.preset-card { position: relative; }
.preset-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.preset-label {
  display: block; border: 2px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px 14px 50px; cursor: pointer; background: rgba(31,27,51,0.5);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s var(--ease-out), box-shadow 0.2s ease;
  position: relative; min-height: 48px;
}
.preset-label:hover { transform: translateY(-2px); border-color: rgba(139,92,246,0.5); }
.preset-label::before {
  content: ""; position: absolute; left: 17px; top: 17px;
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--faint); background: transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.preset-card input:checked + .preset-label {
  border-color: var(--violet-500); background: rgba(139, 92, 246, 0.14);
  box-shadow: 0 8px 28px -8px rgba(139, 92, 246, 0.5);
}
.preset-card input:checked + .preset-label::before {
  border-color: var(--violet-400); background: var(--violet-500);
  box-shadow: inset 0 0 0 4px var(--bg-800);
}
.preset-card input:focus-visible + .preset-label { box-shadow: var(--focus-ring); }
.preset-name { font-weight: 700; font-size: 1rem; display: block; }
.preset-desc { font-size: 0.88rem; color: var(--muted); display: block; margin-top: 2px; }
.preset-badge {
  display: inline-block; font-size: 0.72rem; font-weight: 800;
  background: linear-gradient(135deg, var(--violet-500), var(--violet-700)); color: #fff;
  border-radius: 999px; padding: 2px 10px; margin-left: 8px; vertical-align: middle;
}

/* ---------- notices ---------- */
.notice-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.notice-list:empty { display: none; }
.notice { border-radius: 10px; padding: 12px 16px; font-size: 0.92rem; margin-top: 12px; border: 1px solid transparent; }
.notice-error { background: var(--danger-bg); border-color: rgba(248,113,113,0.35); color: #fca5a5; }
.notice-warning { background: var(--warning-bg); border-color: rgba(251,191,36,0.3); color: #fde68a; }
.notice[hidden] { display: none; }

/* ---------- buttons ---------- */
.btn {
  font: inherit; font-weight: 700; border-radius: 12px; cursor: pointer;
  padding: 13px 22px; border: 1px solid transparent; min-height: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:focus { outline: none; box-shadow: var(--focus-ring); }
.btn-primary {
  background: linear-gradient(135deg, var(--violet-500), var(--violet-700)); color: #fff;
  box-shadow: 0 10px 28px -8px rgba(139, 92, 246, 0.6);
}
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 16px 36px -8px rgba(139, 92, 246, 0.7); }
.btn-primary:active:not(:disabled) { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.55; cursor: wait; transform: none; }
.btn-secondary { background: rgba(139,92,246,0.1); border-color: var(--line); color: var(--ink); }
.btn-secondary:hover { border-color: var(--violet-400); }
.btn-ghost { background: transparent; color: var(--muted); border: none; padding: 8px 12px; min-height: 40px; }
.btn-ghost:hover:not(:disabled) { color: var(--danger); background: var(--danger-bg); }
.btn-ghost:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-large { font-size: 1.05rem; padding: 15px 30px; width: 100%; }
.action-row { display: flex; gap: 12px; margin-top: 22px; }
.action-row .btn-primary { flex: 1; }

/* ---------- progress ---------- */
.progress { margin-top: 18px; }
.progress-text { margin: 0 0 8px; font-size: 0.95rem; color: var(--muted); }
.progress-track {
  height: 12px; background: var(--bg-950); border: 1px solid var(--line);
  border-radius: 999px; overflow: hidden;
}
.progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--violet-500), var(--orange-400));
  background-size: 200% 100%;
  border-radius: 999px; transition: width 0.2s ease;
  animation: progress-shimmer 1.6s linear infinite;
}
@keyframes progress-shimmer { to { background-position: -200% 0; } }
/* #progress-bar carries role="progressbar"; styled through .progress-track above. */

/* ---------- result ---------- */
.result {
  margin-top: 22px; border: 1px solid rgba(52,211,153,0.35);
  background: var(--success-bg); border-radius: var(--radius); padding: 22px;
  animation: result-in 0.45s var(--ease-out);
}
.result h3 { margin: 0 0 12px; color: var(--success); }
.savings-hero { text-align: center; margin-bottom: 16px; }
.savings-pct {
  font-size: 2.8rem; font-weight: 800; color: var(--success);
  letter-spacing: -0.03em; line-height: 1.1;
  background: linear-gradient(120deg, var(--success), var(--violet-400));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.savings-label { font-size: 0.9rem; color: var(--muted); margin: 0; }
.savings-low .savings-pct {
  background: linear-gradient(120deg, var(--warning), var(--orange-400));
  -webkit-background-clip: text; background-clip: text;
}
.result-meta { margin: 0 0 16px; display: flex; flex-direction: column; gap: 6px; }
.result-meta > div { display: flex; gap: 8px; font-size: 0.95rem; }
.result-meta dt { font-weight: 600; min-width: 150px; color: var(--muted); }
.result-meta dd { margin: 0; overflow-wrap: anywhere; }
.result-actions { display: flex; flex-direction: column; gap: 10px; }
.result-notes { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 0.88rem; color: var(--muted); }
.result-notes li { display: flex; gap: 8px; }
.result-notes li::before { content: "•"; flex: 0 0 auto; color: var(--violet-400); }

/* ---------- content sections ---------- */
.content-section { margin: 36px 0; }
.content-section h2 { font-size: 1.4rem; margin: 0 0 14px; letter-spacing: -0.02em; }
.content-section > p { color: var(--muted); }
.steps { margin: 0; padding-left: 1.4rem; display: flex; flex-direction: column; gap: 10px; color: var(--muted); }
.steps strong { color: var(--ink); }
.content-section details {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 18px; margin-bottom: 10px; background: var(--card);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.content-section details:hover { border-color: rgba(139,92,246,0.45); }
.content-section details[open] { border-color: rgba(139,92,246,0.45); box-shadow: 0 10px 30px -14px rgba(139,92,246,0.4); }
.content-section summary { cursor: pointer; font-weight: 700; }
.content-section summary:focus { outline: none; box-shadow: var(--focus-ring); border-radius: 6px; }
.content-section details p { margin: 10px 0 0; color: var(--muted); }

/* comparison table */
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; margin-top: 14px; }
.compare-table th, .compare-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.compare-table th { color: var(--muted); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
.compare-table td:first-child { font-weight: 600; }
.compare-table .yes { color: var(--success); font-weight: 700; }
.compare-table .no { color: var(--danger); }
.compare-table .us { background: rgba(139, 92, 246, 0.1); }
.compare-table tbody tr { transition: background 0.15s ease; }
.compare-table tbody tr:hover td { background: rgba(139, 92, 246, 0.06); }
.compare-table tbody tr:hover td.us { background: rgba(139, 92, 246, 0.14); }
.compare-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }

/* why grid */
.why-grid { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.why-item {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; background: var(--card);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform 0.25s var(--ease-out), border-color 0.2s ease, box-shadow 0.2s ease;
}
.why-item:hover { transform: translateY(-4px); border-color: rgba(139,92,246,0.5); box-shadow: var(--shadow-lift); }
.why-item h3 { font-size: 1.02rem; margin: 0 0 6px; }
.why-item p { margin: 0; color: var(--muted); font-size: 0.94rem; }

/* limits */
.limits-list { margin: 10px 0 14px; padding-left: 1.4rem; display: flex; flex-direction: column; gap: 8px; color: var(--muted); }
.limits-list strong { color: var(--ink); }

/* privacy */
.privacy-note {
  background: linear-gradient(135deg, rgba(139,92,246,0.14), rgba(249,115,22,0.07));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; margin: 28px 0;
}
.privacy-note h2 { margin: 0 0 10px; font-size: 1.2rem; }
.privacy-note p { margin: 0 0 10px; color: var(--muted); }
.privacy-note p strong { color: var(--ink); }
.privacy-note details summary { cursor: pointer; font-weight: 700; color: var(--violet-400); }
.privacy-note details summary:focus { outline: none; box-shadow: var(--focus-ring); border-radius: 4px; }
.privacy-note details p { margin: 10px 0 0; font-size: 0.92rem; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 24px 0 40px; color: var(--faint); font-size: 0.88rem; }
.site-footer p { margin: 4px 0; }
.footer-tech { font-size: 0.8rem; }
.site-footer a { color: var(--violet-400); }

/* ---------- responsive ---------- */
@media (min-width: 640px) {
  .hero h1 { font-size: 3.2rem; }
  .tool-card { padding: 34px; }
  .btn-large { width: auto; }
  .action-row .btn-primary { flex: 0 1 auto; min-width: 280px; }
  .result-actions { flex-direction: row; }
  .result-actions .btn-primary { flex: 1; }
  .preset-group { flex-direction: row; }
  .preset-card { flex: 1; }
  .preset-label { height: 100%; }
  .why-grid { flex-direction: row; }
  .why-item { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

body { overflow-x: hidden; }
html, body { overflow-x: clip; }
