/* TAK Sync — website styles (v2: flat, modern, no glow/shadow chrome) */

*, *::before, *::after { box-sizing: border-box; }

/* Disable text selection across the site (per UX request). Inputs remain
   editable / focus-selectable so people can still type the OTP. */
html, body, .container, .tak-header, .hero, .features, .feature, .steps, .step,
.flow-card, .footer, .tak-modal, .tak-modal-panel, .prose, .pair-progress,
.secure-loader, .btn, .hub-cards, .hub-card, .cta-banner, .section-head, .hero-trust {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
input, textarea, [contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
}

:root {
  --bg: #ffffff;
  --bg-soft: #F4F6FB;
  --bg-muted: #EBEFF7;
  --border: #DDE3EF;
  --border-strong: #C2CADC;
  --text: #0E1638;
  --text-muted: #3A4470;
  --text-soft: #5A6488;
  --title: #060912;
  --brand: #2E34BA;
  --brand-dark: #1A2246;
  --brand-darker: #0F1638;
  --accent: #5495FC;
  --accent-soft: #EEF3FF;
  --accent-lime: #A2FF7B;
  --success: #10B981;
  --danger: #EF4444;
  --radius: 16px;
  --radius-lg: 26px;
}

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
}

a { color: var(--brand); text-decoration: none; transition: color .12s ease; }
a:hover { color: var(--brand-dark); text-decoration: none; }

img { display: block; max-width: 100%; }

.container { max-width: 1100px; margin: 0 auto; padding: 20px 22px 80px; }
.container-wide { max-width: min(1640px, 94vw); padding: 22px 40px 100px; }
@media (max-width: 760px) { .container-wide { padding: 18px 18px 72px; } }

/* ---------- Splash screen (home) ---------- */
.tak-splash {
  position: fixed; inset: 0; z-index: 9999;
  background: #ffffff;
  display: flex; align-items: center; justify-content: center;
  animation: takSplashOut .6s ease forwards;
  animation-delay: 2s;
}
.tak-splash__logo {
  position: relative;
  width: 320px; max-width: 74vw;
  display: flex; justify-content: center;
}
.tak-splash__base, .tak-splash__fill {
  width: 100%; height: auto; object-fit: contain; display: block;
}
.tak-splash__base { opacity: 0.10; }
.tak-splash__fill {
  position: absolute; inset: 0;
  clip-path: inset(100% 0 0 0);
  animation: takSplashFill 1.1s ease-in-out forwards .15s;
}
@keyframes takSplashFill { to { clip-path: inset(0 0 0 0); } }
@keyframes takSplashOut { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) {
  .tak-splash { animation-delay: .4s; }
  .tak-splash__fill { animation: none; clip-path: inset(0 0 0 0); }
}

/* ---------- Header ---------- */
.tak-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0 28px;
}
.tak-header .brand { display: flex; align-items: center; gap: 10px; }
.tak-header .brand img { height: 32px; width: auto; }
.tak-header .brand-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.tak-header .nav { display: flex; gap: 6px; align-items: center; }
.tak-header .nav a {
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background .12s ease, color .12s ease;
}
.tak-header .nav a:hover { background: var(--bg-soft); color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(120% 130% at 100% 0%, rgba(46,52,186,0.30) 0%, rgba(46,52,186,0) 55%),
    radial-gradient(70% 90% at -5% 110%, rgba(162,255,123,0.30) 0%, rgba(162,255,123,0) 60%),
    radial-gradient(80% 110% at 50% 100%, rgba(84,149,252,0.20) 0%, rgba(84,149,252,0) 65%),
    linear-gradient(160deg, #141B3C 0%, #2E34BA 100%);
  border: 1px solid var(--brand-dark);
  border-radius: var(--radius-lg);
  padding: 60px 56px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
  color: #fff;
  animation: hero-rise .7s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes hero-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Animated soft glow blob that drifts behind the hero copy */
.hero-glow {
  position: absolute;
  z-index: 0;
  top: -30%; right: -10%;
  width: 60%; height: 140%;
  background: radial-gradient(circle at center, rgba(162,255,123,0.28), rgba(84,149,252,0.18) 45%, transparent 70%);
  filter: blur(20px);
  animation: hero-drift 12s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes hero-drift {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(-6%, 8%, 0) scale(1.12); }
}
/* Faint grid texture overlay */
.hero-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(120% 100% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 30%, transparent 80%);
  pointer-events: none;
}
.hero-copy, .hero-stage { position: relative; z-index: 1; }

.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  color: var(--accent-lime);
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
  backdrop-filter: blur(8px);
}
.hero .eyebrow svg { width: 13px; height: 13px; animation: spin 6s linear infinite; }

