/* FlipCraft Guide — Inter + DM Sans, ink-blue + amber on white */
:root {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #F6F8FB;
  --surface-3: #EEF2F8;
  --ink: #0F2A44;
  --ink-2: #1B2D4A;
  --ink-soft: #3F4E66;
  --muted: #6B7689;
  --line: #E2E8F0;
  --line-2: #CBD5E1;
  --amber: #F59E0B;
  --amber-2: #D97706;
  --amber-soft: #FFF6E5;
  --success: #047857;
  --radius: 10px;
  --radius-lg: 18px;
  --radius-xl: 28px;
  --shadow-xs: 0 1px 2px rgba(15,42,68,.06);
  --shadow-sm: 0 1px 2px rgba(15,42,68,.04), 0 4px 12px rgba(15,42,68,.06);
  --shadow-md: 0 8px 28px rgba(15,42,68,.10);
  --shadow-lg: 0 24px 60px rgba(15,42,68,.16);
  --maxw: 1200px;
  --display-font: "DM Sans", "Inter", ui-sans-serif, system-ui, sans-serif;
  --body-font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin:0; padding:0; }
body {
  font-family: var(--body-font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display:block; }
a { color: var(--ink-2); text-decoration: none; transition: color .15s; }
a:hover { color: var(--amber-2); }
h1, h2, h3, h4, h5 { font-family: var(--display-font); color: var(--ink); letter-spacing: -0.015em; line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p { margin: 0 0 1em; color: var(--ink-soft); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.eyebrow {
  display:inline-block; font-size:.75rem; letter-spacing:.14em; text-transform:uppercase;
  color: var(--amber-2); font-weight:700; margin-bottom: 14px;
  padding: 4px 10px; background: var(--amber-soft); border-radius: 999px;
}
.center { text-align:center; }
code { background: var(--surface-3); padding: 2px 6px; border-radius: 4px; font-size: .9em; color: var(--ink); font-family: ui-monospace, "SF Mono", Menlo, monospace; }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }

/* Header */
.site-header {
  position: sticky; top:0; z-index:50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom:1px solid var(--line);
}
.header-inner { display:flex; align-items:center; justify-content:space-between; padding: 16px 24px; gap: 24px; }
.brand { display:flex; align-items:center; gap:10px; font-weight:700; color: var(--ink); font-family: var(--display-font); }
.brand:hover { text-decoration:none; color: var(--ink); }
.brand-mark {
  width:34px;height:34px;border-radius:9px;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 60%, var(--amber) 140%);
  color:#fff; font-size:13px; display:grid;place-items:center; font-weight:800; letter-spacing:.5px;
  box-shadow: var(--shadow-xs);
}
.brand-name { font-size: 17px; }
.brand-name em { font-style: normal; color: var(--amber-2); font-weight:600; }
.nav { display:flex; gap: 26px; align-items: center; }
.nav a { color: var(--ink-2); font-size: 14.5px; font-weight: 500; }
.nav a:hover { color: var(--amber-2); text-decoration: none; }

/* Buttons */
.cta {
  display:inline-flex; align-items: center; gap: 8px;
  background: var(--amber); color: var(--ink); padding: 13px 22px;
  border-radius: 999px; font-weight:600; font-size: 15px;
  transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
  box-shadow: 0 1px 0 rgba(15,42,68,.08), 0 4px 14px rgba(245,158,11,.32);
  border: 1px solid transparent;
}
.cta:hover { background: var(--amber-2); color: #fff; text-decoration:none; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(217,119,6,.40); }
.cta-ghost { background: transparent; color: var(--ink); border:1px solid var(--line-2); box-shadow: none; }
.cta-ghost:hover { background: var(--surface-2); color: var(--ink); border-color: var(--ink-2); }
.cta-light { background:#fff; color: var(--ink); }
.cta-light:hover { background: var(--amber-soft); color: var(--ink); }
.cta-sm { padding: 9px 16px; font-size: 14px; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(245,158,11,.18), transparent 60%),
    radial-gradient(700px 400px at 5% 100%, rgba(15,42,68,.08), transparent 65%),
    linear-gradient(180deg, #FFFFFF 0%, #F6F8FB 100%);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px;
  align-items: center; padding: 80px 24px 90px;
}
.hero-copy h1 em { font-style: normal; color: var(--amber-2); position: relative; }
.hero-copy h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 10px;
  background: var(--amber-soft); z-index: -1; border-radius: 2px;
}
.hero-copy .lede { font-size: 1.18rem; color: var(--ink-soft); max-width: 640px; }
.hero-actions { display:flex; gap: 14px; margin: 28px 0 36px; flex-wrap: wrap; }
.hero-stats { list-style:none; padding:0; margin:0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 520px; }
.hero-stats li { display: flex; flex-direction: column; gap: 2px; padding-left: 14px; border-left: 2px solid var(--amber); }
.hero-stats strong { font-family: var(--display-font); font-size: 1.6rem; color: var(--ink); font-weight: 700; }
.hero-stats span { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.hero-art { position: relative; }
.hero-art img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); transform: rotate(-1deg); transition: transform .3s; }
.hero-art img:hover { transform: rotate(0deg); }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--surface-2); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.section-dark { background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%); color:#fff; }
.section-dark h2, .section-dark p { color:#fff; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }
.section-cta { text-align:center; margin-top: 36px; }

/* Grids */
.grid-2 { display:grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-3 { display:grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display:grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.two-col { display:grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

/* Tiles (industries / audiences) */
.tile {
  --accent: var(--ink-2);
  display: block; padding: 26px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  color: var(--ink); transition: transform .18s, border-color .18s, box-shadow .18s;
  position: relative; overflow: hidden;
}
.tile::before {
  content: ""; position: absolute; left:0; top:0; bottom:0; width: 4px;
  background: var(--accent); opacity: .8;
}
.tile:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow-md); text-decoration:none; color: var(--ink); }
.tile-tag {
  display:inline-block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 14px;
}
.tile h3 { margin: 0 0 8px; }
.tile p { color: var(--ink-soft); margin: 0 0 16px; font-size: .95rem; }
.tile-meta { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-weight: 600; font-size: .9rem; }

/* Audience tile (large) */
.audience-tile { padding: 32px; }
.audience-tile h3 { font-size: 1.4rem; }

/* Template cards */
.template-card {
  --accent: var(--ink-2);
  display: block; background: var(--surface); border:1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; transition: transform .15s, box-shadow .15s, border-color .15s;
  color: var(--ink);
}
.template-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent); text-decoration:none; color: var(--ink); }
.template-cover {
  height: 140px; background: linear-gradient(135deg, var(--accent), var(--ink-2));
  display: grid; place-items: center; color: #fff; font-family: var(--display-font); font-weight: 700; padding: 18px;
  text-align: center; font-size: 1.05rem; letter-spacing: -.01em;
}
.template-card.lg .template-cover { height: 180px; font-size: 1.25rem; }
.template-meta { padding: 16px 18px; }
.template-meta strong { display:block; color: var(--ink); margin-bottom: 4px; }
.template-meta small { color: var(--muted); }

