/* Tokens copied from src/index.css (.dark). Dark only, like the app. Layout ideas (frosted header with scroll links,
   split hero, flow with arrows, centered sections, pill buttons, lift on hover) from the pricemesh landing. */
:root {
  --background: oklch(0.145 0 0);
  --foreground: oklch(0.985 0 0);
  --card: oklch(0.205 0 0 / 60%);
  --muted: oklch(0.269 0 0);
  --muted-foreground: oklch(0.708 0 0);
  --border: oklch(1 0 0 / 10%);
  --primary: oklch(0.705 0.213 47.604);
  --primary-foreground: oklch(0.145 0 0);
  --destructive: oklch(0.704 0.191 22.216);
  --good: oklch(0.792 0.209 151.711);   /* emerald-400 */
  --ai: oklch(0.702 0.183 293.541);     /* violet-400 */
  --sky: oklch(0.828 0.111 230.318);    /* sky-300 */
  --teal: oklch(0.855 0.138 181.071);   /* teal-300 */
  --violet: oklch(0.811 0.111 293.571); /* violet-300 */
  --radius: 10px;
  --sans: 'Geist', system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
main { overflow-x: clip; } /* the hero glow reaches past the edge; clip, not hidden, so the sticky header keeps working */
body { background: var(--background); color: var(--foreground); font: 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted-foreground); }
.bad { color: var(--destructive); }
.good { color: var(--good); }
section[id], footer[id] { scroll-margin-top: 72px; }

/* Top bar: transparent at the top, frosted once scrolled (class set by the inline script). */
header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
header.scrolled { background: oklch(0.145 0 0 / 80%); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: var(--border); }
header .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 64px; }
header .btn { justify-self: end; }
nav { display: flex; gap: 32px; font-size: 14px; font-weight: 500; }
nav a { color: var(--muted-foreground); transition: color .2s; }
nav a:hover { color: var(--foreground); }
.wordmark { display: inline-flex; align-items: center; gap: .3em; font: 600 18px var(--mono); letter-spacing: -.02em; justify-self: start; }
.wordmark svg { width: 1em; height: 1em; color: var(--primary); }
.wordmark b { color: var(--primary); font-weight: 600; }
/* Logo motion from the brand GIF (same as the app's .mark-c / .mark-b): C and B pull apart, on hover. */
@keyframes mark-c { 0%, 15%, 80%, 100% { transform: translateX(0); } 36%, 52% { transform: translateX(-7px); } }
@keyframes mark-b { 0%, 15%, 80%, 100% { transform: translateX(0); } 36%, 52% { transform: translateX(7px); } }
.wordmark:hover .c { animation: mark-c 1.6s ease-in-out infinite; }
.wordmark:hover .b { animation: mark-b 1.6s ease-in-out infinite; }

.btn { display: inline-flex; align-items: center; height: 38px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--border); font-size: 14px; font-weight: 500; transition: background .2s, border-color .2s, filter .2s; }
.btn:hover { border-color: oklch(1 0 0 / 25%); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); font-weight: 600; }
.btn.primary:hover { filter: brightness(1.08); }