.hero h1 {
  font-size: 50px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.06;
  margin: 0 0 18px 0;
  color: #fff;
}
.hero h1 .accent {
  background: linear-gradient(90deg, var(--accent-lime), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}
.hero p.lede {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255,255,255,0.82);
  margin: 0 0 28px 0;
  max-width: 520px;
}
.hero p.lede strong { color: #fff; font-weight: 600; }

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-trust {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 18px;
  margin: 26px 0 0; padding: 0;
}
.hero-trust li {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,0.72);
}
.hero-trust .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-lime);
  box-shadow: 0 0 0 4px rgba(162,255,123,0.18);
}

/* Hero stage: phone (static) + clickable floating capability labels */
.hero-stage { display: flex; align-items: center; justify-content: center; }
.hero-orbit {
  position: absolute; inset: 0;
  z-index: 2; pointer-events: none;
}
.hero-orbit .chip {
  position: absolute;
  pointer-events: auto;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,0.95);
  color: var(--brand-dark);
  border: 1px solid rgba(255,255,255,0.7);
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 13px; font-weight: 700;
  box-shadow: 0 12px 30px rgba(10,16,40,0.28);
  backdrop-filter: blur(6px);
  transition: box-shadow .18s ease, color .15s ease;
}
.hero-orbit .chip svg { width: 15px; height: 15px; color: var(--brand); }
.hero-orbit .chip:hover {
  color: var(--brand);
  box-shadow: 0 16px 38px rgba(10,16,40,0.40);
  animation-play-state: paused;
}
.hero-orbit .chip-1 { top: 7%;   left: -16%;  animation: floatChipA 5s ease-in-out infinite; }
.hero-orbit .chip-2 { top: 45%;  right: -18%; animation: floatChipB 6s ease-in-out infinite; }
.hero-orbit .chip-3 { bottom: 9%; left: -12%;  animation: floatChipA 5.5s ease-in-out infinite .6s; }
@keyframes floatChipA { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes floatChipB { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

.phone-frame {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.phone-frame img {
  width: 240px; height: auto;
  border-radius: 30px;
  filter: drop-shadow(0 26px 60px rgba(0,0,0,0.45));
}

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding: 40px 28px; gap: 28px; text-align: left; }
  .hero h1 { font-size: 38px; }
  .hero-stage { min-height: 340px; }
  .phone-frame img { width: 200px; }
}
@media (max-width: 560px) {
  .hero { padding: 32px 22px; }
  .hero h1 { font-size: 30px; }
  .hero-orbit .chip { font-size: 11.5px; padding: 7px 11px; }
  .phone-frame img { width: 170px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--brand);
  color: #fff;
  border: 1px solid var(--brand);
  border-radius: 10px;
  padding: 9px 16px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .12s ease, border-color .12s ease, color .12s ease, transform .12s ease, box-shadow .2s ease;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn:active { background: var(--brand-darker); border-color: var(--brand-darker); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; }

/* Larger CTA variant used on the home page */
.btn-lg { padding: 13px 22px; font-size: 15px; border-radius: 12px; }
.btn-lg svg { width: 18px; height: 18px; }

.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }

.btn-ghost { background: #fff; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--bg-muted); color: var(--text); border-color: var(--border-strong); }

.btn-block { width: 100%; }

/* On the dark hero background, recolor the CTA so it pops against the
   deep-blue gradient — lime-green-tinted glass with white text. */
.hero .btn-primary {
  background: linear-gradient(135deg, var(--accent-lime) 0%, var(--accent) 100%);
  border-color: transparent;
  color: var(--brand-darker);
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(84,149,252,0.35);
}
.hero .btn-primary:hover {
  background: linear-gradient(135deg, #B7FF94 0%, #6FA9FF 100%);
  border-color: transparent;
  color: var(--brand-darker);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(84,149,252,0.45);
}
.hero .btn-ghost {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.32);
  color: #fff;
  backdrop-filter: blur(8px);
}
.hero .btn-ghost:hover {
  background: rgba(255,255,255,0.18);
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- Section headings ---------- */
.section-head { text-align: center; margin: 64px 0 26px; }
.section-head .section-title { margin: 0 0 6px; }
.section-head .section-sub {
  margin: 0 auto;
  max-width: 560px;
  color: var(--text-soft);
  font-size: 15px;
}
.section-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 36px 0 14px;
  color: var(--title);
}

/* ---------- Hub choice cards ---------- */
.hub-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.hub-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  padding: 32px 32px 28px;
  color: #fff;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .22s cubic-bezier(.2,.7,.2,1), box-shadow .22s ease;
}
.hub-card:hover { transform: translateY(-6px); }
.hub-card--blue {
  background:
    radial-gradient(90% 80% at 100% 0%, rgba(84,149,252,0.45) 0%, transparent 60%),
    linear-gradient(150deg, #1A2246 0%, #2E34BA 100%);
  box-shadow: 0 18px 44px rgba(46,52,186,0.30);
}
.hub-card--blue:hover { box-shadow: 0 26px 60px rgba(46,52,186,0.42); }
.hub-card--lime {
  background:
    radial-gradient(90% 80% at 0% 0%, rgba(162,255,123,0.35) 0%, transparent 55%),
    linear-gradient(150deg, #0F3D2E 0%, #176B4A 100%);
  box-shadow: 0 18px 44px rgba(23,107,74,0.28);
}
.hub-card--lime:hover { box-shadow: 0 26px 60px rgba(23,107,74,0.40); }

/* Diagonal moving shine on hover */
.hub-card__shine {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.18) 48%, transparent 60%);
  transform: translateX(-120%);
  transition: transform .7s ease;
  pointer-events: none;
}
.hub-card:hover .hub-card__shine { transform: translateX(120%); }
.hub-card > *:not(.hub-card__shine) { position: relative; z-index: 1; }

.hub-card__top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.hub-card__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  backdrop-filter: blur(6px);
}
.hub-card__icon svg { width: 26px; height: 26px; }
.hub-card__tag {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 5px 11px; border-radius: 999px;
}
.hub-card h3 {
  margin: 0 0 8px;
  font-size: 24px; font-weight: 700;
  letter-spacing: -0.02em;
}
.hub-card > p {
  margin: 0 0 18px;
  color: rgba(255,255,255,0.80);
  font-size: 14.5px; line-height: 1.6;
}
.hub-card__list {
  list-style: none; margin: 0 0 22px; padding: 0;
  display: grid; gap: 9px;
}
.hub-card__list li {
  display: flex; align-items: center; gap: 9px;
  font-size: 13.5px; color: rgba(255,255,255,0.88);
}
.hub-card__list svg {
  width: 16px; height: 16px; flex: none;
  padding: 3px; border-radius: 50%;
  background: rgba(255,255,255,0.16);
  color: var(--accent-lime);
}
.hub-card--blue .hub-card__list svg { color: var(--accent-lime); }
.hub-card__cta {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14.5px; font-weight: 700;
  color: #fff;
}
.hub-card__cta svg { width: 18px; height: 18px; transition: transform .2s ease; }
.hub-card:hover .hub-card__cta svg { transform: translateX(4px); }

