/* /press/how-it-works/ — the guide for new writers. Layered on /site.css and
   /press/press.css (Night Draft tokens). Every image on the page is a real
   screenshot of the app (public/press/img/how-it-works/). */

:root {
  --hiw-violet: #a78bfa;
  --hiw-violet-text: #d4c6ff;
  --hiw-green: #86d29a;
  --hiw-yellow: #f5d36a;
  --hiw-orange: #f5a35c;
  --hiw-pink: var(--accent-text);
  --hiw-frame: #19161d;
  --hiw-shadow: 0 50px 120px -50px rgba(0, 0, 0, .95), 0 30px 80px -50px rgba(240, 106, 155, .45);
}

/* ---------- hero ---------- */
.hiw-hero { padding-bottom: 0; }
.hiw-hero .nr-head { padding-top: 48px; }
.hiw-hero .nr-head h1 { font-size: clamp(42px, 7.4vw, 96px); }
.hiw-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px;
  padding: 7px 14px 7px 10px; border-radius: 999px;
  border: 1px solid var(--accent-border); background: var(--accent-soft);
  font: 700 12.5px/1 var(--font-ui); color: var(--accent-text);
}
.hiw-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.hiw-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }
.hiw-ctas .btn { padding: 13px 22px; font-size: 15px; }
.hiw-fine { margin-top: 14px; font-size: 13px; color: var(--fg-3); text-align: center; }

