/* 이펍 제작 외주 홈페이지 — 모바일 우선, 넓은 화면은 min-width 로 확장 */

:root {
  /* 흰색 주조 + 페라리 빨강(로쏘 코르사 #D40000) 포인트 */
  --paper: #ffffff;
  --paper-2: #f5f5f6;
  --card: #ffffff;
  --ink: #111113;
  --ink-2: #3d3d43;
  --ink-3: #7b7b85;
  --line: #e3e3e7;
  --accent: #d40000;
  --accent-dark: #a80000;
  --accent-soft: #fff4f4;
  --focus: rgba(212, 0, 0, 0.28);
  --sans: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", system-ui, sans-serif;
  --display: var(--sans);
  /* 첫 화면의 책 페이지 그림에만 쓰는 명조 */
  --book: "Noto Serif KR", "Nanum Myeongjo", "Batang", serif;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -0.012em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, dd, figure, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
main { flex: 1; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 760px; }

/* ── 프로토타입 띠 ── */
.proto-bar {
  background: var(--ink);
  color: #ffffff;
  font-size: 12.5px;
  line-height: 1.5;
  text-align: center;
  padding: 7px 16px;
}

/* ── 머리와 탭 ──
   모바일: 상호 줄은 스크롤하면 올라가 사라지고, 탭 줄만 화면 위에 붙어 따라온다. */
.site-header {
  position: sticky;
  top: -56px; /* 상호 줄 높이만큼 위로 넘긴다 */
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: block; }

.brand { display: flex; align-items: center; gap: 9px; height: 56px; text-decoration: none; }
/* 로고 그림: 책에서 이펍이 떨어져 나오는 배출구. 선 색은 글자색을 따른다. */
.brand-mark { width: 28px; height: 28px; flex: none; color: var(--ink); }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: -0.035em; }
.brand-note { font-size: 11px; color: var(--ink-3); }
.brand-note:empty { display: none; }

.tabs { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 -20px; border-top: 1px solid var(--line); }
.tab {
  display: grid; place-items: center;
  height: 48px;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  font-size: 15px; font-weight: 600; color: var(--ink-3);
}
.tab.on { color: var(--ink); font-weight: 700; border-bottom-color: var(--ink); }
.tab-cta { color: var(--accent); font-weight: 700; }
.tab-cta.on { color: var(--accent); border-bottom-color: var(--accent); }

/* 탭 화면 */
.panel > .section:first-child { padding-top: 44px; }
.next-cta { padding: 40px 0 60px; border-top: 1px solid var(--line); text-align: center; }
.next-cta p { color: var(--ink-2); font-size: 15px; margin-bottom: 16px; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ── 단추 ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit; font-weight: 700; font-size: 15.5px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-wide { width: 100%; min-height: 54px; font-size: 16.5px; }

/* ── 첫 화면 ── */
.hero { padding: 44px 0 56px; border-bottom: 3px double var(--line); }
.hero-grid { display: grid; gap: 40px; }

.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 14px;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(31px, 8.4vw, 50px);
  line-height: 1.2;
  letter-spacing: -0.045em;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.lead { margin-top: 20px; font-size: 16.5px; color: var(--ink-2); max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 26px; font-size: 13.5px; color: var(--ink-3); }
.hero-points li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: 6px; }

