/* ==========================================================
   Public home — sektionsspecifika regler för startsidan:
   nyheter, app-CTA, tips, om föreningen, dokument, kontakt,
   FAQ, mäklarstrip + responsivt beteende. Tokens från
   00-tokens.css. Inga hex här.
   ========================================================== */

/* ---- NEWS ---- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-5);
}
.news-card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  cursor: pointer;
  position: relative;
}
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: var(--line);
}
.news-card.feature {
  grid-column: span 7;
  background: linear-gradient(135deg, var(--bg-soft), var(--paper));
  padding: 0;
  overflow: hidden;
}
.news-card.feature .feature-image {
  aspect-ratio: 16 / 9;
  background-image: url('/images/building-front.jpg');
  background-size: cover;
  background-position: center 30%;
}
.news-card.feature .feature-body {
  padding: var(--space-6) var(--space-7) var(--space-7);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.news-card:not(.feature) { grid-column: span 5; }
.news-card-row { grid-column: span 4; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 5px var(--space-3);
  border-radius: var(--radius-pill);
  font-weight: 500;
  width: fit-content;
}
.tag::before {
  content: ''; width: 5px; height: 5px;
  border-radius: 50%; background: currentColor;
}
.tag.t-drift   { background: var(--tag-drift-bg); color: var(--accent-deep); }
.tag.t-info    { background: var(--tag-info-bg);  color: var(--leaf); }
.tag.t-event   { background: var(--tag-event-bg); color: var(--tag-event-fg); }
.tag.t-viktigt { background: var(--tag-viktigt-bg); color: var(--tag-viktigt-fg); }

.news-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.75rem;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.news-meta .sep {
  width: 3px; height: 3px;
  background: currentColor; border-radius: 50%;
  opacity: 0.5;
}
.news-card h3 { font-size: 1.5rem; font-weight: 400; line-height: 1.18; }
.news-card.feature h3 { font-size: 2rem; line-height: 1.1; }
.news-card p { color: var(--ink-soft); font-size: 0.9375rem; margin: 0; }
.news-card .more {
  margin-top: auto;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.news-card .more svg { width: 12px; height: 12px; transition: transform .2s ease; }
.news-card:hover .more svg { transform: translateX(4px); }

.news-foot {
  margin-top: var(--space-7);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-5);
  border-top: 1px solid var(--line-soft);
}
.news-foot .note { font-size: 0.8125rem; color: var(--ink-mute); }
.btn-link {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--ink);
  transition: gap .2s ease;
}
.btn-link:hover { gap: var(--space-4); }

/* ---- APP CTA ---- */
.app-cta {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-xl);
  padding: var(--space-9);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-9);
  align-items: center;
  position: relative;
  overflow: hidden;
}
.app-cta::before {
  content: '';
  position: absolute;
  top: -120px; right: -80px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(154,90,43,0.4) 0%, transparent 70%);
  pointer-events: none;
}
.app-cta .eyebrow { color: rgba(251,247,239,0.7); }
.app-cta h2 {
  font-size: clamp(2.125rem, 3.6vw, 3.25rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.app-cta h2 em { font-family: inherit; font-style: normal; font-weight: inherit; }
.app-cta p {
  margin-top: var(--space-5);
  color: rgba(251,247,239,0.78);
  max-width: 44ch;
  font-size: 1.0625rem;
}
.store-row { display: flex; gap: var(--space-4); margin-top: var(--space-6); flex-wrap: wrap; }
a.store-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-md);
  transition: transform .2s ease, background .2s ease;
}
a.store-btn:hover { transform: translateY(-2px); background: var(--white); }
.store-btn svg { width: 26px; height: 26px; flex-shrink: 0; }
.store-btn .small {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.65;
}
.store-btn .big {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.1;
}

/* ---- PHONE MOCK ---- */
.phone {
  position: relative;
  width: 280px;
  margin: 0 auto;
  aspect-ratio: 9 / 19;
  background: var(--phone-frame);
  border-radius: 42px;
  border: 2px solid var(--phone-frame-edge);
  padding: var(--space-3);
  box-shadow: 0 50px 80px -30px rgba(0, 0, 0, 0.5),
              0 0 0 1px var(--paper-scrim-04) inset;
  transform: rotate(-4deg);
}
.phone::after {
  content: '';
  position: absolute;
  top: 22px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 24px;
  background: var(--phone-notch);
  border-radius: 14px;
  z-index: 4;
}
.phone-screen {
  width: 100%; height: 100%;
  background: var(--paper);
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  color: var(--ink);
  padding: 56px var(--space-4) var(--space-4);
  font-size: 0.75rem;
}
.phone-status {
  position: absolute;
  top: 18px; left: 24px; right: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 0.6875rem;
  font-weight: 600;
  z-index: 3;
}
.phone-greet { font-family: var(--font-serif); font-size: 0.9375rem; line-height: 1.2; color: var(--ink-mute); }
.phone-greet strong {
  display: block;
  font-size: 1.375rem;
  color: var(--ink);
  font-weight: 500;
  margin-top: 4px;
}
.push-pop {
  position: absolute;
  top: 80px; left: 10px; right: 10px;
  background: var(--paper-scrim-92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: var(--space-3);
  display: flex;
  gap: var(--space-3);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.2);
  animation: pushIn 5s ease-in-out infinite;
}
@keyframes pushIn {
  0%, 10%   { transform: translateY(-20px) scale(0.95); opacity: 0; }
  20%, 80%  { transform: translateY(0) scale(1); opacity: 1; }
  90%, 100% { transform: translateY(-20px) scale(0.95); opacity: 0; }
}
.push-icon {
  width: 28px; height: 28px;
  background: var(--accent);
  border-radius: 7px;
  display: grid; place-items: center;
  color: var(--white);
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 0.8125rem;
  flex-shrink: 0;
}
.push-content { line-height: 1.3; }
.push-content .ph-title { font-weight: 600; font-size: 0.6875rem; }
.push-content .ph-body  { color: var(--ink-mute); font-size: 0.6875rem; margin-top: 1px; }
.push-content .ph-time  { color: var(--ink-mute); font-size: 0.625rem; margin-top: 2px; }
.phone-cards { margin-top: 80px; display: flex; flex-direction: column; gap: var(--space-2); }
.ph-card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 9px 11px;
  font-size: 0.625rem;
}
.ph-card .ph-tag {
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-deep);
  font-weight: 600;
}
.ph-card .ph-h { font-family: var(--font-serif); font-size: 0.75rem; margin-top: 3px; line-height: 1.2; }

/* ---- TIPS ---- */
.tips-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--space-5); }
.tip {
  grid-column: span 4;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-5);
  transition: background .25s ease, border-color .25s ease;
}
.tip:hover { background: var(--white); border-color: var(--line); }
.tip-num {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 300;
  color: var(--accent);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}
.tip-num::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.tip h3 { font-size: 1.375rem; font-weight: 400; margin-bottom: var(--space-3); line-height: 1.2; }
.tip p  { margin: 0; color: var(--ink-soft); font-size: 0.9375rem; }
.tip-link {
  margin-top: var(--space-4);
  font-size: 0.8125rem;
  color: var(--accent-deep);
  display: inline-flex;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

