/* TIWY Lab — thin vertical /bots/ (cyan, conversion-first) */
:root {
  --bg: #07090d;
  --card: rgba(18, 24, 32, 0.92);
  --line: rgba(255, 255, 255, 0.09);
  --line2: rgba(255, 255, 255, 0.16);
  --text: #f4f6fa;
  --muted: #8b9bb0;
  --accent: #3ec4ff;
  --accent2: #34d399;
  --warn: #fbbf24;
  --font: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --radius: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  font-size: 15.5px;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 40% at 50% -10%, rgba(62,196,255,.12), transparent 55%),
    radial-gradient(ellipse 40% 30% at 100% 50%, rgba(52,211,153,.05), transparent 50%);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: min(1000px, calc(100% - 40px)); margin: 0 auto; position: relative; z-index: 1; }
.center { text-align: center; }
.narrow { max-width: 520px; margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }
.tiny { font-size: 13px; }
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.top {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 16px;
  padding: calc(10px + var(--safe-t)) 20px 10px;
  background: rgba(7, 9, 13, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.logo {
  font-weight: 700; font-size: 15px; color: var(--text); text-decoration: none !important;
  letter-spacing: -0.02em;
}
.logo em { font-style: normal; color: var(--accent); font-weight: 600; }
.top-nav { display: flex; gap: 14px; margin-left: auto; margin-right: 8px; }
.top-nav a { color: var(--muted); font-size: 13px; text-decoration: none; }
.top-nav a:hover { color: var(--text); }
@media (max-width: 640px) {
  .top-nav { display: none; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px; border-radius: 999px;
  border: 1px solid var(--line2);
  background: rgba(255,255,255,0.06);
  color: var(--text); font: inherit; font-weight: 510;
  cursor: pointer; text-decoration: none !important;
}
.btn:hover { background: rgba(255,255,255,0.1); }
.btn-primary {
  background: linear-gradient(180deg, #5ad0ff, #2a9de0);
  border-color: rgba(255,255,255,0.2);
  color: #041018; font-weight: 650;
}
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.btn-row.center { justify-content: center; }

.sec { padding: 64px 0; position: relative; z-index: 1; }
.sec.alt { background: rgba(255,255,255,0.015); }
.sec.hero { padding: 48px 0 72px; min-height: calc(88dvh - 60px); display: flex; align-items: center; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 280px; margin: 0 auto 8px; }
}
.hero-visual {
  position: relative;
  height: 420px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.phone {
  width: 210px;
  /* iPhone-like continuous corner; content already has status bar + island */
  border-radius: 36px;
  border: 2.5px solid rgba(255,255,255,0.14);
  background: #000;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.6),
    0 24px 60px rgba(0,0,0,0.55),
    inset 0 0 0 1px rgba(255,255,255,0.06);
  position: relative;
  z-index: 2;
  line-height: 0;
}
.phone img,
.phone video,
.phone-vid {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
  background: #000;
  /* no gap under status bar / island */
  margin: 0;
  padding: 0;
  border: 0;
}
.phone-video {
  /* match phone screen recordings ~9:19.5 */
  width: 210px;
  max-height: 430px;
}
.phone-video .phone-vid {
  width: 100%;
  height: 100%;
  max-height: 430px;
  /* contain = no crop of island / TG header icon; cover was clipping top chrome */
  object-fit: contain;
  object-position: top center;
  aspect-ratio: 9 / 19.5;
}
/* soft inner rim so video edges meet bezel cleanly */
.phone-video::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
  pointer-events: none;
  z-index: 2;
}
/* removed fake .phone-notch — double-island with real recording */
.phone-back {
  position: absolute;
  right: 6%;
  bottom: 20px;
  width: 168px;
  transform: rotate(7deg);
  z-index: 1;
  opacity: 0.95;
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
}
.phone-back img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: top center;
}
@media (max-width: 900px) {
  .phone-back { display: none; }
  .hero-visual { height: auto; justify-content: center; }
  .phone,
  .phone-video { width: 190px; max-height: 400px; }
  .phone-video .phone-vid { max-height: 400px; }
}

.shots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 900px) {
  .shots { grid-template-columns: repeat(2, 1fr); }
}
.shot {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.shot img { width: 100%; height: auto; display: block; }
.shot figcaption {
  padding: 8px 10px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.sticky-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0; z-index: 50;
  gap: 8px;
  padding: 10px 14px calc(10px + var(--safe-b));
  background: rgba(7,9,13,0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  justify-content: center;
}
.sticky-cta .btn { flex: 1; max-width: 200px; padding: 11px 12px; font-size: 13.5px; }
@media (max-width: 767px) {
  .sticky-cta { display: flex; }
  body { padding-bottom: 72px; }
}
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted); font-size: 12.5px; text-transform: uppercase;
  letter-spacing: 0.06em; margin: 0 0 12px; font-weight: 500;
}
.kicker i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 12px var(--accent);
  display: inline-block;
}
h1 {
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.12; letter-spacing: -0.03em;
  margin: 0 0 16px; font-weight: 700; max-width: 18ch;
}
h2 {
  font-size: clamp(22px, 3.5vw, 30px);
  letter-spacing: -0.03em; margin: 0 0 12px; font-weight: 700;
}
h3 { margin: 0 0 8px; font-size: 16px; font-weight: 600; }
.grad {
  background: linear-gradient(120deg, #8ae0ff, #3ec4ff 40%, #34d399);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { color: var(--muted); font-size: 16.5px; margin: 0 0 8px; max-width: 52ch; }
.hero-meta {
  list-style: none; padding: 0; margin: 28px 0 0;
  display: flex; flex-wrap: wrap; gap: 18px;
  color: var(--muted); font-size: 14px;
}
.hero-meta b { color: var(--text); }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px; margin-top: 22px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px; margin-top: 22px;
}
@media (max-width: 800px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
}
.card.highlight { border-color: rgba(62,196,255,0.28); background: rgba(62,196,255,0.06); }
.ico { font-size: 22px; margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }

.split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px; margin-top: 20px; align-items: start;
}
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }
.checklist {
  margin: 0; padding: 0; list-style: none;
}
.checklist li {
  padding: 10px 0 10px 28px;
  border-bottom: 1px solid var(--line);
  position: relative; color: var(--text); font-size: 14.5px;
}
.checklist li::before {
  content: "✓"; position: absolute; left: 0; color: var(--accent2); font-weight: 700;
}

