@font-face {
  font-family: 'Playfair Display';
  src: url('/public/fonts/playfair-display-700-latin.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('/public/fonts/playfair-display-700-italic-latin.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/public/fonts/inter-400-700-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f2ede6;
  --bg-alt: #e8dccb;
  --card: #fffbf6;
  --ink: #211a14;
  --muted: #63584d;
  --accent: #ad5b36;
  --accent-dark: #6f3a22;
  --accent-2: #326f66;
  --border: #d9cbbb;
  --shadow: rgba(27, 19, 14, 0.085);
  --ring: rgba(173, 91, 54, 0.2);

  /* Semantic tokens (mapped to palette) */
  --stone: #ad5b36;
  --stone-light: #c98a68;
  --sage: #326f66;
  --sage-light: #d4e8e5;
  --cream: #f2ede6;
  --warm-white: #fffbf6;
  --charcoal: #211a14;

  /* Shadow scale */
  --shadow-soft: 0 2px 8px rgba(27, 19, 14, 0.05);
  --shadow-card: 0 8px 24px rgba(27, 19, 14, 0.085);
  --shadow-elevated: 0 16px 40px rgba(27, 19, 14, 0.12);

  /* Landing page palette */
  --l-bg: #f2ede6;
  --l-bg-alt: #e8dccb;
  --l-bg-dark: #211a14;
  --l-bg-dark-alt: #3c2919;
  --l-card: #fffbf6;
  --l-ink: #211a14;
  --l-muted: #63584d;
  --l-accent: #ad5b36;
  --l-accent-light: #c98a68;
  --l-accent-dark: #6f3a22;
  --l-accent-2: #326f66;
  --l-border: #d9cbbb;
  --l-on-dark: #f2ede6;
  --l-on-dark-muted: #b8a99a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% -6%, rgba(255, 240, 218, 0.45) 0%, transparent 34%),
    radial-gradient(circle at 94% 4%, rgba(223, 236, 230, 0.4) 0%, transparent 30%),
    linear-gradient(180deg, #f7f2eb 0%, var(--bg) 52%, #ebe1d3 100%);
}

h1,
h2,
h3 {
  letter-spacing: -0.012em;
  line-height: 1.16;
}

p {
  line-height: 1.68;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px clamp(16px, 4vw, 48px) 48px;
}

.login-page {
  align-items: center;
  justify-content: center;
}

.login-page > .site-header {
  background: none;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
}

.plan-expiry-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 20px var(--shadow);
}

.plan-expiry-banner p {
  margin: 0;
  font-weight: 600;
  line-height: 1.4;
}

.plan-expiry-banner.is-warning {
  background: #fff7e8;
  border-color: #e0be77;
  color: #6d4a10;
}

.plan-expiry-banner.is-expired {
  background: #fff0ee;
  border-color: #d98f84;
  color: #7a2416;
}

.plan-limit-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid #e0be77;
  box-shadow: 0 8px 20px var(--shadow);
  background: #fff7e8;
  color: #6d4a10;
}

.plan-limit-banner + .plan-limit-banner {
  margin-top: 8px;
}

.plan-limit-banner p {
  margin: 0;
  font-weight: 600;
  line-height: 1.4;
}

.pending-deletion-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid #d98f84;
  box-shadow: 0 8px 20px var(--shadow);
  background: #fff0ee;
  color: #7a2416;
}

.pending-deletion-banner p {
  margin: 0;
  font-weight: 600;
  line-height: 1.4;
}

.pending-deletion-banner .banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.pending-deletion-card {
  background: #fff0ee;
  border: 1px solid #d98f84;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 12px;
  color: #7a2416;
}

.pending-deletion-card p {
  margin: 0 0 4px 0;
}

.pending-deletion-card .item-actions {
  margin-top: 8px;
}

.pro-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 20px;
  background: var(--accent-dark);
  color: #f2ede6;
  border-radius: 12px 12px 0 0;
  font-size: 0.88rem;
  font-weight: 500;
}

.pro-bar a {
  color: #f2ede6;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 999px;
  transition: background-color 0.16s ease;
}

.pro-bar a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.pro-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pro-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pro-bar-create {
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  font-size: 0.82rem;
}

