/* Keep viewport boundaries steady instead of browser rubber-band scrolling. */
html, body { overscroll-behavior: none; }

@font-face {
  font-family: "Geist";
  src: url("/assets/geist-v1.8.2.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: optional;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/assets/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: optional;
}
@font-face {
  font-family: "Chocolatecake Sans";
  src: url("/assets/ChocolatecakeSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: optional;
}
@font-face {
  font-family: "Chocolatecake Sans";
  src: url("/assets/ChocolatecakeSans-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: optional;
}

@font-face {
  font-family: "Chocolatecake Sans";
  src: url("/assets/ChocolatecakeSans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: optional;
}

:root {
  font-family: "Geist", "Chocolatecake Sans", sans-serif;
  font-synthesis: none;
  background: var(--bg);
  color: var(--text);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
html {
  scroll-padding-top: 100px;
  scroll-behavior: smooth;
}
a {
  color: inherit;
  text-decoration: none;
}
strong, b {
  font-weight: 400;
}
button {
  font: inherit;
  cursor: pointer;
}
a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}
button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}
summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}
main:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}
.wrap {
  width: min(var(--content-width), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}
.skip {
  position: fixed;
  top: -80px;
  left: 20px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--primary);
  color: var(--on-primary);
}
.skip:focus {
  top: 12px;
}
.brand-symbol {
  width: 1cap;
  height: 1cap;
  flex-shrink: 0;
}
.eyebrow {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.7;
}
h1 {
  margin-top: 0;
}
h2 {
  margin-top: 0;
}
h3 {
  margin-top: 0;
}
p {
  margin-top: 0;
}
h1 {
  font-weight: var(--weight-heading);
  margin-bottom: 28px;
}
h2 {
  font-weight: var(--weight-heading);
  margin-bottom: 0;
}
h3 {
  font-weight: var(--weight-heading);
}
p {
  color: var(--muted);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: var(--text-sm);
  line-height: 1.7;
}
.product-capture {
  margin: 36px 0 0;
}
.capture-link {
  display: block;
  border: 1px solid transparent;
  border-radius: var(--radius-panel);
  overflow: hidden;
  background: var(--surface);
}
.capture-link img {
  display: block;
  width: 100%;
  height: auto;
}
.product-capture figcaption {
  font-size: var(--text-xs);
  line-height: 1.6;
  color: var(--muted);
  margin-top: 12px;
}
.section {
  padding-block: 100px;
  border-bottom: 0;
}
.section-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 32px;
}
.section-heading .eyebrow {
  margin-bottom: 16px;
}
.section-heading p {
  margin-bottom: 0;
}
.section > .text-link {
  margin-bottom: 2px;
}
.journey {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 0;
  border-bottom: 0;
  margin-top: 48px;
}
.journey a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 20px;
  color: var(--muted);
  font-size: var(--text-sm);
}
.journey a:first-child {
  padding-left: 0;
}
.journey a + a {
  border-left: 0;
}
.journey strong {
  color: var(--muted);
  font-weight: var(--weight-ui);
}
.journey .step {
  color: var(--muted);
  font-size: var(--text-xs);
}
.journey a > span:last-child {
  margin-left: auto;
}
.journey a[aria-current="page"] strong {
  color: var(--text);
}
.journey a:hover strong {
  color: var(--text);
}
.integration-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 48px;
  border-block: 1px solid var(--line);
}
.integration-links a {
  font-size: 24px;
  padding: 30px 24px 30px 0;
}
.integration-links a + a {
  padding-left: 30px;
  border-left: 0;
}
.integration-links span {
  float: right;
  color: var(--muted);
}
.detail-hero {
  padding-top: 80px;
}
.detail-hero h1 {
  max-width: 1000px;
}
.lead {
  max-width: 750px;
  margin-bottom: 0;
}
.detail-hero .product-capture {
  margin-top: 36px;
}
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin-top: 56px;
}
.facts article {
  border-top: 0;
  padding-top: 24px;
}
.facts p {
  font-size: var(--text-sm);
  margin-bottom: 0;
}
.next-area {
  display: flex;
  align-items: center;
  gap: 40px;
  justify-content: space-between;
  padding-block: 36px;
  border-bottom: 0;
  color: var(--muted);
  font-size: var(--text-xs);
}
pre {
  overflow-x: auto;
  white-space: pre-wrap;
  margin: 0;
  padding: 28px;
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: var(--radius-small);
  font-size: var(--text-sm);
  line-height: 1.9;
  color: var(--muted);
}
code {
  font-family: "Geist Mono", Pretendard, monospace;
}
.command-panel {
  max-width: 100%;
}
.command-panel > p {
  font-size: var(--text-xs);
}
.note {
  font-size: var(--text-xs);
}
.command-panel .text-link {
  margin-top: 22px;
}
.command-section h2 {
  margin-bottom: 32px;
}
.command-section .note {
  margin-top: 18px;
}
.status-note {
  padding: 28px 32px;
  margin-top: 56px;
  border-left: 0;
  background: var(--surface);
}
.status-note p {
  margin-bottom: 0;
  font-size: var(--text-sm);
}
.closing {
  padding-block: 110px;
}
.closing h2 {
  max-width: 760px;
  margin-bottom: 30px;
}
.closing > div {
  display: flex;
  gap: 12px;
}
.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 16px;
  gap: 8px;
  background: var(--primary);
  color: var(--on-primary);
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  box-shadow: none;
  font-size: var(--text-sm);
  font-weight: var(--weight-ui);
  line-height: 20px;
  letter-spacing: -0.1px;
}
.button:hover {
  background: var(--primary-hover);
}
.button:active {
  background: var(--primary-active);
}
.button.secondary {
  box-shadow: none;
}
.site-footer {
  display: grid;
  grid-template-columns: max-content repeat(4, minmax(0, 1fr));
  gap: 32px;
  padding-block: 55px 32px;
  border-top: 0;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
  align-self: start;
}
.footer-tagline {
  font-size: var(--text-xs);
  font-weight: 400;
  line-height: 1.6;
  color: var(--muted);
  word-break: keep-all;
}
.footer-brand {
  font-size: 20px;
}
@media (max-width: 1050px) {
  .footer-brand {
    font-size: var(--text-base);
  }
}
@media (max-width: 760px) {
  .footer-brand {
    font-size: var(--text-base);
  }
}
.site-footer h3 {
  font-size: var(--text-xs);
  margin-bottom: 20px;
}
.site-footer div > a {
  display: block;
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.7;
  margin-bottom: 12px;
  overflow-wrap: anywhere;
}
.site-footer a:hover {
  color: var(--text);
}
.site-footer small {
  grid-column: 1/-1;
  color: var(--muted);
  margin-top: 28px;
}
@media (max-width: 1000px) {
  .section-heading {
    gap: 40px;
  }
  .site-footer {
    grid-template-columns: repeat(4, 1fr);
  }
  .footer-brand {
    grid-column: 1/-1;
  }
}
@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 2 * var(--gutter));
  }
  .detail-hero {
    padding-top: 48px;
  }
  .eyebrow {
    font-size: var(--text-xs);
    margin-bottom: 20px;
  }
  .hero-meta {
    display: block;
  }
  .hero-meta .text-link {
    margin-top: 20px;
  }
  .product-capture {
    margin-top: 28px;
  }
  .section {
    padding-block: 60px;
  }
  .section-heading {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 28px;
  }
  .journey {
    margin-top: 32px;
  }
  .journey a {
    flex-wrap: wrap;
    gap: 8px;
    padding: 18px 10px;
    font-size: var(--text-xs);
  }
  .journey .step {
    width: 100%;
  }
  .journey a > span:last-child {
    display: none;
  }
  .integration-links {
    margin-top: 28px;
  }
  .integration-links a {
    font-size: var(--text-base);
    padding: 24px 12px 24px 0;
  }
  .integration-links a + a {
    padding-left: 20px;
  }
  .facts {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 32px;
  }
  .facts h3 {
    margin-bottom: 10px;
  }
  .next-area {
    flex-wrap: wrap;
    gap: 20px;
    padding-block: 28px;
  }
  .next-area > span {
    width: 100%;
  }
  pre {
    padding: 20px;
    font-size: var(--text-xs);
  }
  .status-note {
    padding: 20px;
    margin-top: 32px;
  }
  .closing {
    padding-block: 70px;
  }
  .site-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
    padding-top: 36px;
  }
  .site-footer small {
    margin-top: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  *::before {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Product details: one outcome per screen, with observations tied to that screen. */
.area-hero {
  padding-top: 72px;
  padding-bottom: 44px;
}
.area-hero h1 {
  max-width: 1100px;
}
.area-hero .lead {
  max-width: 800px;
}
.screen-section {
  padding-block: 40px 80px;
  border-bottom: 0;
}
.screen-section + .screen-section {
  padding-top: 80px;
}
.screen-section .section-heading {
  margin-bottom: 32px;
}
.screen-layout .product-capture {
  margin-top: 0;
}
.screen-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-top: 32px;
}
.screen-notes article {
  position: relative;
  padding-top: 18px;
  border-top: 0;
}
.screen-notes h3 {
  margin: 12px 0 10px;
  font-size: var(--text-base);
}
.screen-notes p {
  font-size: var(--text-sm);
  margin-bottom: 0;
}
.note-number {
  color: var(--muted);
  font-size: var(--text-xs);
}
.area-bridge {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  padding-block: 72px;
  border-bottom: 0;
}
.area-bridge p {
  margin-bottom: 0;
}
.related-areas {
  padding-block: 48px 0;
}
.related-areas .journey {
  margin: 0 0 24px;
}
.installation-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding-block: 80px;
  border-bottom: 0;
  align-items: start;
}
.installation-section h2 {
  margin-bottom: 24px;
}
.installation-section .note {
  margin-top: 16px;
  font-size: var(--text-xs);
}
@media (max-width: 760px) {
  .area-hero {
    padding-top: 44px;
    padding-bottom: 28px;
  }
  .screen-section {
    padding-block: 24px 48px;
  }
  .screen-section + .screen-section {
    padding-top: 48px;
  }
  .screen-section .section-heading {
    gap: 16px;
    margin-bottom: 24px;
  }
  .screen-notes {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 24px;
  }
  .screen-notes article {
    padding-top: 16px;
  }
  .screen-notes h3 {
    margin-top: 8px;
  }
  .area-bridge {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-block: 48px;
  }
  .installation-section {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-block: 48px;
  }
  .related-areas {
    padding-top: 36px;
  }
}
.integration-setup {
  padding-block: 64px 80px;
  border-bottom: 0;
}
.integration-setup > h2 {
  margin-bottom: 24px;
}
.integration-setup > p {
  max-width: 800px;
}
.integration-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin: 40px 0 24px;
}
.integration-tools article {
  min-width: 0;
  border-top: 0;
  padding-top: 24px;
  scroll-margin-top: 100px;
}
.integration-tools p {
  font-size: var(--text-sm);
  min-height: 76px;
}
.integration-tools pre {
  font-size: var(--text-xs);
}
@media (max-width: 760px) {
  .integration-setup {
    padding-block: 32px 48px;
  }
  .integration-tools {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 32px;
  }
  .integration-tools p {
    min-height: 0;
  }
}
.screen-notes:has(> article:nth-child(2):last-child) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 760px) {
  .screen-notes:has(> article:nth-child(2):last-child) {
    grid-template-columns: 1fr;
  }
}

