:root {
  --paper: #fffaf3;
  --white: #ffffff;
  --ink: #111111;
  --muted: #65615c;
  --coral: #ff5b61;
  --blue: #064ea8;
  --yellow: #ffd900;
  --line: rgba(17, 17, 17, 0.16);
  --shadow: 0 24px 70px rgba(35, 26, 13, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(17, 17, 17, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 17, 0.028) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
}

button,
a {
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  width: min(1440px, calc(100% - 32px));
  margin: 16px auto;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.86);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
}

.site-header {
  min-height: 92px;
  padding: 18px clamp(20px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 2px solid var(--ink);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.wordmark-mark {
  display: grid;
  place-items: center;
  width: 52px;
  aspect-ratio: 1;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 50% 42% 51% 46%;
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.05em;
  transform: rotate(-5deg);
}

.wordmark-copy {
  display: grid;
  line-height: 1;
}

.wordmark-copy strong {
  font-size: clamp(17px, 2vw, 22px);
  letter-spacing: -0.04em;
}

.wordmark-copy span {
  margin-top: 4px;
  color: var(--coral);
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.header-note {
  margin: 0;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.intro {
  min-height: 410px;
  padding: clamp(54px, 8vw, 112px) clamp(22px, 7vw, 104px);
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.7fr);
  align-items: center;
  gap: 32px;
}

.intro-copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.intro h1 {
  max-width: 950px;
  margin: 0;
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  font-size: clamp(42px, 7.2vw, 98px);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.96;
}

.paint-underline {
  position: relative;
  white-space: nowrap;
}

.paint-underline::after {
  content: "";
  position: absolute;
  left: -0.02em;
  right: -0.03em;
  bottom: 0.04em;
  z-index: -1;
  height: 0.17em;
  border-radius: 40% 58% 43% 62%;
  transform: rotate(-1.5deg);
}

.paint-underline.coral::after {
  background: color-mix(in srgb, var(--coral) 82%, white);
}

.paint-underline.blue::after {
  background: color-mix(in srgb, var(--yellow) 90%, white);
}

.intro-text {
  max-width: 660px;
  margin: 32px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.55;
}

.intro-doodle {
  justify-self: center;
  width: min(100%, 330px);
  transform: rotate(4deg);
}

.intro-doodle svg {
  display: block;
  width: 100%;
  overflow: visible;
}

.doodle-yellow {
  fill: var(--yellow);
  stroke: var(--ink);
  stroke-width: 3;
}

.doodle-blue,
.doodle-coral,
.doodle-ink {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.doodle-blue {
  stroke: var(--blue);
  stroke-width: 8;
}

.doodle-coral {
  fill: var(--coral);
  stroke: var(--ink);
  stroke-width: 3;
}

.doodle-ink {
  stroke: var(--ink);
  stroke-width: 5;
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 2px solid var(--ink);
}

.choice-card {
  position: relative;
  min-height: 720px;
  padding: clamp(24px, 4vw, 58px);
  display: grid;
  grid-template-rows: auto minmax(240px, 1fr) auto;
  overflow: hidden;
}

.choice-card + .choice-card {
  border-left: 2px solid var(--ink);
}

.craft-card {
  background: var(--coral);
}

.digital-card {
  background: var(--blue);
  color: var(--white);
}

.digital-card::after {
  content: "";
  position: absolute;
  width: 350px;
  height: 350px;
  right: -190px;
  bottom: -180px;
  border-radius: 50%;
  background: var(--yellow);
  border: 2px solid var(--ink);
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.card-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.card-illustration {
  align-self: center;
  justify-self: center;
  width: min(100%, 490px);
  transition: transform 260ms ease;
}

.choice-card:hover .card-illustration {
  transform: translateY(-8px) rotate(-1deg);
}

.card-illustration svg {
  display: block;
  width: 100%;
  overflow: visible;
}

.poster-shadow,
.screen-shadow {
  fill: var(--yellow);
  stroke: var(--ink);
  stroke-width: 3;
}

.poster,
.screen {
  fill: var(--white);
  stroke: var(--blue);
  stroke-width: 5;
}

.poster-line {
  fill: none;
  stroke: var(--coral);
  stroke-width: 13;
  stroke-linecap: round;
}

.brush {
  fill: var(--blue);
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linejoin: round;
}

.spark {
  fill: var(--yellow);
  stroke: var(--ink);
  stroke-width: 3;
}

.spark.small {
  fill: var(--coral);
}

.screen {
  stroke: var(--ink);
}

.screen-top,
.network-line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.smart-home {
  fill: var(--yellow);
  stroke: var(--ink);
  stroke-width: 5;
  stroke-linejoin: round;
}

.network-line {
  stroke: var(--blue);
  stroke-width: 5;
}

.network-node {
  stroke: var(--ink);
  stroke-width: 3;
}

.coral-node {
  fill: var(--coral);
}

.yellow-node {
  fill: var(--yellow);
}

.white-node {
  fill: var(--white);
}

.dot {
  stroke: var(--ink);
  stroke-width: 2;
}

.coral-dot {
  fill: var(--coral);
}

.blue-dot {
  fill: var(--blue);
}

.ink-dot {
  fill: var(--yellow);
}

.cursor {
  fill: var(--coral);
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linejoin: round;
}

.card-copy {
  position: relative;
  z-index: 1;
}

.card-copy h2 {
  margin: 0;
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  font-size: clamp(54px, 7vw, 96px);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.86;
  text-transform: uppercase;
}

.craft-card .card-copy h2 {
  color: var(--white);
  text-shadow: 3px 3px 0 var(--blue);
  transform: rotate(-2deg);
  transform-origin: left bottom;
}

.digital-card .card-copy h2 {
  color: var(--yellow);
  text-shadow: 3px 3px 0 var(--ink);
}

.card-copy p {
  max-width: 500px;
  margin: 28px 0;
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.5;
}

.card-action {
  min-height: 54px;
  padding: 13px 17px 13px 21px;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.card-action span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--yellow);
}

.dark-action {
  background: var(--yellow);
}

.dark-action span {
  background: var(--coral);
}

.card-action:hover {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--ink);
}

.site-footer {
  min-height: 92px;
  padding: 24px clamp(20px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 2px solid var(--ink);
  background: var(--white);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  gap: 24px;
}

.text-button {
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  color: inherit;
  cursor: pointer;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  width: min(390px, calc(100% - 48px));
  padding: 18px 20px;
  display: grid;
  gap: 4px;
  background: var(--white);
  border: 2px solid var(--ink);
  box-shadow: 7px 7px 0 var(--yellow), var(--shadow);
  animation: toast-in 220ms ease both;
}

.toast[hidden] {
  display: none;
}

.toast strong {
  color: var(--blue);
}

.legal-dialog {
  width: min(680px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: 12px 12px 0 var(--yellow), var(--shadow);
}

.legal-dialog::backdrop {
  background: rgba(6, 36, 69, 0.68);
  backdrop-filter: blur(4px);
}

.legal-dialog form {
  position: relative;
  padding: clamp(30px, 6vw, 64px);
}

.legal-dialog h2 {
  margin: 0 0 28px;
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  font-size: clamp(38px, 7vw, 64px);
  letter-spacing: -0.04em;
}

.legal-dialog p {
  line-height: 1.6;
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--white);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.legal-notice {
  padding: 16px 18px;
  margin-bottom: 26px;
  border: 2px solid var(--ink);
  background: var(--yellow);
}

.legal-notice p {
  margin: 6px 0 0;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 860px) {
  .header-note {
    display: none;
  }

  .intro {
    grid-template-columns: 1fr;
  }

  .intro-doodle {
    display: none;
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }

  .choice-card {
    min-height: 660px;
  }

  .choice-card + .choice-card {
    border-left: 0;
    border-top: 2px solid var(--ink);
  }
}

@media (max-width: 560px) {
  .site-shell {
    width: calc(100% - 16px);
    margin: 8px auto;
  }

  .site-header {
    min-height: 78px;
    padding: 12px 16px;
  }

  .wordmark-mark {
    width: 46px;
  }

  .intro {
    min-height: 360px;
    padding-block: 58px;
  }

  .intro h1 {
    font-size: clamp(38px, 13vw, 58px);
  }

  .choice-card {
    min-height: 610px;
  }

  .card-topline {
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  .card-copy h2 {
    font-size: clamp(49px, 16vw, 70px);
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