.wizard-step-indicator {
  display: flex;
  gap: 12px;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.wizard-step {
  font-size: 0.82rem;
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  white-space: nowrap;
}

.wizard-step.active {
  color: var(--ink);
  background: var(--bg);
  border-color: var(--accent);
  font-weight: 600;
}

.wizard-step.completed {
  color: var(--accent-2, #326f66);
  border-color: var(--accent-2, #326f66);
  text-decoration: none;
}

a.wizard-step.completed:hover {
  background: var(--bg-alt, #f5f0eb);
}

.verify-resume-banner {
  max-width: 540px;
  margin: 1rem auto;
  padding: 0.75rem 1rem;
  background: var(--bg-alt, #f5f0eb);
  border: 1px solid var(--accent-2, #326f66);
  border-radius: 8px;
  text-align: center;
}
.verify-resume-banner p {
  margin: 0 0 0.5rem;
}
.verify-resume-banner .btn {
  font-size: 0.88rem;
}

.skip-link {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--muted, #63584d);
  text-decoration: underline;
  margin-top: 0.25rem;
}
.skip-link:hover {
  color: var(--accent-2, #326f66);
}

.payment-provider-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.payment-provider-buttons .provider-form {
  flex: 1;
  min-width: 140px;
}
.payment-provider-buttons .btn {
  width: 100%;
}
.btn-vipps {
  background: #ff5b24;
  color: #fff;
  border-color: #ff5b24;
}
.btn-vipps:hover {
  background: #e64e1c;
  border-color: #e64e1c;
}

.vipps-polling-widget {
  max-width: 540px;
  margin: 1rem auto;
  padding: 1rem;
  background: var(--bg-alt, #f5f0eb);
  border: 1px solid var(--accent-2, #326f66);
  border-radius: 8px;
  text-align: center;
}
.vipps-polling-widget .spinner {
  width: 24px;
  height: 24px;
  margin: 0.5rem auto;
  border: 3px solid var(--muted, #63584d);
  border-top-color: var(--accent-2, #326f66);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.pro-bar .link {
  color: #f2ede6;
  font-size: 0.88rem;
  font-weight: 500;
}

.pro-bar + .site-header {
  border-radius: 0 0 18px 18px;
}

.site-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 auto;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 251, 246, 0.9);
  box-shadow: var(--shadow-card);
  position: relative;
  z-index: 3;
  backdrop-filter: blur(10px);
}

.brand-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  display: block;
}

.brand {
  text-decoration: none;
  color: inherit;
}

.brand-sub {
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  border-radius: 999px;
  padding: 5px 10px;
  transition: background-color 0.16s ease, color 0.16s ease;
  white-space: nowrap;
}

.nav a:hover {
  background: rgba(33, 26, 20, 0.06);
  color: var(--ink);
}

.nav a.is-active {
  background: var(--accent-dark);
  color: #fff;
}

.nav a.is-active:hover {
  background: var(--accent);
}

.nav a.nav-alert {
  font-weight: 700;
}

.nav .btn.small {
  font-size: 0.82rem;
  padding: 5px 12px;
  color: #fff;
}

.nav-icon-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.nav-icon:hover {
  background: rgba(33, 26, 20, 0.06);
  color: var(--ink);
}

.nav-icon.is-active {
  background: var(--accent-dark);
  color: #fff;
}

.nav-icon .notification-count {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  font-size: 0.65rem;
}

.nav-close {
  display: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 10px 20px var(--shadow);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}

.nav-toggle-bar {
  width: 20px;
  height: 2px;
  background: var(--ink);
  display: block;
  border-radius: 999px;
}

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

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(33, 26, 20, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1400;
}

body.nav-open .nav-overlay {
  opacity: 1;
  pointer-events: auto;
}

.notification-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  line-height: 1;
}

.inline {
  display: inline;
}

.inline-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-estate-switch {
  min-width: 0;
  margin-left: 0;
}

.nav-estate-switch select {
  width: auto;
  min-width: 0;
  font-size: 0.82rem;
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--bg-alt);
  border-color: var(--border);
}

.nav-estate-switch .btn.small {
  font-size: 0.78rem;
  padding: 4px 10px;
}

.nav-lang {
  margin-top: 4px;
}

.lang-toggle {
  font-size: 0.85em;
  opacity: 0.75;
}

.lang-toggle:hover {
  opacity: 1;
}

main {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(145deg, var(--warm-white) 0%, var(--bg-alt) 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

/* ===== Non-landing hero (login, register, etc.) ===== */
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 12px;
  line-height: 1.05;
}

.hero p {
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.66;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.hero-panel {
  display: grid;
  gap: 16px;
  background: var(--card);
  border-radius: 20px;
  padding: 20px;
  border: 1px solid var(--border);
}

/* ===== Landing page ===== */
.landing-page {
  background: var(--l-bg);
  color: var(--l-ink);
}

.landing-page .page {
  padding: 0;
  gap: 0;
  max-width: 100%;
}

.landing-page main {
  max-width: 100%;
}

.landing-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
  width: 100%;
}

/* --- Hero (dark) --- */
.landing-hero {
  position: relative;
  background: var(--l-bg-dark);
  padding: 80px 0 72px;
  overflow: hidden;
  text-align: center;
}

.landing-hero::before,
.landing-hero::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  z-index: 0;
  pointer-events: none;
}

.landing-hero::before {
  top: -200px;
  right: -100px;
  background: radial-gradient(circle, var(--l-accent), transparent 70%);
}

.landing-hero::after {
  bottom: -200px;
  left: -100px;
  background: radial-gradient(circle, var(--l-accent-2), transparent 70%);
}

.landing-hero .landing-container {
  position: relative;
  z-index: 1;
}

.landing-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  margin: 0 0 20px;
  background: linear-gradient(135deg, #fff 0%, var(--l-accent-light) 50%, var(--l-accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.landing-hero .landing-lead {
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--l-on-dark-muted);
  max-width: 600px;
  margin: 0 auto 32px;
}

.landing-hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.landing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.landing-btn-primary {
  background: linear-gradient(135deg, var(--l-accent), var(--l-accent-2));
  color: #fff;
  box-shadow: 0 4px 14px rgba(173, 91, 54, 0.35);
}

.landing-btn-primary:hover {
  box-shadow: 0 6px 20px rgba(173, 91, 54, 0.45);
}

.landing-btn-ghost {
  background: transparent;
  color: var(--l-on-dark-muted);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.landing-btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--l-on-dark);
}

.landing-btn-ghost-light {
  background: transparent;
  color: var(--l-muted);
  border: 1px solid var(--l-border);
}

.landing-btn-ghost-light:hover {
  border-color: var(--l-accent);
  color: var(--l-accent);
}

.landing-hero-trust {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--l-on-dark-muted);
}

.landing-hero-trust span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* --- Trust Bar --- */
.landing-trust-bar {
  background: var(--l-bg);
  border-top: 1px solid var(--l-border);
  border-bottom: 1px solid var(--l-border);
  padding: 24px 0;
}

.landing-trust-bar .landing-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.landing-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--l-muted);
  font-weight: 500;
}

/* --- Features (alternating) --- */
.landing-features {
  background: var(--l-card);
  padding: 72px 0;
}

.landing-features .landing-section-header {
  text-align: center;
  margin-bottom: 48px;
}

.landing-feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 48px;
}

.landing-feature-row:last-child {
  margin-bottom: 0;
}

.landing-feature-row.is-reversed {
  direction: rtl;
}

.landing-feature-row.is-reversed > * {
  direction: ltr;
}

.landing-feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: var(--l-bg-alt);
  margin-bottom: 16px;
}

.landing-feature-text h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--l-ink);
}

