﻿/*
Theme Name: SecurityBlogs Editorial
Theme URI: https://securityblogs.co.uk/
Author: SecurityBlogs / Codex
Description: Custom editorial WordPress theme for SecurityBlogs.co.uk.
Version: 0.5.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: securityblogs
*/

:root {
  --bg: #f5f3ee;
  --panel: #dfe8e3;
  --panel-blue: #c4d8f5;
  --panel-warm: #ffe5bd;
  --ink: #092522;
  --green: #123f3a;
  --green-2: #1b5a51;
  --orange: #ff6422;
  --white: #ffffff;
  --muted: rgba(9, 37, 34, 0.68);
  --border: rgba(9, 37, 34, 0.12);
  --font-heading: "Sora", sans-serif;
  --font-body: "Atkinson Hyperlegible", sans-serif;
  --container: min(100% - 2rem, 1160px);
  --radius-lg: 34px;
  --radius-md: 18px;
  --radius-sm: 10px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.skip-link,
.screen-reader-text {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: var(--white);
  padding: 0.75rem 1rem;
}

.section-inner {
  width: var(--container);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 243, 238, 0.9);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: var(--container);
  margin-inline: auto;
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-heading);
  font-weight: 700;
}

.brand-mark img {
  width: 176px;
  height: auto;
}

.brand-dots {
  width: 20px;
  height: 20px;
  background:
    radial-gradient(circle, var(--orange) 45%, transparent 47%) 0 0 / 7px 7px;
}

.primary-nav {
  justify-self: end;
}

.menu {
  display: flex;
  gap: 1.35rem;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.88rem;
}

.menu a {
  border-radius: 999px;
  padding: 0.45rem 0.1rem;
}

.menu a:hover,
.menu a:focus-visible {
  color: var(--orange);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--orange);
  color: var(--white);
  padding: 0.85rem 1.15rem;
  font-weight: 700;
  font-size: 0.9rem;
}

.header-cta {
  background: #dfe8e3;
  color: var(--green);
}

.button-secondary {
  background: var(--green);
}

.button-light {
  background: var(--white);
  color: var(--green);
}

.button-small {
  padding: 0.7rem 0.95rem;
  font-size: 0.84rem;
}

.menu-toggle {
  display: none;
}

.home-hero {
  padding: clamp(4rem, 8vw, 6.5rem) 0 4rem;
  position: relative;
  overflow: hidden;
}

.home-hero::after {
  content: "";
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: -78px;
  height: 150px;
  background: var(--green);
  border-top: 14px solid var(--orange);
  border-radius: 50% 50% 0 0 / 38% 38% 0 0;
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.85fr);
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--orange);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  letter-spacing: 0;
}

.hero-copy h1,
.archive-hero h1,
.single-header h1 {
  margin: 0;
  max-width: 920px;
  margin-inline: auto;
  font-size: clamp(2.65rem, 5.2vw, 54px);
  line-height: 1.04;
}

.hero-copy p,
.trust-grid p,
.section-heading p,
.featured-copy p,
.article-card p,
.single-excerpt {
  color: var(--muted);
  line-height: 1.6;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 590px;
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.hero-illustration {
  min-height: 390px;
  position: relative;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 22% 22%, var(--orange) 0 6%, transparent 6.5%),
    radial-gradient(circle at 77% 18%, #ffe5bd 0 13%, transparent 13.5%),
    linear-gradient(145deg, var(--panel-blue), #edf3f7);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(9, 37, 34, 0.12);
}

.hero-browser {
  position: absolute;
  left: 13%;
  top: 18%;
  width: 46%;
  height: 42%;
  border: 3px solid var(--green);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  padding: 1rem;
  animation: floatSoft 5s ease-in-out infinite;
}

.hero-browser > span {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--orange);
}

.browser-lines {
  margin-top: 1.3rem;
  height: 72px;
  background:
    linear-gradient(var(--green), var(--green)) 0 0 / 75% 3px no-repeat,
    linear-gradient(var(--green), var(--green)) 0 24px / 45% 3px no-repeat,
    linear-gradient(var(--orange), var(--orange)) 0 48px / 60% 3px no-repeat;
}

.hero-lock {
  position: absolute;
  right: 16%;
  top: 26%;
  width: 110px;
  height: 95px;
  border-radius: 18px;
  background: var(--green);
  box-shadow: 14px 14px 0 var(--orange);
  animation: floatSoft 6s ease-in-out 600ms infinite;
}

.hero-lock::before {
  content: "";
  position: absolute;
  left: 28px;
  top: -38px;
  width: 54px;
  height: 52px;
  border: 9px solid var(--green);
  border-bottom: 0;
  border-radius: 50px 50px 0 0;
}

.hero-lock i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 30px;
  background: var(--white);
  border-radius: 999px;
  transform: translate(-50%, -35%);
}

