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

:root {
  --blue: #1a5ca8;
  --blue-dark: #0f3d72;
  --blue-light: #e8f0fb;
  --blue-mid: #8ab0e0;
  --text: #0d1f3c;
  --text-muted: #3a5070;
  --text-hint: #596e89;
  --bg: #fdfcfa;
  --bg-card: #ffffff;
  --border: rgba(26, 92, 168, 0.1);
  --radius: 16px;
  --radius-sm: 10px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* NAV */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  position: sticky;
  top: 0;
  background: rgba(253, 252, 248, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.logo {
  font-size: clamp(1.5rem, 6vw, 2.4rem);
  font-weight: 700;
  font-family: 'Fondamento', cursive;
  color: var(--blue-dark);
  display: flex;
  align-items: center;
  gap: 0.16rem;
  text-decoration: none;
  letter-spacing: 0.01em;
  line-height: 1;
}

.logo-icon {
  width: 58px;
  height: 58px;
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  align-self: center;
  margin-bottom: 6px;
}

.logo-icon svg {
  width: 40px;
  height: 40px;
}

nav a.cta-nav {
  background: var(--blue);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.2s;
  text-align: center;
}

nav a.cta-nav:hover {
  background: var(--blue-dark);
}

@media (max-width: 699px) {
  nav a.cta-nav {
    display: none;
  }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

.nav-menu {
  position: relative;
}

.nav-menu-toggle {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--blue-dark);
  transition: background 0.2s;
}

.nav-menu-toggle::-webkit-details-marker {
  display: none;
}

.nav-menu-toggle:hover,
.nav-menu[open] .nav-menu-toggle {
  background: var(--blue-light);
}

.nav-menu-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 1.25rem;
  height: 1rem;
}

.nav-menu-icon span {
  display: block;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-menu[open] .nav-menu-icon span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-menu[open] .nav-menu-icon span:nth-child(2) {
  opacity: 0;
}

.nav-menu[open] .nav-menu-icon span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-menu-panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 10rem;
  margin: 0;
  padding: 0.5rem 0;
  list-style: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(15, 61, 114, 0.12);
}

.nav-menu-panel a {
  display: block;
  padding: 0.625rem 1.25rem;
  color: var(--blue-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

.nav-menu-panel a:hover {
  background: var(--blue-light);
}

/* HERO */
.hero {
  max-width: 760px;
  margin: 0 auto;
  padding: 5rem 2rem 4rem;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue-dark);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: 'Lora', serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--blue-dark);
  margin-bottom: 1.25rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--blue);
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--blue);
  color: white;
  font-family: 'Nunito', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 20px rgba(26, 92, 168, 0.2);
}

.hero-cta:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
}

.hero .hero-cta {
  margin-bottom: 2rem;
}

.hero-cta svg,
.hero-cta-icon svg {
  width: 28px;
  height: 28px;
  fill: white;
}

.hero-sub {
  margin-top: 3.5rem;
  font-size: 0.85rem;
  color: var(--text-hint);
}

/* PROBLEM */
.problem {
  background: #e8f2fb;
  padding: 4rem 2rem;
}

.problem-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.problem-inner p {
  font-family: 'Lora', serif;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  line-height: 1.75;
  color: var(--text);
}

.problem-inner p+p {
  margin-top: 1.25rem;
}

.highlight {
  color: #e05555;
  font-weight: 600;
}

/* HOW IT WORKS */
.section {
  max-width: 900px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section h2 {
  text-align: center;
  font-family: 'Lora', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 600;
  color: var(--blue-dark);
  margin-bottom: 3rem;
}

.steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
  width: calc(33.333% - 1rem);
  min-width: 260px;
}

.step-num {
  width: 44px;
  height: 44px;
  background: var(--blue-light);
  color: var(--blue-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 auto 1rem;
}

.step h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--blue-dark);
}