.landing-feature-text p {
  color: var(--l-muted);
  margin: 0;
  line-height: 1.7;
}

.landing-feature-card {
  background: var(--l-bg-alt);
  border: 1px solid var(--l-border);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  font-size: 3rem;
}

/* --- How It Works --- */
.landing-steps {
  background: var(--l-bg-alt);
  padding: 72px 0;
}

.landing-steps .landing-section-header {
  text-align: center;
  margin-bottom: 48px;
}

.landing-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.landing-step {
  text-align: center;
}

.landing-step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  background: var(--l-accent);
  color: #fff;
  margin-bottom: 16px;
}

.landing-step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--l-ink);
}

.landing-step p {
  color: var(--l-muted);
  margin: 0;
  line-height: 1.6;
  font-size: 0.95rem;
}

.landing-steps-line {
  position: absolute;
  top: 24px;
  left: calc(16.66% + 32px);
  right: calc(16.66% + 32px);
  height: 2px;
  border-top: 2px dashed var(--l-border);
  z-index: 0;
}

.landing-step-number {
  position: relative;
  z-index: 1;
}

/* --- Pricing Teaser --- */
.landing-pricing {
  background: var(--l-card);
  padding: 72px 0;
  text-align: center;
}

.landing-pricing .landing-section-header {
  margin-bottom: 40px;
}

.landing-pricing-card {
  max-width: 420px;
  margin: 0 auto;
  background: var(--l-card);
  border: 1px solid var(--l-border);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: var(--shadow-card);
  border-top: 3px solid transparent;
  border-image: linear-gradient(135deg, var(--l-accent), var(--l-accent-2)) 1;
  border-image-slice: 1;
  overflow: hidden;
}

.landing-pricing-card .landing-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--l-ink);
  margin: 0 0 8px;
}

.landing-pricing-card .landing-price-sub {
  font-size: 0.9rem;
  color: var(--l-muted);
  margin: 0 0 24px;
}

.landing-pricing-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  text-align: left;
}

.landing-pricing-list li {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--l-ink);
}

.landing-pricing-list li::before {
  content: '\2713';
  color: var(--l-accent);
  font-weight: 700;
  flex-shrink: 0;
}

.landing-pricing-link {
  display: block;
  margin-top: 16px;
  color: var(--l-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.landing-pricing-link:hover {
  color: var(--l-accent);
}

.landing-pro-callout {
  max-width: 520px;
  margin: 40px auto 0;
  background: linear-gradient(135deg, var(--l-accent), var(--l-accent-2));
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  color: #fff;
}

.landing-pro-callout h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: #fff;
}

.landing-pro-callout p {
  font-size: 0.95rem;
  margin: 0 0 20px;
  opacity: 0.9;
}

.landing-pro-callout .landing-btn {
  background: #fff;
  color: var(--l-accent);
  border-color: #fff;
}

.landing-pro-callout .landing-btn:hover {
  background: rgba(255, 255, 255, 0.9);
}

/* --- FAQ --- */
.landing-faq {
  background: var(--l-card);
  padding: 72px 0;
}

.landing-faq .landing-section-header {
  text-align: center;
  margin-bottom: 40px;
}

.landing-faq-list {
  max-width: 700px;
  margin: 0 auto;
}

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

.landing-faq-item summary {
  padding: 18px 0;
  font-weight: 600;
  font-size: 1.02rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--l-ink);
}

.landing-faq-item summary::-webkit-details-marker {
  display: none;
}

.landing-faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--l-muted);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

.landing-faq-item[open] summary::after {
  content: '\2212';
}

@keyframes faq-open {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.landing-faq-item .landing-faq-answer {
  padding: 0 0 18px;
  animation: faq-open 0.2s ease;
  color: var(--l-muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* --- Final CTA (dark) --- */
.landing-cta {
  position: relative;
  background: var(--l-bg-dark);
  padding: 72px 0;
  text-align: center;
  overflow: hidden;
}

.landing-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--l-accent), var(--l-accent-2));
}

.landing-cta .landing-container {
  position: relative;
  z-index: 1;
}

.landing-cta h2 {
  color: var(--l-on-dark);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  margin: 0 0 12px;
}

.landing-cta p {
  color: var(--l-on-dark-muted);
  margin: 0 0 32px;
  font-size: 1.05rem;
}

.landing-cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Section header (shared) --- */
.landing-section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--l-ink);
}

.landing-section-header p {
  color: var(--l-muted);
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* --- Scroll reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Landing responsive --- */
@media (max-width: 768px) {
  .landing-hero {
    padding: 56px 0 48px;
  }

  .landing-hero h1 {
    font-size: clamp(2rem, 7vw, 2.8rem);
  }

  .landing-feature-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .landing-feature-row.is-reversed {
    direction: ltr;
  }

  .landing-feature-card {
    min-height: 120px;
  }

  .landing-steps-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .landing-steps-line {
    display: none;
  }

  .landing-hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .landing-hero-actions .landing-btn {
    width: 100%;
    max-width: 300px;
  }

  .landing-trust-bar .landing-container {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .landing-hero h1 {
    font-size: clamp(1.8rem, 8vw, 2.2rem);
  }

  .landing-features,
  .landing-steps,
  .landing-pricing,
  .landing-faq,
  .landing-cta {
    padding: 48px 0;
  }

  .landing-pricing-card {
    padding: 28px 20px;
  }
}

.plan-grid {
  align-items: stretch;
}

.plan-card {
  display: grid;
  gap: 12px;
}

.plan-card-head h3 {
  margin-bottom: 8px;
}

.plan-price {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 8px 0 0;
}

.plan-limits p {
  margin: 0 0 6px;
}

@media (max-width: 720px) {
  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.info-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 10px 20px var(--shadow);
}

.info-card h3 {
  margin-top: 0;
}

.intro-nav-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.intro-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.intro-link {
  font-weight: 600;
  color: var(--accent-dark);
  text-decoration: underline;
}

.step-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 0.95rem;
  color: var(--text);
}

.step-indicator-accent {
  border-color: var(--accent);
  color: var(--accent-dark);
  font-weight: 600;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}

.intro-checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
}

