/*
 * Devin 한국어 가이드 — design tokens and components.
 * Source of every value: docs/DESIGN_REFERENCE.md (observed on https://devin.ai/desktop, 2026-11-07 KST).
 * "adapted" marks values changed for Korean text or WCAG AA contrast.
 */

/* ---------- Fonts ---------- */
@font-face { font-family: geistMono; src: url("../fonts/geist-mono/GeistMono-Variable.woff2") format("woff2"); font-display: swap; font-weight: 100 900; font-style: normal; unicode-range: U+0021-10FFFF; } /* adapted: space falls through to Pretendard so Korean words in mono labels keep normal spacing */

:root {
  /* type families — adapted: Pretendard for all text (owner decision); Geist Mono kept for code/labels (observed) */
  --font-heading: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-body: var(--font-heading);
  --font-mono: geistMono, "Pretendard Variable", Pretendard, ui-monospace, monospace;
  --font-label: var(--font-body); /* adapted: labels carry Korean text, so they use Pretendard; Geist Mono is limited to code, URLs and numerals */

  /* color — observed light theme */
  --bg-page: rgb(252 252 252);
  --bg-wash: rgb(248 248 248);
  --bg-elevated: rgb(255 255 255);
  --text-primary: rgb(25 25 25);
  --text-secondary: rgb(25 25 25 / .68);      /* adapted from .56 for 4.5:1 */
  --text-tone: rgb(25 25 25 / .5);            /* adapted from .4, large text only (3:1) */
  --accent: rgb(49 124 255);                  /* dt-primary: borders, focus */
  --accent-text: rgb(31 95 214);              /* adapted: accent as small text, 5.5:1 */
  --accent-tint: rgb(51 125 244 / .1);
  --tint: rgb(0 0 0 / .04);
  --tint-strong: rgb(0 0 0 / .06);
  --border: rgb(0 0 0 / .08);
  --border-secondary: rgb(0 0 0 / .06);
  --green: rgb(0 165 88);
  --black: rgb(0 0 0);

  /* radius — observed */
  --radius-sm: 4px;
  --radius-window: 12px;
  --radius-pill: 9999px;

  /* layout — observed */
  --container: 1400px;
  --gutter: 20px;
  --measure: 40rem;                           /* observed .container step; used as reading measure */

  /* header — observed nav bar 52px (desktop) / 60px (mobile) */
  --header-h: 60px;
  --subnav-h: 45px;

  /* motion — observed */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --dur: .2s;
  --dur-fast: .1s;
  --ease-out: cubic-bezier(0, 0, .2, 1);
}
@media (min-width: 48rem) { :root { --gutter: 40px; } }
@media (min-width: 64rem) { :root { --gutter: 60px; --header-h: 52px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (max-width: 63.99rem) { html:has(.subnav) { scroll-padding-top: calc(var(--header-h) + var(--subnav-h) + 16px); } }
html.menu-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg-wash);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 2px; transition: opacity var(--dur) var(--ease), color var(--dur) var(--ease), background-color var(--dur) var(--ease); }
a:hover { color: var(--accent-text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
main:focus { outline: none; }
::selection { background: var(--accent-tint); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; } }

/* ---------- Type scale (observed: .text-h1…h4, .text-16, .text-14, .text-mono-12) ---------- */
.t-h1, .t-h2, .t-h3, .t-h4 { font-family: var(--font-heading); font-weight: 500; }   /* adapted: Pretendard 500 ≈ stroke of observed NB 400 */
.t-h1 { font-size: 40px; line-height: 1.15; letter-spacing: -.025em; }   /* lh adapted from 1.05 */
.t-h2 { font-size: 32px; line-height: 1.2; letter-spacing: -.025em; }    /* lh adapted from 1.04 */
.t-h3 { font-size: 24px; line-height: 1.3; letter-spacing: -.02em; }    /* lh adapted from 1.2 */
.t-h4 { font-size: 20px; line-height: 1.4; letter-spacing: -.01em; }    /* lh adapted from 1.2 */
@media (min-width: 48rem) { .t-h1 { font-size: 52px; } .t-h2 { font-size: 40px; } }
@media (min-width: 64rem) { .t-h1 { font-size: 64px; line-height: 1.1; } .t-h3 { font-size: 32px; } }
.tone { color: var(--text-tone); }
.mono-label {
  font-family: var(--font-label);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .03em;
  text-transform: uppercase;
  font-weight: 400;
}

/* ---------- Layout ---------- */
.page-container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.band { border-top: 1px solid var(--border-secondary); }
.frame { padding-block: 48px; }
@media (min-width: 64rem) {
  .frame { border-inline: 1px solid var(--border-secondary); padding: 60px 16px; }
}

/* ---------- Skip link ---------- */
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--black); color: #fff; padding: 8px 16px; border-radius: var(--radius-pill); text-decoration: none; font-size: 14px; }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Buttons (observed: pill, 42/28px, 0 20px / 0 12px) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 42px; padding: 0 20px;
  border: 1px solid transparent; border-radius: var(--radius-pill);
  font-family: var(--font-heading); font-size: 16px; line-height: 1.5; font-weight: 400;
  white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: opacity var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.btn--sm { height: 28px; padding: 0 12px 1px; font-size: 14px; }