.signal-card {
  position: absolute;
  border: 2px solid var(--green);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.55);
  opacity: 0.65;
}

.card-one {
  width: 48%;
  height: 38%;
  left: 18%;
  top: 28%;
}

.card-two {
  width: 36%;
  height: 30%;
  right: 14%;
  bottom: 20%;
  background: var(--panel-warm);
}

.signal-line {
  position: absolute;
  inset: 15% 8%;
  border: 3px solid var(--orange);
  border-left: 0;
  border-bottom: 0;
  border-radius: 50%;
  transform: rotate(22deg);
  animation: drawLoop 5s ease-in-out infinite;
}

.trust-band {
  background: var(--green);
  color: var(--white);
  padding: 5rem 0 4rem;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.trust-grid {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 2rem;
  align-items: center;
}

.trust-grid h2,
.wide-cta h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
}

.trust-grid p,
.wide-cta p {
  color: rgba(255, 255, 255, 0.78);
}

.section-block,
.featured-section {
  padding: clamp(4rem, 7vw, 6rem) 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 2rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
}

.featured-card {
  display: grid;
  grid-template-columns: 0.52fr 0.48fr;
  min-height: 360px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--green);
  color: var(--white);
  box-shadow: 0 28px 80px rgba(9, 37, 34, 0.14);
}

.featured-copy {
  padding: clamp(2rem, 4vw, 3.2rem);
  align-self: center;
}

.featured-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.featured-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.featured-image,
.article-card-image {
  display: block;
  min-height: 220px;
}

.featured-image img,
.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  background:
    radial-gradient(circle at 18% 22%, var(--orange) 0 5%, transparent 5.4%),
    radial-gradient(circle at 24% 22%, var(--orange) 0 5%, transparent 5.4%),
    radial-gradient(circle at 18% 31%, var(--orange) 0 5%, transparent 5.4%),
    linear-gradient(135deg, var(--panel-blue), var(--panel));
}

.image-placeholder.large {
  min-height: 360px;
}

.silo-grid,
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.silo-card {
  display: block;
  min-height: 170px;
  padding: 1.35rem;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--border);
  transition: transform 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}

.silo-card:hover,
.silo-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(9, 37, 34, 0.1);
  background: #fffaf3;
}

.silo-icon {
  display: inline-grid;
  place-items: center;
  min-width: 48px;
  height: 38px;
  padding: 0 0.65rem;
  margin-bottom: 1.1rem;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}

.silo-card span,
.article-card h2 {
  font-family: var(--font-heading);
  font-weight: 700;
}

.audience-section {
  padding: 1rem 0 clamp(4rem, 7vw, 6rem);
}

.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.audience-panel {
  min-height: 270px;
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 80% 20%, var(--orange) 0 9%, transparent 9.5%),
    var(--panel-warm);
}

.audience-panel.dark {
  background:
    radial-gradient(circle at 82% 18%, var(--panel-blue) 0 11%, transparent 11.5%),
    var(--green);
  color: var(--white);
}

.audience-panel h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1;
}

.audience-panel p:not(.eyebrow) {
  max-width: 440px;
  color: var(--muted);
  line-height: 1.6;
}

.audience-panel.dark p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.76);
}

.silo-card p {
  color: var(--muted);
}

.article-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.article-card-image {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--panel);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.article-card:hover .article-card-image {
  transform: translateY(-4px);
  box-shadow: 0 18px 46px rgba(9, 37, 34, 0.11);
}

.article-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.76rem;
}

.article-card-meta span {
  color: var(--orange);
  background: #ffe8d8;
  border-radius: 999px;
  padding: 0.22rem 0.45rem;
}

.article-card h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.08;
}

.article-card p {
  margin: 0;
}

.article-card-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.86rem;
  margin-top: auto;
}

.archive-hero {
  padding: clamp(4rem, 8vw, 6rem) 0 2rem;
  background: var(--panel);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 2rem;
  padding: 0.45rem;
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  background: var(--green);
}

