/* Guides: step-by-step how-tos. Extends landing.css and blog.css. */

/* Index */
.guides-hero { padding-block: 52px 30px; }
.guides-hero h1 { font-size: clamp(44px, 5.3vw, 68px); font-style: italic; text-transform: uppercase; line-height: 1; letter-spacing: -.015em; }
.guides-hero .cic-lede { margin-top: 20px; }

.guides-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 18px auto 0; padding: 0; list-style: none; }
.guides-list li { margin: 0; }
.guides-card { position: relative; display: flex; flex-direction: column; height: 100%; padding: 0 0 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; transition: border-color .18s ease, box-shadow .18s ease; }
.guides-card:hover { border-color: var(--brand); box-shadow: 0 14px 34px -18px rgb(20 39 28 / .35); }
.guides-card__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--surface-alt); }
.guides-card__img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.guides-card__num { position: absolute; top: 14px; left: 14px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 18px/1 var(--display); }
.guides-card h2 { margin: 20px 22px 0; font-size: 26px; line-height: 1.08; }
.guides-card:hover h2 { color: var(--brand); }
.guides-card p { margin: 10px 22px 0; font-size: 15px; }
.guides-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: auto 22px 0; padding-top: 16px; color: var(--muted); font-size: 13px; }
.guides-card__plan { padding: 2px 8px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); font-weight: 600; }

.guides-help { max-width: 760px; padding-block: 64px 24px; }
.guides-help h2 { font-size: 32px; }
.guides-help p { margin-top: 12px; font-size: 16px; }
.guides-help a { color: var(--brand-hover); text-decoration: underline; }

/* Guide */
.guide-hero { padding-block: 44px 32px; }
.guide-hero h1 { max-width: 20ch; font-size: clamp(38px, 4.7vw, 60px); font-style: italic; text-transform: uppercase; line-height: 1.01; letter-spacing: -.015em; }
.guide-number { margin-bottom: 12px; color: var(--brand); font-size: 14px; font-weight: 600; }
.guide-plan { display: inline-flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 16px; padding: 10px 14px; border-left: 3px solid var(--brand); border-radius: 0 8px 8px 0; background: var(--surface-alt); color: var(--ink); font-size: 14px; }
.guide-plan a { color: var(--brand-hover); text-decoration: underline; }

.guide-body { display: grid; grid-template-columns: minmax(0, 1fr) 216px; gap: 14px 64px; padding-block: 34px 40px; border-top: 1px solid var(--line); }
.guide-body .cic-contents { grid-row: 1; grid-column: 2; }
.guide-steps { grid-row: 1; grid-column: 1; margin: 0; padding: 0; list-style: none; }
.guide-step { padding-bottom: 60px; scroll-margin-top: 20px; }
.guide-step + .guide-step { padding-top: 44px; border-top: 1px solid var(--line-soft); }
.guide-step h2 { display: flex; align-items: center; gap: 14px; font-size: clamp(26px, 3vw, 32px); line-height: 1.1; }
.guide-step__num { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff; font: 700 21px/1 var(--display); }
.guide-step__text { max-width: 66ch; margin: 16px 0 0 52px; color: var(--read); font-size: 17px; line-height: 1.7; }
.guide-step__text p { color: inherit; }
.guide-step__text p + p { margin-top: 14px; }
.guide-step__text strong { color: var(--ink); }

.guide-shot { margin: 26px 0 0 52px; }
.guide-shot img { width: 100%; max-width: var(--w); border: 1px solid var(--line); border-radius: 12px; background: var(--surface-alt); box-shadow: 0 18px 40px -26px rgb(20 39 28 / .45); }
.guide-shot--phone img { border: 6px solid #17241c; border-radius: 26px; }
.guide-shot--render img { border: 0; border-radius: 10px; }
.guide-shots { display: flex; flex-wrap: wrap; gap: 24px; margin: 26px 0 0 52px; }
.guide-shots .guide-shot { margin: 0; flex: 0 1 280px; }

.guide-tip { max-width: 64ch; margin: 22px 0 0 52px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 10px; color: var(--read); font-size: 15px; line-height: 1.6; }
.guide-tip strong { display: block; margin-bottom: 4px; color: var(--brand); font-size: 13px; }

.guide-next { padding-bottom: 12px; }
.guide-next a { display: grid; gap: 4px; padding: 24px 28px; border: 2px solid var(--brand); border-radius: 12px; }
.guide-next a:hover { background: var(--surface-alt); }
.guide-next span { color: var(--brand); font-size: 14px; font-weight: 600; }
.guide-next strong { font: 700 30px/1.1 var(--display); }
.guide-next small { color: var(--muted); font-size: 15px; }

@media (max-width: 1000px) {
	.guides-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.guide-body { grid-template-columns: 1fr; gap: 0; }
	.guide-body .cic-contents, .guide-steps { grid-row: auto; grid-column: 1; }
}

@media (max-width: 720px) {
	.guides-hero { padding-block: 34px 20px; }
	.guides-hero h1 { font-size: 44px; }
	.guides-list { grid-template-columns: 1fr; gap: 20px; }
	.guide-hero { padding-block: 32px 24px; }
	.guide-hero h1 { max-width: none; font-size: 38px; }
	.guide-step__text, .guide-shot, .guide-shots, .guide-tip { margin-left: 0; }
	.guide-step { padding-bottom: 44px; }
	.guide-step + .guide-step { padding-top: 32px; }
	.guide-shots .guide-shot { flex-basis: calc(50% - 12px); }
}

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