/* LocalStar Systems: site styles.
   Tokens and components come from /design-system (tokens.css, then components/bundle.css).
   This file adds the brand fonts, the page layout, the responsive rules and the few page-only parts
   (hero, timeline, about table, form states, sticky bar position, plain pages, 404). Tokens only. */

/* ---------- fonts: the files ship in /design-system/fonts; tokens.css carries only the variables ---------- */
@font-face { font-family: 'Italiana'; font-style: normal; font-weight: 400; font-display: swap; src: url(/design-system/fonts/Italiana-normal-400-latin.woff2) format('woff2'); }
@font-face { font-family: 'Arapey'; font-style: normal; font-weight: 400; font-display: swap; src: url(/design-system/fonts/Arapey-normal-400-latin.woff2) format('woff2'); }
@font-face { font-family: 'Arapey'; font-style: italic; font-weight: 400; font-display: swap; src: url(/design-system/fonts/Arapey-italic-400-latin.woff2) format('woff2'); }
@font-face { font-family: 'Nanum Myeongjo'; font-style: normal; font-weight: 400; font-display: swap; src: url(/design-system/fonts/NanumMyeongjo-normal-400-latin.woff2) format('woff2'); }
@font-face { font-family: 'Nanum Myeongjo'; font-style: normal; font-weight: 700; font-display: swap; src: url(/design-system/fonts/NanumMyeongjo-normal-700-latin.woff2) format('woff2'); }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 400; font-display: swap; src: url(/design-system/fonts/Lato-normal-400-latin.woff2) format('woff2'); }

/* ---------- page ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + var(--space-4)); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .ls-bar-fixed { transition: none; } }
body { margin: 0; min-height: 100vh; }
.ls-sec, .ls-hero, .ls-close, .ls-plain-page, .ls-404 { background: var(--surface); color: var(--ink); }
.ls-sec { padding: clamp(var(--section-sm), 9vw, var(--section-lg)) 0; }
.ls-sec + .ls-sec[data-theme="navy"] + .ls-sec[data-theme="navy"], .ls-sec[data-theme="ivory"] + .ls-sec[data-theme="ivory"] { border-top: 1px solid var(--line); }
.ls-sec-head + * { margin-top: clamp(36px, 4.2vw, 60px); }
.ls-display { font-size: clamp(36px, 5.4vw, 74px); }
.ls-h1 { font-size: clamp(27px, 3.2vw, 42px); }
.ls-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ls-skip { position: absolute; left: var(--space-4); top: -100px; z-index: 100; padding: 12px var(--space-4); border-radius: var(--radius-sm); background: var(--primary); color: var(--on-primary); font: 400 12px/1 var(--font-label); letter-spacing: .24em; text-transform: uppercase; text-decoration: none; }
.ls-skip:focus { top: var(--space-4); }
.ls-page a.ls-link { color: var(--link); }

/* ---------- header ---------- */
.ls-header { position: sticky; top: 0; z-index: 50; }
.ls-header.is-scrolled { box-shadow: var(--shadow-lift); }
.ls-header nav a.is-active::after { bottom: -8px; }

/* ---------- hero ---------- */
.ls-hero { padding: clamp(56px, 8vw, 112px) 0 clamp(72px, 9vw, 120px); }
.ls-hero .ls-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--space-12); align-items: center; }
.ls-hero-copy { display: grid; gap: var(--space-6); }
.ls-hero-copy .ls-label { color: var(--accent-text); }
.ls-hero-copy .ls-lead { color: var(--ink-muted); }
.ls-actions-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.ls-hero-note { font-size: 14px; line-height: 1.6; color: var(--ink-muted); max-width: 520px; }
.ls-hero-visual { display: grid; justify-items: center; }

/* ---------- 03 · the ladder ---------- */
.ls-rungs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); padding-top: 14px; align-items: stretch; }
.ls-rung .ls-rung-flag { left: 50%; transform: translateX(-50%); white-space: nowrap; max-width: calc(100% - var(--space-4)); }
.ls-rung .ls-btn { white-space: normal; height: auto; min-height: var(--control); padding: 14px var(--space-6); line-height: 1.4; text-align: center; max-width: 100%; }
.ls-rungs .ls-checks { margin-bottom: var(--space-5); }
.ls-rungs .ls-rung-note { margin-top: auto; }

/* ---------- 04 · how it works: the loop, then the timeline ---------- */
.ls-loop-wrap { display: grid; gap: var(--space-8); justify-items: center; }
.ls-loop-list { display: none; }
.ls-steps { list-style: none; padding: 0; margin: clamp(56px, 6vw, 80px) 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6); position: relative; }
.ls-steps::before { content: ""; position: absolute; left: 22px; right: 22px; top: 22px; height: 1px; background: linear-gradient(90deg, var(--rule), var(--line) 60%, transparent); }
.ls-step { position: relative; display: grid; gap: var(--space-3); align-content: start; }
.ls-step-n { position: relative; z-index: 1; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--rule); border-radius: var(--radius-sm); background: var(--surface); color: var(--accent-text); font: 400 11.5px/1 var(--font-label); letter-spacing: .2em; }
.ls-step h3 { font: 400 23px/1.22 var(--font-serif); margin-top: var(--space-2); padding-right: var(--space-4); }
.ls-step p { font-size: 15px; line-height: 1.7; color: var(--ink-muted); padding-right: var(--space-4); text-wrap: pretty; }

