/* backend>static>awf>how>css>awf_how.css */

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

code {
  overflow-wrap: anywhere;
  word-break: break-word;
}

:root {
  --bg0: #07070a;
  --bg1: #0b0b12;

  --card: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.14);

  --txt: #fff;
  --mut: rgba(255, 255, 255, 0.78);
  --mut2: rgba(255, 255, 255, 0.56);

  --a1: #7dd3fc; /* sky */
  --a2: #a78bfa; /* violet */
  --a3: #34d399; /* green */
  --a4: #fbbf24; /* amber */
  --a5: #fb7185; /* rose */

  --shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  --r: 18px;
}

/* Page */
.how-page {
  min-height: 100vh;
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(125, 211, 252, 0.18), transparent 55%),
    radial-gradient(900px 500px at 90% 5%, rgba(167, 139, 250, 0.16), transparent 60%),
    radial-gradient(900px 600px at 55% 110%, rgba(52, 211, 153, 0.12), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  color: var(--txt);
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 16px 40px;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -2px;
  background:
    radial-gradient(600px 220px at 20% 0%, rgba(125, 211, 252, 0.18), transparent 55%),
    radial-gradient(600px 220px at 85% 10%, rgba(167, 139, 250, 0.16), transparent 60%);
  filter: blur(10px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  padding: 18px 18px 16px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 800;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.92);
}

.kdot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--a1), var(--a2));
  box-shadow: 0 0 18px rgba(125, 211, 252, 0.55);
}

h1 {
  margin: 12px 0 8px;
  font-size: 26px;
  letter-spacing: 0.2px;
}

.sub {
  margin: 0;
  max-width: 920px;
  color: var(--mut);
  line-height: 1.55;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.btnx {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--txt);
  text-decoration: none;
  font-weight: 900;
  transition: 0.12s ease;
}

.btnx.primary {
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.22), rgba(167, 139, 250, 0.18));
  border-color: rgba(125, 211, 252, 0.3);
}

.btnx:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.btnx:active {
  transform: translateY(0);
  filter: brightness(1.02);
}

/* Layout */
.grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
  margin-top: 14px;
}

@media (max-width: 980px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.rightcol {
  display: grid;
  gap: 14px;
}

/* Cards */
.card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  box-shadow: var(--shadow);
}

.card h2 {
  margin: 0 0 10px;
  font-size: 16px;
}

.muted {
  color: var(--mut);
  line-height: 1.55;
}

.muted2 {
  color: var(--mut2);
  line-height: 1.55;
}

/* Timeline */
.timeline {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
}

.num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(125, 211, 252, 0.3);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.22), rgba(167, 139, 250, 0.18));
  box-shadow: 0 0 22px rgba(125, 211, 252, 0.14);
  font-weight: 1000;
}

.step h3 {
  margin: 0;
  font-size: 14px;
}

.step p {
  margin: 6px 0 0;
  color: var(--mut);
  font-size: 13px;
  line-height: 1.5;
}

.step ul {
  margin: 8px 0 0 18px;
  color: var(--mut);
  font-size: 13px;
  line-height: 1.5;
}

.arrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 56px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 800;
}

.arrow .line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.arrow .tip {
  opacity: 0.85;
}

/* Callouts */
.callouts {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.callout {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
}

.callout.ok {
  border-color: rgba(52, 211, 153, 0.25);
  background: rgba(52, 211, 153, 0.07);
}

.callout.warn {
  border-color: rgba(251, 191, 36, 0.25);
  background: rgba(251, 191, 36, 0.07);
}

.callout b {
  color: #fff;
}

/* Inline code */
code {
  padding: 2px 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
}

/* Screenshot mini cards */
.shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

@media (max-width: 980px) {
  .shots {
    grid-template-columns: 1fr;
  }
}

.shot {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
}

.shot .img {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 140px;
  background:
    radial-gradient(300px 160px at 30% 10%, rgba(125, 211, 252, 0.18), transparent 55%),
    radial-gradient(300px 180px at 90% 40%, rgba(167, 139, 250, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  color: rgba(255, 255, 255, 0.75);
  font-weight: 900;
}

.shot img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.shot .cap {
  padding: 10px 12px;
  color: var(--mut);
  font-size: 12px;
  line-height: 1.45;
}

/* Tags */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 900;
}

.tag.sky {
  border-color: rgba(125, 211, 252, 0.22);
  background: rgba(125, 211, 252, 0.1);
}

.tag.violet {
  border-color: rgba(167, 139, 250, 0.22);
  background: rgba(167, 139, 250, 0.1);
}

.tag.green {
  border-color: rgba(52, 211, 153, 0.22);
  background: rgba(52, 211, 153, 0.1);
}

.tag.amber {
  border-color: rgba(251, 191, 36, 0.22);
  background: rgba(251, 191, 36, 0.1);
}

.tag.rose {
  border-color: rgba(251, 113, 133, 0.22);
  background: rgba(251, 113, 133, 0.1);
}

/* FAQ */
.faq {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

details {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
}

summary {
  cursor: pointer;
  list-style: none;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 900;
}

summary::-webkit-details-marker {
  display: none;
}

details p {
  margin: 10px 0 0;
  color: var(--mut);
  font-size: 13px;
  line-height: 1.55;
}

.footer-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 14px;
}

/* --------------------------------
   AWF Tutorial Slider
--------------------------------- */

.awf-slider-card {
  padding: 16px;
}

.awf-slider-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.awf-slider-head h2 {
  margin: 0;
  font-size: 16px;
}

.awf-slider-kbd {
  opacity: 0.7;
  font-weight: 800;
}


/* Main tutorial: text left / image right */

.awf-tutorial-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: 24px;
  align-items: stretch;
  margin-top: 16px;
}


/* LEFT COLUMN */

.awf-tutorial-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.awf-tutorial-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.awf-stag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 900;
}