/* Feature & generic cards */
.feature-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; display: block; color: var(--ink); transition: transform .15s, box-shadow .15s, border-color .15s;
}
.feature-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--amber); text-decoration: none; color: var(--ink); }
.feature-icon {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  background: var(--amber-soft); color: var(--amber-2);
  border-radius: 10px; margin-bottom: 14px; font-weight: 700; font-size: 14px;
}
.feature-icon::before { content: "•"; font-size: 22px; line-height: 1; }
.feature-card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.feature-card p { color: var(--ink-soft); font-size: .95rem; margin: 0 0 12px; }
.link-arrow { color: var(--amber-2); font-weight: 600; font-size: .9rem; }

/* Callouts */
.callouts { background: var(--surface-2); padding: 56px 0; border-top:1px solid var(--line); border-bottom: 1px solid var(--line); }
.callouts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.callout { display:block; padding: 22px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); color: var(--ink); transition: border-color .15s, transform .15s; }
.callout:hover { border-color: var(--amber); transform: translateY(-2px); text-decoration:none; color: var(--ink); }
.callout-dot { display:block; width: 10px; height: 10px; border-radius:50%; background: var(--amber); margin-bottom: 12px; }
.callout h4 { margin: 0 0 6px; font-size: .95rem; }
.callout p { margin: 0; font-size: .85rem; color: var(--muted); }

