/* =========================================
   unlogged.is — Ghost Theme Stylesheet
   ========================================= */

/* ----- CSS Variables — Dark mode only ----- */
:root {
  --bg: #1A1510;
  --bg-card: #221D16;
  --bg-card-hover: #2A231A;
  --text-primary: #F0E8DC;
  --text-secondary: #A89378;
  --text-muted: #6E5E4A;
  --accent: #D4733D;
  --accent-soft: #3A2518;
  --border: #312820;
  --tag-bg: #2A221A;
  --avoid-bg: #3A1A12;
  --avoid-border: #7A3020;
  --avoid-text: #E07A60;
  --max-width: 720px;
  --footer-width: 960px;
}

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

/* ----- Base ----- */
html { font-size: 16px; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: inherit; }
img { max-width: 100%; }

/* ----- Navigation ----- */
.site-nav {
  padding: 0 2rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}

.site-nav-inner {
  max-width: var(--footer-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
}

.site-logo {
  font-family: 'Lora', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 400;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--accent); }

/* ----- Nav right group ----- */
.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ----- Hamburger button (mobile only) ----- */
.nav-hamburger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.15s;
  flex-shrink: 0;
}

.nav-hamburger:hover { border-color: var(--accent); color: var(--accent); }

/* Animated hamburger → X */
.nav-hamburger .bar {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

.nav-hamburger .bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Open state: top rotates to /, middle fades, bottom rotates to \ */
.nav-hamburger.open .bar:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-hamburger.open .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open .bar:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ----- Mobile menu ----- */
.mobile-menu {
  display: none;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 1.5rem 2rem;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 99;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.mobile-menu.open { display: block; }

.mobile-menu ul { list-style: none; }

.mobile-menu li a {
  display: block;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}

.mobile-menu li:last-child a { border-bottom: none; }
.mobile-menu li a:hover { color: var(--accent); }

/* ----- Search ----- */
.site-nav__search {
  display: flex;
  align-items: center;
  position: relative;
  width: 34px;
  flex-shrink: 0;
}

.site-nav__search-bar {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  width: 34px;
  transition: width 0.25s ease, border-color 0.15s;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.site-nav__search--open .site-nav__search-bar {
  width: 220px;
  border-color: var(--accent);
}

.site-nav__search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  padding: 0;
  width: 0;
  min-width: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s 0.1s, padding 0.25s ease, width 0.25s ease;
}

.site-nav__search--open .site-nav__search-input {
  opacity: 1;
  pointer-events: auto;
  width: 100%;
  padding: 0 12px 0 0;
}

.site-nav__search-input::placeholder { color: var(--text-muted); }

.site-nav__search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  width: 34px;
  height: 34px;
  min-width: 34px;
  padding: 0;
  flex-shrink: 0;
  transition: color 0.15s;
}

.site-nav__search-btn:hover,
.site-nav__search--open .site-nav__search-btn { color: var(--accent); }

@media (max-width: 640px) {
  .site-nav__search { display: none; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

/* ----- Hero ----- */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 2rem 3rem;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: 'Lora', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  font-weight: 300;
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-tagline {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-left: 2px solid var(--accent);
  padding-left: 1rem;
}

/* ----- Section ----- */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-family: 'Lora', serif;
  font-size: 1.125rem;
  font-weight: 500;
}

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

.section-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

/* ----- Category Pills ----- */
.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 3rem;
}

.category-pill {
  padding: 0.5rem 1rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 0.8rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}

.category-pill:hover,
.category-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ----- Tool Grid & Cards ----- */
.tool-grid {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 3rem;
}

.tool-card {
  background: var(--bg-card);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  color: inherit;
}

.tool-card:hover { background: var(--bg-card-hover); }

.tool-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
  overflow: hidden;
}

.tool-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.tool-info { flex: 1; }

