/*
Theme Name: Mittklassrum
Theme URI: https://mittklassrum.se
Author: Mittklassrum
Description: Modernt, komplett WordPress-tema för Mittklassrum – det svenska klassrumsverktyget för lärare.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: mittklassrum
Tags: education, modern, dark-nav, custom-colors, full-width-template
*/

/* ═══════════════════════════════════════════════════════
   FONTS & VARIABLES
═══════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=DM+Mono:wght@400;500&display=swap');

:root {
  --ink:     #0d0d14;
  --ink2:    #4a4a5a;
  --ink3:    #8888a0;
  --fog:     #f4f3f0;
  --cream:   #faf9f6;
  --white:   #ffffff;
  --accent:  #e8442a;
  --blue:    #4361ee;
  --green:   #06d6a0;
  --yellow:  #ffd166;
  --pink:    #f72585;
  --nav:     #0d0d14;
  --max:     1200px;
  --r:       16px;
  --font:    'DM Sans', system-ui, sans-serif;
  --display: 'Syne', system-ui, sans-serif;
  --mono:    'DM Mono', monospace;
  --ease:    cubic-bezier(.4,0,.2,1);
  --shadow:  0 8px 32px rgba(0,0,0,.1);
  --shadow-lg: 0 24px 64px rgba(0,0,0,.15);
}

/* ═══════════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font); cursor: pointer; }
input, textarea, select { font-family: var(--font); }

/* ═══════════════════════════════════════════════════════
   TYPOGRAPHY
═══════════════════════════════════════════════════════ */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
}
h1 { font-size: clamp(2.4rem, 5vw, 5rem); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.8rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.45rem); font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 600; }
p { line-height: 1.72; color: var(--ink2); }
.lead { font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.78; }
.small { font-size: .85rem; }
strong { font-weight: 600; color: var(--ink); }

/* ═══════════════════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════════════════ */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px;
}
.container-sm { max-width: 760px; margin: 0 auto; padding: 0 40px; }
section { padding: 96px 0; }
.section-white { background: var(--white); }
.section-fog   { background: var(--fog); }
.section-dark  { background: var(--ink); }

@media (max-width: 768px) {
  .container, .container-sm { padding: 0 20px; }
  section { padding: 64px 0; }
}