.filter-pill {
  border-radius: 999px;
  color: var(--white);
  padding: 0.65rem 1rem;
  font-size: 0.86rem;
}

.filter-pill:hover,
.filter-pill:focus-visible {
  background: var(--white);
  color: var(--green);
}

.single-article {
  padding: 4rem 0 0;
}

.single-header {
  width: min(100% - 2rem, 980px);
  margin-inline: auto;
  text-align: center;
  display: grid;
  justify-items: center;
}

.single-meta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  color: var(--muted);
  margin-bottom: 1rem;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  flex-wrap: wrap;
  text-align: center;
}

.single-excerpt {
  max-width: 720px;
  margin: 1.3rem auto 0;
  font-size: 1.1rem;
}

.single-featured-image {
  width: min(100% - 2rem, 980px);
  margin: 2.5rem auto;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.single-layout {
  width: min(100% - 2rem, 1040px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 260px minmax(0, 720px);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.article-sidebar {
  color: var(--muted);
  font-size: 0.86rem;
}

.sticky-guide-card {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 18px 50px rgba(9, 37, 34, 0.08);
}

.sticky-guide-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 14px;
}

.sticky-guide-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1.1;
}

.sticky-guide-card p {
  margin: 0;
}

.read-time {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  background: var(--panel);
  color: var(--green);
  font-weight: 700;
}

.article-content {
  font-size: 1.06rem;
  line-height: 1.78;
}

.article-content h2,
.article-content h3 {
  margin-top: 2.1rem;
  line-height: 1.18;
}

.article-content a {
  color: var(--green-2);
  text-decoration: underline;
}

.article-footer {
  width: min(100% - 2rem, 840px);
  margin: 3rem auto 5rem;
}

.author-box,
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.author-box {
  justify-content: flex-start;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.author-box img {
  border-radius: 50%;
}

.author-box h2 {
  margin: 0;
  font-size: 1rem;
}

.post-nav {
  margin-top: 2rem;
}

.post-nav > div {
  width: 48%;
  min-height: 120px;
  padding: 1.2rem;
  border-radius: var(--radius-md);
  background: var(--panel-blue);
  font-family: var(--font-heading);
  font-weight: 700;
}

.post-nav > div:nth-child(2) {
  background: var(--panel-warm);
  text-align: right;
}

.wide-cta {
  background:
    radial-gradient(circle at 82% 20%, rgba(255, 100, 34, 0.24), transparent 18%),
    var(--green);
  color: var(--white);
  padding: 3.2rem 0;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.about-hero {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--panel);
}

.about-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: end;
}

.about-hero h1 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 5.2rem);
  line-height: 0.98;
}

.about-hero p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.65;
}

.about-story {
  padding: clamp(4rem, 7vw, 6rem) 0;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) 1fr;
  gap: 4rem;
  align-items: center;
}

.story-visual {
  position: relative;
  min-height: 420px;
  border-radius: var(--radius-lg);
  background: var(--panel-blue);
  overflow: hidden;
}

.story-card {
  position: absolute;
  left: 18%;
  top: 26%;
  width: 52%;
  height: 34%;
  border-radius: 20px;
  background: var(--white);
  border: 3px solid var(--green);
}

.story-card.small {
  left: 45%;
  top: 48%;
  width: 32%;
  height: 26%;
  background: var(--panel-warm);
}

.story-path {
  position: absolute;
  inset: 16%;
  border: 3px solid var(--orange);
  border-left: 0;
  border-radius: 50%;
  transform: rotate(-18deg);
}

.story-grid h2,
.tab-slides__intro h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 1.04;
}

.story-grid p {
  color: var(--muted);
  line-height: 1.7;
}

.check-list {
  display: grid;
  gap: 0.8rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 2rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 5px #ffe2d2;
}

.stats-strip {
  padding: 3rem 0;
  background: var(--green);
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: center;
}

.stats-grid strong {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1;
  color: var(--orange);
}

.stats-grid span {
  color: rgba(255, 255, 255, 0.78);
}

.ai-slides-section {
  padding: clamp(4rem, 7vw, 6rem) 0;
}

.tab-slides__intro {
  max-width: 760px;
  margin: 0 auto 2rem;
  text-align: center;
}

.security-slider {
  position: relative;
  max-width: 900px;
  min-height: 330px;
  margin: 0 auto;
}