.checklist-item.done {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--card));
}

.checklist-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.checklist-item.done .checklist-icon {
  color: var(--accent-dark);
  font-weight: 700;
}

.checklist-label {
  color: var(--text);
  text-decoration: none;
}

a.checklist-label:hover {
  text-decoration: underline;
}

.stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-label {
  color: var(--muted);
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 600;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.section-subtitle {
  margin: 2px 0 0;
  font-size: 0.85rem;
}

/* --- Toolbar --- */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  flex-wrap: wrap;
}

.search-bar {
  position: relative;
  flex: 1 1 240px;
  max-width: 380px;
  min-width: 160px;
}

.search-bar-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.search-bar input {
  width: 100%;
  padding: 8px 12px 8px 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  font-size: 0.9rem;
  color: var(--ink);
}

.search-bar input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--ring);
}

/* --- Category chips --- */
.category-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.chip:hover {
  background: var(--bg-alt);
}

.chip.is-active {
  background: var(--charcoal);
  color: #fff;
  border-color: var(--charcoal);
}

/* --- Legacy filter layout (still used by section-actions in other pages) --- */
.section-actions {
  display: grid;
  gap: 12px;
  width: 100%;
  align-items: start;
}

.section-tools {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.section-tools .section-actions {
  width: auto;
  margin-right: auto;
}

.section-tools .view-toggle {
  align-self: flex-start;
}

.filter-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.filter-toggle-btn svg {
  flex-shrink: 0;
}

.filter-control,
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-control input,
.filter-bar > input {
  width: 220px;
  max-width: 100%;
  flex: 1 1 220px;
}

.filter-toggle-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  border: 1px dashed var(--border);
  background: var(--warm-white);
  position: relative;
  z-index: 5;
}

.filter-panel[hidden] {
  display: none;
}