/* Copy should reflow by language, rather than leave a short last line. */
h1 {
  text-wrap: balance;
}
h2 {
  text-wrap: balance;
}
h3 {
  text-wrap: balance;
}
h1[data-en] {
  white-space: pre-line;
}
h2[data-en] {
  white-space: pre-line;
}
p {
  text-wrap: pretty;
}
.section-heading > * {
  min-width: 0;
}
.screen-layout > * {
  min-width: 0;
}
.integration-tools > * {
  min-width: 0;
}
.closing > p {
  max-width: 650px;
  margin-bottom: 28px;
}
.closing > div {
  flex-wrap: wrap;
}
.button {
  justify-content: center;
  text-align: center;
}
.text-link > span:last-child {
  flex-shrink: 0;
}
.footer-tagline {
  max-width: 175px;
  text-wrap: balance;
}

/* The original triangular mark, extruded and rendered with GlyphForge. */
.home-heading {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}
.home-heading h2 {
  margin: 0;
}
.home-heading > p {
  max-width: 620px;
  margin: 20px auto 0;
  color: var(--muted);
  text-wrap: balance;
}
.home-section .facts {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.home-section > .text-link {
  display: flex;
  width: fit-content;
  margin: 28px auto 0;
}
.home-section .home-section-links {
  justify-content: center;
}
.home-section .integration-links {
  margin-top: 0;
}
.workflow-list {
  list-style: none;
  padding: 0;
  margin: 48px 0 0;
  --flow-accent: #d2a784;
  --flow-tint: #282018;
}
:root[data-theme="light"] .workflow-list {
  --flow-accent: #805335;
  --flow-tint: #efe4da;
}
.workflow-list > li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: center;
  padding: 40px 0 64px 64px;
  scroll-margin-top: 80px;
}
.workflow-list > li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 64px;
  bottom: -64px;
  width: 1px;
  background: var(--line);
}
.workflow-copy {
  min-width: 0;
}
.workflow-copy h3 {
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.3;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.workflow-copy > p:not(.eyebrow) {
  margin-block: 20px 24px;
  color: var(--muted);
}
.workflow-number {
  position: absolute;
  left: 0;
  top: 40px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--flow-accent);
  border-radius: 50%;
  background: var(--bg);
  color: var(--flow-accent);
  font-variant-numeric: tabular-nums;
}
.workflow-copy .eyebrow {
  color: var(--flow-accent);
}
.workflow-screen {
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-panel);
  background: var(--surface);
}
.screen-focus-label p {
  margin: 0 0 16px;
  font-size: var(--text-sm);
  color: var(--text);
}
.screen-focus {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-small);
  background: #161718;
}
.screen-focus img {
  position: absolute;
  max-width: none;
  height: auto;
  display: block;
}
.workflow-screen-request .screen-focus {
  aspect-ratio: 640 / 300;
}
.workflow-screen-request img {
  width: 200%;
  left: -39.0625%;
  top: -140%;
}
.workflow-screen-review {
  max-width: 412px;
  justify-self: center;
}
.workflow-screen-review .screen-focus {
  aspect-ratio: 380 / 500;
}
.workflow-screen-review img {
  width: 336.842105%;
  left: -231.578947%;
  top: -42%;
}
.workflow-screen figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.6;
}
.screen-focus:focus-visible {
  outline-offset: 4px;
}
.workflow-list .product-capture {
  min-width: 0;
  margin: 0;
}
.install-example {
  min-width: 0;
  padding: 32px;
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: var(--radius-panel);
}
.install-example pre {
  margin-block: 24px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.install-example .note {
  color: var(--muted);
  font-size: var(--text-sm);
}
.home-section-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  margin-top: 32px;
}
.home-faq {
  border-top: 0;
}
.home-faq details {
  border-bottom: 0;
}
.home-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 24px;
  cursor: pointer;
  list-style: none;
  font-size: var(--text-base);
  font-weight: var(--weight-ui);
}
.home-faq summary::-webkit-details-marker {
  display: none;
}
.faq-indicator {
  flex-shrink: 0;
  font-size: 24px;
  font-weight: 400;
}
.home-faq details[open] .faq-indicator {
  transform: rotate(45deg);
}
.home-faq details > p {
  max-width: 760px;
  margin: 0 0 24px;
  color: var(--muted);
}
@media (max-width: 760px) {
  .home-heading {
    margin-bottom: 32px;
  }
  .home-heading > p {
    margin-top: 16px;
  }
  .workflow-list {
    margin-top: 32px;
  }
  .workflow-list > li {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 24px 0 40px 40px;
  }
  .workflow-number {
    width: 28px;
    height: 28px;
    top: 24px;
  }
  .workflow-list > li:not(:last-child)::before {
    left: 13px;
    top: 52px;
    bottom: -24px;
  }
  .workflow-screen {
    padding: 12px;
  }
  .install-example {
    padding: 24px;
  }
}