.btn--primary { background: var(--black); color: #fff; }
.btn--primary:hover { color: #fff; opacity: .8; }
.btn--secondary { background: transparent; color: var(--text-primary); border-color: var(--border); }
.btn--secondary:hover { color: var(--text-primary); background: var(--tint); }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Badge (observed: mono-12, 6px pad, accent tint, 4px) ---------- */
.badge {
  display: inline-flex; align-items: center; flex: none;
  padding: 4px 6px; border-radius: var(--radius-sm);
  background: var(--accent-tint); color: var(--text-primary);
  font-family: var(--font-label); font-size: 12px; line-height: 1.4; letter-spacing: .03em; text-transform: uppercase;
}
.badge--neutral { background: var(--tint-strong); color: var(--text-secondary); }

/* ---------- Header / navigation (observed: fixed 52px bar, bg-wash, 14px pill links 28px high) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg-wash); }
.site-header__inner { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }
.wordmark { display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 36px; text-decoration: none; }
.wordmark:hover { color: var(--text-primary); }
.wordmark__logo { display: block; width: auto; height: 20px; }
.site-menu { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 0; }
.site-nav { flex: 1; min-width: 0; }
.site-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
/* Official devin.ai nav (computed 2026-11-09): 14px/19.6px, 400, normal tracking, 28px pill, hover tint .06, no current-page chrome. */
.nav-link {
  display: inline-flex; align-items: center; min-height: 28px; padding: 1px 12px 0;
  border-radius: 200px; font-size: 14px; font-weight: 400; line-height: 19.6px; letter-spacing: normal;
  white-space: nowrap; text-decoration: none; color: var(--black);
  transition: color .15s cubic-bezier(.4, 0, .2, 1), background-color .15s cubic-bezier(.4, 0, .2, 1);
}
.nav-link:hover { background: rgba(0, 0, 0, .06); color: var(--black); }
.menu-toggle { display: none; }
@media (min-width: 64rem) { .site-nav { margin-left: 28px; } }
@media (max-width: 63.99rem) {
  /* without JS: links stay visible as a scrollable row under the bar */
  .site-header__inner { flex-wrap: wrap; }
  .site-menu { order: 3; flex-basis: 100%; overflow-x: auto; padding-bottom: 8px; }
  .site-menu .nav-link, .site-menu .btn { outline-offset: -2px; }
  .nav-link { min-height: 36px; }
  /* with JS: hamburger + full-height panel (observed pattern: stacked rows, 1px separators, CTA at bottom) */
  .js .site-header__inner { flex-wrap: nowrap; height: var(--header-h); }
  .js .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center; margin-left: auto;
    width: 36px; height: 36px; padding: 0; border: 0; border-radius: var(--radius-pill); background: none; color: var(--text-primary); cursor: pointer;
  }
  .js .site-menu { display: none; }
  .js .is-open .site-menu {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    padding: 8px var(--gutter) 32px; background: var(--bg-wash); overflow-y: auto;
  }
  .js .is-open .site-nav { flex: none; }
  .js .is-open .site-nav ul { flex-direction: column; gap: 0; }
  .js .is-open .nav-link { display: flex; gap: 10px; min-height: 52px; padding: 0; border-radius: 0; border-bottom: 1px solid var(--border-secondary); background: none; font-size: 17px; }
  .js .is-open .site-header__docs { align-self: flex-start; margin-top: 24px; height: 42px; padding: 0 20px; font-size: 16px; }
}
.menu-toggle__bars { position: relative; width: 18px; height: 8px; }
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor; transition: transform var(--dur) var(--ease); }
.menu-toggle__bars::before { top: 0; }
.menu-toggle__bars::after { bottom: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(3.25px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-3.25px) rotate(-45deg); }
.menu-toggle:hover { background: var(--tint); }