/* ---------- proof (hidden until real numbers exist) ---------- */
.ls-case { max-width: 640px; }

/* ---------- 06 · the work ---------- */
.ls-work { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-10) var(--space-8); }
article.ls-job { cursor: default; }
.ls-job .ls-shot img.ls-fill { display: block; }

/* ---------- 07 · about ---------- */
.ls-about { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: var(--space-12); align-items: start; }
.ls-portrait { margin: 0; display: grid; gap: var(--space-3); }
.ls-portrait .ls-frame { border: 1px solid var(--line); border-radius: var(--radius-xl); overflow: hidden; background: var(--surface-raised); aspect-ratio: 4 / 5; }
.ls-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ls-portrait figcaption { color: var(--ink-muted); }
.ls-about-copy { display: grid; gap: var(--space-5); max-width: 640px; }
.ls-about-copy p { font-size: 16px; line-height: 1.75; text-wrap: pretty; }
.ls-tb { margin-top: var(--space-4); border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; }
.ls-tb div { display: grid; gap: 6px; padding: var(--space-4) var(--space-5) var(--space-4) 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.5; }
.ls-tb div:nth-child(odd) { border-right: 1px solid var(--line); }
.ls-tb div:nth-child(even) { padding-left: var(--space-5); }
.ls-tb .ls-label { color: var(--ink-muted); }

/* ---------- closing section and the trial form ---------- */
.ls-close { padding: clamp(var(--section-sm), 9vw, var(--section-lg)) 0; }
.ls-close .ls-wrap { display: grid; gap: clamp(36px, 4.2vw, 60px); }
.ls-close-head { display: grid; gap: var(--space-5); }
.ls-close-head .ls-label { color: var(--accent-text); }
.ls-close-head p { font-size: 17.5px; line-height: 1.7; color: var(--ink-muted); max-width: 600px; text-wrap: pretty; }
.ls-close-grid { display: grid; grid-template-columns: minmax(0, 640px) minmax(260px, 1fr); gap: var(--space-12); align-items: start; }
.ls-aside { display: grid; gap: var(--space-4); padding: 30px var(--space-7) var(--space-8); background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.ls-aside .ls-label { color: var(--accent-text); }
.ls-aside p { font-size: 15px; line-height: 1.7; color: var(--ink-muted); text-wrap: pretty; }
.ls-aside .ls-btn { justify-self: start; }
.ls-aside .ls-contact { display: grid; gap: 6px; font-size: 15px; line-height: 1.6; }
.ls-form { position: relative; }
.ls-form .ls-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.ls-form .ls-turnstile { grid-column: 1 / -1; }
.ls-form .ls-turnstile:empty { display: none; }
.ls-form .ls-field .ls-msg:empty { display: none; }
.ls-form-state { display: none; grid-column: 1 / -1; gap: var(--space-3); padding: var(--space-6) var(--space-7); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-raised); outline: none; }
.ls-form-state .ls-h3 { display: flex; align-items: center; gap: var(--space-3); }
.ls-form-state svg { width: 20px; height: 20px; flex: none; }
.ls-form-state.is-success .ls-h3 { color: var(--success); }
.ls-form-state.is-error .ls-h3 { color: var(--error); }
.ls-form-state p { font-size: 15px; line-height: 1.7; color: var(--ink-muted); text-wrap: pretty; }
.ls-form-state.is-shown { display: grid; }
.ls-form.is-done .ls-field, .ls-form.is-done .ls-actions, .ls-form.is-done .ls-turnstile, .ls-form.is-done .ls-form-state.is-error { display: none; }

/* ---------- sticky bar: fixed to the bottom, phones only, after the hero ---------- */
.ls-bar-fixed { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: none; padding-bottom: env(safe-area-inset-bottom, 0); transform: translateY(120%); transition: transform 220ms ease; }
.ls-bar-fixed.is-shown { transform: none; }

/* ---------- footer ---------- */
.ls-footer .ls-foot-links .ls-plain a { color: var(--ink-muted); text-decoration: none; }
.ls-footer .ls-foot-links .ls-plain a:hover { color: var(--ink); }
.ls-foot-social { display: inline-flex; gap: 14px; }