.filter-panel-header {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.filter-panel-title {
  font-weight: 600;
}

.filter-overlay {
  position: fixed;
  inset: 0;
  background: rgba(33, 26, 20, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 4;
}

.filter-overlay[hidden] {
  display: none;
}

.filters-open .filter-overlay {
  opacity: 1;
  pointer-events: auto;
}

.section-primary-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.bulk-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-bar .bulk-actions {
  flex-wrap: nowrap;
}

.bulk-actions select {
  min-width: 180px;
  width: auto;
}

.bulk-select {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0;
  z-index: 6;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.bulk-select:hover {
  background: var(--bg-alt);
}

.bulk-select:hover::after {
  content: attr(title);
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  background: var(--charcoal);
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
}

.bulk-select input {
  width: 14px;
  height: 14px;
  margin: 0;
}

@media (max-width: 960px) {
  .section-header {
    align-items: flex-start;
  }

  .section-tools {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }

  .toolbar {
    flex-wrap: wrap;
  }

  .toolbar-left {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .filter-panel {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-height: 70vh;
    overflow: auto;
    border-style: solid;
    box-shadow: 0 18px 36px var(--shadow);
  }

  .filter-panel-header {
    display: flex;
  }
}

.view-toggle {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--warm-white);
}

.view-toggle .btn {
  box-shadow: none;
}

.view-toggle .btn.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.items-grid {
  display: grid;
  gap: 24px;
  transition: gap 0.2s ease;
}

.items-grid.grid {
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 18px;
  align-items: start;
  margin-top: 8px;
}

.items-grid.grid .item-card {
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  align-content: start;
  height: fit-content;
  padding: 0;
  gap: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(27, 19, 14, 0.06);
}

.items-grid.grid .item-body {
  gap: 2px;
}

.items-grid.grid .item-card:hover {
  box-shadow: 0 4px 12px rgba(27, 19, 14, 0.10);
  transform: translateY(-1px);
}

.items-grid.grid .item-card > *:not(.item-image):not(.bulk-select) {
  padding-left: 10px;
  padding-right: 10px;
}

.items-grid.grid .item-body {
  padding-bottom: 10px;
}

.items-grid.grid .item-header {
  padding-top: 2px;
}

.items-grid.grid .item-image {
  border-radius: 0;
  width: 100%;
}

.items-grid.grid .item-image-stack {
  padding: 0;
}

.items-grid.grid .item-image img {
  width: 100%;
  height: 165px;
  border-radius: 0;
  border: none;
}

.items-grid.grid .item-header h3 {
  font-size: 0.88rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.items-grid.grid .item-description {
  display: none;
}

.items-grid.grid .item-meta {
  font-size: 0.75rem;
  gap: 8px;
}

.items-grid.grid .item-actions {
  gap: 6px;
  flex-wrap: nowrap;
  justify-content: space-between;
}

.items-grid.grid .item-actions .btn {
  min-width: 0;
  flex: 1 1 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.items-grid.grid .btn {
  padding: 5px 10px;
  font-size: 0.78rem;
  border-radius: 8px;
  gap: 3px;
}


.item-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) 1.1fr;
  gap: 20px;
  padding: 20px;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  position: relative;
  transition: box-shadow 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.item-card:hover {
  box-shadow: var(--shadow-elevated);
  border-color: var(--stone-light);
  transform: translateY(-2px);
}

.item-card[data-recycling="1"] {
  background: linear-gradient(135deg, rgba(200, 235, 218, 0.98), rgba(228, 243, 236, 0.6) 85%);
  border-color: #7dc4a5;
  border-left: 4px solid #4aa87c;
}

.item-card[data-donating="1"] {
  background: linear-gradient(135deg, rgba(232, 210, 230, 0.98), rgba(243, 232, 242, 0.6) 85%);
  border-color: #c49dc2;
  border-left: 4px solid #a06e9e;
}

.item-card[data-donation-keep="1"] {
  background: linear-gradient(135deg, rgba(255, 210, 110, 0.95), rgba(255, 235, 180, 0.6) 85%);
  border-color: #d4a030;
  border-left: 4px solid #c08c10;
}

.item-card[data-claimed="1"] {
  background: linear-gradient(135deg, rgba(245, 218, 178, 0.95), rgba(251, 234, 210, 0.6) 85%);
  border-color: #d4a060;
  border-left: 4px solid #b8842e;
}

.item-card-placeholder {
  border-radius: 24px;
  border: 1px dashed var(--border);
  background: rgba(255, 250, 244, 0.5);
}

.item-card.is-collapsed:not(.is-overlay) .item-header .badge,
.item-card.is-collapsed:not(.is-overlay) .item-flag-toggles,
.item-card.is-collapsed:not(.is-overlay) .category-tags,
.item-card.is-collapsed:not(.is-overlay) .item-description,
.item-card.is-collapsed:not(.is-overlay) .claim,
.item-card.is-collapsed:not(.is-overlay) .interest-list,
.item-card.is-collapsed:not(.is-overlay) .comments {
  display: none;
}

.item-card.is-collapsed:not(.is-overlay) .item-meta span {
  display: none;
}

.item-card.is-collapsed:not(.is-overlay) .item-meta .item-meta__comments,
.item-card.is-collapsed:not(.is-overlay) .item-meta .item-meta__value {
  display: inline-flex;
}

.item-card.is-collapsed:not(.is-overlay) .item-actions > * {
  display: none;
}

.item-card.is-collapsed:not(.is-overlay) .item-actions > .item-action--interest,
.item-card.is-collapsed:not(.is-overlay) .item-actions > .item-action--claim {
  display: inline-flex;
}

.item-card.is-collapsed:not(.is-overlay) {
  cursor: pointer;
}

.item-card.is-overlay .bulk-select {
  display: none;
}

.item-image {
  overflow: hidden;
  border-radius: 18px;
}

.item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--border);
  transition: transform 0.3s ease;
}

.item-card:hover .item-image img {
  transform: scale(1.03);
}

.item-image-stack {
  position: relative;
  padding-right: 16px;
  padding-bottom: 16px;
  overflow: visible;
}

.item-image-slide {
  display: block;
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translate(0, 0) scale(0.98);
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.item-image-slide.is-active {
  position: relative;
  z-index: 3;
  opacity: 1;
  transform: translate(0, 0) scale(1);
  pointer-events: auto;
}

.item-image-slide.is-next {
  z-index: 2;
  opacity: 1;
  transform: translate(8px, 8px) scale(0.985);
}

.item-image-slide.is-back {
  z-index: 1;
  opacity: 1;
  transform: translate(16px, 16px) scale(0.97);
}

.item-image-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(27, 19, 14, 0.16);
  background: rgba(255, 250, 244, 0.92);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  z-index: 4;
}

.item-image-nav--prev {
  left: 10px;
}

.item-image-nav--next {
  right: 10px;
}

.item-image-counter {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(24, 18, 14, 0.7);
  color: #fff;
  font-size: 0.78rem;
  line-height: 1;
  z-index: 4;
}

.item-card.is-collapsed:not(.is-overlay) .item-image-nav,
.item-card.is-collapsed:not(.is-overlay) .item-image-counter {
  display: none;
}

.item-extra-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.item-extra-gallery-card {
  display: grid;
  gap: 8px;
}

.item-extra-gallery .image-button img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.image-button {
  display: block;
  padding: 0;
  border: none;
  background: none;
  width: 100%;
  cursor: zoom-in;
}

.image-button img {
  display: block;
}

.image-modal {
  position: fixed;
  inset: 0;
  background: rgba(24, 18, 14, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
}

.image-modal.open {
  display: flex;
}

.image-modal-content {
  position: relative;
  max-width: 95vw;
  max-height: 95vh;
  overflow: auto;
  background: var(--warm-white);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid var(--border);
}

.image-modal-content img {
  display: block;
  max-width: none;
  height: auto;
}

.image-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: none;
  background: var(--card);
  color: var(--ink);
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(27, 19, 14, 0.2);
}

.item-overlay {
  position: fixed;
  inset: 0;
  background: rgba(24, 18, 14, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
  overflow: auto;
}

.item-overlay.open {
  display: flex;
}

.item-overlay-content {
  position: relative;
  width: min(1080px, calc(100vw - 48px));
  max-height: 92vh;
  overflow: auto;
  background: var(--warm-white);
  border-radius: 24px;
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px var(--shadow);
  box-sizing: border-box;
}

.item-overlay .item-card {
  box-shadow: none;
  border: none;
  padding: 0;
  grid-template-columns: minmax(300px, 0.95fr) 1.05fr;
}

.item-overlay .item-image img {
  height: 360px;
}

.item-overlay-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  background: var(--warm-white);
  color: var(--ink);
  font-size: 1.6rem;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(27, 19, 14, 0.2);
  z-index: 2;
}

.cropper-overlay {
  position: fixed;
  inset: 0;
  background: rgba(24, 18, 14, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1200;
}

.cropper-overlay.open {
  display: flex;
}

.cropper-panel {
  width: min(900px, 94vw);
  background: var(--card);
  border-radius: 22px;
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px var(--shadow);
  display: grid;
  gap: 16px;
}

.cropper-panel h2 {
  margin: 0;
  font-family: 'Playfair Display', serif;
}

.cropper-stage {
  position: relative;
  width: 100%;
  height: 60vh;
  background: var(--charcoal);
  border-radius: 0;
  overflow: hidden;
  border: 2px solid var(--cream);
  touch-action: none;
}

.cropper-stage img {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: top left;
  user-select: none;
  touch-action: none;
  cursor: grab;
  z-index: 1;
}

.cropper-stage img.dragging {
  cursor: grabbing;
}

.cropper-frame {
  position: absolute;
  border: 2px solid #111;
  border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.28);
  cursor: move;
  z-index: 2;
  touch-action: none;
}

.cropper-handle {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: #111;
  border: 2px solid #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.cropper-handle.nw {
  top: 6px;
  left: 6px;
  cursor: nwse-resize;
}

.cropper-handle.ne {
  top: 6px;
  right: 6px;
  cursor: nesw-resize;
}

.cropper-handle.sw {
  bottom: 6px;
  left: 6px;
  cursor: nesw-resize;
}

.cropper-handle.se {
  bottom: 6px;
  right: 6px;
  cursor: nwse-resize;
}

.cropper-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.cropper-toggle {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 10px;
}

.cropper-zoom {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cropper-overlay.cropper-disabled .cropper-frame {
  display: none;
}

.cropper-zoom input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 180px;
  max-width: 240px;
  flex: 1;
  height: 18px;
  background: transparent;
  margin: 0;
  padding: 0;
  cursor: pointer;
}

.cropper-zoom input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  background: var(--border);
  border-radius: 999px;
}

.cropper-zoom input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  margin-top: -5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.cropper-zoom input[type="range"]::-moz-range-track {
  height: 6px;
  background: var(--border);
  border-radius: 999px;
}

.cropper-zoom input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.cropper-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.item-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.item-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.item-header h3 {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.item-flag-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.item-flag-toggles form {
  margin: 0;
}

.item-flag-toggles .badge {
  border: 1px solid var(--border);
  cursor: pointer;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--muted);
  font-size: 0.85rem;
}

.badge[hidden] {
  display: none !important;
}

.badge.category {
  background: #efe7dc;
  color: #5a4b40;
}

.badge.recycling {
  background: #c8ebda;
  color: #1a5740;
  border: 1px solid #7dc4a5;
  font-weight: 600;
}

.badge.donating {
  background: #e8d2e6;
  color: #5a2060;
  border: 1px solid #c49dc2;
  font-weight: 600;
}

.badge.donation-keep {
  background: #ffd26e;
  color: #5a3000;
  border: 1px solid #d4a030;
  font-weight: 600;
}

.badge.claim {
  background: #f5dab2;
  color: #6e4010;
  border: 1px solid #d4a060;
  font-weight: 600;
}

.badge.decided {
  background: #e0cce8;
  color: #4a1a70;
  border: 1px solid #b08cc0;
  font-weight: 600;
}

.badge.archived {
  background: #d5dee5;
  color: #2a3a47;
  border: 1px solid #9aacba;
  font-weight: 600;
}

.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.category-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #efe7dc;
  color: #5a4b40;
  font-size: 0.85rem;
}