/* ═══════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 99px;
  font-size: .95rem;
  font-weight: 600;
  border: none;
  transition: all .22s var(--ease);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  line-height: 1;
}
.btn-lg { padding: 18px 36px; font-size: 1.05rem; }
.btn-sm { padding: 9px 18px; font-size: .85rem; }

.btn-dark  { background: var(--ink); color: #fff; }
.btn-dark:hover  { background: #1e1e30; transform: translateY(-2px); box-shadow: 0 12px 32px rgba(13,13,20,.25); }

.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #d03a22; transform: translateY(-2px); box-shadow: 0 12px 32px rgba(232,68,42,.3); }

.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--fog); transform: translateY(-2px); }

.btn-outline { background: transparent; color: var(--ink); border: 2px solid rgba(0,0,0,.15); }
.btn-outline:hover { border-color: var(--ink); background: var(--ink); color: #fff; }

.btn-outline-white { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.25); }
.btn-outline-white:hover { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.08); }

.btn-ghost { background: transparent; color: var(--ink2); }
.btn-ghost:hover { color: var(--ink); }
.btn-ghost-white { background: transparent; color: rgba(255,255,255,.65); }
.btn-ghost-white:hover { color: #fff; }
.btn-ghost-white::after { content: ' →'; transition: letter-spacing .2s; }
.btn-ghost-white:hover::after { letter-spacing: 2px; }

/* ═══════════════════════════════════════════════════════
   SECTION LABELS & HEADERS
═══════════════════════════════════════════════════════ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent);
  margin-bottom: 16px;
}
.eyebrow::before { content: ''; width: 20px; height: 2px; background: var(--accent); border-radius: 2px; }
.eyebrow-green { color: var(--green); }
.eyebrow-green::before { background: var(--green); }
.eyebrow-blue { color: var(--blue); }
.eyebrow-blue::before { background: var(--blue); }

.section-header { margin-bottom: 56px; }
.section-header h2 { margin-bottom: 16px; font-weight: 700; }
.section-header .lead { max-width: 580px; }
.section-header.center { text-align: center; }
.section-header.center .lead { margin: 0 auto; }
.section-header.center .eyebrow { justify-content: center; }

/* ═══════════════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════════════ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9000;
  background: var(--nav);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: all .3s var(--ease);
}
#site-header.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,.35);
  background: rgba(13,13,20,.97);
  backdrop-filter: blur(16px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px;
}
.site-logo {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.025em;
  display: flex;
  align-items: center;
  gap: 9px;
}
.site-logo span { color: var(--accent); }
.logo-icon {
  width: 36px; height: 36px;
  background: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all .18s;
}
.nav-links a:hover,
.nav-links .current-menu-item > a {
  color: #fff;
  background: rgba(255,255,255,.08);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-login {
  color: rgba(255,255,255,.75);
  font-size: .88rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.12);
  background: none;
  transition: all .18s;
}
.nav-login:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-cta {
  background: var(--accent);
  color: #fff;
  padding: 10px 20px;
  border-radius: 99px;
  font-size: .88rem;
  font-weight: 600;
  border: none;
  transition: all .18s;
}
.nav-cta:hover { background: #d03a22; transform: translateY(-1px); }
.nav-user {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: .88rem;
  font-weight: 600;
}
.nav-avatar {
  width: 32px; height: 32px;
  background: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 700;
}

/* Mobile nav */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,.8);
  border-radius: 2px;
  transition: all .22s;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-inner { padding: 0 20px; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: rgba(13,13,20,.98);
    backdrop-filter: blur(16px);
    padding: 16px 20px 28px;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .nav-links.open a { padding: 13px 8px; font-size: .95rem; }
}

/* ═══════════════════════════════════════════════════════
   AUTH MODAL
═══════════════════════════════════════════════════════ */
.modal-wrap {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(5,5,12,.65);
  backdrop-filter: blur(10px);
}
.modal-wrap.open { display: flex; }

.modal {
  background: #fff;
  border-radius: 24px;
  padding: 44px 40px;
  width: 100%;
  max-width: 450px;
  position: relative;
  box-shadow: 0 40px 100px rgba(0,0,0,.35);
  animation: modalPop .25s var(--ease);
}
@keyframes modalPop {
  from { opacity:0; transform: scale(.93) translateY(12px); }
  to   { opacity:1; transform: scale(1) translateY(0); }
}
.modal-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 32px; height: 32px;
  background: var(--fog);
  border: none;
  border-radius: 50%;
  font-size: 1rem;
  color: var(--ink2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .18s;
}
.modal-close:hover { background: #e0e0e0; color: var(--ink); }

.modal-head { text-align: center; margin-bottom: 28px; }
.modal-head-logo { font-size: 2.8rem; margin-bottom: 6px; }
.modal-head h2 { font-size: 1.65rem; margin-bottom: 4px; }
.modal-head p { font-size: .9rem; color: var(--ink3); }

.modal-tabs {
  display: flex;
  background: var(--fog);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 24px;
}
.modal-tab {
  flex: 1;
  background: none;
  border: none;
  border-radius: 9px;
  padding: 9px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink3);
  transition: all .18s;
}
.modal-tab.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.modal-panel { display: none; }
.modal-panel.active { display: block; }

