/* ==============================================
   Besvara.se — Coming Soon
   Tokens seedade från logotypen (teal #0FB39A, ink #15201C, Poppins).
   ============================================== */
:root {
  --color-primary: #0FB39A;
  --color-primary-dark: #0A8C78;
  --color-primary-soft: #E6F8F4;
  --color-ink: #15201C;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F4FAF8;
  --color-text-light: #5B6B65;
  --color-border: #DCE8E4;
  --color-placeholder: #9CADA7;
  --color-ring-1: #CDEDE6;
  --color-ring-2: #A7E2D6;
  --font-heading: "Poppins", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --container-pad: 96px;
  --container-max: 1340px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

/* --- Centrerad container (max-bredd) --- */
.site-header, .hero, .site-footer { width: 100%; max-width: var(--container-max); margin-inline: auto; }

/* --- Header --- */
.site-header { padding: 56px var(--container-pad) 0; }
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo-mark { width: 26px; height: auto; }
.logo-word { display: inline-flex; align-items: baseline; font-family: var(--font-heading); font-size: 24px; letter-spacing: -0.02em; }
.logo-name { font-weight: 600; color: var(--color-ink); }
.logo-tld { font-weight: 500; color: var(--color-primary); }

/* --- Hero --- */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 48px var(--container-pad);
  position: relative;
}
.hero-content { max-width: 640px; display: flex; flex-direction: column; gap: 28px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-heading); font-weight: 600; font-size: 13px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-primary);
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-primary); }

.headline {
  font-family: var(--font-heading); font-weight: 600;
  font-size: clamp(30px, 4.6vw, 56px); line-height: 1.08; letter-spacing: -0.03em;
  color: var(--color-ink);
}
.headline-accent { color: var(--color-primary); }

.lead { font-size: 20px; line-height: 1.6; color: var(--color-text-light); max-width: 520px; }

/* --- Signup --- */
.signup { display: flex; flex-direction: column; gap: 12px; padding-top: 8px; }
.signup-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.field {
  flex: 1 1 280px; min-width: 0; height: 56px; padding: 0 20px;
  font-family: var(--font-body); font-size: 17px; color: var(--color-ink);
  background: #fff; border: 1.5px solid var(--color-border); border-radius: 999px;
  transition: border-color 150ms ease;
}
.field::placeholder { color: var(--color-placeholder); }
.field:focus { outline: none; border-color: var(--color-primary); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 600; font-size: 16px;
  border: none; cursor: pointer; white-space: nowrap;
  border-radius: 999px; transition: background 150ms ease, transform 150ms ease;
}
.btn-primary {
  height: 56px; padding: 0 28px; color: #fff; background: var(--color-primary);
  box-shadow: 0 12px 30px rgba(15, 179, 154, 0.28);
}
.btn-primary:hover { background: var(--color-primary-dark); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.6; cursor: default; transform: none; }
.note { font-size: 14px; line-height: 1.5; color: var(--color-placeholder); max-width: 460px; }
.legal-verify { background: #FFF3B0; padding: 0 0.25em; border-radius: 3px; color: #5B5326; }

.signup-success {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 22px; background: var(--color-primary-soft);
  border-radius: 14px; font-size: 17px; font-weight: 500; color: var(--color-ink);
}

/* --- Hero visual (call ripple) --- */
.hero-visual { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.ripple { position: relative; width: 480px; height: 480px; display: flex; align-items: center; justify-content: center; }
.ring { position: absolute; border-radius: 50%; }
.ring-1 { width: 480px; height: 480px; background: var(--color-bg-alt); }
.ring-2 { width: 365px; height: 365px; border: 1.5px solid var(--color-ring-1); }
.ring-3 { width: 255px; height: 255px; border: 1.5px solid var(--color-ring-2); }
.ripple-core {
  position: relative; width: 200px; height: 200px; border-radius: 50%;
  background: var(--color-primary-soft); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 24px 60px rgba(15, 179, 154, 0.18);
}
.ripple-core img { width: 60px; height: auto; }

/* --- Footer --- */
.site-footer {
  display: flex; align-items: center; gap: 16px;
  padding: 0 var(--container-pad) 56px;
  font-size: 14px; color: var(--color-placeholder);
}
.site-footer .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--color-ring-1); }

