/* card #1304: How it works pages (EN /how-it-works/, DE /de/so-funktioniert-es/,
   ES /es/como-funciona/). One stylesheet, identical structure in all three languages.
   Tokens match styles.css (home): #050505 / #10b981, Newsreader + Inter + Space Grotesk.
   Motion: decorative layers only (mockup, glow, timeline rail). Every text block is
   visible at rest; prefers-reduced-motion freezes the mockup on its final frame. */

.hiw { --hiw-amber: #f59e0b; --hiw-card: #0b0d0c; --hiw-line: rgba(255,255,255,0.08); overflow-x: clip; }
.hiw-wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.hiw a { transition: color .25s, background .25s, border-color .25s, transform .25s, box-shadow .25s; }
.hiw h2 { font-family: 'Newsreader', Georgia, serif; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1;
    font-size: clamp(32px, 4vw, 52px); color: var(--text); margin: 0 0 18px; }
.hiw h2 em, .hiw h1 em { font-weight: 400; color: var(--emerald); }
.hiw-label { display: inline-block; font-family: 'Space Grotesk'; font-size: 11px; font-weight: 600; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--emerald); margin-bottom: 16px; }
.hiw-lead { font-size: 17px; line-height: 1.7; color: var(--text-dim); max-width: 620px; }
.hiw p a, .hiw li a { color: var(--emerald); text-decoration: underline; text-underline-offset: 3px; }
.hiw p a:hover, .hiw li a:hover { color: #34d399; }
.hiw strong { color: var(--text); font-weight: 600; }
.hiw-section { padding: 120px 0; position: relative; }
.hiw-section + .hiw-section { border-top: 1px solid var(--hiw-line); }

/* buttons, same shapes as the home hero */
.hiw-btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 32px; border-radius: 999px;
    font-family: 'Space Grotesk'; font-weight: 700; font-size: 15px; letter-spacing: 0.01em; text-decoration: none !important; }
.hiw-btn-primary { background: var(--emerald); color: var(--bg) !important; box-shadow: 0 0 0 0 rgba(16,185,129,0.0); }
.hiw-btn-primary:hover { background: #34d399; transform: translateY(-2px); box-shadow: 0 10px 34px rgba(16,185,129,0.35); }
.hiw-btn-primary svg { transition: transform .3s; }
.hiw-btn-primary:hover svg { transform: translateX(4px); }
.hiw-btn-ghost { color: var(--text) !important; border: 1px solid var(--border); background: rgba(255,255,255,0.02); }
.hiw-btn-ghost:hover { border-color: var(--border-hover); color: var(--emerald) !important; }

/* ================= HERO ================= */
.hiw-hero { position: relative; isolation: isolate; padding: 88px 0 96px; overflow: hidden; }
.hiw-hero::before { content: ''; position: absolute; inset: 0; z-index: -2; pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 20%, transparent 75%); }
.hiw-aurora { position: absolute; z-index: -1; pointer-events: none; border-radius: 50%; filter: blur(70px); will-change: transform; }
.hiw-aurora.a1 { width: 560px; height: 420px; top: -120px; right: -80px; background: radial-gradient(circle, rgba(16,185,129,0.30), transparent 65%);
    animation: hiwDrift1 14s ease-in-out infinite alternate; }
.hiw-aurora.a2 { width: 480px; height: 380px; bottom: -160px; left: -120px; background: radial-gradient(circle, rgba(52,211,153,0.16), transparent 65%);
    animation: hiwDrift2 18s ease-in-out infinite alternate; }
@keyframes hiwDrift1 { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-120px,80px,0) scale(1.15); } }
@keyframes hiwDrift2 { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(140px,-60px,0) scale(1.1); } }

.hiw-hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); gap: 56px; align-items: center; }
.hiw-eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px; border-radius: 999px;
    border: 1px solid rgba(16,185,129,0.3); background: rgba(16,185,129,0.08); color: var(--emerald);
    font-family: 'Space Grotesk'; font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 26px; }
.hiw-eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 0 rgba(16,185,129,0.6);
    animation: hiwPing 2.4s ease-out infinite; }