.security-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: var(--radius-lg);
  background: var(--orange);
  color: var(--white);
  opacity: 0;
  transform: translateX(32px) scale(0.98);
  pointer-events: none;
  transition: opacity 360ms ease, transform 360ms ease;
}

.security-slide:nth-child(2) {
  background: var(--green);
}

.security-slide:nth-child(3) {
  background: var(--panel-warm);
  color: var(--ink);
}

.security-slide.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.slide-number {
  position: absolute;
  right: 1.2rem;
  top: 1.2rem;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-family: var(--font-heading);
  font-weight: 800;
}

.security-slide h3 {
  max-width: 640px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.security-slide p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.security-slide:nth-child(3) p {
  color: var(--muted);
}

.slider-controls {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.slider-controls button {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--green);
  font-family: var(--font-heading);
  cursor: pointer;
}

.slider-controls button.is-active {
  background: var(--green);
  color: var(--white);
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 640ms ease, transform 640ms ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatSoft {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes drawLoop {
  0%,
  100% {
    clip-path: inset(0 0 0 0);
  }

  50% {
    clip-path: inset(0 8% 0 0);
  }
}

.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
}

.cta-copy {
  max-width: 720px;
}

.cta-guide-preview {
  display: grid;
  grid-template-columns: 92px auto;
  gap: 1rem;
  align-items: center;
}

.cta-guide-preview img {
  width: 92px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

.button-nowrap {
  white-space: nowrap;
  min-width: max-content;
}

.guide-modal-open {
  overflow: hidden;
}

.guide-modal[hidden] {
  display: none;
}

.guide-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.guide-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 37, 34, 0.58);
  backdrop-filter: blur(8px);
}

.guide-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  padding: clamp(1.5rem, 4vw, 2.4rem);
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
}

.guide-modal__panel h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.guide-modal__panel p {
  color: var(--muted);
  line-height: 1.6;
}

.guide-modal__close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font-size: 1.45rem;
  cursor: pointer;
}

.guide-form {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.4rem;
}

.guide-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--green);
  font-weight: 700;
}

.guide-form input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  padding: 0.95rem 1rem;
  font: inherit;
  color: var(--ink);
}

.site-footer {
  padding: 4rem 0 1.5rem;
}

.footer-inner {
  width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 3rem;
}

.footer-brand p,
.footer-column a,
.footer-bottom {
  color: var(--muted);
}

.footer-column {
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.footer-column h2 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
}

.footer-bottom {
  width: var(--container);
  margin: 3rem auto 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--green);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
}

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-content {
  padding: 4rem 0;
}

.page-header h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
}

.guide-landing {
  padding: clamp(4rem, 8vw, 7.5rem) 0;
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 100, 34, 0.22), transparent 18%),
    radial-gradient(circle at 12% 16%, rgba(196, 216, 245, 0.88), transparent 20%),
    linear-gradient(180deg, var(--panel) 0%, var(--bg) 100%);
  overflow: hidden;
}

.guide-landing__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.guide-landing h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(3.4rem, 8vw, 6.8rem);
  line-height: 0.95;
}

.guide-kicker {
  margin: 1rem 0 0;
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 3vw, 2.3rem);
  font-weight: 700;
  color: var(--green);
  line-height: 1.12;
}

.guide-subtitle {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.65;
}

.guide-highlights {
  display: grid;
  gap: 0.7rem;
  margin: 1.5rem 0 2rem;
  padding: 0;
  list-style: none;
}

.guide-highlights li {
  position: relative;
  padding-left: 1.7rem;
}

.guide-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42rem;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--orange);
}

.guide-form--landing {
  max-width: 520px;
  padding: 1.25rem;
  border-radius: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(9, 37, 34, 0.1);
}

.guide-form--landing h2 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
}

.guide-landing__cover {
  margin: 0;
  position: relative;
}

.guide-landing__cover::before {
  content: "";
  position: absolute;
  inset: 8% -10% -8% 14%;
  border-radius: 34px;
  background: var(--orange);
  transform: rotate(5deg);
  opacity: 0.85;
}

.guide-landing__cover img {
  position: relative;
  width: 100%;
  border-radius: 22px;
  box-shadow: 0 34px 90px rgba(9, 37, 34, 0.26);
  transform: rotate(-2deg);
}

