/* FamilyaKit – Main styles */

* {
  box-sizing: border-box;
}

:root {
  --bg: #1e1e2e;
  --bg-card: #1e1e2e;
  --bg-elevated: #1e1e2e;
  --coral: #A7A0F8;
  --coral-hover: #A7A0F8;
  --coral-glow: rgba(107, 111, 139, 0.35);
  --text: #f8faf9;
  --text-muted: #94a3a0;
  --border: rgba(107, 111, 139, 0.35);
  /* Fixed header total height (desktop includes QR block). */
  --header-offset: 132px;
  /* Align main column, footer, newsletter, and homepage blocks with .header-bar */
  --layout-max-width: 1100px;
}

html {
  scroll-padding-top: var(--header-offset);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 20px 0;
  background: linear-gradient(180deg, rgba(30, 30, 46, 0.95) 0%, transparent 100%);
  pointer-events: none;
}

.header-bar {
  pointer-events: auto;
  max-width: var(--layout-max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.header-inner {
  pointer-events: auto;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 22px;
  background: rgba(24, 24, 40, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

/* App Store QR — right of nav pill (reference: white card + label strip) */
.header-qr {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 104px;
  background: #ffffff;
  border-radius: 12px;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.header-qr:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.header-qr:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}

.header-qr img {
  display: block;
  width: 100%;
  height: auto;
  padding: 8px;
  box-sizing: border-box;
}

.header-qr-label {
  display: block;
  padding: 8px 6px 10px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.03em;
  text-align: center;
  text-transform: none;
  color: #ffffff;
  background: #4338a8;
  -webkit-font-smoothing: antialiased;
}

.logo-header {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.logo-header img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.logo-header span {
  font-weight: 700;
  font-size: 18px;
  color: var(--coral);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 22px);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  box-sizing: border-box;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a.is-active {
  color: var(--text);
  border-bottom-color: var(--coral);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(167, 160, 248, 0.35);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}

.nav-toggle-icon {
  position: relative;
  display: block;
  width: 20px;
  height: 14px;
}

.nav-toggle-icon span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-icon span:nth-child(1) {
  top: 0;
}

.nav-toggle-icon span:nth-child(2) {
  top: 6px;
}

.nav-toggle-icon span:nth-child(3) {
  top: 12px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 200;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 12px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  overflow: visible;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* SPA section anchors — offset handled by html scroll-padding-top */
[id].page-anchor-block {
  scroll-margin-top: var(--header-offset);
}

/* Nav links are muted; buttons in nav must keep solid label color (avoids .nav-links a winning specificity). */
.nav-links a.btn-primary {
  color: #ffffff;
}

.nav-links a.btn-primary:hover {
  color: #ffffff;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--coral);
  color: #ffffff;
  -webkit-font-smoothing: antialiased;
  box-shadow: 0 4px 20px var(--coral-glow);
}

.btn-primary:hover {
  background: var(--coral-hover);
  color: #ffffff;
  box-shadow: 0 6px 28px var(--coral-glow);
}

.btn-sm {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
}

.hero-logo {
  width: 160px;
  height: 160px;
  object-fit: contain;
  margin-bottom: 24px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 640px;
}

.hero .lead {
  margin: 20px auto 0;
  max-width: 520px;
  font-size: 18px;
  color: var(--text-muted);
}

.hero .actions {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Actions row (used outside hero as well) */
.actions {
  margin-top: 24px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.actions.actions--center {
  justify-content: center;
}

.cta-center {
  text-align: center;
}

/* Showcase – 8 phones in 2 rows */
.showcase {
  padding: 80px 24px 100px;
}

.showcase h2 {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.showcase .subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 17px;
  margin: 0 0 48px;
}

.phones {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: var(--layout-max-width);
  margin: 0 auto;
  justify-items: center;
  align-items: end;
}

.phone-wrap {
  position: relative;
}

.phone-wrap:nth-child(odd) {
  transform: translateY(0);
}

.phone-wrap:nth-child(even) {
  transform: translateY(24px);
}

.phone-frame {
  width: 100%;
  max-width: 200px;
  border-radius: 32px;
  padding: 8px;
  background: linear-gradient(145deg, #1e2a28 0%, #0f1816 100%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 0 2px var(--border);
}

.phone-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 26px;
}

/* Features */
.features {
  padding: 80px 24px 100px;
  background: linear-gradient(180deg, transparent 0%, var(--bg-card) 30%, var(--bg-card) 70%, transparent 100%);
}

.features h2 {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 48px;
}

/* Four equal columns on large screens (matches four feature cards) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  max-width: var(--layout-max-width);
  margin: 0 auto;
  align-items: stretch;
}

.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(107, 111, 109, 0.3);
  transform: translateY(-2px);
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-card h3::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
}

/* Security section */
.security {
  padding: 80px 24px 100px;
}

.security h2 {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.security .subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 17px;
  margin: 0 0 48px;
}

/* Equal columns: use --cols-3 or --cols-4 on the element (see index.html) */
.security-grid {
  display: grid;
  gap: 24px;
  max-width: var(--layout-max-width);
  margin: 0 auto;
  align-items: stretch;
}

.security-grid--cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.security-grid--cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.security-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  text-align: center;
}

.security-card .icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border-radius: 14px;
  background: rgba(232, 122, 109, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.security-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 600;
}

.security-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* FAQ */
.faq {
  padding: 80px 24px 100px;
}

.faq h2 {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.faq .subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 17px;
  margin: 0 0 48px;
}

.faq .subtitle a {
  color: var(--coral);
  text-decoration: none;
}

.faq .subtitle a:hover {
  text-decoration: underline;
}

.faq-list {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "▼";
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item[open] .faq-question::after {
  transform: rotate(180deg);
}

.faq-answer {
  margin: 0 0 20px;
  padding: 0 0 20px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  font-weight: 400;
}

/* Footer */
.footer-site {
  margin-top: auto;
  padding: 64px 20px 40px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
}

.footer-grid {
  max-width: var(--layout-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  text-align: left;
}

.footer-col h3 {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--coral);
}

/* Newsletter (Mailchimp) */
.newsletter-section {
  padding: 3rem 20px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.newsletter-inner {
  max-width: var(--layout-max-width);
  margin: 0 auto;
  box-sizing: border-box;
}

.newsletter-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.newsletter-section p {
  font-size: 0.95rem;
  opacity: 0.7;
  margin-bottom: 1.25rem;
}

.newsletter-form {
  position: relative;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-fields {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.newsletter-input,
.footer-newsletter-input {
  flex: 1;
  min-width: 200px;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: inherit;
  font-size: 0.9rem;
  outline: none;
}

.newsletter-input:focus,
.footer-newsletter-input:focus {
  border-color: rgba(124,111,212,0.6);
}

.newsletter-btn,
.footer-newsletter-btn {
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  background: #7c6fd4;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.newsletter-btn:hover,
.footer-newsletter-btn:hover {
  background: #6a5ec4;
}

.newsletter-disclaimer,
.footer-newsletter-disclaimer {
  font-size: 0.75rem;
  opacity: 0.45;
  margin-top: 0.6rem;
}

.footer-col--newsletter {
  min-width: 220px;
}

.footer-newsletter-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 0.5rem;
}

.footer-newsletter-input {
  width: 100%;
  box-sizing: border-box;
}

.footer-bottom {
  max-width: var(--layout-max-width);
  margin: 48px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-bottom p {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--coral);
  text-decoration: none;
  font-weight: 500;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* Language selector (footer) */
.footer-lang-row {
  max-width: var(--layout-max-width);
  margin: 0 auto 32px;
  padding: 0 4px;
}

.footer-lang-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.footer-lang-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.lang-select {
  position: relative;
  display: inline-block;
  width: fit-content;
  max-width: 100%;
}

.lang-select-summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  min-width: 168px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}

.lang-select-summary::-webkit-details-marker {
  display: none;
}

.lang-select:hover .lang-select-summary {
  border-color: rgba(167, 160, 248, 0.35);
}

.lang-chevron {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1;
  transition: transform 0.2s;
}

.lang-select[open] .lang-chevron {
  transform: rotate(180deg);
}

.lang-flag {
  font-size: 18px;
  line-height: 1;
}

.lang-select-list {
  position: absolute;
  z-index: 80;
  left: 0;
  top: calc(100% + 8px);
  margin: 0;
  padding: 8px;
  list-style: none;
  min-width: 100%;
  background: rgba(22, 22, 36, 0.98);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
}

.lang-select-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s;
}

.lang-select-link:hover,
.lang-select-link:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.lang-select-link[aria-current="page"] {
  background: rgba(167, 160, 248, 0.12);
  color: var(--coral);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, transform 0.15s;
  box-sizing: border-box;
}

.footer-social-link:hover {
  color: var(--text);
  border-color: rgba(167, 160, 248, 0.45);
  transform: translateY(-2px);
}

/* Safari: inline SVGs can ignore width/height inside flex; lock size explicitly */
.footer-social-link svg {
  display: block;
  width: 16px;
  height: 16px;
  max-width: 16px;
  max-height: 16px;
  flex-shrink: 0;
  fill: currentColor;
  overflow: visible;
}

.footer-bottom-split {
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding-top: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-bottom-split .footer-copy {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* Legacy simple footer (single line) */
.footer {
  padding: 48px 24px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer a {
  color: var(--coral);
  text-decoration: none;
  font-weight: 500;
}

.footer a:hover {
  text-decoration: underline;
}

.footer .copy {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-muted);
}

/* Inner / legal subpages */
.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: var(--header-offset);
}

.page-section {
  padding-top: 56px;
  padding-bottom: 0;
}

.page-main {
  flex: 1;
  width: 100%;
  max-width: var(--layout-max-width);
  margin: 0 auto;
  /* Horizontal padding matches .header (16px 20px) so columns line up with the nav bar */
  padding: 24px 20px 80px;
}

.page-main.wide {
  max-width: var(--layout-max-width);
}

/* Homepage blog preview: keep it to max 4 cards */
.blog-preview-grid.blog-preview-grid--home > li:nth-child(n + 5) {
  display: none;
}

/* Blog category badges */
.blog-card__badge--child-development {
  background: rgba(72, 187, 120, 0.14);
  color: #48bb78;
  border: 1px solid rgba(72, 187, 120, 0.28);
}

.blog-card__badge--privacy-philosophy {
  background: rgba(99, 102, 241, 0.14);
  color: #8b8dff;
  border: 1px solid rgba(99, 102, 241, 0.28);
}

/* Blog index category filter */
.blog-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 24px;
}

.blog-filter__btn {
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.blog-filter__btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
}

.blog-filter__btn[aria-pressed='true'] {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.09);
}

.blog-card.is-hidden {
  display: none;
}

.page-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}

.page-lead {
  margin: 0 0 32px;
  color: var(--text-muted);
  font-size: 16px;
}

.content-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 28px;
  margin-bottom: 20px;
}

.content-card h2 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 600;
}

.content-card p,
.content-card li {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
}

.content-card p:last-child,
.content-card ul:last-child {
  margin-bottom: 0;
}

.content-card ul {
  padding-left: 1.2em;
}

.content-card-spaced {
  margin-top: 28px;
}

.content-card a {
  color: var(--coral);
  text-decoration: none;
}

.content-card a:hover {
  text-decoration: underline;
}

/* Comparison table */
.comparison-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.comparison-table th,
.comparison-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.comparison-table thead th {
  font-weight: 700;
  color: var(--text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.comparison-table tbody th {
  font-weight: 600;
  color: var(--text);
  width: 52%;
}

.comparison-table tbody td {
  color: var(--text-muted);
}

.comparison-table tbody tr:last-child th,
.comparison-table tbody tr:last-child td {
  border-bottom: 0;
}

/* Trust block */
.trust-block {
  padding: 2rem 1.5rem;
  text-align: center;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-primary, #fff);
  opacity: 0.9;
}

.trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.pricing-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 24px;
  text-align: center;
}

.pricing-card h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 0;
  color: var(--text);
}

.pricing-card .subtext {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.pricing-card .price {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 8px 0 4px;
}

.pricing-card .period {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.blog-item {
  display: block;
  padding: 20px 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.15s;
}

.blog-item:hover {
  border-color: rgba(167, 160, 248, 0.45);
  transform: translateY(-2px);
}

.blog-item h2 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.blog-item .meta {
  font-size: 13px;
  color: var(--text-muted);
}

.blog-item p {
  margin: 10px 0 0;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.55;
}

.blog-post {
  display: block;
  padding: 20px 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: border-color 0.2s;
}

.blog-post:hover {
  border-color: rgba(167, 160, 248, 0.35);
}

.blog-post h2 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.blog-post .meta {
  font-size: 13px;
  color: var(--text-muted);
}

.blog-post p {
  margin: 10px 0 0;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.55;
}

.blog-post a {
  color: var(--coral);
  text-decoration: none;
}

.blog-post a:hover {
  text-decoration: underline;
}

/* Blog preview grid (homepage & blog index): four equal columns on large screens */
.blog-preview-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.blog-preview-actions {
  margin-top: 28px;
  text-align: center;
}

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (max-width: 720px) {
  .security-grid--cols-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .security-grid--cols-4 {
    grid-template-columns: 1fr;
  }

  .blog-preview-grid {
    grid-template-columns: 1fr;
  }
}

.blog-card {
  margin: 0;
  height: 100%;
}

.blog-card__shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
  padding: 22px 22px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.blog-card__shell:hover {
  border-color: rgba(167, 160, 248, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.blog-card__shell:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}

/* Blog card thumbnail (index / listing) */
.blog-card__media {
  order: -1;
  margin: -22px -22px 16px;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: rgba(0, 0, 0, 0.2);
}

.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card__badge {
  align-self: flex-start;
  display: inline-block;
  padding: 4px 10px;
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(167, 160, 248, 0.12);
  color: var(--coral);
}

.blog-card__badge--product-updates {
  background: rgba(167, 160, 248, 0.12);
  color: var(--coral);
  border-color: rgba(167, 160, 248, 0.35);
}

.blog-card__badge--engineering {
  background: rgba(129, 230, 217, 0.1);
  color: #7dd3c0;
  border-color: rgba(129, 230, 217, 0.28);
}

.blog-card__badge--family-tips {
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.3);
}

.blog-card__title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.blog-card__meta {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}

.blog-card__meta-sep {
  opacity: 0.65;
}

.blog-card__excerpt {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.blog-card__cta {
  margin-top: auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--coral);
}

.blog-card__shell:hover .blog-card__cta {
  text-decoration: underline;
}

/* Standalone blog article — same content width as .page-main / nav column */
.blog-back {
  margin: 0 0 20px;
  font-size: 15px;
}

.blog-back a {
  color: var(--coral);
  text-decoration: none;
  font-weight: 500;
}

.blog-back a:hover {
  text-decoration: underline;
}

.blog-article-page {
  width: 100%;
  max-width: none;
  margin: 0;
}

.blog-article-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.blog-article-header .blog-article-badges {
  margin-bottom: 10px;
}

.blog-article-header h1 {
  margin: 0 0 10px;
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text);
}

.blog-article-meta {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.blog-article-hero {
  margin: 0 0 28px;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  max-height: min(420px, 52vh);
  background: rgba(0, 0, 0, 0.2);
}

.blog-article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-article-body {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-muted);
}

.blog-article-body > p {
  margin: 0 0 1.1em;
}

.blog-article-body > p:last-child {
  margin-bottom: 0;
}

.blog-article-body h2 {
  margin: 1.8em 0 0.6em;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}

.blog-article-body h2:first-child {
  margin-top: 0;
}

.blog-article-body ul {
  margin: 0 0 1.1em;
  padding-left: 1.25em;
}

.blog-article-body li {
  margin-bottom: 0.5em;
}

.blog-article-body a {
  color: var(--coral);
  text-decoration: none;
}

.blog-article-body a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
  .phones {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .phone-wrap:nth-child(even) {
    transform: translateY(0);
  }

  .phone-wrap:nth-child(3),
  .phone-wrap:nth-child(7) {
    transform: translateY(20px);
  }

  /* Mobile drawer + hamburger: only when the SPA toggle exists (see index.html / de|tr SPA).
     Subpages (e.g. /blog/) have no #nav-toggle — their .nav-links must stay visible. */
  .header-inner:has(#nav-toggle) .nav-toggle {
    display: inline-flex;
  }

  .header-inner:has(#nav-toggle) {
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
  }

  .header-inner:has(#nav-toggle) .logo-header {
    flex: 1;
    min-width: 0;
  }

  .header-inner:has(#nav-toggle) .nav-links {
    position: fixed;
    z-index: 99;
    left: 16px;
    right: 16px;
    top: calc(var(--header-offset) + 4px);
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0;
    padding: 10px;
    margin: 0;
    background: rgba(22, 22, 36, 0.98);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    pointer-events: none;
  }

  .header-inner:has(#nav-toggle) .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .header-inner:has(#nav-toggle) .nav-links a {
    padding: 12px 14px;
    border-radius: 10px;
    text-align: center;
    border-bottom: none;
  }

  .header-inner:has(#nav-toggle) .nav-links a.is-active {
    background: rgba(167, 160, 248, 0.12);
    color: var(--coral);
    box-shadow: none;
    padding-bottom: 12px;
  }

  body.nav-open {
    overflow: hidden;
  }
}

@media (max-width: 600px) {
  .phones {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .phone-frame {
    max-width: 150px;
    border-radius: 26px;
    padding: 6px;
  }

  .phone-frame img {
    border-radius: 22px;
  }

  .phone-wrap:nth-child(3),
  .phone-wrap:nth-child(7) {
    transform: translateY(0);
  }

  .header-bar {
    flex-wrap: wrap;
    justify-content: center;
  }

  .header-inner {
    flex-direction: row;
    align-items: center;
    border-radius: 24px;
    flex: 1 1 100%;
  }

  /* QR is tight on small phones; Download in nav remains */
  .header-qr {
    display: none;
  }
}