.hero {
  padding-top: 0;
  --hero-header-height: 64px;
}
.hero.wrap {
  width: 100%;
}
.hero-stage {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100svh - var(--hero-header-height));
  text-align: center;
}
.hero-art {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
/* Keep the artwork at its original scale independently of the hero height. */
.logo-canvas {
  position: absolute;
  inset: 0;
  height: 100%;
  opacity: 0.72;
}
.logo-canvas canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.logo-fallback {
  display: block;
}
.logo-canvas canvas {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.logo-canvas {
  container-type: size;
}
.logo-fallback {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(min(540px, 72cqh, 95cqw) * 680 / 410.4);
  height: calc(min(540px, 72cqh, 95cqw) * 570 / 410.4);
  max-width: none;
  transform: translate(-50%, -50%);
  object-fit: contain;
}
.logo-canvas.is-ready canvas {
  opacity: 1;
}
.logo-canvas.is-ready .logo-fallback {
  visibility: hidden;
}
.hero-copy {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 2 * var(--gutter)), 760px);
  padding-block: 96px;
  text-shadow: 0 2px 8px var(--bg);
}

.hero-copy h1 > span {
  display: block;
}
.hero-meta {
  display: block;
  max-width: 580px;
  margin: 24px auto 0;
}
.hero-meta p {
  margin-bottom: 12px;
}
.hero-meta .text-link {
  margin-top: 16px;
  justify-content: center;
}
.hero > .product-capture {
  margin-top: 0;
}
@media (min-width: 761px) and (max-width: 1100px) {
  .hero-copy {
    width: min(calc(100% - 2 * var(--gutter)), 760px);
  }

  .hero-meta {
    max-width: 580px;
  }
}
@media (max-width: 760px) {
  .hero {
    padding-top: 0;
  }
  .hero-stage {
    min-height: min(580px, calc(78svh - var(--hero-header-height)));
  }
  .hero-copy {
    flex-shrink: 0;
    padding-block: clamp(24px, 5svh, 40px);
  }

  .hero-meta {
    max-width: 520px;
    margin-top: 24px;
  }

  .logo-canvas {
    height: 100%;
    opacity: 0.6;
  }
  .footer-tagline {
    max-width: 210px;
  }
}

