/* SecondTech
   Navy #0F1B2D, paper #F6F7F9, signal blue #1E88E5,
   charcoal #2B2F36.
   #FF7A1A is only the Request a demo button.
   #22A06B is only the Confirm? check. */

@font-face {
  font-family: Inter;
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono Medium";
  src: url("../fonts/ibm-plex-mono-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0F1B2D;
  --paper: #F6F7F9;
  --blue: #1E88E5;
  --orange: #FF7A1A;
  --ink: #2B2F36;
  --green: #22A06B;
  --line: #E3E6EB;
  --white: #ffffff;
  --max: 72rem;
  --pad: clamp(1.25rem, 3vw, 2rem);
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.25rem;
}

body {
  margin: 0;
  font-family: Inter, sans-serif;
  font-weight: 450;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  text-wrap: balance;
  hyphens: none;
}

p {
  text-wrap: pretty;
}

:focus {
  outline: none;
}

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

::selection {
  background: var(--blue);
  color: var(--navy);
}

.skip {
  position: absolute;
  left: var(--pad);
  top: 0.75rem;
  transform: translateY(-150%);
  background: var(--paper);
  color: var(--navy);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  z-index: 30;
  text-decoration: none;
}

.skip:focus {
  transform: none;
}

.wrap,
.bar {
  width: min(var(--max), 100%);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--navy);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.logo-link {
  display: flex;
  align-items: center;
  line-height: 0;
}

.logo-link img,
.footer-brand img {
  height: 2rem;
  width: auto;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--blue);
  font-weight: 700;
  font-size: 1.125rem;
  white-space: nowrap;
}

.hero {
  background: var(--navy);
  color: var(--paper);
  padding: clamp(3rem, 7vw, 5.75rem) 0 clamp(3.25rem, 8vw, 6.25rem);
}

h1 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(2.6rem, 5.4vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 650;
  color: var(--paper);
}

.hero-sub {
  margin: 1.35rem 0 0;
  max-width: 40rem;
  font-size: clamp(1.0625rem, 1.6vw, 1.3rem);
  line-height: 1.5;
  font-weight: 450;
  color: var(--paper);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.5rem;
  margin-top: 2rem;
}

.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.35rem;
  border: 0;
  border-radius: 12px;
  background: var(--orange);
  color: var(--navy);
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
}

.button-primary:hover {
  filter: brightness(0.96);
}

.button-primary:active {
  filter: brightness(0.92);
}

.button-primary:disabled {
  cursor: wait;
  opacity: 0.65;
  filter: none;
}

.trust {
  margin: 2.75rem 0 0;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(246, 247, 249, 0.28);
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--paper);
}

.section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

h2 {
  margin: 0;
  max-width: 18em;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 650;
  color: var(--navy);
}

.prose {
  margin: 1.1rem 0 0;
  max-width: 40rem;
}

.steps {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.step,
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.3rem 1.3rem 1.45rem;
}

.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.step-num {
  font-size: 1.75rem;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--blue);
}

.step h3,
.card h3 {
  margin: 1rem 0 0.4rem;
  font-size: 1.15rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 650;
  color: var(--navy);
}

.step p,
.card p {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.5;
}

.step img,
.card img {
  width: 40px;
  height: 40px;
  display: block;
}

.confirm {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: min(100%, 34rem);
  margin: 1.75rem 0 0;
  padding: 1.35rem 1.5rem;
  border: 0;
  border-radius: 20px;
  background: var(--navy);
  color: var(--paper);
  box-shadow:
    0 18px 40px rgba(15, 27, 45, 0.16),
    inset 0 0 0 1px rgba(246, 247, 249, 0.14);
  font: inherit;
  text-align: left;
  cursor: pointer;
  user-select: none;
}

.confirm-word {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1;
}

.confirm-target {
  position: relative;
  width: 4.5rem;
  height: 4.5rem;
  flex: none;
}

.confirm-ring,
.confirm-ripple,
.confirm-glyph {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}

.confirm-ring {
  border: 2px solid var(--blue);
  opacity: 0;
  animation: confirm-pulse 2.4s cubic-bezier(0.16, 0.7, 0.28, 1) infinite;
}

.confirm-ring-late {
  animation-delay: 1.2s;
}

.confirm-ripple {
  inset: 10px;
  border: 2px solid var(--blue);
  opacity: 0;
}

.confirm-glyph {
  inset: 0;
}

.confirm-glyph circle {
  fill: transparent;
  stroke: rgba(246, 247, 249, 0.78);
  stroke-width: 1.75;
  transition: fill 80ms linear;
}

.confirm.is-pressing .confirm-glyph circle {
  fill: rgba(246, 247, 249, 0.16);
}

