:root {
  --yellow: #f5c518;
  --yellow-dark: #e0b010;
  --black: #111111;
  --text: #1a1a1a;
  --muted: #555555;
  --bg: #ffffff;
  --card: #ffffff;
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  --radius: 14px;
  --font: "Manrope", system-ui, sans-serif;
  --content: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.page-shell {
  width: 100%;
  min-height: 100vh;
  background: var(--bg);
}

.site-header,
.hero,
.features {
  width: 100%;
  max-width: var(--content);
  margin-left: auto;
  margin-right: auto;
}

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

button,
a.btn {
  font-family: inherit;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--black);
}

.brand-logo {
  height: 36px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  object-position: left center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-weight: 800;
  color: var(--black);
  background: var(--yellow);
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover {
  background: var(--yellow-dark);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.btn-sm {
  padding: 0.5rem 0.9rem;
  font-size: 0.78rem;
  border-radius: 8px;
}

.btn-lg {
  padding: 1rem 1.25rem;
  font-size: 0.98rem;
  width: 100%;
  border-radius: 12px;
}

.btn-on-yellow {
  background: var(--yellow);
  border: 2px solid var(--black);
  max-width: 240px;
}

.btn-muted {
  background: #e8e8e8;
}

.btn-muted:hover {
  background: #dedede;
}

/* Hero — stacked on mobile */
.hero {
  text-align: center;
  padding: 1.25rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-copy-block {
  width: 100%;
}

.hero h1 {
  margin: 0 0 0.9rem;
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--black);
}

.hero-copy {
  margin: 0 auto 1.35rem;
  max-width: 22.5rem;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.55;
}

.hero .btn-lg {
  margin: 0 auto 1.75rem;
  max-width: 100%;
}

.hero-visual {
  position: relative;
  width: 100%;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.soundwave {
  position: absolute;
  inset: 12% 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  pointer-events: none;
}

.soundwave span {
  flex: 1;
  height: 42%;
  background: linear-gradient(180deg, #ffffff 0%, #dcdcdc 100%);
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  animation: pulse 2.6s ease-in-out infinite;
}

.soundwave span:nth-child(odd) {
  height: 68%;
  animation-delay: 0.15s;
}

.soundwave span:nth-child(3n) {
  height: 92%;
  animation-delay: 0.4s;
}

.soundwave span:nth-child(4n) {
  height: 55%;
  animation-delay: 0.65s;
}

.soundwave span:nth-child(5n) {
  height: 78%;
  animation-delay: 0.3s;
}

@keyframes pulse {
  0%,
  100% {
    transform: scaleY(0.88);
  }
  50% {
    transform: scaleY(1.12);
  }
}

.block {
  position: absolute;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.block-a {
  width: 78px;
  height: 52px;
  background: #fff;
  border: 1px solid #eee;
  left: 2%;
  top: 16%;
  transform: rotate(-14deg);
  animation: float 5s ease-in-out infinite;
}

.block-b {
  width: 58px;
  height: 58px;
  background: var(--yellow);
  right: 4%;
  top: 18%;
  transform: rotate(16deg);
  animation: float 4.2s ease-in-out infinite reverse;
}

.block-c {
  width: 70px;
  height: 44px;
  background: #fff;
  border: 1px solid #eee;
  right: 8%;
  bottom: 14%;
  transform: rotate(-10deg);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -10px;
  }
}

.phone {
  position: relative;
  z-index: 2;
  width: 178px;
  height: 340px;
  background: #111;
  border-radius: 32px;
  padding: 10px;
  box-shadow:
    0 28px 50px rgba(0, 0, 0, 0.28),
    inset 0 0 0 2px #2a2a2a;
  transform: rotate(-5deg);
  animation: phone-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.phone-notch {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 8px;
  background: #111;
  border-radius: 999px;
  z-index: 3;
}

@keyframes phone-in {
  from {
    opacity: 0;
    transform: rotate(-5deg) translateY(24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: rotate(-5deg) translateY(0) scale(1);
  }
}

.phone-screen {
  height: 100%;
  border-radius: 24px;
  background: linear-gradient(165deg, #fafafa 0%, #efefef 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.phone-brand {
  text-align: center;
  padding: 1.25rem 0.75rem;
  width: 100%;
}

.phone-logo {
  width: 100%;
  max-width: 128px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.phone-tagline {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}

/* Features */
.features {
  padding: 0.5rem 1.25rem 2.5rem;
  text-align: center;
}

.features h2 {
  margin: 0 0 1.25rem;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--black);
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
}

.feature-card {
  display: flex;
  gap: 0.95rem;
  align-items: center;
  background: var(--card);
  border-radius: var(--radius);
  padding: 1rem 1.05rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  background: var(--yellow);
  color: var(--black);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  margin: 0 0 0.2rem;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--black);
}

.feature-card p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.4;
}

/* Footer CTA */
.cta-banner {
  background: var(--yellow);
  text-align: center;
  padding: 1.75rem 1.25rem 2.25rem;
}

.cta-banner p {
  margin: 0 auto 1.1rem;
  max-width: 28rem;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--black);
  line-height: 1.3;
}

.cta-banner .btn-lg {
  margin: 0 auto;
}

/* Modal */
.modal[hidden] {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.5);
  animation: fade-in 0.2s ease;
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 400px);
  max-height: min(90vh, 640px);
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  padding: 2rem 1.4rem 1.75rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
  animation: sheet-up 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes sheet-up {
  from {
    transform: translateY(16px) scale(0.98);
    opacity: 0.6;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: #888;
  cursor: pointer;
}

.modal-close:hover {
  background: #f3f3f3;
  color: #111;
}

.modal-step {
  display: none;
  text-align: center;
}

.modal-step.is-active {
  display: block;
}

.modal-logo {
  display: block;
  margin: 0.15rem auto 0.85rem;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.modal-step h2 {
  margin: 0.35rem 0 0.55rem;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--black);
}

.modal-step > p {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.45;
}

.choice-group {
  border: none;
  margin: 0 0 1rem;
  padding: 0;
  text-align: left;
}

.choice-group legend {
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  color: var(--black);
  padding: 0;
}

.choice {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  margin-bottom: 0.45rem;
  border: 1.5px solid #e5e5e5;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  color: var(--black);
  background: #fff;
}

.choice:has(input:checked) {
  border-color: var(--yellow-dark);
  background: #fffbeb;
}

.choice input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--yellow-dark);
}

.how-to-check {
  text-align: left !important;
  background: #f7f7f7;
  border-radius: 10px;
  padding: 0.75rem 0.85rem !important;
  margin-bottom: 1rem !important;
}

.fine-print {
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
  font-size: 0.78rem !important;
  color: var(--muted) !important;
}

.spinner {
  width: 40px;
  height: 40px;
  margin: 0.5rem auto 1rem;
  border: 3px solid #eee;
  border-top-color: var(--yellow);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.status-icon {
  width: 56px;
  height: 56px;
  margin: 0.25rem auto 0.75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 800;
}

.status-ok {
  background: #e8f8e8;
  color: #1a7a2e;
}

.status-fail {
  background: #fdeaea;
  color: #b42318;
}

.modal-step .btn-lg,
.modal-step a.btn-lg {
  margin-top: 0.35rem;
  max-width: none;
}

/* ========== Desktop layout ========== */
@media (min-width: 900px) {
  .site-header {
    padding: 1.5rem 2rem;
  }

  .brand-logo {
    height: 42px;
    max-width: 200px;
  }

  .btn-sm {
    padding: 0.6rem 1.15rem;
    font-size: 0.88rem;
  }

  .hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
    align-items: center;
    text-align: left;
    padding: 3rem 2rem 4rem;
    min-height: min(70vh, 640px);
  }

  .hero-copy-block {
    max-width: 34rem;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 4vw, 3.4rem);
    margin-bottom: 1.15rem;
  }

  .hero-copy {
    margin: 0 0 1.75rem;
    max-width: 32rem;
    font-size: 1.08rem;
    text-align: left;
  }

  .hero .btn-lg {
    margin: 0;
    width: auto;
    min-width: 320px;
    max-width: none;
    display: inline-flex;
    padding: 1.05rem 1.6rem;
    font-size: 1.02rem;
  }

  .hero-visual {
    height: 460px;
  }

  .phone {
    width: 210px;
    height: 400px;
    transform: rotate(-6deg);
  }

  .features {
    padding: 1rem 2rem 4.5rem;
  }

  .features h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
  }

  .feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.15rem;
  }

  .feature-card {
    padding: 1.35rem 1.3rem;
  }

  .feature-card h3 {
    font-size: 1.08rem;
  }

  .feature-card p {
    font-size: 0.92rem;
  }

  .cta-banner {
    padding: 3rem 2rem 3.25rem;
  }

  .cta-banner p {
    max-width: 36rem;
    font-size: 1.35rem;
    margin-bottom: 1.35rem;
  }

  .cta-banner .btn-lg {
    min-width: 220px;
    width: auto;
    display: inline-flex;
  }
}

@media (min-width: 1200px) {
  .hero {
    gap: 3.5rem;
    padding: 3.5rem 2rem 4.5rem;
  }

  .hero-visual {
    height: 500px;
  }

  .phone {
    width: 230px;
    height: 440px;
  }
}