/* 원고 → 이펍 그림 */
.hero-visual {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
}
.sheet {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(29, 26, 22, 0.08);
  padding: 30px 12px 16px;
  transform: rotate(-2.5deg);
}
.sheet-tab {
  position: absolute; top: 0; left: 0;
  background: var(--paper-2);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 10px; color: var(--ink-3);
  padding: 2px 8px;
}
/* 인쇄용 PDF 한 쪽을 줄여 놓은 모습 */
.page { font-family: var(--book); font-size: 7.5px; line-height: 1.75; letter-spacing: 0; color: var(--ink-2); text-align: justify; }
.page .p-head { display: flex; justify-content: space-between; font-family: var(--sans); font-size: 6px; color: var(--ink-3); border-bottom: 1px solid var(--line); padding-bottom: 3px; }
.page h3 { font-size: 9.5px; font-weight: 700; line-height: 1.5; text-align: center; color: var(--ink); margin: 14px 0 14px; }
.page p { text-indent: 1em; }
.page .p-head { text-indent: 0; }
.arrow { display: flex; justify-content: center; }
.arrow span {
  position: relative;
  width: 100%; height: 2px;
  background: var(--accent);
}
.arrow span::after {
  content: "";
  position: absolute; right: 0; top: 50%;
  width: 8px; height: 8px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  transform: translateY(-50%) rotate(45deg);
}
.reader {
  background: var(--ink);
  border-radius: 18px;
  padding: 10px 9px 22px;
  box-shadow: 0 18px 36px rgba(29, 26, 22, 0.22);
  transform: rotate(1.5deg);
}
.reader-screen {
  background: #ffffff;
  border-radius: 6px;
  padding: 12px 13px 10px;
  font-family: var(--book);
  letter-spacing: 0;
  font-size: 10.5px;
  line-height: 1.85;
  color: var(--ink);
  min-height: 250px;
}
.reader-screen .r-head { font-size: 8.5px; color: var(--ink-3); text-align: center; font-family: var(--sans); }
.reader-screen h3 { font-size: 14px; font-weight: 700; line-height: 1.45; margin: 18px 0 20px; text-align: center; }
.reader-screen p { text-indent: 1em; }
.reader-screen .r-head, .reader-screen .r-sep, .reader-screen .r-page { text-indent: 0; }
.reader-screen .r-sep { text-align: center; margin: 8px 0; color: var(--ink-3); }
.reader-screen .r-page { text-align: center; font-size: 8.5px; color: var(--ink-3); margin-top: 14px; font-family: var(--sans); }

/* ── 구역 공통 ── */
.section { padding: 64px 0; }
.section-tint { background: var(--paper-2); }
.section-head { margin-bottom: 32px; }
.section-head h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(26px, 6.2vw, 36px);
  line-height: 1.3;
  letter-spacing: -0.04em;
}
.section-lead { margin-top: 12px; color: var(--ink-2); }
.temp-badge {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  padding: 2px 10px;
  border: 1px dashed var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 12px; font-weight: 700; letter-spacing: 0;
}

/* ── 분야 제목 (서비스·가격표 공통: 종이책이 있는 일반도서 / 장르소설) ── */
.group-head { margin-bottom: 16px; }
.group-gap { margin-top: 52px; }
.group-title {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px;
  font-weight: 800; font-size: 21px; letter-spacing: -0.035em; line-height: 1.4;
}
.group-title::before { content: ""; width: 10px; height: 10px; background: var(--accent); flex: none; }
.group-title .temp-badge { margin-left: 0; }
.group-desc { margin-top: 4px; color: var(--ink-2); font-size: 15px; }

/* ── 서비스 카드 ── */
.cards { display: grid; gap: 16px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 24px 22px 26px;
}
.card-no { font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: 0.04em; color: var(--accent); }
.card h3, .card h4 { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.03em; margin: 4px 0 10px; }
.card-desc { color: var(--ink-2); font-size: 15px; }
.card ul { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14.5px; }
.card li { position: relative; padding-left: 16px; }
.card li + li { margin-top: 4px; }
.card li::before { content: ""; position: absolute; left: 2px; top: 0.75em; width: 6px; height: 2px; background: var(--accent); }