.tag-remove {
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
}

.item-description {
  color: var(--muted);
  white-space: pre-wrap;
  margin: 0;
  line-height: 1.62;
}

.item-meta {
  display: flex;
  gap: 16px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
  flex-wrap: wrap;
}

.item-meta__value {
  font-weight: 600;
  color: var(--ink);
}

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

.claim-status {
  font-weight: 600;
  color: var(--accent-dark);
}

.claim-status.open {
  color: var(--accent-2);
}

.item-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.item-action--interest {
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.item-action--interest:active {
  transform: scale(0.95);
}

.item-action--interest.is-liked {
  background: var(--sage-light);
  color: var(--sage);
  border-color: var(--sage);
}

.interest-list {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
}

.interest-label {
  font-weight: 600;
  color: var(--ink);
}

.interest-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.interest-tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: #efe4d6;
  color: var(--muted);
  font-size: 0.85rem;
}

.comments {
  grid-column: 1 / -1;
  border-top: 1px dashed var(--border);
  padding-top: 16px;
}

.comments h4 {
  margin: 0 0 10px;
}

.comment {
  padding: 10px 12px;
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 10px;
}

.comment-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
}

.comment-body {
  margin: 6px 0 0;
  white-space: pre-wrap;
}

.comment-delete {
  margin-top: 6px;
}

.comment-delete .link {
  font-size: 0.85rem;
  color: var(--muted);
}

.upload-options {
  display: grid;
  gap: 12px;
}

.upload-options label {
  width: 100%;
}

.comment-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-start;
}

textarea,
input,
select {
  width: 100%;
  border-radius: 11px;
  border: 1px solid var(--border);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.98rem;
  line-height: 1.45;
  background: var(--warm-white);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

textarea:focus,
input:focus,
select:focus {
  outline: none;
  border-color: #c98a68;
  box-shadow: 0 0 0 3px var(--ring);
  background: #fff;
}

textarea {
  flex: 1;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 560;
  letter-spacing: 0.002em;
}

.checkbox {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.checkbox input {
  width: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.012em;
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow 0.15s ease, filter 0.15s ease, background-color 0.15s ease;
  box-shadow: var(--shadow-soft);
}

.btn:hover {
  box-shadow: var(--shadow-card);
  filter: saturate(1.02);
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ring), 0 8px 18px rgba(173, 91, 54, 0.2);
}

.btn:disabled {
  background: #c7b8aa;
  cursor: not-allowed;
  box-shadow: none;
}

.btn.small {
  padding: 8px 14px;
  font-size: 0.9rem;
}

.btn.ghost {
  background: transparent;
  color: var(--accent-dark);
  border: 1px solid #b68f79;
  box-shadow: none;
}

.btn.ghost:hover {
  background: rgba(33, 26, 20, 0.045);
  box-shadow: none;
}

.btn.accent {
  background: var(--accent-2);
  box-shadow: 0 6px 14px rgba(50, 111, 102, 0.2);
}

.btn.btn-recycling {
  background: #bfe6d2;
  color: #245a46;
  box-shadow: 0 8px 18px rgba(63, 138, 106, 0.2);
}

.btn.btn-donating {
  background: #e7c8e8;
  color: #5d2a66;
  box-shadow: 0 8px 18px rgba(111, 65, 132, 0.2);
}

.btn.danger {
  background: #b4462a;
  box-shadow: 0 8px 18px rgba(180, 70, 42, 0.25);
}

.btn.danger:hover {
  box-shadow: 0 12px 20px rgba(180, 70, 42, 0.3);
}

.btn.vipps-login-btn {
  background: #ff5b24;
  box-shadow: 0 8px 18px rgba(255, 91, 36, 0.28);
}

.btn.vipps-login-btn:hover {
  box-shadow: 0 12px 20px rgba(255, 91, 36, 0.35);
}

.btn.hero {
  padding: 14px 28px;
  font-size: 1.05rem;
  font-weight: 600;
  box-shadow: var(--shadow-card);
}

.btn.hero-outline {
  padding: 14px 28px;
  font-size: 1.05rem;
  font-weight: 600;
  background: transparent;
  color: var(--accent-dark);
  border: 2px solid var(--accent);
  box-shadow: none;
}

.btn.hero-outline:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-card);
}