/* ---------- Article section tabs (adapted from observed Board/List segmented control: white active chip + 1px border) ---------- */
.subnav { position: sticky; top: var(--header-h); z-index: 40; background: var(--bg-wash); border-top: 1px solid var(--border-secondary); }
.subnav .page-container { padding-inline: 0; }
.subnav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 6px var(--gutter); overflow-x: auto; scrollbar-width: none; }
.subnav__list::-webkit-scrollbar { display: none; }
.subnav__link {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font-size: 14px; line-height: 1; white-space: nowrap; text-decoration: none; color: var(--text-secondary);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.subnav__link:hover { color: var(--text-primary); background: var(--tint); }
.subnav__link:focus-visible { outline-offset: -2px; }
.subnav__link[aria-current] { background: var(--bg-elevated); border-color: var(--border); color: var(--text-primary); }
.subnav__num { font-family: var(--font-mono); font-size: 11px; color: var(--text-secondary); }
@media (min-width: 64rem) { .subnav { display: none; } }
.toc__list a[aria-current] { color: var(--text-primary); }
.toc__list a[aria-current]::before { color: var(--accent-text); }

/* ---------- Hero ---------- */
.hero { padding-top: 40px; }   /* observed: h1 sits 40px below the 60px mobile bar, 88px below the 52px desktop bar */
@media (min-width: 48rem) { .hero { padding-top: 64px; } }
@media (min-width: 64rem) { .hero { padding-top: 88px; } }
.hero__top { display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 64rem) { .hero__top { flex-direction: row; align-items: flex-start; justify-content: space-between; padding-inline: 16px; } }
.hero__intro { display: flex; flex-direction: column; gap: 27px; max-width: 568px; }
.hero__text > * + * { margin-top: 16px; }
.hero__lead { color: var(--text-secondary); font-size: 16px; line-height: 1.6; max-width: 34em; }
.hero__notice { max-width: 300px; }
.hero__visual {
  margin-top: 48px;
  background: #c9ccd0 url("../img/devin-bg-1.jpg") center / cover no-repeat;
  padding: 32px 0 0 20px;
  overflow: hidden;
}
@media (min-width: 48rem) { .hero__visual { padding: 56px 0 0 56px; } }
@media (min-width: 64rem) { .hero__visual { margin-top: 60px; padding: 72px 0 0 72px; margin-inline: 16px; } }
.hero__window { border-radius: var(--radius-window) 0 0 0; border-right: 0; border-bottom: 0; max-width: 980px; }

/* ---------- Callout (observed: 1px accent, 4px, 12px pad) ---------- */
.callout { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid var(--accent); border-radius: var(--radius-sm); color: var(--text-primary); }
.callout--link { text-decoration: none; }
.callout--link:hover { color: var(--text-primary); opacity: .8; }
.callout__label { color: var(--accent-text); }
.callout__text { font-size: 14px; line-height: 1.6; color: var(--text-secondary); }
.callout__more { text-align: right; color: var(--text-primary); }

/* ---------- Window (observed: white, 1px border, 12px radius, 47px bar) ---------- */
.window { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-window); overflow: hidden; }
.window__bar { display: flex; align-items: center; gap: 12px; min-height: 47px; padding: 0 16px; border-bottom: 1px solid var(--border); }
.window__dots { flex: none; width: 10px; height: 10px; border-radius: 50%; background: rgb(0 0 0 / .14); box-shadow: 16px 0 0 rgb(0 0 0 / .14), 32px 0 0 rgb(0 0 0 / .14); margin-right: 32px; }
.window__title { font-size: 14px; color: var(--text-secondary); }
.window__body { padding: 24px 20px 8px; }
@media (min-width: 48rem) { .window__body { padding: 32px 32px 12px; } }
.window__heading { font-size: 20px; letter-spacing: -.01em; margin-bottom: 16px; }
.window__list { list-style: none; columns: 1; column-gap: 32px; }
@media (min-width: 48rem) { .window__list { columns: 2; } }
.window__list a { display: flex; gap: 12px; padding: 8px 0; text-decoration: none; font-size: 15px; line-height: 1.5; break-inside: avoid; border-top: 1px solid var(--border-secondary); }
.window__num { font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary); padding-top: 3px; }
.window__status { display: flex; align-items: center; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-secondary); }
@media (min-width: 48rem) { .window__status { padding-inline: 32px; } }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 2s cubic-bezier(.4, 0, .6, 1) infinite; }

/* ---------- Split section (observed: heading left, content right) ---------- */
.split { display: grid; gap: 32px; }
@media (min-width: 64rem) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 60px; } }
.split__head > * + * { margin-top: 16px; }
.split__head--wide { margin-bottom: 48px; }
.section-desc { color: var(--text-secondary); line-height: 1.6; max-width: 30em; }

/* ---------- Card (observed: white, 1px border, 4px, 24px pad) ---------- */
.card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 24px; }
.guide-card { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 48rem) { .guide-card { padding: 32px; } }
.guide-card__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--text-secondary); }
.guide-card__title a { text-decoration: none; }
.guide-card__title a:hover { color: var(--accent-text); }
.guide-card__title a::after { content: " →"; font-family: var(--font-heading); }
.guide-card__desc { color: var(--text-secondary); line-height: 1.7; }

.meta-list { display: grid; gap: 0; border-top: 1px solid var(--border); }
.meta-list > div { display: flex; justify-content: space-between; gap: 16px; padding-top: 12px; }
.meta-list dt { font-family: var(--font-label); font-size: 12px; letter-spacing: .03em; text-transform: uppercase; color: var(--text-secondary); padding-top: 2px; }
.meta-list dd { font-size: 14px; text-align: right; }
.meta-list--row { margin-top: 32px; }
@media (min-width: 48rem) {
  .meta-list--row { display: flex; gap: 40px; padding-top: 16px; }
  .meta-list--row > div { flex-direction: column; gap: 4px; padding: 0; }
  .meta-list--row dd { text-align: left; }
}

