/* Lore site. Tokens first; every colour is a light/dark pair chosen separately (not inverted). */
:root {
  color-scheme: light dark;
  --bg: #f5f3ee;          /* cream: page */
  --bg2: #ebe8e0;         /* cream, one step down: doc header bands, FAQ rows */
  --ink: #141414;         /* text on cream and on teal */
  --ink2: #43453f;        /* secondary text on cream (9:1) */
  --deep: #0e6b73;        /* deep teal panels; white text 5.9:1 */
  --teal: #3cc0b8;        /* teal panels; ink text 8:1 */
  --paper: #ffffff;
  --on-deep: #ffffff;
  --on-deep2: #dff3f1;
  --link: #08585f;        /* links on cream 7.5:1 */
  --line: rgba(20, 20, 20, .16);
  --sticker-bg: #0e6b73;  /* sticker on cream */
  --sticker-ink: #ffffff;
  --shadow-card: 0 18px 28px rgba(0, 0, 0, .22), 0 3px 6px rgba(0, 0, 0, .12);
  --head: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Sans", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Hiragino Sans", "Yu Gothic", "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --r-s: 8px; --r-m: 16px; --r-l: 28px;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px;
  --fs-body: 1.0625rem;
  --lh-body: 1.7;
  --ease: cubic-bezier(.23, 1, .32, 1);
}
:root[lang="ko"] { --head: "Jua", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif; --body: system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif; }
:root[lang="zh-Hans"] { --head: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; --body: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
:root[lang="zh-Hant"] { --head: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif; --body: system-ui, -apple-system, "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif; }
:root[lang="ja"], :root[lang="ko"], :root[lang="zh-Hans"], :root[lang="zh-Hant"] { --lh-body: 1.8; }

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a2a2e;
    --bg2: #0f363b;
    --ink: #f5f3ee;
    --ink2: #b8cfcc;
    --link: #7fe0d8;
    --line: rgba(245, 243, 238, .2);
    --sticker-bg: #f5f3ee;
    --sticker-ink: #141414;
    --shadow-card: 0 18px 30px rgba(0, 0, 0, .45), 0 3px 6px rgba(0, 0, 0, .3);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: var(--fs-body)/var(--lh-body) var(--body);
  word-break: auto-phrase; overflow-wrap: break-word; line-break: strict;
  -webkit-tap-highlight-color: rgba(14, 107, 115, .18);
}
img, picture { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.panel-deep :focus-visible, .hero :focus-visible { outline-color: #fff; }
.panel-teal :focus-visible { outline-color: var(--ink); }
.skip { position: absolute; left: var(--s2); top: -100px; background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: var(--r-s); z-index: 50; }
.skip:focus { top: var(--s1); }
.wrap { width: min(100% - 40px, 1180px); margin-inline: auto; }
[translate="no"] { white-space: nowrap; }

/* headings */
h1, h2, h3 { font-family: var(--head); font-weight: 900; line-height: 1.28; margin: 0; text-wrap: balance; letter-spacing: 0; }
:root[lang="ko"] h1, :root[lang="ko"] h2, :root[lang="ko"] h3 { font-weight: 400; }
h2 { font-size: clamp(1.9rem, 1.25rem + 2.7vw, 3.1rem); }
h3 { font-size: 1.25rem; line-height: 1.4; }
p { margin: 0 0 var(--s2); }
.lead { font-size: 1.125rem; color: var(--ink2); max-width: 36em; }
.sticker {
  display: inline-block; background: var(--sticker-bg); color: var(--sticker-ink);
  border-radius: .26em; padding: .02em .22em .08em; margin: .08em .04em;
  transform: rotate(-4deg); box-shadow: 0 .06em 0 rgba(0, 0, 0, .2);
  white-space: nowrap;
}
.hero .sticker, .panel-teal .sticker, .panel-deep .sticker { background: #fff; color: #141414; box-shadow: 0 .06em 0 rgba(0, 0, 0, .25); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 22px;
  border-radius: var(--r-m); font-weight: 700; text-decoration: none; touch-action: manipulation;
  background: var(--ink); color: var(--bg); border: 2px solid var(--ink);
  transition: transform .18s var(--ease), background-color .18s var(--ease);
}
.btn:active { transform: scale(.97); }
.panel-deep .btn, .hero .btn { background: #fff; color: #0a4a50; border-color: #fff; }
.badge { display: inline-block; line-height: 0; margin-block: 14px; border-radius: 9px; transition: transform .18s var(--ease); touch-action: manipulation; }
.badge:active { transform: scale(.97); }
.badge img { height: 54px; width: auto; }
.cta-note { font-size: .9375rem; margin: var(--s1) 0 0; }

/* top bar */
.bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); padding-block: var(--s2); }
.brand { display: inline-flex; align-items: center; gap: 12px; font: 900 1.4rem/1 var(--head); text-decoration: none; color: inherit; min-height: 48px; }
.brand img { border-radius: 10px; }
.bar nav { display: flex; align-items: center; gap: var(--s1); flex-wrap: wrap; justify-content: flex-end; }
.bar nav > a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: inherit; text-decoration: none; font-weight: 700; font-size: .9375rem; border-radius: var(--r-s); }
.bar nav > a:hover { text-decoration: underline; }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border: 1.5px solid currentColor; border-radius: var(--r-s); font-weight: 700; font-size: .9375rem; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: ""; width: 7px; height: 7px; margin-left: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.lang:not([open]) ul { display: none; }
.lang ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; list-style: none; margin: 0; padding: 6px; min-width: 190px; background: var(--paper); color: #141414; border-radius: var(--r-m); box-shadow: 0 18px 40px rgba(0, 0, 0, .3); }
.lang li a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; color: #141414; text-decoration: none; border-radius: var(--r-s); font-weight: 600; }
.lang li a:hover, .lang li a[aria-current] { background: #e4f4f2; }

/* hero */
.hero { background: var(--deep); color: var(--on-deep); overflow: hidden; position: relative; isolation: isolate; }
.hero .bar { color: #fff; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 0; align-items: center; }
.hero-copy { padding-block: var(--s4) var(--s2); position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2.6rem, 1.3rem + 5.6vw, 4.9rem); line-height: 1.2; color: #fff; text-shadow: 0 .05em 0 rgba(0, 0, 0, .25); }
.hero h1 .ln { display: block; }
.hero .sub { font-size: clamp(1.05rem, .95rem + .5vw, 1.35rem); font-weight: 700; margin: var(--s3) 0 var(--s4); max-width: 24em; color: #fff; line-height: 1.6; }
.hero .cta-note { color: var(--on-deep2); }
.stage { position: relative; aspect-ratio: 1 / .92; width: 100%; max-width: 640px; margin-inline: auto; }
.stage > * { position: absolute; }
.stage .m { left: 20%; width: 62%; bottom: -14%; z-index: 1; }
.stage .c1 { left: -2%; top: 12%; width: 66%; z-index: 3; transform: rotate(-4deg); filter: drop-shadow(0 16px 22px rgba(0, 0, 0, .35)); }
.stage .c2 { right: -3%; top: 36%; width: 58%; z-index: 3; transform: rotate(3deg); filter: drop-shadow(0 16px 22px rgba(0, 0, 0, .3)); }
.stage .p1 { left: 46%; top: 3%; width: 22%; z-index: 4; transform: rotate(-8deg); filter: drop-shadow(0 14px 14px rgba(0, 0, 0, .25)); }
.stage .p2 { right: 4%; top: 12%; width: 11%; z-index: 4; }
.stage img { width: 100%; height: auto; }
/* teal colour field behind the art: slanted edge, flush to the right edge of the viewport */
.hero-art { position: relative; margin-inline: -20px; padding-inline: 20px; padding-top: var(--s5); }
.hero-art::before { content: ""; position: absolute; inset: 0 0 0 0; background: var(--teal); clip-path: polygon(0 var(--s4), 100% 0, 100% 100%, 0 100%); z-index: -1; }
.hero-art .stage { margin-top: var(--s2); }
@media (min-width: 900px) {
  .hero-art { margin-inline: 0 -50vw; padding-inline: 0; padding-top: 0; align-self: stretch; display: flex; align-items: flex-end; }
  .hero-art::before { clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%); inset: 0 0 0 -4%; }
  .hero-art .stage { width: min(100%, 640px); margin: 0; }
  .hero-grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); min-height: 640px; }
  .hero-copy { padding-block: var(--s6); }
  .stage { max-width: none; aspect-ratio: 1 / .9; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px) rotate(var(--r, 0deg)); } to { opacity: 1; transform: translateY(0) rotate(var(--r, 0deg)); } }
