/* loyali.ru — landing. Colours and type come from assets/tokens.css */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--ly-paper);
  color: var(--ly-ink);
  font: 400 17px/1.5 var(--ly-font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left)); }
.mark { width: 28px; height: 28px; color: var(--ly-ink); flex: none; }

h1, h2, h3 { font-weight: 600; letter-spacing: -0.035em; line-height: 1; }
h2 { font-size: clamp(36px, 5vw, 60px); margin-bottom: 40px; }
h3 { font-size: 21px; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 8px; }
.eyebrow { font: 500 12px/1 var(--ly-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ly-stone); margin-bottom: 18px; }
.lead { font-size: 19px; color: #4A4740; max-width: 520px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 24px; border-radius: var(--ly-radius-pill);
  font: 600 16px/1 var(--ly-font); border: 0; cursor: pointer;
  transition: transform .16s cubic-bezier(.2,.8,.2,1), background-color .16s, box-shadow .16s;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:active { transform: scale(.97); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-ink   { background: var(--ly-ink); color: var(--ly-paper); }
.btn-point { background: var(--ly-point); color: var(--ly-ink); }
.btn-line  { box-shadow: inset 0 0 0 1.5px var(--ly-ink); }
@media (hover: hover) {
  .btn-ink:hover   { background: #2A2A2F; }
  .btn-point:hover { background: #FF6E4E; }
  .btn-line:hover  { background: rgba(23,23,26,.05); }
}
.btn:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--ly-point); outline-offset: 3px;
}

/* Chips */
.chip {
  display: inline-flex; align-items: center; padding: 6px 12px; border-radius: var(--ly-radius-pill);
  font: 500 13px/1 var(--ly-font); white-space: nowrap;
}
.chip.point { background: var(--ly-point); color: var(--ly-ink); }
.chip.soft  { background: var(--ly-point-soft); color: #B23A1E; }
.chip.moss  { background: var(--ly-moss-soft); color: var(--ly-moss); }
.chip.line  { box-shadow: inset 0 0 0 1.5px var(--ly-ink); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(244,239,230,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--ly-border); }
.nav-in { height: 68px; display: flex; align-items: center; gap: 32px; }
.logo { display: flex; align-items: center; gap: 8px; font: 600 26px/1 var(--ly-font); letter-spacing: -0.045em; }
.logo span { transform: translateY(-2px); }
.links { display: flex; gap: 28px; margin-left: auto; font-size: 15px; color: #4A4740; }
.links a { transition: color .15s; }
@media (hover: hover) { .links a:hover { color: var(--ly-ink); } }
@media (max-width: 820px) { .links { display: none; } .nav-in .btn { margin-left: auto; } }

/* Hero */
.hero { padding: 72px 0 96px; }
.hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(60px, 9vw, 128px); letter-spacing: -0.055em; line-height: .9; margin-bottom: 28px; }
.hero .dot { color: var(--ly-point); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 28px; }
.ticks { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--ly-stone); }
.ticks li { display: flex; align-items: center; gap: 8px; }
.ticks li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ly-point); }

.hero-art { position: relative; aspect-ratio: 1 / .92; }
.card {
  position: absolute; width: 66%; aspect-ratio: 1.586; border-radius: 20px;
  padding: 22px 24px; display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 30px 60px rgba(23,23,26,.18);
}
.c-top { display: flex; justify-content: space-between; align-items: flex-start; }
.shop { font: 600 22px/1.1 var(--ly-font); letter-spacing: -0.02em; }
.shop small { display: block; font: 400 13px var(--ly-font); opacity: .6; letter-spacing: 0; margin-top: 4px; }
.pts { font: 600 44px/1 var(--ly-font); letter-spacing: -0.045em; }
.pts small { font: 500 13px var(--ly-font); letter-spacing: 0; opacity: .6; margin-left: 6px; }
.by { display: flex; align-items: center; gap: 6px; font: 500 11px var(--ly-mono); opacity: .7; }
.by .mark { width: 15px; height: 15px; color: currentColor; }
.flower { width: 30px; height: 30px; }
.c1 { background: var(--ly-white); left: 0; top: 4%; transform: rotate(-6deg); }
.c2 { background: var(--ly-ink); color: var(--ly-paper); right: 0; top: 34%; transform: rotate(4deg); }
.push {
  position: absolute; left: 8%; bottom: 0; width: min(360px, 84%);
  display: flex; gap: 12px; align-items: center;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-radius: 18px; padding: 14px 16px;
  box-shadow: var(--ly-shadow); font-size: 14px; line-height: 1.35;
}
.push b { display: block; font-weight: 600; }
.icon { width: 44px; height: 44px; flex: none; border-radius: 11px; background: var(--ly-ink); display: grid; place-items: center; }
.icon .mark { width: 32px; height: 32px; color: var(--ly-paper); }

