/*
Theme Name: Huspärmen Child
Template: twentytwentyfive
*/

/* =========================
   TOKENS
========================= */
:root {
  --hp-ink: #2F2F2F;
  --hp-muted: #666;
  --hp-border: #E7E7E7;
  --hp-bg: #ffffff;
  --hp-surface: #fafafa;

  --hp-accent: #5E6F64;

  --hp-success: #2e7d32;
  --hp-error: #b00020;
  --hp-warn-bg: #fff3cd;

  --hp-2: 8px;
  --hp-3: 12px;
  --hp-4: 16px;
  --hp-5: 20px;
  --hp-6: 24px;
  --hp-7: 32px;
  --hp-8: 40px;
  --hp-9: 60px;

  --hp-radius-sm: 6px;
  --hp-radius-md: 10px;
  --hp-radius-lg: 14px;

  --hp-shadow: 0 6px 20px rgba(0,0,0,0.06);

  --hp-font: 'Inter', system-ui, sans-serif;
}

/* =========================
   BASE
========================= */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: var(--hp-font);
  color: var(--hp-ink);
  line-height: 1.5;
  margin: 0;
}

/* LINKS */
a {
  color: var(--hp-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* FOCUS */
:focus-visible {
  outline: 2px solid var(--hp-accent);
  outline-offset: 2px;
}

/* =========================
   LAYOUT
========================= */
.hp-container {
  max-width: 600px;
  margin: 0 auto;
  padding: var(--hp-9) var(--hp-5);
}

.hp-center {
  text-align: center;
}

/* =========================
   TYPO
========================= */
.hp-title {
  font-size: 2rem;
  margin-bottom: var(--hp-8);
}

.hp-muted {
  color: var(--hp-muted);
}

/* =========================
   CARD
========================= */
.hp-card {
  background: var(--hp-bg);
  border: 1.5px solid var(--hp-ink);
  padding: var(--hp-7);
  border-radius: var(--hp-radius-md);
}

.hp-card--elevated {
  border-color: transparent;
  box-shadow: var(--hp-shadow);
}

/* =========================
   BUTTONS
========================= */
.hp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: var(--hp-radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.15s ease;
}

.hp-btn:active {
  transform: translateY(1px);
}

.hp-btn--primary {
  background: var(--hp-accent);
  color: white;
}

.hp-btn--primary:hover {
  opacity: 0.9;
}

.hp-btn--outline {
  border: 1px solid var(--hp-ink);
  color: var(--hp-ink);
}

.hp-big-btn {
  width: 100%;
  margin-top: var(--hp-4);
}

/* =========================
   PROGRESS
========================= */
.hp-progress-bar {
  width: 100%;
  height: 10px;
  background: var(--hp-border);
  border-radius: 999px;
}

.hp-progress-fill {
  height: 100%;
  background: var(--hp-accent);
  border-radius: 999px;
}

/* =========================
   PDF PREVIEW
========================= */
.hp-pdf-preview {
  max-width: 700px;
  margin: 40px auto;
}

.hp-pdf-mock {
  position: relative;
}

.hp-pdf-page {
  background: white;
  padding: var(--hp-6);
  margin-bottom: var(--hp-5);
  border-radius: var(--hp-radius-md);
  box-shadow: var(--hp-shadow);
}

.hp-pdf-overlay {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hp-paywall {
  background: white;
  padding: var(--hp-6);
  border-radius: var(--hp-radius-lg);
  text-align: center;
}

/* =========================
   SPINNER
========================= */
.hp-spinner {
  margin: 20px auto;
  width: 40px;
  height: 40px;
  border: 4px solid #ddd;
  border-top: 4px solid var(--hp-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* =========================
   STATES
========================= */
.hp-success {
  color: var(--hp-success);
}

.hp-error {
  color: var(--hp-error);
}

/* =========================
   ACCESSIBILITY
========================= */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
/* =========================
   APP HEADER
========================= */

.hp-app-header {
  border-bottom: 1px solid var(--hp-border);
  background: var(--hp-bg);
}

.hp-app-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 14px 20px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hp-logo {
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--hp-ink);
}

.hp-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.hp-nav a {
  color: var(--hp-ink);
  font-size: 14px;
}

.hp-nav-cta {
  background: var(--hp-accent);
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
}
/* =========================
   DASHBOARD
========================= */

.hp-task-list {
  list-style: none;
  padding: 0;
}

.hp-task-list li {
  margin-bottom: 10px;
}

.hp-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Progress via CSS variable */
.hp-progress-fill {
  width: var(--hp-progress, 0%);
}

/* Tasks */
.hp-task-list {
  list-style: none;
  padding: 0;
  margin-top: var(--hp-5);
  border-top: 1px solid var(--hp-border);
}

.hp-task-item {
  padding: var(--hp-4) 0;
  border-bottom: 1px solid var(--hp-border);
  display: flex;
  justify-content: space-between;
}

.hp-task-item.is-done {
  opacity: 0.9;
}

.hp-task-item.is-todo a {
  color: var(--hp-accent);
}

/* Actions spacing */
.hp-actions {
  margin-top: var(--hp-4);
}
/* Progress */
.hp-progress-fill {
  width: var(--hp-progress, 0%);
}

/* Tasks */
.hp-task-list {
  list-style: none;
  padding: 0;
  margin-top: var(--hp-5);
  border-top: 1px solid var(--hp-border);
}

.hp-task-item {
  padding: var(--hp-4) 0;
  border-bottom: 1px solid var(--hp-border);
  display: flex;
  justify-content: space-between;
}

.hp-task-item.is-done {
  opacity: 0.85;
}

.hp-task-item.is-todo a {
  color: var(--hp-accent);
}

/* Conversion block */
.hp-conversion {
  text-align: center;
}

.hp-micro-copy {
  font-size: 13px;
  color: var(--hp-muted);
  margin-top: 10px;
}
/* PDF preview */
.hp-pdf-wrapper {
  position: relative;
}

.hp-pdf-mock {
  opacity: 0.6;
}

/* Pages */
.hp-pdf-page {
  background: white;
  padding: 24px;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.hp-cover {
  text-align: center;
  padding: 60px 20px;
}

/* Overlay */
.hp-pdf-overlay {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Paywall */
.hp-paywall {
  background: white;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  max-width: 320px;
}

.hp-paywall-list {
  text-align: left;
  margin: 15px 0;
  padding-left: 18px;
}

.hp-paywall-list li {
  margin-bottom: 6px;
}
/* Next step */
.hp-next-step {
  border: 2px solid var(--hp-accent);
}

/* Task layout */
.hp-task-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/* HERO */
.hp-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hp-badge {
  font-size: 0.75rem;
  padding: 4px 8px;
  border: 1px solid var(--hp-ink);
  border-radius: 6px;
}

.hp-hero-progress {
  margin-top: var(--hp-5);
}

.hp-hero-meta {
  margin-top: 8px;
  display: flex;
  gap: 10px;
  align-items: baseline;
}

/* Next step */
.hp-next-step {
  border-left: 4px solid var(--hp-accent);
}

/* Soft CTA */
.hp-soft-cta {
  text-align: center;
  color: var(--hp-muted);
  font-size: 0.95rem;
}
.hp-flex-between {
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.hp-form-grid {
  display:grid;
  gap:12px;
  margin-top:16px;
}

.hp-form-grid input {
  padding:10px;
  border:1px solid var(--hp-border);
  border-radius:6px;
  font-size:14px;
}
.hp-address {
  font-size: 1.1rem;
  margin-top: 8px;
  color: var(--hp-muted);
}

.hp-facts {
  margin-top: 20px;
  display: grid;
  gap: 12px;
}

.hp-fact {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--hp-border);
  padding-top: 10px;
}

.hp-fact-label {
  color: var(--hp-muted);
  font-size: 0.9rem;
}

.hp-fact-value {
  font-weight: 500;
}
.hp-address {
  font-size: 1.1rem;
  margin-top: 8px;
  color: var(--hp-muted);
}

.hp-facts {
  margin-top: 20px;
  display: grid;
  gap: 12px;
}

.hp-fact {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--hp-border);
  padding-top: 10px;
}

.hp-fact-label {
  color: var(--hp-muted);
}

.hp-fact-value {
  font-weight: 500;
}

#hp-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #2F2F2F;
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.2s ease;
  font-size: 14px;
  z-index: 9999;
}

#hp-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.hp-input {
  width: 100%;
  padding: 10px;
  margin-bottom: 8px;
  border: 1px solid var(--hp-border);
  border-radius: 6px;
}

.hp-list {
    list-style: none;
    padding: 0;
}

.hp-list li {
    padding: 8px 0;
    font-size: 16px;
}

.hp-app-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.hp-flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hp-logo {
    font-weight: bold;
    text-decoration: none;
    color: #000;
}

.hp-nav {
    display: flex;
    gap: 15px;
    align-items: center;
}

.hp-nav-link {
    text-decoration: none;
    color: #333;
}

.hp-nav-cta {
    color: #28a745;
    font-weight: bold;
}

.hp-badge {
    background: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
}
.hp-doc-list {
    list-style: none;
    padding: 0;
}

.hp-doc-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}