.tool-name {
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.tool-desc {
  font-size: 0.825rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ----- Badges ----- */
.tool-badge {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  align-self: flex-start;
}

.badge-best { background: var(--accent); color: #fff; }
.badge-good { background: var(--tag-bg); color: var(--text-secondary); }
.badge-avoid {
  background: var(--avoid-bg);
  border: 1px solid var(--avoid-border);
  color: var(--avoid-text);
}

/* ----- Tool Page ----- */
.breadcrumb {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 2rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--border); }

.tool-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.tool-header-top {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.tool-header-left {
  flex-shrink: 0;
}

.tool-header-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tool-tagline {
  padding-top: 0;
  margin-top: 1.5rem;
  border-top: none;
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.6;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.tool-logo {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
  border: 1px solid var(--border);
  overflow: hidden;
}

.tool-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.tool-header-info { flex: 1; }

.tool-category {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.tool-name {
  font-family: 'Lora', serif;
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}



.tool-tldr-row {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.tool-tldr {
  margin-top: 1.1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 300;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  line-height: 1.5;
}

.tldr-pill {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  flex-shrink: 0;
}

/* ----- Content area (tool page) ----- */
.content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.verdict-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
}

.tool-verdict-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.75rem;
}

.verdict-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.verdict-top-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.verdict-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.verdict-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  font-weight: 300;
}

.verdict-text strong { color: var(--text-primary); font-weight: 500; }

.visit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  align-self: flex-start;
  transition: opacity 0.15s;
}

.visit-btn:hover { opacity: 0.88; }
.content a.visit-btn { color: #fff; }

/* ----- Key Facts Block (snippet) ----- */
.tool-facts-block {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.facts-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.facts-header .section-label { margin-bottom: 0; }

/* Ghost wraps HTML cards — strip default card margins */
.verdict-text .kg-html-card,
.verdict-text .kg-card { margin: 0 !important; padding: 0 !important; }
.verdict-text .kg-html-card > div { margin: 0; }

/* ----- Key Facts ----- */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.fact-item:last-child:nth-child(3n - 1) {
  grid-column: span 2;
}

.fact-item:last-child:nth-child(3n - 2) {
  grid-column: span 3;
}

.fact-item {
  background: var(--bg-card);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.fact-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.fact-value { font-size: 0.9rem; font-weight: 500; }
.fact-sub { font-size: 0.775rem; color: var(--text-secondary); }

/* ----- Alternatives grid ----- */
.alt-grid {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

/* ----- Page content ----- */
.page-hero {
  max-width: 660px;
  margin: 0 auto;
  padding: 4rem 2rem 2rem;
}

.page-hero h1 {
  font-family: 'Lora', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.page-content {
  max-width: 660px;
  margin: 0 auto;
  padding: 1rem 2rem 5rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  font-weight: 300;
}

.page-content h2 {
  font-family: 'Lora', serif;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 2rem 0 0.75rem;
}

.page-content p { margin-bottom: 0.9rem; }
.page-content a { color: var(--accent); }
.content a { color: var(--accent); }
.content a:hover { opacity: 0.8; }

.content ul,
.content ol {
  padding-left: 1.75rem !important;
  margin: 0 0 1.25rem 0 !important;
  list-style-position: outside !important;
  color: var(--text-secondary);
  line-height: 1.75;
}

.content ol { list-style-type: decimal !important; }
.content ul { list-style-type: disc !important; }

.content li {
  display: list-item !important;
  margin-bottom: 0.5rem;
}

/* ----- Footer ----- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 3rem 2rem 2rem;
}

.footer-inner {
  max-width: var(--footer-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2rem;
}

.footer-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 0 0 0;
  width: 100%;
}

.footer-logo {
  font-family: 'Lora', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: inline-block;
  margin-bottom: 0.6rem;
}

.footer-logo span { color: var(--accent); }

.footer-tagline {
  font-size: 0.8rem;
  color: var(--accent);
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 1.25rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0;
}

.social-link {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.15s;
}

.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.footer-newsletter { margin-top: 1.25rem; }

.footer-newsletter p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 0.75rem;
  max-width: 260px;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 260px;
}

.newsletter-input {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
  font-size: 0.825rem;
  font-family: 'DM Sans', sans-serif;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
}

.newsletter-input::placeholder { color: var(--text-muted); }
.newsletter-input:focus { border-color: var(--accent); }

.newsletter-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.55rem 1rem;
  font-size: 0.825rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s;
  width: 100%;
}

.newsletter-btn:hover { opacity: 0.88; }

.footer-nav h4 {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-nav a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.15s;
}

.footer-nav a:hover { color: var(--accent); }

.footer-bottom {
  max-width: var(--footer-width);
  margin: 0 auto;
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copyright {
  font-size: 0.775rem;
  color: var(--text-muted);
}

.footer-copyright + .footer-copyright { margin-top: 0.25rem; }

.hero--centered {
  text-align: center;
  padding-top: 8rem;
  padding-bottom: 6rem;
}

.hero--centered p,
.hero--centered h1 {
  margin-left: auto;
  margin-right: auto;
}

/* ----- Animations ----- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero    { animation: fadeUp 0.4s ease both; }
.section { animation: fadeUp 0.4s 0.1s ease both; }
.tool-header,
.tool-tldr-row,
.content > * { animation: fadeUp 0.35s ease both; }

/* ----- Responsive ----- */
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .nav-links { gap: 1rem; }
  .hero { padding: 3rem 1.5rem 2rem; }
  .section { padding: 1.5rem 1.5rem 3rem; }
}

/* ----- Tool icon initial fallback (no feature image) ----- */
/* Uses CSS to show only the first letter of the tool name */
.tool-icon-initial {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: var(--accent);
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Clip to first character via indent trick */
  text-indent: 0;
  white-space: nowrap;
  letter-spacing: 100vw; /* pushes subsequent chars off-screen */
  padding-left: 0.1em;
}

/* ----- Required Koenig editor classes ----- */
/* Ghost requires these to be present and styled for wide/full-width cards */

.kg-width-wide {
  position: relative;
  width: 85vw;
  min-width: 100%;
  margin: auto calc(50% - 50vw);
  transform: translateX(calc(50vw - 50%));
}

.kg-width-full {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* Koenig card base styles */
.kg-card { margin: 1.5rem 0; }
.kg-image { max-width: 100%; height: auto; display: block; margin: 0 auto; }
.kg-image-card { text-align: center; }
.kg-image-card figcaption {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  text-align: center;
}

/* Gallery */
.kg-gallery-container { display: flex; flex-direction: column; gap: 4px; margin: 1.5rem 0; }
.kg-gallery-row { display: flex; gap: 4px; }
.kg-gallery-image { flex: 1; overflow: hidden; }
.kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Callout card */
.kg-callout-card {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  margin: 1.5rem 0;
}
.kg-callout-emoji { font-size: 1.25rem; flex-shrink: 0; }
.kg-callout-text { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }

/* Bookmark card */
.kg-bookmark-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  margin: 1.5rem 0;
  text-decoration: none;
  color: inherit;
  background: var(--bg-card);
}
.kg-bookmark-content { padding: 1rem 1.25rem; flex: 1; }
.kg-bookmark-title { font-weight: 500; font-size: 0.9rem; margin-bottom: 0.25rem; }
.kg-bookmark-description { font-size: 0.8rem; color: var(--text-secondary); }
.kg-bookmark-thumbnail { width: 140px; flex-shrink: 0; overflow: hidden; }
.kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Toggle card */
.kg-toggle-card { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin: 1.5rem 0; }
.kg-toggle-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  cursor: pointer;
  background: var(--bg-card);
  font-weight: 500;
  font-size: 0.9rem;
}
.kg-toggle-content { padding: 1rem 1.25rem; font-size: 0.9rem; color: var(--text-secondary); }

/* Divider */
.kg-divider { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

.page-content--no-header {
  padding-top: 3rem;
}

/* Page feature image */
.page-feature-image {
  width: 100%;
  border-radius: 12px;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
}

/* =========================================
   Start Here page
   ========================================= */

.start-hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 2rem 3rem;
  animation: fadeUp 0.4s ease both;
}

.start-hero h1 {
  font-family: 'Lora', serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.start-hero p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.75;
  max-width: 560px;
}

.start-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem;
}

.start-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.start-heading {
  font-family: 'Lora', serif;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.start-sub {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-weight: 300;
  line-height: 1.6;
}

.start-divider {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.start-divider hr {
  border: none;
  border-top: 1px solid var(--border);
}

/* ----- Sequence ----- */
.sequence {
  display: flex;
  flex-direction: column;
  animation: fadeUp 0.4s 0.1s ease both;
}

.sequence-step {
  display: flex;
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  align-items: flex-start;
  transition: opacity 0.15s;
}

.sequence-step:last-child { border-bottom: none; }
.sequence-step:hover { opacity: 0.85; }
.sequence-step:hover .step-title { color: var(--accent); }

.step-num {
  font-family: 'Lora', serif;
  font-size: 2.25rem;
  font-weight: 500;
  color: var(--border);
  line-height: 1;
  width: 2.25rem;
  flex-shrink: 0;
  padding-top: 0.1rem;
  transition: color 0.15s;
}

.sequence-step:hover .step-num { color: var(--accent); }

.step-content { flex: 1; }

.step-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  transition: color 0.15s;
}

.step-body {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  font-weight: 300;
  max-width: 520px;
}

.step-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}

/* ----- Use-case grid ----- */
.use-case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  animation: fadeUp 0.4s 0.2s ease both;
}

.use-case-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.4rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.use-case-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.use-case-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.use-case-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.35;
}

.use-case-desc {
  font-size: 0.825rem;
  color: var(--text-secondary);
  line-height: 1.55;
  flex: 1;
}

.use-case-arrow {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .use-case-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Homepage — new layout
   ============================================================ */

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: opacity 0.15s;
  max-width: 220px;
}

.btn-primary:hover { opacity: 0.88; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text-secondary);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: border-color 0.15s, color 0.15s;
  max-width: 220px;
}

.btn-secondary:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
}

