@font-face {
	font-family: 'Noto Serif KR';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('./noto-serif-kr-latin-700-normal.woff2') format('woff2');
}

/* 코튼 블루 · DESIGN.md */
:root {
	--bg: #f4f6fa;
	--surface: #ffffff;
	--surface-sunken: #ebeff5;
	--ink: #1b2130;
	--ink-2: #465066;
	--ink-3: #5c6477;
	--line: #e2e6ee;
	--accent: #3f6bc4;
	--accent-hover: #335aaa;
	--accent-ink: #3358a6;
	--accent-tint: #e2eaf8;
	--accent-tint-ink: #2a4a8e;
	--on-accent: #ffffff;
	--illust: #6d83ad;
	--ring-ok: #2e9e86;
	--ring-soon: #c97523;
	--coral: #e25c60;
	--peach-bg: #f6e7d8;
	--danger: #c93841;
	--font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo',
		'Noto Sans KR', 'Malgun Gothic', 'Segoe UI', system-ui, sans-serif;
	--font-display: 'Noto Serif KR', 'AppleMyungjo', 'Nanum Myeongjo', serif;
	--text-sm: 0.875rem;
	--text-base: 1rem;
	--text-md: 1.0625rem;
	--text-lg: 1.25rem;
	--text-2xl: 1.625rem;
	--leading: 1.65;
	--s-1: 0.25rem;
	--s-2: 0.5rem;
	--s-3: 0.75rem;
	--s-4: 1rem;
	--s-5: 1.5rem;
	--s-6: 2rem;
	--s-7: 3rem;
	--gutter: 1.25rem;
	--r-tag: 6px;
	--r-control: 12px;
	--r-pill: 999px;
	--touch: 2.75rem;
}
@media (min-width: 48em) {
	:root {
		--gutter: 1.5rem;
		--text-2xl: 1.875rem;
	}
}

*,
*::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(--text-base);
	line-height: var(--leading);
	word-break: keep-all; /* do not split Korean words mid-word */
	overflow-wrap: anywhere; /* but never let long tokens (emails, ids) overflow */
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
	margin: 0;
	line-height: 1.35;
	font-weight: 700;
	letter-spacing: -0.01em;
	text-wrap: balance;
}
h1 {
	font-size: var(--text-2xl);
	line-height: 1.3;
}
h2 {
	font-size: var(--text-lg);
}
h3 {
	font-size: var(--text-md);
}

p {
	margin: 0;
	text-wrap: pretty;
}
p + p {
	margin-top: var(--s-3);
}

a {
	color: var(--accent-ink);
	text-underline-offset: 0.2em;
	text-decoration-thickness: 1px;
}
a:hover {
	color: var(--accent-tint-ink);
	text-decoration-thickness: 2px;
}

svg {
	display: block;
	max-width: 100%;
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 2px;
	border-radius: var(--r-tag);
}

::selection {
	background: var(--accent-tint);
	color: var(--accent-tint-ink);
}

.skip-link {
	position: absolute;
	left: var(--s-3);
	top: -4rem;
	z-index: 100;
	background: var(--ink);
	color: var(--surface);
	padding: var(--s-3) var(--s-4);
	border-radius: var(--r-control);
}
.skip-link:focus {
	top: var(--s-3);
	color: var(--surface);
}

.icon {
	flex: none;
}

.pet-face {
	width: 100%;
	height: auto;
}

.pub {
	--apricot: var(--accent-tint);
	--apricot-ink: var(--accent-tint-ink);
	--sage: var(--surface-sunken);
	--sage-ink: var(--accent-ink);
	--pub-width: 68rem;

	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	background: var(--bg);
	color: var(--ink);
}

.pub-wrap {
	width: 100%;
	max-width: var(--pub-width);
	margin: 0 auto;
	padding-left: var(--gutter);
	padding-right: var(--gutter);
}

/* ---------- 머리말 ---------- */
.pub-header__inner {
	display: flex;
	align-items: center;
	gap: var(--s-1);
	min-height: 4.5rem;
}
.pub-brand {
	display: inline-flex;
	align-items: center;
	gap: var(--s-2);
	min-height: var(--touch);
	margin-right: auto;
	color: var(--ink);
	font-family: var(--font-display);
	font-weight: 700;
	font-synthesis: none;
	font-size: 1.375rem;
	line-height: 1;
	letter-spacing: 0.04em;
	text-decoration: none;
}
.pub-brand:hover {
	color: var(--ink);
}
.pub-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3rem;
	padding: 0 var(--s-5);
	border-radius: var(--r-control);
	background: var(--accent);
	color: var(--on-accent);
	font-weight: 700;
	text-decoration: none;
	transition: background-color 0.15s ease;
}
.pub-btn:hover {
	background: var(--accent-hover);
	color: var(--on-accent);
	text-decoration: none;
}
.pub-main {
	flex: 1;
}

