/* Kartář landing – brand tokens from apps/mobile/src/theme/variables.scss */

:root {
  --color-primary: #d9480a;
  --color-primary-shade: #bf3f09;
  --color-secondary: #1b5e5a;
  --color-tertiary: #17875f;
  --color-background: #f8f7f5;
  --color-surface: #ffffff;
  --color-surface-variant: #f0eeea;
  --color-border: #e7e5e4;
  --color-text: #1c1917;
  --color-text-muted: #57534e;
  --color-on-primary: #ffffff;
  --gradient-brand: linear-gradient(135deg, #d9480a 0%, #e85d04 45%, #f59e0b 100%);
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.08), 0 2px 8px rgba(28, 25, 23, 0.06);
  --shadow-md: 0 4px 16px rgba(28, 25, 23, 0.1), 0 8px 32px rgba(28, 25, 23, 0.08);
  --shadow-logo: 0 12px 40px rgba(217, 72, 10, 0.25);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --font-sans: -apple-system, "SF Pro Text", "SF Pro Display", Roboto, "Helvetica Neue", system-ui, sans-serif;
  --max-width: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

main {
  flex: 1;
}

/* Decorative page background */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 70% at 0% 0%, rgba(217, 72, 10, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 80% 60% at 100% 5%, rgba(27, 94, 90, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(245, 158, 11, 0.1) 0%, transparent 45%),
    radial-gradient(ellipse 50% 40% at 80% 60%, rgba(23, 135, 95, 0.08) 0%, transparent 40%),
    linear-gradient(165deg, #fdfcfa 0%, var(--color-background) 35%, #f3f1ec 100%);
}

.page-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(28, 25, 23, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, transparent 70%);
}

.page-bg::after {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: min(70vw, 600px);
  height: min(70vw, 600px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 72, 10, 0.08) 0%, transparent 70%);
  filter: blur(40px);
}

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

a {
  color: var(--color-primary);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* -------------------------------------------------------------------------- */
/* Hero                                                                       */
/* -------------------------------------------------------------------------- */

.hero {
  padding-block: 3rem 2rem;
  position: relative;
}

.hero__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero__title {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero__claim {
  margin: 0;
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 500;
  color: var(--color-text);
}

.hero__desc {
  margin: 0;
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  max-width: 36rem;
}

.hero__note {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0.25rem 0 0;
  padding: 0.625rem 1.125rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: color-mix(in srgb, var(--color-surface) 75%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid color-mix(in srgb, var(--color-border) 70%, transparent);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  max-width: 36rem;
}

.hero__note-icon {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  color: var(--color-primary);
  opacity: 0.85;
}

.hero__visual {
  display: flex;
  justify-content: center;
}

.hero__logo {
  width: min(100%, 320px);
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-logo);
  overflow: hidden;
}

/* -------------------------------------------------------------------------- */
/* Logo card animations                                                       */
/* -------------------------------------------------------------------------- */

.logo-card {
  transform-box: fill-box;
  transform-origin: center bottom;
  opacity: 0;
}

.card-1 {
  animation:
    fan-enter-1 0.8s ease-out 0s forwards,
    fan-sway-1 3s ease-in-out 0.8s infinite;
}

.card-2 {
  animation:
    fan-enter-2 0.8s ease-out 0.15s forwards,
    fan-sway-2 3s ease-in-out 0.95s infinite;
}

.card-3 {
  animation:
    fan-enter-3 0.8s ease-out 0.3s forwards,
    fan-sway-3 3s ease-in-out 1.1s infinite;
}

.card-4 {
  animation:
    fan-enter-4 0.8s ease-out 0.45s forwards,
    fan-sway-4 3s ease-in-out 1.25s infinite;
}

.card-5 {
  animation:
    fan-enter-5 0.8s ease-out 0.6s forwards,
    fan-sway-5 3s ease-in-out 1.4s infinite;
}

@keyframes fan-enter-1 {
  from { transform: rotate(0deg); opacity: 0; }
  to { transform: rotate(-32deg); opacity: 1; }
}

@keyframes fan-enter-2 {
  from { transform: rotate(0deg); opacity: 0; }
  to { transform: rotate(32deg); opacity: 1; }
}

@keyframes fan-enter-3 {
  from { transform: rotate(0deg); opacity: 0; }
  to { transform: rotate(-16deg); opacity: 1; }
}

@keyframes fan-enter-4 {
  from { transform: rotate(0deg); opacity: 0; }
  to { transform: rotate(16deg); opacity: 1; }
}

@keyframes fan-enter-5 {
  from { transform: rotate(0deg); opacity: 0; }
  to { transform: rotate(0deg); opacity: 1; }
}

@keyframes fan-sway-1 {
  0%, 100% { transform: rotate(-32deg); }
  50% { transform: rotate(-27deg); }
}

@keyframes fan-sway-2 {
  0%, 100% { transform: rotate(32deg); }
  50% { transform: rotate(27deg); }
}

@keyframes fan-sway-3 {
  0%, 100% { transform: rotate(-16deg); }
  50% { transform: rotate(-11deg); }
}

@keyframes fan-sway-4 {
  0%, 100% { transform: rotate(16deg); }
  50% { transform: rotate(11deg); }
}

@keyframes fan-sway-5 {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(5deg); }
}

@media (prefers-reduced-motion: reduce) {
  .logo-card {
    opacity: 1;
    animation: none !important;
  }

  .card-1 { transform: rotate(-32deg); }
  .card-2 { transform: rotate(32deg); }
  .card-3 { transform: rotate(-16deg); }
  .card-4 { transform: rotate(16deg); }
  .card-5 { transform: rotate(0deg); }
}

/* -------------------------------------------------------------------------- */
/* Features                                                                   */
/* -------------------------------------------------------------------------- */

.features {
  padding-block: 3rem;
}

.features__title {
  margin: 0 0 2rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  text-align: center;
}

.features__grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.feature-card {
  padding: 1.5rem;
  background: color-mix(in srgb, var(--color-surface) 88%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid color-mix(in srgb, var(--color-border) 80%, transparent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  background: color-mix(in srgb, var(--color-surface) 96%, var(--color-primary) 4%);
  border-color: color-mix(in srgb, var(--color-primary) 18%, var(--color-border));
  box-shadow:
    var(--shadow-md),
    0 0 0 1px color-mix(in srgb, var(--color-primary) 6%, transparent);
}

.feature-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 10%, transparent);
  border-radius: var(--radius-sm);
  transition: background 0.25s ease, color 0.25s ease;
}

.feature-card__icon svg {
  width: 1.375rem;
  height: 1.375rem;
}

.feature-card:hover .feature-card__icon {
  color: var(--color-on-primary);
  background: var(--color-primary);
}

.feature-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
}