/* Form fields */
.f-group { margin-bottom: 14px; }
.f-label {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--ink3);
  margin-bottom: 6px;
}
.f-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e8e8e8;
  border-radius: 10px;
  font-size: .95rem;
  color: var(--ink);
  outline: none;
  transition: all .18s;
  background: #fafafa;
}
.f-input:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(67,97,238,.1); }
.f-input::placeholder { color: #bbb; }

.f-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; font-size: .84rem; }
.f-check { display: flex; align-items: center; gap: 7px; color: var(--ink2); cursor: pointer; }
.f-check input { width: 15px; height: 15px; accent-color: var(--blue); }
.f-link { color: var(--blue); font-size: .84rem; }
.f-link:hover { text-decoration: underline; }

.f-terms { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 18px; font-size: .84rem; color: var(--ink2); line-height: 1.55; }
.f-terms input { width: 15px; height: 15px; accent-color: var(--blue); margin-top: 2px; flex-shrink: 0; }
.f-terms a { color: var(--blue); }

.f-submit {
  width: 100%;
  padding: 14px;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: .98rem;
  font-weight: 600;
  transition: all .18s;
  margin-bottom: 16px;
}
.f-submit:hover { background: var(--accent); transform: translateY(-1px); }

.f-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: #d0d0d0;
  font-size: .8rem;
}
.f-divider::before, .f-divider::after { content: ''; flex: 1; height: 1px; background: #ebebeb; }

.google-btn {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e8e8e8;
  border-radius: 10px;
  background: #fff;
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all .18s;
}
.google-btn:hover { border-color: #bbb; background: var(--fog); }
.google-icon { width: 20px; height: 20px; flex-shrink: 0; }

.f-msg { padding: 10px 14px; border-radius: 8px; font-size: .86rem; font-weight: 600; margin-bottom: 14px; display: none; }
.f-msg.err { background: #fff0f0; color: #c33; border: 1.5px solid #ffcccc; display: block; }
.f-msg.ok  { background: #f0fff4; color: #0a7; border: 1.5px solid #9de; display: block; }

/* ═══════════════════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 110px 40px 80px;
  background: #0d0d14;
  position: relative;
  overflow: hidden;
}

/* Animated background */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat 8s ease-in-out infinite;
}
.hero-orb-1 { width: 600px; height: 600px; background: rgba(67,97,238,.2); top: -100px; right: -100px; animation-delay: 0s; }
.hero-orb-2 { width: 400px; height: 400px; background: rgba(232,68,42,.15); bottom: -50px; left: -50px; animation-delay: 3s; }
.hero-orb-3 { width: 300px; height: 300px; background: rgba(6,214,160,.12); top: 40%; left: 40%; animation-delay: 5s; }
@keyframes orbFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  33%  { transform: translate(30px,-20px) scale(1.05); }
  66%  { transform: translate(-20px,30px) scale(.95); }
}

/* Grid lines */
.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.hero-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(6,214,160,.1);
  border: 1px solid rgba(6,214,160,.22);
  color: #06d6a0;
  border-radius: 99px;
  padding: 7px 16px;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: .02em;
}
.hero-badge-dot {
  width: 7px; height: 7px;
  background: #06d6a0;
  border-radius: 50%;
  animation: blink 2.2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.3;transform:scale(.7)} }