/* --- Tablet --- */
@media (max-width: 1280px) {
  :root { --container-pad: 56px; }
  .ripple { width: 400px; height: 400px; }
  .ring-1 { width: 400px; height: 400px; }
  .ring-2 { width: 305px; height: 305px; }
  .ring-3 { width: 215px; height: 215px; }
}

/* --- Mobile --- */
@media (max-width: 820px) {
  :root { --container-pad: 28px; }
  .site-header { padding: 32px var(--container-pad) 0; display: flex; justify-content: center; }
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    gap: 28px;
    padding: 24px var(--container-pad);
  }
  .hero-content { align-items: center; gap: 22px; }
  .eyebrow { font-size: 12px; }
  .lead { font-size: 17px; max-width: 340px; }
  .signup { width: 100%; max-width: 360px; align-items: center; }
  .signup-row { flex-direction: column; gap: 11px; width: 100%; }
  .field { width: 100%; flex: none; height: 54px; }
  .btn-primary { width: 100%; height: 54px; }
  .note { text-align: center; }
  .ripple { width: 230px; height: 230px; }
  .ring-1 { width: 230px; height: 230px; }
  .ring-2 { width: 174px; height: 174px; }
  .ring-3 { display: none; }
  .ripple-core { width: 118px; height: 118px; }
  .ripple-core img { width: 38px; }
  .site-footer { flex-direction: column; gap: 4px; text-align: center; padding: 0 var(--container-pad) 32px; }
  .site-footer .dot { display: none; }
}

/* ==============================================
   Animation — "levande" sida (transform/opacity, 60fps)
   ============================================== */

/* Entré: tona in nedifrån med mjuk stagger (ease-out) */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade-scale { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }

.site-header .logo { animation: rise 0.6s 0.05s ease-out both; }
.eyebrow          { animation: rise 0.6s 0.18s ease-out both; }
.headline         { animation: rise 0.7s 0.28s ease-out both; }
.lead             { animation: rise 0.7s 0.42s ease-out both; }
.signup           { animation: rise 0.7s 0.54s ease-out both; }
.site-footer      { animation: rise 0.7s 0.66s ease-out both; }
.hero-visual      { animation: fade-scale 0.9s 0.3s ease-out both; }

/* Ripple-symbolen "andas" mjukt */
.ripple-core { animation: breathe 5s ease-in-out infinite; will-change: transform; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }

/* Sonar: teal-ringar som pulserar utåt som en samtalssignal */
.ripple-core::before,
.ripple-core::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid var(--color-primary);
  animation: sonar 3.6s ease-out infinite; will-change: transform, opacity;
}
.ripple-core::after { animation-delay: 1.8s; }
@keyframes sonar {
  0%   { transform: scale(0.95); opacity: 0.5; }
  70%  { opacity: 0.1; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* "Kommer snart"-pricken pulserar som live-indikator */
.eyebrow-dot { position: relative; }
.eyebrow-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--color-primary); animation: dot-ping 2.2s ease-out infinite;
}
@keyframes dot-ping { 0% { transform: scale(1); opacity: 0.55; } 100% { transform: scale(2.8); opacity: 0; } }

/* Knapp: mjuk press-feedback */
.btn-primary:active { transform: translateY(0) scale(0.97); }

/* Success-ruta tonar in */
.signup-success { animation: fade-scale 0.4s ease-out both; }

/* Respektera användarens motion-inställning */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .site-header .logo, .eyebrow, .headline, .lead, .signup, .site-footer, .hero-visual { opacity: 1 !important; transform: none !important; }
  .ripple-core::before, .ripple-core::after, .eyebrow-dot::after { display: none; }
}