.packs .pack {
  display: flex; flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
  color: inherit; text-decoration: none !important;
  transition: border-color .15s, transform .15s;
}
.packs .pack:hover {
  border-color: rgba(62,196,255,0.4);
  transform: translateY(-2px);
}
.packs .pack.featured {
  border-color: rgba(62,196,255,0.45);
  box-shadow: 0 0 0 1px rgba(62,196,255,0.12), 0 12px 40px rgba(0,0,0,0.35);
}
.badge {
  display: inline-block; align-self: flex-start;
  font-size: 11px; padding: 3px 8px; border-radius: 999px;
  border: 1px solid var(--line2); color: var(--muted); margin-bottom: 10px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.badge.ok { color: var(--accent2); border-color: rgba(52,211,153,.35); background: rgba(52,211,153,.08); }
.pack .price {
  font-size: 28px; font-weight: 700; letter-spacing: -0.03em; margin: 6px 0 2px;
}
.pack .term { color: var(--muted); font-size: 13px; margin: 0 0 12px; }
.pack ul {
  margin: 0 0 16px; padding: 0 0 0 18px; color: var(--muted); font-size: 13.5px;
  flex: 1;
}
.pack ul li { margin-bottom: 4px; }
.pack-cta {
  color: var(--accent); font-weight: 600; font-size: 14px; margin-top: auto;
}

.steps {
  margin: 20px 0 0; padding: 0; list-style: none; counter-reset: s;
}
.steps li {
  counter-increment: s;
  padding: 14px 14px 14px 52px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 10px;
  background: var(--card);
  position: relative;
  font-size: 14.5px; color: var(--muted);
}
.steps li b { color: var(--text); }
.steps li::before {
  content: counter(s);
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(62,196,255,0.15); color: var(--accent);
  display: grid; place-items: center; font-weight: 700; font-size: 13px;
}

.mock {
  background: #0a0e14; border: 1px solid var(--line);
  border-radius: 10px; padding: 12px; color: #b8ecff; margin: 8px 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
  white-space: normal;
}
.wrap, .card, .lead, .foot, .foot-row {
  min-width: 0;
  max-width: 100%;
}
.foot a {
  overflow-wrap: anywhere;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  margin-bottom: 8px;
  padding: 4px 14px;
}
.faq summary {
  cursor: pointer; font-weight: 600; padding: 12px 0; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }

.cta-final {
  padding: 72px 0;
  background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(62,196,255,0.1), transparent 60%);
}
.cta-final h2 { max-width: none; }

.foot {
  border-top: 1px solid var(--line);
  padding: 18px 0 calc(18px + var(--safe-b));
  position: relative; z-index: 1;
}
.foot-row {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--muted);
  align-items: flex-start;
}
.foot-row > * { min-width: 0; flex: 1 1 auto; }

/* never let long t.me URLs blow the layout */
a[href*="t.me/"] {
  overflow-wrap: anywhere;
  word-break: break-word;
}