/* ---------- 바닥글 ---------- */
.pub-footer {
	border-top: 1px solid var(--line);
}
.pub-footer__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--s-1) var(--s-5);
	padding-top: var(--s-4);
	padding-bottom: var(--s-6);
	font-size: var(--text-sm);
	color: var(--ink-3);
}
.pub-footer nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0 var(--s-5);
}
.pub-footer a {
	display: inline-flex;
	align-items: center;
	min-height: var(--touch);
	color: var(--ink-2);
	font-weight: 700;
}
@media (min-width: 48em) {
	.pub-footer__inner p {
		margin-left: auto;
	}
}

/* ---------- 처음 화면 ---------- */
.lp-br {
	display: none;
}
@media (min-width: 40em) {
	.lp-br {
		display: inline;
	}
}

.lp-hero {
	display: grid;
	gap: var(--s-6);
	align-items: center;
	padding-top: var(--s-5);
	padding-bottom: var(--s-7);
}
.lp-hero h1 {
	font-size: clamp(2rem, 1.35rem + 2.8vw, 3.25rem);
	line-height: 1.24;
}
.lp-lead {
	margin-top: var(--s-4);
	max-width: 34rem;
	color: var(--ink-2);
	font-size: 1.125rem;
	line-height: 1.75;
}
.lp-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--s-2) var(--s-3);
	margin-top: var(--s-5);
}
/* 앱의 강아지·고양이 얼굴을 둥근 창 아래에서 올려다보게 둔다. 앱에서 사진이 없는 아이의 모습과 같다. */
.lp-art {
	position: relative;
	width: min(100%, 17rem);
	aspect-ratio: 1;
	margin: 0 auto;
}
.lp-art__dog,
.lp-art__cat {
	position: absolute;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	border-radius: 50%;
	overflow: hidden;
}
.lp-art__dog {
	top: 0;
	left: 0;
	width: 78%;
	aspect-ratio: 1;
	padding: 0 13%;
	background: var(--apricot);
}
.lp-art__cat {
	right: 0;
	bottom: 0;
	width: 50%;
	aspect-ratio: 1;
	padding: 0 9%;
	background: var(--peach-bg);
	border: 6px solid var(--bg);
}

@media (min-width: 56em) {
	.lp-hero {
		grid-template-columns: 1.2fr 0.8fr;
		gap: var(--s-7);
		padding-top: var(--s-7);
		padding-bottom: var(--s-6);
	}
	.lp-art {
		width: min(100%, 22rem);
	}
}

.lp-section {
	padding-top: var(--s-7);
	padding-bottom: var(--s-7);
}
.lp-section h2,
.lp-trust h2 {
	font-size: clamp(1.625rem, 1.25rem + 1.5vw, 2.25rem);
}
.lp-body {
	margin-top: var(--s-3);
	color: var(--ink-2);
}
.lp-body + .lp-body {
	margin-top: var(--s-3);
}

/* 기록 */
.lp-split {
	display: grid;
	gap: var(--s-6);
	align-items: center;
}
.lp-types {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--s-2);
}
.lp-type {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--s-2);
	padding: var(--s-4) var(--s-2);
	background: var(--surface);
	border-radius: 18px;
	font-weight: 700;
}
.lp-type__icon {
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	background: var(--apricot);
	color: var(--apricot-ink);
}
/* 앱과 같은 묶음(병력·진료·약 / 사료·식사 / 배변·배뇨·구토 / 행동)을 옅은 면 두 가지로 번갈아 나눈다. */
.lp-type--food .lp-type__icon,
.lp-type--behavior .lp-type__icon {
	background: var(--sage);
	color: var(--sage-ink);
}
.lp-type--out .lp-type__icon {
	background: var(--surface-sunken);
	color: var(--ink);
}
@media (min-width: 56em) {
	.lp-split {
		grid-template-columns: 0.95fr 1.05fr;
		gap: var(--s-7);
	}
}

