/* Reset + base typography — ported from 0_Ajustes_Sprints/0_sprint2_ajustesdokaiky */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
}

h1, h2, h3, p {
  margin: 0;
}

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

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

::selection {
  background: var(--orange-400);
  color: var(--ink);
}

:where(a, button, summary, input, [tabindex]):focus-visible {
  outline: 2px solid var(--navy-700);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}
.hero :where(a, button):focus-visible {
  outline-color: var(--cyan-300);
}

/* Gutter by padding, not by width: respects the screen cutout (notch /
   Dynamic Island) without content touching the physical edge. */
.container {
  width: 100%;
  max-width: calc(var(--container) + 40px);
  margin-inline: auto;
  padding-inline: max(20px, env(safe-area-inset-left)) max(20px, env(safe-area-inset-right));
}
@media (min-width: 768px) {
  .container {
    max-width: calc(var(--container) + 64px);
    padding-inline: max(32px, env(safe-area-inset-left)) max(32px, env(safe-area-inset-right));
  }
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -70px;
  z-index: 200;
  background: var(--orange-500);
  color: #1a1005;
  padding: 12px 20px;
  min-height: 44px;
  display: flex;
  align-items: center;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.16s ease;
}
.skip-link:focus {
  top: 12px;
}

/* ---------- bands ---------- */
.section {
  padding: var(--s-section) 0;
}
.section--soft {
  background: var(--tint-blue);
}
.section--warm {
  background: var(--tint-warm);
}
.section--cool {
  background: var(--tint-cool);
}

/* ---------- typography ----------
   Fluid scale: the clamp's minimum is the 320px size, its maximum the
   desktop size. No steps — a title is never too large for its line. */
.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 7.2vw, 64px);
  line-height: 1.06;
  letter-spacing: var(--tracking-display);
  margin: 0;
  text-wrap: balance;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 5vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.031em;
  color: var(--ink);
  margin: 0 0 var(--s-md);
  text-wrap: balance;
  max-width: 20ch;
}
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--orange-600);
  margin: 0 0 var(--s-sm);
  letter-spacing: 0.02em;
}
.lead {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  margin: 0;
  max-width: 56ch;
}
.head {
  margin-bottom: var(--s-xxl);
  max-width: 64ch;
}
.head .lead {
  font-weight: 400;
  color: var(--body);
  font-size: 16px;
  line-height: 1.5;
  margin-top: var(--s-md);
}
.head--left {
  margin-inline: 0;
}

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* kept for existing markup that hasn't migrated to .vh yet */
.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;
}

.no-scroll {
  overflow: hidden;
}

/* Reveal-on-scroll: progressive enhancement, content is fully visible
   without JS. Independent of the illustration/trace animation system. */
[data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
.js-disabled [data-reveal] {
  opacity: 1;
  transform: none;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 20px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease, transform 0.14s ease;
}
.btn--primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 1px 2px rgba(4, 32, 63, 0.18);
}
.btn--primary:hover {
  background: var(--navy-500);
}
.btn--primary:active {
  background: var(--primary-active);
  transform: translateY(1px);
}
.btn--ghost,
.btn--secondary {
  background: var(--canvas);
  color: var(--navy-700);
  border-color: var(--hairline);
}
.btn--ghost:hover,
.btn--secondary:hover {
  border-color: var(--navy-500);
}
.hero .btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}
.hero .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}
.hero .btn--primary {
  background: var(--orange-500);
  color: #1a1005;
}
.hero .btn--primary:hover {
  background: var(--orange-400);
}
.btn--lg {
  min-height: 48px;
  padding: 15px 28px;
  font-size: 15px;
}
.btn--sm {
  min-height: 44px;
  padding: 10px 16px;
  font-size: 14px;
}
.btn--block {
  width: 100%;
}
.btn-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-pill);
  background: var(--canvas);
  border: 1px solid var(--hairline);
  color: var(--navy-700);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: border-color 0.14s ease, background 0.14s ease;
}
.btn-icon:hover {
  border-color: var(--navy-500);
  background: var(--tint-cool);
}
.btn-icon[disabled] {
  opacity: 0.4;
  cursor: default;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--navy-700);
}
.text-link__arrow {
  transition: transform 0.14s ease;
}
.text-link:hover .text-link__arrow {
  transform: translateX(3px);
}
.hero .text-link {
  color: #fff;
}

@media (pointer: coarse) {
  .btn-icon {
    width: 48px;
    height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .sk i {
    width: var(--w);
  }
  .dtrail__mark::after {
    transform: scale(1);
  }
  .arow__chip[data-phase="1"] {
    opacity: 0;
  }
}
body[data-static] * {
  animation: none !important;
}
body[data-static] .sk i {
  width: var(--w);
}
body[data-static] .dtrail__mark::after {
  transform: scale(1);
}
body[data-static] .arow__chip[data-phase="1"] {
  opacity: 0;
}