/* Hero: text left, the Özet mock right; a soft orange glow behind it (the only decoration). */
.hero { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 96px; }
.hero::before { content: ''; position: absolute; z-index: -1; right: -10%; top: -20%; width: 70%; height: 120%; background: radial-gradient(closest-side, oklch(0.705 0.213 47.604 / 14%), transparent); pointer-events: none; }
.hero h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.05; letter-spacing: -.035em; font-weight: 600; text-wrap: balance; }
/* The middle line cycles through words (script); its own line, so a long word never reflows the headline. */
.rotator { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.rotator .word { display: inline-block; white-space: nowrap; color: var(--primary); transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .3s ease; }
.rotator .word.out { transform: translateY(-60%); opacity: 0; }
.rotator .word.enter { transform: translateY(60%); opacity: 0; transition: none; }
.lead { margin-top: 20px; max-width: 52ch; font-size: 17px; color: var(--muted-foreground); }
.lead strong { color: var(--foreground); font-weight: 500; }
.hero .actions { margin-top: 32px; display: flex; gap: 10px; flex-wrap: wrap; }
.hero-visual { box-shadow: 0 24px 80px -24px oklch(0 0 0 / 80%), 0 0 0 1px oklch(0.705 0.213 47.604 / 12%); }

/* Sections: centered heading, generous spacing. */
.section { padding-top: 32px; padding-bottom: 96px; }
.section h2 { text-align: center; font-size: clamp(28px, 4vw, 40px); line-height: 1.15; letter-spacing: -.03em; font-weight: 600; margin-bottom: 48px; text-wrap: balance; }

/* Flow: three steps with arrows between them. */
.flow { display: flex; align-items: flex-start; gap: 16px; max-width: 960px; margin: 0 auto; }
.step { flex: 1; text-align: center; }
.step h3 { margin-top: 14px; font-size: 16px; font-weight: 600; }
.step p { margin: 6px auto 0; max-width: 30ch; font-size: 14px; color: var(--muted-foreground); }
.badge { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: oklch(0.705 0.213 47.604 / 12%); color: var(--primary); }
.badge.ai { background: oklch(0.702 0.183 293.541 / 14%); color: var(--ai); }
.badge svg { width: 20px; height: 20px; }
.arrow { margin-top: 12px; color: oklch(1 0 0 / 25%); }
.arrow svg { width: 20px; height: 20px; display: block; }

/* Exemplar modules: a bento grid, Takip spans the full width. */
.label { font-size: 12px; letter-spacing: .15em; text-transform: uppercase; color: var(--muted-foreground); }
.modules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.module { position: relative; border: 1px solid var(--border); background: var(--card); border-radius: 16px; padding: 20px; min-width: 0; transition: transform .25s, border-color .25s, box-shadow .25s; }
.modules .module:hover { transform: translateY(-3px); border-color: oklch(0.705 0.213 47.604 / 35%); box-shadow: 0 16px 48px -24px oklch(0 0 0 / 80%); }
.module.wide { grid-column: 1 / -1; }
.module > .label { display: block; margin-bottom: 14px; }
.box { border: 1px solid var(--border); border-radius: var(--radius); }

/* Fade-up on scroll (classes set by the inline script, so without JS everything is simply visible). */
.reveal.pending { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.pending.in { opacity: 1; transform: none; }
.flow .step:nth-child(3) { transition-delay: .1s; }
.flow .step:nth-child(5) { transition-delay: .2s; }

/* Prompt mock */
.results div { display: flex; gap: 10px; padding: 8px 12px; font-size: 13px; border-bottom: 1px solid var(--border); }
.results div:last-child { border-bottom: 0; }
.results div:first-child { background: var(--muted); border-radius: var(--radius) var(--radius) 0 0; }
.results .dim { opacity: .5; }
.results .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prompt { margin-top: 8px; padding: 10px 12px; font: 14px var(--mono); }
.prompt span { color: var(--primary); margin-right: 8px; }
.prompt i { display: inline-block; width: 8px; height: 16px; vertical-align: -3px; background: var(--foreground); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Özet mock */
.fresh { display: flex; align-items: center; gap: 8px; font: 12px var(--mono); color: var(--muted-foreground); }
.fresh::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--good); }
.figures { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.figure { padding: 12px; }
.figure div:first-child { font-size: 12px; color: var(--muted-foreground); }
.figure div:last-child { margin-top: 2px; font: 600 clamp(17px, 4.6vw, 22px) var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
dl { margin-top: 10px; font-size: 13px; }
dl div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; }
dl div + div { border-top: 1px solid var(--border); }
dt { color: var(--muted-foreground); }

/* Takip mock */
.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.col h4 { font-size: 12px; font-weight: 500; display: flex; justify-content: space-between; margin-bottom: 8px; }
.card { padding: 10px 12px; margin-bottom: 8px; font-size: 13px; background: oklch(0.205 0 0 / 60%); }
.card .mono { font-size: 12px; }
.sky { color: var(--sky); } .teal { color: var(--teal); } .violet { color: var(--violet); }

/* AI mock */
.summary { border: 1px solid oklch(0.702 0.183 293.541 / 40%); background: oklch(0.702 0.183 293.541 / 10%); border-radius: var(--radius); padding: 12px; font-size: 13px; }
.summary b { color: var(--ai); font-weight: 600; font-size: 12px; display: block; margin-bottom: 4px; }
.bubble { margin-top: 10px; padding: 8px 12px; border-radius: var(--radius); font-size: 13px; max-width: 85%; }
.bubble.me { margin-left: auto; background: var(--muted); }
.bubble.ai { border: 1px solid oklch(0.702 0.183 293.541 / 40%); }
.cite { font: 11px var(--mono); color: var(--ai); border: 1px solid oklch(0.702 0.183 293.541 / 40%); border-radius: 4px; padding: 0 4px; }

footer { border-top: 1px solid var(--border); padding: 32px 0; font-size: 13px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
footer .wordmark { font-size: 15px; }

@media (max-width: 860px) {
  header .wrap { grid-template-columns: 1fr auto; }
  nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; padding-bottom: 64px; }
  .flow { flex-direction: column; align-items: center; gap: 12px; }
  .arrow { margin-top: 0; transform: rotate(90deg); }
  .modules { grid-template-columns: 1fr; }
  .section { padding-bottom: 64px; }
}
@media (max-width: 520px) {
  .board { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wordmark:hover .c, .wordmark:hover .b, .prompt i { animation: none; }
  .module, .reveal.pending { transition: none; }
}

/* Hero: one customer's file (Takip entry, AI özet, a tagged note, a payment line, a cited answer). */
.small { font-size: 12px; }
.dname { font-weight: 600; font-size: 16px; line-height: 1.3; }
.takip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 10px; font-size: 12px; color: var(--muted-foreground); }
.takip span { display: inline-flex; align-items: center; gap: 4px; }
.takip svg { width: 13px; height: 13px; }
/* Status badges and board column titles carry the app's status icons (src/lib/status.ts: Phone, Hourglass, ReceiptText). */
.status { display: inline-flex; align-items: center; gap: 6px; border: 1px solid; border-radius: 6px; padding: 1px 8px; font-weight: 500; }
.status svg, .col h4 svg { width: 14px; height: 14px; flex-shrink: 0; }
.col h4 > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.teal-badge { color: var(--teal); border-color: oklch(0.704 0.14 182.503 / 40%); background: oklch(0.704 0.14 182.503 / 10%); }
.dossier .summary { margin-top: 14px; }
.summary p { display: flex; gap: 8px; }
.summary p + p { margin-top: 2px; }
.summary .k { flex: none; width: 92px; color: var(--muted-foreground); }
.paid { margin-top: 14px; font-size: 12px; text-align: center; color: var(--good); }
.bubble.other { background: var(--muted); max-width: 92%; }
.bubble .who { display: block; font-size: 11px; color: var(--muted-foreground); margin-bottom: 2px; }
.bubble .tag { display: block; margin-top: 6px; font-size: 11px; color: var(--ai); }

/* Takip mock cards: latest note, sorumlu · follow-up date. */
.card .note { margin-top: 4px; font-size: 12px; color: var(--muted-foreground); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: 11px; color: var(--muted-foreground); }

/* Hero frame: slides stacked in one grid cell, so the outline is the tallest slide's and never jumps. */
.stage { perspective: 1200px; }
.dossier { display: grid; transform-style: preserve-3d; will-change: transform; overflow: hidden; }
.slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .6s ease, transform .6s ease, visibility 0s .6s; }
.slide.active { opacity: 1; visibility: visible; transform: none; transition: opacity .6s ease .15s, transform .6s ease .15s, visibility 0s; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 16px; }
.dots button { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 999px; background: oklch(1 0 0 / 20%); cursor: pointer; transition: width .3s, background .3s; }
.dots button.on { width: 18px; background: var(--primary); }
/* A soft light that moves with the tilt (position set by the script). */
.glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 30%), oklch(1 0 0 / 3%), transparent 45%); }
.sky-badge { color: var(--sky); border-color: oklch(0.685 0.169 237.323 / 40%); background: oklch(0.685 0.169 237.323 / 10%); }
.violet-badge { color: var(--violet); border-color: oklch(0.606 0.25 292.717 / 40%); background: oklch(0.606 0.25 292.717 / 10%); }
@media (prefers-reduced-motion: reduce) {
  .slide, .slide.active { transition: none; transform: none; }
}