/* the big screenshot, in a window, tilted back until it scrolls up */
.hiw-stage { perspective: 1800px; margin: 54px auto 0; max-width: 1180px; }
.hiw-window {
  position: relative; border-radius: 16px; overflow: hidden;
  background: var(--hiw-frame); border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: var(--hiw-shadow);
  transform-origin: 50% 0;
  transform: rotateX(var(--tilt, 14deg)) scale(var(--zoom, .96));
  transition: transform .1s linear;
  will-change: transform;
}
.hiw-window::before { /* the light on the rim */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}
.hiw-chrome {
  display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px;
  background: linear-gradient(180deg, #221e27, #1a171f); border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.hiw-chrome i { width: 10px; height: 10px; border-radius: 50%; background: #3a3440; }
.hiw-chrome i:nth-child(1) { background: #f06a6a; } .hiw-chrome i:nth-child(2) { background: #f5c26a; } .hiw-chrome i:nth-child(3) { background: #7fd08f; }
.hiw-chrome span {
  margin: 0 auto; transform: translateX(-24px);
  padding: 4px 14px; border-radius: 7px; background: rgba(255, 255, 255, .05);
  font: 600 11.5px/1 var(--font-ui); color: var(--fg-3); letter-spacing: .02em;
}
.hiw-window img { display: block; width: 100%; height: auto; }
.hiw-glow {
  position: absolute; left: 10%; right: 10%; top: 20%; height: 70%; z-index: -1;
  background: radial-gradient(50% 50% at 50% 50%, rgba(240, 106, 155, .35), transparent 70%);
  filter: blur(40px);
}
.hiw-stage-wrap { position: relative; }
.hiw-callouts { position: absolute; inset: 0; pointer-events: none; }
.hiw-callout {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 13px; border-radius: 12px;
  background: rgba(22, 20, 26, .92); border: 1px solid var(--border-strong);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .9);
  font: 700 13px/1.25 var(--font-ui); color: var(--fg); white-space: nowrap;
  opacity: 0; transform: translateY(8px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1);
}
.hiw-callout b { color: var(--accent-text); font-weight: 800; }
.hiw-callout.g b { color: var(--hiw-green); }
.hiw-callout.y b { color: var(--hiw-yellow); }
.hiw-callout.o b { color: var(--hiw-orange); }
.hiw-callout.in { opacity: 1; transform: none; }
.hiw-callout.c1 { left: -2%; top: 52%; }
.hiw-callout.c2 { right: -2%; top: 12%; }
.hiw-callout.c3 { right: 3%; top: 64%; }
@media (max-width: 900px) { .hiw-callouts { display: none; } }

/* ---------- the minute: four tiles ---------- */
.hiw-minute { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 34px; }
.hiw-tile {
  position: relative; padding: 22px 20px 20px; border-radius: var(--r-lg);
  background: var(--card-deep); border: 1px solid var(--border);
}
.hiw-tile .n {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; margin-bottom: 14px;
  font: 800 13px/1 var(--font-ui); color: #fff; background: var(--grad-btn); box-shadow: var(--glow);
}
.hiw-tile h3 { font: 500 21px/1.2 var(--font-display); color: var(--fg); }
.hiw-tile p { margin-top: 8px; font-size: 14px; line-height: 1.55; color: var(--fg-2); }
.hiw-tile .arrow-r {
  position: absolute; right: -12px; top: 50%; width: 10px; height: 10px; z-index: 1;
  border-top: 2px solid var(--border-strong); border-right: 2px solid var(--border-strong); transform: translateY(-50%) rotate(45deg);
}
.hiw-tile:last-child .arrow-r { display: none; }
@media (max-width: 900px) { .hiw-minute { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hiw-tile .arrow-r { display: none; } }
@media (max-width: 520px) { .hiw-minute { grid-template-columns: 1fr; } }

/* ---------- steps ---------- */
.hiw-steps { position: relative; margin-top: 30px; }
.hiw-rail { /* the line the steps hang on */
  position: absolute; left: 21px; top: 10px; bottom: 10px; width: 2px;
  background: linear-gradient(180deg, transparent, var(--border-strong) 4%, var(--border-strong) 96%, transparent);
}
.hiw-rail i {
  position: absolute; left: 0; top: 0; width: 2px; height: var(--fill, 0%);
  background: linear-gradient(180deg, var(--accent), var(--hiw-violet));
  box-shadow: 0 0 12px rgba(240, 106, 155, .7);
}
.hiw-step {
  position: relative; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 44px;
  align-items: center; padding: 64px 0 64px 68px; scroll-margin-top: 80px;
}
.hiw-step.flip { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.hiw-step.flip .hiw-copy { order: 2; }
.hiw-step.wide { grid-template-columns: 1fr; gap: 28px; }
.hiw-dot {
  position: absolute; left: 6px; top: 70px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font: 800 13px/1 var(--font-ui); color: var(--fg-2);
  background: var(--bg); border: 2px solid var(--border-strong);
  transition: color .4s, border-color .4s, box-shadow .4s, background .4s;
}
.hiw-step.on .hiw-dot { color: #fff; border-color: transparent; background: var(--grad-btn); box-shadow: 0 0 0 6px rgba(240, 106, 155, .14), var(--glow); }
.hiw-k { font: 800 11.5px/1 var(--font-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); }
.hiw-k.v { color: var(--hiw-violet-text); } .hiw-k.g { color: var(--hiw-green); } .hiw-k.y { color: var(--hiw-yellow); } .hiw-k.o { color: var(--hiw-orange); }
.hiw-copy h2 {
  margin-top: 14px; font: 500 clamp(30px, 3.8vw, 46px)/1.05 var(--font-display); letter-spacing: -0.02em; color: var(--fg); text-wrap: balance;
}
.hiw-copy h2 em { font-style: italic; color: var(--accent-text); }
.hiw-copy > p { margin-top: 16px; font-size: 16.5px; line-height: 1.65; color: var(--fg-2); text-wrap: pretty; }
.hiw-copy > p b { color: var(--fg-soft); font-weight: 700; }
.hiw-list { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
.hiw-list li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.55; color: var(--fg-soft); }
.hiw-list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff9dc0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.hiw-tip {
  margin-top: 22px; display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r-md);
  background: rgba(167, 139, 250, .08); border: 1px solid rgba(167, 139, 250, .28);
  font-size: 14px; line-height: 1.55; color: var(--fg-soft);
}
.hiw-tip::before { content: "Tip"; flex: none; font: 800 10.5px/1.9 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--hiw-violet-text); }
kbd {
  display: inline-block; min-width: 22px; padding: 2px 7px; border-radius: 6px; text-align: center;
  font: 700 12px/1.5 var(--font-ui); color: var(--fg);
  background: linear-gradient(180deg, #2a2530, #1d1a22); border: 1px solid var(--border-strong); border-bottom-width: 2px;
}

/* a screenshot card */
.hiw-shot {
  position: relative; margin: 0; border-radius: 14px; overflow: hidden;
  background: #f7f3ee; border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: var(--hiw-shadow);
}
.hiw-shot.dark { background: var(--hiw-frame); }
.hiw-shot img { display: block; width: 100%; height: auto; }
.hiw-cap { margin-top: 12px; font-size: 13px; color: var(--fg-3); text-align: center; }
.hiw-cap b { color: var(--fg-2); font-weight: 700; }

/* before / after slider (Expand) */
.hiw-ba { position: relative; user-select: none; -webkit-user-select: none; touch-action: pan-y; cursor: ew-resize; }
.hiw-ba .after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--cut, 50%)); }
.hiw-ba .after img { width: 100%; height: 100%; object-fit: cover; }
.hiw-ba .handle {
  position: absolute; top: 0; bottom: 0; left: var(--cut, 50%); width: 2px; margin-left: -1px;
  background: linear-gradient(180deg, var(--accent), var(--hiw-violet)); box-shadow: 0 0 16px rgba(240, 106, 155, .8);
}
.hiw-ba .handle span {
  position: absolute; top: 50%; left: 50%; width: 42px; height: 42px; margin: -21px 0 0 -21px; border-radius: 50%;
  display: grid; place-items: center; background: var(--grad-btn); box-shadow: var(--glow), 0 0 0 5px rgba(255, 255, 255, .6);
}
.hiw-ba .handle svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hiw-ba .lab {
  position: absolute; top: 12px; padding: 5px 10px; border-radius: 999px; pointer-events: none;
  font: 800 10.5px/1 var(--font-ui); letter-spacing: .12em; text-transform: uppercase;
}
.hiw-ba .lab.l { left: 12px; color: #6b6470; background: rgba(255, 255, 255, .85); border: 1px solid #e3dcd4; }
.hiw-ba .lab.r { right: 12px; color: #fff; background: var(--grad-btn); }
.hiw-ba:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* two states in one frame (Steer) */
.hiw-swap { position: relative; }
.hiw-swap img + img { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; }
.hiw-swap.b img + img { opacity: 1; }
.hiw-toggle {
  display: inline-flex; margin: 16px auto 0; padding: 4px; gap: 4px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
}
.hiw-toggle-wrap { text-align: center; }
.hiw-toggle button {
  border: 0; cursor: pointer; padding: 8px 16px; border-radius: 999px; background: transparent;
  font: 700 13px/1 var(--font-ui); color: var(--fg-2); transition: background .3s, color .3s;
}
.hiw-toggle button[aria-pressed="true"] { color: #0f0e12; background: var(--hiw-orange); }
.hiw-toggle.g button[aria-pressed="true"] { background: var(--hiw-green); }
.hiw-toggle button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* a phone */
.hiw-phone {
  width: min(300px, 78vw); margin: 0 auto; padding: 10px; border-radius: 40px;
  background: linear-gradient(160deg, #2b2631, #121015); border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: var(--hiw-shadow);
}
.hiw-phone img { display: block; width: 100%; height: auto; border-radius: 31px; }
.hiw-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-top: 22px; }
.hiw-mini { padding: 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); }
.hiw-mini > b { display: block; font-size: 14.5px; color: var(--fg); }
.hiw-mini > span { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.5; color: var(--fg-2); }
.hiw-mini .hiw-swatches { display: flex; gap: 8px; margin-top: 10px; }
.hiw-swatches i { width: 22px; height: 22px; border-radius: 7px; border: 1px solid rgba(255, 255, 255, .18); }

@media (max-width: 900px) {
  .hiw-step, .hiw-step.flip { grid-template-columns: 1fr; gap: 28px; padding: 44px 0 44px 52px; }
  .hiw-step.flip .hiw-copy { order: 0; }
  .hiw-rail { left: 15px; }
  .hiw-dot { left: 0; top: 48px; width: 30px; height: 30px; }
}
@media (max-width: 520px) {
  .hiw-step, .hiw-step.flip { padding-left: 44px; }
  .hiw-two { grid-template-columns: 1fr; }
}

/* ---------- keys ---------- */
.hiw-keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
.hiw-key { padding: 20px; border-radius: var(--r-lg); background: var(--card-deep); border: 1px solid var(--border); }
.hiw-key .combo { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; min-height: 30px; font-size: 13px; color: var(--fg-3); }
.hiw-key b { display: block; margin-top: 12px; font-size: 15px; color: var(--fg); }
.hiw-key span { display: block; margin-top: 5px; font-size: 13.5px; line-height: 1.5; color: var(--fg-2); }
@media (max-width: 900px) { .hiw-keys { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .hiw-keys { grid-template-columns: 1fr; } }

/* ---------- more ---------- */
.hiw-more { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
.hiw-more a, .hiw-more div {
  display: flex; flex-direction: column; padding: 22px 20px; border-radius: var(--r-lg);
  background: var(--card-deep); border: 1px solid var(--border); transition: transform .3s, border-color .3s;
}
.hiw-more a:hover { transform: translateY(-3px); border-color: var(--accent-border); }
.hiw-more svg { width: 26px; height: 26px; fill: none; stroke: var(--accent-text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hiw-more .v svg { stroke: var(--hiw-violet-text); }
.hiw-more h3 { margin-top: 14px; font: 500 20px/1.2 var(--font-display); color: var(--fg); }
.hiw-more p { margin-top: 8px; font-size: 14px; line-height: 1.55; color: var(--fg-2); }
.hiw-more small { margin-top: auto; padding-top: 14px; font-size: 12px; font-weight: 700; color: var(--fg-3); }
@media (max-width: 1000px) { .hiw-more { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .hiw-more { grid-template-columns: 1fr; } }

/* ---------- price strip ---------- */
.hiw-price {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 30px;
  border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border);
}
.hiw-price > div { padding: 24px; background: var(--surface); }
.hiw-price > div + div { border-left: 1px solid var(--border); }
.hiw-price b { display: block; font: 500 30px/1.1 var(--font-display); color: var(--fg); }
.hiw-price span { display: block; margin-top: 6px; font-size: 14px; color: var(--fg-2); }
@media (max-width: 720px) { .hiw-price { grid-template-columns: 1fr; } .hiw-price > div + div { border-left: 0; border-top: 1px solid var(--border); } }

/* ---------- questions ---------- */
.hiw-faq { margin-top: 26px; display: grid; gap: 10px; max-width: 860px; }
.hiw-faq details { border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); }
.hiw-faq summary {
  list-style: none; cursor: pointer; padding: 18px 50px 18px 20px; position: relative;
  font: 700 15.5px/1.4 var(--font-ui); color: var(--fg);
}
.hiw-faq summary::-webkit-details-marker { display: none; }
.hiw-faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--fg-3); border-bottom: 2px solid var(--fg-3); transform: rotate(45deg); transition: transform .3s;
}
.hiw-faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.hiw-faq details p { padding: 0 20px 18px; font-size: 15px; line-height: 1.6; color: var(--fg-2); }

/* the sticky step chips under the newsroom bar */
.hiw-chips {
  position: sticky; top: 52px; z-index: 50; margin-top: 56px;
  background: rgba(15, 14, 18, .9); border-bottom: 1px solid var(--hairline);
}
.hiw-chips .wrap { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-block: 10px; }
.hiw-chips .wrap::-webkit-scrollbar { display: none; }
.hiw-chips a {
  flex: none; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--border);
  font: 700 12.5px/1 var(--font-ui); color: var(--fg-2); transition: color .3s, border-color .3s, background .3s;
}
.hiw-chips a b { color: var(--fg-3); margin-right: 5px; }
.hiw-chips a.on { color: #fff; border-color: var(--accent-border); background: var(--accent-soft); }
.hiw-chips a.on b { color: var(--accent-text); }

@media (prefers-reduced-motion: reduce) {
  .hiw-window { transform: none !important; transition: none; }
  .hiw-callout { opacity: 1; transform: none; transition: none; }
  .hiw-swap img + img { transition: none; }
}

/* ---------- zoom a screenshot ---------- */
.hiw-zoomable { cursor: zoom-in; }
.hiw-zoom-hint {
  position: absolute; right: 12px; bottom: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 999px; pointer-events: none;
  background: rgba(15, 14, 18, .78); border: 1px solid rgba(255, 255, 255, .14);
  font: 700 11.5px/1 var(--font-ui); color: #fff; opacity: 0; transition: opacity .3s;
}
.hiw-zoom-hint svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.hiw-zoomable:hover .hiw-zoom-hint, .hiw-zoomable:focus-visible .hiw-zoom-hint { opacity: 1; }
@media (hover: none) { .hiw-zoom-hint { opacity: 1; } }
.hiw-lb {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px;
  background: rgba(8, 7, 10, .94); opacity: 0; transition: opacity .25s ease; cursor: zoom-out;
}
.hiw-lb.in { opacity: 1; }
.hiw-lb-scroll { max-width: 100%; max-height: 100%; overflow: auto; border-radius: 12px; }
.hiw-lb img { display: block; max-width: min(1600px, 100%); height: auto; border-radius: 12px; box-shadow: var(--hiw-shadow); transform: scale(.97); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.hiw-lb.in img { transform: none; }
.hiw-lb-close {
  position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(22, 20, 26, .9); color: #fff; font: 400 26px/1 var(--font-ui); cursor: pointer;
}
@media (max-width: 720px) {
  .hiw-lb { padding: 0; place-items: start center; }
  .hiw-lb-scroll { width: 100%; height: 100%; border-radius: 0; display: flex; align-items: center; }
  .hiw-lb img { max-width: none; width: 230vw; border-radius: 0; }
}
.nr-crumbs .here { flex: none; }
