/* =========================================================================
   JEWELOPER — PUBLIC DESIGN SYSTEM ("Prizma")
   The app's own language: white liquid glass, slate ink, prismatic edge (logo + dock pill),
   Plus Jakarta Sans at display weight, JetBrains Mono for specs.
   ========================================================================= */

:root {
    --bg: #f4f5f7;
    --white: #ffffff;
    --ink: #0b1120;
    --ink-2: #1e293b;
    --muted: #64748b;
    --faint: #94a3b8;
    --line: #e2e8f0;
    --line-2: #eef1f5;
    --blue: #0095f6;
    --prism: conic-gradient(from 200deg, #fde047, #fb923c, #f472b6, #a78bfa, #3b82f6, #22d3ee, #5eead4, #fde047);
    --prism-x: linear-gradient(100deg, #f59e0b 0%, #ec4899 28%, #8b5cf6 52%, #3b82f6 74%, #06b6d4 100%);
    --sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
    --gutter: clamp(16px, 4vw, 56px);
    --maxw: 1440px;
    --glass-bg: linear-gradient(165deg, rgba(255, 255, 255, .92) 0%, rgba(248, 250, 252, .84) 48%, rgba(255, 255, 255, .9) 100%);
    --glass-shadow: 0 20px 50px -10px rgba(15, 23, 42, .16), 0 6px 18px -4px rgba(15, 23, 42, .07), 0 0 0 .5px rgba(15, 23, 42, .1), inset 0 1.5px 1px rgba(255, 255, 255, .98);
}

/* ---------- Base ---------- */
html.jl-page { background: var(--bg); scroll-behavior: auto; }
.jl-page body {
    margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55;
    letter-spacing: -0.012em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
}
:where(.jl-page) *, :where(.jl-page) *::before, :where(.jl-page) *::after { box-sizing: border-box; }
:where(.jl-page) a { color: inherit; text-decoration: none; }
:where(.jl-page) img { display: block; max-width: 100%; height: auto; }
:where(.jl-page) :where(h1, h2, h3, h4, h5, p) { margin: 0; }
:where(.jl-page) :where(h1, h2, h3, h4, h5) { font-weight: 800; }
:where(.jl-page) button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
.jl-page ::selection { background: #0b1120; color: #fff; }
.jl-page :focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* ---------- Type ---------- */
.jl-mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.jl-label {
    font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
    display: inline-flex; align-items: center; gap: 10px;
}
.jl-label::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--prism); flex: none; }
.jl-h2 { font-weight: 800; letter-spacing: -0.055em; line-height: .9; font-size: clamp(44px, 7.2vw, 128px); }
.jl-h3 { font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-size: clamp(28px, 3vw, 46px); }
.jl-lede { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.6; color: var(--muted); font-weight: 500; }
.jl-prism-text {
    background: var(--prism-x); -webkit-background-clip: text; background-clip: text; color: transparent;
    background-size: 200% 100%; animation: jl-prism-shift 8s ease-in-out infinite alternate;
}
@keyframes jl-prism-shift { to { background-position: 100% 0; } }
.jl-out { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }

.jl-wait [data-reveal-now] { visibility: hidden; }
.jl-line { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.jl-line > span { display: inline-block; will-change: transform; }

/* ---------- Layout ---------- */
.jl-wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.jl-white { background: var(--white); }

/* ---------- Glass + prism ring ---------- */
.jl-glass {
    position: relative; background: var(--glass-bg); box-shadow: var(--glass-shadow);
    -webkit-backdrop-filter: blur(14px) saturate(165%); backdrop-filter: blur(14px) saturate(165%);
}
.jl-ring { position: relative; }
.jl-ring::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: var(--prism);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
    pointer-events: none; z-index: 2;
}

/* ---------- Buttons ---------- */
.jl-btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 24px;
    border-radius: 999px; font-weight: 700; font-size: 14px; letter-spacing: -0.01em; white-space: nowrap; isolation: isolate;
    transition: transform .5s var(--ease), box-shadow .5s var(--ease), background-color .3s ease, border-color .3s ease;
}
.jl-btn:active { transform: scale(.97); }
.jl-btn--ink { background: var(--ink); color: #fff; box-shadow: 0 10px 30px -10px rgba(11, 17, 32, .55); }
.jl-btn--ink::after {
    content: ''; position: absolute; inset: -2px; border-radius: inherit; z-index: -1; background: var(--prism); filter: blur(12px);
    opacity: 0; transition: opacity .5s var(--ease);
}
.jl-btn--ink:hover::after { opacity: .7; }
.jl-btn--glass { background: var(--glass-bg); color: var(--ink); box-shadow: var(--glass-shadow); }
.jl-btn--glass:hover { box-shadow: 0 24px 50px -14px rgba(15, 23, 42, .25), 0 0 0 .5px rgba(15, 23, 42, .14), inset 0 1.5px 1px #fff; }
.jl-btn--line { border: 1px solid var(--line); color: var(--ink); background: #fff; }
.jl-btn--line:hover { border-color: var(--ink); }
.jl-btn svg { width: 18px; height: 18px; flex: none; transition: transform .5s var(--ease); }
.jl-btn:hover svg { transform: translateX(3px); }
.jl-link { background-image: linear-gradient(currentColor, currentColor); background-size: 0% 1.5px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .5s var(--ease); }
.jl-link:hover { background-size: 100% 1.5px; }

/* ---------- Top bar ---------- */
.jl-top { position: fixed; top: 0; left: 0; right: 0; z-index: 80; pointer-events: none; transition: transform .6s var(--ease); }
.jl-top.is-hidden { transform: translateY(-110%); }
.jl-top-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 76px; }
.jl-top-bar > * { pointer-events: auto; }
.jl-brand { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px 0 8px; border-radius: 999px; font-weight: 800; font-size: 14px; letter-spacing: -.02em; }
.jl-brand img { width: 30px; height: 30px; object-fit: contain; }
.jl-top-actions { display: flex; align-items: center; gap: 8px; }
.jl-top-actions .jl-btn { height: 46px; padding: 0 20px; font-size: 13px; }
.jl-top-login { display: none !important; }
@media (min-width: 640px) { .jl-top-login { display: inline-flex !important; } }

/* ---------- Floating dock (mirrors the app's nav) ---------- */
.jl-dock {
    position: fixed; left: 50%; bottom: 12px; z-index: 85; transform: translate3d(-50%, 0, 0); display: flex; align-items: center; gap: 2px;
    padding: 6px; border-radius: 999px; max-width: calc(100vw - 20px); transition: transform .6s var(--ease), opacity .4s ease;
}
.jl-dock.is-away { transform: translate3d(-50%, calc(100% + 30px), 0); opacity: 0; }
.jl-dock-pill {
    position: absolute; top: 6px; left: 0; height: calc(100% - 12px); width: 60px; border-radius: 999px; z-index: 0; opacity: 0;
    background: linear-gradient(165deg, rgba(255, 255, 255, .98), rgba(255, 255, 255, .8));
    box-shadow: 0 4px 14px -3px rgba(15, 23, 42, .16), 0 1px 4px rgba(15, 23, 42, .06), inset 0 1.5px 1px #fff;
    transition: transform .65s var(--ease), width .65s var(--ease), opacity .3s ease;
}
.jl-dock-pill::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: var(--prism);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .9;
}
.jl-dock-pill.is-on { opacity: 1; }
.jl-dock a, .jl-dock button {
    position: relative; z-index: 1; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    min-width: 56px; height: 52px; padding: 0 9px; border-radius: 999px; font-size: 10px; font-weight: 700; color: #475569; transition: color .3s ease;
}
.jl-dock a svg, .jl-dock button svg { width: 20px; height: 20px; flex: none; }
.jl-dock a.is-active, .jl-dock a:hover, .jl-dock button:hover { color: var(--ink); }
.jl-dock .jl-dock-home { min-width: 48px; padding: 0 5px; }
.jl-dock .jl-dock-home img { width: 32px; height: 32px; }
.jl-dock-sep { width: 1px; height: 26px; background: var(--line); margin: 0 4px; flex: none; }
.jl-dock .jl-dock-cta { flex-direction: row; gap: 8px; padding: 0 20px; background: var(--ink); color: #fff; font-size: 13px; }
.jl-dock .jl-dock-cta:hover { color: #fff; }
.jl-dock-wide { display: none !important; }
@media (min-width: 900px) {
    .jl-dock { bottom: 18px; }
    .jl-dock a, .jl-dock button { flex-direction: row; gap: 7px; height: 46px; font-size: 13px; padding: 0 15px; }
    .jl-dock a svg { width: 17px; height: 17px; }
    .jl-dock-wide { display: inline-flex !important; }
    .jl-dock-narrow { display: none !important; }
    .jl-dock .jl-dock-home { min-width: 46px; }
}

/* Mobile sheet */
.jl-sheet-scrim { position: fixed; inset: 0; z-index: 86; background: rgba(15, 23, 42, .25); opacity: 0; pointer-events: none; transition: opacity .4s ease; }
.jl-sheet {
    position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 87; border-radius: 30px; padding: 22px 16px 16px;
    transform: translateY(calc(100% + 20px)); transition: transform .6s var(--ease), visibility 0s linear .6s; visibility: hidden;
}
.jl-menu-open .jl-sheet { transform: none; visibility: visible; transition: transform .6s var(--ease), visibility 0s; }
.jl-menu-open .jl-sheet-scrim { opacity: 1; pointer-events: auto; }
.jl-sheet-grip { width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: -8px auto 12px; }
.jl-sheet-links { display: grid; gap: 2px; }
.jl-sheet-links a { display: flex; align-items: center; justify-content: space-between; padding: 13px 12px; border-radius: 16px; font-size: 24px; font-weight: 800; letter-spacing: -.045em; }
.jl-sheet-links a:hover { background: #fff; }
.jl-sheet-links a small { font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--faint); letter-spacing: 0; }
.jl-sheet-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.jl-sheet-foot .jl-btn { width: 100%; }
@media (min-width: 900px) { .jl-sheet, .jl-sheet-scrim { display: none; } }

/* ---------- Marquee ---------- */
.jl-marquee { overflow: hidden; white-space: nowrap; display: flex; user-select: none; }
.jl-marquee-track { display: flex; flex: none; animation: jl-marquee var(--dur, 38s) linear infinite; }
.jl-marquee-track > * { flex: none; }
@keyframes jl-marquee { to { transform: translateX(-50%); } }

/* ---------- Small chips (app card language) ---------- */
.jl-chip-s { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 10px; font-weight: 700; background: #fff; color: var(--ink); box-shadow: 0 0 0 .5px rgba(15, 23, 42, .12); white-space: nowrap; }
.jl-chip-s.dark { background: rgba(11, 17, 32, .86); color: #fff; box-shadow: none; }
.jl-chip-s.prism::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--prism); }

/* ---------- Footer ---------- */
.jl-footer { position: relative; background: var(--white); color: var(--ink); overflow: hidden; border-top: 1px solid var(--line); padding-bottom: 96px; }
.jl-footer-top { display: grid; gap: 48px; padding-top: 80px; padding-bottom: 48px; }
.jl-footer-lead { font-size: clamp(30px, 3.4vw, 52px); font-weight: 800; line-height: 1; letter-spacing: -.05em; max-width: 13ch; }
.jl-footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px 24px; }
.jl-footer-col h4 { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.jl-footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; font-weight: 600; color: var(--muted); }
.jl-footer-col a:hover { color: var(--ink); }
.jl-footer-word {
    font-weight: 800; font-size: 19vw; line-height: .8; letter-spacing: -.075em; text-align: center; white-space: nowrap; user-select: none;
    margin: 10px -2vw 0; color: transparent; -webkit-text-stroke: 1.2px #d3dbe6; pointer-events: none;
}
.jl-footer-bottom { display: flex; flex-direction: column; gap: 14px; padding-top: 22px; padding-bottom: 22px; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); }
.jl-lang { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 12px; background: #fff; }
.jl-lang select { background: transparent; color: var(--ink); border: 0; outline: 0; font: inherit; font-weight: 600; cursor: pointer; }
@media (min-width: 900px) {
    .jl-footer-top { grid-template-columns: 1.1fr 1.4fr; }
    .jl-footer-cols { grid-template-columns: repeat(3, 1fr); }
    .jl-footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ---------- Forms ---------- */
.jl-field { position: relative; }
.jl-field input, .jl-field textarea {
    width: 100%; height: 60px; padding: 24px 18px 8px; border-radius: 18px; border: 1px solid var(--line); background: #fff; color: var(--ink);
    font: inherit; font-size: 15px; font-weight: 600; outline: none; transition: border-color .3s ease, box-shadow .3s ease; -webkit-appearance: none; appearance: none;
}
.jl-field textarea { height: auto; min-height: 140px; resize: vertical; padding-top: 28px; }
.jl-field label { position: absolute; left: 19px; top: 20px; font-size: 14px; font-weight: 500; color: var(--faint); pointer-events: none; transform-origin: 0 0; transition: transform .35s var(--ease), color .3s ease; }
.jl-field input:focus, .jl-field textarea:focus { border-color: #cbd5e1; box-shadow: 0 0 0 4px rgba(0, 149, 246, .12); }
.jl-field input:focus + label, .jl-field input:not(:placeholder-shown) + label,
.jl-field textarea:focus + label, .jl-field textarea:not(:placeholder-shown) + label { transform: translateY(-11px) scale(.78); color: var(--muted); }
.jl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.jl-chip { position: relative; }
.jl-chip input { position: absolute; opacity: 0; pointer-events: none; }
.jl-chip span { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 700; cursor: pointer; transition: all .35s var(--ease); }
.jl-chip input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.jl-chip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------- Legal prose ---------- */
.jl-legal-grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
.jl-toc { display: none; }
@media (min-width: 1024px) {
    .jl-legal-grid { grid-template-columns: 270px minmax(0, 1fr); gap: 80px; }
    .jl-toc { display: block; position: sticky; top: 100px; align-self: start; }
}
.jl-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.jl-toc a { display: grid; grid-template-columns: 30px 1fr; gap: 6px; padding: 9px 12px; border-radius: 12px; font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--faint); transition: all .3s ease; }
.jl-toc a .jl-mono { font-size: 11px; padding-top: 1px; }
.jl-toc a:hover { color: var(--ink); }
.jl-toc a.is-active { color: var(--ink); background: #fff; box-shadow: 0 0 0 .5px rgba(15, 23, 42, .1), 0 6px 16px -8px rgba(15, 23, 42, .2); }
.jl-prose { font-size: 16px; line-height: 1.75; color: #475569; max-width: 74ch; }
.jl-prose section { padding: 34px 0; border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.jl-prose section:first-child { border-top: 0; padding-top: 0; }
.jl-prose h2 { font-size: clamp(22px, 2vw, 28px); line-height: 1.15; letter-spacing: -.035em; color: var(--ink); margin-bottom: 14px; }
.jl-prose p + p, .jl-prose ul + p, .jl-prose p + ul { margin-top: 12px; }
.jl-prose ul, .jl-prose ol { padding-left: 20px; margin: 12px 0 0; display: grid; gap: 8px; }
.jl-prose strong { color: var(--ink); font-weight: 700; }
.jl-prose a { color: var(--blue); font-weight: 600; }
.jl-prose code { font-family: var(--mono); font-size: .85em; background: var(--line-2); padding: 2px 6px; border-radius: 6px; color: var(--ink); }

/* ---------- Page veil ---------- */
.jl-veil { position: fixed; inset: 0; z-index: 95; background: var(--bg); pointer-events: none; opacity: 0; }
.jl-veil.is-in { transition: opacity .3s ease; opacity: 1; pointer-events: all; }

@media (prefers-reduced-motion: reduce) {
    .jl-marquee-track, .jl-prism-text { animation: none !important; }
    .jl-sheet, .jl-dock, .jl-top { transition: none !important; }
}

/* ---------- SSS (görünür; FAQPage şeması ile aynı metin) ---------- */
.jl-faq { padding: clamp(90px, 12vw, 170px) 0; background: #fff; border-top: 1px solid var(--line); }
.jl-faq-grid { display: grid; gap: 40px; }
.jl-faq-title { margin-top: 18px; font-size: clamp(40px, 5.4vw, 88px); }
.jl-faq-list { display: grid; border-top: 1px solid var(--line); }
.jl-faq-item { border-bottom: 1px solid var(--line); }
.jl-faq-item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; cursor: pointer; }
.jl-faq-item summary::-webkit-details-marker { display: none; }
.jl-faq-item summary h3 { font-size: clamp(17px, 1.5vw, 21px); font-weight: 700; letter-spacing: -.025em; line-height: 1.3; color: var(--ink); }
.jl-faq-item summary i { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line); transition: background .3s var(--ease), rotate .4s var(--ease); }
.jl-faq-item summary i::before, .jl-faq-item summary i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.6px; margin: -.8px 0 0 -6px; border-radius: 2px; background: var(--ink); transition: rotate .4s var(--ease); }
.jl-faq-item summary i::after { rotate: 90deg; }
.jl-faq-item[open] summary i { background: var(--ink); rotate: 180deg; }
.jl-faq-item[open] summary i::before, .jl-faq-item[open] summary i::after { background: #fff; }
.jl-faq-item[open] summary i::after { rotate: 0deg; }
.jl-faq-item summary:hover h3 { color: #334155; }
.jl-faq-item p { padding: 0 60px 26px 0; max-width: 70ch; color: var(--muted); font-size: 16px; line-height: 1.7; font-weight: 500; }
@media (min-width: 900px) { .jl-faq-grid { grid-template-columns: .8fr 1.4fr; gap: 60px; } }
@media (min-width: 1100px) {
    .jl-footer-top { grid-template-columns: .9fr 2fr; }
    .jl-footer-cols { grid-template-columns: repeat(4, 1fr); }
}
