/* ============================================================================
   POUYA EDITS — /how-i-work/ page

   Hand-written, not part of the design export. The page the home hero video
   sends people to ("click the button below"). Every value comes from
   css/tokens.css.
   ============================================================================ */

/* ---- SHARED RESET + HEADER ----------------------------------------------
   Byte-identical to the block every other exported page CSS carries. The
   header markup is swapped in by pe_resolve(), but its styles live in the
   per-page stylesheet, so a page without this block renders the nav unstyled.
   -------------------------------------------------------------------------- */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--surface-page); }
body { font-family: var(--font-body); }
a { color: var(--text-accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; display: block; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-subtle); }
.site-header .bar { max-width: 1160px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-header .logo { display: flex; align-items: center; gap: 10px; }
.site-header .wordmark { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; color: var(--text-primary); }
.site-header .nav-desktop { display: flex; align-items: center; gap: 28px; }
.site-header .nav-desktop a { font-family: var(--font-body); font-weight: 500; font-size: 14.5px; color: var(--text-secondary); transition: color 0.2s ease; }
.site-header .nav-desktop a:hover { color: var(--blue-600); }
.site-header .nav-burger { display: none; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid var(--border-subtle); background: var(--white); border-radius: 10px; cursor: pointer; color: var(--text-primary); }
@media (max-width: 720px) { .site-header .nav-desktop { display: none !important; } .site-header .nav-burger { display: inline-flex !important; } }

/* ---- HERO ---------------------------------------------------------------- */

.hw-hero { max-width: 880px; margin: 0 auto; padding: 72px 32px 40px; text-align: center; }
.hw-hero h1 { color: var(--text-primary); margin: 0 0 18px; }
.hw-hero p { color: var(--text-secondary); margin: 0 auto; max-width: 640px; }

/* ---- WALKTHROUGH VIDEO ----------------------------------------------------
   Same frame as the home hero (.pe-hero-frame in home.css) so the real video
   can drop straight in. Until then the frame holds a "coming soon" card. */

.hw-video { max-width: 1040px; margin: 0 auto; padding: 0 32px 72px; }
.hw-video-frame { position: relative; aspect-ratio: 16/9; border-radius: var(--radius-xl); overflow: hidden; background: linear-gradient(135deg, #EEF5FD 0%, #DBEAFE 100%); border: 1px solid var(--border-subtle); box-shadow: var(--shadow-lg); }
.hw-video-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hw-video-soon { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; }
.hw-video-ring { width: 72px; height: 72px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; padding-left: 4px; background: var(--white); color: var(--text-accent); box-shadow: var(--shadow-md); margin-bottom: 6px; }
.hw-video-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.25rem, 1rem + 1.2vw, 1.875rem); letter-spacing: -0.02em; color: var(--text-primary); }
.hw-video-sub { color: var(--text-secondary); max-width: 440px; }

/* ---- SECTIONS ------------------------------------------------------------ */

.hw-section { max-width: 1160px; margin: 0 auto; padding: 72px 32px; }
.hw-alt { background: var(--white); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.hw-head { max-width: 680px; margin: 0 auto 40px; text-align: center; }
.hw-head .text-eyebrow { margin-bottom: 12px; }
.hw-head h2 { color: var(--text-primary); margin: 0 0 12px; }
.hw-head p { color: var(--text-secondary); margin: 0; }

.hw-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.hw-card { background: var(--white); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); padding: 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.hw-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -0.01em; color: var(--text-primary); margin: 6px 0 0; }
.hw-card p { color: var(--text-secondary); margin: 0; }
.hw-link { font-family: var(--font-display); font-weight: 600; font-size: 15px; margin-top: auto; padding-top: 6px; }

.hw-steps { list-style: none; margin: 0 auto; padding: 0; max-width: 960px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 20px; counter-reset: none; }
.hw-step { display: flex; gap: 16px; align-items: flex-start; background: var(--surface-page); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 22px 24px; }
.hw-step-num { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--text-accent); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.hw-step h3 { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; color: var(--text-primary); margin: 5px 0 6px; }
.hw-step p { color: var(--text-secondary); margin: 0; }

.hw-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

/* ---- CTA ----------------------------------------------------------------- */

.hw-cta { max-width: 1160px; margin: 0 auto 96px; padding: 0 32px; }
.hw-cta-inner { background: var(--surface-dark); border-radius: var(--radius-xl); padding: 56px 40px; text-align: center; }
.hw-cta-inner h2 { color: var(--text-inverse); margin: 0 0 14px; }
.hw-cta-inner p { color: var(--ink-200); margin: 0 auto; max-width: 520px; }
.hw-cta-inner .hw-row { margin-top: 28px; }

/* ---- RESPONSIVE ---------------------------------------------------------- */

@media (max-width: 820px) {
  .hw-grid-2, .hw-steps { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hw-hero { padding: 48px 16px 32px; }
  .hw-video { padding: 0 16px 48px; }
  .hw-video-frame { border-radius: var(--radius-lg); }
  .hw-video-ring { width: 56px; height: 56px; }
  .hw-video-sub { display: none; }
  .hw-section { padding: 48px 16px; }
  .hw-head { margin-bottom: 28px; }
  .hw-card { padding: 24px; }
  .hw-step { padding: 18px; }
  .hw-cta { padding: 0 16px; margin-bottom: 64px; }
  .hw-cta-inner { padding: 40px 22px; }
  .hw-row .btn { flex: 1 1 100%; justify-content: center; }
}