/* ---------- Rows (observed FAQ: border-top, 40px block padding) ---------- */
.rows { list-style: none; border-bottom: 1px solid var(--border); }
.row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 24px 0; border-top: 1px solid var(--border); }
@media (min-width: 48rem) { .row { padding: 32px 0; } }
.row__note { margin-top: 6px; color: var(--text-secondary); line-height: 1.6; }
.row__title a { text-decoration: none; }
.row__title a::after { content: " →"; }

/* ---------- Columns (observed feature pair: h4 + secondary text) ---------- */
.columns { list-style: none; display: grid; gap: 40px; }
@media (min-width: 48rem) { .columns { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.column > h3 { margin: 20px 0 8px; }
.column > p { color: var(--text-secondary); line-height: 1.7; }
.column__sample { height: 120px; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 20px; background: var(--bg-elevated); border: 1px solid var(--border-secondary); }
.sample__line { display: block; height: 8px; width: 70%; background: var(--tint-strong); border-radius: 2px; }
.sample--tip { background: var(--bg-elevated); }
.sample--tip > .mono-label { align-self: flex-start; color: var(--accent-text); border: 1px solid var(--accent); border-radius: var(--radius-sm); padding: 8px 10px; }
.sample--exercise { flex-direction: row; justify-content: flex-start; align-items: flex-start; gap: 12px; }
.sample--exercise > .mono-label { color: var(--text-secondary); margin-top: -3px; }
.plain-list { margin-top: 48px; list-style: none; border-top: 1px solid var(--border); padding-top: 24px; display: grid; gap: 10px; color: var(--text-secondary); max-width: 48rem; line-height: 1.7; }
.plain-list li { padding-left: 16px; position: relative; }
.plain-list li::before { content: "—"; position: absolute; left: 0; color: var(--text-tone); }

/* ---------- Footer (observed: 14px headings, tertiary links, mono legal) ---------- */
.site-footer { border-top: 1px solid var(--border-secondary); margin-top: 0; padding: 56px 0 40px; }
.site-footer__grid { display: grid; gap: 32px; }
@media (min-width: 48rem) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 24px; } }
.site-footer__brand { margin: 0; }
.site-footer__logo { display: block; width: auto; height: 32px; }
.site-footer__heading { font-size: 14px; font-weight: 400; line-height: 1.4; margin-bottom: 8px; }
.site-footer__hint { font-family: var(--font-label); font-size: 11px; color: var(--text-secondary); margin-left: 4px; }
.site-footer__col ul { list-style: none; display: grid; gap: 2px; }
.site-footer__col a { display: inline-block; padding: 3px 0; font-size: 14px; line-height: 1.4; color: var(--text-secondary); text-decoration: none; }
.site-footer__col a:hover { color: var(--accent-text); }
.site-footer__disclaimer { font-size: 14px; line-height: 1.6; color: var(--text-secondary); }
.site-footer__legal { margin-top: 48px; color: var(--text-secondary); text-transform: none; }
.site-footer__legal a { color: inherit; }

/* ---------- Article ---------- */
.article__header { padding: 48px 0 40px; }
@media (min-width: 64rem) { .article__header { padding: 96px 0 48px; } .article__header > .page-container { padding-inline: calc(var(--gutter) + 16px); } }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--font-label); font-size: 12px; letter-spacing: .03em; color: var(--text-secondary); margin-bottom: 24px; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--text-tone); }
.breadcrumb a { text-decoration: none; display: inline-block; padding: 4px 0; }
.breadcrumb a:hover { color: var(--accent-text); }
.article__title { max-width: 18em; }
.article__lead { margin-top: 16px; max-width: 36em; font-size: 18px; line-height: 1.65; color: var(--text-secondary); }

.article__layout { display: grid; gap: 32px; }
@media (min-width: 64rem) { .article__layout { grid-template-columns: 240px minmax(0, var(--measure)); gap: 64px; } }
@media (min-width: 80rem) { .article__layout { grid-template-columns: 260px minmax(0, var(--measure)); gap: 96px; } }