/* Keep the headline readable over every angle of the animated cake. */
.hero-copy h1 {
  color: var(--text);
}
.hero-meta p {
  color: var(--muted);
  text-wrap: balance;
}
.hero-waitlist {
  margin-top: 24px;
  min-height: 48px;
  padding-inline: 24px;
  font-weight: var(--weight-ui);
  text-shadow: none;
}
.cake-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  text-shadow: none;
}
.cake-controls .button {
  min-height: 44px;
}
.cake-count {
  min-height: 21px;
  color: var(--muted);
  font-size: var(--text-sm);
}
@media (max-width: 760px) {
  .hero-waitlist {
    margin-top: 20px;
  }
}

/* Shared semantic typography. */
h1 {
  font-size: var(--title-hero);
  line-height: 1.2;
  letter-spacing: -0.035em;
}
.hero-copy h1 {
  font-size: var(--title-hero);
  line-height: 1.2;
  letter-spacing: -0.035em;
}
.area-hero h1 {
  font-size: var(--title-hero);
  line-height: 1.2;
  letter-spacing: -0.035em;
}
.detail-hero h1 {
  font-size: var(--title-hero);
  line-height: 1.2;
  letter-spacing: -0.035em;
}
h2 {
  font-size: var(--title-section);
  line-height: 1.25;
}
.area-bridge h2 {
  font-size: var(--title-section);
  line-height: 1.25;
}
.installation-section h2 {
  font-size: var(--title-section);
  line-height: 1.25;
}
h3 {
  font-size: var(--text-lg);
}
.integration-tools h3 {
  font-size: var(--text-lg);
}
p {
  font-size: var(--text-base);
  line-height: 1.7;
}
.lead {
  font-size: var(--text-base);
  line-height: 1.7;
}
.hero-meta p {
  font-size: var(--text-base);
  line-height: 1.7;
}
.eyebrow {
  font-size: var(--text-xs);
}
figcaption {
  font-size: var(--text-xs);
}
.site-footer small {
  font-size: var(--text-xs);
}
.hero-waitlist {
  font-size: 15px;
}
.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
:root[data-theme="light"] .logo-canvas {
  opacity: 0.85;
}
.system-samples {
  padding-block: var(--space-16);
}
.system-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-block: var(--space-6);
}
.system-card {
  padding: var(--space-6);
  border: 1px solid transparent;
  border-radius: var(--radius-panel);
}

/* Long translations must wrap inside grid cells instead of widening them. */
h1 {
  overflow-wrap: break-word;
  word-break: normal;
}
h2 {
  overflow-wrap: break-word;
  word-break: normal;
}
h3 {
  overflow-wrap: break-word;
  word-break: normal;
}
p {
  overflow-wrap: break-word;
  word-break: normal;
}
.button {
  overflow-wrap: break-word;
  word-break: normal;
}
pre {
  overflow-wrap: anywhere;
}
code {
  overflow-wrap: anywhere;
}
.button {
  max-width: 100%;
}

/* Protect letter edges without washing out the whole cake behind the copy. */
:root[data-theme="light"] .hero-copy {
  text-shadow: 0 2px 8px var(--bg);
}
:root[data-theme="light"] .hero-meta p {
  color: var(--text);
}

.logo-fallback-light {
  display: none;
}
:root[data-theme="light"] .logo-fallback-dark {
  display: none;
}
:root[data-theme="light"] .logo-fallback-light {
  display: block;
}

/* Crisp subtitle lettering without a rectangular backing. */
.hero-meta > p {
  color: var(--text);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
  text-shadow: 0 2px 8px var(--bg);
}
@media (max-width: 760px) {
  .hero-meta > p {
    font-size: var(--text-base);
  }
}

@media (max-width: 900px) {
  .hero {
    --hero-header-height: 60px;
  }
}