/* Page head */
.page-head {
  --accent: var(--ink-2);
  padding: 56px 0 36px; background: var(--surface-2); border-bottom: 1px solid var(--line);
  position: relative;
}
.page-head::before {
  content: ""; position:absolute; left:0; right:0; bottom:-1px; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--amber));
}
.page-head h1 { margin-top: 8px; }
.page-head .lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 760px; }
.back-link { display:inline-block; color: var(--ink-soft); font-size: .9rem; margin-bottom: 12px; }
.back-link:hover { color: var(--amber-2); }

/* Article grid (main + sidebar) */
.article-grid { display:grid; grid-template-columns: minmax(0,1fr) 320px; gap: 48px; align-items: start; }
.article {
  background: var(--surface); padding: 0; border-radius: var(--radius-lg);
}
.article > p, .article > ul, .article > ol, .article > blockquote, .article > h2, .article > h3 { max-width: 76ch; }
.article p { font-size: 1.05rem; line-height: 1.75; color: var(--ink-soft); }
.article h2 { margin-top: 1.6em; padding-top: .2em; border-top: 1px solid var(--line); padding-top: 1.2em; }
.article h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 1em; }
.article h3 { margin-top: 1.6em; }
.article a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 3px; }
.article a:hover { color: var(--amber-2); }
.article ul, .article ol { padding-left: 1.4em; line-height: 1.75; }
.article li { margin-bottom: .5em; color: var(--ink-soft); }
.article ul li::marker { color: var(--amber); }
.article ol li::marker { color: var(--amber-2); font-weight: 700; }
.article blockquote { margin: 1.4em 0; padding: 18px 22px; border-left: 3px solid var(--amber); background: var(--amber-soft); border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink); }
.article blockquote.tip::before { content: "Tip "; color: var(--amber-2); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; display: block; margin-bottom: 6px; }

.cta-inline { margin-top: 28px; }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 90px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 20px;
}
.card h4 { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; font-weight: 700; }
.cta-card { background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%); color: #fff; border: 0; }
.cta-card h4 { color: rgba(255,255,255,.7); margin-bottom: 8px; }
.cta-card p { color: rgba(255,255,255,.85); font-size: .92rem; margin-bottom: 14px; }
.link-list { list-style:none; padding:0; margin:0; }
.link-list li { padding: 6px 0; border-top: 1px solid var(--line); font-size: .92rem; }
.link-list li:first-child { border-top: 0; padding-top: 0; }
.link-list a { color: var(--ink); }
.link-list a:hover { color: var(--amber-2); }

/* PBN editorial card */
.pbn-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; }
.pbn-card h4 { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--amber-2); margin: 0 0 10px; }
.pbn-card .pbn-item { padding: 10px 0; border-top: 1px solid var(--line); }
.pbn-card .pbn-item:first-of-type { border-top: 0; padding-top: 0; }
.pbn-card .pbn-item a { color: var(--ink); font-weight: 600; font-size: .95rem; display: block; margin-bottom: 4px; }
.pbn-card .pbn-item a:hover { color: var(--amber-2); }
.pbn-card .pbn-item span { color: var(--muted); font-size: .82rem; }

/* Inline editorial recommendation block */
.editorial-block {
  margin: 24px 0; padding: 18px 20px; background: var(--surface-2);
  border-left: 3px solid var(--amber); border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .98rem;
}
.editorial-block strong { color: var(--ink); }
.editorial-block a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--amber); }

/* Use-case / generic lists */
.case-card {
  display: block; padding: 22px; background: var(--surface); border:1px solid var(--line);
  border-radius: var(--radius-lg); color: var(--ink); transition: transform .15s, border-color .15s, box-shadow .15s;
}
.case-card:hover { transform: translateY(-2px); border-color: var(--amber); box-shadow: var(--shadow-md); text-decoration:none; color: var(--ink); }
.case-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.case-card p { font-size: .92rem; color: var(--ink-soft); margin: 0 0 12px; }
.chips { list-style:none; padding:0; margin:0; display:flex; flex-wrap: wrap; gap: 6px; }
.chips li { background: var(--surface-3); padding: 3px 10px; border-radius: 999px; font-size: .75rem; color: var(--ink-soft); }

