/* duriit.com — "The sentence is the layout" (taste-skill seed 412280562), on the brand's own tokens.
   Palette and type are the app's (duriit-mobile/constants/RingsTheme.ts): white ground, ink #232323,
   mint #a1ffcb only for the open ring, the action and the closing field. Wanted Sans throughout. */

:root {
  --bg: #ffffff;
  --surface: #f3f3f3;
  --surface-alt: #e9e9e9;
  --ink: #232323;
  --ink-pressed: #000000;
  --muted: #616161;
  --mint: #a1ffcb;
  --mint-ink: #0f3d27;
  --on-ink: #ffffff;
  --negative: #c4242a;

  --font: "Wanted Sans Variable", "Wanted Sans", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;

  /* five steps do all the visible work */
  --step-xl: clamp(3rem, 15.6vw, 15rem);
  --step-l: clamp(2.25rem, 6vw, 6.25rem);
  --step-m: clamp(1.5rem, 4vw, 4.25rem);
  --step-body: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);
  --step-small: 0.9375rem;
  /* the documents (privacy, terms, support, deletion, child safety) add a section and a sub-section step */
  --step-doc: clamp(1.5rem, 1.1rem + 1.25vw, 2.25rem);
  --step-doc-s: clamp(1.125rem, 1rem + 0.35vw, 1.3125rem);

  --margin: clamp(1rem, 2vw, 1.75rem);
  --gutter: clamp(0.75rem, 1.6vw, 1.5rem);
  --section: clamp(7.5rem, 13vw, 13rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--step-body); line-height: 1.6; word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; background: var(--surface); }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; font-weight: 800; }
p { text-wrap: pretty; }
::selection { background: var(--mint); color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--margin); top: -100px; z-index: 10; padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--on-ink); text-decoration: none; font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { padding-inline: var(--margin); }
.nums, .v, .when, .band-time b { font-variant-numeric: tabular-nums; }

/* ---------- type ---------- */
.h-l { font-size: var(--step-l); line-height: 1.02; letter-spacing: -0.04em; }
.h-m { font-size: var(--step-m); line-height: 1.16; letter-spacing: -0.03em; }

/* ---------- controls ---------- */
.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.28em; text-decoration-thickness: 2px; transition: text-decoration-color 180ms ease; }
.link-plain { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1.5px; }
.btn { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 28px 0 22px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-weight: 700; text-decoration: none; white-space: nowrap; transition: transform 140ms var(--ease-out), background-color 180ms ease; }
.btn i { width: 14px; height: 14px; border-radius: 50%; background: var(--mint); transition: transform 240ms var(--ease-out); }
.btn:active { transform: scale(0.97); }
.btn-mint { background: var(--mint); color: var(--ink); }
.btn-mint i { background: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .link:hover { text-decoration-color: currentColor; }
  .btn:hover { background: var(--ink-pressed); }
  .btn:hover i { transform: scale(1.35); }
  .btn-mint:hover { background: var(--on-ink); }
}

/* ---------- top line ---------- */
.top { position: absolute; z-index: 2; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; height: 76px; padding-inline: var(--margin); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 800; font-size: var(--step-body); letter-spacing: -0.02em; text-decoration: none; }
.brand-mark { width: 34px; height: 22px; }
.top-links { display: flex; gap: 28px; font-weight: 600; }
.top-links a { display: inline-flex; align-items: center; min-height: 44px; }
.top-links .narrow { display: none; }

