@charset "UTF-8";
/* =========================================================================
   דתינפו — Landing Page Styles
   Matches app design tokens (frontend/src/theme.js)
   ========================================================================= */

:root {
  /* Brand — from Figma tokens */
  --brand-blue: #0579B6;
  --brand-navy: #201F5B;
  --brand-cyan-top: #0BB4D7;
  --brand-cyan-mid: #0579B6;
  --brand-light-cyan: #A5DEF3;
  --brand-lightest-cyan: #C5E8F5;
  --accent-coral: #F4816C;

  /* Cyan scale */
  --cyan-900: #136163;
  --cyan-800: #18848e;
  --cyan-700: #1a98a6;
  --cyan-600: #1dadc0;
  --cyan-500: #1fbdd2;
  --cyan-300: #53d1df;
  --cyan-100: #b3ecf1;
  --cyan-50:  #e4f9fb;

  /* Surface */
  --surface: #FFFFFF;
  --bg: #F2F9FB;
  --text-primary: #0D1B2A;
  --text-secondary: #64748B;
  --border: rgba(19, 97, 99, 0.1);

  /* Gradients */
  --hero-gradient: linear-gradient(180deg, #0BB4D7 0%, #0579B6 100%);
  --button-gradient: linear-gradient(135deg, #18848e, #1dadc0);
  --button-gradient-hover: linear-gradient(135deg, #136163, #1a98a6);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(19, 97, 99, 0.08), 0 1px 2px rgba(19, 97, 99, 0.04);
  --shadow-md: 0 10px 15px rgba(19, 97, 99, 0.08), 0 4px 6px rgba(19, 97, 99, 0.04);
  --shadow-lg: 0 25px 50px rgba(19, 97, 99, 0.15);

  /* Typography */
  --font-heading: "Heebo", "Arial", sans-serif;
  --font-body: "Varela Round", "Heebo", sans-serif;
}

/* =========================================================================
   Reset & base
   ========================================================================= */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--brand-blue);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover,
a:focus {
  color: var(--brand-navy);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--brand-navy);
  line-height: 1.2;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

:focus-visible {
  outline: 3px solid var(--brand-cyan-top);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  top: -40px;
  right: 12px;
  background: var(--brand-navy);
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  z-index: 1000;
}
.skip-link:focus {
  top: 12px;
  color: #fff;
}

/* =========================================================================
   Layout
   ========================================================================= */

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================================================
   Header
   ========================================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-navy);
}
.logo:hover,
.logo:focus {
  color: var(--brand-blue);
}
.logo img {
  width: 42px;
  height: 42px;
}
.logo-text {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: -0.3px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
}
.site-nav a:hover,
.site-nav a:focus {
  color: var(--brand-blue);
}
.site-nav .nav-app {
  /* Secondary "log in" button — outlined so it defers to the primary CTA */
  border: 1.5px solid var(--brand-blue);
  color: var(--brand-blue) !important;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.15s, color 0.15s;
}
.site-nav .nav-app:hover,
.site-nav .nav-app:focus {
  background: var(--brand-blue);
  color: #fff !important;
}
.site-nav .nav-cta {
  background: var(--button-gradient);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 100px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(7, 73, 90, 0.25);
  transition: transform 0.15s, box-shadow 0.15s;
}
.site-nav .nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(7, 73, 90, 0.35);
}

@media (max-width: 780px) {
  /* Keep both action buttons (log in + contact) on mobile; hide section links. */
  .site-nav a:not(.nav-cta):not(.nav-app) {
    display: none;
  }
  .site-nav {
    gap: 8px;
    flex-wrap: nowrap;       /* never let the two buttons drop to a second row */
  }
  .site-nav .nav-app {
    padding: 6px 12px;
    font-size: 0.82rem;
  }
  .site-nav .nav-cta {
    padding: 7px 14px;       /* shrink the primary button too so they balance */
    font-size: 0.88rem;
    box-shadow: 0 3px 10px rgba(7, 73, 90, 0.22);
  }
}

/* Phone widths — there isn't enough room for the "דתינפו" wordmark next to two
   buttons, so drop it and keep just the icon. The buttons stay full-text. */
@media (max-width: 480px) {
  .logo-text { display: none; }
  .logo img { width: 36px; height: 36px; }
  .header-inner { gap: 10px; height: 64px; }
  .site-nav { gap: 6px; }
  .site-nav .nav-app {
    padding: 6px 10px;
    font-size: 0.78rem;
  }
  .site-nav .nav-cta {
    padding: 6px 12px;
    font-size: 0.82rem;
  }
}