.hero h1 { color: #fff; margin-bottom: 22px; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--accent); position: relative; }
.hero h1 em::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 2px;
}
.hero-lead { color: rgba(255,255,255,.62); max-width: 480px; margin-bottom: 36px; font-size: 1.1rem; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 52px; }
.hero-stats { display: flex; gap: 36px; padding-top: 36px; border-top: 1px solid rgba(255,255,255,.08); }
.hero-stat-n { font-family: var(--display); font-size: 2rem; font-weight: 800; color: #fff; display: block; line-height: 1; margin-bottom: 4px; }
.hero-stat-l { font-size: .76rem; color: rgba(255,255,255,.4); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }

/* Hero mockup */
.hero-visual { position: relative; }
.hero-phone {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.06) inset;
  position: relative;
}
.hero-phone-bar {
  height: 46px;
  background: rgba(0,0,0,.35);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 6px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.hp-dot { width: 10px; height: 10px; border-radius: 50%; }
.hp-url { flex: 1; background: rgba(255,255,255,.07); height: 22px; border-radius: 5px; margin-left: 8px; }
.hero-phone-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; background: rgba(255,255,255,.02); }
.hp-widget {
  background: rgba(255,255,255,.94);
  border-radius: 12px;
  padding: 14px;
  animation: widgetFloat 5s ease-in-out infinite;
}
.hp-widget:nth-child(2) { animation-delay: 1s; }
.hp-widget:nth-child(3) { animation-delay: 2s; }
.hp-widget:nth-child(4) { animation-delay: 3s; }
@keyframes widgetFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-5px)} }
.hp-wlabel { font-size: .5rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: #999; margin-bottom: 6px; }
.hp-timer { font-family: var(--mono); font-size: 1.6rem; font-weight: 500; color: #ef233c; }
.hp-clock { font-family: var(--mono); font-size: 1.2rem; font-weight: 500; color: var(--blue); }
.hp-name { font-size: 1rem; font-weight: 700; color: var(--blue); text-align: center; padding: 4px 0; }
.hp-task { display: flex; align-items: center; gap: 5px; font-size: .55rem; color: #555; margin-bottom: 4px; }
.hp-check { width: 9px; height: 9px; border-radius: 2px; flex-shrink: 0; }

.hero-float-card {
  position: absolute;
  background: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.2);
  font-size: .78rem;
  font-weight: 600;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 7px;
  animation: cardFloat 4s ease-in-out infinite;
}
@keyframes cardFloat { 0%,100%{transform:translateY(0) rotate(-2deg)} 50%{transform:translateY(-7px) rotate(-2deg)} }
.hero-float-card.right { animation-direction: reverse; animation-delay: 1s; }
.float-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

@media (max-width: 900px) {
  .hero { padding: 100px 20px 60px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}

/* ═══════════════════════════════════════════════════════
   STATS COUNTER SECTION
═══════════════════════════════════════════════════════ */
.stats-section {
  background: var(--ink);
  padding: 64px 0;
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 0;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px;
}
.stat-item {
  text-align: center;
  padding: 20px;
  border-right: 1px solid rgba(255,255,255,.08);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-number span { color: var(--accent); }
.stat-label { font-size: .82rem; color: rgba(255,255,255,.4); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; }

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2,1fr); padding: 0 20px; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); }
  .stat-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.08); }
  .stat-item:last-child, .stat-item:nth-last-child(2) { border-bottom: none; }
}