.confirm-check {
  fill: none;
  stroke: var(--green);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
}

.confirm.is-holding .confirm-ring,
.confirm.is-pressing .confirm-ring {
  animation: none;
  opacity: 0;
}

@keyframes confirm-pulse {
  0% {
    transform: scale(0.86);
    opacity: 0.34;
  }
  75% {
    opacity: 0.06;
  }
  100% {
    transform: scale(1.42);
    opacity: 0;
  }
}

.cards {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

.card p.code-row {
  margin: 0 0 0.75rem;
}

.code-chip {
  display: inline-block;
  font-family: "IBM Plex Mono Medium", ui-monospace, monospace;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  color: var(--navy);
  background: rgba(30, 136, 229, 0.12);
  border: 1px solid var(--blue);
  border-radius: 8px;
  padding: 0.15rem 0.5rem;
  line-height: 1.4;
}

.note {
  margin: 1.35rem 0 0;
  max-width: 40rem;
  font-size: 1rem;
}

.shop-grid {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

.shop-frame {
  margin: 0;
}

.shop-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 16px;
  background: #e7e9ed;
}

.faq {
  margin-top: 1.75rem;
  max-width: 46rem;
}

.faq-item {
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--line);
}

.faq h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 650;
  color: var(--navy);
}

.faq p {
  margin: 0;
}

.form-panel {
  margin-top: 1.75rem;
  max-width: 40rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(1.2rem, 3vw, 2rem);
}

.field {
  margin: 0 0 1.05rem;
  min-width: 0;
}

fieldset.field {
  border: 0;
  padding: 0;
}

.field label,
.field legend {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9375rem;
  font-weight: 650;
  color: var(--navy);
  padding: 0;
}

.optional {
  font-weight: 500;
  color: var(--ink);
}

.field input,
.field textarea {
  width: 100%;
  margin: 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid #c5cad3;
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  min-height: 3rem;
}

.field textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.field input,
.field textarea,
.choice input {
  scroll-margin-top: 7rem;
}

.field input:focus-visible,
.field textarea:focus-visible {
  border-color: var(--blue);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--navy);
  box-shadow: inset 3px 0 0 var(--navy);
}

.choices {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.choice {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.75rem;
  font-size: 1.0625rem;
  font-weight: 450;
  color: var(--ink);
}

.choice input {
  width: 1.5rem;
  height: 1.5rem;
  min-height: 0;
  margin: 0;
  accent-color: var(--blue);
}

.field-error {
  margin: 0.4rem 0 0;
  color: var(--navy);
  font-size: 0.9375rem;
  font-weight: 650;
  line-height: 1.4;
}

.send-error {
  margin: 0 0 1rem;
  color: var(--navy);
  font-size: 1.1875rem;
  font-weight: 650;
  line-height: 1.4;
}

.send-error a,
.email-line a {
  color: var(--blue);
  font-weight: 700;
  font-size: 1.1875rem;
}

.form-panel .button-primary {
  margin-top: 0.25rem;
}

.thanks {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--navy);
}

.email-line {
  margin: 1.15rem 0 0;
  font-size: 1.1875rem;
}

.site-footer {
  background: var(--navy);
  color: var(--paper);
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.footer-brand p {
  margin: 0.85rem 0 0;
  max-width: 28rem;
  color: var(--paper);
  font-size: 1rem;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.5rem;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--blue);
  font-weight: 700;
  font-size: 1.125rem;
}

.copyright {
  margin: 2rem 0 0;
  color: var(--paper);
  font-size: 0.9375rem;
}

[hidden] {
  display: none !important;
}

@media (max-width: 560px) {
  .hero-actions,
  .form-panel .button-primary {
    width: 100%;
  }

  .hero-actions .nav-link {
    text-align: center;
    padding: 0.35rem 0;
  }
}

@media (min-width: 720px) {
  .logo-link img,
  .footer-brand img {
    height: 2.35rem;
  }

  .steps,
  .cards {
    grid-template-columns: 1fr 1fr;
  }

  .split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.25rem;
    align-items: start;
  }

  .footer-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 2rem;
    align-items: start;
  }

  .footer-links {
    margin: 0.35rem 0 0;
    justify-content: flex-end;
  }

  .copyright {
    grid-column: 1 / -1;
  }
}

@media (min-width: 960px) {
  .shop-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 3.5rem;
  }
}

@media (min-width: 1100px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }

  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

  .confirm-ring,
  .confirm-ripple {
    display: none;
  }

  .confirm-check {
    stroke-dashoffset: 0;
  }

  .button-primary:hover,
  .button-primary:active {
    filter: none;
  }
}