@media (prefers-reduced-motion: no-preference) {
  .stage .c1 { --r: -4deg; animation: rise .7s var(--ease) .15s both; }
  .stage .c2 { --r: 3deg; animation: rise .7s var(--ease) .3s both; }
}

/* sections */
.sec { padding-block: var(--s6); position: relative; }
@media (min-width: 900px) { .sec { padding-block: var(--s7); } }
.split { display: grid; gap: var(--s5); align-items: center; }
.split > .copy { order: -1; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s6); }
  .split > .copy { order: 0; }
  .split.flip > .art { order: -1; }
}
.edge { padding-bottom: 0; overflow: hidden; }
@media (min-width: 900px) { .edge .split { align-items: end; } .edge .copy { align-self: center; padding-block: var(--s6) !important; } .edge { padding-bottom: 0; } }
.copy p { max-width: 34em; }
.copy h2 + p { margin-top: var(--s3); }
.sub2 { font-weight: 700; font-size: 1.15rem; margin-top: var(--s2); }
.panel-teal { background: var(--teal); color: #141414; }
.panel-teal .copy p, .panel-teal .sub2 { color: #141414; }
.panel-deep { background: var(--deep); color: #fff; }
.panel-deep a:not(.btn) { color: #fff; }
.panel-deep .copy p { color: var(--on-deep2); }
.art { position: relative; min-height: 280px; }
.card { filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .28)) drop-shadow(0 3px 5px rgba(0, 0, 0, .12)); }

/* A: today - phone */
.phone { position: relative; width: min(78%, 330px); margin-inline: auto; padding: 2.2%; border-radius: 13% / 6%; background: linear-gradient(145deg, #6a6c75, #1b1c21 8%, #0b0b0d 50%, #1b1c21 92%, #565862); box-shadow: 0 40px 60px rgba(0, 0, 0, .28), inset 0 0 0 2px rgba(255, 255, 255, .22); transform: rotate(-3deg); }
.phone img { border-radius: 11% / 5%; width: 100%; }
.art .prop { position: absolute; z-index: 2; filter: drop-shadow(0 16px 16px rgba(0, 0, 0, .22)); }
.art .prop img { width: 100%; }

/* B: review */
.steps { display: flex; flex-wrap: wrap; gap: var(--s1); margin: var(--s3) 0 0; padding: 0; list-style: none; }
.steps li { background: #fff; color: #141414; font-weight: 800; font-family: var(--head); padding: 8px 18px; border-radius: var(--r-m); box-shadow: 0 3px 0 rgba(0, 0, 0, .15); }
.steps li + li::before { content: none; }
.tilt-l { transform: rotate(-3deg); }
.tilt-r { transform: rotate(5deg); }

/* FAQ */
.faq-list { display: grid; gap: var(--s1); margin-top: var(--s4); max-width: 52rem; }
.faq-list details { background: var(--bg2); border-radius: var(--r-m); }
.faq-list summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--s2); min-height: 56px; padding: 12px 20px; font-weight: 700; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg); transition: transform .2s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(-135deg); }
.faq-list .a { padding: 0 20px 18px; color: var(--ink2); }
.faq-list .a p { margin: 0; max-width: 40em; }

/* final CTA */
.final { overflow: hidden; }
.final .split { align-items: end; }
.final .art { min-height: 260px; }
.final h2 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.8rem); }

