/* Shared building blocks for inner pages (feature, solution, guide, video, demo).
   Uses the tokens and base components defined in styles.css. */

/* ---------- Page hero */
.page-hero {
  padding: 72px 0 24px;
  text-align: center;
}

.page-hero .eyebrow,
.eyebrow {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--plum-600);
}

.page-hero h1 {
  margin: 0 auto;
  max-width: 18ch;
  font-size: clamp(40px, 5.4vw, 76px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.page-hero h1 em { color: var(--plum-600); }

.page-hero .hero-lead { margin: 24px auto 0; }

.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.btn-ghost-light {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-2);
}

.btn-ghost-light:hover { background: var(--paper-2); }

.page-hero-note {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.page-hero-note a { color: var(--plum-700); text-decoration: underline; }

/* ---------- Breadcrumb */
.breadcrumb {
  padding-top: 28px;
  font-size: 14px;
  color: var(--muted);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--line-2);
}

.breadcrumb a { color: var(--ink-3); }
.breadcrumb a:hover { color: var(--plum-700); }

/* ---------- Section rhythm for inner pages */
.block { padding: 56px 0; }
.block--tint { background: var(--paper-2); }
.block .section-intro { margin-bottom: 40px; }

/* ---------- Card grid */
.card-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 720px) {
  .card-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .card-grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 980px) {
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.info-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.info-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-3);
}

.info-card .text-link { margin-top: 16px; display: inline-flex; }

/* ---------- Split: text beside a picture */
.split {
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split--flip .split-media { order: -1; }
}

.split h2 {
  margin: 0 0 16px;
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.split p {
  margin: 0 0 16px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-3);
}

.tick-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-2);
}

.tick-list li {
  position: relative;
  padding-left: 30px;
}

.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--plum-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23008DB9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.split-media img,
.media-slot {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
}

/* A visible stand-in for a picture that has not been supplied yet. */
.media-slot {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  padding: 24px;
  border-style: dashed;
  border-color: var(--line-2);
  background: var(--paper-2);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

/* ---------- Numbered steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
  counter-reset: step;
}

@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

.steps li {
  counter-increment: step;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.steps li::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--plum-500);
}

.steps h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.steps p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-3);
}

/* ---------- Call-to-action band */
.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--plum-50);
}

.cta-band h2 {
  margin: 0 0 6px;
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.cta-band p { margin: 0; font-size: 16px; color: var(--ink-3); }

/* ---------- Guide (article) */
.article-head {
  padding: 40px 0 8px;
  max-width: 820px;
}

.article-head h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.article-head .hero-lead { max-width: none; }

.byline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 20px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.byline strong { color: var(--ink-2); font-weight: 600; }

.article-layout {
  display: grid;
  gap: 40px;
  padding: 32px 32px 64px;
}

@media (min-width: 1000px) {
  .article-layout { grid-template-columns: minmax(0, 720px) 280px; justify-content: space-between; }
}

.prose { font-size: 18px; line-height: 1.7; color: var(--ink-2); }
.prose > * { max-width: 720px; }
.prose h2 {
  margin: 48px 0 14px;
  font-size: clamp(26px, 2.8vw, 34px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}
.prose h3 { margin: 32px 0 10px; font-size: 22px; font-weight: 600; color: var(--ink); }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 24px; display: grid; gap: 8px; }
.prose a { color: var(--plum-700); text-decoration: underline; }
.prose h2:first-child { margin-top: 0; }

.takeaways {
  margin: 0 0 32px;
  padding: 24px 28px;
  border-radius: var(--radius);
  background: var(--plum-50);
}

.takeaways h2 { margin: 0 0 10px; font-size: 18px; letter-spacing: 0; }
.takeaways ul { margin: 0; }

.article-aside { display: grid; gap: 20px; align-content: start; }

@media (min-width: 1000px) {
  .article-aside { position: sticky; top: calc(var(--header-h) + 24px); }
}

.aside-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: #fff;
  font-size: 15px;
  line-height: 1.5;
}

.aside-card h2 { margin: 0 0 10px; font-size: 16px; font-weight: 600; }
.aside-card ol, .aside-card ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--ink-3); }
.aside-card p { margin: 0 0 14px; color: var(--ink-3); }
.aside-card a:not(.btn) { color: var(--plum-700); }

/* ---------- Video (watch page) */
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
}

.video-frame iframe,
.video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-frame .media-slot {
  height: 100%;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  background: var(--ink);
  color: #fff;
}

.moments {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.moments li {
  display: flex;
  gap: 14px;
  font-size: 16px;
  color: var(--ink-2);
}

.moments time {
  flex: 0 0 52px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--plum-700);
}

.transcript {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 4px 24px;
}

.transcript summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
}

/* ---------- Contact fallback on the demo page */
.contact-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  margin: 20px 0 0;
  font-size: 16px;
  color: var(--ink-3);
}

.contact-row a { color: var(--plum-700); font-weight: 600; }

/* ---------- Template notice (only on /templates/ pages) */
.template-note {
  margin: 0;
  padding: 10px 16px;
  background: #fff7e0;
  border-bottom: 1px solid #ecd9a0;
  color: #5c4a12;
  font-size: 14px;
  text-align: center;
}

.template-note a { text-decoration: underline; }

@media (max-width: 720px) {
  .block { padding: 40px 0; }
  .article-layout { padding: 24px 20px 48px; }
  .cta-band { padding: 24px; }
}

/* ---------- Article body: pictures, quotes, small headings and tables (blog and legal pages) */
.prose img {
  height: auto;
  border-radius: var(--radius);
}

.prose h4 {
  margin: 26px 0 8px;
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
}

.prose blockquote {
  margin: 0 0 18px;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--plum-400);
  color: var(--ink);
}

.prose blockquote p:last-child { margin-bottom: 0; }

.prose table {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 0 18px;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}

.prose th,
.prose td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose th { background: var(--paper-2); font-weight: 600; }

/* Blog index cards */
.info-card h3 a { color: inherit; }
.info-card h3 a:hover { color: var(--plum-700); }
.info-card time { font-size: 14px; color: var(--muted); }