.industry-block { margin-bottom: 56px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.industry-block:last-child { border-bottom: 0; }
.industry-head { display:flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 20px; flex-wrap: wrap; }
.industry-head h2 { margin: 0 0 6px; }
.industry-head h2 a { color: var(--ink); }
.industry-head p { margin: 0; color: var(--ink-soft); }
.case-list { columns: 2; column-gap: 32px; padding-left: 1.2em; }
.case-list li { margin-bottom: .4em; break-inside: avoid; }
.case-list a { color: var(--ink-2); }

.feature-bullets { list-style: none; padding: 0; }
.feature-bullets li { display: grid; grid-template-columns: max-content 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.feature-bullets li:first-child { border-top: 0; }
.feature-bullets strong { white-space: nowrap; }
.feature-bullets span { color: var(--ink-soft); font-size: .92rem; }

.workflow { padding-left: 1.4em; }
.workflow li { margin-bottom: .9em; }
.workflow strong { color: var(--ink); }

/* Tools comparison table */
.tool-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .95rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tool-table th, .tool-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.tool-table thead { background: var(--surface-2); }
.tool-table th { font-family: var(--display-font); font-weight: 600; color: var(--ink); font-size: .9rem; text-transform: uppercase; letter-spacing: .04em; }
.tool-table tbody tr:last-child td { border-bottom: 0; }
.tool-table td.yes { color: var(--success); font-weight: 600; }
.tool-table td.no { color: var(--muted); }

.tool-card {
  --accent: var(--ink-2);
  display: block; padding: 22px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); color: var(--ink); transition: transform .15s, border-color .15s, box-shadow .15s;
}
.tool-card:hover { transform: translateY(-2px); border-color: var(--amber); box-shadow: var(--shadow-md); text-decoration:none; color: var(--ink); }
.tool-card h3 { margin: 0 0 6px; }
.tool-card .tool-price { color: var(--amber-2); font-weight: 600; font-size: .9rem; margin-bottom: 8px; }
.tool-card p { margin: 0 0 12px; font-size: .92rem; color: var(--ink-soft); }

/* Two-col with quote */
.quote-card { background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%); color:#fff; padding: 36px; border-radius: var(--radius-xl); position: relative; }
.quote-card::before { content: "“"; position: absolute; top: 8px; left: 22px; font-size: 6rem; color: var(--amber); line-height: 1; opacity: .9; font-family: Georgia, serif; }
.quote-card blockquote { margin: 28px 0 14px; font-size: 1.15rem; line-height: 1.5; font-family: var(--display-font); }
.quote-card cite { color: var(--amber); font-style: normal; font-size: .9rem; }

.cta-band { text-align:center; padding: 48px 24px; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.8); max-width: 560px; margin: 0 auto 24px; }

.check-list { list-style: none; padding: 0; }
.check-list li { padding: 8px 0 8px 28px; position: relative; color: var(--ink-soft); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 8px; color: var(--amber-2); font-weight: 800;
  width: 20px; height: 20px; border-radius: 50%; background: var(--amber-soft); display: grid; place-items: center; font-size: 12px;
}

.post-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.post-list li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; transition: border-color .15s, transform .15s, box-shadow .15s; }
.post-list li:hover { border-color: var(--amber); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.post-list a { color: var(--ink); display: block; }
.post-list h3 { margin: 6px 0; font-size: 1.15rem; }
.post-tag { display:inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--amber-2); }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.85); padding: 56px 0 24px; margin-top: 48px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.footer-grid h4 { color: #fff; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.footer-grid a { display: block; color: rgba(255,255,255,.72); padding: 4px 0; font-size: .92rem; }
.footer-grid a:hover { color: var(--amber); text-decoration: none; }
.brand-footer { color: #fff; margin-bottom: 14px; }
.brand-footer .brand-name { color: #fff; }
.footer-grid .muted { color: rgba(255,255,255,.6); margin: 0; font-size: .92rem; }
.footer-bottom {
  display:flex; justify-content: space-between; gap: 16px;
  padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); flex-wrap: wrap;
  color: rgba(255,255,255,.55); font-size: .85rem;
}
.footer-bottom a { color: rgba(255,255,255,.7); }
.footer-bottom a:hover { color: var(--amber); }

/* PBN inside footer */
.footer-pbn { padding: 6px 0 4px; }
.footer-pbn em { color: rgba(255,255,255,.4); font-style: normal; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; display: block; margin-bottom: 4px; }
.footer-pbn a { color: rgba(255,255,255,.78); font-size: .88rem; }

/* Responsive */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 56px 24px 64px; }
  .hero-stats { max-width: none; }
  .article-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .callouts-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .case-list { columns: 1; }
}
@media (max-width: 560px) {
  h1 { font-size: 2rem; }
  .grid-2, .grid-3, .grid-4, .callouts-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
}