/* footer */
.foot { padding-block: var(--s5) var(--s6); border-top: 1px solid var(--line); font-size: .9375rem; color: var(--ink2); }
.foot .cols { display: grid; gap: var(--s4); }
@media (min-width: 760px) { .foot .cols { grid-template-columns: 1.1fr 1.4fr 1fr; } }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.foot li a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink2); }
.foot .brand { color: var(--ink); }
.foot h2 { font-size: 1rem; font-family: var(--body); font-weight: 700; color: var(--ink); margin-bottom: var(--s1); }
.foot small { display: block; margin-top: var(--s2); }

/* docs (Operate): support, connect, legal */
.docs-top { background: var(--deep); color: #fff; }
.docs-top .bar { color: #fff; }
.crumbs { font-size: .9375rem; color: var(--ink2); padding-top: var(--s3); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--ink2); }
.crumbs a { display: inline-flex; align-items: center; min-height: 32px; }
.doc { padding-block: var(--s4) var(--s6); max-width: 46rem; }
.doc h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.8rem); margin-bottom: var(--s3); }
.doc h2 { font-size: 1.45rem; margin: var(--s5) 0 var(--s2); }
.doc h3 { margin: var(--s3) 0 var(--s1); }
.doc li { margin: var(--s1) 0; }
.doc ul, .doc ol { padding-left: 1.4em; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: var(--s6) 0; }
.doc code, .urlbox code { font: 600 .95em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; word-break: break-all; }
.note { background: var(--bg2); border-radius: var(--r-m); padding: 12px 18px; color: var(--ink2); font-size: .9375rem; margin-bottom: var(--s3); }
.urlbox { background: var(--bg2); border-radius: var(--r-m); padding: 16px 20px; margin: var(--s3) 0; }
.urlbox b { display: block; font-size: .875rem; color: var(--ink2); margin-bottom: 4px; }
.steps-doc { counter-reset: s; list-style: none; padding: 0 !important; }
.steps-doc li { counter-increment: s; position: relative; padding-left: 44px; margin: var(--s2) 0; }
.steps-doc li::before { content: counter(s); position: absolute; left: 0; top: .1em; width: 30px; height: 30px; border-radius: 50%; background: var(--deep); color: #fff; font: 800 .95rem/30px var(--head); text-align: center; }
.examples { display: grid; gap: var(--s1); padding: 0 !important; list-style: none; }
.examples li { background: var(--bg2); border-radius: var(--r-m); padding: 14px 18px; margin: 0; }
.docs-art { display: grid; gap: var(--s3); margin: var(--s4) 0; }
.docs-art .card { max-width: 520px; }
.nf { text-align: center; padding-block: var(--s7); }
.nf h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); margin-bottom: var(--s2); }
.nf img { margin: 0 auto var(--s3); }
@media print { .bar, .foot { display: none; } }