/* ---------- plain pages: privacy, terms ---------- */
.ls-plain-page { padding-bottom: clamp(var(--section-sm), 9vw, var(--section-lg)); }
.ls-page-head { display: grid; gap: 18px; padding: clamp(56px, 8vw, 96px) 0 clamp(36px, 4.2vw, 60px); }
.ls-page-head .ls-label { color: var(--accent-text); }
.ls-page-head .ls-lead { color: var(--ink-muted); }
.ls-prose { max-width: 720px; display: grid; gap: var(--space-4); }
.ls-prose h2 { font: 400 27px/1.15 var(--font-serif); margin-top: var(--space-7); }
.ls-prose h3 { font: 400 20px/1.3 var(--font-serif); margin-top: var(--space-3); }
.ls-prose p, .ls-prose li { font-size: 16px; line-height: 1.75; text-wrap: pretty; }
.ls-prose ul { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.ls-prose a { color: var(--link); text-decoration: none; border-bottom: 1px solid var(--link-underline); }
.ls-prose a:hover { border-bottom-width: 2px; }
.ls-prose .ls-small { margin-top: var(--space-4); }

/* ---------- 404 ---------- */
.ls-404 { min-height: calc(100vh - var(--header)); display: grid; place-items: center; padding: var(--space-12) 0; text-align: center; }
.ls-404 .ls-wrap { display: grid; gap: var(--space-6); justify-items: stretch; text-align: center; }
.ls-404 img, .ls-404 .ls-btn { justify-self: center; }
.ls-404 p { margin: 0 auto; }
.ls-404 img { width: 88px; height: 88px; }
.ls-404 .ls-label { color: var(--accent-text); }
.ls-404 p { color: var(--ink-muted); max-width: 440px; text-wrap: pretty; }

/* ---------- responsive ---------- */
@media (max-width: 1079px) {
  .ls-rungs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ls-rungs .is-featured { grid-column: 1 / -1; order: 1; }
  .ls-steps { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
  .ls-steps::before { left: 22px; right: auto; top: 22px; bottom: 22px; width: 1px; height: auto; background: linear-gradient(180deg, var(--rule), var(--line) 60%, transparent); }
  .ls-step { grid-template-columns: 44px minmax(0, 1fr); column-gap: var(--space-5); row-gap: var(--space-2); }
  .ls-step-n { grid-row: 1 / span 2; }
  .ls-step h3 { margin-top: 8px; }
}
@media (max-width: 899px) {
  .ls-header nav > a:not(.ls-btn) { display: none; }
  .ls-hero .ls-wrap { grid-template-columns: minmax(0, 1fr); gap: var(--space-10); }
  .ls-hero-visual { margin-top: var(--space-4); }
  .ls-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ls-rungs { grid-template-columns: minmax(0, 1fr); }
  .ls-rungs .is-featured { order: 0; }
  .ls-about { grid-template-columns: minmax(0, 1fr); gap: var(--space-10); }
  .ls-portrait { max-width: 320px; }
  .ls-close-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-10); }
}
@media (max-width: 719px) {
  .ls-wrap { padding: 0 var(--space-4); }
  .ls-header .ls-wrap { gap: var(--space-3); }
  .ls-header nav { gap: 10px; }
  .ls-header .ls-brand img { width: 32px; height: 32px; }
  .ls-header .ls-brand span { font-size: 17px; }
  .ls-header .ls-lang > a, .ls-header .ls-lang > span { min-width: 30px; padding: 0 6px 0 calc(6px + .16em); }
  .ls-header .ls-btn-sm { padding: 0 10px; letter-spacing: .14em; }
  .ls-pains { grid-template-columns: minmax(0, 1fr); }
  .ls-pains li { padding: var(--space-6) 0; }
  .ls-pains li:nth-child(odd) { border-right: 0; }
  .ls-pains li:nth-child(even) { padding-left: 0; }
  .ls-grid-3, .ls-grid-2, .ls-work, .ls-form, .ls-tb { grid-template-columns: minmax(0, 1fr); }
  main .ls-btn:not(.ls-btn-sm) { white-space: normal; height: auto; min-height: var(--control); padding-top: 14px; padding-bottom: 14px; line-height: 1.4; text-align: center; }
  .ls-tb div:nth-child(odd) { border-right: 0; }
  .ls-tb div:nth-child(even) { padding-left: 0; }
  .ls-loop { max-width: 100%; }
  .ls-loop-list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3) var(--space-5); list-style: none; padding: 0; margin: 0; width: 100%; }
  .ls-loop-list li { display: flex; gap: var(--space-3); align-items: baseline; font: 400 17px/1.3 var(--font-serif); }
  .ls-loop-list .ls-label { color: var(--accent-text); }
  .ls-case-cols { grid-template-columns: 1fr; }
  .ls-case-col + .ls-case-col { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: var(--space-5); }
  .ls-form .ls-actions .ls-small { max-width: none; }
  .ls-bar-fixed { display: block; }
  .ls-footer .ls-wrap { flex-direction: column; align-items: center; text-align: center; padding-bottom: 72px; }
  .ls-footer .ls-foot-id { align-items: center; }
  .ls-footer .ls-foot-links { justify-content: center; }
  .ls-404 { min-height: calc(100vh - var(--header) - 72px); }
}
@media (max-width: 379px) {
  .ls-header .ls-wrap { gap: var(--space-2); }
  .ls-header nav { gap: 6px; }
  .ls-header .ls-brand span { font-size: 15px; }
  .ls-header .ls-btn-sm { padding: 0 8px; letter-spacing: .1em; }
}