.btn.sage {
  background: var(--sage);
  color: #fff;
  box-shadow: 0 6px 14px rgba(50, 111, 102, 0.2);
}

.btn.sage:hover {
  box-shadow: 0 8px 18px rgba(50, 111, 102, 0.28);
}

.btn.xl {
  height: 56px;
  padding: 14px 40px;
  font-size: 1.1rem;
}

.link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--muted);
  cursor: pointer;
}

.count {
  background: rgba(255, 255, 255, 0.25);
  padding: 0 3px;
  border-radius: 999px;
}

.flash {
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--warm-white);
  font-weight: 500;
  box-shadow: var(--shadow-soft);
}

.flash.error {
  border-color: #d7a296;
  color: #8f3e2e;
}

.flash.success {
  border-color: #9bc5b6;
  color: #2f6d5d;
}

.form-section {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.form-card {
  width: min(520px, 100%);
  background: var(--card);
  border-radius: 20px;
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.form-card.wide {
  width: min(720px, 100%);
}

.form-card.full-width {
  width: 100%;
  max-width: 100%;
}

.form-card h1 {
  margin-top: 0;
  font-family: 'Playfair Display', serif;
}

.compliance-section {
  margin-bottom: 1.5rem;
}

.compliance-section h2 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.compliance-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
}

.compliance-box ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.compliance-box li {
  margin-bottom: 0.25rem;
}

.invite-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.invite-row:last-child {
  border-bottom: none;
}

.invite-row input[type="email"] {
  grid-column: 1 / -1;
}

.invite-row select {
  width: auto;
  min-width: 140px;
}

.btn-icon {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 4px 10px;
  color: var(--muted);
  line-height: 1;
}

.btn-icon:hover {
  color: var(--danger, #c0392b);
  border-color: var(--danger, #c0392b);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
}

.category-picker {
  display: grid;
  gap: 10px;
}

.category-picker-input {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}

.user-card {
  background: var(--card);
  border-radius: 20px;
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px var(--shadow);
  overflow-x: auto;
}

.activity-card {
  background: var(--card);
  border-radius: 20px;
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px var(--shadow);
}

.activity-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.activity-list li {
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--warm-white);
  border: 1px solid var(--border);
}

.notification-item.unread {
  border-color: #e2b69a;
  background: #fff2e1;
}

.notification-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.notification-link:hover {
  text-decoration: none;
}

.activity-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.activity-label {
  font-weight: 600;
}

.activity-time {
  color: var(--muted);
  font-size: 0.85rem;
}

.activity-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.activity-note {
  margin: 10px 0 0;
  white-space: pre-wrap;
}

.user-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.user-table th,
.user-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.user-table th {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stack {
  display: grid;
  gap: 16px;
  margin: 16px 0;
}

.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.invite-note {
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff2e1;
  color: var(--accent-dark);
  font-weight: 500;
}

.login-alt-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.login-alt-divider::before,
.login-alt-divider::after {
  content: '';
  flex: 1;
  border-top: 1px solid var(--border);
}

.invite-list {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.invite-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--warm-white);
}

.invite-label {
  font-weight: 600;
  margin: 0 0 4px;
}

.invite-meta,
.invite-used,
.invite-open {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.invite-open {
  color: var(--accent-2);
  font-weight: 600;
}

.invite-actions {
  display: grid;
  gap: 10px;
}

.invite-actions input {
  font-size: 0.9rem;
}

.owner-panel {
  margin-top: 24px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff7ec;
  display: grid;
  gap: 12px;
}

.owner-panel h2 {
  margin: 0;
  font-size: 1.2rem;
}

.muted {
  color: var(--muted);
  line-height: 1.62;
}

.form-help {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 6px 0 0;
}

.form-error {
  color: #b00020;
  font-size: 0.85rem;
  margin: 6px 0 0;
}

.queue-step {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px dashed var(--border);
  border-radius: 14px;
  background: var(--warm-white);
}

.queue-title {
  margin: 0;
  font-size: 1rem;
}

.photo-queue-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.queue-file-btn {
  position: relative;
  overflow: hidden;
}

.queue-file-btn input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.photo-queue-status {
  font-size: 0.9rem;
  color: var(--muted);
}

.photo-queue-preview {
  border-radius: 14px;
  overflow: hidden;
  background: #f2ece2;
  border: 1px solid var(--border);
}

.photo-queue-preview img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  background: #f5f0e6;
}

.photo-queue-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.queue-feedback {
  min-height: 20px;
}

.queue-feedback.is-success {
  color: #1f6b36;
}

.queue-feedback.is-error {
  color: #b00020;
}

.choice-list {
  display: grid;
  gap: 12px;
  margin: 16px 0;
}

.choice-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--warm-white);
  box-shadow: 0 8px 18px var(--shadow);
}

.choice-card .muted {
  font-size: 0.85rem;
}

.choice-card-clickable {
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.choice-card-clickable:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 18px var(--shadow), 0 0 0 1px var(--accent);
}

.empty-state {
  text-align: center;
  padding: 30px;
  border-radius: 20px;
  border: 1px dashed var(--border);
  background: var(--warm-white);
}