.feature-card__desc {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* -------------------------------------------------------------------------- */
/* Download CTA                                                               */
/* -------------------------------------------------------------------------- */

.download {
  padding-block: 3rem 4rem;
}

.download__inner {
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: var(--gradient-brand);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  color: var(--color-on-primary);
}

.download__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
}

.download__subtitle {
  margin: 0 0 2rem;
  font-size: 1.0625rem;
  opacity: 0.92;
}

.download__buttons {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  align-items: center;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 220px;
  padding: 0.875rem 1.25rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  background: var(--color-surface);
  border: none;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  cursor: not-allowed;
  opacity: 0.85;
}

.store-btn--live {
  cursor: pointer;
  opacity: 1;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.store-btn--live:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.store-btn--live:focus-visible {
  outline: 2px solid var(--color-on-primary);
  outline-offset: 3px;
}

.store-btn__icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
}

.store-btn__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.store-btn__label {
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-text-muted);
}

.store-btn__name {
  font-size: 1.0625rem;
  font-weight: 700;
}

.store-btn__soon {
  margin-left: auto;
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 12%, transparent);
  border-radius: 999px;
}

/* -------------------------------------------------------------------------- */
/* Footer                                                                     */
/* -------------------------------------------------------------------------- */

.footer {
  margin-top: auto;
  padding-block: 1.5rem 2rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  border-top: 1px solid color-mix(in srgb, var(--color-border) 60%, transparent);
  background: color-mix(in srgb, var(--color-surface) 50%, transparent);
  backdrop-filter: blur(4px);
}

.footer p {
  margin: 0;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin-bottom: 0.75rem;
}

.footer__links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer__links a:hover {
  color: var(--color-primary);
}

/* -------------------------------------------------------------------------- */
/* Legal / document pages                                                     */
/* -------------------------------------------------------------------------- */

.legal {
  padding-block: 2.5rem 3rem;
}

.legal__header {
  margin-bottom: 2rem;
}

.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.legal__back:hover {
  color: var(--color-primary);
}

.legal__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.legal__meta {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.legal__content {
  max-width: 42rem;
  padding: 2rem;
  background: color-mix(in srgb, var(--color-surface) 92%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid color-mix(in srgb, var(--color-border) 80%, transparent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.legal__content h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}

.legal__content h2:first-child {
  margin-top: 0;
}

.legal__content h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

.legal__content p,
.legal__content li {
  font-size: 0.96875rem;
  line-height: 1.65;
  color: var(--color-text);
}

.legal__content p {
  margin: 0 0 1rem;
}

.legal__content ul,
.legal__content ol {
  margin: 0 0 1rem;
  padding-left: 1.375rem;
}

.legal__content li {
  margin-bottom: 0.375rem;
}

.legal__content a {
  font-weight: 500;
}

.legal__content strong {
  font-weight: 600;
}

/* -------------------------------------------------------------------------- */
/* Responsive                                                                 */
/* -------------------------------------------------------------------------- */

@media (min-width: 640px) {
  .hero {
    padding-block: 4rem 3rem;
  }

  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .download__buttons {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero__logo {
    width: min(100%, 380px);
  }
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .hero__visual {
    justify-content: flex-end;
  }

  .features__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero__logo {
    width: 400px;
  }
}