/* Category grid */
.homepage-categories {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 2rem;
}

.homepage-categories-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.homepage-categories-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.homepage-category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}

.homepage-category-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.825rem;
  font-weight: 400;
  transition: all 0.15s;
}

.homepage-category-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* About strip */
.homepage-about {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 2rem 5rem;
}

.homepage-about blockquote {
  border-left: 2px solid var(--accent);
  padding-left: 1.5rem;
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.homepage-about-link {
  font-size: 0.825rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.homepage-about-link:hover { opacity: 0.8; }

@media (max-width: 640px) {
  .homepage-category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary {
    max-width: 260px;
    width: 260px;
    justify-content: center;
  }
}

/* ============================================================
   About Page
   ============================================================ */

.about-hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 2rem 3rem;
}

.about-hero h1 {
  font-family: 'Lora', serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-top: 1rem;
  max-width: 560px;
}

.about-section {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
}

.about-section--alt {
  background: var(--bg-card);
}

.about-section--last {
  border-bottom: 1px solid var(--border);
  margin-bottom: 4rem;
}

.about-section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2rem;
  align-items: start;
}

.about-section-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-top: 0.3rem;
}

.about-section-content p {
  font-size: 0.975rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1rem;
  font-weight: 300;
}

.about-section-content p:last-child { margin-bottom: 0; }