.site-footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer-links {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.site-footer-links a {
  color: var(--muted);
}

.site-footer-links .link {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 22;
  display: flex;
  justify-content: center;
}

.cookie-banner[hidden],
.cookie-modal[hidden] {
  display: none !important;
}

.cookie-banner__card {
  width: min(900px, 100%);
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-elevated);
  padding: 16px;
  display: grid;
  gap: 12px;
}

.cookie-banner__title {
  margin: 0;
  font-weight: 700;
  color: var(--ink);
}

.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 23;
}

.cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.36);
}

.cookie-modal__dialog {
  position: relative;
  width: min(720px, calc(100vw - 32px));
  margin: 7vh auto;
  max-height: 86vh;
  overflow: auto;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--warm-white);
  box-shadow: 0 20px 40px rgba(27, 19, 14, 0.2);
  display: grid;
  gap: 14px;
}

.cookie-option {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--warm-white);
}

.cookie-option p {
  margin: 4px 0 0;
}

.cookie-option input[type='checkbox'] {
  width: 20px;
  height: 20px;
}

.cookie-option__state {
  font-size: 0.85rem;
  color: var(--muted);
  background: #efe5d8;
  border-radius: 999px;
  padding: 4px 10px;
}

.cookie-option--locked {
  background: #f4ede2;
}

.cookie-modal__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 12px;
}

body.cookie-modal-open {
  overflow: hidden;
}

@media (max-width: 980px) {
  body {
    line-height: 1.52;
  }

  .brand-title {
    font-size: 1.62rem;
  }

  .hero h1 {
    font-size: clamp(1.86rem, 5vw, 2.56rem);
  }
}

@media (max-width: 900px) {
  .item-card {
    grid-template-columns: 1fr;
  }

  .item-overlay .item-card {
    grid-template-columns: 1fr;
  }

  .item-overlay .item-image img {
    height: 280px;
  }

  .comment-form {
    flex-direction: column;
  }

  .item-header h3 {
    font-size: 1.28rem;
  }
}

@media (max-width: 860px) {
  .pro-bar {
    flex-wrap: wrap;
    font-size: 0.82rem;
    padding: 6px 14px;
    gap: 6px;
  }

  .pro-bar-right {
    gap: 4px;
  }

  body.nav-open .site-header {
    z-index: 1402;
  }

  .nav {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    height: calc(100vh - 40px);
    width: min(320px, 86vw);
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 18px 36px var(--shadow);
    z-index: 1401;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.nav-open .nav {
    display: flex;
  }

  .nav a {
    width: 100%;
  }

  .nav form.inline {
    width: 100%;
  }

  .nav form.inline .link {
    width: 100%;
    text-align: left;
    padding: 8px 0;
  }

  .nav .nav-estate-switch {
    width: 100%;
    margin-left: 0;
  }

  .nav .nav-estate-switch select,
  .nav .nav-estate-switch .btn.small {
    width: 100%;
  }

  .nav .btn.small {
    width: 100%;
    justify-content: center;
  }

  .nav-icon-group {
    flex-direction: row;
    width: 100%;
    gap: 8px;
    margin-left: 0;
  }

  .nav-icon {
    width: auto;
    height: auto;
    padding: 6px 10px;
    gap: 6px;
    border-radius: 999px;
  }

  .nav-icon::after {
    content: attr(aria-label);
    font-size: 0.9rem;
    font-weight: 500;
  }

  .nav-icon .notification-count {
    position: static;
    min-width: 20px;
    height: 20px;
    padding: 2px 6px;
    font-size: 0.75rem;
  }

  .nav-close {
    display: inline-flex;
    align-self: flex-end;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--ink);
    font-size: 1.5rem;
    line-height: 1;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

/* --- Contextual help tooltips --- */
.contextual-tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #eaf4fb;
  border: 1px solid #b8d8ef;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #1a3a52;
  animation: contextualTipIn 0.25s ease-out;
}

.contextual-tip-icon::before {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: 2px;
  background: #3a8fc2;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='9' fill='none' stroke='currentColor' stroke-width='1.5'/%3E%3Ctext x='10' y='14.5' text-anchor='middle' font-size='13' font-weight='600' fill='currentColor'%3Ei%3C/text%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='9' fill='none' stroke='currentColor' stroke-width='1.5'/%3E%3Ctext x='10' y='14.5' text-anchor='middle' font-size='13' font-weight='600' fill='currentColor'%3Ei%3C/text%3E%3C/svg%3E") center / contain no-repeat;
}

.contextual-tip p {
  flex: 1;
  margin: 0;
}

.contextual-tip .btn {
  white-space: nowrap;
  align-self: center;
  flex-shrink: 0;
}

.contextual-tip.is-dismissing {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

@keyframes contextualTipIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  body {
    line-height: 1.5;
  }

  .page {
    gap: 20px;
    padding: 16px 14px 30px;
  }

  .brand-title {
    font-size: 1.44rem;
  }

  .brand-sub {
    font-size: 0.86rem;
  }

  .hero h1 {
    font-size: clamp(1.6rem, 8.5vw, 2.15rem);
    line-height: 1.08;
  }

  .hero p {
    font-size: 0.98rem;
    line-height: 1.6;
  }

  .item-header h3 {
    font-size: 1.18rem;
  }

  .item-meta {
    font-size: 0.8rem;
  }

  textarea,
  input,
  select {
    font-size: 0.95rem;
  }

  .btn {
    font-size: 0.92rem;
    padding: 9px 14px;
  }

  .choice-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .choice-card .btn {
    width: 100%;
  }

  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .cookie-banner__actions,
  .cookie-modal__actions {
    flex-direction: column;
  }

  .cookie-banner__actions .btn,
  .cookie-modal__actions .btn {
    width: 100%;
  }

  .cookie-option {
    grid-template-columns: 1fr;
  }

  .plan-expiry-banner,
  .plan-limit-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .page {
    padding: 14px 12px 26px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-actions .btn,
  .cta-actions .btn,
  .photo-queue-actions .btn {
    width: 100%;
  }
}