/* =========================================================================
   Buttons
   ========================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 100px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.2s;
  cursor: pointer;
  line-height: 1;
}

.btn-primary {
  background: var(--button-gradient);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(7, 73, 90, 0.35);
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--button-gradient-hover);
  box-shadow: 0 6px 20px rgba(7, 73, 90, 0.45);
  transform: translateY(-1px);
  color: #fff !important;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.2);
  color: #fff !important;
  border: 2px solid rgba(255, 255, 255, 0.5);
}
.btn-ghost:hover,
.btn-ghost:focus {
  background: rgba(255, 255, 255, 0.35);
  border-color: #fff;
  color: #fff !important;
}

.btn-block {
  width: 100%;
}

/* =========================================================================
   Hero
   ========================================================================= */

.hero {
  position: relative;
  background: var(--hero-gradient);
  color: #fff;
  overflow: hidden;
  padding: 80px 0 100px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.12), transparent 40%),
                    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08), transparent 50%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  align-items: center;
}

.hero-content .eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.3rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
}

.hero-lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 36px;
  max-width: 580px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.95rem;
}
.hero-points li {
  position: relative;
  padding-right: 22px;
}
.hero-points li::before {
  content: "\2713";
  position: absolute;
  right: 0;
  color: var(--brand-light-cyan);
  font-weight: 900;
  font-size: 1.1rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.phone-frame {
  width: 280px;
  height: 280px;
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 30px 80px rgba(32, 31, 91, 0.4);
}
.phone-frame img {
  width: 220px;
  height: 220px;
  border-radius: 24px;
}

@media (max-width: 820px) {
  .hero {
    padding: 56px 0 72px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-lead {
    margin-inline: auto;
  }
  .hero-ctas {
    justify-content: center;
  }
  .hero-points {
    justify-content: center;
  }
}

/* Phone-sized hero CTAs — stack to a column and force equal width so the two
   buttons line up regardless of label length. Capped at 320px so they don't
   look ridiculous on the borderline tablet width. */
@media (max-width: 600px) {
  .hero-ctas {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin-inline: auto;
    gap: 12px;
  }
  .hero-ctas .btn {
    width: 100%;
    padding: 13px 24px;
    font-size: 0.95rem;
  }
  .phone-frame {
    width: 220px;
    height: 220px;
  }
  .phone-frame img {
    width: 160px;
    height: 160px;
  }
}

/* =========================================================================
   Sections (shared)
   ========================================================================= */

section {
  padding: 80px 0;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.eyebrow {
  display: inline-block;
  color: var(--brand-blue);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.section-lead {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* =========================================================================
   Features grid
   ========================================================================= */

.features {
  background: #fff;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-light-cyan);
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--cyan-50), var(--brand-light-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* =========================================================================
   Audience
   ========================================================================= */

.audience {
  background: var(--bg);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.audience-card {
  position: relative;
  background: #fff;
  border-radius: 24px;
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.audience-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.audience-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--accent-coral);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.3px;
}

.audience-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--brand-navy);
}

.audience-card > p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 1rem;
}

.audience-card ul {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.audience-card ul li {
  position: relative;
  padding-right: 26px;
  padding-bottom: 10px;
  color: var(--text-primary);
  font-weight: 500;
}
.audience-card ul li::before {
  content: "\2713";
  position: absolute;
  right: 0;
  color: var(--brand-cyan-top);
  font-weight: 900;
}

/* =========================================================================
   How it works (steps)
   ========================================================================= */

.how {
  background: #fff;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  counter-reset: step;
  list-style: none;
}

.step {
  position: relative;
  background: linear-gradient(135deg, var(--cyan-50), #fff);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 28px 28px;
  text-align: center;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--button-gradient);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 18px;
  box-shadow: 0 6px 20px rgba(7, 73, 90, 0.25);
}

.step h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.step p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* =========================================================================
   FAQ
   ========================================================================= */

.faq {
  background: var(--bg);
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.faq-item[open] {
  box-shadow: var(--shadow-sm);
  border-color: var(--brand-light-cyan);
}
.faq-item summary {
  cursor: pointer;
  padding: 20px 24px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--brand-navy);
  list-style: none;
  position: relative;
  padding-left: 54px;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  background: var(--cyan-50);
  border-radius: 50%;
  color: var(--brand-blue);
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background 0.2s;
}
.faq-item[open] summary::after {
  content: "\2212";
  background: var(--brand-light-cyan);
  color: var(--brand-navy);
}

.faq-item p {
  padding: 0 24px 22px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* =========================================================================
   Contact
   ========================================================================= */

.contact {
  background: linear-gradient(180deg, #fff 0%, var(--cyan-50) 100%);
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
  background: #fff;
  border-radius: 28px;
  padding: 48px;
  box-shadow: var(--shadow-lg);
}

.contact-intro .eyebrow {
  display: inline-block;
}

.contact-intro h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.contact-intro p {
  color: var(--text-secondary);
  margin-bottom: 28px;
  font-size: 1rem;
}

.contact-meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 1px solid var(--border);
  padding-top: 22px;
}
.contact-meta li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-meta strong {
  color: var(--brand-navy);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.contact-meta a,
.contact-meta span {
  color: var(--text-primary);
  font-size: 1.05rem;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field-full {
  grid-column: 1 / -1;
}

.field label {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--brand-navy);
  font-size: 0.9rem;
}
.field label span {
  color: var(--accent-coral);
}

.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--text-primary);
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand-cyan-top);
  box-shadow: 0 0 0 4px rgba(11, 180, 215, 0.15);
}
.field input:invalid:not(:placeholder-shown),
.field textarea:invalid:not(:placeholder-shown) {
  border-color: var(--accent-coral);
}

.field textarea {
  resize: vertical;
  min-height: 100px;
  font-family: var(--font-body);
}

.honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.form-note {
  color: var(--text-secondary);
  font-size: 0.8rem;
  text-align: center;
}

.form-status {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding: 0;
  font-weight: 600;
  font-size: 0.95rem;
  min-height: 24px;
}
.form-status.success {
  color: #0b7f52;
  background: #d9f5e9;
  padding: 12px 16px;
  border-radius: 12px;
}
.form-status.error {
  color: #a02222;
  background: #fbe2e2;
  padding: 12px 16px;
  border-radius: 12px;
}

@media (max-width: 860px) {
  .contact-wrap {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 36px;
  }
  .contact-form {
    grid-template-columns: 1fr;
  }
  .field-full {
    grid-column: 1;
  }
}

/* =========================================================================
   Footer
   ========================================================================= */

.site-footer {
  background: var(--brand-navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 48px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-name {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.1rem;
  color: #fff;
}
.footer-tag {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-nav {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.footer-nav a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 500;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: var(--brand-light-cyan);
}

.footer-legal {
  font-size: 0.85rem;
  text-align: left;
  color: rgba(255, 255, 255, 0.65);
}
.footer-company {
  margin-top: 4px;
  font-size: 0.78rem;
  opacity: 0.7;
}

@media (max-width: 820px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-brand {
    justify-content: center;
  }
  .footer-legal {
    text-align: center;
  }
}

/* =========================================================================
   Container narrow (blog articles)
   ========================================================================= */

.container-narrow {
  max-width: 760px;
}

/* =========================================================================
   Breadcrumbs
   ========================================================================= */

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.breadcrumbs a {
  color: var(--text-secondary);
  font-weight: 500;
}
.breadcrumbs a:hover,
.breadcrumbs a:focus {
  color: var(--brand-blue);
}
.breadcrumbs span[aria-hidden] {
  color: var(--text-secondary);
  opacity: 0.6;
}
.breadcrumbs span[aria-current] {
  color: var(--brand-navy);
  font-weight: 600;
}

/* =========================================================================
   Blog hero / listing
   ========================================================================= */

.blog-hero {
  background: linear-gradient(135deg, var(--cyan-50), #fff);
  padding: 48px 0 32px;
}

.blog-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  margin-bottom: 14px;
}

.blog-hero-lead {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 760px;
}

.blog-list-section {
  padding: 56px 0 80px;
  background: #fff;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.blog-card {
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-light-cyan);
}

.blog-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.blog-card-cover {
  background: linear-gradient(135deg, var(--brand-cyan-top), var(--brand-blue));
  padding: 36px 28px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 160px;
}
.blog-card-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.2), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1), transparent 50%);
}
.blog-card-emoji {
  position: relative;
  font-size: 3.2rem;
}
.blog-card-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.blog-card-body {
  padding: 24px 28px 28px;
}
.blog-card-body time {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
}
.blog-card-body h2 {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 8px 0 12px;
  line-height: 1.35;
}
.blog-card-body p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 16px;
  line-height: 1.6;
}
.blog-card-read {
  color: var(--brand-blue);
  font-weight: 700;
  font-size: 0.92rem;
}

