/* Dilara Invest AB — delat stylesheet */

:root {
  --color-bg: #f7f6f3;
  --color-bg-alt: #ffffff;
  --color-ink: #17171a;
  --color-ink-soft: #55555a;
  --color-carbon: #121214;
  --color-carbon-soft: #1c1c20;
  --color-accent: #e3502a;
  --color-accent-2: #ff7847;
  --color-accent-dark: #b23a1c;
  --color-border: #e7e4de;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 4px 14px rgba(17, 17, 20, 0.06);
  --shadow: 0 20px 45px rgba(17, 17, 20, 0.12);
  --shadow-lg: 0 30px 70px rgba(17, 17, 20, 0.22);
  --container: 1160px;
  --font-head: "Poppins", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--color-ink);
  background:
    radial-gradient(1200px 500px at 50% 0%, rgba(227, 80, 42, 0.04), transparent 60%),
    var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  letter-spacing: -0.01em;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --- Accessibility: focus states --- */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav-toggle:focus-visible,
.card:focus-visible,
.contact-card:focus-visible {
  outline: 2px solid var(--color-accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}

.site-header a:focus-visible,
.site-footer a:focus-visible {
  outline-color: var(--color-accent-2);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Reveal-on-scroll --- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* --- Header / Nav --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18, 18, 20, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: box-shadow 0.25s ease, padding 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  transition: padding 0.25s ease;
}

.site-header.is-scrolled .nav {
  padding: 12px 0;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}

.nav-brand .logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(227, 80, 42, 0.35);
}

.logo-mark svg {
  width: 22px;
  height: 22px;
  display: block;
}

.nav-brand .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nav-brand span {
  font-family: var(--font);
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-2);
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  position: relative;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

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

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

.nav-cta .btn {
  padding: 10px 20px;
  font-size: 0.88rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  display: block;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Hero --- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(227, 80, 42, 0.25), transparent 60%),
    linear-gradient(160deg, var(--color-carbon) 0%, var(--color-carbon-soft) 60%, #2b1a14 100%);
  color: #fff;
  padding: 120px 0 130px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 75%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 680px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent-2);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--color-accent-2);
  display: inline-block;
}

.hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.4rem);
  line-height: 1.12;
  margin: 0 0 20px;
  font-weight: 600;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--color-accent-2), #ffb385);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  font-size: 1.1rem;
  color: #d3d1cd;
  margin: 0 0 34px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-stats {
  position: relative;
  display: flex;
  gap: 40px;
  margin-top: 56px;
  flex-wrap: wrap;
}

.hero-stats div {
  display: flex;
  flex-direction: column;
}

.hero-stats strong {
  font-family: var(--font-head);
  font-size: 1.8rem;
  color: #fff;
}

.hero-stats span {
  font-size: 0.82rem;
  color: #a9a7a2;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 12px 24px -8px rgba(227, 80, 42, 0.55);
}

.btn::after {
  content: "→";
  display: inline-block;
  transition: transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -8px rgba(227, 80, 42, 0.65);
}

.btn:hover::after {
  transform: translateX(3px);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px -8px rgba(227, 80, 42, 0.55);
}

.btn-outline {
  background: transparent;
  box-shadow: none;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #fff;
}

.btn-dark {
  background: var(--color-carbon);
  box-shadow: none;
  border: 1.5px solid var(--color-carbon);
}

.btn-dark:hover {
  background: var(--color-carbon-soft);
}