/* Notlar / Sor mocks: a thread (day separator, payment line, bubbles) above an input, like NotesPanel. */
.thread { display: flex; flex-direction: column; }
.thread .bubble { margin-top: 8px; }
.thread .bubble.other { margin-right: auto; }
.day { display: flex; align-items: center; gap: 10px; font: 11px var(--mono); color: var(--muted-foreground); }
.day::before, .day::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.thread .paid { margin-top: 10px; }
.bubble.mine { margin-left: auto; border: 1px solid oklch(0.705 0.213 47.604 / 30%); background: oklch(0.705 0.213 47.604 / 15%); }
.mention { color: var(--primary); font-weight: 500; }
.ai-label { color: var(--ai); }
.input { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 8px 8px 8px 12px; font-size: 12px; color: var(--muted-foreground); }
.input > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.send { flex: none; padding: 3px 12px; border-radius: 6px; background: var(--primary); color: var(--primary-foreground); font-weight: 600; }
.send.ai-send { background: oklch(0.606 0.25 292.717); color: var(--foreground); }
.module:has(.input) { display: flex; flex-direction: column; }
.module:has(.input) .input { margin-top: auto; }
.module:has(.input) .thread { margin-bottom: 14px; }
.thread .day + .paid, .thread .paid + .day { margin-top: 10px; }

/* Hatırlatma mock: a reminder ready to send by e-mail or WhatsApp, and scheduled ones with on/off switches. */
.remind { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; align-items: start; }
.msg { padding: 12px; font-size: 13px; }
.msg p { margin-top: 6px; }
.sendrow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.send-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; font-weight: 500; }
.send-btn:first-child { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }
.send-btn svg, .sched .sh svg { width: 14px; height: 14px; flex-shrink: 0; }
.sched { font-size: 13px; }
.sched .sh { display: flex; align-items: center; gap: 6px; padding: 10px 12px; font-size: 12px; color: var(--muted-foreground); border-bottom: 1px solid var(--border); }
.sched .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; }
.sched .row + .row { border-top: 1px solid var(--border); }
.sched .row span { display: block; font-size: 12px; }
.switch { flex: none; position: relative; width: 30px; height: 18px; border-radius: 999px; background: var(--muted); }
.switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--muted-foreground); transition: left .2s; }
.switch.on { background: var(--primary); }
.switch.on::after { left: 14px; background: var(--primary-foreground); }
@media (max-width: 860px) {
  .remind { grid-template-columns: 1fr; }
}