@media (max-width: 800px) { .hub-cards { grid-template-columns: 1fr; } }

/* ---------- Sync blocks (themed: Google / Messages) ---------- */
.sync-block {
  position: relative;
  overflow: hidden;
  margin-top: 56px;
  padding: 48px 48px 44px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.sync-block--google {
  background:
    radial-gradient(90% 120% at 0% 0%, #ECFBE6 0%, rgba(255,255,255,0) 55%),
    #fff;
}
.sync-block--messages {
  background:
    radial-gradient(90% 120% at 100% 0%, #EAF1FF 0%, rgba(255,255,255,0) 55%),
    #fff;
}
.sync-block__head { max-width: 780px; }
.sync-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 7px 13px; border-radius: 999px; margin-bottom: 16px;
  background: #fff; border: 1px solid var(--border);
}
.sync-eyebrow--google   { color: #2B7D1F; background: #ECFBE6; border-color: #CBEBB8; }
.sync-eyebrow--messages { color: #1A2246; background: #fff; border-color: var(--border); }
.sync-block__title {
  font-size: 34px; font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.1; color: var(--title); margin: 0 0 12px;
}
.sync-block__lede { font-size: 16.5px; line-height: 1.6; color: var(--text-muted); margin: 0; }
.sync-block__lede strong { color: var(--title); font-weight: 700; }

/* feature mini-cards */
.sync-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 32px 0 0; }
.sync-feature {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.sync-feature:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(14,22,56,0.08); border-color: var(--border-strong); }
.sync-feature__icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--accent-soft), #fff);
  border: 1px solid var(--border); color: var(--brand);
}
.sync-feature__icon svg { width: 22px; height: 22px; }
.sync-block--google .sync-feature__icon {
  background: linear-gradient(135deg, #E2F7D6, #fff);
  border-color: #CBEBB8; color: #3A9E22;
}
.sync-block--messages .sync-feature__icon {
  background: linear-gradient(135deg, var(--accent-soft), #fff);
  border-color: var(--border); color: var(--brand);
}
.sync-feature h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; letter-spacing: -0.015em; color: var(--title); }
.sync-feature p { margin: 0; color: var(--text-muted); font-size: 13.5px; line-height: 1.55; }

/* per-block how-it-works */
.sync-how { margin-top: 34px; }
.sync-how__title {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--text-soft); margin: 0 0 16px;
}
.sync-block--google .sync-how__title { color: #2B7D1F; }
.mini-steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.mini-steps--msg { grid-template-columns: repeat(4, 1fr); }
.mini-steps li { display: flex; gap: 12px; align-items: flex-start; }
.mini-steps__n {
  flex: none; width: 30px; height: 30px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 6px 14px rgba(46,52,186,0.28);
}
.sync-block--messages .mini-steps__n {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 6px 14px rgba(46,52,186,0.28);
}
.sync-block--google .mini-steps__n {
  background: linear-gradient(135deg, #6FCB3C, #2E9E2A);
  box-shadow: 0 6px 14px rgba(46,158,42,0.30);
}
.mini-steps h4 { margin: 0 0 2px; font-size: 14px; font-weight: 700; color: var(--title); letter-spacing: -0.01em; }
.mini-steps p { margin: 0; font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* per-block CTA */
.sync-block__cta { margin-top: 34px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.sync-block--messages .sync-block__cta .btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--accent)); border-color: transparent;
}
.sync-block--messages .sync-block__cta .btn-primary:hover {
  background: linear-gradient(135deg, var(--brand-dark), #6FA9FF); border-color: transparent;
  transform: translateY(-2px); box-shadow: 0 14px 30px rgba(46,52,186,0.30);
}
.sync-block--google .sync-block__cta .btn-primary {
  background: linear-gradient(135deg, #6FCB3C, #2E9E2A); border-color: transparent;
}
.sync-block--google .sync-block__cta .btn-primary:hover {
  background: linear-gradient(135deg, #7FD850, #258A22); border-color: transparent;
  transform: translateY(-2px); box-shadow: 0 14px 30px rgba(46,158,42,0.30);
}
.sync-block__cta-note { color: var(--text-soft); font-size: 13.5px; }

@media (max-width: 1000px) {
  .sync-block { padding: 36px 26px 32px; }
  .sync-block__title { font-size: 28px; }
  .sync-grid { grid-template-columns: 1fr 1fr; }
  .mini-steps, .mini-steps--msg { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .sync-grid { grid-template-columns: 1fr; }
  .mini-steps, .mini-steps--msg { grid-template-columns: 1fr; }
}

/* ---------- Feature cards ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.feature::after {
  content: "";
  position: absolute; left: 0; top: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent), var(--accent-lime));
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.feature:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(14,22,56,0.08);
}
.feature:hover::after { transform: scaleX(1); }
.feature .icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-soft), #fff);
  border: 1px solid var(--border);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.feature .icon svg { width: 20px; height: 20px; }
.feature h3 { margin: 0 0 6px; font-size: 16px; color: var(--title); font-weight: 700; letter-spacing: -0.015em; }
.feature p { margin: 0; color: var(--text-muted); font-size: 14px; line-height: 1.55; }

@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* ---------- How-it-works steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.step:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: 0 14px 30px rgba(14,22,56,0.08); }
.step .num {
  width: 34px; height: 34px; border-radius: 11px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px;
  margin-bottom: 14px;
  box-shadow: 0 8px 18px rgba(46,52,186,0.30);
}
.step h4 { margin: 0 0 5px; font-size: 15px; font-weight: 700; letter-spacing: -0.015em; color: var(--title); }
.step p { margin: 0; color: var(--text-muted); font-size: 13.5px; line-height: 1.55; }

@media (max-width: 800px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin-top: 64px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 44px 48px;
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    radial-gradient(80% 140% at 100% 0%, rgba(162,255,123,0.30) 0%, transparent 55%),
    linear-gradient(135deg, #1A2246 0%, #2E34BA 100%);
  border: 1px solid var(--brand-dark);
}
.cta-banner__glow {
  position: absolute; z-index: 0;
  bottom: -60%; left: 30%;
  width: 50%; height: 180%;
  background: radial-gradient(circle at center, rgba(84,149,252,0.40), transparent 70%);
  filter: blur(20px);
  animation: hero-drift 10s ease-in-out infinite alternate;
  pointer-events: none;
}
.cta-banner__copy, .cta-banner__actions { position: relative; z-index: 1; }
.cta-banner__copy h2 { margin: 0 0 6px; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.cta-banner__copy p { margin: 0; color: rgba(255,255,255,0.80); font-size: 15.5px; }
.cta-banner__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-banner .btn-primary {
  background: linear-gradient(135deg, var(--accent-lime) 0%, var(--accent) 100%);
  border-color: transparent; color: var(--brand-darker); font-weight: 700;
}
.cta-banner .btn-primary:hover { transform: translateY(-2px); }
.cta-banner .btn-ghost {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.32);
  color: #fff; backdrop-filter: blur(8px);
}
.cta-banner .btn-ghost:hover { background: rgba(255,255,255,0.18); color: #fff; transform: translateY(-2px); }

@media (max-width: 680px) {
  .cta-banner { padding: 32px 26px; }
  .cta-banner__actions .btn { flex: 1; }
}

/* ---------- Flow card (pairing) ---------- */
.flow-card {
  max-width: 560px;
  margin: 32px auto 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.flow-card .step-pill {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.flow-card h2 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--title);
}
.flow-card p { color: var(--text-muted); font-size: 15px; margin: 0 0 22px; }

/* ---------- OTP ---------- */
.otp-display { display: flex; justify-content: center; gap: 8px; margin: 20px 0 8px; flex-wrap: wrap; }
.otp-display .digit {
  width: 48px; height: 60px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.otp-input { display: flex; justify-content: center; gap: 8px; margin: 14px 0 8px; flex-wrap: wrap; }
.otp-input input {
  width: 48px; height: 60px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: #fff;
  text-align: center;
  font-family: inherit;
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  outline: none;
  transition: border-color .12s ease;
}
.otp-input input:focus { border-color: var(--brand); }
.otp-input input.error { border-color: var(--danger); }

.hint { color: var(--text-soft); font-size: 13.5px; text-align: center; margin: 8px 0 0; }
.hint .countdown { color: var(--text); font-weight: 600; }

.alert {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  margin: 0 0 18px;
}
.alert.success { background: #ECFDF5; border-color: #A7F3D0; color: #065F46; }

.spinner {
  width: 20px; height: 20px;
  border: 3px solid var(--bg-muted);
  border-top-color: var(--brand);
  border-radius: 50%;
  display: inline-block;
  animation: spin .8s linear infinite;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

.flow-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.flow-actions .btn { flex: 1; min-width: 140px; }

/* ---------- Long-form pages (privacy / terms) ---------- */
.prose {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
}
.prose h1 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 6px;
  color: var(--title);
}
.prose .updated { color: var(--text-soft); font-size: 13.5px; margin: 0 0 28px; }
.prose h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 28px 0 8px;
  letter-spacing: -0.015em;
  color: var(--title);
}
.prose p { margin: 0 0 12px; color: var(--text-muted); font-size: 15px; }
.prose ul { margin: 0 0 12px 18px; padding: 0; color: var(--text-muted); font-size: 15px; }
.prose li { margin: 4px 0; }
.prose a { color: var(--brand); }
.prose a:hover { color: var(--brand-dark); text-decoration: underline; }
.prose code { background: var(--bg-muted); padding: 1px 6px; border-radius: 4px; font-size: 13.5px; }

@media (max-width: 600px) { .prose { padding: 28px 22px; } }

/* ---------- Footer ---------- */
.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 36px 4px 0;
  color: var(--text-soft);
  font-size: 13.5px;
}
.footer .links { display: flex; gap: 18px; }
.footer .links a { color: var(--text-soft); }
.footer .links a:hover { color: var(--text); }

/* ---------- Centered flow cards ---------- */
.flow-card.centered { text-align: center; padding: 40px 36px; margin-top: 40px; }
.flow-card.centered h2 { margin: 0 0 14px; }
.flow-card.centered p { margin: 0 auto 28px; max-width: 440px; }
.flow-card.centered .flow-actions { justify-content: center; margin-top: 28px; }
.flow-card.centered .otp-display,
.flow-card.centered .otp-input { margin: 24px auto 10px; }

/* ---------- Pair progress (4 icons + connector) ---------- */
.pair-progress {
  list-style: none;
  padding: 0;
  margin: 28px auto 0;
  max-width: 560px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
}
.pair-progress::before {
  content: "";
  position: absolute;
  top: 19px;
  left: 12.5%; right: 12.5%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.pair-progress li {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.pair-progress li .ic {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--border);
  color: var(--text-soft);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.pair-progress li .lb {
  font-size: 12px;
  color: var(--text-soft);
  font-weight: 500;
}
.pair-progress li.current .ic { border-color: var(--brand); color: var(--brand); }
.pair-progress li.current .lb { color: var(--text); font-weight: 600; }
.pair-progress li.done .ic { background: var(--brand); border-color: var(--brand); color: #fff; }
.pair-progress li.done .lb { color: var(--text); }

/* Step-icon animations: staggered pop-in on load, a live pulse ring on the
   current step, and a little spring on completed steps. */
.pair-progress li .ic {
  animation: pairPop .55s cubic-bezier(.2,.7,.2,1) both;
}
.pair-progress li:nth-child(1) .ic { animation-delay: .05s; }
.pair-progress li:nth-child(2) .ic { animation-delay: .16s; }
.pair-progress li:nth-child(3) .ic { animation-delay: .27s; }
.pair-progress li:nth-child(4) .ic { animation-delay: .38s; }
@keyframes pairPop {
  0%   { transform: scale(.55); opacity: 0; }
  60%  { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
/* pulsing halo around the active step */
.pair-progress li.current .ic::after {
  content: "";
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--brand);
  animation: pairRing 1.8s ease-out infinite;
  pointer-events: none;
}
@keyframes pairRing {
  0%   { transform: scale(1);   opacity: .55; }
  100% { transform: scale(1.6); opacity: 0; }
}
.pair-progress li.current .ic svg { animation: pairBob 1.8s ease-in-out infinite; }
@keyframes pairBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
/* completed step gives a quick spring */
.pair-progress li.done .ic { animation: pairDone .45s cubic-bezier(.2,.8,.2,1) both; }
@keyframes pairDone {
  0%   { transform: scale(.7); }
  55%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .pair-progress li .ic,
  .pair-progress li.current .ic::after,
  .pair-progress li.current .ic svg,
  .pair-progress li.done .ic { animation: none; }
}

/* ---------- Secure unlock loader ---------- */
.secure-loader {
  display: flex; flex-direction: column; align-items: center;
  gap: 14px; margin: 24px auto 8px;
}
.secure-loader-ring {
  position: relative;
  width: 96px; height: 96px;
  display: flex; align-items: center; justify-content: center;
}
.secure-loader-ring::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 3px solid #E2E8F0;
  border-top-color: #2e34ba;
  border-right-color: #5495fc;
  animation: secureSpin 1s linear infinite;
}
.secure-lock { position: relative; z-index: 1; }
@keyframes secureSpin { to { transform: rotate(360deg); } }
.secure-loader-text {
  font-size: 13.5px;
  color: var(--text-soft);
  margin: 0;
}

/* ---------- Glass-blur modal (Privacy / Terms) ---------- */
.tak-modal {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  display: none;
  align-items: center; justify-content: center;
  z-index: 1000;
  padding: 20px;
  opacity: 0;
  transition: opacity .18s ease;
}
.tak-modal.open { display: flex; opacity: 1; }
.tak-modal-panel {
  position: relative;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
  max-width: 560px; width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 32px 36px 28px;
  color: var(--text);
  -webkit-user-select: text;
  user-select: text;
}
.tak-modal-panel h2 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--title);
}
.tak-modal-panel h3 {
  margin: 18px 0 6px;
  font-size: 14.5px;
  font-weight: 600;
}
.tak-modal-panel p,
.tak-modal-panel ul { font-size: 14px; color: var(--text-muted); margin: 0 0 10px; }
.tak-modal-panel ul { padding-left: 18px; }
.tak-modal-panel li { margin: 3px 0; }
.tak-modal-updated { font-size: 12px; color: var(--text-soft); margin: 0 0 16px !important; }
.tak-modal-close {
  position: absolute; top: 10px; right: 14px;
  width: 32px; height: 32px;
  border: none; background: transparent;
  font-size: 24px; line-height: 1;
  color: var(--text-soft);
  cursor: pointer; border-radius: 8px;
}
.tak-modal-close:hover { background: rgba(0,0,0,0.05); color: var(--text); }

@media (max-width: 600px) {
  .tak-modal-panel { padding: 24px 22px 20px; }
  .pair-progress li .lb { font-size: 11px; }
  .flow-card.centered { padding: 28px 22px; }
}

/* ---------- Skeleton placeholders (v2.15, sync-skeleton style) ----------
   A neutral pulsing block used while we wait for real content (e.g. the
   OTP_A digits before they render). Inspired by github.com/crutchcorn/sync-skeleton.
   We use a 2-color shimmer instead of the old whole-section sweep so it's
   easier on the eye and easier to slot into specific spots like the start-
   sync card. */
@keyframes tak-shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}
.skeleton {
  display: inline-block;
  background:
    linear-gradient(90deg,
      var(--bg-muted) 0%,
      var(--bg-soft) 50%,
      var(--bg-muted) 100%);
  background-size: 200% 100%;
  animation: tak-shimmer 1.4s ease-in-out infinite;
  border-radius: 8px;
  vertical-align: middle;
}
.skeleton-line { display: block; height: 14px; margin: 8px 0; border-radius: 6px; }
.skeleton-line.short { width: 40%; }
.skeleton-line.medium { width: 70%; }
.skeleton-line.long { width: 100%; }
.skeleton-otp-row { display: flex; gap: 10px; justify-content: center; margin: 18px 0 6px; }
.skeleton-otp { width: 46px; height: 60px; border-radius: 10px; }
.skeleton-btn { width: 140px; height: 44px; border-radius: 10px; margin: 14px auto 0; }

