/* todue — apex landing page */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

/* ─── Layout ─── */

.t-container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ─── Header ─── */

.t-header {
  padding: 24px 0;
}
.t-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.t-header__nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Tagline rotator v header — kompaktný */
.t-header__tagline {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  color: inherit;
}
.t-header__tagline-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: opacity 220ms var(--ease), color 220ms var(--ease);
}
.t-header__tagline-icon svg { width: 100%; height: 100%; }
.t-header__tagline-text {
  display: inline-block;
  transition: opacity 220ms var(--ease);
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.t-header__tagline.is-fading .t-header__tagline-icon { opacity: 0; }
.t-header__tagline.is-fading .t-header__tagline-text {
  opacity: 0;
  transition-delay: 80ms;
}

@media (max-width: 600px) {
  .t-header__tagline { display: none; }
}

/* ─── Hero ─── */

.t-hero {
  padding: 88px 0 72px;
  text-align: center;
}

.t-hero__logo {
  margin: 0 auto 64px;
  display: flex;
  justify-content: center;
}

.t-hero__wordmark {
  height: clamp(80px, 11vw, 128px);
  width: auto;
  color: var(--text-primary);
}

.t-hero__headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 5.2vw, 57px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 auto 6px;
  max-width: 20ch;
  color: var(--text-primary);
}

.t-hero__subline {
  font-family: var(--font);
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0 auto 56px;
  max-width: 42ch;
}

.t-hero__micro {
  font-size: 13px;
  color: var(--text-muted);
  margin: 22px auto 0;
  letter-spacing: 0.01em;
}

.t-hero__cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.t-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--r-full);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease);
}

.t-btn--primary {
  background: var(--product-primary);
  border-color: var(--product-primary);
  color: #fff;
}
.t-btn--primary:hover { background: var(--product-primary-hover); border-color: var(--product-primary-hover); }

.t-btn--ghost {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border);
}
.t-btn--ghost:hover { background: var(--bg-hover); border-color: var(--border-strong); }

.t-btn--icon {
  padding: 10px;
  border-radius: var(--r-full);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.t-btn--icon:hover { background: var(--bg-hover); border-color: var(--border-strong); color: var(--text-primary); }

/* ─── Features ─── */

.t-features {
  padding: 80px 0 48px;
}
.t-features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1100px) {
  .t-features__grid { grid-template-columns: repeat(2, 1fr); }
}
.t-feature {
  border: 0;
  border-radius: var(--r-xl);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #fff;
}
.t-feature--blue   { background: var(--brand-blue); }
.t-feature--green  { background: var(--brand-green); }
.t-feature--yellow { background: var(--brand-yellow); }
.t-feature--red    { background: var(--brand-red); }

.t-feature__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #fff;
  margin-bottom: 4px;
}
.t-feature__badge svg { width: 100%; height: 100%; }

.t-feature__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  margin: 0;
  color: #fff;
}
.t-feature__body {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  line-height: 1.6;
}

/* ─── Footer ─── */

.t-footer {
  margin-top: auto;
  padding: 18px 0 10px;
  color: var(--text-muted);
  font-size: 13px;
}

.t-stripe {
  width: 100%;
  height: 6px;
  background-image: url('./todue-stripes.svg');
  background-repeat: no-repeat;
  background-size: 100% 6px;
  background-position: top left;
}
.t-footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.t-footer__links {
  display: flex;
  gap: 16px;
}
.t-footer__links a:hover { color: var(--text-primary); }

/* ─── Responsive ─── */

@media (max-width: 700px) {
  .t-features__grid { grid-template-columns: 1fr; }
  .t-hero { padding: 40px 0 32px; }
}