/* --- Sections --- */
section {
  padding: 96px 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-head.align-left {
  text-align: left;
  margin: 0 0 40px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  margin: 0 0 14px;
  font-weight: 600;
}

.section-head p {
  color: var(--color-ink-soft);
  margin: 0;
  font-size: 1.05rem;
}

.section-alt {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

/* --- Cards / Grid --- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
}

.grid .reveal:nth-child(2),
.contact-grid .reveal:nth-child(2) {
  transition-delay: 0.06s;
}

.grid .reveal:nth-child(3),
.contact-grid .reveal:nth-child(3) {
  transition-delay: 0.12s;
}

.grid .reveal:nth-child(4),
.contact-grid .reveal:nth-child(4) {
  transition-delay: 0.18s;
}

.grid .reveal:nth-child(5),
.contact-grid .reveal:nth-child(5) {
  transition-delay: 0.24s;
}

.card {
  position: relative;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: box-shadow 0.3s cubic-bezier(0.2, 0.7, 0.3, 1), transform 0.3s cubic-bezier(0.2, 0.7, 0.3, 1), border-color 0.25s ease;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-5px);
  border-color: transparent;
}

.card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(227, 80, 42, 0.1);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.3, 1), background 0.3s ease;
}

.card:hover .card-icon,
.contact-card:hover .card-icon {
  transform: scale(1.06);
  background: rgba(227, 80, 42, 0.16);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
  font-weight: 600;
}

.card p {
  margin: 0;
  color: var(--color-ink-soft);
  font-size: 0.96rem;
}

.card a.card-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.92rem;
}

.card a.card-link:hover {
  color: var(--color-accent-dark);
}

/* --- Two-column blocks --- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split img,
.split .placeholder-img {
  border-radius: var(--radius);
}

.placeholder-img {
  position: relative;
  background: linear-gradient(135deg, #dedcd6, #f2f0eb);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-ink-soft);
  font-size: 0.9rem;
  border: 1px dashed #c9c6bf;
  box-shadow: var(--shadow-sm);
}

/* --- Badge / trust strip --- */
.badge-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 40px;
}

.badge-strip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.86rem;
  color: var(--color-ink-soft);
  font-weight: 500;
}

/* --- CTA band --- */
.cta-band {
  position: relative;
  background: linear-gradient(135deg, var(--color-carbon) 0%, #2b1a14 100%);
  color: #fff;
  text-align: center;
  padding: 76px 0;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(227, 80, 42, 0.35), transparent 70%);
  top: -220px;
  right: -140px;
  border-radius: 50%;
}

.cta-band h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  position: relative;
}

.cta-band p {
  color: #d3d1cd;
  margin: 0 0 30px;
  position: relative;
}

.cta-band .btn {
  position: relative;
}

/* --- Contact page --- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.contact-card {
  position: relative;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 30px 26px;
  overflow: hidden;
  transition: box-shadow 0.3s cubic-bezier(0.2, 0.7, 0.3, 1), transform 0.3s cubic-bezier(0.2, 0.7, 0.3, 1), border-color 0.25s ease;
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.contact-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  border-color: transparent;
}

.contact-card:hover::before {
  transform: scaleX(1);
}

.contact-card .card-icon {
  margin-bottom: 16px;
}

/* Highlighted primary contact method */
.contact-card--primary {
  background: linear-gradient(160deg, var(--color-carbon) 0%, var(--color-carbon-soft) 100%);
  border-color: transparent;
}

.contact-card--primary::before {
  transform: scaleX(1);
}

.contact-card--primary h3 {
  color: var(--color-accent-2);
}

.contact-card--primary p,
.contact-card--primary .mail-btn {
  color: #fff;
}

.contact-card--primary .card-icon {
  background: rgba(255, 120, 71, 0.18);
  color: var(--color-accent-2);
}

.contact-card--primary .mail-btn {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.contact-card--primary .mail-btn:hover {
  color: var(--color-accent-2);
  border-color: var(--color-accent-2);
}

.contact-card h3 {
  margin: 0 0 10px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  font-weight: 700;
}

.contact-card p {
  margin: 0;
  color: var(--color-ink-soft);
  font-size: 1rem;
}

.contact-card .hours-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 0.94rem;
}

.contact-card .hours-row span:first-child {
  color: var(--color-ink);
  font-weight: 500;
}

.mail-btn {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
  color: var(--color-accent);
  font-weight: 600;
  font-size: 1.02rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}

.mail-btn:hover {
  color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
}

.placeholder-text {
  color: var(--color-accent-dark);
  font-weight: 600;
  background: rgba(227, 80, 42, 0.1);
  padding: 2px 8px;
  border-radius: 5px;
  display: inline-block;
}

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

/* --- Footer --- */
.site-footer {
  position: relative;
  background: var(--color-carbon);
  color: #cfcdc9;
  padding: 72px 0 28px;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 120, 71, 0.4), transparent);
}

.footer-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 44px;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
}

.footer-top .logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.footer-top .logo-mark svg {
  width: 20px;
  height: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 40px;
}