.step p {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.steps-footnote {
  text-align: center;
  margin-top: 2rem;
  font-size: 1.1rem;
  color: var(--text-hint);
}

/* FEATURES */
.features-bg {
  background: var(--blue-light);
  padding: 5rem 2rem;
}

.features-inner {
  max-width: 860px;
  margin: 0 auto;
}

.features-inner h2 {
  text-align: center;
  font-family: 'Lora', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 600;
  color: var(--blue-dark);
  margin-bottom: 0.75rem;
}

.features-intro {
  text-align: center;
  margin-bottom: 2.5rem;
}

.features-intro p {
  font-size: 1.05rem;
  color: var(--blue-dark);
  max-width: 560px;
  margin: 0 auto;
}

.feature-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.feature-group {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid rgba(26, 92, 168, 0.1);
}

.feature-group-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(26, 92, 168, 0.1);
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feature-list li {
  font-size: 0.9rem;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.feature-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  border: 1px solid rgba(26, 92, 168, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
  width: calc(33.333% - 0.75rem);
  min-width: 160px;
}

.feature-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.feature-icon svg {
  width: 64px;
  height: 64px;
}

.feature-card-title {
  font-size: 1.0rem;
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1.35;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

@media (max-width: 600px) {
  .feature-card {
    width: calc(50% - 0.5rem);
  }
}

@media (max-width: 380px) {
  .feature-card {
    width: 100%;
  }
}

/* CTA FOOTER */
.cta-section {
  padding: 5rem 2rem;
  text-align: center;
}

.cta-section h2 {
  font-family: 'Lora', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  color: var(--blue-dark);
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.82rem;
  color: var(--text-hint);
  border-top: 1px solid var(--border);
}

footer a {
  color: inherit;
}

/* POST / BLOG */
.post {
  max-width: 760px;
  margin: 0 auto;
  padding: 4rem 2rem 2rem;
}

.post + .cta-section {
  padding-top: 2.5rem;
}

.post-header {
  margin-bottom: 1.5rem;
}

.post-header h1 {
  font-family: 'Lora', serif;
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 600;
  color: var(--blue-dark);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.post-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.post-byline {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.post-byline a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.post-byline a:hover {
  color: var(--blue);
}

.post-content {
  font-size: 1.25rem;
  line-height: 1.75;
  color: var(--text);
}

.post-content p + p {
  margin-top: 1.25rem;
}

.post-content em {
  font-style: italic;
}

.post-content a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.post-content a:hover {
  color: var(--blue-dark);
}

.post-inline-logo {
  display: inline-block;
  vertical-align: -0.15em;
  line-height: 0;
}

.post-inline-logo img {
  width: 1.15em;
  height: 1.15em;
}

.author-bio {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-top: 3rem;
  padding: 1.5rem;
  background: var(--blue-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  scroll-margin-top: calc(2.5rem + 64px + 1rem);
}

.author-bio-photo {
  flex-shrink: 0;
  width: clamp(96px, 28vw, 200px);
  height: clamp(96px, 28vw, 200px);
  border-radius: 12px;
  background: white;
  border: 1px solid var(--border);
  overflow: hidden;
}

.author-bio-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-bio-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--blue-dark);
  margin-bottom: 0.15rem;
}

.author-bio-title {
  font-size: 0.9rem;
  color: var(--text-hint);
  margin-bottom: 0.75rem;
}

.author-bio-body {
  font-size: 1.14rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.author-bio-body a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  font-weight: 600;
}

.author-bio-body a:hover {
  color: var(--blue);
}

.author-bio-back {
  margin-top: 1rem;
  margin-bottom: 0;
  font-size: 0.9rem;
  text-align: right;
}

.author-bio-back-link {
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  cursor: pointer;
  color: var(--text-hint);
  text-decoration: none;
  font-weight: 600;
}

.author-bio-back-link:hover {
  color: var(--blue-dark);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

@media (max-width: 640px) {
  .author-bio {
    display: block;
  }

  .author-bio-photo {
    float: left;
    width: clamp(72px, 28vw, 120px);
    height: clamp(72px, 28vw, 120px);
    margin: 0 1rem 0.75rem 0;
  }

  .author-bio-text {
    display: contents;
  }

  .author-bio-back {
    clear: both;
  }
}