/* Short landscape screens need room for copy without cropping the artwork. */
@media (max-width: 1000px) and (max-height: 600px) and (orientation: landscape) {
  .hero-stage {
    min-height: calc(100svh - var(--hero-header-height));
  }
  .hero-copy {
    flex-shrink: 0;
    padding-block: 24px;
  }
  .logo-canvas {
    max-height: 100%;
  }
}
@media (max-width: 900px) and (max-height: 600px) and (orientation: landscape) {
  .hero-stage {
    min-height: calc(100svh - var(--hero-header-height));
  }
}
/* Developer-first story: one large scene, followed by compact supporting sections. */
.developer-scene {
  margin: 0;
  border: 1px solid transparent;
  border-radius: var(--radius-panel);
  background: var(--surface);
  overflow: hidden;
}
.scene-bar {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 28px;
  border-bottom: 0;
  font-size: var(--text-sm);
}
.scene-bar > span:last-child {
  color: var(--muted);
}
.scene-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.scene-conversation {
  min-width: 0;
  padding: 40px;
}
.scene-terminal {
  min-width: 0;
  padding: 40px;
  border-left: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.scene-prompt {
  font-size: var(--text-lg);
  color: var(--text);
  max-width: 360px;
}
.package-result {
  padding: 24px;
  margin-top: 28px;
  background: var(--bg);
  border: 1px solid transparent;
  border-radius: var(--radius-small);
}
.package-result > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.package-result p {
  margin: 12px 0 0;
  font-size: var(--text-sm);
  color: var(--muted);
}
.package-result .package-status {
  color: var(--text);
}
.scene-terminal pre {
  padding: 24px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: var(--text-base);
}
.scene-terminal > p:last-child {
  color: var(--muted);
}
.developer-scene figcaption {
  padding: 16px 28px;
  border-top: 0;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.6;
}
.supply-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0;
  list-style: none;
  gap: 32px;
  margin: 0;
}
.supply-flow li {
  position: relative;
  padding-top: 24px;
  border-top: 0;
}
.flow-index {
  color: var(--muted);
  font-size: var(--text-sm);
}
.supply-flow li:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: -14px;
  right: 0;
  background: var(--bg);
  padding-left: 12px;
  color: var(--muted);
}
.supply-flow h3 {
  margin-block: 20px 12px;
}
.supply-flow p {
  color: var(--muted);
}
.tool-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px 64px;
  padding-block: 24px;
}
.tool-strip a {
  font-size: 24px;
  padding: 16px 0;
}
.tool-strip span {
  color: var(--muted);
  margin-left: 16px;
}
.support-line {
  text-align: center;
  margin: 24px auto 0;
  max-width: 620px;
}
.support-line p {
  font-size: var(--text-sm);
  color: var(--muted);
  margin-top: 12px;
}
.control-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.control-overview .facts {
  display: block;
  margin: 0;
}
.control-overview .facts article {
  padding: 16px 0;
  border: 0;
}
.review-example {
  padding: 32px;
  border: 1px solid transparent;
  border-radius: var(--radius-panel);
  background: var(--surface);
}
.review-example strong {
  font-size: var(--text-lg);
}
.review-example strong span {
  color: var(--muted);
  font-weight: 400;
}
.review-example dl {
  margin-block: 28px;
}
.review-example dl > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-block: 16px;
  border-bottom: 0;
}
.review-example dd {
  margin: 0;
}
.review-example > p:last-child {
  font-size: var(--text-sm);
  color: var(--muted);
}
@media (max-width: 760px) {
  .scene-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .control-overview {
    grid-template-columns: minmax(0, 1fr);
  }
  .supply-flow {
    grid-template-columns: minmax(0, 1fr);
  }
  .scene-conversation {
    padding: 24px;
  }
  .scene-terminal {
    padding: 24px;
    border-left: 0;
    border-top: 0;
  }
  .scene-bar {
    padding: 16px 24px;
  }
  .developer-scene figcaption {
    padding: 16px 24px;
  }
  .supply-flow {
    gap: 24px;
  }
  .supply-flow li:not(:last-child)::after {
    content: "↓";
  }
  .control-overview {
    gap: 24px;
  }
  .review-example {
    padding: 24px;
  }
}
/* Quiet, oversized brand signature at the very end of the page. */
.brand-ending {
  padding-block: 96px 100px;
}
.ending-copy {
  text-align: center;
  max-width: 620px;
}
.ending-copy h2 {
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.3;
  text-wrap: balance;
}
.ending-copy p {
  max-width: 480px;
  margin: 24px auto 32px;
  color: var(--muted);
  line-height: 1.8;
  text-wrap: pretty;
}
.ending-copy .button {
  min-height: 44px;
}
.ending-signature {
  overflow: hidden;
  container-type: inline-size;
  margin-top: clamp(40px, 6vw, 100px);
  margin-bottom: 0;
  padding-bottom: 0;
}
.ending-signature > svg {
  display: block;
  width: 100%;
  height: auto;
  color: var(--wordmark-color);
}
.brand-symbol {
  fill: var(--brand-logo);
}
.text-link {
  color: var(--brand-mark);
}
.text-link:hover {
  color: var(--brand-hover);
}
.button.secondary {
  color: var(--text);
  background: var(--neutral-hover);
}
.button.secondary:hover {
  background: var(--neutral-selected);
}
.journey a[aria-current="page"] {
  color: var(--text);
  background: var(--neutral-selected);
}
.button {
  border-color: transparent;
}
.button.secondary {
  border-color: transparent;
}
.button.secondary:hover {
  border-color: transparent;
}
.capture-link {
  border-color: transparent;
}
.workflow-screen {
  border-color: transparent;
}
.install-example {
  border-color: transparent;
}
.developer-scene {
  border-color: transparent;
}
.system-card {
  border-color: transparent;
}
.review-example {
  border-color: transparent;
}
.package-result {
  border-color: transparent;
}
.scene-bar {
  background: color-mix(in srgb, var(--brand-soft) 40%, var(--surface));
}
.system-card {
  background: color-mix(in srgb, var(--brand-soft) 40%, var(--surface));
}
@media (max-width: 760px) {
  .brand-ending {
    padding-block: 64px;
  }
  .ending-copy {
    max-width: calc(100% - 40px);
  }
  .ending-copy p {
    margin-block: 20px 28px;
  }
  .ending-signature {
    margin-top: 32px;
    margin-bottom: 0;
  }
}

/* Footer descriptor is static copy, kept on one line in both languages. */
.site-footer .footer-tagline {
  max-width: none;
  white-space: nowrap;
  text-wrap: nowrap;
  font-size: var(--text-base);
}
.site-footer .footer-brand {
  cursor: default;
  align-items: flex-start;
}
.site-footer .footer-brand > .brand-symbol {
  margin-top: 3px;
}
.footer-identity-copy {
  display: grid;
  gap: 6px;
}
.footer-product {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
  white-space: nowrap;
}

html {
  scrollbar-gutter: stable;
}

/* Borderless groups retain hierarchy through space and typography. */
.home-faq details + details {
  margin-top: 8px;
}
.home-faq summary {
  border-radius: var(--radius-option);
  padding-inline: 16px;
}
.home-faq summary:hover {
  background: var(--neutral-hover);
}
.home-faq details > p {
  padding-inline: 16px;
  margin-bottom: 24px;
}
.supply-flow {
  column-gap: 40px;
  row-gap: 32px;
}
.review-example dl > div + div {
  margin-top: 8px;
}
.site-footer h3 {
  font-weight: 600;
}
.button {
  transition:
    background-color var(--duration-hover) ease-out,
    color var(--duration-hover) ease-out;
}
.button.secondary:active {
  background: var(--neutral-pressed);
}
@media (max-width: 760px) {
  .site-footer .footer-brand {
    gap: 8px;
  }
  .site-footer .footer-tagline {
    font-size: clamp(14px, 3.8vw, 16px);
    letter-spacing: -0.015em;
  }
  .hero + .home-section {
    padding-top: var(--space-16);
  }
}

.sample-hover {
  background: var(--neutral-hover);
}

