/* ============================================================
   ROZENSOFT — Extras (contact form, mobile nav, testimonials)
   ============================================================ */

html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
.h-display, .h-section, .hero__title { overflow-wrap: anywhere; word-break: normal; hyphens: auto; }
@media (max-width: 500px) {
  .h-display { font-size: clamp(32px, 9vw, 48px); }
  .h-section { font-size: clamp(26px, 7vw, 38px); }
  .hero__sub { font-size: 16px; }
  .ctaFinal { padding: 28px 20px; }
  .ctaFinal h2 { font-size: clamp(26px, 7vw, 36px); }
}

/* Logo greyscale */
.logo-gs {
  height: 28px; width: auto; object-fit: contain;
  filter: grayscale(1); opacity: 0.55;
  transition: opacity .2s, filter .2s;
}
.logo-gs:hover { filter: grayscale(0); opacity: 1; }

/* Dashboard task check box (built in CSS, not React) */
.dash-task__check {
  width: 14px; height: 14px; border-radius: 4px;
  border: 1.6px solid var(--ink-300);
  display: grid; place-items: center; flex-shrink: 0;
  position: relative;
  transition: background .25s, border-color .25s;
}
.dash-task.is-done .dash-task__check {
  background: var(--green-500); border-color: var(--green-500);
}
.dash-task.is-done .dash-task__check::after {
  content: ""; position: absolute;
  width: 4px; height: 7px;
  border-right: 1.6px solid #fff; border-bottom: 1.6px solid #fff;
  transform: rotate(45deg) translate(-1px, -1px);
}

/* Mobile nav */
.nav__burger {
  display: none;
  background: transparent; border: 0; padding: 8px;
  cursor: pointer; gap: 4px; flex-direction: column;
  align-items: center; justify-content: center;
}
.nav__burger span {
  width: 22px; height: 2px; background: var(--navy-900);
  border-radius: 2px; transition: transform .25s, opacity .2s;
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav__mobile {
  background: #fff; border-top: 1px solid var(--line);
  padding: 16px 24px 24px;
  display: flex; flex-direction: column; gap: 14px;
}
.nav__mobile[hidden] { display: none; }
.nav__mobile a {
  color: var(--ink-700); text-decoration: none; font-size: 16px;
  padding: 6px 0;
}
.nav__mobile a.btn { margin-top: 8px; }
@media (max-width: 880px) {
  .nav__burger { display: flex; }
  .nav__cta { display: none; }
}

/* CTA grid: make it 2 cols and align */
.ctaFinal { align-items: stretch; }

/* Contact form */
.contact-form {
  background: #fff;
  color: var(--ink-900);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.45);
  display: flex; flex-direction: column; gap: 14px;
}
.cf-head h3 {
  margin: 0 0 4px; font-size: 22px; letter-spacing: -0.02em;
  color: var(--navy-900); font-weight: 600;
}
.cf-head p { margin: 0 0 6px; font-size: 13px; color: var(--ink-500); }
.cf-row { display: flex; flex-direction: column; gap: 6px; }
.cf-row--two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cf-row--two > div { display: flex; flex-direction: column; gap: 6px; }
.cf-row label {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-500);
}
.cf-row label span { color: #c25656; }
.cf-row input, .cf-row select, .cf-row textarea {
  font-family: var(--font-sans); font-size: 15px;
  padding: 12px 14px;
  background: #f7f8fb;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-900);
  transition: border-color .2s, background .2s, box-shadow .2s;
  outline: none; width: 100%;
}
.cf-row textarea { resize: vertical; min-height: 90px; font-family: inherit; }
.cf-row input:focus, .cf-row select:focus, .cf-row textarea:focus {
  border-color: var(--accent-500);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(43,85,255,0.12);
}
.cf-row input.invalid, .cf-row textarea.invalid {
  border-color: #c25656; background: #fdf6f6;
}
.cf-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.cf-submit { justify-content: center; margin-top: 4px; }
.cf-submit[disabled] { opacity: .7; cursor: progress; }
.cf-status {
  font-size: 14px; min-height: 1.2em;
  padding: 0; border-radius: 8px;
  font-family: var(--font-mono); letter-spacing: 0.02em;
}
.cf-status.is-ok {
  padding: 12px 14px; background: var(--green-100); color: #0e6b46;
  border: 1px solid #b9e5cb;
}
.cf-status.is-err {
  padding: 12px 14px; background: #fbecec; color: #b04141;
  border: 1px solid #f3d6d6;
}
.cf-legal { font-size: 11px; color: var(--ink-400); margin: 0; line-height: 1.5; }
.cf-consent__label {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--ink-500); line-height: 1.5;
  cursor: pointer;
  font-family: var(--font-sans);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
.cf-consent__label input[type="checkbox"] {
  width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px;
  accent-color: var(--accent-500); cursor: pointer;
}

@media (max-width: 980px) {
  .cf-row--two { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
}

/* Testimonials featured card */
.t-feat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 48px 56px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.t-feat__quote {
  position: absolute; top: 20px; right: 40px;
  font-size: 160px; line-height: 1; color: var(--accent-100);
  font-family: Georgia, serif; pointer-events: none;
  user-select: none; letter-spacing: -0.05em;
}
.t-stars { display: flex; gap: 3px; }
.t-feat__text {
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.4; letter-spacing: -0.015em;
  color: var(--navy-900); font-weight: 500;
  margin: 20px 0 28px; max-width: 72ch;
}
.t-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent-50);
  border: 2px solid var(--accent-100);
  display: grid; place-items: center;
  color: var(--accent-500);
  font-family: var(--font-mono);
  font-size: 14px; font-weight: 600; flex-shrink: 0;
}
.t-name { font-weight: 600; font-size: 15px; color: var(--navy-900); }
.t-role { font-size: 13px; color: var(--ink-400); font-family: var(--font-mono); letter-spacing: 0.02em; }
.t-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 880px) { .t-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .t-cards { grid-template-columns: 1fr; } }
.t-card {
  all: unset; cursor: pointer; display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px; padding: 16px;
  transition: background .25s, border-color .25s, transform .2s, box-shadow .2s;
}
.t-card.is-active {
  background: var(--navy-900);
  border-color: var(--navy-900);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.t-card p {
  font-size: 13px; line-height: 1.5;
  color: var(--ink-500); margin: 8px 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.t-card.is-active p { color: #d6dff0; }
.t-card .t-card__name {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-400);
}
.t-card.is-active .t-card__name { color: #7d97ff; }

.t-dot {
  all: unset; cursor: pointer;
  width: 8px; height: 8px; border-radius: 99px;
  background: var(--line);
  transition: width .35s, background .25s;
}
.t-dot.is-active { width: 28px; background: var(--accent-500); }

/* Focus-visible style for all interactive elements */
a:focus-visible, button:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent-500);
  outline-offset: 2px;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* Small screens: hero stacked */
@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .section { padding: 80px 0; }
  .workflow { padding: 36px 24px; border-radius: 20px; }
  .ctaFinal { padding: 32px 24px; border-radius: 20px; }
  .t-feat { padding: 28px 24px; }
  .timeline { padding: 22px; }
}

/* Skip link for accessibility */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy-900); color: #fff;
  padding: 10px 14px; z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Language switcher */