/* ═══════════════════════════════════════════════════════
   FEATURES / TOOLS GRID
═══════════════════════════════════════════════════════ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 16px;
}
@media (max-width: 900px) { .tools-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px) { .tools-grid { grid-template-columns: 1fr 1fr; gap: 12px; } }

.tool-card {
  background: #fff;
  border-radius: 20px;
  padding: 26px 22px;
  border: 1px solid rgba(0,0,0,.06);
  transition: all .24s var(--ease);
  position: relative;
  overflow: hidden;
  cursor: default;
}
.tool-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--pink));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.tool-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,.1); }
.tool-card:hover::before { transform: scaleX(1); }
.tool-icon { font-size: 2.2rem; margin-bottom: 14px; display: block; }
.tool-name { font-family: var(--display); font-size: .98rem; font-weight: 700; margin-bottom: 7px; color: var(--ink); }
.tool-desc { font-size: .83rem; line-height: 1.55; color: var(--ink2); }

/* ═══════════════════════════════════════════════════════
   HOW IT WORKS
═══════════════════════════════════════════════════════ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 48px;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 32px; left: calc(16% + 16px); right: calc(16% + 16px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,.1), transparent);
}
.step { position: relative; }
.step-badge {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--blue), var(--pink));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(67,97,238,.25);
}
.step-num {
  font-family: var(--display);
  font-size: 4.5rem;
  font-weight: 800;
  color: rgba(0,0,0,.04);
  line-height: 1;
  margin-bottom: -18px;
}
.step h4 { font-size: 1.15rem; margin-bottom: 10px; }
.step p { font-size: .9rem; line-height: 1.65; }

@media (max-width: 768px) { .steps-grid { grid-template-columns: 1fr; gap: 32px; } .steps-grid::before { display: none; } }

/* ═══════════════════════════════════════════════════════
   SHARING SECTION
═══════════════════════════════════════════════════════ */
.share-section {
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.share-section::after {
  content: '';
  position: absolute;
  bottom: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(67,97,238,.15) 0%, transparent 70%);
  pointer-events: none;
}
.share-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.share-section .eyebrow { color: var(--green); }
.share-section .eyebrow::before { background: var(--green); }
.share-section h2 { color: #fff; }
.share-section p { color: rgba(255,255,255,.58); }
.share-features { list-style: none; margin-top: 28px; display: flex; flex-direction: column; gap: 13px; }
.share-features li { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.8); font-size: .92rem; }
.share-features li::before { content: ''; width: 20px; height: 20px; background: rgba(6,214,160,.15); border: 1px solid rgba(6,214,160,.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: .65rem; }
.sf-check::before { content: '✓' !important; color: var(--green); display: flex !important; align-items: center; justify-content: center; }

.code-demo-box {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px;
  padding: 40px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.code-demo-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.3);
  margin-bottom: 14px;
}
.code-demo-number {
  font-family: var(--display);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800;
  color: var(--green);
  letter-spacing: .22em;
  margin-bottom: 14px;
  animation: codePulse 3s ease-in-out infinite;
}
@keyframes codePulse { 0%,100%{opacity:1} 50%{opacity:.7} }
.code-demo-box p { color: rgba(255,255,255,.4); font-size: .85rem; }
.code-demo-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}
.code-step {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.05);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: .84rem;
  color: rgba(255,255,255,.65);
  text-align: left;
}
.code-step-num { color: var(--green); font-weight: 700; flex-shrink: 0; }

@media (max-width: 768px) { .share-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ═══════════════════════════════════════════════════════
   FAQ
═══════════════════════════════════════════════════════ */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.06);
  overflow: hidden;
  transition: box-shadow .2s;
}
.faq-item:hover { box-shadow: var(--shadow); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  gap: 16px;
}
.faq-icon {
  width: 28px; height: 28px;
  background: var(--fog);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: .9rem;
  transition: all .25s;
  color: var(--ink2);
}
.faq-item.open .faq-icon { background: var(--blue); color: #fff; transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s var(--ease);
}
.faq-item.open .faq-a { max-height: 400px; }
.faq-a-inner { padding: 0 24px 20px; font-size: .92rem; line-height: 1.7; color: var(--ink2); }

/* ═══════════════════════════════════════════════════════
   NEWSLETTER
═══════════════════════════════════════════════════════ */
.newsletter-section {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}
.newsletter-section::before {
  content: '';
  position: absolute;
  top: -150px; left: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(247,37,133,.12) 0%, transparent 70%);
}
.newsletter-inner { text-align: center; position: relative; max-width: 580px; margin: 0 auto; padding: 0 40px; }
.newsletter-section h2 { color: #fff; margin-bottom: 14px; }
.newsletter-section p { color: rgba(255,255,255,.55); margin-bottom: 32px; font-size: 1rem; }
.newsletter-form { display: flex; gap: 10px; }
.newsletter-form input {
  flex: 1;
  padding: 14px 18px;
  border-radius: 99px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.07);
  color: #fff;
  font-size: .95rem;
  font-family: var(--font);
  outline: none;
  transition: all .18s;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.3); }