.system-list a:hover {
  background: var(--neutral-hover);
}
.button.sample-selected {
  background: var(--neutral-selected);
}
.system-list {
  max-width: 360px;
  padding: 8px;
  border-radius: var(--radius-popover);
  background: var(--surface);
}
.system-list a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border-radius: var(--radius-option);
}
.system-list a > span {
  color: var(--muted);
}

/* The reference uses the production components, with room to exercise overlays. */
.system-navigation {
  position: relative;
  margin-block: 32px;
  min-height: 44px;
}
.system-navigation .desktop-nav {
  display: grid;
  width: min(100%, 384px);
}
.system-navigation .nav-dropdown {
  position: static;
}
.system-navigation .mega-panel {
  left: 0;
  right: auto;
  top: 44px;
  max-width: 100%;
}
.system-utilities {
  margin-bottom: 32px;
}
.system-utilities .preference-options {
  z-index: 40;
}
.system-cake-states .cake-control:disabled {
  opacity: 1;
}
.system-cake-states .cake-count {
  display: none;
}
.sample-focus {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
@media (max-width: 380px) {
  .system-navigation .desktop-nav {
    gap: 4px;
  }
  .system-navigation .nav-dropdown > summary {
    padding-inline: 8px;
    font-size: 13px;
  }
  .system-navigation .nav-direct {
    padding-inline: 8px;
    font-size: 13px;
  }
}

/* English guidance describes the preserved Korean sample, not a translated console. */
.capture-guide { display: none; }
html[lang="en"] .capture-guide { display: block; margin-top: 20px; text-align: left; }
.capture-guide-title { color: var(--text); margin-bottom: 12px; }
.capture-guide ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; padding-left: 24px; margin: 0; list-style: decimal; }
.capture-guide li { padding-left: 4px; }
.capture-guide strong { display: block; color: var(--text); font-weight: 400; }
.capture-original { display: block; margin-top: 4px; font-size: 14px; }
.capture-guide p { margin: 4px 0 0; }
.link-language { font-size: 0.875em; opacity: 0.8; }
html[lang="en"] .product-capture { display: flex; flex-direction: column; }
html[lang="en"] .product-capture figcaption { order: -1; margin: 0 0 24px; }
@media (max-width: 760px) {
  .capture-guide ol { grid-template-columns: 1fr; gap: 16px; }
}

/* Product copy and evidence; cake geometry, assets and motion remain unchanged. */
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 24px; }
.hero-actions .button { min-height: 48px; margin-top: 0; padding-inline: 24px; text-shadow: none; }
html[lang="ko"] .home-heading h2 { word-break: keep-all; overflow-wrap: normal; text-wrap: balance; }
@media (max-width: 760px) {
  .hero-actions { gap: 10px; margin-top: 20px; }
  .hero-actions .button { padding-inline: 20px; }
}

/* Conversations show the employee experience; the network shows company responsibilities. */
.employee-conversations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; text-align: left; }
.employee-chat .agent-reply > p:last-child { line-height: 1.65; margin: 0; }
.conversation-record { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding: 16px; border-radius: 10px; background: var(--bg); color: var(--muted); font-size: var(--text-xs); line-height: 1.6; }
.conversation-record .map-icon { width: 20px; height: 20px; flex-shrink: 0; }
.conversation-record code { overflow-wrap: anywhere; }
.conversation-footnote { margin-top: 24px; text-align: center; }
.conversation-footnote p { color: var(--muted); font-size: var(--text-xs); line-height: 1.6; margin-bottom: 16px; }
.supply-without { margin: 0 auto 32px; text-align: center; color: var(--muted); }
.supply-without > span { font-size: var(--text-xs); }
.supply-without p { margin-top: 12px; line-height: 1.6; text-wrap: balance; }
.supply-network { --text: var(--comparison-text); --muted: var(--comparison-muted); margin: 0; padding: 32px; border-radius: var(--radius-panel); background: var(--comparison-bg); color: var(--text); text-align: left; }
.supply-network > h3 { font-size: 20px; margin: 0 0 20px; }
.supply-network-canvas { position: relative; height: 460px; }
.supply-connections { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--muted); overflow: visible; }
.supply-mobile { display: none; }
.supply-connections marker path { fill: currentColor; }
.supply-lines { fill: none; stroke: currentColor; stroke-width: 1.5; }
.supply-node { position: absolute; transform: translate(-50%, -50%); width: 22%; text-align: center; padding: 14px 8px; }
.supply-node .map-icon { width: 24px; height: 24px; display: block; margin: 0 auto 10px; }
.supply-node h3 { font-size: 16px; line-height: 1.4; margin: 0 0 8px; color: var(--text); }
.supply-node p { font-size: 12px; line-height: 1.5; margin: 0; color: var(--muted); }
.node-employee { left: 14.5%; top: 50%; }
.node-operator { left: 50%; top: 10%; width: 32%; }
.node-approver { left: 86%; top: 50%; }
.node-repository { left: 50%; top: 86%; }
.node-hub { left: 50%; top: 50%; background: var(--comparison-node-strong); border-radius: 12px; }
.node-hub h3 { font-size: 19px; }
.supply-review-label, .supply-install-label { position: absolute; color: var(--muted); font-size: 12px; line-height: 1.5; }
.supply-review-label { left: 62%; top: 40%; }
.supply-install-label { left: 19%; top: 88%; }
.supply-network figcaption { color: var(--muted); font-size: var(--text-xs); line-height: 1.6; margin-top: 24px; text-align: center; }
html[lang="ko"] :is(.supply-node h3, .supply-node p, .supply-without p, .employee-chat p, .conversation-footnote p) { word-break: keep-all; overflow-wrap: break-word; }
@media (max-width: 760px) {
  .employee-conversations { grid-template-columns: 1fr; gap: 24px; }
  .supply-network { padding: 20px 12px; }
  .supply-network > h3 { padding-inline: 8px; }
  .supply-network-canvas { height: 660px; }
  .supply-wide { display: none; }
  .supply-mobile { display: block; }
  .supply-node { width: 42%; padding: 12px 4px; }
  .supply-node h3 { font-size: 14px; }
  .supply-node p { font-size: 11px; }
  .node-employee { left: 50%; top: 10%; width: 62%; }
  .node-operator { left: 25%; top: 35%; }
  .node-approver { left: 75%; top: 35%; }
  .node-hub { left: 50%; top: 58%; width: 60%; }
  .node-repository { left: 50%; top: 86%; width: 62%; }
  .supply-review-label { left: 54%; top: 23%; font-size: 11px; }
  .supply-install-label { left: 9%; top: 72%; max-width: 90px; font-size: 11px; }
}