@media (prefers-reduced-motion: no-preference) {
  .card, .push { animation: rise .8s cubic-bezier(.2,.8,.2,1) both; }
  .c2 { animation-delay: .08s; }
  .push { animation-delay: .5s; }
  @keyframes rise { from { opacity: 0; translate: 0 24px; } }
}

@media (max-width: 900px) {
  .hero { padding: 40px 0 64px; }
  .hero-in { grid-template-columns: 1fr; }
  .hero-art { max-width: 520px; width: 100%; margin: 8px auto 0; }
}
@media (max-width: 480px) {
  .card { padding: 16px 18px; border-radius: 16px; width: 74%; }
  .shop { font-size: 18px; }
  .pts { font-size: 32px; }
}

/* Strip */
.strip { border-block: 1px solid var(--ly-border); overflow: hidden; }
.strip-in { display: flex; align-items: center; gap: 20px; padding-block: 22px; flex-wrap: wrap; justify-content: center;
  font: 500 15px var(--ly-font); color: #4A4740; }
.strip i { width: 5px; height: 5px; border-radius: 50%; background: var(--ly-sand); }

/* Sections */
.sec { padding: 112px 0; }
section[id] { scroll-margin-top: 68px; }
@media (max-width: 680px) { .sec { padding: 72px 0; } h2 { margin-bottom: 28px; } }
.sec-ink { background: var(--ly-ink); color: var(--ly-paper); }
.sec-ink .eyebrow { color: #8F897F; }
.sec-point { background: var(--ly-point); }
.sec-point .lead { color: #3A2018; }

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { background: var(--ly-white); border-radius: var(--ly-radius-lg); padding: 28px; display: flex; flex-direction: column; }
.steps p { color: #4A4740; font-size: 15px; }
.num { font: 500 12px var(--ly-mono); color: var(--ly-point); margin-bottom: 40px; }
.demo { margin-top: auto; padding-top: 28px; display: flex; gap: 8px; flex-wrap: wrap; }
.field { font: 500 15px var(--ly-mono); }
.steps li:first-child .demo { padding: 12px 14px; margin-top: auto; border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--ly-ink); }
.steps li:first-child p { margin-bottom: 28px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } .num { margin-bottom: 20px; } }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { background: #222227; border-radius: var(--ly-radius-lg); padding: 28px; min-height: 240px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.tile p { color: #A39D93; font-size: 15px; max-width: 420px; }
.tile .chip { margin-top: auto; align-self: flex-start; }
.t-wide { grid-column: span 2; }
.mini-cards { display: flex; gap: 10px; margin-top: auto; padding-top: 28px; }
.mc { flex: 1; aspect-ratio: 1.586; max-width: 150px; border-radius: 12px; padding: 12px; font: 600 15px var(--ly-font); letter-spacing: -0.02em; }
.mc1 { background: var(--ly-paper); color: var(--ly-ink); }
.mc2 { background: #0B0B0D; color: var(--ly-paper); box-shadow: inset 0 0 0 1px rgba(244,239,230,.12); }
.mc3 { background: var(--ly-moss); color: var(--ly-paper); }
.levels { margin-top: auto; padding-top: 24px; display: grid; gap: 8px; }
.levels i { display: block; height: 8px; border-radius: 8px; background: rgba(244,239,230,.08); position: relative; overflow: hidden; }
.levels i::after { content: ""; position: absolute; inset: 0; width: var(--w); background: var(--ly-point); border-radius: inherit; }
.levels i:nth-child(2)::after { background: var(--ly-paper); }
.levels i:nth-child(3)::after { background: #8F897F; }
.t-halftone { min-height: 300px; padding: 0; }
.t-halftone canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.t-over { position: relative; margin-top: auto; padding: 28px; background: linear-gradient(to top, #222227 55%, rgba(34,34,39,0)); }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr; } .t-wide { grid-column: auto; } .tile { min-height: 0; } }

/* Split + browser */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.split h2 { margin-bottom: 24px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.browser { background: var(--ly-white); border-radius: 16px; box-shadow: 0 30px 60px rgba(23,23,26,.12); overflow: hidden; }
.chrome { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-bottom: 1px solid var(--ly-border); background: #FBF9F5; }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #DDD6CA; }
.url { flex: 0 1 300px; display: flex; align-items: center; gap: 8px; background: var(--ly-paper); border-radius: var(--ly-radius-pill);
  padding: 6px 14px; font: 500 12px/1 var(--ly-mono); min-width: 0; }
.url .mark { width: 14px; height: 14px; }
.url span { color: var(--ly-stone); }
.app { padding: 24px 28px 28px; }
.app-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.app-top b { font-weight: 600; font-size: 15px; }
.big { font: 600 64px/1 var(--ly-font); letter-spacing: -0.045em; margin: 24px 0; }
.big small { font: 500 14px var(--ly-font); letter-spacing: 0; color: var(--ly-stone); margin-left: 8px; }
.feed { list-style: none; display: grid; gap: 2px; }
.feed li { display: flex; align-items: center; gap: 12px; font-size: 15px; padding: 10px 0; border-top: 1px solid var(--ly-border); }
.feed .chip { margin-left: auto; }
.ava { width: 30px; height: 30px; border-radius: 50%; background: var(--ly-sand); display: grid; place-items: center; font-weight: 600; font-size: 12px; flex: none; }
@media (max-width: 480px) { .app { padding: 18px; } .big { font-size: 46px; } .app-top b { font-size: 14px; } }

/* Band */
.band { background: var(--ly-moss); color: var(--ly-paper); }
.band-in { padding-block: 88px; display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.band p { font: 600 clamp(30px, 4.4vw, 54px)/1.05 var(--ly-font); letter-spacing: -0.04em; }
.band .mark { width: clamp(80px, 12vw, 150px); height: auto; aspect-ratio: 1; color: var(--ly-paper); }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; gap: 0; } }
.faq details { border-top: 1px solid rgba(23,23,26,.14); }
.faq details:last-child { border-bottom: 1px solid rgba(23,23,26,.14); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 0; font: 600 19px/1.3 var(--ly-font); letter-spacing: -0.015em;
  display: flex; justify-content: space-between; gap: 20px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 12px; height: 12px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ly-ink); transition: background-color .2s, box-shadow .2s; }
.faq details[open] summary::after { background: var(--ly-point); box-shadow: none; }
.faq p { padding: 0 0 24px; color: #4A4740; max-width: 620px; }

/* Form */
.form { background: var(--ly-paper); border-radius: var(--ly-radius-lg); padding: 28px; display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font: 500 13px var(--ly-font); color: #4A4740; }
.form input, .form select {
  height: 52px; border-radius: 12px; border: 1.5px solid rgba(23,23,26,.16); background: var(--ly-white);
  padding: 0 14px; font: 400 16px var(--ly-font); color: var(--ly-ink); width: 100%;
  transition: border-color .15s;
}
.form input:focus, .form select:focus { border-color: var(--ly-ink); outline: none; }
.form input[aria-invalid="true"] { border-color: #C2361A; }
.form .btn { margin-top: 6px; width: 100%; }
.form-note { font-size: 12px; color: var(--ly-stone); }
.form-ok { font-weight: 600; color: var(--ly-moss); }

/* Footer */
.foot { background: var(--ly-ink); color: #A39D93; font-size: 14px; }
.foot-in { padding-block: 36px max(36px, env(safe-area-inset-bottom)); display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.foot .logo { color: var(--ly-paper); font-size: 22px; }
.foot .mark { width: 24px; height: 24px; color: var(--ly-paper); }