@keyframes hiwPing { 0% { box-shadow: 0 0 0 0 rgba(16,185,129,0.55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(16,185,129,0); } }
.hiw-hero h1 { font-family: 'Newsreader', Georgia, serif; font-weight: 700; font-size: clamp(38px, 4.6vw, 64px);
    line-height: 1.06; letter-spacing: -0.03em; color: var(--text); margin: 0 0 24px; -webkit-hyphens: manual; hyphens: manual; }
.hiw-hero h1 em { display: block; }
.hiw-hero .hiw-lead { margin-bottom: 36px; }
.hiw-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* product mockup: the builder, from search to a saved site (decorative, aria-hidden) */
.hiw-mock { position: relative; }
.hiw-mock::before { content: ''; position: absolute; inset: 8% 6% -6%; z-index: -1; border-radius: 32px;
    background: radial-gradient(ellipse at 50% 60%, rgba(16,185,129,0.28), transparent 70%); filter: blur(30px); }
.hiw-frame { position: relative; border-radius: 18px; border: 1px solid rgba(255,255,255,0.1); background: #0a0c0b;
    box-shadow: 0 40px 120px -30px rgba(0,0,0,0.9), 0 0 0 1px rgba(16,185,129,0.06) inset; overflow: hidden; }
.hiw-bar { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px; border-bottom: 1px solid rgba(255,255,255,0.07); background: #0d100f; }
.hiw-dots { display: flex; gap: 6px; }
.hiw-dots span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.14); }
.hiw-url { position: relative; flex: 1; height: 24px; border-radius: 8px; background: rgba(255,255,255,0.05); overflow: hidden;
    font-family: 'Space Grotesk'; font-size: 11.5px; color: rgba(235,235,235,0.6); }
.hiw-url span { position: absolute; inset: 0; display: flex; align-items: center; gap: 6px; padding: 0 10px; white-space: nowrap; }
.hiw-url svg { flex: none; }
.hiw-url .u2 { color: var(--emerald); opacity: 0; }
.hiw-stage { position: relative; aspect-ratio: 16 / 11.5; }
.hiw-layer { position: absolute; inset: 0; padding: 26px; }

/* layer 1: search form */
.hiw-l-form { display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.hiw-l-form .lbl { font-family: 'Space Grotesk'; font-size: 12px; font-weight: 600; color: var(--text); text-align: center; letter-spacing: 0.02em; }
.hiw-field-row { display: grid; grid-template-columns: 1fr 0.8fr; gap: 10px; }
.hiw-field { height: 46px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.03);
    display: flex; align-items: center; padding: 0 14px; font-size: 14px; color: var(--text); overflow: hidden; white-space: nowrap; }
.hiw-field.f1 { border-color: rgba(16,185,129,0.5); box-shadow: 0 0 0 3px rgba(16,185,129,0.12); }
.hiw-typed { display: inline-block; overflow: hidden; white-space: nowrap; vertical-align: bottom; max-width: 24ch; }
.hiw-caret { display: inline-block; width: 2px; height: 18px; background: var(--emerald); margin-left: 2px; vertical-align: middle; animation: hiwBlink 1s steps(1) infinite; }
@keyframes hiwBlink { 50% { opacity: 0; } }
.hiw-gen { height: 46px; border-radius: 999px; background: var(--emerald); color: var(--bg); display: flex; align-items: center; justify-content: center;
    gap: 8px; font-family: 'Space Grotesk'; font-weight: 700; font-size: 14px; transform-origin: center; }
.hiw-hint { font-size: 11.5px; color: var(--text-dim); text-align: center; }

/* layer 2: generating */
.hiw-l-build { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; opacity: 0; }
.hiw-orb { width: 74px; height: 74px; border-radius: 50%; border: 2px solid rgba(16,185,129,0.18); border-top-color: var(--emerald);
    animation: hiwSpin 0.9s linear infinite; }
