/* Booksycle 2.0 landing page. Tokens as in the app (mobile/src/theme). */
:root {
  --deep: #1F3D36; --deep2: #2A5047; --on-deep: #CFE0D8; --brand: #C2410C; --flame: #F97316; --peach: #FDBA74;
  --tint: #FDEBDD; --ground: #FBF7F1; --card: #FFFFFF; --ink: #1C1A17; --ink2: #45403A; --muted: #6B635A; --line: #ECE4D8;
  --green: #2F7A55; --r: 20px;
  --disp: 'Fraunces', Georgia, serif; --sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.disp { font-family: var(--disp); font-weight: 600; letter-spacing: -0.01em; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 56px; }
.row { display: flex; align-items: center; gap: 28px; }
.grow { flex: 1; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: #fff; padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--flame); outline-offset: 3px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 22px; border-radius: 999px; font: 600 16px var(--sans); text-decoration: none; border: 1.5px solid transparent; white-space: nowrap; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.sm { height: 40px; padding: 0 16px; font-size: 14.5px; }
.btn.primary { background: var(--brand); color: #fff; }
.btn.primary:hover { background: #9A3412; }
.btn.glass { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.28); color: #fff; }
.btn.glass:hover { background: rgba(255,255,255,.18); }
.btn.dark { background: var(--ink); color: #fff; }
.btn.white { background: #fff; color: var(--ink); }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.buttons { display: flex; flex-wrap: wrap; gap: 10px; }

/* Header */
.top { background: var(--deep); color: #fff; position: sticky; top: 0; z-index: 5; }
.top .row { height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 22px var(--disp); letter-spacing: -0.02em; }
.logo svg { width: 34px; height: 34px; }
.logo.dark { color: var(--ink); }
.nav { display: flex; gap: 26px; font-weight: 600; font-size: 15px; }
.nav a { color: #D3E3DC; text-decoration: none; }
.nav a:hover { color: #fff; }
.top-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 999px; color: #fff; font-weight: 600; font-size: 14px; border: 1.5px solid rgba(255,255,255,.28); }
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.lang ul { position: absolute; right: 0; top: 48px; margin: 0; padding: 8px; list-style: none; background: #fff; border-radius: 14px; box-shadow: 0 18px 40px rgba(28,26,23,.18); min-width: 180px; }
.lang li a { display: flex; gap: 12px; padding: 9px 12px; border-radius: 9px; color: var(--ink2); text-decoration: none; font-size: 15px; }
.lang li a:hover { background: var(--ground); }
.lang li a[aria-current] { font-weight: 700; color: var(--ink); }
.lang li code { font: 600 12px ui-monospace, monospace; color: var(--muted); width: 22px; padding-top: 2px; }

/* Hero */
.hero { background: var(--deep); color: #fff; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 88px; align-items: center; }
.eyebrow { font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.eyebrow.light { color: var(--peach); }
.eyebrow.brand { color: var(--brand); }
.hero h1 { font-size: clamp(40px, 5.4vw, 70px); line-height: 1.03; margin-bottom: 22px; max-width: 11.5em; text-wrap: balance; }
.lead { font-size: 20px; color: var(--on-deep); max-width: 520px; margin-bottom: 28px; }
.lead.dark { color: var(--ink2); font-size: 18px; }
.avail { display: flex; align-items: center; gap: 8px; margin-top: 22px; color: var(--on-deep); font-size: 15px; }
.avail svg { width: 18px; height: 18px; fill: none; stroke: var(--peach); stroke-width: 2; }
.hero-art { position: relative; height: 500px; }
.cover { position: absolute; width: 210px; height: 315px; border-radius: 6px 12px 12px 6px; padding: 26px 22px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 22px 44px rgba(0,0,0,.32), inset 6px 0 0 rgba(0,0,0,.14); }
.cover .t { font: 600 24px/1.1 var(--disp); }
.cover .a { font-size: 14px; opacity: .85; }
.cover.c1 { background: #E9DFCF; color: var(--ink); }
.cover.c2 { background: var(--brand); color: #fff; }
.cover.c3 { background: #3D4A7A; color: #fff; }
.cover.big { width: 250px; height: 375px; left: 50%; top: 40px; margin-left: -125px; z-index: 2; }
.cover.big .t { font-size: 30px; }
.tilt-l { left: 0; top: 110px; transform: rotate(-8deg); }
.tilt-r { right: 0; top: 135px; transform: rotate(7deg); }
.float { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; background: #fff; color: var(--ink); padding: 12px 16px; border-radius: 16px; box-shadow: 0 16px 34px rgba(0,0,0,.2); font-size: 14px; }
.float small { display: block; color: var(--muted); font-size: 12.5px; }
.float .dot { width: 30px; height: 30px; border-radius: 50%; background: #E3F1E8; position: relative; }
.float .dot::after { content: ''; position: absolute; left: 9px; top: 9px; width: 12px; height: 12px; border-radius: 50%; background: var(--green); }
.float svg { width: 20px; height: 20px; fill: var(--brand); }
.f1 { left: 10px; bottom: 6px; }
.f2 { right: 0; top: 30px; }

/* Stats */
.stats { background: #fff; border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 28px; padding-bottom: 28px; text-align: center; }
.stats b { display: block; font-size: 36px; line-height: 1.1; }
.stats span { color: var(--muted); font-size: 14.5px; }

/* Blocks */
.block { padding: 96px 0; }
.block.tint { background: var(--tint); }
.pad-top-0 { padding-top: 0; }
.h2 { font-size: clamp(32px, 4vw, 46px); line-height: 1.06; margin-bottom: 18px; }
.h2.light { color: #fff; }
.narrow { max-width: 680px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.card h3 { font-size: 22px; margin: 10px 0 8px; }
.card p { color: var(--muted); font-size: 15.5px; }
.steps { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.num { font-size: 40px; color: var(--brand); line-height: 1; }

.scan-grid { display: grid; grid-template-columns: 320px 1fr; gap: 64px; align-items: center; }
.phone { width: 300px; height: 600px; border-radius: 40px; border: 10px solid var(--ink); background: #12110F; position: relative; overflow: hidden; margin: 0 auto; }
.phone .chip { position: absolute; left: 20px; top: 40px; background: rgba(255,255,255,.14); color: #fff; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.spines { position: absolute; left: 20px; right: 20px; bottom: 120px; display: flex; align-items: flex-end; gap: 5px; }
.spines i { display: block; border-radius: 3px; }
.spines .on { outline: 2.5px solid var(--flame); outline-offset: 3px; }
.s1 { width: 30px; height: 220px; background: var(--deep); } .s2 { width: 40px; height: 240px; background: var(--brand); } .s3 { width: 24px; height: 200px; background: #E9DFCF; }
.s4 { width: 36px; height: 230px; background: #3D4A7A; } .s5 { width: 30px; height: 210px; background: #6E2F3E; } .s6 { width: 34px; height: 244px; background: #2F6B7A; }
.shutter { position: absolute; left: 50%; bottom: 30px; margin-left: -32px; width: 64px; height: 64px; border-radius: 50%; border: 4px solid #fff; }
.checks { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 12px; font-weight: 600; }
.checks li { display: flex; gap: 10px; align-items: center; }
.checks li::before { content: ''; flex: none; width: 22px; height: 22px; border-radius: 50%; background: #E3F1E8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F7A55' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat; }

.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 30px; }
.trust svg { width: 30px; height: 30px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.cta { background: var(--deep); color: #fff; border-radius: 32px; padding: 56px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }
.cta .lead { margin-bottom: 0; }

/* Sub pages */
.page-hero { background: var(--deep); color: #fff; padding: 64px 0 72px; }
.page-hero h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1.05; max-width: 16em; text-wrap: balance; }
.page-hero .lead { margin: 18px 0 0; }
.prose-wide { max-width: 820px; display: grid; gap: 18px; }
.steps.three { grid-template-columns: repeat(3, 1fr); }
.team { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.person { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; text-align: center; display: grid; justify-items: center; gap: 12px; }
.person img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; background: var(--tint); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 24px; align-items: start; }
.stack { display: grid; gap: 18px; }
.card.warn { background: #FEF3EC; border-color: #F6D3BF; }
.card.warn h3 { color: #9A3412; }
.link { color: var(--brand); font-weight: 600; }
.h3 { font-size: 26px; margin-bottom: 4px; }
.small { font-size: 14px; }
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 14.5px; color: var(--ink2); }
.form input, .form select, .form textarea { font: 400 16px var(--sans); color: var(--ink); background: var(--ground); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--deep2); background: #fff; }
.form label.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; }
.form label.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--brand); }
.form .btn { justify-self: start; cursor: pointer; }
.form .btn[disabled] { opacity: .6; cursor: default; }
.form-msg { font-weight: 600; min-height: 1em; }
.form-msg.ok { color: var(--green); }
.form-msg.err { color: #B3324E; }
.form .small a { color: var(--brand); }
.prose { max-width: 820px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 40px 48px; }
.prose h2 { font-size: 26px; margin: 34px 0 10px; }
.prose h2:first-child, .prose .note + h2 { margin-top: 0; }
.prose h3 { font-size: 19px; margin: 22px 0 8px; }
.prose h4 { font-size: 17px; margin: 18px 0 6px; }
.prose p, .prose li { color: var(--ink2); font-size: 16px; }
.prose p { margin: 0 0 12px; }
.prose ul { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 6px; }
.prose a { color: var(--brand); }
.prose .note { background: var(--tint); border-radius: 12px; padding: 12px 16px; color: var(--ink); font-weight: 600; margin-bottom: 28px; }
.table-wrap { overflow-x: auto; margin: 10px 0 24px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { background: var(--ground); }

/* Footer */
.foot { background: #fff; border-top: 1px solid var(--line); padding: 32px 0; font-size: 14.5px; }
.wrap-row { flex-wrap: wrap; gap: 20px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; }
.foot-links a { color: var(--ink2); text-decoration: none; }
.foot-links a:hover { color: var(--brand); text-decoration: underline; }

/* Tablet / phone */
@media (max-width: 1020px) {
  .nav { display: none; }
  .team { grid-template-columns: repeat(2, 1fr); }
  .contact-grid, .steps.three { grid-template-columns: 1fr; }
  .steps, .trust { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; padding-bottom: 48px; }
  .hero-art { height: 360px; max-width: 520px; width: 100%; margin: 0 auto; }
  .cover { width: 160px; height: 240px; } .cover .t { font-size: 19px; }
  .cover.big { width: 190px; height: 285px; margin-left: -95px; top: 10px; } .cover.big .t { font-size: 23px; }
  .tilt-l { top: 60px; } .tilt-r { top: 80px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .top .row { height: 64px; gap: 12px; }
  .logo span { display: none; }
  .hide-sm { display: none; }
  .hero-grid { padding-top: 28px; gap: 20px; }
  .lead { font-size: 17px; }
  .btn { height: 48px; padding: 0 18px; font-size: 15px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats b { font-size: 30px; }
  .block { padding: 56px 0; }
  .steps, .trust { grid-template-columns: 1fr; }
  .scan-grid { grid-template-columns: 1fr; gap: 32px; }
  .phone { width: 260px; height: 520px; }
  .cta { padding: 28px; border-radius: 24px; }
  .f2 { display: none; }
  .page-hero { padding: 40px 0 48px; }
  .prose { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
