:root {
  color-scheme: light;
  --brand: #f36913;
  --paper: #ffffff;
  --surface: #f5f5f5;
  --tint: color-mix(in srgb, var(--brand) 5%, var(--paper));
  --product-bg: #ffffff;
  --ink: #171717;
  --muted: #616161;
  --accent: var(--brand);
  --email-color: #a43c10;
  --button-bg: #f3e8dd;
  --button-ink: #573724;
  --button-line: #dfc9b6;
  --button-hover: #ead9ca;
  --line: #dedede;
  --footer-bg: #171717;
  --footer-ink: #f5f5f5;
  --radius: 1rem;
  --content: 72rem;
  --gutter: clamp(1.15rem, 4vw, 3rem);
  --section-space: clamp(3.25rem, 8vw, 6rem);
  --serif: Georgia, "Noto Serif KR", "Batang", serif;
  --sans: system-ui, "Noto Sans KR", "Malgun Gothic", sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #141414;
  --surface: #202020;
  --product-bg: #202020;
  --ink: #f5f5f5;
  --muted: #b8b8b8;
  --email-color: #ffac79;
  --button-bg: #3a2b22;
  --button-ink: #f5e8dc;
  --button-line: #604936;
  --button-hover: #4a3629;
  --line: #3a3a3a;
  --footer-bg: #0c0c0c;
  --footer-ink: #f5f5f5;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--sans); }
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.15; }
h1, h2 { font-family: var(--serif); letter-spacing: -.035em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.skip { position: absolute; top: .5rem; left: .5rem; z-index: 10; padding: .5rem; background: var(--paper); transform: translateY(-160%); }
.skip:focus { transform: none; }
.shell { width: min(var(--content), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { min-height: 4.75rem; display: flex; align-items: center; gap: clamp(.75rem, 3vw, 2rem); }
.wordmark { margin-right: auto; font-weight: 650; letter-spacing: .15em; white-space: nowrap; text-decoration: none; }
.site-nav { display: flex; gap: clamp(.8rem, 3vw, 1.9rem); font-size: .92rem; }
.site-nav a { text-decoration: none; }
.site-nav a:hover { opacity: .65; }
.header-controls { display: flex; align-items: center; gap: .75rem; }
.languages { display: flex; gap: .25rem; border-left: 1px solid var(--line); padding-left: .75rem; }
.languages button { position: relative; color: var(--muted); border: 0; background: transparent; font: inherit; font-size: .8rem; min-width: 2rem; min-height: 2.75rem; cursor: pointer; }
.languages button[aria-pressed="true"] { color: var(--ink); font-weight: 650; }
.languages button[aria-pressed="true"]::after { content: ""; position: absolute; bottom: .3rem; left: calc(50% - .125rem); width: .25rem; height: .25rem; border-radius: 50%; background: var(--accent); }
.theme-toggle {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: .4rem;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.theme-toggle[hidden] { display: none; }
@media (hover: hover) {
  .theme-toggle:hover { background: var(--surface); }
}
.theme-icon {
  display: block;
  width: 1.4rem;
  height: 1.4rem;
  fill: currentColor;
}
.theme-sun { display: none; }
:root[data-theme="dark"] .theme-moon { display: none; }
:root[data-theme="dark"] .theme-sun {
  display: block;
  color: var(--accent);
}
.hero { border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-inner { padding-top: var(--section-space); }
.hero h1 { font-size: clamp(3rem, 8vw, 6.5rem); letter-spacing: -.07em; line-height: .96; font-weight: 600; }
.accent { color: var(--accent); }
.intro { margin-top: 1rem; max-width: 34rem; color: var(--muted); }
.section { padding-block: var(--section-space); }
.section-title { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 1.5rem; }
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--accent); }
.product-card, .product-heading { display: flex; align-items: center; gap: clamp(1rem, 4vw, 2.2rem); }
.product-card { padding: clamp(1.25rem, 5vw, 2.8rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--product-bg); text-decoration: none; transition: border-color .18s ease; }
.product-card:hover, .product-card:focus-visible { border-color: var(--accent); }
.product-card h3 { font-size: clamp(1.35rem, 3vw, 2rem); }
.product-card p, .product-heading p { margin-top: .55rem; color: var(--muted); }
.text-link { display: inline-block; color: var(--ink); font-weight: 600; }
.text-link:hover { opacity: .75; }
.app-icon { width: clamp(4.4rem, 11vw, 6.25rem); height: auto; aspect-ratio: 1; flex: none; display: block; border: 1px solid var(--line); border-radius: 24%; object-fit: cover; }
.contact-email { margin-top: .8rem; overflow-wrap: anywhere; }
.text-link[href^="mailto:"] { color: var(--email-color); }
.studio-info { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; border-top: 1px solid var(--line); padding-block: clamp(2rem, 5vw, 4rem); }
.studio-info h2 { margin-bottom: .9rem; }
.studio-info p + p, .studio-info small { margin-top: .7rem; display: block; }
.studio-info section + section { border-left: 1px solid var(--line); padding-left: 2rem; }
.muted, figcaption { color: var(--muted); }
.site-footer { background: var(--footer-bg); color: var(--footer-ink); }
.site-footer .wordmark { font-size: .85rem; }
.detail, .policy { padding-block: var(--section-space); }
.product-heading { margin-block: 1.35rem 2rem; }
.product-heading h1, .policy h1 { font-size: clamp(2.15rem, 6vw, 4.25rem); }
.showcase { background: var(--tint); border-radius: var(--radius); overflow: hidden; }
.product-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.5rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .75rem 1.25rem; border: 1px solid var(--button-line); border-radius: .6rem; background: var(--button-bg); color: var(--button-ink); font-weight: 650; text-decoration: none; transition: background-color .18s ease; }
.button:hover { background: var(--button-hover); }
.availability { margin-block: .9rem 2rem; font-size: .875rem; }
.app-screens { display: grid; grid-template-columns: repeat(3, minmax(0, 16rem)); justify-content: center; align-items: start; gap: clamp(1rem, 3vw, 2.5rem); padding: clamp(1.25rem, 4vw, 3rem); }
.app-screens img { display: block; width: 100%; height: auto; border-radius: 1rem; box-shadow: 0 .4rem 1.5rem #00000022; }
figcaption { padding: .55rem 1rem; background: var(--tint); text-align: center; font-size: .82rem; }
.story { margin-block: 0 2rem; max-width: 42rem; }
.story h2 { font: 650 1rem/1.4 var(--sans); letter-spacing: 0; margin-bottom: .55rem; }
.story p { color: var(--muted); font-size: .95rem; line-height: 1.8; }
.story p + p { margin-top: .6rem; }
.features { margin-block: 1.5rem 2rem; border-top: 1px solid var(--line); }
.features section { display: grid; grid-template-columns: 1.1rem 5rem minmax(0, 1fr); align-items: center; gap: 1rem; padding-block: .85rem; border-bottom: 1px solid var(--line); }
.feature-icon { display: block; width: 1.1rem; height: 1.1rem; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.features h2 { font: 650 1rem/1.4 var(--sans); letter-spacing: 0; }
.features p { color: var(--muted); font-size: .95rem; }
.related h2 { font: 650 1.2rem/1.2 var(--sans); margin-bottom: .45rem; }
.related { margin-top: 2.5rem; background: var(--surface); border-radius: var(--radius); padding: 1.35rem; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.related h2 { margin: 0; }
.product-support { max-width: 42rem; margin-top: 2.5rem; }
.product-support h2 { font: 650 1.2rem/1.4 var(--sans); }
.product-support p { margin-block: .75rem; color: var(--muted); }
.policy h1 { margin-top: .55rem; }
.notice { margin-block: 1rem 2rem; padding: .8rem 1rem; border-left: 3px solid var(--accent); background: var(--surface); }
.policy-layout { display: grid; grid-template-columns: minmax(13rem, 1fr) minmax(0, 3fr); gap: clamp(1rem, 4vw, 3rem); align-items: start; margin-top: 2rem; }
.toc { position: sticky; top: 1.5rem; border-right: 1px solid var(--line); padding-right: 1rem; max-height: calc(100vh - 3rem); overflow-y: auto; }
.toc h2 { font: 650 1rem/1.5 var(--sans); }
.toc ol { padding-left: 1.8rem; margin-bottom: 0; }
.toc li { margin-block: .5rem; }
.toc a:hover { opacity: .75; }
.policy-body { min-width: 0; overflow-wrap: anywhere; }
.policy-body section > [data-content-lang] > :is(p, ol, ul, blockquote) { max-width: 75ch; }
.policy-intro p { margin-top: 1rem; }
[data-content-lang][hidden] { display: none; }
.policy-body a { color: var(--ink); font-weight: 600; }
.policy-body a:hover { opacity: .75; }
.policy-body ol, .policy-body ul { padding-left: 1.5rem; }
.policy-body li + li { margin-top: .6rem; }
.policy-body table { width: 100%; min-width: var(--table-min-width, 40rem); table-layout: fixed; border-collapse: collapse; font-size: .9rem; line-height: 1.65; }
.policy-body th, .policy-body td { padding: .8rem; border: 1px solid var(--line); text-align: left; vertical-align: top; word-break: keep-all; overflow-wrap: anywhere; }
.policy-body th { background: var(--tint); font-weight: 650; }
.policy-body .policy-data { --table-min-width: 50rem; }
.policy-body .policy-contacts, .policy-body .policy-processors, .policy-body .policy-revisions { --table-min-width: 44rem; }
.policy-body .policy-deletion { --table-min-width: 46rem; }
.policy-body .policy-revisions :is(th, td):nth-child(-n + 2) { white-space: nowrap; overflow-wrap: normal; }
.policy-body .table-scroll { margin-block: 1rem; overflow-x: auto; }
.policy-body .table-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.policy-body blockquote { margin: 1rem 0; padding: .8rem 1rem; border-left: 3px solid var(--accent); background: var(--surface); }
.policy-body section { padding-block: 1.5rem; border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
.policy-body section:target h2 { border-left: 3px solid var(--accent); padding-left: .75rem; }
.policy-body h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); margin-bottom: .6rem; }
.policy h1, .policy-body h2, .toc a { word-break: keep-all; }
.policy-body p + p, .policy-body .text-link { margin-top: .8rem; }
@media (max-width: 56rem) {
  .policy-layout { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; border: 0; background: var(--surface); border-radius: var(--radius); padding: 1rem; }
}
@media (max-width: 40rem) {
  .header-inner { flex-wrap: wrap; gap: .15rem .75rem; padding-block: .45rem .7rem; }
  .site-nav { order: 1; width: 100%; gap: 1rem; }
  .site-nav a { display: flex; align-items: center; min-width: 2.75rem; min-height: 2.75rem; }
  .header-controls { gap: .25rem; }
  .languages { border: 0; padding: 0; gap: 0; }
  .languages button { min-width: 2.75rem; }
  .hero h1 { font-size: clamp(2.4rem, 10vw, 4rem); }
  .studio-info { grid-template-columns: 1fr; }
  .app-screens { display: flex; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; }
  .app-screens img { flex: none; width: min(68vw, 16rem); scroll-snap-align: center; }
  .studio-info section + section { border: 0; border-top: 1px solid var(--line); padding: 1.25rem 0 0; }
  .footer-inner { flex-wrap: wrap; align-content: center; gap: .25rem .8rem; }
}
@media (max-width: 30rem) {
  .features section { grid-template-columns: 1.1rem minmax(0, 1fr); gap: .35rem .75rem; }
  .features p { grid-column: 2; }
}

/* Home illustration and product-specific policy */
.sunset-art { aspect-ratio: 3 / 1; margin-top: 1rem; }
.sunset-image { display: block; width: 100%; height: 100%; object-fit: contain; }
/* Keep the PNG geometry and alpha identical in both themes. */
:root[data-theme="dark"] .sunset-image { filter: invert(1) hue-rotate(180deg); }
.policy-context { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; padding: 1rem 1.25rem; background: var(--surface); border-radius: var(--radius); }
.policy-context .app-icon { width: 3.25rem; }
.policy-context small, .policy-context strong { display: block; }
.policy-context small, .policy-lead { color: var(--muted); }
.policy h1 { font-family: var(--sans); font-weight: 700; }
.policy-body h2 { font-family: var(--sans); font-weight: 700; }
.policy-lead { margin-top: .5rem; }
html[lang="ko"] .product-heading h1 { font-family: var(--sans); font-weight: 700; }