:root[lang^="zh"] .hero h1, :root[lang="ko"] .hero h1 { font-size: clamp(2.1rem, 1rem + 4.4vw, 4.2rem); }
.doc .h1like { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.8rem); margin: 0 0 var(--s3); }
.doc p, .doc li, .doc .lead { max-width: 38em; }

:root[lang="ko"] body { word-break: keep-all; }
.labels { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s2); margin: var(--s3) 0 0; padding: 0; list-style: none; }
.labels li { border: 2px solid #141414; border-radius: 6px; padding: 2px 12px; font: 800 .9375rem/1.6 var(--head); }
.labels li { display: flex; align-items: center; gap: 8px; }
.labels .lb { border: 2px solid #141414; border-radius: 6px; padding: 2px 12px; font: 800 .9375rem/1.6 var(--head); }
.labels .ar { font-weight: 400; }
.hint { font-size: .9375rem; color: var(--ink2); }
.tile::before { content: ""; position: absolute; inset: 8% -2% 6% 4%; background: var(--deep); border-radius: var(--r-l); transform: rotate(4deg); }
.clipcap { aspect-ratio: 1106 / 985; border-radius: 3.6% / 4%; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(20, 20, 20, .14), 0 18px 24px rgba(0, 0, 0, .28); }
.clipcap picture { display: block; height: 100%; }
.clipcap img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.urlcard, .urlbox { display: grid; gap: 8px; justify-items: start; }
.urlcard { background: #fff; color: #141414; border-radius: var(--r-m); padding: 16px 18px; box-shadow: var(--shadow-card); }
.urlcard b, .urlbox b { font-size: .875rem; font-weight: 700; color: var(--ink2); }
.urlcard code, .urlbox code { word-break: normal; overflow-wrap: normal; font-size: .85rem; line-height: 1.5; }
.urlcard .btn, .urlbox .btn { background: #141414; color: #fff; border-color: #141414; cursor: pointer; font: inherit; font-weight: 700; }
.urlbox .btn { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.docs-art { grid-template-columns: minmax(0, 1fr); }
.docs-art .card, .docs-art picture, .docs-art img { max-width: 100%; }
.doc { min-width: 0; }
.foot small a { display: inline-flex; align-items: center; min-height: 44px; }

.stack { display: grid; gap: var(--s3); max-width: 520px; width: 100%; margin-inline: auto; min-height: 0; }
.stack > * { min-width: 0; }
.stack .urlcard { position: relative !important; left: auto !important; top: auto !important; width: 92% !important; margin-left: 6%; transform: rotate(2deg); }
.stack .mini-m { width: 44%; margin-left: 28%; }
.hero a:not(.badge):not(.brand), .hero .cta-note a { color: #fff; }

.hero .lang li a, .lang li a { color: #141414; }
.dl a, .daily-link { display: inline-flex; align-items: center; min-height: 44px; }
.panel-deep .dl a { color: #fff; }
.urlcard code, .urlbox code, .doc code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; font-weight: 600; }
.urlcard b { color: #43453f; }
:root[lang="de"] body { hyphens: auto; }
.hero .lang ul li a:not(.badge):not(.brand) { color: #141414; }