/* Criteria list */
.about-criteria {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.about-criterion {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 1.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.about-section--alt .about-criterion {
  background: var(--bg-card-hover);
}

.criterion-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
}

.criterion-desc {
  font-size: 0.825rem;
  color: var(--text-secondary);
  line-height: 1.6;
  font-weight: 300;
}

/* Contact button */
.about-contact-btn {
  display: inline-flex;
  align-items: center;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s;
}

.about-contact-btn:hover {
  background: var(--accent);
  color: #fff;
}

@media (max-width: 640px) {
  .about-section-inner {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

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

  .fact-item:last-child:nth-child(3n - 1) {
    grid-column: span 1;
  }

  .fact-item:last-child:nth-child(3n - 2) {
    grid-column: span 1;
  }

  .fact-item:last-child:nth-child(2n - 1) {
    grid-column: span 1;
  }
}

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

  .fact-item:last-child,
  .fact-item:last-child:nth-child(n) {
    grid-column: span 1;
  }
}

/* Space between facts snippet and review text */
.verdict-text .tool-facts-block {
  margin-bottom: 2.5rem;
}

/* Mobile menu search */
.mobile-menu-search {
  padding: 1rem 1.5rem 0.5rem;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
}

.mobile-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  padding: 0.6rem 1rem;
  width: 160px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.mobile-search-btn:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
}

@media (max-width: 640px) {
  .tool-header-top {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }
}

/* Start Here mobile fixes */
@media (max-width: 640px) {
  .start-hero {
    padding: 2.5rem 1.5rem 1.5rem;
  }

  .start-section {
    padding: 1.5rem 1.5rem;
  }

  .start-heading {
    font-size: 1.4rem;
  }

  .use-case-card {
    padding: 1rem 1.25rem;
  }

  .use-case-icon {
    font-size: 1.25rem;
    margin-bottom: 0.4rem;
  }

  .start-divider {
    margin: 0 1.5rem;
  }
}

/* ----- Guide pages ----- */
.guide-hero {
  max-width: var(--max-width);
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
}

