:root {
  color-scheme: light dark;
  --background: #f4f4f0;
  --surface: #ebeae5;
  --surface-strong: #deddd6;
  --text: #171817;
  --muted: #5d605b;
  --line: #d4d3cc;
  --accent: #c45d1b;
  --accent-hover: #a94d15;
  --accent-text: #fffaf4;
  --radius: 16px;
  --shadow: 0 24px 70px rgba(68, 58, 48, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--background);
  color: var(--text);
  font-family: "Aptos", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

.page-shell {
  width: min(100% - 40px, 1240px);
  margin-inline: auto;
}

.site-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 730;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border: 5px solid var(--accent);
  border-right-color: transparent;
  border-radius: 50%;
  transform: rotate(-35deg);
}

.service-state {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 650;
}

.state-mark {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 13%, transparent);
}

.hero {
  min-height: calc(100dvh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(480px, 1.12fr);
  align-items: center;
  gap: clamp(40px, 7vw, 100px);
  padding-block: clamp(48px, 7vw, 88px);
}

.hero-copy {
  max-width: 580px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 760;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 11ch;
  margin-bottom: 24px;
  font-size: clamp(3.25rem, 6vw, 6.4rem);
  font-weight: 760;
  letter-spacing: -0.065em;
  line-height: 0.96;
}

.hero-text {
  max-width: 52ch;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.68;
}

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

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0 20px;
  font-weight: 720;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(1px);
}

.button:focus-visible,
.text-action:focus-visible,
.brand:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 46%, transparent);
  outline-offset: 4px;
}

.button-primary {
  background: var(--accent);
  color: var(--accent-text);
}

.button-primary:hover {
  background: var(--accent-hover);
}

.button-primary[aria-busy="true"] {
  cursor: wait;
  opacity: 0.78;
}

.button-secondary {
  border-color: var(--line);
  background: transparent;
  color: var(--text);
}

.button-secondary:hover {
  background: var(--surface);
  border-color: var(--surface-strong);
}

.retry-message {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.hero-visual {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 1.5);
  background: #f7f4ef;
  box-shadow: var(--shadow);
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.guide {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(48px, 9vw, 132px);
  padding-block: clamp(80px, 10vw, 144px);
  border-top: 1px solid var(--line);
}

.guide-heading {
  align-self: start;
  position: sticky;
  top: 32px;
}

.guide h2,
.support h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: 730;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.guide-heading p,
.support p,
.steps p {
  color: var(--muted);
}

.guide-heading p {
  max-width: 42ch;
  margin-bottom: 0;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.steps li:first-child {
  padding-top: 0;
}

.step-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--accent);
  font-weight: 780;
}

.steps h3 {
  margin-bottom: 8px;
  font-size: 1.22rem;
  letter-spacing: -0.02em;
}

.steps p {
  max-width: 52ch;
  margin-bottom: 0;
}

.support {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
  margin-bottom: 72px;
  padding: clamp(28px, 5vw, 56px);
  border-radius: calc(var(--radius) * 1.5);
  background: var(--text);
  color: var(--background);
}

.support h2 {
  max-width: 14ch;
  color: var(--background);
}

.support p {
  max-width: 58ch;
  margin-bottom: 0;
  color: color-mix(in srgb, var(--background) 72%, transparent);
}

.text-action {
  border: 0;
  border-bottom: 1px solid currentColor;
  padding: 8px 0;
  background: transparent;
  color: var(--background);
  font-weight: 720;
  white-space: nowrap;
  cursor: pointer;
}

footer {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

footer span:first-child {
  color: var(--text);
  font-weight: 720;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 56px;
  }

  .hero-copy {
    max-width: 680px;
  }

  h1 {
    max-width: 12ch;
    font-size: clamp(3.2rem, 11vw, 5.6rem);
  }

  .hero-visual {
    max-width: 760px;
  }

  .guide {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .guide-heading {
    position: static;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 28px, 1240px);
  }

  .site-header {
    min-height: 64px;
  }

  .service-state {
    font-size: 0;
  }

  .service-state::after {
    content: "Dijeda";
    font-size: 0.8rem;
  }

  .hero {
    padding-block: 42px 64px;
    gap: 36px;
  }

  h1 {
    font-size: clamp(2.8rem, 14vw, 4.2rem);
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .hero-visual img {
    aspect-ratio: 4 / 3;
    object-position: 67% center;
  }

  .guide {
    padding-block: 72px;
  }

  .steps li {
    grid-template-columns: 42px 1fr;
    gap: 14px;
  }

  .support {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 22px;
    margin-bottom: 48px;
  }

  .text-action {
    justify-self: start;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #171816;
    --surface: #242522;
    --surface-strong: #33342f;
    --text: #f2f1eb;
    --muted: #b8bab2;
    --line: #343630;
    --accent: #dd7331;
    --accent-hover: #ed8240;
    --accent-text: #171816;
    --shadow: 0 24px 70px rgba(4, 5, 4, 0.34);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