.newsletter-form input:focus { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.1); }
.newsletter-form button {
  padding: 14px 28px;
  border-radius: 99px;
  background: var(--accent);
  color: #fff;
  border: none;
  font-weight: 600;
  font-size: .95rem;
  white-space: nowrap;
  transition: all .18s;
}
.newsletter-form button:hover { background: #d03a22; transform: translateY(-1px); }
.newsletter-note { font-size: .78rem; color: rgba(255,255,255,.25); margin-top: 14px; }

@media (max-width: 540px) {
  .newsletter-form { flex-direction: column; }
  .newsletter-form input, .newsletter-form button { width: 100%; }
}

/* ═══════════════════════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════════════════════ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
}
@media (max-width: 768px) { .testimonials-grid { grid-template-columns: 1fr; } }
.testimonial-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  border: 1px solid rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: all .22s;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.testimonial-stars { display: flex; gap: 3px; color: #ffd166; font-size: .9rem; }
.testimonial-text { font-size: .92rem; line-height: 1.72; color: var(--ink2); flex: 1; }
.testimonial-text::before { content: '"'; font-size: 2rem; color: var(--fog); font-family: var(--display); line-height: .5; display: block; margin-bottom: 4px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.t-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
}
.t-name { font-weight: 700; font-size: .9rem; color: var(--ink); }
.t-role { font-size: .78rem; color: var(--ink3); }

/* ═══════════════════════════════════════════════════════
   PRICING
═══════════════════════════════════════════════════════ */
.price-card {
  max-width: 460px;
  margin: 0 auto;
  background: #fff;
  border-radius: 28px;
  padding: 48px;
  border: 2px solid rgba(0,0,0,.06);
  position: relative;
  box-shadow: var(--shadow-lg);
}
.price-crown {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #fff;
  border-radius: 99px;
  padding: 6px 20px;
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: .04em;
}
.price-amount {
  font-family: var(--display);
  font-size: 5.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
  margin: 20px 0 4px;
}
.price-period { color: var(--ink3); font-size: .9rem; margin-bottom: 36px; }
.price-features {
  list-style: none;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.price-features li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: .93rem;
  color: var(--ink2);
}
.price-features li::before {
  content: '✓';
  width: 22px; height: 22px;
  background: rgba(6,214,160,.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #059669;
  font-size: .75rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════
   CTA SECTION
═══════════════════════════════════════════════════════ */
.cta-section {
  background: var(--ink);
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 96px 40px;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 90% at 50% 50%, rgba(67,97,238,.18) 0%, transparent 70%);
}
.cta-section h2 { color: #fff; position: relative; margin-bottom: 18px; }
.cta-section p { color: rgba(255,255,255,.55); max-width: 520px; margin: 0 auto 36px; font-size: 1.05rem; position: relative; }
.cta-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; position: relative; }

/* ═══════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════ */
#site-footer {
  background: #07070f;
  padding: 72px 0 32px;
  color: rgba(255,255,255,.45);
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  margin-bottom: 32px;
}
.footer-brand p { font-size: .88rem; line-height: 1.65; max-width: 280px; margin-top: 14px; }
.footer-logo { font-family: var(--display); font-size: 1.3rem; font-weight: 800; color: #fff; display: flex; align-items: center; gap: 8px; }
.footer-logo span { color: var(--accent); }
.footer-col-title { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.25); margin-bottom: 18px; }
.footer-col-links { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col-links a { color: rgba(255,255,255,.48); font-size: .88rem; transition: color .18s; }
.footer-col-links a:hover { color: rgba(255,255,255,.85); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: .82rem; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: rgba(255,255,255,.3); transition: color .18s; }
.footer-bottom-links a:hover { color: rgba(255,255,255,.6); }

@media (max-width: 768px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════════════
   PAGE TEMPLATES
═══════════════════════════════════════════════════════ */
.page-hero {
  background: var(--ink);
  padding: 120px 40px 64px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 70% 50%, rgba(67,97,238,.14) 0%, transparent 70%);
}
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(2rem,4vw,3rem); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,.55); font-size: 1.05rem; }