/* ---------- hero: the sentence with the rings in place of 둘이 ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 104px var(--margin) clamp(56px, 9vh, 104px); }
.sentence { font-size: var(--step-xl); line-height: 1; letter-spacing: -0.05em; }
.sentence .line, .close-title .line { display: block; overflow: hidden; padding-bottom: 0.07em; margin-bottom: -0.07em; white-space: nowrap; }
.sentence [data-line], .close-title [data-line] { display: block; }
.rings-word { display: inline-block; width: auto; height: 0.88em; aspect-ratio: 123 / 76; vertical-align: -0.1em; overflow: visible; }
.rings-word circle, .rings-word path { fill: none; stroke-width: 14; }
.r-ink, .r-link { stroke: var(--ink); }
.r-mint { stroke: var(--mint); }
.lead { margin-top: clamp(28px, 4.5vh, 48px); max-width: 27em; }
.actions { margin-top: 32px; }

/* ---------- the plan you can type ---------- */
.field-surface { background: var(--surface); }
.plan { padding-block: clamp(96px, 11vw, 168px); }
.typed { position: relative; margin-top: clamp(8px, 1.4vw, 20px); font-size: var(--step-l); font-weight: 800; letter-spacing: -0.04em; }
.typed::before { content: ""; position: absolute; inset: -0.06em -0.18em -0.04em; border-radius: 0.22em; background: var(--surface-alt); opacity: 0; transition: opacity 180ms ease; pointer-events: none; }
.typed:focus-within::before { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .typed:hover::before { opacity: 1; } }
.typed-input { position: relative; display: block; width: 100%; margin: 0; padding: 0.06em 0 0.14em; border: 0; border-radius: 0; background: transparent; font: inherit; letter-spacing: inherit; line-height: 1.12; color: var(--ink); caret-color: var(--ink); text-overflow: ellipsis; }
.typed-input:focus, .typed-input:focus-visible { outline: none; }
.typed::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 6px; border-radius: 3px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 240ms var(--ease-out); }
.typed:focus-within::after { transform: scaleX(1); }
.caret { position: absolute; z-index: 1; left: 0; top: 0.16em; width: 0.08em; height: 0.92em; background: var(--ink); pointer-events: none; }
.typed:focus-within .caret { opacity: 0; }
.measure { position: absolute; left: 0; top: 0; visibility: hidden; white-space: pre; font: inherit; letter-spacing: inherit; }
.hint { margin-top: 24px; max-width: 34em; }
.answer { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 24px; align-items: start; margin-top: 48px; }
.ui-feed { grid-column: 1 / span 6; max-width: 600px; }
.ui-course { grid-column: 8 / -1; }
.examples { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 32px; margin-top: 56px; }
.examples-label { color: var(--muted); font-size: var(--step-small); }
.examples-list { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.example { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.3em; text-decoration-thickness: 2px; transition: text-decoration-color 180ms ease, transform 140ms var(--ease-out); }
.example::before { content: ""; width: 12px; height: 12px; border: 3px solid var(--ink); border-radius: 50%; background: var(--ink); transition: background-color 180ms ease, transform 240ms var(--ease-out); }
.example[aria-pressed="true"]::before { background: var(--mint); }
.example:active { transform: scale(0.97); }
.example-more::before { background: transparent; }
@media (hover: hover) and (pointer: fine) {
  .example:hover { text-decoration-color: currentColor; }
  .example:hover::before { transform: scale(1.3); }
}

/* ---------- interface pieces: the app's own parts, at the app's size ---------- */
.ui-screen { padding: 20px; border-radius: 28px; background: var(--bg); font-size: 15px; line-height: 1.5; }
.ui-title { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.ui-sec { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 16px; }
.ui-days { display: flex; gap: 6px; margin: 16px 0 12px; }
.ui-days span { position: relative; flex: 1; display: grid; place-items: center; height: 52px; border-radius: 26px; background: var(--surface); color: var(--muted); font-size: 13px; }
.ui-days span i { position: absolute; bottom: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.ui-days .on { background: var(--ink); color: var(--on-ink); font-weight: 700; }
.ui-days .on i { background: var(--mint); }
.band { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 4px 12px; align-items: start; padding: 14px 16px 16px; border-radius: 22px; background: var(--surface); }
.band-time { display: grid; color: var(--muted); font-size: 13px; line-height: 1.3; white-space: nowrap; }
.band-time b { color: var(--ink); font-size: 18px; font-weight: 700; }
.band-title { font-size: 17px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.band-note { margin-top: 2px; color: var(--muted); font-size: 14px; }
.band-steps { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 14px; }
.band-steps li { display: inline-flex; align-items: center; gap: 6px; }
.band-steps li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.band-where { grid-column: 2 / -1; margin-top: 4px; color: var(--muted); font-size: 14px; }
.pair { position: relative; width: 64px; height: 36px; }
.ring { position: absolute; top: 0; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-size: 14px; font-weight: 800; }
.ring.host { left: 0; background: #c7dcf1; }
.ring.open { left: 28px; border: 3px solid var(--ink); background: var(--mint); }
.course { position: relative; padding-left: 36px; }
.course li { position: relative; padding: 4px 0 18px; }
.course li:last-child { padding-bottom: 0; }
.course li::before { content: ""; position: absolute; z-index: 1; left: -31px; top: 9px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); }
.course li.ring-end::before { left: -36px; top: 4px; width: 26px; height: 26px; border: 4px solid var(--ink); background: var(--mint); }
.course li:not(:last-child)::after { content: ""; position: absolute; left: -25px; top: 17px; bottom: -17px; width: 4px; background: var(--ink); }
.course .when { font-weight: 700; }
.course .what { font-size: 17px; font-weight: 700; }
.course .where { display: block; color: var(--muted); font-size: 14px; }
.ui-guide { margin-top: 20px; padding: 14px 18px; border-radius: 22px; background: var(--surface); color: var(--muted); font-size: 14px; }
.ui-guide b { display: block; color: var(--ink); font-size: 15px; }
[data-plan-card].swap { animation: card-swap 420ms var(--ease-out); }
@keyframes card-swap { from { opacity: 0.35; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* pieces that sit on the white ground take the grey stage, their insides go white */
.trust .ui-screen { background: var(--surface); }
.ui-facts { display: grid; gap: 4px; margin-top: 16px; }
.ui-facts li { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; padding: 0 18px; border-radius: 26px; background: var(--bg); }
.ui-facts b { font-weight: 700; }
.ui-facts .ask { padding: 2px 12px; border-radius: 999px; background: var(--mint); color: var(--mint-ink); }
.ui-note { margin-top: 12px; color: var(--muted); font-size: 14px; }
.ui-numbers { display: grid; gap: 4px; margin-top: 16px; }
.ui-numbers li { display: flex; justify-content: space-between; align-items: center; min-height: 52px; padding: 0 10px 0 18px; border-radius: 26px; background: var(--bg); }
.ui-numbers b { font-weight: 700; font-variant-numeric: tabular-nums; }
.ui-chip { padding: 4px 12px; border-radius: 999px; background: var(--surface-alt); font-size: 13px; font-weight: 600; }
.ui-pill { display: grid; place-items: center; min-height: 48px; margin-top: 12px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-weight: 700; }
.ui-chat { display: grid; gap: 8px; }
.ui-notice { justify-self: center; margin-bottom: 4px; color: var(--muted); font-size: 13px; }
.msg { max-width: 80%; padding: 10px 16px; border-radius: 20px; }
.msg.them { justify-self: start; background: var(--bg); }
.msg.me { justify-self: end; background: var(--ink); color: var(--on-ink); }
.msg.blocked { justify-self: end; padding: 0 4px; color: var(--negative); font-size: 13px; font-weight: 600; }
.ui-menu { display: grid; padding: 6px; background: var(--ink) !important; color: var(--on-ink); border-radius: 22px; }
.ui-menu-item { display: flex; align-items: center; min-height: 48px; padding: 0 16px; border-radius: 16px; font-weight: 600; white-space: nowrap; }
.ui-menu-item + .ui-menu-item { margin-top: 2px; background: #2e2e2e; }
.ui-decide { display: grid; gap: 10px; }
.ui-bar { color: var(--muted); font-size: 14px; font-weight: 600; }
.ui-decide .ui-title { font-size: 22px; }
.ui-body { margin-bottom: 6px; color: var(--muted); font-size: 14px; }
.ui-btn { display: grid; place-items: center; min-height: 52px; border-radius: 999px; background: var(--bg); font-size: 17px; font-weight: 700; }
.ui-btn-ink { background: var(--ink); color: var(--on-ink); }

/* ---------- a sample week ---------- */
.week { padding-top: var(--section); }
.week-title .indent { display: block; padding-left: 3vw; }
.week-body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; margin-top: clamp(56px, 6.6vw, 96px); }
.week-photo { grid-column: 1 / span 4; grid-row: 1; }
.week-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
figcaption { margin-top: 12px; color: var(--muted); font-size: var(--step-small); }
.week-word { grid-column: 6 / span 2; grid-row: 1; align-self: start; padding-top: 13px; color: var(--muted); font-size: var(--step-small); }
.week-table { grid-column: 8 / -1; grid-row: 1; align-self: end; }
.week-day + .week-day { margin-top: 44px; }
.week-day li { display: grid; grid-template-columns: 1.6em minmax(0, 1fr) auto; column-gap: 16px; align-items: baseline; padding-block: 13px; }
.week-day .k { color: var(--muted); }
.week-day .v { text-align: right; white-space: nowrap; }

/* ---------- the city, moving ---------- */
.seoul { margin-top: var(--section); }
.seoul-frame { height: clamp(260px, 40vw, 640px); overflow: hidden; background: var(--surface); }
.seoul-video { width: 100%; height: 100%; object-fit: cover; }
.seoul figcaption { margin-top: 14px; }

/* ---------- how it works: four lines stepping across ---------- */
.how { padding-top: var(--section); }
.how .ui-screen { background: var(--surface); }
.how-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.how-grid .stairs { grid-column: 1 / -1; grid-row: 1; }
.how-grid .ui-decide { grid-column: 1 / span 3; grid-row: 1; align-self: end; max-width: 340px; }
.stairs { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 56px; }
.stairs li:nth-child(1) { grid-column: 1 / -1; }
.stairs li:nth-child(2) { grid-column: 3 / -1; }
.stairs li:nth-child(3) { grid-column: 5 / -1; }
.stairs li:nth-child(4) { grid-column: 7 / -1; }
.stairs h3 { white-space: nowrap; }
.stairs p { max-width: 23em; margin-top: 12px; }

/* ---------- trust: rows hanging from one axis ---------- */
.trust { padding-top: var(--section); }
.trust-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-content: center; min-height: clamp(200px, 26svh, 320px); }
.trust-head h2 { grid-column: 5 / -1; }
.trust-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; margin-top: clamp(72px, 8vw, 120px); }
.trust-text { grid-column: 5 / span 5; }
.trust-text p { max-width: 22em; margin-top: 16px; }
.trust-pic { grid-column: 10 / -1; justify-self: end; width: 100%; }
.pic-review { max-width: 340px; }
.pic-hide { grid-column: 11 / -1; max-width: 300px; min-width: 300px; }
.pic-chat { grid-column: 9 / -1; max-width: 400px; }
.pic-park { grid-column: 10 / -1; }
.pic-park img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.pic-menu { grid-column: 11 / -1; max-width: 260px; }

/* ---------- questions, every answer open ---------- */
.faq { padding-top: var(--section); }
.qa { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); margin-top: clamp(56px, 6vw, 84px); }
.qa-head { margin-top: 0; }
.qa .q { grid-column: 1 / span 6; }
.qa-head .q { color: var(--muted); }
.qa .a { grid-column: 8 / -1; max-width: 24em; padding-top: 0.55em; }

/* ---------- the close, on ink ---------- */
.close { display: grid; grid-template-rows: 1fr auto; min-height: 82svh; margin-top: var(--section); padding: clamp(96px, 14vh, 176px) var(--margin) 40px; background: var(--ink); color: var(--on-ink); }
.close-title { font-size: var(--step-xl); line-height: 1; letter-spacing: -0.05em; }
.close-foot { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; margin-top: 72px; }
.close-foot p { grid-column: 1 / span 6; max-width: 24em; }
.close-foot .btn { grid-column: 9 / -1; justify-self: end; }
.close :focus-visible { outline-color: var(--mint); }

/* ---------- footer: the address is the headline ---------- */
.foot { display: grid; grid-template-rows: auto auto 1fr auto; min-height: 90svh; padding: 40px var(--margin) 32px; background: var(--mint); color: var(--ink); }
.foot-notes { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; font-size: var(--step-small); }
.foot-notes p:nth-child(1) { grid-column: 1 / span 3; }
.foot-notes p:nth-child(2) { grid-column: 4 / span 6; }
.foot-notes a { grid-column: 11 / -1; justify-self: end; display: inline-flex; align-items: center; min-height: 44px; margin-top: -12px; }
.foot-mail { align-self: end; display: block; margin-top: 64px; font-size: var(--step-xl); font-weight: 800; letter-spacing: -0.05em; line-height: 0.96; text-decoration: none; }
.foot-mail span { display: block; }
.foot-meta { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); margin-top: 40px; font-size: var(--step-small); color: var(--mint-ink); }
.foot-meta p:nth-child(1) { grid-column: 1 / span 3; }
.foot-meta .credits { grid-column: 4 / span 7; max-width: 40em; }
.foot-meta p:nth-child(3) { grid-column: 11 / -1; text-align: right; }
.foot-docs { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); margin-top: 16px; font-size: var(--step-small); }
.foot-docs ul { grid-column: 4 / -1; display: flex; flex-wrap: wrap; column-gap: 28px; }
.foot-docs a { display: inline-flex; align-items: center; min-height: 44px; }
.foot-docs .key { font-weight: 800; }
.foot :focus-visible { outline-color: var(--ink); }

/* ---------- documents: privacy, terms, support, account deletion, child safety ----------
   Text pages on the same tokens. The title and its summary sit on the white ground; the document
   itself sits on the grey field the landing page gives its plan, with its facts and notes in white
   the way the landing page's interface pieces are. Every section hangs its heading at the margin and
   its text from column 6 to the far margin, the landing page's question-and-answer rows. No motion:
   these are read, searched and printed. */
.top-links a[aria-current="page"] { text-decoration-color: currentColor; }
.doc-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; padding: clamp(128px, 11vw, 168px) var(--margin) 0; }
.doc-title { grid-column: 1 / -1; font-size: var(--step-l); line-height: 1.02; letter-spacing: -0.04em; }
.doc-intro, .doc-toc { margin-top: clamp(32px, 3.4vw, 48px); }
.doc-intro { grid-column: 1 / span 7; }
.doc-intro > * + * { margin-top: 20px; }
.doc-intro > .doc-action { margin-top: 32px; }
.doc-lead { max-width: 32em; font-size: max(1.125rem, var(--step-body)); }
.doc-status { max-width: 34em; padding: 18px 22px; border-radius: 22px; background: var(--surface); }
.doc-meta { color: var(--muted); font-size: var(--step-small); }
.doc-toc { grid-column: 8 / -1; font-size: var(--step-small); }
.doc-toc-title { color: var(--muted); }
.doc-toc ul { margin-top: 6px; columns: 2; column-gap: var(--gutter); }
.doc-toc li { break-inside: avoid; }
.doc-toc-short ul { columns: 1; }
.doc-toc a { display: inline-flex; align-items: center; min-height: 32px; }
.doc { margin-top: clamp(64px, 6vw, 96px); padding: clamp(72px, 7vw, 112px) var(--margin) clamp(96px, 10vw, 160px); background: var(--surface); }
.doc-sec { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: baseline; scroll-margin-top: 24px; }
.doc-sec + .doc-sec { margin-top: clamp(72px, 7vw, 112px); }
.doc-sec > h2 { grid-column: 1 / span 5; padding-right: var(--gutter); font-size: var(--step-doc); line-height: 1.2; letter-spacing: -0.03em; }
.doc-text { grid-column: 6 / -1; }
.doc-text > * + * { margin-top: 20px; }
.doc-text > h3 { margin-top: 48px; font-size: var(--step-doc-s); line-height: 1.4; letter-spacing: -0.01em; }
.doc-text > h3 + * { margin-top: 12px; }
.doc-text a, .doc-status a { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1.5px; overflow-wrap: anywhere; }
.doc-list > li { position: relative; padding-left: 24px; }
.doc-list > li + li { margin-top: 10px; }
.doc-list > li::before { content: ""; position: absolute; left: 4px; top: calc(0.8em - 4px); width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.doc-pairs { display: grid; grid-template-columns: minmax(0, 12em) minmax(0, 1fr); gap: 14px 28px; padding: 22px 24px; border-radius: 22px; background: var(--bg); }
.doc-pairs dt { font-weight: 700; }
/* the course line from the app's own deletion screen: rings at the two ends, dots between */
.doc-course { padding-left: 44px; }
.doc-course > li { position: relative; padding-bottom: 24px; }
.doc-course > li:last-child { padding-bottom: 0; }
.doc-course > li::before { content: ""; position: absolute; z-index: 1; left: -36px; top: calc(0.8em - 8px); width: 16px; height: 16px; border-radius: 50%; background: var(--ink); }
.doc-course > li.ring-end::before { left: -41px; top: calc(0.8em - 13px); width: 26px; height: 26px; border: 4px solid var(--ink); background: var(--mint); }
.doc-course > li:not(:last-child)::after { content: ""; position: absolute; left: -30px; top: 0.8em; bottom: -0.8em; width: 4px; background: var(--ink); }
.doc-course b { font-weight: 800; }
/* what is not decided yet, and notes for the legal review: both go before the pages are published */
.todo { background: none; color: var(--negative); font-weight: 700; }
.doc-note { padding: 18px 22px; border-radius: 22px; background: var(--bg); }
.doc-note b:first-child { margin-right: 4px; color: var(--negative); }
@media (hover: hover) and (pointer: fine) {
  .doc-text a:hover, .doc-status a:hover { text-decoration-thickness: 3px; }
}

/* ---------- tablet: rows keep text and picture side by side without crossing ---------- */
@media (max-width: 1100px) {
  .trust-text { grid-column: 1 / span 7; }
  .trust-pic, .pic-review, .pic-hide, .pic-chat, .pic-park, .pic-menu { grid-column: 8 / -1; min-width: 0; max-width: none; }
  .trust-head h2 { grid-column: 1 / -1; }
  .how-grid .stairs { grid-row: 1; }
  .how-grid .ui-decide { grid-column: 1 / span 6; grid-row: 2; align-self: start; max-width: 360px; margin-top: 56px; }
  .week-photo { grid-column: 1 / span 5; }
  .week-word { display: none; }
  .week-table { grid-column: 7 / -1; }

  .doc-page .top-links .wide { display: none; }
  .doc-page .top-links .narrow { display: inline-flex; }
  .doc-intro { grid-column: 1 / span 10; }
  .doc-toc { grid-column: 1 / -1; }
  .doc-sec { display: block; }
  .doc-sec > h2 { padding-right: 0; }
  .doc-text { max-width: 42em; margin-top: 20px; }
}

/* ---------- phone: its own composition ---------- */
@media (max-width: 760px) {
  .top { height: 64px; }
  .top-links .wide { display: none; }
  .top-links .narrow { display: inline-flex; }
  .hero { min-height: 0; padding-top: clamp(132px, 24svh, 220px); padding-bottom: 88px; justify-content: flex-start; }
  .lead { margin-top: 32px; }
  .btn { min-height: 56px; }

  .answer { display: block; margin-top: 32px; }
  .ui-feed, .ui-course { max-width: none; }
  .ui-course { margin-top: 16px; }
  .ui-screen { padding: 16px; }
  .examples { display: block; margin-top: 32px; }
  .examples-list { gap: 8px; margin-top: 12px; }
  .example { padding: 0 18px 0 16px; border-radius: 999px; background: var(--bg); text-decoration: none; }

  .week-title .indent { padding-left: 0; }
  .week-body { display: block; margin-top: 40px; }
  .week-word { display: none; }
  .week-day li { grid-template-columns: 1.6em minmax(0, 1fr) auto; padding-block: 10px; }
  .week-day li .p { grid-column: 2 / -1; grid-row: 2; }
  .week-day li .v { grid-column: 3; grid-row: 1; }
  .week-day + .week-day { margin-top: 28px; }
  .week-photo { width: 60%; margin: 40px 0 0 auto; }
  .seoul-frame { height: 62vw; }

  .stairs { display: grid; grid-template-columns: 1fr; row-gap: 40px; }
  .stairs li:nth-child(n) { grid-column: 1; }
  .stairs li:nth-child(2) { padding-left: 6vw; }
  .stairs li:nth-child(3) { padding-left: 12vw; }
  .stairs li:nth-child(4) { padding-left: 18vw; }
  .stairs h3 { white-space: normal; }

  .trust-head { display: block; min-height: 0; padding-block: 24px 8px; }
  .trust-row { display: block; margin-top: 64px; }
  .trust-pic { width: 100%; max-width: none; min-width: 0; margin-top: 24px; }
  .pic-park { width: 70%; margin-left: auto; }
  .pic-menu { width: 60%; max-width: 260px; }

  .qa { display: block; margin-top: 48px; }
  .qa .a { padding-top: 0; margin-top: 12px; }

  .close { min-height: 80svh; padding-top: 88px; }
  .close-foot { display: block; margin-top: 56px; }
  .close-foot .btn { display: flex; justify-content: center; width: 100%; margin-top: 28px; }

  .foot-notes, .foot-meta { display: grid; grid-template-columns: 1fr; row-gap: 12px; }
  .foot-notes p:nth-child(n), .foot-notes a, .foot-meta p:nth-child(n), .foot-meta .credits { grid-column: 1; justify-self: start; text-align: left; }
  .foot-docs { display: block; margin-top: 8px; }
  .foot-docs ul { column-gap: 20px; }
  .how-grid { display: block; }
  .how-grid .ui-decide { max-width: none; margin-top: 48px; }

  .doc-intro { grid-column: 1 / -1; }
  .doc-action .btn { display: flex; justify-content: center; width: 100%; }
  .doc-toc ul { columns: 1; }
  .doc-toc a { min-height: 44px; }
  .doc-pairs { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 18px 18px 20px; }
  .doc-pairs dd + dt { margin-top: 14px; }
  .doc-course { padding-left: 40px; }
}

/* ---------- print: the documents on paper ---------- */
@media print {
  .top, .skip, .doc-toc, .doc-action, .foot { display: none; }
  .doc-head, .doc { padding: 0; }
  .doc { margin-top: 32px; background: none; }
  .doc-title { font-size: 28pt; }
  .doc-sec { display: block; }
  .doc-text { margin-top: 12px; }
}

/* ---------- motion (content stays visible without script and with reduced motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .sentence [data-line] { transform: translateY(105%); animation: line-up 1000ms var(--ease-expo) forwards; animation-delay: calc(var(--i, 0) * 120ms + 120ms); }
  .js .rings-word .r-ink { stroke-dasharray: 195; stroke-dashoffset: 195; animation: ring-draw 900ms var(--ease-out) 420ms forwards; }
  .js .rings-word .r-mint { transform-box: fill-box; transform-origin: center; opacity: 0; transform: translateX(42%); animation: ring-join 1100ms var(--ease-expo) 760ms forwards; }
  .js .rings-word .r-link { opacity: 0; animation: ring-link 220ms ease 1500ms forwards; }
  .js [data-rise] { opacity: 0; transform: translateY(18px); animation: rise 800ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 110ms + 380ms); }

  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  /* the observer watches the unclipped parent; the lines and the picture move inside it */
  .js .close-title[data-reveal] { opacity: 1; transform: none; }
  .js .close-title [data-line] { transform: translateY(105%); transition: transform 1000ms var(--ease-expo); transition-delay: calc(var(--i, 0) * 120ms); }
  .js .close-title.is-in [data-line] { transform: none; }
  .js .stairs li[data-reveal] { transform: translateX(-28px); }
  .js .stairs li[data-reveal].is-in { transform: none; }

  /* the signature move: the city opens from the top edge while the film settles */
  .js .seoul[data-reveal] { opacity: 1; transform: none; }
  .js .seoul .seoul-frame { clip-path: inset(0 0 100% 0); transition: clip-path 1100ms var(--ease-in-out); }
  .js .seoul .seoul-video { transform: scale(1.12); transition: transform 1600ms var(--ease-soft); }
  .js .seoul.is-in .seoul-frame { clip-path: inset(0); }
  .js .seoul.is-in .seoul-video { transform: none; }

  .caret { animation: blink 1.1s steps(1) infinite; }
  .pic-park img { transition: transform 1200ms var(--ease-soft); }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .pic-park:hover img { transform: scale(1.03); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
@keyframes line-up { to { transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes ring-draw { to { stroke-dashoffset: 0; } }
@keyframes ring-join { to { opacity: 1; transform: none; } }
@keyframes ring-link { to { opacity: 1; } }
@keyframes blink { 50% { opacity: 0; } }