.toc__details { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-elevated); }
.toc__title { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 16px; cursor: pointer; color: var(--text-secondary); list-style: none; }
.toc__title::-webkit-details-marker { display: none; }
.toc__title::after { content: "+"; font-size: 16px; }
.toc__details[open] > .toc__title::after { content: "−"; }
.toc__list { list-style: none; counter-reset: toc; padding: 0 16px 12px; }
.toc__list li { counter-increment: toc; }
.toc__list a { display: flex; gap: 10px; padding: 7px 0; font-size: 14px; line-height: 1.5; color: var(--text-secondary); text-decoration: none; border-top: 1px solid var(--border-secondary); }
.toc__list a::before { content: counter(toc, decimal-leading-zero); font-family: var(--font-mono); font-size: 11px; padding-top: 3px; color: var(--text-secondary); }
.toc__list a:hover { color: var(--text-primary); }
@media (min-width: 64rem) {
  .toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; }
  .toc__details { border: 0; background: none; }
  .toc__title { padding: 0; min-height: 0; margin-bottom: 12px; cursor: default; pointer-events: none; }
  .toc__title::after { content: none; }
  .toc__list { padding: 0; }
}

/* Prose — Korean reading adaptations: 17px / 1.8, keep-all */
.prose { font-size: 17px; line-height: 1.8; min-width: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 24px; line-height: 1.35; letter-spacing: -.02em; font-weight: 400; margin-top: 72px; padding-top: 32px; border-top: 1px solid var(--border); }
.prose h3 { font-size: 20px; line-height: 1.4; letter-spacing: -.01em; font-weight: 400; margin-top: 40px; }
.prose h2 + *, .prose h3 + * { margin-top: 16px; }
.prose > :first-child { margin-top: 0; }
.prose strong { font-weight: 600; }
.prose a { text-decoration-color: rgb(25 25 25 / .35); }
.prose a:hover { text-decoration-color: currentColor; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--text-tone); }
.prose code { font-family: var(--font-mono); font-size: .86em; background: var(--tint); border-radius: var(--radius-sm); padding: .12em .38em; }
.prose pre { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-window); padding: 20px; overflow-x: auto; font-size: 14px; line-height: 1.7; }
.prose pre code { background: none; padding: 0; font-size: inherit; white-space: pre; }
.prose blockquote { margin: 1.5em 0 0; padding-left: 20px; border-left: 2px solid var(--border); color: var(--text-secondary); }

.reading-guide { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 20px 24px; font-size: 15px; line-height: 1.7; }
.reading-guide__title { font-family: var(--font-label); font-size: 12px; letter-spacing: .03em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 8px; }
.reading-guide ul { list-style: none; padding: 0; display: grid; gap: 6px; }
.reading-guide li { margin: 0; }

.src { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 14px; line-height: 1.6; color: var(--text-secondary); }
.src > p { margin: 0; }
.src__label { font-family: var(--font-label); font-size: 11px; letter-spacing: .03em; text-transform: uppercase; background: var(--tint-strong); color: var(--text-secondary); padding: 2px 6px; border-radius: var(--radius-sm); }
.src a { color: var(--text-secondary); }

.note { border-radius: var(--radius-sm); font-size: 16px; line-height: 1.75; }
.note > * + * { margin-top: .7em; }
.note__label { font-family: var(--font-label); font-size: 12px; letter-spacing: .03em; text-transform: uppercase; }
.note__title { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.01em; margin-top: 4px; }
.note--tip { border: 1px solid var(--accent); padding: 16px 20px 18px; }
.note--tip .note__label { color: var(--accent-text); }
.note--exercise, .note--caution { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-window); padding: 0 20px 20px; }
.note--exercise .note__label, .note--caution .note__label { display: flex; align-items: center; gap: 12px; min-height: 47px; margin: 0 -20px; padding: 0 20px; border-bottom: 1px solid var(--border); color: var(--text-secondary); }
.note--exercise .note__label::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: rgb(0 0 0 / .14); box-shadow: 16px 0 0 rgb(0 0 0 / .14), 32px 0 0 rgb(0 0 0 / .14); margin-right: 32px; }
.note--exercise .note__title, .note--caution .note__title { margin-top: 16px; }
.note pre { background: var(--bg-wash); }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-elevated); }
.prose table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: 15px; line-height: 1.6; }
.prose th { font-family: var(--font-label); font-size: 12px; letter-spacing: .03em; text-transform: uppercase; font-weight: 400; color: var(--text-secondary); text-align: left; background: var(--bg-wash); }
.prose th, .prose td { padding: 12px 16px; border-top: 1px solid var(--border-secondary); vertical-align: top; }
.prose thead th { border-top: 0; }

.sources { margin-top: 72px; }
.sources__list { list-style: none; padding: 0 !important; border-bottom: 1px solid var(--border); }
.sources__list li { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; margin: 0 !important; border-top: 1px solid var(--border-secondary); font-size: 16px; line-height: 1.5; }
.sources__url { font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary); overflow-wrap: anywhere; }
.article__back { margin-top: 56px !important; }
.article__back .btn { text-decoration: none; }