.lang-switch { display: flex; align-items: center; gap: 4px; margin-right: 8px; }
.lang-switch a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 18px; border-radius: 3px;
  overflow: hidden; opacity: 0.45;
  transition: opacity .2s, transform .2s;
  border: 1px solid transparent;
}
.lang-switch a:hover { opacity: 1; transform: translateY(-1px); }
.lang-switch a.is-active { opacity: 1; border-color: var(--line); }
.lang-switch a svg { display: block; width: 100%; height: 100%; }
@media (max-width: 880px) { .lang-switch { display: none; } }
.nav__mobile .lang-switch { display: flex; margin: 8px 0 0; gap: 8px; }
.nav__mobile .lang-switch a { width: 40px; height: 30px; }

/* Cookie banner */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 32px rgba(0,0,0,0.10);
  padding: 18px 24px;
  animation: cookieSlideUp .35s ease;
}
.cookie-banner[hidden] { display: none; }
@keyframes cookieSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.cookie-banner__inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
  flex-wrap: wrap;
}
.cookie-banner__text { flex: 1; min-width: 220px; }
.cookie-banner__text strong { font-size: 14px; color: var(--navy-900); display: block; margin-bottom: 4px; }
.cookie-banner__text p { font-size: 13px; color: var(--ink-500); margin: 0; line-height: 1.5; }
.cookie-banner__text a { color: var(--accent-500); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.btn--sm { padding: 9px 18px; font-size: 14px; }
.btn--ghost {
  background: transparent;
  border: 1.5px solid var(--line);
  color: var(--ink-600);
}
.btn--ghost:hover { background: var(--surface); border-color: var(--ink-300); }
@media (max-width: 600px) {
  .cookie-banner__inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__actions .btn { flex: 1; justify-content: center; }
}