/* 일반도서 카드: 설명 + 기본 제작 범위 */
.card-wide { display: grid; gap: 18px; }
.scope { border-top: 1px solid var(--line); font-size: 14.5px; }
.scope div { display: grid; grid-template-columns: 84px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.scope div:last-child { border-bottom: 0; padding-bottom: 0; }
.scope dt { font-weight: 700; }
.scope dd { color: var(--ink-2); }

.card-wide h3 { font-size: 26px; font-weight: 800; letter-spacing: -0.035em; }
.text-link { display: inline-block; margin-top: 14px; color: var(--accent); font-weight: 700; font-size: 14.5px; text-decoration: none; border-bottom: 1px solid currentColor; }
.text-link::after { content: " →"; }

/* 서브(장르소설): 한 단계 가볍게 */
.sub-block { margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--line); }
.sub-block .group-title { font-size: 18px; }
.cards-sub { gap: 10px; }
.cards-sub .card { border-top: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 18px; background: var(--paper-2); border-color: transparent; }
.cards-sub .card h4 { font-size: 17px; margin: 0 0 4px; }
.cards-sub .card-desc { font-size: 14px; }

/* ── 작업 과정 ── */
.steps { display: grid; gap: 0; counter-reset: step; }
.steps li {
  position: relative;
  padding: 0 0 26px 56px;
}
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: "";
  position: absolute; left: 18px; top: 38px; bottom: 0;
  width: 2px; background: var(--line);
}
.steps li:last-child::before { display: none; }
.step-no {
  position: absolute; left: 0; top: 0;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--ink); color: var(--paper);
  font-family: var(--display); font-weight: 700; font-size: 16px;
}
.steps h3 { font-size: 17.5px; font-weight: 700; line-height: 38px; }
.steps p { color: var(--ink-2); font-size: 14.5px; }

/* ── 가격표 ── */
.price-table { border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); background: var(--card); }
.price-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 16px;
  align-items: center;
  padding: 18px 16px;
}
.price-row + .price-row { border-top: 1px solid var(--line); }
.price-name { font-family: var(--display); font-weight: 700; font-size: 18.5px; letter-spacing: -0.03em; }
.price-desc { grid-column: 1; color: var(--ink-3); font-size: 14px; }
.price-amount { grid-row: 1 / span 2; grid-column: 2; text-align: right; white-space: nowrap; }
.price-amount small { display: block; font-size: 12.5px; color: var(--ink-3); }
.price-amount strong { font-family: var(--display); font-weight: 800; font-size: 23px; letter-spacing: -0.03em; font-feature-settings: "tnum"; }
.price-amount strong span { font-size: 14px; font-weight: 500; margin-left: 1px; }
.price-group + .price-group { margin-top: 60px; }
.price-group .group-desc { margin-bottom: 16px; }
.sub-title { font-size: 15px; font-weight: 700; margin: 30px 0 10px; color: var(--ink-2); }
.price-extras { border-top-width: 1px; border-bottom-width: 1px; border-color: var(--line); }
.price-extras .price-row { padding: 14px 16px; }
.price-extras .price-name { font-size: 16px; font-weight: 600; }
.price-extras .price-amount { font-size: 15.5px; font-weight: 700; }
.price-group-sub .group-title { font-size: 18px; }
.price-group-sub .price-table { border-top-width: 1px; border-bottom-width: 1px; border-color: var(--line); }
.price-group-sub .price-row { padding-top: 14px; padding-bottom: 14px; }
.price-group-sub .price-name { font-size: 16.5px; }
.price-group-sub .price-amount strong { font-size: 19px; }
.price-note { margin-top: 14px; font-size: 13.5px; color: var(--ink-3); }

/* ── 자주 묻는 질문 ── */
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 18px 40px 18px 2px;
  font-weight: 700; font-size: 16.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 6px; top: 50%;
  transform: translateY(-50%);
  font-size: 22px; font-weight: 400; color: var(--accent);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 2px 20px; color: var(--ink-2); font-size: 15px; }

