:root {
  --brand: #6c3af2;
  --ink: #1a1a1a;
  --muted: #60636a;
  --footer: #e4d7f6;
  --contact: #f7f3ff;
  --contact-border: #efe8ff;
  --line: #ececf2;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-width: 320px;
  background: #fff;
}

body {
  color: var(--ink);
  font-family: "SF Pro", "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

a {
  color: inherit;
}

.h5-only {
  display: none;
}

.home-page,
.support-page {
  min-height: 100vh;
  background: #fff;
}

.home-page {
  display: flex;
  flex-direction: column;
  background: #fff url("./assets/web-bg.png") center top / cover no-repeat;
}

.site-header {
  display: flex;
  flex: 0 0 120px;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 0 100px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  font-size: 34px;
  font-weight: 700;
  line-height: 41px;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 48px;
  height: 48px;
}

.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  padding: 12px 32px;
  border-radius: 24px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  text-decoration: none;
}

.nav-button-support {
  background: var(--brand);
}

.nav-button-home {
  background: #111;
  font-size: 17px;
  line-height: 22px;
}

.home-hero {
  display: flex;
  flex: 1 0 560px;
  align-items: center;
  width: min(100% - 200px, 1240px);
  margin: 0 auto;
  overflow: hidden;
}

.hero-copy {
  display: flex;
  flex: 0 0 680px;
  flex-direction: column;
  align-items: flex-start;
  gap: 80px;
}

.hero-copy h1 {
  margin: 0;
  font-size: 60px;
  font-weight: 700;
  line-height: 1.2;
}

.hero-copy h1 span {
  display: block;
}

.hero-copy h1 span + span {
  margin-top: 8px;
  color: var(--brand);
}

.hero-copy p {
  width: min(650px, 100%);
  margin: 40px 0 0;
  color: var(--muted);
  font-size: 22px;
  font-weight: 400;
  line-height: 28px;
}

.app-store-badge {
  display: block;
  width: 228px;
  height: 68px;
  border-radius: 20px;
}

.hero-art {
  display: block;
  flex: 0 0 560px;
  width: 560px;
  height: 560px;
  object-fit: contain;
}

.site-footer {
  display: flex;
  flex: 0 0 89px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 max(40px, calc((100vw - 1200px) / 2));
  background: var(--footer);
  font-size: 15px;
  line-height: 22px;
}

.footer-info,
.footer-links {
  display: flex;
  align-items: center;
}

.footer-info {
  gap: 32px;
}

.footer-links {
  gap: 22px;
}

.footer-links a {
  text-decoration: none;
}

.support-page {
  display: flex;
  flex-direction: column;
}

.support-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 40px;
  width: min(100% - 48px, 920px);
  margin: 40px auto 48px;
}

.support-intro {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.support-intro h1 {
  margin: 0;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
}

.support-intro p,
.contact-card p,
.faq-list p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 22px;
}

.support-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.support-section h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 36px;
}

.support-section h2 img {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding: 23px 24px;
  border: 1px solid var(--contact-border);
  border-radius: 32px;
  background: var(--contact);
}

.contact-card p {
  font-weight: 600;
}

.contact-card p a {
  color: var(--brand);
  text-decoration: none;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 196px;
  height: 52px;
  border-radius: 24px;
  background: var(--brand);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  line-height: 22px;
  text-decoration: none;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  overflow: hidden;
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  line-height: 22px;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-right: 1.8px solid #111;
  border-bottom: 1.8px solid #111;
  content: "";
  transform: rotate(45deg) translateY(-2px);
  transition: transform 160ms ease;
}

.faq-list details[open] summary::after {
  transform: rotate(225deg) translate(-2px, -2px);
}

.faq-list details[open] summary {
  padding-bottom: 12px;
}

.faq-list details > p {
  padding: 0 52px 24px 24px;
}

@media (max-width: 1439px) and (min-width: 901px) {
  .site-header {
    padding-right: 48px;
    padding-left: 48px;
  }

  .home-hero {
    width: min(calc(100% - 96px), 1240px);
  }

  .hero-copy {
    flex-basis: 54.8387%;
  }

  .hero-copy h1 {
    font-size: clamp(44px, 5vw, 60px);
  }

  .hero-copy p {
    font-size: clamp(18px, 1.8vw, 22px);
  }

  .hero-art {
    flex-basis: 45.1613%;
    width: 45.1613%;
    height: auto;
  }
}

@media (max-width: 1000px) and (min-width: 901px) {
  .site-footer {
    padding-right: 32px;
    padding-left: 32px;
    font-size: 13px;
  }

  .footer-info {
    gap: 20px;
  }

  .footer-links {
    gap: 18px;
  }
}

