/* Landing additions. Static content first; animation is gated by motion.js's html.m. */
.skip-link { position: fixed; inset-block-start: 8px; inset-inline-start: 8px; z-index: 2000; padding: 12px 18px; background: #fff; color: var(--primary); border-radius: 8px; translate: 0 -160%; }
.skip-link:focus { translate: 0; outline: 3px solid var(--primary); }
.hero-tools-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; color: #d7cbfb; font-size: 13px; font-weight: 500; text-underline-offset: 4px; }
.hero-tools-link:hover { text-decoration: underline; }
.hero-tools-link > span:first-child { display: grid; place-items: center; width: 21px; height: 21px; border: 1px solid #75649c; border-radius: 50%; color: #ff9a4d; }
.hero .wrap { max-width: 1320px; }
.hero-grid { gap: 38px; }
.hero-visual { position: relative; isolation: isolate; flex: 0 0 46%; min-width: 0; }
.hero-story { position: relative; width: 100%; aspect-ratio: 1.02; }
.hero-network { position: absolute; width: 110%; aspect-ratio: 1; inset-inline-start: -5%; top: -10%; pointer-events: none; -webkit-mask-image: radial-gradient(ellipse, #000 59%, transparent 73%); mask-image: radial-gradient(ellipse, #000 59%, transparent 73%); }
.hero-network img, .hero-network video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.hero-network-video { opacity: 0; }
.hero-network-video.is-ready { opacity: 1; }
.hero-visual .opp-card { position: relative; z-index: 1; max-width: 430px; margin: 0 auto; padding: 18px 22px; display: grid; grid-template-columns: 1fr auto; gap: 0 18px; }
.hero-visual .opp-top, .hero-visual .opp-title { grid-column: 1 / -1; }
.hero-visual .opp-title { font-size: 16px; }
.hero-visual .opp-meta { grid-column: 1; grid-row: 3; margin-bottom: 8px; flex-wrap: wrap; }
.hero-visual .opp-vals { grid-column: 1 / -1; grid-row: 4; padding: 10px 0; gap: 36px; }
.hero-visual .opp-rewards { grid-column: 1 / -1; grid-row: 5; margin: 12px 0 0; }
.hero-visual .opp-actions { grid-column: 2; grid-row: 3; align-self: start; gap: 5px; }
.hero-visual .opp-actions .btn { padding: 5px 10px; font-size: 11px; }
.hero-visual .opp-card .btn-ghost { color: var(--ink); border-color: var(--hairline-strong); }
.hero-visual .opp-card .btn-ghost:hover { background: var(--surface); }
html.m #view-landing .btn { transition: background var(--m-fast) var(--m-ease), box-shadow var(--m-fast) var(--m-ease), translate var(--m-fast) var(--m-ease); }
html.m #view-landing .btn:focus-visible { outline: 3px solid #a594f5; outline-offset: 4px; }
.network-label { position: absolute; z-index: 2; display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 600; padding: 8px 13px 8px 8px; border: 1px solid rgba(196,177,247,.26); border-radius: 12px; color: #e6e0f5; background: #15203b; box-shadow: 0 12px 28px -12px #000; }
.network-label b { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 7px; background: #e6e0f5; color: #37277d; font-size: 10px; }
.network-label-learn { top: 6%; left: 3%; }
.network-label-build { top: 28%; right: -1%; color: #d9f3e1; }
.network-label-build b { background: #d9f3e1; color: #12533d; }
.network-label-earn { bottom: 23%; left: 2%; color: #ffbc9f; border-color: rgba(255,90,43,.35); }
.network-label-earn b { background: #ff5a2b; color: #0a1530; }
.hero-story-controls { position: absolute; bottom: 2%; inset-inline: 10%; display: flex; align-items: center; gap: 20px; height: 34px; }
.hero-story-progress { height: 2px; background: #283453; flex: 1; overflow: hidden; }
.hero-story-progress i { display: block; width: 100%; height: 100%; background: #c4b1f7; transform: scaleX(var(--story-progress, 1)); transform-origin: left; }
[dir="rtl"] .hero-story-progress i { transform-origin: right; }
.motion-control { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: #c4b8df; font: inherit; font-size: 11px; cursor: pointer; white-space: nowrap; padding: 8px 0; min-height: 34px; }
.motion-control[hidden] { display: none; }
.motion-control svg { width: 13px; height: 13px; }
.motion-control:hover { color: #fff; }
.motion-control:focus-visible, .tool-link:focus-visible, .hero-tools-link:focus-visible { outline: 3px solid #a594f5; outline-offset: 5px; border-radius: 4px; }
.tools-band { background: var(--surface-soft); scroll-margin-top: 88px; }
.section-kicker { display: flex; align-items: center; gap: 9px; color: var(--primary-deep); font-size: 11px; letter-spacing: 1.3px; text-transform: uppercase; font-weight: 700; margin-bottom: 16px; }
.section-kicker > span:first-child { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 5px var(--tint-lavender); margin-inline: 5px; }
.tools-band > .wrap > .sub { max-width: 700px; margin-top: 16px; }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; margin-top: 36px; }
.tool-card { --tool-accent: #5645d4; --tool-tint: #e6e0f5; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--hairline); border-radius: 18px; overflow: hidden; background: #fff; }
.tool-writing { --tool-accent: #793400; --tool-tint: #ffe8d4; }
.tool-insights { --tool-accent: #18766c; --tool-tint: #d9f3e1; }
.tool-art { position: relative; background: var(--tool-tint); padding: 16px 10px 38px; overflow: hidden; }
.tool-art svg { display: block; width: 100%; height: auto; }
.tool-brand { height: 44px; margin: 10px 20px 14px; display: flex; align-items: center; justify-content: center; gap: 8px; direction: ltr; }
.tool-brand img { display: block; object-fit: contain; }
.tool-brand-n8n { color: #171521; font-size: 30px; font-weight: 700; letter-spacing: -1.5px; }
.tool-brand .writetone-logo { width: 174px; height: auto; }
.tool-brand-insights { color: #17685d; font-size: 16px; font-weight: 700; gap: 8px; letter-spacing: -.5px; }
.tool-brand-insights svg { width: 30px; height: 30px; flex: 0 0 30px; }
.tool-art-tag { position: absolute; bottom: 16px; inset-inline: 10px; text-align: center; font-size: 11px; color: var(--tool-accent); font-weight: 600; }
.tool-track { stroke: #5645d4; stroke-opacity: .16; stroke-width: 3; }
.tool-stroke { stroke: var(--tool-accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.tool-node > rect { fill: #fff; stroke: var(--tool-accent); stroke-opacity: .22; }
.tool-node > path { stroke: var(--tool-accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.tool-junction { fill: #ff5a2b; stroke: #e6e0f5; stroke-width: 4; }
.tool-paper { fill: #fff; stroke: #793400; stroke-opacity: .13; }
.tool-paper-line { stroke: #793400; stroke-opacity: .23; stroke-width: 3; stroke-linecap: round; }
.tool-highlight { stroke: #f5d75e; stroke-width: 13; opacity: .55; }
.tool-chart-grid { stroke: #18766c; stroke-opacity: .13; }
.tool-bars { fill: #2a9d99; fill-opacity: .22; }
.tool-copy { padding: 25px; display: flex; flex-direction: column; flex: 1; }
.tool-category { color: var(--tool-accent); font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 8px; }
.tool-copy h3 { font-size: 20px; letter-spacing: -.5px; line-height: 1.3; margin: 0 0 12px; }
.tool-copy p { color: var(--slate); font-size: 14px; line-height: 1.65; margin: 0 0 25px; }
.tool-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--tool-accent); font-size: 13px; font-weight: 600; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--hairline-soft); }
.tool-link > span:last-child { font-size: 20px; line-height: 1; }
[dir="rtl"] .tool-link > span:last-child, [dir="rtl"] .hero-tools-link > span:first-child { scale: -1 1; }
.tools-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 30px; }
.tools-plus { font-size: 14px; font-weight: 500; margin: 0 0 7px; }
.tools-note { color: var(--slate); font-size: 12px; line-height: 1.6; max-width: 610px; margin: 0; }
.tools-footer .btn { flex-shrink: 0; display: inline-flex; align-items: center; gap: 20px; }
/* The existing observer triggers this illustration with its card, once. */
html.m .tool-card.m-rv .tool-stroke { stroke-dashoffset: 1; transition: stroke-dashoffset var(--m-slow) var(--m-ease) var(--m-d,0s); }
html.m .tool-card.m-in .tool-stroke { stroke-dashoffset: 0; }
html.m .tool-card.m-rv .tool-bars { transform: scaleY(.45); transform-origin: center 128px; transition: transform var(--m-slow) var(--m-ease) var(--m-d,0s); }
html.m .tool-card.m-in .tool-bars { transform: none; }
html.m .network-label { transition: opacity var(--m-mid) var(--m-ease), translate var(--m-slow) var(--m-ease), border-color var(--m-mid) var(--m-ease), box-shadow var(--m-mid) var(--m-ease); }
html.m .is-story-running .network-label { opacity: .8; translate: 0 8px; }
html.m .is-story-running .network-label.is-cued { opacity: 1; translate: 0 0; border-color: #aa96df; box-shadow: 0 12px 28px -12px #000, 0 0 22px -10px #a594f5; }
@media (hover:hover) and (pointer:fine) {
  html.m .tool-card { transition: translate var(--m-fast) var(--m-ease), box-shadow var(--m-fast) var(--m-ease), border-color var(--m-fast) var(--m-ease); }
  html.m .tool-card.m-rv { transition: opacity var(--m-mid) var(--m-ease) var(--m-d,0s), transform var(--m-mid) var(--m-ease) var(--m-d,0s), translate var(--m-fast) var(--m-ease), box-shadow var(--m-fast) var(--m-ease), border-color var(--m-fast) var(--m-ease); }
  html.m .tool-card:hover { translate: 0 -4px; border-color: var(--tool-accent); box-shadow: 0 18px 35px -24px var(--tool-accent); }
  html.m .tool-link > span:last-child { transition: translate var(--m-fast) var(--m-ease); }
  html.m .tool-link:hover > span:last-child { translate: 3px -3px; }
  html.m[dir="rtl"] .tool-link:hover > span:last-child { translate: -3px -3px; }
  html.m .hero-visual:hover .network-label-learn { translate: -3px -3px; }
  html.m .hero-visual:hover .network-label-build { translate: 3px -3px; }
  html.m .hero-visual:hover .network-label-earn { translate: 0 3px; }
}
@media (min-width:981px) and (max-width:1150px) { .hero-grid { gap: 24px; } .hero-visual { flex-basis: 43%; } .hero h1 { font-size: 64px; } .network-label { font-size: 11px; } .hero-visual .opp-card { padding: 16px; gap: 0 8px; } }
@media (max-width:980px) { .hero-visual { display: block; width: min(100%, 540px); margin: 44px auto 0; } }
@media (max-width:820px) { .tool-grid { grid-template-columns: 1fr; gap: 20px; } .tool-card { flex-direction: row; } .tool-art { width: 38%; flex-shrink: 0; display: flex; flex-direction: column; justify-content: center; padding: 15px 5px 35px; } .tool-copy { padding: 24px; } }
@media (max-width:560px) { .tool-card { flex-direction: column; } .tool-art { width: 100%; padding: 8px 22px 34px; } .tool-art svg { max-width: 320px; margin-inline: auto; } .tool-copy { padding: 24px; } .tools-footer { flex-direction: column; align-items: flex-start; } .tools-footer .btn { width: 100%; justify-content: center; } .hero-tools-link { font-size: 12px; } }
@media (max-width:420px) { .network-label { font-size: 10px; gap: 6px; padding: 6px 8px 6px 6px; } .network-label b { width: 21px; height: 21px; } .network-label-build { right: -2%; } .hero-visual .opp-card { padding: 15px; gap: 0 8px; } .hero-visual .opp-title { font-size: 14px; } .hero-visual .opp-actions { grid-column: 1 / -1; grid-row: 6; margin-top: 12px; } .hero-visual .opp-meta { grid-column: 1 / -1; } .hero-visual .opp-rewards { gap: 6px; } }
@media (prefers-reduced-motion:reduce) {
  html.m .tool-card, html.m .tool-card.m-rv, html.m .tool-card .tool-stroke, html.m .tool-card .tool-bars, html.m .network-label, html.m .tool-link > span:last-child { transition: none; }
  html.m .tool-card .tool-stroke { stroke-dashoffset: 0; }
  html.m .tool-card .tool-bars, html.m .opp-card { transform: none; }
  html.m .tool-card:hover, html.m .hero-visual:hover .network-label, html.m .tool-link:hover > span:last-child { translate: none; }
  html.m #view-landing .btn { transition: none; }
  .hero-network-video, .motion-control { display: none; }
}
