/* site.css — OverDrive Cloud website styles (dark, phone-first; same palette as the cloud app) */
:root {
  color-scheme: dark;
  --bg: #0f1412; --surface: #161d1a; --surface-2: #1c2521; --line: #2c3833; --text: #e6ece9; --muted: #a9b5b0;
  --accent: #4fd1a5; --accent-text: #05231a; --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
code, pre { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .9em; }
code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }
pre { background: #0a0e0c; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; overflow-x: auto; margin: 10px 0 4px; }
pre code { background: none; padding: 0; }
img { max-width: 100%; height: auto; }

/* language: TR by default, EN when <html data-lang="en"> */
html:not([data-lang="en"]) .l-en, html[data-lang="en"] .l-tr { display: none !important; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
section.wrap { padding-top: 56px; }
h1 { font-size: clamp(2rem, 5.5vw, 3.2rem); line-height: 1.12; margin: .2em 0 .4em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2rem); margin: 0 0 20px; }
h3 { font-size: 1.1rem; margin: 0 0 8px; }
h3.sub { margin: 28px 0 14px; color: var(--muted); font-weight: 600; }
.muted { color: var(--muted); }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(15, 20, 18, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; white-space: nowrap; }
.brand img { border-radius: 8px; }
.brand b { color: var(--accent); }
.nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; }
.nav a { color: var(--muted); text-decoration: none; padding: 8px 10px; border-radius: 10px; font-size: .95rem; white-space: nowrap; }
.nav a:hover { color: var(--text); background: var(--surface); }
.lang { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 10px; padding: 7px 12px; font: inherit; font-weight: 600; cursor: pointer; }
@media (max-width: 760px) { .nav { display: none; } .lang { margin-left: auto; } }

/* hero */
.hero { padding: 48px 0 8px; background: radial-gradient(1000px 420px at 85% 0%, rgba(79, 209, 165, .12), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 600; margin: 0; letter-spacing: .02em; }
.free { display: inline-block; margin: 0 0 14px; padding: 6px 14px; border: 1px solid var(--accent); border-radius: 999px;
  background: rgba(79, 209, 165, .1); color: var(--text); font-size: .95rem; }
.free b { color: var(--accent); }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 40em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 14px; background: var(--accent); color: var(--accent-text);
  font-weight: 700; text-decoration: none; border: 1px solid var(--accent); }
.btn:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; color: var(--accent); }
.meta { color: var(--muted); font-size: .9rem; min-height: 1.6em; margin-top: 10px; }
.hero-shots { position: relative; height: 520px; }
.phone { position: absolute; width: 230px; border-radius: 28px; border: 6px solid #232c28; box-shadow: 0 24px 60px rgba(0, 0, 0, .55); background: #000; }
.phone.back { right: 150px; top: 40px; transform: rotate(-5deg); opacity: .92; }
.phone.front { right: 0; top: 0; transform: rotate(4deg); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-shots { height: 380px; }
  .phone { width: 170px; }
  .phone.back { right: auto; left: calc(50% - 175px); top: 30px; }
  .phone.front { right: auto; left: calc(50% - 5px); }
}

/* steps */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: var(--accent-text); font-weight: 800; margin-bottom: 10px; }
.steps b { display: block; font-size: 1.05rem; }
.steps p { color: var(--muted); margin: 6px 0 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr 1fr; } .two { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-width: 0; }
.card p { color: var(--muted); margin: 0 0 10px; }
.card p:last-child { margin-bottom: 0; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; color: var(--muted); }
.checks li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 12px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.checks b { color: var(--text); }
.howto { padding-left: 20px; margin: 0; display: grid; gap: 12px; color: var(--muted); }
.howto li { min-width: 0; }
.note { font-size: .9rem; border-left: 3px solid var(--line); padding-left: 10px; }
.two + .note { margin-top: 16px; color: var(--muted); }

/* screenshots */
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 210px); gap: 16px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
.shots figure { margin: 0; scroll-snap-align: start; }
.shots img { display: block; width: 100%; border-radius: 18px; border: 1px solid var(--line); background: #000; }
.shots figcaption { color: var(--muted); font-size: .9rem; text-align: center; margin-top: 8px; }
.credit { color: var(--muted); font-size: .85rem; }

/* releases */
.releases { display: grid; gap: 12px; }
.release { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.release-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.release-head h3 { margin: 0; }
.release-head .when { color: var(--muted); font-size: .9rem; }
.release-head a { margin-left: auto; font-weight: 600; text-decoration: none; }
.tag { font-size: .75rem; font-weight: 700; color: var(--accent-text); background: var(--accent); border-radius: 999px; padding: 2px 8px; }
.release ul { margin: 10px 0 0; padding-left: 20px; color: var(--muted); }

/* faq */
details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; padding: 12px 0; }
details p { color: var(--muted); margin: 0 0 14px; }

.foot { margin-top: 64px; border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--muted); font-size: .9rem; }

/* "this build" highlights and the alternative-install fold */
.card.highlight { border-color: rgba(79, 209, 165, .45); background: linear-gradient(180deg, rgba(79, 209, 165, .08), var(--surface) 60%); }
.card.highlight h3 { color: var(--accent); }
.card details.alt { background: var(--surface-2); margin: 14px 0 0; }
.card details.alt p { margin-top: 10px; }
.howto pre { white-space: pre; }