.blog-cta {
  text-align: center;
  padding: 64px 0 80px;
  background: linear-gradient(180deg, #fff 0%, var(--cyan-50) 100%);
}
.blog-cta h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 12px;
}
.blog-cta p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 1.05rem;
}

/* =========================================================================
   Blog article
   ========================================================================= */

.blog-article {
  padding: 48px 0 80px;
  background: #fff;
}

.article-header {
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.article-tag {
  display: inline-block;
  background: var(--cyan-50);
  color: var(--brand-blue);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}

.article-header h1 {
  font-size: clamp(1.8rem, 3.8vw, 2.6rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 18px;
  color: var(--brand-navy);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--text-secondary);
  font-size: 0.92rem;
}
.article-meta .dot {
  opacity: 0.5;
}

.article-body {
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--text-primary);
}

.article-body .lead {
  font-size: 1.18rem;
  color: var(--brand-navy);
  font-weight: 500;
  margin-bottom: 28px;
  padding: 18px 22px;
  background: var(--cyan-50);
  border-right: 4px solid var(--brand-blue);
  border-radius: 0 12px 12px 0;
}

.article-body h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 40px 0 16px;
  color: var(--brand-navy);
}

.article-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--brand-navy);
}

.article-body p {
  margin-bottom: 18px;
}