.content-area { max-width: 800px; margin: 0 auto; padding: 72px 40px; }
.content-area h2 { font-size: 1.7rem; margin: 44px 0 14px; color: var(--ink); }
.content-area h3 { font-size: 1.2rem; margin: 30px 0 10px; color: var(--ink); }
.content-area p { margin-bottom: 18px; }
.content-area ul, .content-area ol { padding-left: 1.5em; margin-bottom: 18px; }
.content-area li { margin-bottom: 7px; line-height: 1.7; }
.content-area a { color: var(--blue); text-decoration: underline; }
.content-area blockquote { border-left: 4px solid var(--accent); padding: 12px 20px; margin: 24px 0; background: var(--fog); border-radius: 0 12px 12px 0; }

@media (max-width: 768px) { .content-area { padding: 48px 20px; } .page-hero { padding: 100px 20px 48px; } }

/* ═══════════════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════════════ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 72px;
  align-items: start;
}
.contact-info h3 { margin-bottom: 14px; font-size: 1.3rem; }
.contact-info > p { margin-bottom: 32px; }
.c-item { display: flex; gap: 14px; margin-bottom: 22px; }
.c-icon { width: 44px; height: 44px; background: var(--fog); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.c-item strong { display: block; font-size: .9rem; margin-bottom: 2px; }
.c-item span { font-size: .87rem; color: var(--ink3); }
.contact-form-wrap { background: var(--cream); border-radius: 24px; padding: 36px; border: 1px solid rgba(0,0,0,.06); }
.contact-form-wrap .f-input, .contact-form-wrap textarea.f-input { background: #fff; }
.contact-form-wrap textarea.f-input { resize: vertical; min-height: 130px; }
.contact-submit { width: 100%; padding: 14px; background: var(--ink); color: #fff; border: none; border-radius: 10px; font-size: .98rem; font-weight: 600; cursor: pointer; transition: all .18s; }
.contact-submit:hover { background: var(--accent); }

@media (max-width: 768px) { .contact-layout { grid-template-columns: 1fr; gap: 36px; } }

/* ═══════════════════════════════════════════════════════
   BLOG
═══════════════════════════════════════════════════════ */
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 540px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card { background: #fff; border-radius: 20px; overflow: hidden; border: 1px solid rgba(0,0,0,.06); transition: all .22s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.blog-thumb { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.blog-thumb-placeholder { aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.blog-body { padding: 22px; }
.blog-date { font-size: .75rem; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.blog-title { font-family: var(--display); font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: var(--ink); line-height: 1.35; }
.blog-title a { color: inherit; }
.blog-title a:hover { color: var(--blue); }
.blog-excerpt { font-size: .85rem; line-height: 1.6; margin-bottom: 14px; }
.blog-more { color: var(--blue); font-size: .85rem; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.blog-more:hover { gap: 9px; }

/* ═══════════════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-left { opacity: 0; transform: translateX(-28px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.reveal-left.visible { opacity: 1; transform: none; }
.reveal-right { opacity: 0; transform: translateX(28px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.reveal-right.visible { opacity: 1; transform: none; }

/* Stagger delays */
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }
.reveal-d4 { transition-delay: .4s; }

/* ═══════════════════════════════════════════════════════
   UTILITIES
═══════════════════════════════════════════════════════ */
.text-center { text-align: center; }
.text-white { color: #fff !important; }
.text-accent { color: var(--accent); }
.text-green { color: var(--green); }
.text-blue { color: var(--blue); }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ═══════════════════════════════════════════════════════
   GUTENBERG / BLOCK EDITOR
═══════════════════════════════════════════════════════ */
.wp-block-image img { border-radius: 12px; }
.wp-block-quote { border-left: 4px solid var(--accent); padding-left: 20px; }
.wp-block-separator { border-color: rgba(0,0,0,.1); }
.is-layout-flex { gap: 12px; }
.wp-block-buttons .wp-block-button__link { border-radius: 99px !important; padding: 12px 24px !important; font-weight: 600 !important; }