.awf-scounter {
  position: static;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 900;
}

.awf-tutorial-content {
  flex: 1;
}

.awf-tutorial-content h3 {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.2;
}

.awf-stext {
  margin: 0;
  color: var(--mut);
  font-size: 15px;
  line-height: 1.65;
}

.awf-tutorial-notes {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.awf-tutorial-notes .callout {
  margin: 0;
}

.awf-tutorial-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.awf-tutorial-nav-label {
  color: var(--mut2);
  font-size: 12px;
  font-weight: 800;
}

.awf-sbtn {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 22px;
  font-weight: 1000;
  cursor: pointer;
}

.awf-sbtn:hover {
  filter: brightness(1.08);
}


/* RIGHT COLUMN — vertical 9:16 screenshot */

.awf-sframe.awf-tutorial-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  cursor: zoom-in;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.28);

  /* IMPORTANT: no 16:9 */
  aspect-ratio: auto;
}

.awf-sframe.awf-tutorial-image img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 100%;
  max-height: 720px;
  object-fit: contain;
  object-position: center;
}


/* Tablet / mobile */

@media (max-width: 820px) {

  .awf-tutorial-layout {
    grid-template-columns: 1fr;
  }

  .awf-tutorial-copy {
    padding: 18px;
  }

  .awf-sframe.awf-tutorial-image {
    min-height: 0;
    padding: 16px;
  }

  .awf-sframe.awf-tutorial-image img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 680px;
  }
}

@media (max-width: 520px) {

  .awf-tutorial-content h3 {
    font-size: 20px;
  }

  .awf-tutorial-copy {
    padding: 15px;
  }

  .awf-tutorial-nav-label {
    display: none;
  }

  .awf-tutorial-nav {
    justify-content: space-between;
  }

  .awf-sframe.awf-tutorial-image {
    padding: 10px;
  }

  .awf-sframe.awf-tutorial-image img {
    max-height: 620px;
  }
}
/* =========================
   Modal zoom
   ========================= */
#awfZoom {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(10, 10, 12, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#awfZoom.open {
  display: flex;
}

#awfZoom .awf-zoom-card {
  width: min(980px, 96vw);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.38);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.65);
}

/* Zoom header */
#awfZoom .awf-zoom-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

#awfZoom .awf-zoom-title {
  font-size: 13px;
  font-weight: 1000;
  opacity: 0.9;
}

#awfZoom .awf-zoom-close {
  width: 38px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-weight: 1000;
  cursor: pointer;
}

/* Zoom body */
#awfZoom .awf-zoom-body {
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  gap: 12px;
  align-items: center;
  padding: 14px;
}

#awfZoom .awf-zbtn {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 28px;
  font-weight: 1000;
  cursor: pointer;
}

#awfZoom .awf-zbtn:hover {
  filter: brightness(1.08);
}

/* Zoom image: true 16:9, show entire image */
#awfZoom .awf-zframe {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.55);
  aspect-ratio: 16 / 9;
}

#awfZoom .awf-zframe img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: rgba(0, 0, 0, 0.65);
  cursor: zoom-out;
}

#awfZoom .awf-zcounter {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 900;
}

/* Zoom caption */
#awfZoom .awf-zcaption {
  padding: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

#awfZoom .awf-zcaption .awf-stag {
  opacity: 1;
}

#awfZoom .awf-zcaption .awf-stext {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.55;
  opacity: 0.92;
}

/* Keep zoom text readable */
#awfZoom .awf-ztag {
  color: rgba(255, 255, 255, 0.92) !important;
}

#awfZoom .awf-ztext {
  color: rgba(255, 255, 255, 0.86) !important;
}

#awfZoom .awf-ztext b,
#awfZoom .awf-ztext strong {
  color: #fff !important;
}

#awfZoom .awf-ztext code {
  color: rgba(255, 255, 255, 0.95) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
}

/* Mobile zoom */
@media (max-width: 560px) {
  #awfZoom .awf-zoom-body {
    grid-template-columns: 44px 1fr 44px;
    gap: 10px;
  }

  #awfZoom .awf-zbtn {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 24px;
  }
}

/* Prevent background scroll while zoom is open */
body.awf-zoom-open {
  overflow: hidden;
}