@media print {
  .site-header, .subnav, .toc, .site-footer nav, .article__back, .skip-link, .hero__visual { display: none; }
  body { background: #fff; }
  .frame { border: 0; }
  .prose a::after { content: " (" attr(href) ")"; font-size: .8em; color: #555; }
}

/* Target size (WCAG 2.5.8) and sticky-header offsets */
.site-footer__col a, .breadcrumb a { min-width: 24px; min-height: 24px; }
@media (min-width: 64rem) { .toc__title { min-height: 24px; } }
.breadcrumb ol { align-items: center; }
.breadcrumb a { display: inline-flex; align-items: center; padding: 0; }

/* product menu — click-to-open grouped panel (official Product dropdown: white panel, gray group headings, black links) */
.nav-item { position: relative; }
.nav-trigger {
  appearance: none;
  border: 0;
  background: none;
  font-family: inherit;
  cursor: pointer;
  gap: 6px;
  padding: 1px 8px 0 12px;
}
.nav-trigger[aria-expanded="true"] { background: rgba(0, 0, 0, .06); }
.nav-trigger__chevron {
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .15s;
}
.nav-trigger[aria-expanded="true"] .nav-trigger__chevron { transform: translateY(3px) rotate(-135deg); }
html:not(.js) .nav-trigger,
html:not(.js) .nav-panel,
.js .nav-fallback,
.nav-panel { display: none; }
.nav-trigger[aria-expanded="true"] + .nav-panel { display: grid; }
.nav-panel {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
  font-family: var(--font-body);
}
.nav-panel ul { display: grid; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-panel__heading {
  margin: 0 0 6px;
  padding: 0 8px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-secondary);
}
.nav-panel__link {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 8px;
  min-height: 44px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  color: var(--black);
  text-decoration: none;
}
.nav-panel__link .badge { justify-self: start; }
.nav-panel__label { font-size: 16px; line-height: 1.4; font-weight: 500; }
.nav-panel__desc {
  grid-column: 1 / -1;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-secondary);
}
.nav-panel__label { transition: color .15s cubic-bezier(.4, 0, .2, 1); }
.nav-panel__link:hover .nav-panel__label { color: #317cff; }
.nav-panel__overview {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 8px 0;
  border-top: 1px solid var(--border-secondary);
  color: var(--black);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.nav-panel__overview:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 64rem) {
  .nav-panel {
    position: absolute;
    z-index: 60;
    top: calc(100% + 10px);
    left: -8px;
    width: min(560px, calc(100vw - 2 * var(--gutter)));
    padding: 20px 16px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-window);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / .06), 0 4px 6px -4px rgb(0 0 0 / .06);
  }
}

@media (max-width: 63.99rem) {
  .js .is-open .nav-trigger { width: 100%; text-align: left; }
  .js .is-open .nav-trigger__chevron { margin-left: auto; margin-right: 4px; }
  .js .is-open .nav-trigger.is-current::after { display: none; }
  .js .is-open .nav-panel {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 14px 0 16px;
    border-bottom: 1px solid var(--border-secondary);
  }
  .js .is-open .nav-panel__heading { padding: 0; }
  .js .is-open .nav-panel__link { padding: 6px 0; border-radius: 0; }
  .js .is-open .nav-panel__overview { padding: 12px 0 0; }
  html:not(.js) .nav-fallback { white-space: nowrap; }
}
.js .site-nav .nav-fallback { display: none; }
.nav-trigger__chevron { display: inline-block; flex: none; }