.guide-proof {
  padding: clamp(4rem, 7vw, 6rem) 0;
  background: var(--green);
  color: var(--white);
}

.guide-proof__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.guide-proof h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
}

.proof-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.proof-cards article {
  min-height: 240px;
  padding: 1.2rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.proof-cards span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--orange);
  font-family: var(--font-heading);
  font-weight: 800;
}

.proof-cards h3 {
  margin: 1.2rem 0 0.6rem;
  font-size: 1.25rem;
  line-height: 1.12;
}

.proof-cards p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.55;
}

.guide-toc {
  padding: clamp(4rem, 7vw, 6rem) 0;
}

.toc-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.toc-grid span {
  min-height: 116px;
  padding: 1rem;
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 86% 18%, rgba(255, 100, 34, 0.18), transparent 20%),
    var(--white);
  border: 1px solid var(--border);
  font-family: var(--font-heading);
  font-weight: 700;
}

.navigation.pagination {
  margin-top: 3rem;
  font-family: var(--font-heading);
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: auto auto auto;
  }

  .menu-toggle {
    display: inline-grid;
    justify-self: end;
    gap: 4px;
    border: 0;
    background: transparent;
    padding: 0.4rem;
  }

  .menu-toggle span:not(.screen-reader-text) {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--green);
  }

  .primary-nav {
    position: fixed;
    inset: 76px 0 auto 0;
    display: none;
    background: var(--bg);
    padding: 2rem;
    border-bottom: 1px solid var(--border);
  }

  .primary-nav.is-open {
    display: block;
  }

  .menu {
    flex-direction: column;
    align-items: flex-start;
    font-size: 1.2rem;
  }

  .hero-grid,
  .trust-grid,
  .featured-card,
  .audience-grid,
  .about-hero-grid,
  .story-grid,
  .guide-proof__grid,
  .guide-landing__grid,
  .cta-inner,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .silo-grid,
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .single-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    order: 2;
  }

  .sticky-guide-card {
    position: static;
    grid-template-columns: 110px minmax(0, 1fr);
    align-items: center;
  }

  .sticky-guide-card .read-time,
  .sticky-guide-card .eyebrow,
  .sticky-guide-card button {
    grid-column: 1 / -1;
  }

  .toc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof-cards {
    grid-template-columns: 1fr;
  }

  .story-visual {
    min-height: 320px;
  }
}

@media (max-width: 640px) {
  :root {
    --container: min(100% - 1rem, 100%);
  }

  .header-cta {
    display: none;
  }

  .hero-illustration {
    min-height: 280px;
  }

  .hero-browser {
    width: 58%;
    left: 8%;
  }

  .hero-lock {
    right: 9%;
    width: 86px;
    height: 76px;
  }

  .silo-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .filter-pills {
    border-radius: var(--radius-md);
  }

  .filter-pill {
    padding: 0.55rem 0.75rem;
  }

  .single-header,
  .single-featured-image,
  .single-layout,
  .article-footer {
    width: calc(100% - 1rem);
  }

  .post-nav,
  .footer-bottom {
    flex-direction: column;
  }

  .post-nav > div {
    width: 100%;
  }

  .cta-guide-preview {
    grid-template-columns: 74px minmax(0, 1fr);
  }

  .button-nowrap {
    width: 100%;
  }

  .toc-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .security-slider {
    min-height: 390px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0ms !important;
  }

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }
}

/* v0.5 live polish */
.button,
.header-cta {
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  background: var(--green);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(9, 37, 34, 0.18);
}

.button-secondary:hover,
.button-secondary:focus-visible,
.header-cta:hover,
.header-cta:focus-visible {
  background: var(--orange);
  color: var(--white);
}

.button-light:hover,
.button-light:focus-visible {
  background: var(--orange);
  color: var(--white);
}

.archive-hero .section-inner,
.archive-hero h1,
.archive-description {
  text-align: left;
  margin-left: auto;
  margin-right: auto;
}

.archive-hero h1 {
  margin-left: 0;
}

.archive-hero .filter-pills {
  margin-left: 0;
}

.article-card-image {
  height: 220px;
}

.article-card-image img {
  height: 100%;
  object-fit: cover;
}

.article-card h2 a {
  transition: color 180ms ease, text-decoration-color 180ms ease;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.16em;
}

.article-card h2 a:hover,
.article-card h2 a:focus-visible {
  color: var(--orange);
  text-decoration-color: currentColor;
}