.footer-grid h4 {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 16px;
  font-weight: 600;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li {
  margin-bottom: 10px;
  font-size: 0.92rem;
}

.footer-grid a {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-grid li {
  overflow-wrap: break-word;
  word-break: break-word;
}

.footer-grid a:hover {
  color: var(--color-accent-2);
  transform: translateX(2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 22px;
  font-size: 0.78rem;
  color: #7d7b77;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
  letter-spacing: 0.02em;
}

/* --- Responsive --- */
@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    gap: 28px;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .nav-cta .btn {
    display: none;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-carbon);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
    display: none;
    border-radius: 0 0 16px 16px;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 13px 4px;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  section {
    padding: 64px 0;
  }

  .hero {
    padding: 96px 0 90px;
  }

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

  .hero-actions .btn {
    justify-content: center;
  }

  .footer-bottom {
    justify-content: flex-start;
  }
}

/* --- About visual (om-oss) --- */
.about-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--color-carbon);
}

.about-visual svg {
  display: block;
  width: 100%;
  height: 100%;
}

@media (max-width: 480px) {
  .about-visual {
    aspect-ratio: 16 / 11;
  }
}

/* --- Home teaser visual (index.html) --- */
.home-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: linear-gradient(145deg, var(--color-carbon) 0%, var(--color-carbon-soft) 55%, #2b1a14 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.8), transparent 75%);
}

.home-visual::after {
  content: "";
  position: absolute;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 120, 71, 0.35), transparent 70%);
}

.home-visual svg {
  position: relative;
  width: 46%;
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.4));
}

@media (max-width: 480px) {
  .home-visual {
    aspect-ratio: 16 / 11;
  }
}

/* --- Jour / chat widget --- */
.jour-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.jour-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(145deg, var(--color-accent) 0%, var(--color-accent-2) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}

.jour-toggle:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: var(--shadow-lg);
}

.jour-toggle:focus-visible {
  outline: 2px solid var(--color-carbon);
  outline-offset: 3px;
}

.jour-icon-close {
  display: none;
}

.jour-widget.is-open .jour-icon-chat {
  display: none;
}

.jour-widget.is-open .jour-icon-close {
  display: block;
}

.jour-panel {
  width: min(340px, calc(100vw - 40px));
  max-height: min(480px, calc(100vh - 120px));
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
  transform: translateY(12px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.22s ease, opacity 0.18s ease;
}

.jour-panel.is-visible {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.jour-panel-header {
  background: linear-gradient(145deg, var(--color-carbon) 0%, var(--color-carbon-soft) 100%);
  color: #fff;
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}

.jour-panel-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.02rem;
  margin: 0 0 2px;
}

.jour-panel-sub {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
}

.jour-close {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.jour-close:hover {
  color: var(--color-accent-2);
}

.jour-close:focus-visible {
  outline: 2px solid var(--color-accent-2);
  outline-offset: 2px;
}

.jour-messages {
  padding: 16px 18px;
  overflow-y: auto;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--color-bg);
}

.jour-msg {
  max-width: 88%;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  line-height: 1.45;
}

.jour-msg p {
  margin: 0;
}

.jour-msg p + p {
  margin-top: 6px;
}

.jour-msg-bot {
  align-self: flex-start;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  color: var(--color-ink);
  border-bottom-left-radius: 2px;
}

.jour-msg-user {
  align-self: flex-end;
  background: linear-gradient(145deg, var(--color-accent) 0%, var(--color-accent-2) 100%);
  color: #fff;
  border-bottom-right-radius: 2px;
}

.jour-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  flex-shrink: 0;
}

.jour-input {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--color-ink);
  background: var(--color-bg);
}

.jour-input:focus-visible,
.jour-input:focus {
  outline: 2px solid var(--color-accent-2);
  outline-offset: 1px;
}

.jour-send {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  background: linear-gradient(145deg, var(--color-accent) 0%, var(--color-accent-2) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}

.jour-send:hover {
  transform: scale(1.06);
}

.jour-send:focus-visible {
  outline: 2px solid var(--color-carbon);
  outline-offset: 2px;
}

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

@media (max-width: 480px) {
  .jour-widget {
    right: 14px;
    bottom: 14px;
  }

  .jour-toggle {
    width: 54px;
    height: 54px;
  }

  .jour-panel {
    width: min(320px, calc(100vw - 28px));
    max-height: min(440px, calc(100vh - 100px));
  }
}
