/* AVAKA.DO landing (light, editorial). Old version: index-old.html + styles.css/app.js. */
:root {
  --paper: #f3efe7;
  --paper-2: #ebe5d9;
  --card: #fbf9f4;
  --ink: #191c19;
  --ink-2: #4a4f49;
  --muted: #7c8178;
  --line: #ddd6c8;
  --green: #6ea52c;      /* the dot from the logo */
  --green-ink: #3f6a12;
  --teal: #2f7f72;
  --night: #172019;
  --night-2: #202b22;
  --radius: 18px;
  --font: "Onest", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.025em; line-height: 1.08; }
p { margin: 0; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; border: 1.5px solid transparent;
  font: 600 16px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .1s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #000; }
.btn-line { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-sm { padding: 10px 16px; font-size: 15px; }
.btn-lg { padding: 16px 24px; }
.btn:disabled { opacity: .5; cursor: default; }
.link { text-decoration: none; font-weight: 500; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }

.overline {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--ink-2);
}
.overline.light { color: #b9c4b6; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); flex: none; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(243, 239, 231, .86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-row { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand img { height: 22px; width: auto; }
.nav-links { display: flex; gap: 28px; margin-left: 12px; }
.nav-links a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 20px; font-size: 15px; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 96px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.12fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 4.6vw, 62px); margin: 22px 0 24px; font-weight: 800; letter-spacing: -0.035em; }
.lead { font-size: 19px; color: var(--ink-2); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 28px 0 0; font-size: 15px; color: var(--muted); }
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts li::before { content: ""; width: 14px; height: 2px; background: var(--green); border-radius: 2px; }

.screen {
  margin: 0; border-radius: 28px; overflow: hidden; background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 30px 60px -28px rgba(40, 36, 24, .35);
}
.screen img { width: 100%; height: auto; }
.screen-lg { -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); box-shadow: none; }
.hero-shots {
  position: relative; height: 620px; border-radius: 32px; overflow: hidden;
  background: #2c3a24 url("assets/hero/hero-bg.jpg") center / cover no-repeat;
}
.hero-shots::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,28,18,0) 40%, rgba(20,28,18,.35)); pointer-events: none; }
.hero-shots .screen { position: absolute; width: 270px; border: none; box-shadow: 0 30px 70px -20px rgba(0,0,0,.6); }
.s-front { left: 44px; top: 70px; z-index: 2; }
.s-back { right: 36px; top: 150px; }

/* ---------- sections ---------- */
.section { padding: 104px 0; }
.head { max-width: 680px; margin-bottom: 52px; }
.head h2 { font-size: clamp(32px, 4vw, 48px); }
.head p { margin-top: 18px; font-size: 18px; color: var(--ink-2); }
.head a { color: var(--green-ink); }

