/* ============================================================
   Document / proposal pages — hub + AI 활용방안
   (uses tokens from flow/styles.css)
   ============================================================ */

body.doc { background: #EEF1F5; }

.doc-wrap { max-width: 1080px; margin: 0 auto; padding: 0 28px 120px; }

/* top bar */
.doc-top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 16px;
  padding: 18px 0; margin-bottom: 8px;
  background: linear-gradient(#EEF1F5 78%, rgba(238,241,245,0));
}
.doc-brand { font-size: 18px; font-weight: 800; letter-spacing: -0.03em; color: #15181E; }
.doc-brand span { color: var(--primary); }
.doc-top .crumb { font-size: 13.5px; color: var(--text-3); font-weight: 600; }
.doc-back {
  margin-left: auto; display: inline-flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 15px; border-radius: 10px; border: 1px solid var(--border-strong);
  background: #fff; color: var(--text-2); font-size: 13.5px; font-weight: 600; text-decoration: none;
}
.doc-back:hover { background: var(--surface-2); color: var(--text); }

/* hero */
.hero { padding: 26px 0 30px; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--primary); background: var(--primary-weak); border: 1px solid var(--primary-border); padding: 7px 13px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: 38px; line-height: 1.2; font-weight: 800; letter-spacing: -0.035em; margin: 0 0 14px; color: #15181E; text-wrap: balance; }
.hero p { font-size: 16.5px; line-height: 1.7; color: var(--text-2); max-width: 760px; margin: 0; }

/* generic card / section */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.section-label { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); margin: 46px 0 18px; }
.section-label::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* hub: primary prototype card */
.proto-card {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; overflow: hidden;
  border-radius: var(--r-xl); border: 1px solid var(--border); background: #fff; box-shadow: var(--shadow);
}
.proto-card__body { padding: 38px 38px 34px; }
.proto-card__tag { font-size: 12.5px; font-weight: 700; color: var(--primary); letter-spacing: .03em; text-transform: uppercase; }
.proto-card__body h2 { font-size: 25px; font-weight: 800; letter-spacing: -0.03em; margin: 12px 0 12px; }
.proto-card__body p { font-size: 14.5px; line-height: 1.7; color: var(--text-2); margin: 0 0 22px; }
.proto-card__flow { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 26px; }
.flowchip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 6px 11px; white-space: nowrap; }
.flowchip .n { width: 17px; height: 17px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; }
.proto-card__art { background: radial-gradient(120% 120% at 80% 0%, #2B6CF0 0%, #1A4FC4 100%); position: relative; display: grid; place-items: center; padding: 30px; }
.proto-card__art .mock { width: 100%; background: #fff; border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.25); overflow: hidden; }
.proto-card__art .mock span { white-space: nowrap; }

.cta { display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 22px; border-radius: 11px; background: #20242C; color: #fff; font-size: 14.5px; font-weight: 700; text-decoration: none; transition: background .15s; }
.cta:hover { background: #313641; }
.cta--primary { background: var(--primary); }
.cta--primary:hover { background: var(--primary-hover); }

/* AI idea grid */
.ai-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.ai-tile {
  display: flex; flex-direction: column; gap: 0; padding: 24px; border-radius: var(--r-lg);
  background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s, border-color .15s;
}
.ai-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--primary-border); }
.ai-tile__icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px; }
.ai-tile__num { font-size: 12px; font-weight: 700; color: var(--text-4); letter-spacing: .05em; }
.ai-tile h3 { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; margin: 4px 0 9px; }
.ai-tile p { font-size: 13.5px; line-height: 1.6; color: var(--text-2); margin: 0 0 16px; }
.ai-tile__pain { margin-top: auto; font-size: 12.5px; color: var(--danger); background: var(--danger-weak); border: 1px solid var(--danger-border); border-radius: 9px; padding: 9px 11px; line-height: 1.45; display: flex; gap: 7px; }
.ai-tile__more { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--primary); margin-top: 14px; }

/* ===== AI detail page ===== */
.ai-hero { display: flex; gap: 22px; align-items: flex-start; padding: 18px 0 4px; }
.ai-hero__icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; flex: none; }
.ai-hero__num { font-size: 13px; font-weight: 700; color: var(--primary); letter-spacing: .04em; }
.ai-hero h1 { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; margin: 6px 0 12px; line-height: 1.2; }
.ai-hero p { font-size: 16px; line-height: 1.65; color: var(--text-2); margin: 0; max-width: 720px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.grid-2.wide-right { grid-template-columns: 0.85fr 1.15fr; }

.block { padding: 26px 28px; }
.block h4 { font-size: 15px; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 14px; display: flex; align-items: center; gap: 9px; }
.block h4 .ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: none; }

.painbox { background: #FFF8F8; border: 1px solid var(--danger-border); border-radius: var(--r); padding: 18px 20px; }
.painbox .lab { font-size: 12px; font-weight: 700; color: var(--danger); letter-spacing: .03em; text-transform: uppercase; margin-bottom: 9px; }
.painbox p { font-size: 14px; line-height: 1.65; color: #7A3838; margin: 0; }
.painbox p + p { margin-top: 8px; }

/* steps */
.steps { display: flex; flex-direction: column; gap: 0; }
.step { display: flex; gap: 15px; padding: 4px 0; }
.step__n { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--primary-weak); color: var(--primary); font-weight: 800; font-size: 14px; display: grid; place-items: center; position: relative; }
.step:not(:last-child) .step__n::after { content: ""; position: absolute; top: 34px; bottom: -16px; left: 50%; width: 2px; background: var(--border); transform: translateX(-50%); }
.step__c { padding-bottom: 22px; }
.step__c .t { font-size: 14.5px; font-weight: 700; margin-bottom: 4px; }
.step__c .d { font-size: 13.5px; line-height: 1.6; color: var(--text-2); }

/* benefit list */
.bens { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ben { display: flex; gap: 12px; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface-2); }
.ben .ic { flex: none; color: var(--success); margin-top: 1px; }
.ben .t { font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.ben .d { font-size: 12.5px; line-height: 1.55; color: var(--text-2); }

/* mockup frame */
.mock-frame { border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 11px 15px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.mock-bar .dot { width: 10px; height: 10px; border-radius: 50%; }
.mock-bar .cap { margin-left: 8px; font-size: 12.5px; font-weight: 600; color: var(--text-3); white-space: nowrap; }
.mock-body { padding: 18px; }
.mock-cap { font-size: 12.5px; color: var(--text-3); text-align: center; margin-top: 12px; }

/* AI chip used in mockups */
.aichip { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: #7A3AF0; background: #F3EDFE; border: 1px solid #DCC9FA; border-radius: 999px; padding: 6px 12px; white-space: nowrap; flex: none; }

/* footer nav between AI pages */
.ai-foot { display: flex; gap: 12px; margin-top: 40px; }
.ai-foot a { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--r); background: #fff; text-decoration: none; color: inherit; transition: border-color .15s, background .15s; }
.ai-foot a:hover { border-color: var(--primary-border); background: var(--primary-weak-2); }
.ai-foot .dir { font-size: 12px; color: var(--text-3); font-weight: 600; }
.ai-foot .nm { font-size: 14.5px; font-weight: 700; }
.ai-foot a.next { text-align: right; }

.note-inline { font-size: 12.5px; color: var(--text-3); line-height: 1.6; }
.kbd { font-size: 12px; font-weight: 700; background: var(--surface-3); border: 1px solid var(--border-strong); border-radius: 6px; padding: 2px 7px; color: var(--text-2); }
