@font-face {
  font-family: "Asiagi Sans"; /* Pretendard subset, see scripts/make-seo-assets.py */
  src: url("/fonts/asiagi-sans.woff2") format("woff2-variations"), url("/fonts/asiagi-sans.woff2") format("woff2");
  font-weight: 45 920;
  font-display: swap;
}

/* Korean breaks between words, not inside them */
html { word-break: keep-all; overflow-wrap: break-word; }

/* inner pages: legal text, form, seller table */
.doc { padding: calc(var(--nav) + var(--s-8)) 0 var(--s-9); }
.doc__wrap { max-width: 760px; margin-inline: auto; }
.doc h1 { font-size: var(--t-h2); line-height: 1.15; margin: 0 0 var(--s-3); }
.doc h2 { font-size: var(--t-h3); line-height: 1.3; margin: var(--s-7) 0 var(--s-3); }
.doc p, .doc li, .doc dd, .doc dt, .doc td, .doc th { font-size: var(--t-body); line-height: 1.7; }
.doc ul { padding-left: 1.2em; margin: 0 0 var(--s-4); }
.doc li { margin-bottom: var(--s-2); }
.doc a { color: var(--action); text-decoration: underline; text-underline-offset: 3px; }
.doc__meta, .doc__lede { margin: 0 0 var(--s-5); }
.doc__lede { font-size: var(--t-lead); }
.doc__table { margin: var(--s-5) 0; border-top: 1px solid var(--line); }
.doc__table > div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--s-4); padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.doc__table dt { font-weight: 500; }
.doc__table dd { margin: 0; overflow-wrap: anywhere; }
.doc__grid { width: 100%; border-collapse: collapse; margin: var(--s-4) 0; }
.doc__grid th, .doc__grid td { text-align: left; vertical-align: top; padding: var(--s-3) var(--s-3) var(--s-3) 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.doc__grid th { font-weight: 500; width: 180px; }
.ref { font-size: var(--t-h3); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.doc-page .doc-footer { padding: var(--s-8) 0 var(--s-8); border-top: 1px solid var(--line); }

/* form */
.form { display: grid; gap: var(--s-5); margin-top: var(--s-6); }
.field { display: grid; gap: var(--s-2); border: 0; padding: 0; margin: 0; min-width: 0; }
.field > label, .field > legend, .check { font-size: var(--t-body); font-weight: 500; }
.field__req, .field__opt { font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 6px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="url"], .field select, .field textarea, .admin input[type="password"] {
  width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; font-size: 16px; color: var(--ink); background: var(--bg);
  border: 1px solid var(--ink); border-radius: var(--r-sm); box-sizing: border-box;
}
.field textarea { min-height: 160px; resize: vertical; line-height: 1.6; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible, .admin input:focus-visible { outline: 3px solid var(--action); outline-offset: 2px; }
.field [aria-invalid="true"] { border-color: #a1260f; box-shadow: inset 0 0 0 1px #a1260f; }
.field__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.field__err { color: #a1260f; font-size: var(--t-body); margin: 0; min-height: 0; }
.field__err:empty { display: none; }
.field__count, .field__note { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.6; }
.field__note a { color: var(--action); text-decoration: underline; text-underline-offset: 3px; }
.check { display: flex; gap: var(--s-3); align-items: flex-start; }
.check input { width: 24px; height: 24px; margin-top: 2px; flex: none; accent-color: var(--action); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin: 0; font-size: var(--t-body); min-height: 0; }
.form__status:empty { display: none; }
@media (max-width: 639px) {
  .field__pair { grid-template-columns: 1fr; }
  .doc__table > div { grid-template-columns: 1fr; gap: var(--s-1); }
  .doc__grid th { width: 110px; }
  .form .btn { width: 100%; }
}

/* admin */
.admin-page { background: var(--bg); }
.admin-bar { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); }
.admin { max-width: 760px; margin: 0 auto; padding: var(--s-5) var(--s-4) var(--s-9); }
.admin h1 { font-size: var(--t-h3); margin: var(--s-4) 0; }
.admin h2 { font-size: var(--t-lead); margin: var(--s-5) 0 var(--s-2); }
.admin__login form { display: grid; gap: var(--s-3); max-width: 360px; }
.admin__tabs, .admin__stages, .admin__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.admin__tab { min-height: 44px; padding: 0 var(--s-4); font: inherit; font-size: 16px; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: var(--r-btn); cursor: pointer; }
.admin__tab.is-on { background: var(--action); color: var(--action-ink); border-color: var(--action); }
.admin__list { list-style: none; margin: var(--s-4) 0; padding: 0; display: grid; gap: var(--s-2); }
.admin__item { display: grid; gap: 4px; width: 100%; text-align: left; padding: var(--s-3) var(--s-4); font: inherit; font-size: 16px; color: var(--ink); background: var(--surface); border: 0; border-radius: var(--r-md); cursor: pointer; }
.admin__item-top { display: flex; justify-content: space-between; gap: var(--s-3); }
.admin__stage { font-size: 14px; color: var(--muted); white-space: nowrap; }
.admin__preview { overflow-wrap: anywhere; }
.admin__when { font-size: 14px; color: var(--muted); }
.admin__flag { font-size: 14px; color: #a1260f; }
.admin__body { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--surface); padding: var(--s-4); border-radius: var(--r-md); }
.admin__events { padding-left: 1.2em; }
.admin__empty { margin: var(--s-4) 0; }
.btn--danger { color: #a1260f; border-color: #a1260f; }
.admin .doc__table > div { grid-template-columns: 110px minmax(0, 1fr); }
.admin .doc__table dd, .admin .doc__table dt, .admin .admin__events li, .admin .admin__body { font-size: 16px; }

.doc .form { display: flex; flex-direction: column; gap: var(--s-5); }
.doc .form > * { width: 100%; }
.doc .form .btn { width: auto; align-self: flex-start; }
@media (max-width: 639px) { .doc .form .btn { width: 100%; align-self: stretch; } }
.field > legend { padding: 0; margin-bottom: var(--s-2); }

/* help articles (/guide and /guide/<slug>): the doc column, with real screens, a source list and one closing line */
.doc .crumbs { margin: 0 0 var(--s-4); font-size: var(--t-small); color: var(--muted); }
.doc .crumbs a { color: var(--muted); }
.doc h3 { font-size: var(--t-card); line-height: 1.4; font-weight: 500; margin: var(--s-6) 0 var(--s-2); }
.doc ol { padding-left: 1.4em; margin: 0 0 var(--s-4); }
.doc figure { margin: var(--s-6) 0; }
.doc figure img { display: block; width: 100%; height: auto; border-radius: var(--r-md); background: var(--surface); }
.doc figure.fig--narrow img { max-width: 360px; margin-inline: auto; }
.doc figure.fig--narrow figcaption { max-width: 360px; margin-inline: auto; }
.doc figcaption { margin-top: var(--s-2); font-size: var(--t-small); line-height: 1.6; color: var(--muted); }
.doc blockquote { margin: var(--s-4) 0; padding: var(--s-3) var(--s-4); border-left: 3px solid var(--line-strong); background: var(--surface); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.doc blockquote p { margin: 0; }
.doc code { font-size: .92em; padding: 1px 5px; border-radius: 4px; background: var(--surface); white-space: nowrap; }
.nb { white-space: nowrap; }
.guide-sources { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.guide-sources h2 { margin-top: 0; }
.guide-sources li, .guide-sources p { font-size: var(--t-small); line-height: 1.6; overflow-wrap: anywhere; }
.guide-next { margin-top: var(--s-6); padding: var(--s-4) var(--s-5); background: var(--surface); border-radius: var(--r-md); }
.doc .guide-list { list-style: none; padding: 0; margin: var(--s-6) 0 0; border-top: 1px solid var(--line); }
.doc .guide-list li { margin: 0; padding: var(--s-5) 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) 160px; gap: var(--s-5); align-items: start; }
.guide-list__thumb { display: block; aspect-ratio: 4 / 3; border-radius: var(--r-sm); overflow: hidden; background: var(--surface); transition: transform .2s ease; }
.guide-list__thumb { display: flex; align-items: center; justify-content: center; padding: 8px; box-sizing: border-box; }
.guide-list__thumb img { width: auto; height: auto; max-width: 100%; max-height: 100%; border-radius: 6px; display: block; transition: transform .3s ease; } /* the whole picture, never cut */
.guide-list li:hover .guide-list__thumb { transform: translateY(-2px); }
.guide-list li:hover .guide-list__thumb img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .guide-list__thumb, .guide-list__thumb img { transition: none; } }
article.doc__wrap p, article.doc__wrap li { text-wrap: pretty; }
article.doc__wrap p + p { margin-top: var(--s-4); }
article.doc__wrap ul { list-style: disc; }
article.doc__wrap ol { list-style: decimal; }
.guide-list h2 { margin: 0 0 var(--s-2); font-size: var(--t-card); line-height: 1.4; font-weight: 500; }
.guide-list h2 a { color: var(--ink); text-decoration: none; }
.guide-list h2 a:hover { text-decoration: underline; }
.guide-list p { margin: 0; }
.doc .guide-list .guide-list__meta { margin-top: var(--s-2); font-size: var(--t-small); color: var(--muted); }
@media (max-width: 639px) {
  .doc .guide-list li { grid-template-columns: minmax(0, 1fr) 96px; gap: var(--s-4); }
}

/* ================================================================ brand and shared chrome (2026-11-06 rebuild)
   The logo: the A mark (navy tile, white A with a sharp apex, blue crossbar) and the name in Pretendard 800. The
   800 weight is the logo's own, not a headline weight (headlines stay at --display-weight). */
.nav__logo { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 28px; height: 28px; flex: none; display: block; }
.brand-name { font-family: var(--font-text); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; line-height: 1; }
.footer__mark .brand-mark { width: 40px; height: 40px; }
.footer__mark .brand-name { font-size: 30px; }
.footer__line { margin: 0; color: var(--muted); font-size: var(--t-body); line-height: 1.6; }
.footer__line a { color: var(--ink); }
.footer__company { gap: var(--s-4); }
.closing__links .footer__col h4 { color: var(--muted); font-weight: 500; }
.footer__legal .credits { color: var(--muted); }
/* the inner pages' footer: the same dark directory as the home's, after the page's own column */
.doc-footer.footer--dark { padding: var(--s-9) 0 var(--s-7); margin-top: var(--s-9); }
.doc-footer .closing__links .footer__legal { margin-top: var(--s-8); }

/* one h3 size on the home: card names and FAQ questions are set by the system; this keeps card names one size */
main h3 { margin: 0; }

/* ================================================================ home
   Every picture is a real screen shown whole at its own ratio: in a phone frame (.device) the image is sized by
   height or width with the other side auto, never object-fit, so nothing is cut. */

/* a phone frame (sections-library.md: a .device built in page CSS): a dark bezel and a round corner; the screen
   inside keeps its own aspect ratio, its corners rounded by 14px only so no part of the screen is hidden */
.device { display: block; flex: none; padding: 7px; border-radius: 28px; background: #05080f;
          box-shadow: 0 0 0 1px color-mix(in oklab, #ffffff 14%, transparent); box-sizing: border-box; }
.device > img { display: block; height: 100%; width: auto; max-width: none; border-radius: 14px; }

/* hero: the picture is the navy brand tile holding two phones side by side, whole; the float card below them */
.hero-devices { background: var(--p-inv-bg); container-type: size; }
.hero-devices > .devices { position: absolute; inset: var(--s-7) var(--s-7) 148px; container-type: size;
                           display: flex; align-items: center; justify-content: center; gap: var(--s-5); }
/* the two phones share one height: the tile's height, or less when their joint width (0.607 + 0.462 of it, plus the
   bezels and the gap) would pass the tile's width */
.hero-devices .device { height: min(100cqh, calc((100cqw - 38px) / 1.069)); }
.hero-devices .ly-float { background: var(--p-bg); color: var(--p-ink); border-color: transparent; }
.hero-devices .ly-float .ly-float__row { color: var(--p-muted); }
.hero-devices .ly-float__title { font-size: var(--t-lead); font-variant-numeric: tabular-nums; }
@media (max-width: 1023px) {
  .hero-devices > .devices { inset: var(--s-5); }
  .hero-devices .ly-float { display: none; }
}
.hero .hero__kicker { color: var(--ink); font-weight: 500; }

/* services: the rows on span-5, the store listing rows on span-6 start-7 (the page's split pair, 5 / start-7) */
.services-rows > li { grid-template-columns: minmax(0, 1fr) auto; }
.services-rows .rows__name { font-weight: 500; }
.services-rows .rows__value { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 500; }
.services-more { margin: var(--s-5) 0 0; }
.listing { align-self: start; background: var(--surface); border-radius: var(--r-lg); padding: var(--s-7); }
.listing__card { background: #ffffff; border-radius: var(--r-md); border: 1px solid var(--line); padding: var(--s-4) 0; display: grid; gap: var(--s-2); }
.listing__card > img { display: block; width: 100%; height: auto; }
@media (max-width: 639px) { .listing { padding: var(--s-4); } }

/* work (the dark band): one phone per card, whole; the panel's height sets the phone's height and the screen's
   own ratio its width. From 1024 a card is a tile: the phone on the left, the words beside it at the top */
.panel.work-shot:not([data-fx]) { --p-h: 400px; height: var(--p-h); aspect-ratio: auto; min-height: 0; flex: none;
             background: var(--p-inv-surface); display: flex; align-items: center; justify-content: center; padding: var(--s-5); }
.panel.work-shot::before { display: none; }
.panel.work-shot::after { box-shadow: none; }
.work-shot > .device { height: 100%; }
.work-card { gap: var(--s-2); }
.work-card > p { margin: 0; }
.work-card__tag { color: var(--muted); }
.work-card__links { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin-top: var(--s-2) !important; }
@media (min-width: 1024px) {
  #work .work-card { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-auto-rows: min-content; align-content: start;
                     column-gap: var(--s-6); row-gap: var(--s-2); background: var(--p-inv-surface); border-radius: var(--r-lg); padding: var(--s-6); }
  #work .work-card > .work-shot { grid-column: 1; grid-row: 1 / span 5; margin: 0; padding: 0; --p-h: 480px; background: none; }
  #work .work-card > :not(.work-shot) { grid-column: 2; }
  #work .work-card > .work-card__tag { margin-top: var(--s-2); }
}
@media (min-width: 1024px) and (max-width: 1279px) { #work .work-card > .work-shot { --p-h: 400px; } }
@media (min-width: 640px) and (max-width: 1023px) { .panel.work-shot:not([data-fx]) { --p-h: 300px; } }
@media (max-width: 639px) {
  /* two-up on a phone, so each half of the band holds one screen */
  #work .work-grid > .work-card { grid-column: auto / span 6; }
  #work .work-grid { row-gap: var(--s-5); }
  .panel.work-shot:not([data-fx]) { --p-h: 236px; padding: var(--s-3); }
  .work-card__links { flex-direction: column; gap: var(--s-1); }
}

/* hero: three short facts at the foot of the words' column, level with the picture's foot (desktop only) */
@media (min-width: 1024px) {
  .hero--split .hero__text { align-self: stretch; display: flex; flex-direction: column; }
  .hero--split .hero__text > .hero-facts { margin-top: auto; padding-top: var(--s-5); border-top: 1px solid var(--line); }
}

/* the close on a service page: the big button 640 wide (sections-library.md, close-type) */
.closing .close--type .btn--xl { width: min(640px, 100%); }

/* faq: the questions open on the right, the heading, a link and three help articles on the left */
.faq-side .section-head { margin-bottom: var(--s-5); }
.faq-reads { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.faq-reads .t-label { color: var(--muted); margin: 0 0 var(--s-3); }
.faq-reads ul { list-style: none; margin: 0 0 var(--s-4); padding: 0; display: grid; gap: var(--s-3); }
.faq-reads li a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.faq-reads li a:hover { text-decoration-color: currentColor; }
.faq .faq__item h3 { font-size: var(--t-lead); }
.faq .faq__item { padding: var(--s-4) 0; }

/* the close on the dark footer: the inverse button */
.closing .close--type .section-head p { color: var(--muted); }

/* phone: the bar carries the main action; the nav bar's own button steps aside so there is one */
@media (max-width: 639px) {
  .nav__actions .btn { display: none; }
}

/* ================================================================ price page (/price) */
.price-page .doc__wrap { max-width: none; }
.price-head { max-width: 760px; }
.price-block { margin-top: var(--s-9); scroll-margin-top: calc(var(--nav) + var(--s-5)); }
.price-block > h2 { margin: 0 0 var(--s-3); }
.price-block > .price-block__line { margin: 0 0 var(--s-6); font-size: var(--t-lead); max-width: 62ch; }
.plan { display: flex; flex-direction: column; gap: var(--s-3); scroll-margin-top: calc(var(--nav) + var(--s-5)); }
.plan > h3 { margin: 0; }
.plan__tier { margin: 0; font-size: var(--t-label); font-weight: 500; color: var(--muted); }
.plan__price { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.plan__price .tier__price { font-size: 28px; font-weight: 500; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.plan__price small { font-size: var(--t-small); color: var(--muted); }
.plan__meta { margin: 0; color: var(--muted); }
.plan__list { margin: 0; padding: 0 0 0 1.1em; display: grid; gap: var(--s-2); }
.plan__list li { line-height: 1.6; }
.plan__needs { padding-top: var(--s-3); border-top: 1px solid var(--line); }
.plan__needs .t-label { margin: 0 0 var(--s-2); color: var(--muted); }
.plan__btn { margin-top: auto; align-self: stretch; }
.plan-grid { row-gap: var(--s-5); align-items: stretch; }
.plan--wide { margin-top: var(--s-5); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-6); align-items: end; }
.plan--wide .plan__main { display: grid; gap: var(--s-3); }
.plan--wide .plan__side { display: grid; gap: var(--s-3); justify-items: start; }
.price-note { margin: var(--s-5) 0 0; max-width: 72ch; }
.price-terms { display: grid; gap: var(--s-4); }
.price-terms .rows { margin: 0; }
@media (max-width: 1023px) { .plan-grid > .plan { grid-column: 1 / -1; } }
@media (max-width: 639px) { .plan--wide { grid-template-columns: 1fr; } .plan--wide .plan__side { justify-items: stretch; } }
html[data-buttons="block"] .plan .btn--secondary.plan__btn { text-decoration: none; border: 1px solid var(--line-strong); }