/* Home ends with one concrete example and a compact, qualified scope summary. */
.agent-glimpse { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; padding-block: 72px; }
.agent-glimpse-heading h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.25; text-wrap: balance; margin: 16px 0 24px; }
.agent-glimpse-heading > p:not(.eyebrow) { color: var(--muted); line-height: 1.6; margin-bottom: 24px; }
.agent-chat { margin: 0; min-width: 0; padding: 24px; border-radius: var(--radius-panel); background: var(--surface); }
.agent-chat figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: var(--text-xs); margin-bottom: 24px; }
.agent-question { margin-left: 40px; padding: 16px 20px; background: var(--bg); border-radius: 14px 14px 2px 14px; }
.agent-question > p, .agent-next > p { margin: 0; line-height: 1.6; }
.agent-chat .agent-speaker { color: var(--muted); font-size: var(--text-xs); margin: 0 0 8px; }
.agent-reply { padding: 24px 4px 0; }
.agent-lookups { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.agent-lookups span { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-xs); color: var(--muted); }
.agent-lookups span::before { content: '✓'; }
.agent-lookups span + span { margin-left: 8px; }
.agent-answer { color: var(--text); font-size: 20px; line-height: 1.5; margin: 0 0 20px; }
.agent-next { padding-left: 16px; border-left: 2px solid var(--line); }
.agent-chat-boundary { color: var(--muted); font-size: var(--text-xs); line-height: 1.6; margin: 24px 4px 0; }
.scope-glimpse { padding-block: 48px 24px; }
.scope-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.scope-facts p { color: var(--muted); font-size: var(--text-sm); margin-bottom: 8px; }
.scope-facts h3 { font-size: 20px; line-height: 1.4; margin-bottom: 16px; }
.scope-facts .text-link { font-size: var(--text-sm); }
#verified-workflows .scope-detail { text-align: left; }
.scope-detail { margin-top: 28px; display: flex; justify-content: space-between; align-items: start; gap: 32px; }
.scope-detail p { max-width: 630px; color: var(--muted); font-size: var(--text-xs); line-height: 1.6; margin: 0; }
.scope-detail .text-link { flex-shrink: 0; font-size: var(--text-sm); }
html[lang="ko"] :is(.agent-glimpse, .scope-glimpse) { word-break: keep-all; overflow-wrap: break-word; }
@media (max-width: 760px) {
  .agent-glimpse { grid-template-columns: 1fr; gap: 24px; padding-block: 48px; }
  .agent-glimpse-heading h2 { margin-block: 12px 16px; }
  .agent-chat { padding: 20px; }
  .agent-question { margin-left: 20px; padding: 16px; }
  .agent-answer { font-size: 18px; }
  .scope-glimpse { padding-block: 24px; }
  .scope-facts { grid-template-columns: 1fr; gap: 24px; }
  .scope-facts h3 { font-size: 18px; }
  .scope-detail { flex-direction: column; gap: 16px; }
}

html[lang="ko"] :is(.hero h1, .hero-meta > p) { word-break: keep-all; overflow-wrap: break-word; text-wrap: balance; }

/* A small footer keeps the decision path clear without repeating the site map. */
.site-footer.compact-footer { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 28px; padding-block: 48px 24px; }
.compact-footer .footer-brand { grid-column: auto; align-self: center; }
.footer-links { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px 24px; font-size: var(--text-sm); color: var(--muted); }
.compact-footer small { grid-column: 1; margin: 0; font-size: var(--text-xs); }
.footer-settings { justify-self: end; }
.footer-bottom { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 12px 20px; font-size: var(--text-xs); color: var(--muted); }
.footer-legal a:hover { color: var(--text); }

/* Legal text uses the same neutral surface and a comfortable reading measure. */
.legal-page { max-width: 900px; padding-top: clamp(48px, 7vw, 96px); padding-bottom: 64px; }
.legal-documents { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-bottom: 48px; border-bottom: 1px solid color-mix(in srgb, var(--text) 16%, transparent); color: var(--muted); font-size: var(--text-sm); }
.legal-documents a { padding-block: 10px 14px; margin-bottom: -1px; border-bottom: 1px solid transparent; }
.legal-documents a[aria-current="page"] { color: var(--text); border-color: currentColor; }
.legal-documents a:hover { color: var(--text); }
.legal-heading h1 { margin: 0 0 24px; font-size: clamp(30px, 4vw, 48px); line-height: 1.25; letter-spacing: -.035em; text-wrap: balance; }
.legal-heading p { color: var(--muted); line-height: 1.7; margin: 0; }
.legal-heading { margin-bottom: 32px; }
.legal-date { font-size: var(--text-sm); }
.legal-introduction { font-size: 16px; line-height: 1.85; }
.legal-toc { margin-block: 28px 48px; padding-block: 18px; border-block: 1px solid color-mix(in srgb, var(--text) 16%, transparent); font-size: var(--text-sm); }
.legal-toc summary { cursor: pointer; width: fit-content; }
.legal-toc summary:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; border-radius: 3px; }
.legal-toc ol { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 32px; padding-left: 24px; margin: 24px 0 8px; line-height: 1.7; }
.legal-toc a:hover { text-decoration: underline; text-underline-offset: 4px; }
.legal-content section { scroll-margin-top: 100px; }
.legal-content section + section { margin-top: 48px; }
.legal-content h2 { margin: 0 0 16px; font-size: 21px; line-height: 1.4; letter-spacing: -.02em; }
.legal-content p { margin: 0 0 16px; font-size: 16px; line-height: 1.85; overflow-wrap: anywhere; }
.legal-content ul { margin: 0; padding-left: 24px; line-height: 1.85; }
.legal-content li + li { margin-top: 12px; }
.legal-content a { text-decoration: underline; text-underline-offset: 4px; }
.legal-table-scroll { overflow-x: auto; margin-block: 24px; }
.legal-table-scroll:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
.legal-content table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); line-height: 1.75; text-align: left; }
.legal-content :is(th,td) { padding: 16px; border: 1px solid color-mix(in srgb, var(--text) 16%, transparent); vertical-align: top; min-width: 120px; }
.legal-content th { background: var(--surface); font-weight: var(--weight-ui); }
.legal-content td:first-child { min-width: 140px; }
.legal-review-status { margin-top: 56px; padding-top: 24px; border-top: 1px solid color-mix(in srgb, var(--text) 16%, transparent); font-size: var(--text-sm); color: var(--muted); line-height: 1.7; }
html[lang="ko"] .legal-page p { word-break: keep-all; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .legal-documents { margin-bottom: 36px; }
  .legal-toc ol { grid-template-columns: 1fr; }
  .legal-content h2 { font-size: 20px; }
  .legal-content :is(th,td) { padding: 12px; min-width: 96px; }
}
@media (max-width: 760px) {
  .site-footer.compact-footer { grid-template-columns: minmax(0, 1fr) auto; gap: 24px 12px; padding-top: 36px; }
  .compact-footer .footer-brand { grid-column: 1 / -1; }
  .footer-links { grid-column: 1 / -1; justify-content: flex-start; gap: 16px 24px; }
}