/* chain */
.chain { border-top: 1px solid var(--line); }
.chain-photo {
  height: 380px; border-radius: 28px 28px 0 0;
  background: #1f3320 url("assets/hero/band-solution.jpg") center 42% / cover no-repeat;
}
.chain-photo + .chain-row li { border-top: none; }
.chain-photo + .chain-row li:first-child { border-radius: 0 0 0 var(--radius); }
.chain-photo + .chain-row li:last-child { border-radius: 0 0 var(--radius) 0; }
.chain-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: c; }
.chain-row li {
  position: relative; padding: 28px 32px 30px; background: var(--card);
  border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px;
}
.chain-row li + li { border-left: none; }
.chain-row li:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.chain-row li:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.chain-row li + li::before {
  content: ""; position: absolute; left: -9px; top: 50%; width: 16px; height: 16px;
  transform: translateY(-50%) rotate(45deg); background: var(--card);
  border-top: 1px solid var(--line); border-right: 1px solid var(--line);
}
.chain-label { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.chain-row b { font-size: 22px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
.chain-meta { font-size: 15px; color: var(--ink-2); }
.chain-row li.is-today { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chain-row li.is-today::before { background: var(--ink); border-color: var(--ink); }
.chain-row li.is-today .chain-label { color: var(--green); }
.chain-row li.is-today .chain-meta { color: #c9cec4; }

/* inside — tabs */
.inside { background: var(--paper-2); }
.tabs-grid { display: grid; grid-template-columns: 1fr 380px; gap: 72px; align-items: start; }
.tab-list { display: flex; flex-direction: column; }
.tab {
  text-align: left; background: none; border: none; border-top: 1px solid var(--line);
  padding: 22px 0 22px 22px; cursor: pointer; font: inherit; color: var(--ink);
  display: flex; flex-direction: column; gap: 6px; position: relative;
}
.tab:last-child { border-bottom: 1px solid var(--line); }
.tab::before {
  content: ""; position: absolute; left: 0; top: 33px; width: 9px; height: 9px; border-radius: 50%;
  border: 1.5px solid var(--muted); transition: background .2s, border-color .2s;
}
.tab b { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink-2); transition: color .2s; }
.tab span { font-size: 16px; color: var(--ink-2); max-height: 0; overflow: hidden; opacity: 0; transition: max-height .3s ease, opacity .25s; }
.tab:hover b { color: var(--ink); }
.tab.is-active b { color: var(--ink); }
.tab.is-active::before { background: var(--green); border-color: var(--green); }
.tab.is-active span { max-height: 120px; opacity: 1; }
.tab:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.tab-stage { position: sticky; top: 100px; }
.screen-lg { aspect-ratio: 748 / 1354; }
.screen-lg img { height: 100%; object-fit: cover; object-position: top; transition: opacity .22s; }
.screen-lg img.fading { opacity: 0; }

/* ava — the one dark band */
.ava {
  color: #eef1ea;
  background: linear-gradient(rgba(23,32,25,.9), rgba(23,32,25,.96)), url("assets/hero/band-final.jpg") center / cover no-repeat, var(--night);
}
.chat { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); background: rgba(32,43,34,.88) !important; }
.ava-grid { display: grid; grid-template-columns: 1fr 440px; gap: 72px; align-items: center; }
.ava h2 { font-size: clamp(30px, 3.6vw, 44px); margin: 20px 0 32px; }
.ava-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.ava-list li { padding-left: 26px; position: relative; color: #b9c4b6; font-size: 17px; }
.ava-list li::before { content: ""; position: absolute; left: 0; top: 11px; width: 12px; height: 2px; background: var(--green); }
.ava-list b { color: #eef1ea; font-weight: 600; }
.ava-note { margin-top: 32px; font-size: 15px; color: #8b9788; }

.chat {
  background: var(--night-2); border: 1px solid #2f3b31; border-radius: 22px;
  display: flex; flex-direction: column; height: 560px; overflow: hidden;
}
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid #2f3b31; }
.chat-head b { display: block; font-size: 16px; }
.chat-head span { font-size: 13px; color: #8b9788; }
.chat-av {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 50% 50%, var(--green) 0 5px, transparent 6px), #2c3a2e;
  border: 1.5px solid #3e4f40;
}
.chat-log { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; scrollbar-color: #3a473b transparent; }
.msg { max-width: 86%; padding: 11px 15px; border-radius: 16px; font-size: 15px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.msg.bot { background: #2b372d; color: #e6ebe2; border-bottom-left-radius: 5px; align-self: flex-start; }
.msg.user { background: #eef1ea; color: var(--ink); border-bottom-right-radius: 5px; align-self: flex-end; }
.msg.typing { color: #8b9788; letter-spacing: 3px; }
.chat-hints { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 12px; }
.chat-hints button {
  background: none; border: 1px solid #3e4f40; color: #cfd8cb; border-radius: 999px;
  padding: 7px 13px; font: 500 14px var(--font); cursor: pointer;
}
.chat-hints button:hover { border-color: var(--green); color: #fff; }
.chat-form { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid #2f3b31; }
.chat-form input {
  flex: 1; min-width: 0; background: #172019; border: 1px solid #34413a; color: #eef1ea;
  border-radius: 12px; padding: 12px 14px; font: 400 15px var(--font); outline: none;
}
.chat-form input:focus { border-color: var(--green); }
.chat-form button {
  flex: none; width: 46px; border-radius: 12px; border: none; cursor: pointer;
  background: var(--green); color: #0f1a06; display: grid; place-items: center;
}
.chat-form button:disabled { opacity: .5; cursor: default; }
.chat-support { padding: 0 20px 14px; font-size: 13px; color: #8b9788; }
.chat-support a { color: #cfd8cb; }

/* details */
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; border-top: 1px solid var(--line); }
.detail-grid > div { padding: 28px 28px 32px 0; border-bottom: 1px solid var(--line); }
.detail-grid > div:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.detail-grid dt { font-size: 18px; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.01em; }
.detail-grid dd { margin: 0; font-size: 16px; color: var(--ink-2); }

/* pricing */
.pricing { background: var(--paper-2); }
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 900px; }
.price {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: 32px; display: flex; flex-direction: column;
}
.price-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.price h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.price-num { text-align: right; }
.price-num b { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; }
.price-num span { display: block; font-size: 14px; color: var(--muted); }
.price ul { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 11px; font-size: 16px; }
.price li { padding-left: 24px; position: relative; color: var(--ink-2); }
.price li::before {
  content: ""; position: absolute; left: 2px; top: 7px; width: 10px; height: 6px;
  border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg);
}
.price .btn { margin-top: auto; }
.price-pro { border: 1.5px solid var(--ink); }
.periods { width: 100%; border-collapse: collapse; margin-bottom: 26px; font-size: 15px; }
.periods td { padding: 10px 0; border-top: 1px dashed var(--line); }
.periods td:last-child { text-align: right; font-weight: 600; }
.periods td span { font-weight: 400; color: var(--green-ink); margin-left: 6px; }
.periods tr:last-child td { border-bottom: 1px dashed var(--line); }
.fine { margin-top: 22px; font-size: 14px; color: var(--muted); }

/* faq */
.faq-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 72px; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-size: 18px; font-weight: 600; letter-spacing: -0.01em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.faq-list details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-list details p { padding: 0 40px 24px 0; color: var(--ink-2); font-size: 16px; }

/* final */
.final {
  padding: 160px 0 64px; color: #fff;
  background: linear-gradient(180deg, rgba(15,20,26,0) 20%, rgba(15,20,26,.7)), url("assets/hero/band-why.jpg") center 40% / cover no-repeat, #2a3340;
}
.final-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.final h2 { font-size: clamp(30px, 4vw, 52px); max-width: 640px; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.final .btn-dark { background: #fff; color: var(--ink); }
.final .btn-dark:hover { background: var(--paper); }

/* footer */
.footer { background: var(--paper-2); padding: 40px 0; font-size: 14px; }
.footer-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 28px; flex-wrap: wrap; }
.footer-logo { height: 18px; width: auto; margin-bottom: 12px; }
.footer-copy { color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.footer-links a { text-decoration: none; color: var(--ink-2); }
.footer-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(25, 28, 25, .45); display: grid; place-items: center; padding: 16px; }
.modal-card { position: relative; width: 100%; max-width: 420px; background: var(--card); border-radius: 22px; padding: 30px; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.modal-card h3 { font-size: 24px; margin-bottom: 10px; }
.modal-card .muted { font-size: 15px; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: none; background: var(--paper-2); cursor: pointer; font-size: 14px; color: var(--ink-2); }
.id-form { display: flex; gap: 8px; margin-top: 20px; }
.id-input {
  flex: 1; min-width: 0; border: 1.5px solid var(--line); background: #fff; border-radius: 12px;
  padding: 13px 14px; font: 600 18px var(--font); letter-spacing: .18em; text-transform: uppercase; outline: none;
}
.id-input:focus { border-color: var(--ink); }
.id-status { min-height: 22px; margin-top: 10px; font-size: 14px; }
.id-status.err { color: #b3402b; }
.id-status.ok { color: var(--green-ink); }
.modal-alt { margin-top: 14px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 8px; justify-items: start; font-size: 15px; }

/* cookie */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40; max-width: 720px; margin: 0 auto;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px;
  display: flex; align-items: center; gap: 18px; box-shadow: 0 20px 50px -20px rgba(40,36,24,.35); font-size: 14px; color: var(--ink-2);
}
.cookie a { color: var(--ink); }
.cookie-actions { display: flex; gap: 8px; flex: none; }

/* reveal */
@media (prefers-reduced-motion: no-preference) {
  .rv { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
  .rv.in { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .nav-links { display: none; }
  .hero-grid, .tabs-grid, .ava-grid, .faq-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 64px; }
  .hero-shots { height: 500px; max-width: 560px; }
  .hero-shots .screen { width: 230px; }
  .s-front { left: 36px; }
  .s-back { right: 36px; top: 120px; }
  .tabs-grid { gap: 40px; }
  .tab-stage { position: static; max-width: 360px; }
  .ava-grid { gap: 48px; }
  .faq-grid { gap: 8px; }
  .detail-grid { grid-template-columns: 1fr 1fr; }
  .detail-grid > div, .detail-grid > div:not(:nth-child(3n+1)) { padding: 24px 24px 26px 0; border-left: none; }
  .detail-grid > div:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--line); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav-row { gap: 12px; height: 60px; }
  .brand img { height: 18px; }
  .nav-actions { gap: 14px; font-size: 14px; }
  .section { padding: 72px 0; }
  .head { margin-bottom: 36px; }
  .hero h1 { margin: 18px 0 18px; }
  .lead { font-size: 17px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-shots { height: 420px; margin: 0 auto; width: 100%; border-radius: 24px; }
  .hero-shots .screen { width: 52%; border-radius: 18px; }
  .s-front { left: 18px; top: 40px; }
  .s-back { right: 18px; top: 100px; }
  .chain-photo { height: 220px; border-radius: 22px 22px 0 0; }
  .chain-photo + .chain-row li:first-child { border-radius: 0; }
  .final { padding: 120px 0 48px; }
  .chain-row { grid-template-columns: 1fr; }
  .chain-row li + li { border-left: 1px solid var(--line); border-top: none; }
  .chain-row li:first-child { border-radius: var(--radius) var(--radius) 0 0; }
  .chain-row li:last-child { border-radius: 0 0 var(--radius) var(--radius); }
  .chain-row li + li::before { left: 50%; top: -9px; transform: translateX(-50%) rotate(135deg); }
  .chain-row li { padding: 22px 22px 24px; }
  .tab-stage { margin: 0 auto; width: 78%; }
  .chat { height: 520px; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-grid > div, .detail-grid > div:nth-child(2n) { padding: 22px 0; border-left: none; }
  .price-grid { grid-template-columns: 1fr; }
  .price { padding: 24px; }
  .final-row .btn { width: 100%; }
  .cookie { flex-direction: column; align-items: stretch; }
  .cookie-actions .btn { flex: 1; }
}
@media (max-width: 380px) {
  #open-login { display: none; }
}