/* ── 의뢰 양식 ── */
.form {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 18px 26px;
  display: grid;
  gap: 22px;
}
.grid2 { display: grid; gap: 22px; }
.field { display: grid; gap: 7px; align-content: start; min-width: 0; }
.field > label, .field-label { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.field b, .agree b { color: var(--accent); font-weight: 700; }
.field i { font-style: normal; font-weight: 400; font-size: 12px; color: var(--ink-3); margin-left: 4px; }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit; font-size: 16px;
}
textarea { resize: vertical; line-height: 1.6; }
input::placeholder, textarea::placeholder { color: #b3b3bb; }
input:focus, textarea:focus { border-color: var(--accent); }
.invalid { border-color: var(--accent) !important; background: var(--accent-soft) !important; }

.with-unit { position: relative; }
.with-unit input { padding-right: 52px; }
.with-unit span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-size: 14.5px; pointer-events: none; }

/* 작업 고르기: 분야별로 묶어 보여 준다 */
.choice-groups { display: grid; gap: 14px; }
.choice-group-label { font-size: 13px; font-weight: 700; color: var(--ink-3); margin-bottom: 6px; }
.choice-cards { display: grid; gap: 8px; }
.choice-cards label { position: relative; display: block; }
.choice-cards input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice-cards .choice {
  display: grid; grid-template-columns: 1fr auto; gap: 0 12px; align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.choice strong { font-size: 15.5px; }
.choice small { grid-column: 1; color: var(--ink-3); font-size: 13px; line-height: 1.45; }
.choice em { grid-row: 1 / span 2; grid-column: 2; font-style: normal; font-weight: 700; font-size: 14px; white-space: nowrap; color: var(--ink-2); }
.choice-cards input:checked + .choice { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }
.choice-cards input:focus-visible + .choice { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice-groups.invalid-group .choice { border-color: var(--accent); }

/* 여러 개 고르기 */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span {
  display: inline-flex; align-items: center;
  min-height: 40px; padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 14.5px; color: var(--ink-2);
}
.chips input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chips input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
/* 작업에 꼭 필요해서 고정된 형식 */
.chips .locked input { cursor: default; }
.chips .locked input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.chips .locked input + span::after { content: "필수"; margin-left: 7px; padding-left: 7px; border-left: 1px solid rgba(255, 255, 255, 0.55); font-size: 12.5px; }

.hint { font-size: 13px; color: var(--ink-3); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; cursor: pointer; min-height: 48px; padding-top: 12px; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.check.line { min-height: 0; padding-top: 0; color: var(--ink-2); }
.agree.invalid-group span { color: var(--accent); }

.form-error {
  background: var(--accent-soft);
  border: 1px solid #f3b4b4;
  color: var(--accent-dark);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 14.5px; font-weight: 700;
}

/* 접수 결과 */
.result { display: grid; gap: 16px; justify-items: start; outline: none; }
.result-title { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -0.035em; }
.result-desc { color: var(--ink-2); font-size: 15px; }
.mail { width: 100%; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.mail-head { background: var(--paper-2); padding: 14px 18px; display: grid; gap: 4px; font-size: 14px; }
.mail-head p { display: grid; grid-template-columns: 68px 1fr; gap: 8px; }
.mail-head span { color: var(--ink-3); }
.mail-body { padding: 8px 18px 14px; font-size: 14.5px; }
.mail-body div { display: grid; grid-template-columns: 96px 1fr; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.mail-body div:last-child { border-bottom: 0; }
.mail-body dt { color: var(--ink-3); }
.mail-body dd { white-space: pre-wrap; }

/* 가격표 아래 안내 한 줄(대량 작업 할인 등) */
.price-callout {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  font-size: 15px; font-weight: 600;
}
.price-callout .text-link { margin-top: 0; }
button.text-link { padding: 0; border: 0; border-bottom: 1px solid currentColor; border-radius: 0; background: none; font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer; }

/* ── 문의 팝업 ── */
.modal {
  width: min(480px, calc(100% - 28px));
  max-height: calc(100% - 28px);
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: var(--card);
  color: var(--ink);
  overflow-y: auto;
}
.modal::backdrop { background: rgba(17, 17, 19, 0.55); }
.modal-head {
  position: sticky; top: 0; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 12px 14px 22px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.modal-head h2 { font-size: 19px; font-weight: 800; letter-spacing: -0.035em; }
.modal-close {
  width: 40px; height: 40px;
  border: 0; border-radius: 50%;
  background: transparent;
  color: var(--ink-2);
  font: inherit; font-size: 26px; line-height: 1;
  cursor: pointer;
}
.modal-close:hover { background: var(--paper-2); color: var(--ink); }
.modal-close:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.modal-body { display: grid; gap: 18px; padding: 20px 22px 24px; }
.modal-desc { color: var(--ink-2); font-size: 15px; }
.modal-direct { text-align: center; }
.modal-direct a { color: var(--ink-2); }

/* ── 바닥 ── */
.site-footer { background: var(--ink); color: #9c9ca6; padding: 26px 0 34px; font-size: 13.5px; }
.footer-row { display: grid; gap: 4px; }
.footer-brand { display: flex; align-items: center; gap: 7px; font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: -0.035em; color: #ffffff; }
.footer-brand .brand-mark { width: 22px; height: 22px; color: #ffffff; }
.site-footer a { color: #d3d3d9; }
.footer-info { display: flex; flex-wrap: wrap; gap: 2px 22px; }
.footer-info strong { font-weight: 700; color: #ffffff; }

/* ── 넓은 화면 ── */
@media (min-width: 640px) {
  .wrap { padding: 0 32px; }
  .grid2 { grid-template-columns: 1fr 1fr; }
  .form { padding: 34px 32px 36px; }
  .tabs { margin: 0 -32px; }
  .choice-cards { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
  .cards-sub { grid-template-columns: repeat(2, 1fr); }
  .choice-cards .choice { grid-template-columns: 1fr; height: 100%; align-content: start; gap: 2px; }
  .choice em { grid-row: auto; grid-column: 1; margin-top: 6px; color: var(--accent); }
  .footer-row { grid-template-columns: auto 1fr auto; gap: 24px; align-items: baseline; }
  .page { font-size: 8.5px; }
  .page h3 { font-size: 11px; }
  .reader-screen { font-size: 11.5px; padding: 16px 17px 12px; min-height: 290px; }
  .reader-screen h3 { font-size: 15.5px; }
}

@media (min-width: 900px) {
  .site-header { top: 0; }
  .header-row { display: flex; align-items: center; height: 68px; }
  .brand { height: auto; margin-right: auto; }
  .tabs { display: flex; align-items: center; gap: 4px; margin: 0; border-top: 0; }
  .tab { height: 40px; padding: 0 18px; margin: 0; border-bottom: 0; border-radius: 999px; }
  .tab:hover { color: var(--ink); background: var(--paper-2); }
  .tab.on { background: var(--paper-2); }
  .tab-cta { margin-left: 10px; padding: 0 22px; background: var(--accent); color: #fff; }
  .tab-cta:hover, .tab-cta.on { background: var(--accent-dark); color: #fff; }
  .panel > .section:first-child { padding-top: 64px; }
  .hero { padding: 76px 0 88px; }
  .hero-grid { grid-template-columns: 1.2fr 0.8fr; align-items: center; gap: 40px; }
  .section { padding: 92px 0; }
  .section-head { margin-bottom: 40px; }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .cards-sub { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .steps { grid-template-columns: repeat(5, 1fr); gap: 18px; }
  .steps li { padding: 54px 0 0; }
  .steps li::before { left: 46px; right: -18px; top: 18px; bottom: auto; width: auto; height: 2px; }
  .steps h3 { line-height: 1.5; }
  .steps p { margin-top: 4px; }
  .price-row { padding: 22px 24px; }
  .price-extras .price-row { padding: 15px 24px; }
  .card-wide { grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start; padding: 30px 30px 32px; }
  .scope { border-top: 0; }
  .scope div:first-child { padding-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
