:root {
  color-scheme: light;
  --bg: #f6f3eb;
  --text: #102633;
  --muted: #36505e;
  --accent: #0f9da7;
  --accent-warm: #f2a243;
  --badge: #041522;
  --line: rgba(16, 38, 51, 0.14);
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}

.background {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(
      860px 500px at 50% 22%,
      rgba(255, 248, 227, 0.9),
      rgba(255, 248, 227, 0.24) 62%,
      transparent 100%
    ),
    linear-gradient(180deg, #fbf8f1 0%, #f6f3eb 62%, #f3efe4 100%);
}

.background::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 30%, rgba(242, 162, 67, 0.15), transparent 40%),
    radial-gradient(circle at 82% 24%, rgba(15, 157, 167, 0.17), transparent 44%);
}

.background::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.26;
  background-image:
    radial-gradient(rgba(16, 38, 51, 0.09) 0.75px, transparent 0.75px),
    radial-gradient(rgba(255, 255, 255, 0.5) 0.75px, transparent 0.75px);
  background-position: 0 0, 8px 8px;
  background-size: 16px 16px;
}

.hero {
  width: min(1240px, calc(100% - 72px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  align-items: center;
  padding: 52px 0;
}

.visuals {
  position: relative;
  height: min(72vh, 760px);
  min-height: 560px;
}

.phone {
  position: absolute;
  margin: 0;
  width: min(31vw, 360px);
  aspect-ratio: 1320 / 2868;
  border-radius: 44px;
  overflow: hidden;
  background: #101a27;
  border: 4px solid #0d2740;
  box-shadow: 0 28px 52px rgba(14, 29, 41, 0.33);
}

.phone::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-left {
  left: 1%;
  top: 11%;
  z-index: 2;
  transform: rotate(-10deg);
}

.phone-right {
  left: 38%;
  top: 22%;
  z-index: 1;
  transform: rotate(8deg);
}

.copy {
  max-width: 560px;
  padding-left: 18px;
}

.brand {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 6px 16px rgba(15, 36, 49, 0.08);
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.brand span {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #1d3a4d;
}

h1 {
  margin: 16px 0 0;
  font-family: "Fraunces", "Georgia", "Times New Roman", serif;
  font-size: clamp(2.05rem, 4.7vw, 4.12rem);
  line-height: 0.97;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.accent {
  color: var(--accent);
}

.subtitle {
  margin: 26px 0 24px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.38vw, 1.18rem);
  line-height: 1.54;
}

.highlights {
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.highlights li {
  position: relative;
  padding-left: 28px;
  color: #214254;
  font-size: 0.98rem;
  line-height: 1.3;
}

.highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-warm), var(--accent));
  box-shadow: 0 2px 8px rgba(15, 157, 167, 0.3);
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.store-badge {
  min-width: 222px;
  height: 70px;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--badge);
  color: #fff;
  border: 1px solid #1c3446;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 7px 16px rgba(3, 14, 23, 0.3);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.store-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(3, 14, 23, 0.36);
}

.store-badge.image-badge {
  min-width: 0;
  width: min(100%, 320px);
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
}

.store-badge.image-badge:hover {
  transform: none;
  box-shadow: none;
}

.store-badge-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.badge-icon {
  width: 38px;
  flex: 0 0 38px;
  text-align: center;
  font-size: 30px;
  line-height: 1;
}

.badge-icon.apple {
  margin-top: -2px;
  font-size: 34px;
}

.badge-text {
  display: grid;
  gap: 2px;
  align-content: center;
}

.badge-text small {
  display: block;
  font-size: 0.8rem;
  opacity: 0.88;
}

.badge-text strong {
  display: block;
  font-size: 2.08rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 0.95;
}

.is-disabled {
  cursor: default;
  pointer-events: none;
}

.helper {
  margin: 18px 0 0;
  font-size: 0.92rem;
  color: #4d6574;
}

.support {
  margin: 10px 0 0;
  font-size: 0.95rem;
  color: #2c4a5b;
}

.support a {
  color: #0e7f97;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.support a:hover {
  color: #0b5f72;
}

@media (max-width: 1200px) {
  .hero {
    width: min(1120px, calc(100% - 52px));
    grid-template-columns: 1.1fr 1fr;
  }

  .copy {
    padding-left: 0;
  }

  .phone {
    width: min(34vw, 320px);
  }

  .phone-left {
    left: 2%;
    top: 13%;
  }

  .phone-right {
    left: 41%;
    top: 24%;
  }
}

@media (max-width: 900px) {
  .hero {
    width: min(650px, calc(100% - 28px));
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: start;
    padding: calc(20px + env(safe-area-inset-top, 0px)) 0
      calc(24px + env(safe-area-inset-bottom, 0px));
  }

  .visuals {
    height: auto;
    min-height: 0;
    margin-bottom: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 12px;
    overflow: visible;
    padding: 3px 0 10px;
  }

  .phone {
    position: relative;
    width: min(42vw, 232px);
    border-radius: 34px;
    left: auto;
    top: auto;
  }

  .phone-left {
    transform: rotate(-8deg) translateY(14px);
    z-index: 2;
  }

  .phone-right {
    margin-left: -10px;
    transform: rotate(6deg);
    z-index: 1;
  }

  .copy {
    max-width: 100%;
    padding-left: 0;
  }

  h1 {
    font-size: clamp(2rem, 8.6vw, 3.1rem);
  }

  .subtitle {
    margin: 20px 0;
    font-size: 1rem;
  }

  .highlights {
    margin-bottom: 24px;
  }

  .stores {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .store-badge {
    min-width: 0;
    width: min(100%, 332px);
    height: 64px;
    padding: 9px 14px;
  }

  .store-badge.image-badge {
    width: min(100%, 332px);
    height: auto;
    padding: 0;
  }

  .badge-text strong {
    font-size: 1.58rem;
  }
}

@media (max-width: 640px) {
  .hero {
    width: calc(100% - 20px);
    gap: 12px;
    padding: calc(14px + env(safe-area-inset-top, 0px)) 0
      calc(22px + env(safe-area-inset-bottom, 0px));
  }

  .visuals {
    gap: 8px;
    padding: 2px 0 8px;
  }

  .phone {
    width: min(44vw, 182px);
    border-radius: 30px;
    border-width: 3px;
  }

  .phone-left {
    transform: rotate(-7deg) translateY(10px);
  }

  .phone-right {
    margin-left: -8px;
    transform: rotate(5deg);
  }

  .brand {
    padding: 7px 10px;
  }

  .brand img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .brand span {
    font-size: 0.74rem;
  }

  h1 {
    font-size: clamp(1.74rem, 9.8vw, 2.52rem);
    line-height: 0.99;
  }

  .subtitle {
    margin: 14px 0 18px;
    font-size: 0.95rem;
    line-height: 1.42;
  }

  .highlights {
    margin-bottom: 18px;
    gap: 8px;
  }

  .highlights li {
    font-size: 0.91rem;
    padding-left: 24px;
  }

  .highlights li::before {
    width: 12px;
    height: 12px;
    top: 0.36rem;
  }

  .stores {
    gap: 10px;
  }

  .store-badge {
    width: min(100%, 304px);
    height: 58px;
    padding: 8px 11px;
    gap: 10px;
    border-radius: 9px;
  }

  .store-badge.image-badge {
    width: min(100%, 304px);
    height: auto;
    padding: 0;
    border-radius: 9px;
  }

  .badge-icon {
    width: 30px;
    flex: 0 0 30px;
    font-size: 22px;
  }

  .badge-icon.apple {
    font-size: 26px;
  }

  .badge-text small {
    font-size: 0.67rem;
  }

  .badge-text strong {
    font-size: 1.36rem;
    line-height: 0.98;
  }

  .helper {
    margin-top: 14px;
    font-size: 0.85rem;
  }

  .support {
    font-size: 0.86rem;
  }
}

@media (max-width: 420px) {
  .hero {
    width: calc(100% - 16px);
    padding-top: calc(10px + env(safe-area-inset-top, 0px));
  }

  .visuals {
    justify-content: space-between;
    padding-inline: 2px;
  }

  .phone {
    width: min(43vw, 160px);
    border-radius: 28px;
  }

  .phone-left {
    transform: rotate(-6deg) translateY(8px);
  }

  .phone-right {
    margin-left: -6px;
    transform: rotate(4deg);
  }

  h1 {
    font-size: clamp(1.58rem, 10vw, 2.04rem);
  }

  .store-badge {
    width: 100%;
    max-width: none;
    height: 54px;
    padding: 7px 10px;
  }

  .store-badge.image-badge {
    height: auto;
    padding: 0;
    border-radius: 9px;
  }
}
