/* Public acquisition pages. Scoped so product/admin and existing documentation keep their layout. */
.login-story { position: relative; isolation: isolate; }
.login-story .hero { min-height: 0; padding-block: 3rem 2.5rem; gap: 2.5rem; }
.login-story .hero-copy { max-width: 38rem; }
.login-story .hero h1 { font-size: clamp(3rem, 4.7vw, 5.4rem); line-height: 1.04; }
.login-story .hero-text { line-height: 1.65; }
.login-story .hero-stage { min-height: 34rem; }
.brand-preview { width: min(25rem, 100%); position: relative; z-index: 2; scroll-margin-top: 3rem; border-radius: 1.5rem; }
.brand-preview:focus-visible, .brand-preview:target { outline: 2px solid var(--accent); outline-offset: 12px; }
.preview-caption, .preview-finish { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; gap: .6rem; text-align: center; font-weight: 500; line-height: 1.5; color: var(--text); animation: none; transform: none; }
.preview-caption { margin-bottom: 3rem; font-size: .875rem; letter-spacing: .06em; }
.preview-dot { width: .4rem; height: .4rem; flex-shrink: 0; border-radius: 50%; background: #a5c99b; box-shadow: 0 0 1rem #9fb48c55; }
.preview-finish { margin-top: 2rem; font-size: 1rem; }
.preview-finish i { color: var(--accent); flex-shrink: 0; }
/* Only the form floats. Product captions stay on the stationary preview wrapper. */
.stage-login .orbit-copy { display: grid; }
@supports (offset-path: ellipse(50% 50% at 50% 50%)) {
  /* Six small native motion paths; no JS frame loop. Four minutes per clockwise
     lap, identical in either theme. The text sits outwards from its moving dot,
     rather than rotating or crossing the card and the stationary captions. */
  .login-story .stage-login .orbit-slot {
    top: 0; left: 0; width: 0; height: 0; transform: none;
    offset-path: ellipse(calc(50% - 4rem) calc(50% + 4.5rem) at 50% 50%);
    offset-anchor: 0 0; offset-rotate: 0deg; offset-distance: var(--orbit-start);
    animation: login-feature-orbit 240s linear var(--orbit-phase) infinite,
      login-feature-light 240s ease-in-out var(--orbit-phase) infinite;
  }
  .stage-login .s1 { --orbit-start: 58.333333%; --orbit-phase: -140s; --label-rest: translate(calc(-100% - 1rem), -75%); }
  .stage-login .s2 { --orbit-start: 41.666667%; --orbit-phase: -100s; --label-rest: translate(calc(-100% - 1rem), -25%); }
  .stage-login .s3 { --orbit-start: 91.666667%; --orbit-phase: -220s; --label-rest: translate(1rem, -75%); }
  .stage-login .s4 { --orbit-start: 8.333333%; --orbit-phase: -20s; --label-rest: translate(1rem, -25%); }
  .stage-login .s5 { --orbit-start: 75%; --orbit-phase: -180s; --label-rest: translate(-50%, calc(-100% - 1rem)); }
  .stage-login .s7 { --orbit-start: 25%; --orbit-phase: -60s; --label-rest: translate(-50%, 1rem); }
  .stage-login .orbit-slot::before { content: ""; position: absolute; top: -.22rem; left: -.22rem; width: .44rem; height: .44rem; border-radius: 50%; background: var(--accent); opacity: .65; }
  .stage-login .orbit-copy { position: absolute; top: 0; left: 0; width: max-content; transform: var(--label-rest); animation: login-feature-label 240s linear var(--orbit-phase) infinite; }
  .login-story .stage-login .orbit-chip { color: var(--muted); text-shadow: none; animation-name: login-feature-cycle; }
  .stage-login .orbit-chip::before { display: none; }
}
@keyframes login-feature-orbit { from { offset-distance: 0%; } to { offset-distance: 100%; } }
@keyframes login-feature-label {
  0%, 14%, 86%, 100% { transform: translate(1rem, -50%); }
  22%, 28% { transform: translate(-50%, 1rem); }
  36%, 64% { transform: translate(calc(-100% - 1rem), -50%); }
  72%, 78% { transform: translate(-50%, calc(-100% - 1rem)); }
}
@keyframes login-feature-light {
  0%, 100% { opacity: .55; }
  25% { opacity: .28; }
  50% { opacity: .55; }
  70%, 80% { opacity: .9; }
}
@keyframes login-feature-cycle { 0%, 33%, 100% { opacity: 0; } 8%, 25% { opacity: 1; } }
/* Preserve the uncluttered compact layout; the outward labels need desktop room. */
@media (max-width: 100rem) { .login-story .stage-login .hero-orbits { display: none; } }
.hero-aside .northstar-login {
  --brand-accent: #285c46; --brand-paper: #f3f2e9; --brand-ink: #233e32;
  --brand-wash: #adc4b2; --brand-detail: #d9b985; --brand-font: Georgia, serif;
  display: block; width: 100%; padding: .7rem; background: var(--brand-paper);
  border: 1px solid var(--brand-wash); border-radius: 1.1rem; color: var(--brand-ink);
  box-shadow: 0 24px 85px #02080e55;
}
.brand-preview:hover .northstar-login, .brand-preview:focus-within .northstar-login { animation-play-state: paused; }
.northstar-banner { height: 6.3rem; border-radius: .65rem .65rem .2rem .2rem; overflow: hidden; background: var(--brand-wash); }
.northstar-banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.northstar-body { display: grid; gap: .7rem; padding: 1.25rem 1rem .6rem; text-align: left; }
.northstar-wordmark { display: flex; align-items: center; gap: .55rem; color: var(--brand-ink); letter-spacing: .14em; font-weight: 700; font-size: .69rem; margin-bottom: .3rem; }
.brand-symbol { width: .65rem; height: .65rem; border-radius: 2px; flex-shrink: 0; background: var(--brand-accent); }
.northstar-login .mock-title { color: var(--brand-ink); font-family: var(--brand-font); font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.2; margin: 0; }
.northstar-intro { color: var(--brand-accent); margin: 0 0 .55rem; font-size: .8rem; line-height: 1.5; }
.preview-field-label { font-size: .74rem; color: var(--brand-ink); }
.northstar-login .mock-field { width: 100%; min-width: 0; color: var(--brand-ink); background: #ffffff99; border-color: var(--brand-wash); text-align: left; font-size: .85rem; border-radius: .4rem; }
.northstar-login .mock-field::placeholder { color: var(--brand-accent); opacity: 1; }
.northstar-login .mock-field:focus { outline: 2px solid var(--brand-accent); outline-offset: 2px; border-color: var(--brand-accent); box-shadow: none; }
.northstar-login .mock-primary { display: flex; align-items: center; justify-content: center; gap: .65rem; background: var(--brand-accent); color: #ffffff; border-radius: .4rem; font-size: .87rem; }
.northstar-login .mock-primary:hover { background: var(--brand-ink); }
.northstar-login .mock-secondary { color: var(--brand-ink); border-color: var(--brand-wash); border-radius: .4rem; font-size: .8rem; }
.northstar-login .mock-secondary:hover { border-color: var(--brand-accent); }
.northstar-login .mock-foot { font-size: .63rem; line-height: 1.5; text-align: center; color: var(--brand-accent); margin: .25rem 0 0; }
.northstar-login a:focus-visible, .northstar-login button:focus-visible { outline: 2px solid var(--brand-accent); outline-offset: 3px; }
.northstar-login[data-brand-layout="minimal"] { border-radius: .45rem; }
.northstar-login[data-brand-layout="minimal"] .northstar-banner, .northstar-login[data-brand-layout="minimal"] .mock-primary { border-radius: 0; }
.northstar-login[data-brand-layout="shop"] .brand-symbol { border-radius: 50%; }
.northstar-login[data-brand-layout="product"] .mock-title { font-weight: 650; }
.login-story-steps, .landing-section, .landing-hero { width: min(var(--container), calc(100% - var(--space-page) * 2)); margin-inline: auto; }
.login-story-steps { padding-block: 2rem 3rem; position: relative; z-index: 1; }
.story-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1.8rem; }
.story-heading .eyebrow { font-size: .67rem; letter-spacing: .12em; margin-bottom: .8rem; }
.story-heading h2 { margin: 0; font-size: clamp(1.65rem, 2.7vw, 2.65rem); letter-spacing: -.025em; line-height: 1.14; font-weight: 500; }
.story-heading > p { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.6; }
.story-grid { padding: 0; margin: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.story-step { min-width: 0; }
/* The illustration's outer canvas is transparent. The host theme owns the mat;
   the fictional website and the Content editor keep their original colours. */
.story-image, .landing-preview { --story-frame: #0b151f; --story-caption: #c5ced6; }
html[data-theme="light"] .story-image, html[data-theme="light"] .landing-preview { --story-frame: #ffffff; --story-caption: var(--muted); border-color: var(--border); box-shadow: 0 6px 20px #13283109; }
.story-image { border: 1px solid var(--border); border-radius: .8rem; overflow: hidden; background: var(--story-frame); }
.story-image img { display: block; width: 100%; height: auto; }
.story-step-copy { display: flex; align-items: flex-start; gap: .75rem; padding: 1.05rem .15rem 0; }
.story-number { color: var(--a9-orange); font-family: ui-monospace, monospace; font-size: .7rem; line-height: 1.55rem; flex-shrink: 0; }
.story-step h3 { font-size: 1.05rem; line-height: 1.45; margin: 0 0 .4rem; font-weight: 600; }
.story-step p { color: var(--muted); font-size: .88rem; line-height: 1.6; margin: 0; max-width: 32rem; }
.story-result-link { display: inline-flex; gap: .4rem; align-items: center; color: var(--accent); text-decoration: none; margin-top: .75rem; font-size: .8rem; }
.story-result-link:hover { text-decoration: underline; }
.story-result-link i { font-size: 1.1rem; }
.story-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.4rem; padding-top: 1.25rem; border-top: 1px solid var(--border); font-size: .74rem; }
.story-bottom p { color: var(--muted); margin: 0; }
.story-bottom a { color: var(--text); text-decoration: none; flex-shrink: 0; }
.story-bottom a:hover { color: var(--accent); }
.story-example-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.7rem; }
.story-example-bar > div { display: grid; gap: .35rem; min-width: 0; }
.story-example-kicker { font-size: .57rem; letter-spacing: .13em; color: var(--muted); }
[data-example-label] { font-size: .77rem; line-height: 1.5; color: var(--text); }
.story-shuffle { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem .8rem; font: inherit; font-size: .76rem; color: var(--text); background: var(--surface-solid); border: 1px solid var(--border); border-radius: .5rem; cursor: pointer; flex-shrink: 0; }
.story-shuffle[hidden] { display: none; }
.story-shuffle i { color: var(--accent); font-size: 1rem; }
.story-shuffle span { font-size: .65rem; color: var(--muted); padding-left: .5rem; border-left: 1px solid var(--border); }
.story-shuffle:hover { border-color: var(--accent); }
.story-shuffle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.story-shuffle:disabled { opacity: .6; cursor: wait; }
.story-connector { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; color: var(--a9-orange); opacity: .65; }
.story-connector > path { stroke: currentColor; stroke-width: 1.5; stroke-dasharray: 5 7; }
.pricing-period-note { color: var(--muted); font-size: .87rem; line-height: 1.7; text-align: center; margin-top: 1.5rem; }
.pricing-period-note a { color: var(--accent); }
.landing-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 4rem; align-items: center; padding-block: 4rem; }
.landing-hero h1 { font-size: clamp(2.6rem, 4.6vw, 5rem); line-height: 1.05; }
.landing-hero .eyebrow { margin-bottom: 1.3rem; }
.landing-hero .hero-text { margin-top: 1.5rem; }
.landing-hero .hero-actions { margin-top: 1.6rem; }
.landing-note { font-size: .83rem; line-height: 1.6; color: var(--muted); margin-top: 1rem; }
.landing-section { padding-block: 3.5rem; }
.landing-section h2 { font-size: clamp(1.6rem, 2.5vw, 2.45rem); line-height: 1.2; font-weight: 500; margin: 0 0 1rem; }
.landing-section > p { color: var(--muted); line-height: 1.7; max-width: 48rem; }
.landing-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.landing-card { padding: 1.6rem; border: 1px solid var(--border); border-radius: 1rem; background: var(--surface-solid); min-width: 0; }
.landing-card > i { color: var(--accent); font-size: 1.6rem; }
.landing-card h3 { font-size: 1.13rem; line-height: 1.4; margin: .8rem 0; }
.landing-card p { color: var(--muted); line-height: 1.7; font-size: .92rem; margin: 0; }
.landing-card a { display: inline-block; color: var(--accent); margin-top: 1.1rem; font-size: .88rem; }
.landing-faq { max-width: 60rem; }
.landing-faq details { border-bottom: 1px solid var(--border); padding-block: 1.25rem; }
.landing-faq summary { cursor: pointer; font-weight: 600; line-height: 1.5; }
.landing-faq details p { color: var(--muted); line-height: 1.7; max-width: 50rem; }
.landing-faq details a { color: var(--accent); }
.landing-close { padding: 2.5rem; border-radius: 1.25rem; border: 1px solid var(--border); background: var(--surface-solid); display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.landing-close h2 { font-size: 1.75rem; margin-bottom: .5rem; }
.landing-close p { color: var(--muted); margin: 0; line-height: 1.6; }
.landing-close .primary-cta { flex-shrink: 0; }
.eu-route { position: relative; border: 1px solid var(--border); border-radius: 1.5rem; padding: 2rem; background: var(--surface-solid); }
.eu-route > p { color: var(--muted); font-size: .8rem; line-height: 1.6; margin-bottom: 0; }
.eu-route ol { padding: 0; margin: 0; list-style: none; }
.eu-route li { display: flex; align-items: center; gap: 1rem; padding: 1.3rem 0; }
.eu-route li + li { border-top: 1px solid var(--border); }
.eu-route i { font-size: 1.7rem; color: var(--accent); }
.eu-route strong, .eu-route span { display: block; }
.eu-route strong { font-size: 1rem; }
.eu-route span { font-size: .87rem; color: var(--muted); margin-top: .3rem; line-height: 1.5; }
.integration-preview { border: 1px solid var(--border); border-radius: 1.1rem; overflow: hidden; background: #0d1b21; box-shadow: 0 20px 60px #0002; color: #e4ecef; }
.integration-preview header { padding: 1rem 1.5rem; border-bottom: 1px solid #294047; color: #9fb1b8; font-size: .8rem; }
.integration-preview pre { margin: 0; padding: 1.5rem; overflow: auto; line-height: 1.9; font-size: clamp(.7rem, 1vw, .9rem); }
.integration-preview em { color: #b9d69b; font-style: normal; }
.integration-preview p { margin: 0; border-top: 1px solid #294047; padding: 1rem 1.5rem; color: #9fb1b8; font-size: .77rem; line-height: 1.6; }
.landing-preview { padding: .7rem; background: var(--story-frame); border-radius: .9rem; border: 1px solid #29333d; max-width: 36rem; margin-inline: auto; }
.landing-preview img { display: block; width: 100%; height: auto; border-radius: .6rem; }
.landing-preview p { font-size: .8rem; line-height: 1.5; text-align: center; color: var(--story-caption); margin: .9rem 0 .6rem; }
.landing-preview:target, .landing-preview:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
@media (min-width: 61rem) and (max-width: 100rem) {
  .login-story .hero-login { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
}
@media (max-width: 70rem) {
  .story-connector { display: none; }
  .story-heading { align-items: start; }
  .story-heading > p br { display: none; }
  .story-heading > p { max-width: 21rem; }
  .landing-hero { gap: 2rem; }
}
@media (max-width: 60rem) {
  /* Keep the public front door compact and usable, including in the light theme. */
  .marketing-nav { grid-template-columns: minmax(0, 1fr) auto auto; gap: .7rem; }
  .marketing-logo { grid-column: 1; grid-row: 1; }
  .nav-burger { grid-column: 3; grid-row: 1; color: var(--text); border-color: var(--border); }
  .marketing-actions { grid-column: 2; grid-row: 1; }
  .marketing-links { grid-column: 1 / -1; grid-row: 2; }
  .marketing-actions .marketing-login, .marketing-actions .marketing-button { display: none; }
  .marketing-nav.nav-open .marketing-actions { grid-column: 1 / -1; grid-row: 3; flex-wrap: wrap; }
  .marketing-nav.nav-open .marketing-login, .marketing-nav.nav-open .marketing-button { display: inline-flex; }
  .login-story .hero { padding-top: 1.5rem; gap: 1.3rem; }
  .login-story .hero-stage { min-height: 0; padding-block: 1rem; }
  .login-story .hero-aside { padding-top: 0; }
  .brand-preview { width: min(25rem, calc(100% - 1.5rem)); }
  .story-grid { gap: 1rem; }
  .story-step-copy { gap: .45rem; }
  .story-step h3 { font-size: .95rem; }
  .story-heading { display: block; }
  .story-heading > p { max-width: none; margin-top: 1rem; }
  .story-heading > p br { display: initial; }
  .landing-hero { grid-template-columns: minmax(0, 1fr); padding-block: 2rem; }
  .landing-cards { grid-template-columns: minmax(0, 1fr); }
  .landing-close { flex-direction: column; align-items: start; padding: 1.5rem; }
}
@media (max-width: 42rem) {
  .login-story-steps, .landing-section, .landing-hero { width: min(100% - 2rem, var(--container)); }
  .story-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .story-step h3 { font-size: 1.1rem; }
  .story-heading h2 br { display: none; }
  .story-bottom { flex-direction: column; align-items: start; }
  .story-example-bar { flex-direction: column; align-items: start; }
  .story-step-copy { gap: .8rem; }
  .login-story .hero h1 { font-size: clamp(2.45rem, 8.6vw, 3.7rem); }
  .preview-caption { font-size: .8rem; letter-spacing: .035em; }
  .preview-finish { font-size: .94rem; }
  .northstar-body { padding-inline: .7rem; }
  .landing-section { padding-block: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .login-story .northstar-login { animation: none; transform: none; }
  .login-story .stage-login .orbit-copy { animation: none; }
  .login-story .stage-login .orbit-slot { opacity: .65; }
}