.article-body strong {
  color: var(--brand-navy);
  font-weight: 700;
}

.article-body a {
  color: var(--brand-blue);
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.15s;
}
.article-body a:hover,
.article-body a:focus {
  border-bottom-color: var(--brand-blue);
}

.article-body ul,
.article-body ol {
  margin: 0 0 20px 0;
  padding-right: 22px;
}
.article-body ul li,
.article-body ol li {
  margin-bottom: 10px;
  padding-right: 8px;
}
.article-body ul li {
  list-style: none;
  position: relative;
  padding-right: 24px;
}
.article-body ul li::before {
  content: "\2713";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--brand-cyan-top);
  font-weight: 900;
}
.article-body ol {
  list-style: decimal;
  padding-right: 28px;
}

.article-cta {
  margin: 48px 0;
  padding: 32px 28px;
  background: linear-gradient(135deg, var(--cyan-50), #fff);
  border-radius: 20px;
  border: 1px solid var(--brand-light-cyan);
  text-align: center;
}
.article-cta h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--brand-navy);
}
.article-cta p {
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.article-related {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.article-related h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--brand-navy);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.related-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s;
}
.related-card:hover,
.related-card:focus {
  border-color: var(--brand-light-cyan);
  transform: translateX(-3px);
}
.related-emoji {
  font-size: 2rem;
  flex-shrink: 0;
}
.related-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--brand-navy);
  line-height: 1.4;
  margin-bottom: 4px;
}
.related-read {
  color: var(--brand-blue);
  font-weight: 700;
  font-size: 0.85rem;
}

/* =========================================================================
   Thank-you page
   ========================================================================= */

.thank-you {
  padding: 72px 0 100px;
  background: linear-gradient(180deg, #fff 0%, var(--cyan-50) 100%);
  min-height: calc(100vh - 240px);
}

.thank-you-card {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border-radius: 28px;
  padding: 56px 44px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.thank-you-icon {
  margin-bottom: 24px;
  display: inline-block;
}

.thank-you-card h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 900;
  margin-bottom: 16px;
  color: var(--brand-navy);
}

.thank-you-lead {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 40px;
  max-width: 520px;
  margin-inline: auto;
}

.thank-you-meta {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  margin-bottom: 32px;
  text-align: right;
}
.thank-you-meta h2 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  text-align: center;
}

.thank-you-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.thank-you-link {
  display: block;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: inherit;
  transition: border-color 0.15s, background 0.15s;
}
.thank-you-link:hover,
.thank-you-link:focus {
  border-color: var(--brand-light-cyan);
  background: var(--cyan-50);
}
.thank-you-link strong {
  display: block;
  color: var(--brand-navy);
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.thank-you-link span {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.thank-you-contact {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  text-align: center;
}
.thank-you-contact p {
  color: var(--text-secondary);
  margin-bottom: 14px;
}

/* =========================================================================
   404 error page
   ========================================================================= */

.error-page {
  padding: 72px 0 100px;
  min-height: calc(100vh - 240px);
}
.error-card {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 32px;
}
.error-code {
  font-family: var(--font-heading);
  font-size: clamp(5rem, 14vw, 9rem);
  font-weight: 900;
  line-height: 1;
  background: var(--hero-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}
.error-card h1 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 14px;
}
.error-lead {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 1.05rem;
}
.error-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.btn-ghost-dark {
  background: transparent !important;
  color: var(--brand-navy) !important;
  border: 2px solid var(--brand-navy);
}
.btn-ghost-dark:hover,
.btn-ghost-dark:focus {
  background: var(--brand-navy) !important;
  color: #fff !important;
}
.error-links {
  text-align: right;
  display: inline-block;
  background: var(--cyan-50);
  padding: 24px 32px;
  border-radius: 16px;
}
.error-links h2 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--brand-navy);
}
.error-links ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.error-links a {
  color: var(--brand-blue);
  font-weight: 600;
}

/* =========================================================================
   Reduced motion
   ========================================================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