.guide-title {
  font-family: 'Lora', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.guide-intro {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
}

.guide-body, .guide-jump-links {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.guide-body h2, .guide-jump-links h2 {
  font-family: 'Lora', serif;
  font-size: 1.6rem;
  color: var(--text-primary);
  margin: 3rem 0 1rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.guide-body h2, .guide-body h2:first-of-type, .guide-jump-links h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.guide-body h3, .guide-jump-links h3 {
  font-family: 'Lora', serif;
  font-size: 1.2rem;
  color: var(--text-primary);
  margin: 2rem 0 0.75rem;
}

.guide-body p, .guide-jump-links p {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.guide-body ul, .guide-body ol, .guide-jump-links ul, .guide-jump-links ol {
  color: var(--text-secondary);
  line-height: 1.75;
  margin: 0 0 1.25rem 0 !important;
  padding-left: 1.75rem !important;
  list-style-position: outside !important;
}

.guide-body ol {
  list-style-type: decimal !important;
}

.guide-body ul {
  list-style-type: disc !important;
}

.guide-body li, .guide-jump-links li {
  margin-bottom: 0.5rem;
  display: list-item !important;
}

.guide-body strong, .guide-jump-links strong {
  color: var(--text-primary);
  font-weight: 500;
}

.guide-body a, .guide-jump-links a {
  color: var(--accent);
}

.guide-body a, .guide-jump-links a:hover {
  opacity: 0.8;
}

.guide-toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 3rem;
}

.guide-toc p {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.75rem !important;
}

.guide-toc ul {
  list-style: none;
  margin: 0 !important;
}

.guide-toc ul li {
  margin-bottom: 0.5rem;
}

.guide-toc ul li a {
  color: var(--accent) !important;
  text-decoration: none;
  font-size: 0.95rem;
}

.guide-toc ul li a:hover {
  color: var(--accent) !important;
}

.gh-content p,
.guide-body p, .guide-jump-links p {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.gh-content h2,
.guide-body h2, .guide-jump-links h2 {
  font-family: 'Lora', serif;
  font-size: 1.6rem;
  color: var(--text-primary);
  margin: 3rem 0 1rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.gh-content h3,
.guide-body h3, .guide-jump-links h3 {
  font-family: 'Lora', serif;
  font-size: 1.2rem;
  color: var(--text-primary);
  margin: 2rem 0 0.75rem;
}

.gh-content ul,
.gh-content ol,
.guide-body ul,
.guide-body ol,
.guide-jump-links ul,
.guide-jump-links ol {
  color: var(--text-secondary);
  line-height: 1.75;
  margin: 0 0 1.25rem 0 !important;
  padding-left: 1.75rem !important;
  list-style-position: outside !important;
}

.gh-content ol,
.guide-body ol {
  list-style-type: decimal !important;
}

.gh-content ul,
.guide-body ul {
  list-style-type: disc !important;
}

.gh-content li,
.guide-body li,
.guide-jump-links li {
  margin-bottom: 0.5rem;
  display: list-item !important;
}

.kg-html-card ul,
.kg-html-card ol {
  padding-left: 1.75rem !important;
  margin: 0 0 1.25rem 0 !important;
  list-style-position: outside !important;
  color: var(--text-secondary);
  line-height: 1.75;
}

.kg-html-card ol {
  list-style-type: decimal !important;
}

.kg-html-card ul {
  list-style-type: disc !important;
}

.kg-html-card li {
  display: list-item !important;
  margin-bottom: 0.5rem;
}

.guide-callout {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.guide-callout p {
  margin: 0 !important;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.guide-next {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  margin-top: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-decoration: none;
}

.guide-next:hover {
  border-color: var(--accent);
}

.guide-next-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.guide-next-title {
  font-family: 'Lora', serif;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.guide-next-arrow {
  color: var(--accent);
  font-size: 1.5rem;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .guide-hero, .guide-body, .guide-jump-links {
    padding: 0 1rem;
  }
}

/* =========================================
   Blog listing page
   ========================================= */

.blog-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}

.blog-header {
  margin-bottom: 3rem;
}

.blog-title {
  font-family: 'Lora', serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.blog-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.blog-card {
  display: block;
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.blog-card:hover { background: var(--bg-card-hover); }

.blog-card-image {
  width: 100%;
  aspect-ratio: 16 / 7;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.02);
}

.blog-card-body {
  padding: 1.5rem;
}

.blog-card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.blog-card-title {
  font-family: 'Lora', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  line-height: 1.35;
}

.blog-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.blog-card-read {
  font-size: 0.825rem;
  color: var(--accent);
  font-weight: 500;
}

/* =========================================
   Blog post page
   ========================================= */

.blog-post-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
}

.blog-post-header {
  margin-bottom: 2rem;
}

.blog-post-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.blog-post-title {
  font-family: 'Lora', serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.blog-post-excerpt {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
}

.blog-post-hero {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2.5rem;
}

.blog-post-hero img {
  width: 100%;
  height: auto;
  display: block;
}

.blog-content {
  font-size: 1rem;
  line-height: 1.75;
}

/* Mobile */
@media (max-width: 640px) {
  .blog-page,
  .blog-post-page {
    padding: 2rem 1rem 3rem;
  }

  .blog-post-title {
    font-size: 1.5rem;
  }

  .blog-title {
    font-size: 1.5rem;
  }
}

/* =========================================
   unlogged Auth landing page
   ========================================= */

.auth-page {
  --auth-max: 860px;
}

/* Hero */
.auth-hero {
  padding: 5rem 2rem 4rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.auth-hero-inner {
  max-width: 580px;
  margin: 0 auto;
}

.auth-app-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  overflow: hidden;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.auth-app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.auth-hero-title {
  font-family: 'Lora', serif;
  font-size: 2.75rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.auth-hero-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 2rem;
}

.auth-hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.auth-btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.15s;
}

.auth-btn-primary:hover { opacity: 0.88; }

.auth-btn-large {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

.auth-platform-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* Screenshots */
.auth-screenshots {
  padding: 4rem 2rem;
  background: linear-gradient(180deg, var(--bg) 0%, #1f1a13 100%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.auth-screenshots-inner {
  max-width: var(--auth-max);
  margin: 0 auto;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  justify-content: center;
}

.auth-screenshot-frame {
  flex: 0 0 auto;
  width: 200px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.07);
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.auth-screenshot-mid {
  transform: translateY(-16px);
}

.auth-screenshot-frame:hover {
  transform: translateY(-4px);
}

.auth-screenshot-mid:hover {
  transform: translateY(-20px);
}

.auth-screenshot-frame img {
  width: 100%;
  display: block;
}

/* Features */
.auth-features {
  padding: 4rem 2rem;
  border-bottom: 1px solid var(--border);
}

.auth-features-inner {
  max-width: var(--auth-max);
  margin: 0 auto;
}

.auth-section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.auth-section-title {
  font-family: 'Lora', serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2.5rem;
  line-height: 1.25;
}

.auth-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.auth-feature-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.auth-feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.auth-icon-green  { background: #1a3a20; color: #5abf6a; }
.auth-icon-orange { background: #3a2010; color: var(--accent); }
.auth-icon-blue   { background: #102030; color: #5a9abf; }
.auth-icon-accent { background: var(--accent-soft); color: var(--accent); }
.auth-icon-purple { background: #251535; color: #9a7abf; }
.auth-icon-muted  { background: var(--tag-bg); color: var(--text-secondary); }

.auth-feature-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.auth-feature-desc {
  font-size: 0.825rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Standards strip */
.auth-standards {
  padding: 2.5rem 2rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.auth-standards-inner {
  max-width: var(--auth-max);
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
}

.auth-standards-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 500;
  flex-shrink: 0;
}

.auth-standards-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Beta signup */
.auth-beta {
  padding: 5rem 2rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.auth-beta-inner {
  max-width: 480px;
  margin: 0 auto;
}

.auth-beta-title {
  font-family: 'Lora', serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.auth-beta-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.auth-beta-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* Byline */
.auth-byline {
  padding: 2rem;
  text-align: center;
  font-size: 0.825rem;
  color: var(--text-muted);
}

.auth-byline a {
  color: var(--text-secondary);
  text-decoration: none;
}

.auth-byline a:hover { color: var(--accent); }

/* Mobile */
@media (max-width: 640px) {
  .auth-hero { padding: 3.5rem 1.25rem 3rem; }
  .auth-hero-title { font-size: 2rem; }

  .auth-screenshots { padding: 3rem 1rem; }
  .auth-screenshots-inner { gap: 0.75rem; }
  .auth-screenshot-frame { width: 130px; border-radius: 20px; }
  .auth-screenshot-mid { transform: translateY(-10px); }

  .auth-features { padding: 3rem 1.25rem; }
  .auth-feature-grid { grid-template-columns: 1fr; }

  .auth-standards-inner { flex-direction: column; gap: 0.5rem; }

  .auth-beta { padding: 3.5rem 1.25rem; }
}

@media (max-width: 420px) {
  .auth-screenshot-frame { width: 100px; border-radius: 16px; }
}