@keyframes hiwSpin { to { transform: rotate(360deg); } }
.hiw-build-txt { font-family: 'Space Grotesk'; font-size: 13px; font-weight: 600; color: var(--text); }
.hiw-progress { width: 70%; height: 6px; border-radius: 99px; background: rgba(255,255,255,0.07); overflow: hidden; }
.hiw-progress i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #10b981, #6ee7b7); transform-origin: left; transform: scaleX(0); }
.hiw-build-list { display: grid; gap: 6px; font-size: 11.5px; color: var(--text-dim); }
.hiw-build-list span::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); margin-right: 8px; vertical-align: middle; }

/* layer 3: the generated site */
.hiw-l-site { padding: 0; opacity: 0; }
.hiw-site { position: absolute; inset: 0; display: grid; grid-template-rows: auto 1fr auto; background: #0e1110; }
.hiw-site-nav { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.hiw-site-logo { font-family: 'Newsreader', serif; font-weight: 700; font-size: 15px; color: #f3efe6; }
.hiw-site-links { display: flex; gap: 10px; }
.hiw-site-links i { display: block; width: 34px; height: 6px; border-radius: 4px; background: rgba(255,255,255,0.14); }
.hiw-site-hero { position: relative; margin: 12px 14px 0; border-radius: 12px; overflow: hidden; padding: 22px 20px;
    background: radial-gradient(circle at 80% 20%, rgba(250,204,21,0.35), transparent 45%), linear-gradient(135deg, #3b2a1a 0%, #7c4a22 55%, #c9873e 100%); }
.hiw-site-hero b { display: block; font-family: 'Newsreader', serif; font-size: 22px; line-height: 1.1; color: #fff8ec; margin-bottom: 8px; max-width: 70%; }
.hiw-site-hero i { display: block; height: 6px; border-radius: 4px; background: rgba(255,248,236,0.55); margin-bottom: 6px; }
.hiw-site-hero i.w1 { width: 58%; } .hiw-site-hero i.w2 { width: 42%; }
.hiw-site-hero u { display: inline-block; margin-top: 10px; width: 92px; height: 24px; border-radius: 999px; background: #fff8ec; }
.hiw-stars { position: absolute; right: 16px; bottom: 14px; display: flex; gap: 3px; }
.hiw-stars svg { width: 12px; height: 12px; fill: #facc15; }
.hiw-site-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 12px 14px; }
.hiw-site-cards div { border-radius: 10px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); padding: 10px; }
.hiw-site-cards div::before { content: ''; display: block; height: 34px; border-radius: 7px; margin-bottom: 8px;
    background: linear-gradient(135deg, rgba(201,135,62,0.55), rgba(124,74,34,0.4)); }
.hiw-site-cards div::after { content: ''; display: block; height: 5px; width: 70%; border-radius: 3px; background: rgba(255,255,255,0.14); }
.hiw-save { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
    background: var(--emerald); color: var(--bg); font-family: 'Space Grotesk'; font-weight: 700; font-size: 12.5px;
    box-shadow: 0 10px 30px rgba(16,185,129,0.45); }
.hiw-save svg { width: 14px; height: 14px; }

/* the 10s loop: type, generate, reveal, save */
.hiw-mock .hiw-typed.t1 { animation: hiwType1 10s steps(14, end) infinite; }
.hiw-mock .hiw-typed.t2 { animation: hiwType2 10s steps(8, end) infinite; }
.hiw-mock .hiw-gen { animation: hiwPress 10s ease infinite; }
.hiw-mock .hiw-l-form { animation: hiwForm 10s ease infinite; }
.hiw-mock .hiw-l-build { animation: hiwBuild 10s ease infinite; }
.hiw-mock .hiw-progress i { animation: hiwProg 10s cubic-bezier(.4,0,.2,1) infinite; }
.hiw-mock .hiw-l-site { animation: hiwSite 10s ease infinite; }
.hiw-mock .hiw-site-hero, .hiw-mock .hiw-site-cards { animation: hiwRise 10s cubic-bezier(.16,1,.3,1) infinite; }
.hiw-mock .hiw-site-cards { animation-name: hiwRise2; }
.hiw-mock .hiw-save { animation: hiwSave 10s cubic-bezier(.16,1,.3,1) infinite; }
.hiw-mock .hiw-url .u1 { animation: hiwU1 10s ease infinite; }
.hiw-mock .hiw-url .u2 { animation: hiwU2 10s ease infinite; }
@keyframes hiwType1 { 0%, 3% { max-width: 0; } 15%, 100% { max-width: 16ch; } }
@keyframes hiwType2 { 0%, 16% { max-width: 0; } 23%, 100% { max-width: 10ch; } }
@keyframes hiwPress { 0%, 26% { transform: scale(1); } 28% { transform: scale(0.94); } 30%, 100% { transform: scale(1); } }
@keyframes hiwForm { 0%, 30% { opacity: 1; transform: none; } 34%, 96% { opacity: 0; transform: translateY(-10px); } 100% { opacity: 1; transform: none; } }
@keyframes hiwBuild { 0%, 31% { opacity: 0; } 35%, 52% { opacity: 1; } 56%, 100% { opacity: 0; } }
@keyframes hiwProg { 0%, 34% { transform: scaleX(0); } 52%, 100% { transform: scaleX(1); } }
@keyframes hiwSite { 0%, 53% { opacity: 0; } 57%, 94% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes hiwRise { 0%, 54% { transform: translateY(18px); } 62%, 100% { transform: none; } }
@keyframes hiwRise2 { 0%, 57% { transform: translateY(22px); } 66%, 100% { transform: none; } }
@keyframes hiwSave { 0%, 68% { transform: translateY(14px) scale(0.9); opacity: 0; } 73% { transform: none; opacity: 1; } 80% { transform: scale(1.06); } 84%, 100% { transform: none; opacity: 1; } }
@keyframes hiwU1 { 0%, 53% { opacity: 1; } 57%, 94% { opacity: 0; } 98%, 100% { opacity: 1; } }
@keyframes hiwU2 { 0%, 53% { opacity: 0; } 57%, 94% { opacity: 1; } 98%, 100% { opacity: 0; } }
.is-paused, .is-paused * { animation-play-state: paused !important; }

/* quick answer + key numbers (part of the hero) */
.hiw-answer { position: relative; margin-top: 72px; border-radius: 24px; padding: 1px; isolation: isolate;
    background: linear-gradient(var(--bg), var(--bg)) padding-box, conic-gradient(from var(--hiw-a, 0deg), rgba(16,185,129,0.6), rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.06) 60%, rgba(16,185,129,0.6)) border-box;
    border: 1px solid transparent; animation: hiwSpinBorder 8s linear infinite; }
@property --hiw-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes hiwSpinBorder { to { --hiw-a: 360deg; } }
.hiw-answer-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 34px 38px;
    border-radius: 23px; background: linear-gradient(160deg, rgba(16,185,129,0.09), rgba(16,185,129,0.015) 45%, #0b0d0c 80%); }
.hiw-answer .answer-q { font-family: 'Space Grotesk'; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--emerald); margin-bottom: 10px; }
.hiw-answer p { font-size: 15.5px; line-height: 1.75; color: var(--text-dim); margin: 0 0 14px; }
.hiw-answer p strong { color: var(--text); }
.hiw-answer p:last-child { margin-bottom: 0; }
.hiw-answer .answer-cta { display: inline-flex; align-items: center; gap: 8px; font-family: 'Space Grotesk'; font-weight: 700; font-size: 14px;
    color: var(--bg) !important; background: var(--emerald); padding: 11px 22px; border-radius: 999px; text-decoration: none !important; }
.hiw-answer .answer-cta:hover { background: #34d399; }
.hiw-stats { display: grid; gap: 12px; }
.hiw-stat { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 14px 18px; border-radius: 14px;
    border: 1px solid var(--hiw-line); background: rgba(255,255,255,0.02); }
.hiw-stat b { font-family: 'Space Grotesk'; font-size: 26px; font-weight: 700; color: var(--emerald); letter-spacing: -0.02em; white-space: nowrap; min-width: 5.2ch; }
.hiw-stat span { font-size: 13.5px; line-height: 1.5; color: var(--text-dim); }

/* ================= STEPS (timeline) ================= */
.hiw-steps-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 72px; align-items: start; }
.hiw-steps-side { position: sticky; top: 112px; }
.hiw-count { display: flex; align-items: baseline; gap: 10px; margin: 30px 0 30px; font-family: 'Space Grotesk'; font-weight: 700; }
.hiw-count b { font-size: 88px; line-height: 1; letter-spacing: -0.04em; color: transparent;
    -webkit-text-stroke: 1.5px rgba(16,185,129,0.85); background: linear-gradient(180deg, rgba(16,185,129,0.35), rgba(16,185,129,0)); -webkit-background-clip: text; background-clip: text; }
.hiw-count span { font-size: 22px; color: var(--text-muted); }
.hiw-steps-note { font-size: 15px; line-height: 1.7; color: var(--text-dim); margin-top: 8px; max-width: 420px; }
.hiw-tl { position: relative; }
.hiw-timeline { list-style: none; margin: 0; padding: 0 0 0 64px; }
.hiw-rail { position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; background: rgba(255,255,255,0.07); border-radius: 2px; overflow: hidden; }
.hiw-rail-fill { position: absolute; inset: 0; background: linear-gradient(180deg, #34d399, #10b981 60%, rgba(16,185,129,0.4)); transform-origin: top; transform: scaleY(0);
    box-shadow: 0 0 18px rgba(16,185,129,0.7); }
.hiw-step { position: relative; margin: 0 0 20px; }
.hiw-step:last-child { margin-bottom: 0; }
.hiw-node { position: absolute; left: -64px; top: 18px; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-family: 'Space Grotesk'; font-weight: 700; font-size: 14px; color: var(--text-dim); background: #0b0d0c; border: 1px solid rgba(255,255,255,0.12);
    transition: color .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease), background .5s var(--ease); }
.hiw-card { position: relative; border-radius: 20px; border: 1px solid var(--hiw-line); background: var(--hiw-card); padding: 26px 28px;
    transition: border-color .6s var(--ease), transform .6s var(--ease), box-shadow .6s var(--ease); overflow: hidden; }
.hiw-card::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .6s var(--ease);
    background: radial-gradient(ellipse 60% 80% at 0% 0%, rgba(16,185,129,0.12), transparent 70%); }
.hiw-step.is-on .hiw-node { color: var(--bg); background: var(--emerald); border-color: var(--emerald); box-shadow: 0 0 0 6px rgba(16,185,129,0.14), 0 0 24px rgba(16,185,129,0.55); }
.hiw-step.is-on .hiw-card { border-color: rgba(16,185,129,0.28); }
.hiw-step.is-on .hiw-card::before { opacity: 1; }
.hiw-card:hover { transform: translateY(-3px); box-shadow: 0 20px 50px -20px rgba(0,0,0,0.8); }
.hiw-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.hiw-ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
    background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.22); color: var(--emerald); }
.hiw-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hiw-card h3 { font-family: 'Newsreader', Georgia, serif; font-weight: 700; font-size: 22px; line-height: 1.25; color: var(--text); margin: 0; }
.hiw-card p { font-size: 15px; line-height: 1.75; color: var(--text-dim); margin: 0; }

/* edit-chat mockup inside the editing step */
.hiw-chat { margin-top: 18px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.08); background: #080a09; padding: 14px; display: grid; gap: 8px; }
.hiw-chat .msg { max-width: 82%; padding: 9px 13px; border-radius: 14px; font-size: 13px; line-height: 1.45; }
.hiw-chat .me { justify-self: end; background: var(--emerald); color: var(--bg); border-bottom-right-radius: 4px; font-weight: 500; }
.hiw-chat .bot { justify-self: start; background: rgba(255,255,255,0.06); color: var(--text); border-bottom-left-radius: 4px; display: inline-flex; align-items: center; gap: 8px; }
.hiw-chat .bot svg { width: 14px; height: 14px; fill: none; stroke: var(--emerald); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.hiw-chat .dots { justify-self: start; display: inline-flex; gap: 4px; padding: 11px 13px; border-radius: 14px; background: rgba(255,255,255,0.06); }
.hiw-chat .dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(235,235,235,0.5); animation: hiwDot 1.2s ease-in-out infinite; }
.hiw-chat .dots i:nth-child(2) { animation-delay: .15s; } .hiw-chat .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes hiwDot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
/* chat loop: question rises, typing dots, answer; each row keeps its box so nothing shifts */
.hiw-chat[data-hiw-loop] .me { animation: hiwMsg1 7s cubic-bezier(.16,1,.3,1) infinite; }
.hiw-chat[data-hiw-loop] .dots { animation: hiwMsg2 7s ease infinite; }
.hiw-chat[data-hiw-loop] .bot { animation: hiwMsg3 7s cubic-bezier(.16,1,.3,1) infinite; }
.hiw-chat-swap { display: grid; }
.hiw-chat-swap > * { grid-area: 1 / 1; }
@keyframes hiwMsg1 { 0%, 4% { opacity: 0; transform: translateY(8px); } 10%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes hiwMsg2 { 0%, 14% { opacity: 0; } 18%, 38% { opacity: 1; } 42%, 100% { opacity: 0; } }
@keyframes hiwMsg3 { 0%, 40% { opacity: 0; transform: translateY(8px); } 46%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* ================= INCLUDED ================= */
.hiw-head { max-width: 720px; margin-bottom: 48px; }
.hiw-inc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.hiw-plan { position: relative; border-radius: 24px; border: 1px solid var(--hiw-line); background: var(--hiw-card); padding: 32px; overflow: hidden; }
.hiw-plan.paid { border-color: rgba(16,185,129,0.35); background: linear-gradient(165deg, rgba(16,185,129,0.12), rgba(16,185,129,0.02) 50%, #0b0d0c); }
.hiw-plan.paid::after { content: ''; position: absolute; top: -120px; right: -120px; width: 280px; height: 280px; border-radius: 50%;
    background: radial-gradient(circle, rgba(16,185,129,0.25), transparent 70%); pointer-events: none; }
.hiw-plan h3 { font-family: 'Newsreader', Georgia, serif; font-weight: 700; font-size: 26px; line-height: 1.2; color: var(--text); margin: 0 0 22px; }
.hiw-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hiw-checks li { position: relative; padding-left: 34px; font-size: 15px; line-height: 1.6; color: var(--text-dim); }
.hiw-checks li::before { content: ''; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
    background: rgba(16,185,129,0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.hiw-not { margin-top: 20px; border-radius: 24px; border: 1px solid rgba(245,158,11,0.22); background: linear-gradient(165deg, rgba(245,158,11,0.06), #0b0d0c 60%); padding: 32px; }
.hiw-not h2 { font-size: clamp(26px, 2.6vw, 34px); margin-bottom: 20px; }
.hiw-xs { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.hiw-xs li { position: relative; padding-left: 34px; font-size: 15px; line-height: 1.7; color: var(--text-dim); }
.hiw-xs li::before { content: ''; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
    background: rgba(245,158,11,0.13) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f59e0b' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center / 11px no-repeat; }

/* ================= IF YOU LEAVE ================= */
.hiw-leave { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hiw-leave-quote { position: relative; border-radius: 28px; padding: 44px 40px; overflow: hidden;
    background: radial-gradient(ellipse at 100% 0%, rgba(16,185,129,0.22), transparent 60%), #0b0d0c; border: 1px solid rgba(16,185,129,0.25); }
.hiw-leave-quote p { font-family: 'Newsreader', Georgia, serif; font-size: clamp(26px, 2.7vw, 36px); line-height: 1.2; color: var(--text); margin: 0; }
.hiw-leave-quote p strong { font-weight: 700; }
.hiw-key { display: flex; align-items: center; gap: 12px; margin-top: 28px; font-family: 'Space Grotesk'; font-size: 13px; color: var(--emerald); }
.hiw-key svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hiw-leave-body p { font-size: 16px; line-height: 1.8; color: var(--text-dim); margin: 0 0 16px; }

/* ================= PRICE ================= */
.hiw-price-card { border-radius: 24px; border: 1px solid var(--hiw-line); background: var(--hiw-card); overflow: hidden; }
.hiw-price-card table { width: 100%; border-collapse: collapse; font-size: 15px; }
.hiw-price-card th, .hiw-price-card td { text-align: left; vertical-align: top; padding: 18px 26px; border-bottom: 1px solid var(--hiw-line); line-height: 1.55; color: var(--text-dim); }
.hiw-price-card th { font-family: 'Space Grotesk'; font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); background: rgba(255,255,255,0.02); }
.hiw-price-card tr:last-child td { border-bottom: 0; }
.hiw-price-card td:first-child { color: var(--text); }
.hiw-price-card td:last-child { font-family: 'Space Grotesk'; font-weight: 600; color: var(--emerald); text-align: right; }
.hiw-price-card th:last-child { text-align: right; }
.hiw-price-card tbody tr { transition: background .3s; }
.hiw-price-card tbody tr:hover { background: rgba(16,185,129,0.04); }
.hiw-note { font-size: 14px; color: var(--text-muted); margin-top: 16px; line-height: 1.6; }

/* ================= TRADES ================= */
.hiw-trades p { font-size: 16px; line-height: 1.8; color: var(--text-dim); max-width: 860px; }
.hiw-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hiw .hiw-chips a, .hiw-chips .hiw-chip { display: inline-flex; align-items: center; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--border);
    color: var(--text); text-decoration: none; font-size: 14px; background: rgba(255,255,255,0.02); }
.hiw .hiw-chips a:hover { border-color: var(--border-hover); color: var(--emerald); transform: translateY(-2px); }

/* ================= FAQ ================= */
.hiw-faq-grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 64px; align-items: start; }
.hiw-faq-side { position: sticky; top: 112px; }
.hiw-faq { display: grid; gap: 12px; }
.hiw-faq details { border-radius: 16px; border: 1px solid var(--hiw-line); background: var(--hiw-card); transition: border-color .3s, background .3s; }
.hiw-faq details[open] { border-color: rgba(16,185,129,0.3); background: linear-gradient(165deg, rgba(16,185,129,0.06), #0b0d0c 60%); }
.hiw-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 24px; }
.hiw-faq summary::-webkit-details-marker { display: none; }
.hiw-faq summary h3 { font-family: 'Newsreader', Georgia, serif; font-weight: 700; font-size: 19px; line-height: 1.35; color: var(--text); margin: 0; }
.hiw-faq summary::after { content: ''; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 13px no-repeat;
    transition: transform .35s var(--ease); }
.hiw-faq details[open] summary::after { transform: rotate(45deg); }
.hiw-faq summary:focus-visible { outline: 2px solid var(--emerald); outline-offset: 2px; border-radius: 16px; }
.hiw-faq details p { padding: 0 24px 22px; margin: 0; font-size: 15px; line-height: 1.75; color: var(--text-dim); }
.hiw-meta { margin-top: 36px; display: grid; gap: 8px; }
.hiw-meta .tp-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--text-dim); margin: 0; }
.hiw-meta .tp-line svg { flex: none; }
.hiw-meta .updated-line { font-size: 13px; color: var(--text-muted); margin: 0; line-height: 1.6; }

/* ================= RELATED ================= */
.hiw-related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hiw .hiw-related a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-radius: 14px;
    border: 1px solid var(--hiw-line); background: var(--hiw-card); color: var(--text); text-decoration: none; font-size: 14px; line-height: 1.45; }
.hiw .hiw-related a::after { content: ''; flex: none; width: 14px; height: 14px; opacity: .55;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .3s; }
.hiw .hiw-related a:hover { border-color: var(--border-hover); color: var(--emerald); }
.hiw .hiw-related a:hover::after { transform: translateX(3px); opacity: 1; }

/* ================= FINAL CTA ================= */
.hiw-cta { position: relative; overflow: hidden; isolation: isolate; text-align: center; border-radius: 32px; margin: 0 auto; padding: 88px 48px;
    border: 1px solid rgba(16,185,129,0.25); background: radial-gradient(ellipse 80% 90% at 50% 120%, rgba(16,185,129,0.28), transparent 60%), #070908; }
.hiw-cta::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse at 50% 100%, #000, transparent 70%); mask-image: radial-gradient(ellipse at 50% 100%, #000, transparent 70%); }
.hiw-cta h2 { max-width: 760px; margin: 0 auto 18px; }
.hiw-cta p { max-width: 680px; margin: 0 auto 34px; font-size: 16.5px; line-height: 1.75; color: var(--text-dim); }
.hiw-cta-section { padding: 40px 0 120px; }

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
    .hiw-hero-grid { grid-template-columns: 1fr; gap: 48px; }
    .hiw-mock { max-width: 620px; }
    .hiw-steps-grid, .hiw-faq-grid { grid-template-columns: 1fr; gap: 32px; }
    .hiw-steps-side, .hiw-faq-side { position: static; }
    .hiw-count { display: none; }
    .hiw-answer-in { grid-template-columns: 1fr; gap: 24px; }
    .hiw-leave { grid-template-columns: 1fr; gap: 32px; }
    .hiw-related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .hiw-wrap { padding: 0 20px; }
    .hiw-section { padding: 80px 0; }
    .hiw-hero { padding: 48px 0 64px; }
    .hiw-hero h1 { font-size: clamp(34px, 9vw, 44px); }
    .hiw-eyebrow { margin-bottom: 20px; }
    .hiw-actions .hiw-btn { flex: 1 1 100%; justify-content: center; }
    .hiw-layer { padding: 16px; }
    .hiw-l-form { gap: 10px; }
    .hiw-field { height: 40px; font-size: 13px; padding: 0 10px; }
    .hiw-gen { height: 40px; font-size: 13px; }
    .hiw-site-hero { padding: 16px 14px; }
    .hiw-site-hero b { font-size: 17px; }
    .hiw-site-cards div::before { height: 22px; }
    .hiw-save { padding: 8px 12px; font-size: 11.5px; }
    .hiw-answer { margin-top: 48px; }
    .hiw-answer-in { padding: 24px 20px; }
    .hiw-stat b { font-size: 22px; }
    .hiw-timeline { padding-left: 52px; }
    .hiw-rail { left: 17px; }
    .hiw-node { left: -52px; width: 36px; height: 36px; font-size: 13px; top: 20px; }
    .hiw-card { padding: 22px 20px; }
    .hiw-card h3 { font-size: 20px; }
    .hiw-inc-grid { grid-template-columns: 1fr; }
    .hiw-plan, .hiw-not { padding: 26px 22px; }
    .hiw-leave-quote { padding: 32px 26px; }
    .hiw-price-card th, .hiw-price-card td { padding: 14px 16px; font-size: 14px; }
    .hiw-faq summary { padding: 18px 18px; }
    .hiw-faq summary h3 { font-size: 17px; }
    .hiw-faq details p { padding: 0 18px 20px; }
    .hiw-related { grid-template-columns: 1fr; }
    .hiw-cta { padding: 56px 22px; border-radius: 24px; }
    .hiw-cta-section { padding: 16px 0 80px; }
}

/* reduced motion: no loops, mockup frozen on its final frame (the saved site) */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hiw *, .hiw *::before, .hiw *::after { animation: none !important; transition: none !important; }
    .hiw-mock .hiw-l-form, .hiw-mock .hiw-l-build { opacity: 0; }
    .hiw-mock .hiw-l-site { opacity: 1; }
    .hiw-mock .hiw-url .u1 { opacity: 0; }
    .hiw-mock .hiw-url .u2 { opacity: 1; }
    .hiw-mock .hiw-save { opacity: 1; transform: none; }
    .hiw-chat .dots { display: none; }
    .hiw-rail-fill { transform: scaleY(1) !important; }
}

/* in-page targets clear the sticky nav (73px) */
.hiw [id] { scroll-margin-top: 96px; }