/* Official product-page replicas (/features/<product>/) */
.page-replica .official { background: rgb(252 252 252); color: rgb(17 17 17); overflow-x: clip; }
.page-replica .official a:not([class*="transition"]) { transition: none; }
.page-replica .official a:hover { color: inherit; }
.page-replica .official img { max-width: none; }
.page-replica .official [data-replica-hide] { display: none !important; }
.replica-note { border-top: 1px solid var(--border); background: #fcfcfc; padding: 28px 0 36px; }
.replica-note__inner { display: grid; gap: 8px; max-width: 880px; font-size: 13px; line-height: 1.65; color: var(--text-secondary); }
.replica-note__lead { color: var(--text-primary); }
.replica-note a { text-decoration: underline; }
.replica-note__caveat { color: var(--text-primary); }

.page-replica .official-app { background: #fff; color: rgb(17 17 17); overflow-x: clip; }
.page-replica .official-app img { max-width: none; }
.page-replica .official-app a:not([class*="transition"]) { transition: none; }
/* replica targets */
.page-replica .official a, .page-replica .official-app a { min-height: 24px; }
.page-replica .official .sr-only, .page-replica .official-app .sr-only { font-family: "Pretendard Variable", Pretendard, sans-serif; }
/* replica contrast: official light tokens darkened to meet WCAG AA */
.page-replica .official.light, .page-replica .official .light:not(.dark),
.page-replica .official-app.light, .page-replica .official-app .light:not(.dark) {
  --text-secondary: 25 25 25 / .7;
  --text-tertiary: 25 25 25 / .62;
  --text-accent-primary: 0 95 204;
}
.page-replica :is(.official, .official-app) :is(.text-dt-text-muted, .text-text-disabled) { color: rgb(25 25 25 / .6); }
.page-replica :is(.official, .official-app) :is(.text-diff-added, .text-text-green) { color: #00804a; }
.page-replica :is(.official, .official-app) :is(.text-diff-removed, .text-text-red) { color: #c62828; }
.page-replica :is(.official, .official-app) .text-text-purple { color: #6a3fc0; }
.page-replica :is(.official, .official-app) .text-text-blue { color: #1d5fd0; }
.page-replica :is(.official, .official-app) .text-text-orange { color: #a85300; }
.page-replica .official { --slack-link: #0a6aa6; --slack-code: #b0164a; }
.page-replica .official .text-white\/45 { color: rgb(255 255 255 / .62); }
.page-replica .official .text-dt-text-inverse-dim.opacity-80 { opacity: 1; }
.page-replica .official .text-\[var\(--slack-link\)\] { color: #0a6aa6; }
.page-replica .official .text-\[var\(--slack-code\)\] { color: #b0164a; }
.page-replica .official-app :is(.text-red, [class*="text-red-"]) { color: #c62828; }
.page-replica .official-app [class*="text-orange"] { color: #a85300; }
.page-replica .official-app [class*="text-green"] { color: #00804a; }
.page-replica .official [style*="#1971c2"] { color: #14589a !important; }
.page-replica .official [style*="#d9730d"] { color: #9a4f05 !important; }
.page-replica :is(.official, .official-app) :is(.text-dt-text-muted, .text-text-disabled) { color: rgb(25 25 25 / .68); }
.page-replica .official .bg-tint-green.text-text-green { color: #006b3e; }
.page-replica .official p.tabular-nums.text-text-secondary { color: rgb(255 255 255 / .62); }
.page-replica :is(.official, .official-app) a { min-width: 24px; }
.page-replica .official .opacity-50:has(> .truncate) { opacity: .82; }
.page-replica .official-app .prose-main span.font-mono { color: #1f6f94; }
.page-replica .official [style*="opacity: 0.82"] [style*="#696969"] { color: #4a4a4a !important; }
/* replica fonts: official Latin stacks get Pretendard for Korean glyphs */
.page-replica .official, .page-replica .official-app {
  font-family: "Pretendard Variable", Pretendard, sans-serif;
  --font-geist-mono: geistMono, "Pretendard Variable";
  --font-ibm-plex-mono: geistMono, "Pretendard Variable";
  --font-sans: "Pretendard Variable", Pretendard, sans-serif;
}
.page-replica .official-app .font-sans { font-family: "Pretendard Variable", Pretendard, sans-serif; }
.page-replica .official .text-dt-text-disabled { color: rgb(25 25 25 / .68); }
.page-replica .official .g3LArG_className { font-family: slackFont, "slackFont Fallback", "Pretendard Variable", Pretendard, sans-serif; }
.page-replica .official-app { --font-ui: "Pretendard Variable", Pretendard, sans-serif; }

/* Motion (values measured on devin.ai, see docs/DESIGN_REFERENCE.md §7) */
@keyframes pulse { 50% { opacity: .5; } }
@keyframes dt-fade-in-up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.js .hero__window .window__list li { animation: dt-fade-in-up .35s var(--ease-out) both; animation-delay: calc(120ms + var(--i, 0) * 40ms); }
.js .hero__window .window__status { animation: dt-fade-in-up .35s var(--ease-out) both; animation-delay: 480ms; }
.nav-scrim { display: none; }
@media (min-width: 64rem) {
  .nav-panel { opacity: 0; translate: 0 -4px; transition: opacity var(--dur-fast) var(--ease-out), translate var(--dur-fast) var(--ease-out), display var(--dur-fast) allow-discrete; }
  .nav-trigger[aria-expanded="true"] + .nav-panel { opacity: 1; translate: 0 0; }
  @starting-style { .nav-trigger[aria-expanded="true"] + .nav-panel { opacity: 0; translate: 0 -4px; } }
  .nav-scrim { display: block; position: fixed; inset: 0; z-index: 40; pointer-events: none; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: opacity var(--dur-fast) var(--ease-out), visibility 0s linear var(--dur-fast); }
  .nav-panel-open .nav-scrim { opacity: 1; visibility: visible; transition: opacity var(--dur-fast) var(--ease-out), visibility 0s; }
}
.page-replica .official [data-acc-trigger] { cursor: pointer; border-radius: 4px; }
.page-replica .official [data-acc-trigger]:focus-visible { outline: 2px solid var(--focus, #2563eb); outline-offset: 4px; }
.page-replica .official [data-acc-icon] { transition: transform .2s var(--ease-out); }
.reveal-pending { opacity: 0 !important; transform: translateY(var(--reveal-y, 8px)) !important; }
.reveal-pending.is-revealed { opacity: 1 !important; transform: none !important; transition: opacity .45s ease var(--reveal-delay, 0ms), transform .45s ease !important; }
@media (prefers-reduced-motion: reduce) { .reveal-pending { opacity: 1 !important; transform: none !important; } .nav-scrim { display: none; } }

/* Home replica: official Slack-thread link blue (#088bd7, 3.6:1) darkened to pass AA on the light mock. */
.page-replica .official .text-\[var\(--thread-link\)\] { color: #0b6aa6; }

/* /models/third-party/ — landing built from official tokens (dt-* colours, 6px cards, chip pills). */
.official .tp-eyebrow { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; line-height: 1.4; color: #5c5c5c; }
.official .tp-badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; background: #000; color: #fff; font-size: 12px; line-height: 1; white-space: nowrap; }
.official .tp-board { position: relative; padding: 16px; background: linear-gradient(135deg, #eef1f6, #f7f4ef); }
.official .tp-board__grid, .official .tp-grid, .official .tp-chips { list-style: none; margin: 0; padding: 0; }
.official .tp-board__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.official .tp-board__tile { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 104px; padding: 14px 16px; border: 1px solid rgba(0,0,0,.08); border-radius: 6px; background: #fff; color: #000; text-decoration: none; transition: border-color .15s cubic-bezier(.4,0,.2,1), background-color .15s cubic-bezier(.4,0,.2,1); }
.official .tp-board__tile:hover { border-color: rgba(0,0,0,.16); background: #fafafa; }
.official .tp-board__name { font-size: 17px; line-height: 1.3; font-weight: 500; }
.official .tp-board__meta { font-size: 13px; line-height: 1.4; color: #5c5c5c; }
.official .tp-pair { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 24px; background: linear-gradient(135deg, #e9eef7, #f5f1ea); }
.official .tp-pair__role { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 6px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 8px 24px -12px rgba(0,0,0,.25); }
.official .tp-pair__label { font-family: geistMono, ui-monospace, monospace; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #5c5c5c; }
.official .tp-pair__title { font-size: 20px; line-height: 1.3; font-weight: 500; color: #000; }
.official .tp-pair__desc { font-size: 14px; line-height: 1.45; color: #5c5c5c; }
.official .tp-pair__plus { font-size: 24px; color: #5c5c5c; }
.official .tp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-content: start; }
.official .tp-card { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; border: 1px solid rgba(0,0,0,.08); border-radius: 6px; background: #fff; }
.official .tp-card__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.official .tp-card__name { font-size: 17px; line-height: 1.35; font-weight: 500; color: #000; }
.official .tp-card__note, .official .tp-card__text { margin: 0; font-size: 14px; line-height: 1.5; color: #5c5c5c; }
.official .tp-card__text code { font-family: geistMono, ui-monospace, monospace; font-size: .92em; }
.official .tp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.official .tp-chip { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 9px; border-radius: 999px; background: rgba(0,0,0,.05); font-size: 12.5px; line-height: 1.3; color: #333; }
@media (max-width: 63.99rem) {
  .official .tp-board__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .official .tp-grid { grid-template-columns: minmax(0, 1fr); }
  .official .tp-pair { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .official .tp-pair__plus { justify-self: center; }
}

/* Header actions (t25u): official devin.ai right-side pills — 28px, radius 200px, 14px/400. */
.wordmark__logo { height: 28px; }
.site-header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header-pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 1px 12px 0; border-radius: 200px; font: 400 14px/19.6px var(--font-body); letter-spacing: normal; white-space: nowrap; text-decoration: none; cursor: pointer; transition: color .15s cubic-bezier(.4,0,.2,1), background-color .15s cubic-bezier(.4,0,.2,1), opacity .15s cubic-bezier(.4,0,.2,1); }
.header-pill--outline { border: 1px solid var(--border, rgba(0,0,0,.12)); background: transparent; color: var(--black); }
.header-pill--outline:hover { background: rgba(0,0,0,.06); color: var(--black); }
.header-pill--solid { border: 0; background: #000; color: #fff; }
.header-pill--solid:hover, .header-pill--solid[aria-expanded="true"] { background: #000; color: #fff; opacity: .8; }
.header-pill--solid .nav-trigger__chevron { border-color: currentColor; }
.header-cta { position: relative; }
.nav-panel--cta { grid-template-columns: minmax(0, 1fr); width: 300px; }
@media (min-width: 64rem) { .nav-panel--cta { left: auto; right: 0; } }
@media (max-width: 63.99rem) {
  .js .is-open .site-header__actions { flex-direction: column; align-items: stretch; margin: 16px 0 0; gap: 10px; }
  .js .is-open .header-pill { height: 44px; justify-content: center; font-size: 16px; }
  .js .is-open .nav-panel--cta { width: auto; }
}

/* Startups case-study tabs: official Exa mark, painted with currentColor (blue when selected). */
.exa-tab-logo {
  display: block;
  width: 46.3px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask: url("../official/exa-tab.svg") no-repeat center / contain;
          mask: url("../official/exa-tab.svg") no-repeat center / contain;
}