/* Compact footer: identity and useful links, then policies and appearance. */
.site-footer.compact-footer { gap: 20px 28px; padding-block: 36px 24px; }
.compact-footer .footer-brand { display: flex; align-items: center; gap: 12px; }
.compact-footer .brand-symbol { flex-shrink: 0; margin: 0; }
.compact-footer .footer-tagline { white-space: normal; font-size: 14px; font-weight: 400; line-height: 1.5; color: var(--muted); }
.compact-footer .footer-bottom { gap: 12px 24px; }
.compact-footer small { font-size: 12px; }
.theme-segments { display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: var(--surface); }
.theme-segments button { display: grid; place-items: center; width: 34px; height: 32px; padding: 7px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; transition: background-color 160ms ease, color 160ms ease; }
.theme-segments button:hover { color: var(--text); }
.theme-segments button[aria-pressed="true"] { color: var(--text); background: var(--surface-hover); }
.theme-segments svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.theme-segments button:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
@media (any-pointer: coarse) { .theme-segments button { width: 44px; height: 44px; } }
@media (max-width: 760px) {
 .site-footer.compact-footer {
   grid-template-areas: "identity identity" "contact appearance" "bottom bottom";
   grid-template-columns: minmax(0, 1fr) auto;
   gap: 24px 16px;
 }
 .compact-footer .footer-brand { grid-area: identity; min-width: 0; }
 .compact-footer .footer-tagline { text-wrap: balance; }
 .compact-footer .footer-links { grid-area: contact; align-self: center; }
 .compact-footer .footer-settings { grid-area: appearance; justify-self: end; }
 .compact-footer .footer-bottom {
   grid-area: bottom;
   justify-content: space-between;
   width: 100%;
 }
}
@media (max-width: 480px) {
 .compact-footer .footer-bottom { flex-direction: column; align-items: stretch; gap: 20px; }
 .compact-footer .footer-legal { justify-content: space-between; order: -1; }
 .compact-footer .footer-bottom small { text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .theme-segments button { transition: none; } }


/* Home closing statement: the same cake, stationary behind a readable CTA. */
.ending-with-cake { position: relative; isolation: isolate; display: grid; place-items: center; min-height: 580px; overflow: hidden; }
.ending-with-cake .ending-copy { position: relative; z-index: 1; max-width: 960px; }
.ending-with-cake h2 { font-size: clamp(24px, 3vw, 36px); line-height: 1.3; }
.ending-with-cake p { max-width: 640px; line-height: 1.6; }
.ending-cake { position: absolute; inset: 0; z-index: 0; opacity: .8; pointer-events: none; container-type: size; }
.ending-cake canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; }
.ending-cake.is-ready canvas { opacity: 1; }
.ending-cake-fallback { position: absolute; top: 50%; left: 50%; width: calc(min(540px, 72cqh, 95cqw) * 680 / 410.4); height: calc(min(540px, 72cqh, 95cqw) * 570 / 410.4); max-width: none; transform: translate(-50%, -50%); }
.ending-cake-light { display: none; }
html[data-theme="light"] .ending-cake { opacity: .65; }
html[data-theme="light"] .ending-cake-dark { display: none; }
html[data-theme="light"] .ending-cake-light { display: block; }
.ending-cake.is-ready .ending-cake-fallback { visibility: hidden; }
@media (max-width: 760px) {
 .ending-with-cake { min-height: 520px; padding-block: 72px; }
 .ending-with-cake .ending-copy { max-width: calc(100% - 40px); }
 .ending-with-cake p { font-size: 15px; }
}

html[lang="ko"] .ending-with-cake h2 { word-break: keep-all; overflow-wrap: break-word; }

/* Keep mobile copy readable without fixed line breaks. */
html[lang="ko"] :is(.home-heading, .product-feature, .ending-copy, .footer-tagline) {
  word-break: keep-all;
  overflow-wrap: break-word;
}
@media (max-width: 760px) {
  :is(.home-heading, .product-feature, .ending-copy) :is(h2, h3) {
    text-wrap: balance;
  }
  :is(.home-heading, .product-feature, .ending-copy) > p {
    text-wrap: pretty;
  }
}
@media (max-width: 360px) {
  .hero-copy h1 { font-size: 30px; }
}

/* Progressive enhancement: no class means fully visible, including without JS. */
.scroll-reveal {
  opacity: 1;
  translate: 0 0;
  transition: opacity 700ms ease, translate 700ms cubic-bezier(.22,1,.36,1);
}
.scroll-reveal[data-reveal-pending] { opacity: 0; translate: 0 18px; }
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal, .scroll-reveal[data-reveal-pending] {
    opacity: 1; translate: none; transition: none;
  }
}
@media print {
  .scroll-reveal, .scroll-reveal[data-reveal-pending] { opacity: 1; translate: none; }
}