/* 상담: 이 페이지의 중심 기능이라 하나뿐인 큰 흰 판에 둔다. */
.lp-consult {
	display: grid;
	gap: var(--s-6);
	padding: var(--s-6) var(--s-5);
	background: var(--surface);
	border-radius: 28px;
}
.lp-eg {
	margin-top: var(--s-5);
	color: var(--ink-3);
	font-size: var(--text-sm);
	font-weight: 700;
}
.lp-bubble {
	max-width: 24rem;
	margin-top: var(--s-2);
	padding: var(--s-3) var(--s-4);
	background: var(--apricot);
	border-radius: 20px 20px 20px 6px;
}
.lp-parts h3,
.lp-scale h3 {
	font-size: var(--text-base);
}
.lp-parts dl {
	margin: var(--s-2) 0 0;
}
.lp-parts dl > div {
	padding: var(--s-3) 0;
	border-bottom: 1px solid var(--line);
}
.lp-parts dl > div:last-child {
	border-bottom: 0;
}
.lp-parts dt {
	font-weight: 700;
}
.lp-parts dd {
	margin: 0;
	color: var(--ink-2);
}
.lp-scale p {
	margin-top: var(--s-1);
	color: var(--ink-2);
}
.lp-scale ol {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: var(--s-1);
	margin-top: var(--s-4);
}
/* 단계 띠의 색은 안심(청록)에서 응급(빨강)으로 짙어진다. 뜻은 항상 아래 글자가 전한다. */
.lp-scale li {
	display: flex;
	flex-direction: column;
	gap: var(--s-2);
	color: var(--ink-2);
	font-size: var(--text-sm);
	font-weight: 700;
	line-height: 1.4;
}
.lp-scale li::before {
	content: '';
	height: 0.625rem;
	border-radius: var(--r-pill);
	background: var(--step);
}
.lp-scale li:nth-child(1) {
	--step: var(--ring-ok);
}
.lp-scale li:nth-child(2) {
	--step: #a8a63c;
}
.lp-scale li:nth-child(3) {
	--step: var(--ring-soon);
}
.lp-scale li:nth-child(4) {
	--step: var(--coral);
}
.lp-scale li:nth-child(5) {
	--step: var(--danger);
}
.lp-scale li span {
	display: block;
	color: var(--ink-3);
	font-variant-numeric: tabular-nums;
}
.lp-caution {
	display: flex;
	align-items: flex-start;
	gap: var(--s-3);
	padding: var(--s-4);
	background: var(--surface-sunken);
	border-radius: 18px;
}
.lp-caution .icon {
	margin-top: 0.15rem;
	color: var(--accent-ink);
}
@media (min-width: 56em) {
	.lp-consult {
		grid-template-columns: 1fr 1fr;
		gap: var(--s-6) var(--s-7);
		padding: var(--s-7);
	}
	.lp-scale,
	.lp-caution {
		grid-column: 1 / -1;
	}
}

/* 그 밖에 챙기는 것: 카드 대신 가는 선으로 나눈 두 줄 목록 */
.lp-more {
	display: grid;
	gap: 0 var(--s-7);
	margin-top: var(--s-5);
}
.lp-item {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-content: start;
	gap: var(--s-1) var(--s-4);
	padding: var(--s-5) 0;
	border-top: 1px solid var(--line);
}
.lp-item__icon {
	grid-row: span 2;
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	border-radius: 16px;
	background: var(--sage);
	color: var(--sage-ink);
}
.lp-item h3 {
	font-size: var(--text-lg);
}
.lp-item p {
	color: var(--ink-2);
}
.lp-aside {
	margin-top: var(--s-2);
	color: var(--ink-3);
	font-size: var(--text-sm);
}
@media (min-width: 48em) {
	.lp-more {
		grid-template-columns: 1fr 1fr;
	}
}

/* 기록을 다루는 방식: 화면 폭 전체의 회청색 띠 */
.lp-trust {
	padding: var(--s-7) 0;
	background: var(--sage);
}
.lp-trust__list {
	display: grid;
	gap: var(--s-5);
	margin-top: var(--s-5);
}
.lp-trust h3 {
	font-size: var(--text-lg);
}
.lp-trust p {
	margin-top: var(--s-2);
	color: var(--ink-2);
}
.lp-trust a {
	color: var(--sage-ink);
	font-weight: 700;
}
@media (min-width: 48em) {
	.lp-trust__list {
		grid-template-columns: 1fr 1fr;
		gap: var(--s-7);
	}
}

.lp-end {
	padding-top: 5rem;
	padding-bottom: 5rem;
	text-align: center;
}
.lp-end h2 {
	font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
}
.lp-end__lead {
	max-width: 30rem;
	margin: var(--s-3) auto 0;
	color: var(--ink-2);
}

@media (prefers-reduced-motion: reduce) {
	.pub-btn {
		transition: none;
	}
}
