/* Salinko Cafe website: same palette as the app (theme.py), day and night. */
:root {
  --bg: #F4F6FA; --surface: #FFFFFF; --border: #E3E8EF; --border-strong: #848EA0;
  --text: #111827; --text-2: #374151; --muted: #4B5563;
  --accent: #1D4ED8; --accent-hover: #1E40AF; --accent-tint: #E8EFFC; --accent-text: #1E3A8A; --link: #1D4ED8;
  --brand: #1E3A8A; --ok: #166534; --ok-bg: #EAF6EE;
  --shadow: 0 1px 2px rgba(17, 24, 39, .06), 0 8px 24px rgba(17, 24, 39, .08);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F172A; --surface: #1E293B; --border: #334155; --border-strong: #7B8BA3;
    --text: #F3F4F6; --text-2: #CBD5E1; --muted: #A3B1C6;
    --accent: #2563EB; --accent-hover: #1D4ED8; --accent-tint: #1E3A6E; --accent-text: #BFD4FF; --link: #93C5FD;
    --ok: #86EFAC; --ok-bg: #12301F;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* ---- top bar */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; }
.logo b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--brand); color: #fff; }
.logo small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; line-height: 1; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.top nav a { color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 15px; }
.top nav a:hover { color: var(--text); }
@media (max-width: 720px) { .top nav a:not(.btn) { display: none; } }

/* ---- buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 10px;
  font-weight: 700; text-decoration: none; border: 1px solid var(--border-strong); color: var(--text);
  background: var(--surface); transition: background .15s, transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.small { padding: 8px 14px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; }

/* ---- hero: photo with a dark wash so white text stays readable in both modes */
.hero { position: relative; color: #fff; isolation: isolate; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background: url("img/hero.jpg") center 30% / cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(9, 14, 32, .94) 0%, rgba(9, 14, 32, .82) 45%, rgba(9, 14, 32, .35) 100%); }
.hero .wrap { padding: 96px 0 104px; }
.hero .eyebrow { display: inline-block; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14);
  font-weight: 600; font-size: 14px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.1; margin: 0 0 18px; max-width: 14ch; letter-spacing: -.02em; }
.hero p.lead { font-size: 19px; max-width: 54ch; color: #E5E7EB; margin: 0 0 30px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn:not(.primary) { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .55); }
.hero .meta { margin-top: 18px; font-size: 14px; color: #CBD5E1; }

/* ---- sections */
section { padding: 80px 0; }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.2; margin: 0 0 12px; letter-spacing: -.01em; }
.section-head p { color: var(--text-2); margin: 0; font-size: 18px; }
.kicker { color: var(--accent-text); background: var(--accent-tint); display: inline-block; padding: 3px 10px;
  border-radius: 6px; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 12px; }

/* screenshot frame */
.shot { border-radius: 14px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); background: var(--surface); }
.shot .bar { height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: var(--bg); border-bottom: 1px solid var(--border); }
.shot .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); opacity: .6; }

.showcase { margin-top: -56px; position: relative; z-index: 2; padding-top: 0; }

/* feature grid */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px; }
.card .ico { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-tint); color: var(--accent-text); margin-bottom: 14px; }
.card .ico svg { width: 22px; height: 22px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--text-2); font-size: 15.5px; }

/* alternating feature rows */
.row { display: grid; grid-template-columns: 1fr 1.35fr; gap: 48px; align-items: center; margin-bottom: 72px; }
.row.flip { grid-template-columns: 1.35fr 1fr; }
.row h3 { font-size: 26px; margin: 0 0 12px; line-height: 1.25; }
.row p { color: var(--text-2); margin: 0 0 14px; }
.row ul { margin: 0; padding: 0; list-style: none; }
.row li { padding-left: 28px; position: relative; margin: 8px 0; color: var(--text-2); }
.row li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 12px; height: 7px;
  border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg); }
@media (max-width: 860px) { .row, .row.flip { grid-template-columns: 1fr; gap: 24px; } .row.flip .shot { order: 2; } }

/* photo band */
.band { background: var(--surface); border-block: 1px solid var(--border); }
.band .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.photos img { border-radius: 14px; aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.photos img:last-child { margin-top: 40px; }
@media (max-width: 860px) { .band .wrap { grid-template-columns: 1fr; } }

.steps { counter-reset: s; display: grid; gap: 16px; }
.steps div { counter-increment: s; position: relative; padding-left: 52px; }
.steps div::before { content: counter(s); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 700; }
.steps h4 { margin: 4px 0 4px; font-size: 17px; }
.steps p { margin: 0; color: var(--text-2); }

/* night mode pair */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .pair { grid-template-columns: 1fr; } }

/* call to action */
.cta { text-align: center; }
.cta .box { background: linear-gradient(135deg, #1E3A8A, #1D4ED8); color: #fff; border-radius: 20px; padding: 56px 24px; }
.cta h2 { font-size: clamp(28px, 3.4vw, 38px); margin: 0 0 10px; }
.cta p { color: #DBEAFE; margin: 0 0 26px; font-size: 18px; }
.cta .btn.primary { background: #fff; color: #1E3A8A; border-color: #fff; }
.cta .btn:not(.primary) { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.cta .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta small { display: block; margin-top: 16px; color: #DBEAFE; }

footer { padding: 40px 0; color: var(--muted); font-size: 14px; border-top: 1px solid var(--border); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
footer a { color: var(--text-2); }

/* ---- documentation page */
.doc { display: grid; grid-template-columns: 240px 1fr; gap: 48px; padding: 48px 0 80px; }
.doc aside { position: sticky; top: 88px; align-self: start; }
.doc aside a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 15px; }
.doc aside a:hover { background: var(--accent-tint); color: var(--accent-text); }
.doc article { max-width: 760px; }
.doc h1 { font-size: 38px; margin: 0 0 8px; }
.doc h2 { font-size: 26px; margin: 48px 0 12px; padding-top: 8px; border-top: 1px solid var(--border); }
.doc h3 { font-size: 19px; margin: 26px 0 8px; }
.doc p, .doc li { color: var(--text-2); }
.doc .shot { margin: 18px 0 8px; }
.note { background: var(--accent-tint); color: var(--accent-text); border-radius: 10px; padding: 14px 16px; margin: 16px 0; }
.doc kbd { border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 5px; padding: 0 6px; font-size: 14px; background: var(--surface); color: var(--text); }
@media (max-width: 860px) { .doc { grid-template-columns: 1fr; } .doc aside { position: static; display: flex; flex-wrap: wrap; gap: 4px; } }