@media (max-width: 900px) {
  .home-page,
  .support-page {
    width: min(100%, 390px);
    margin: 0 auto;
  }

  .home-page {
    background-color: #f9f8fc;
    background-image:
      url("./assets/mobile-bg.png"),
      linear-gradient(90deg, #d3c2f4 0%, #efe8fb 17%, #f9f8fc 34%, #f9f9fc 100%);
    background-position: center top, center top;
    background-size: 390px 844px, 390px 100%;
    background-repeat: no-repeat;
  }

  .h5-only {
    display: inline;
  }

  .site-header {
    flex: 0 0 64px;
    width: 100%;
    padding: 0 24px;
  }

  .brand {
    gap: 9px;
    font-size: 22px;
    font-weight: 590;
    line-height: 28px;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .nav-button {
    min-width: 0;
    padding: 4px 12px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.5);
    color: var(--ink);
    font-size: 13px;
    font-weight: 400;
    line-height: 18px;
  }

  .nav-button-home {
    height: 28px;
    border-color: #e5e3ea;
  }

  .home-hero {
    display: flex;
    flex: 1;
    flex-direction: column;
    width: 100%;
    margin: 0;
    overflow: visible;
  }

  .hero-art {
    order: 1;
    flex: 0 0 240px;
    width: 240px;
    height: 240px;
    margin: 20px auto 0;
  }

  .hero-copy {
    display: contents;
  }

  .hero-copy > div {
    order: 2;
    width: 100%;
    padding: 0 24px;
    text-align: center;
  }

  .hero-copy h1 {
    margin-top: 20px;
    font-size: 36px;
    line-height: 44px;
  }

  .hero-copy h1 span + span {
    margin-top: 0;
  }

  .hero-copy p {
    width: 100%;
    margin-top: 20px;
    font-size: 17px;
    line-height: 22px;
  }

  .app-store-badge {
    order: 3;
    width: 228px;
    height: 68px;
    margin: auto auto 50px;
  }

  .site-footer {
    flex: 0 0 auto;
    flex-direction: column-reverse;
    justify-content: center;
    gap: 8px;
    min-height: 110px;
    padding: 20px 16px;
    font-size: 13px;
    line-height: 18px;
    text-align: center;
  }

  .footer-info {
    flex-direction: column;
    gap: 8px;
  }

  .footer-info span {
    display: block;
    height: 18px;
    line-height: 18px;
  }

  .footer-info span:first-child {
    font-size: 0;
  }

  .footer-info span:first-child::after {
    content: "customer-service@spark-jam.top";
    font-size: 13px;
  }

  .footer-info span:last-child {
    font-size: 0;
  }

  .footer-info span:last-child::after {
    content: "© 2026 SparkJam Co., Limited";
    font-size: 13px;
  }

  .footer-links {
    gap: 0;
  }

  .footer-links a + a::before {
    padding: 0 8px;
    content: "·";
  }

  .support-page {
    min-height: 100vh;
  }

  .support-content {
    gap: 32px;
    width: calc(100% - 48px);
    margin: 24px auto;
  }

  .support-intro {
    gap: 20px;
  }

  .support-intro h1 {
    font-size: 32px;
    line-height: 40px;
  }

  .support-intro p {
    font-size: 15px;
    line-height: 22px;
  }

  .contact-card p {
    font-size: 15px;
    line-height: 20px;
  }

  .support-section {
    gap: 20px;
  }

  .support-section h2 {
    gap: 8px;
    font-size: 20px;
    font-weight: 590;
    line-height: 25px;
  }

  .support-section h2 img {
    flex-basis: 24px;
    width: 24px;
    height: 24px;
  }

  .contact-card {
    align-items: center;
    gap: 20px;
    padding: 15px 20px;
    border-radius: 24px;
  }

  .contact-card p {
    width: 100%;
  }

  .faq-list {
    gap: 16px;
  }

  .faq-list details {
    border-radius: 20px;
  }

  .faq-list summary {
    padding: 19px 20px;
    font-size: 17px;
    font-weight: 590;
    line-height: 22px;
  }

  .faq-list details[open] summary {
    padding-bottom: 10px;
  }

  .faq-list details > p {
    padding: 0 36px 16px 14px;
    font-size: 14px;
    line-height: 20px;
  }

  .support-page .site-footer {
    margin-top: auto;
  }
}

@media (max-width: 389px) {
  .hero-copy h1 {
    font-size: 32px;
    line-height: 40px;
  }

  .support-content {
    width: calc(100% - 32px);
  }

  .support-intro h1 {
    font-size: 30px;
  }
}