.article-card-footer a {
  font-weight: 700;
  color: var(--green);
}

.article-card-footer a:hover,
.article-card-footer a:focus-visible {
  color: var(--orange);
}

.wide-cta {
  overflow: visible;
  margin-top: 5rem;
  padding: 4.4rem 0 3.8rem;
}

.cta-inner {
  min-height: 330px;
}

.cta-copy h2 {
  max-width: 720px;
}

.cta-guide-preview {
  position: relative;
  min-width: 430px;
  align-self: stretch;
}

.cta-guide-preview img {
  position: absolute;
  right: 7rem;
  top: -7.6rem;
  width: min(320px, 33vw);
  aspect-ratio: 4 / 5;
  border-radius: 18px;
}

.cta-guide-preview .button {
  position: absolute;
  right: 0;
  top: 42%;
  z-index: 2;
  padding-inline: 1.25rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.audience-panel {
  color: inherit;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    filter 220ms ease;
}

.audience-panel:hover,
.audience-panel:focus-visible {
  transform: translateY(-7px);
  box-shadow: 0 24px 70px rgba(9, 37, 34, 0.14);
}

.silo-card {
  position: relative;
  overflow: hidden;
  padding: 1.45rem;
}

.silo-card::after {
  content: "";
  position: absolute;
  right: -32px;
  top: -32px;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  background: rgba(255, 100, 34, 0.13);
}

.silo-icon {
  min-width: 54px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 24px rgba(9, 37, 34, 0.16);
}

.silo-card span:not(.silo-icon) {
  display: block;
  position: relative;
  z-index: 1;
  font-size: 1.2rem;
  line-height: 1.1;
}

.silo-card p {
  position: relative;
  z-index: 1;
}

.toc-grid span {
  position: relative;
  padding-top: 3.7rem;
}

.toc-grid span::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background:
    linear-gradient(135deg, var(--orange) 0 45%, transparent 46%),
    var(--green);
  box-shadow: 0 10px 22px rgba(9, 37, 34, 0.12);
}

.article-sidebar {
  align-self: start;
}

.sticky-guide-card {
  z-index: 2;
}

.contact-hero,
.not-found-page {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background:
    radial-gradient(circle at 80% 16%, rgba(255, 100, 34, 0.16), transparent 18%),
    linear-gradient(180deg, var(--panel), var(--bg));
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.75fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-grid h1,
.not-found-card h1 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 0.96;
}

.contact-grid p,
.not-found-card p {
  color: var(--muted);
  line-height: 1.65;
}

.contact-note,
.contact-form,
.not-found-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 22px 70px rgba(9, 37, 34, 0.1);
}

.contact-note {
  display: grid;
  gap: 0.2rem;
  width: fit-content;
  margin-top: 1.5rem;
  padding: 1rem 1.2rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: clamp(1.3rem, 3vw, 2rem);
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--green);
  font-weight: 700;
}

.contact-form input,
.contact-form textarea,
.search-form-large input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg);
  padding: 0.95rem 1rem;
  font: inherit;
  color: var(--ink);
}

.contact-form textarea {
  resize: vertical;
}

.form-success {
  margin: 0;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  background: var(--panel);
  color: var(--green);
  font-weight: 700;
}

.not-found-card {
  max-width: 820px;
  padding: clamp(1.5rem, 5vw, 3rem);
}

.search-form-large {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  margin: 1.5rem 0 1rem;
}

.built-by {
  color: var(--green);
  font-weight: 700;
}

.built-by:hover,
.built-by:focus-visible {
  color: var(--orange);
}

@media (max-width: 980px) {
  .cta-guide-preview {
    min-width: 0;
    min-height: 360px;
  }

  .cta-guide-preview img {
    left: 0;
    right: auto;
    width: min(260px, 58vw);
  }

  .cta-guide-preview .button {
    left: min(180px, 38vw);
    right: auto;
    top: 44%;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .article-card-image {
    height: 210px;
  }

  .wide-cta {
    margin-top: 2.5rem;
  }

  .cta-inner {
    min-height: auto;
  }

  .cta-guide-preview {
    min-height: 330px;
  }

  .cta-guide-preview img {
    top: 0;
    width: min(230px, 70vw);
  }

  .cta-guide-preview .button {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
  }

  .search-form-large {
    grid-template-columns: 1fr;
  }
}

