@font-face {
  font-family: "AaGongCatPen";
  src: url("/assets/fonts/AaGongCatPen.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #f4f1e8;
  --yellow: #fef600;
  --ink: #000000;
  --white: #ffffff;
  --gray-700: #3d3d3d;
  --gray-500: #6d6d6d;
  --line: 2.5px solid var(--ink);
  --hand-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  --font-hand: "AaGongCatPen", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  --font-system: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-hand);
  font-synthesis: none;
  font-size: 18px;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: break-word;
}

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

a {
  color: inherit;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-weight: 400;
  line-height: 1.2;
}

p {
  margin: 0;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.mark {
  background-image: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 92%, transparent 92%);
  padding: 0 4px;
}

/* Header */

.site-header {
  border-bottom: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}

.brand img {
  width: 112px;
  height: auto;
}

.header-link {
  font-size: 20px;
  text-decoration: none;
  padding: 2px 14px;
  border: var(--line);
  border-radius: var(--hand-radius);
  background: var(--white);
  transition: background-color 0.15s ease;
}

.header-link:hover {
  background: var(--yellow);
}

/* Hero */

.hero {
  padding-top: 48px;
  border-bottom: var(--line);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  gap: 40px;
}

.hero-copy {
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  padding: 0 14px;
  font-size: 20px;
  border: 2px solid var(--ink);
  border-radius: var(--hand-radius);
  background: var(--white);
}

.hero h1 {
  font-size: clamp(42px, 10vw, 68px);
}

.lead {
  margin-top: 20px;
  font-size: clamp(20px, 5.4vw, 23px);
  color: var(--gray-700);
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.store-button {
  --btn-shadow: var(--yellow);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 172px;
  min-height: 56px;
  padding: 8px 20px;
  color: var(--white);
  background: var(--ink);
  font-family: var(--font-system);
  border-radius: var(--hand-radius);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.store-button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--btn-shadow);
}

.store-button svg {
  flex-shrink: 0;
}

.store-button span {
  display: flex;
  flex-direction: column;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.15;
  text-align: left;
}

.store-button small {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.hero-visual {
  position: relative;
  height: clamp(330px, 88vw, 470px);
}

.phone {
  position: absolute;
  left: 50%;
}

.phone-center {
  top: 0;
  z-index: 2;
  width: clamp(200px, 54vw, 280px);
  transform: translateX(-50%);
}

.phone-side {
  top: 56px;
  z-index: 1;
  width: clamp(160px, 44vw, 228px);
}

.phone-left {
  transform: translateX(-108%) rotate(-7deg);
}

.phone-right {
  transform: translateX(8%) rotate(7deg);
}

.hero-character {
  position: absolute;
  top: 6px;
  left: calc(50% + clamp(60px, 18vw, 96px));
  z-index: 3;
  width: clamp(64px, 17vw, 88px);
  animation: bob 3.2s ease-in-out infinite;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0) rotate(8deg);
  }
  50% {
    transform: translateY(-8px) rotate(2deg);
  }
}

/* Features */

.features {
  padding: 72px 0 80px;
  background: var(--white);
  border-bottom: var(--line);
}

.section-title {
  width: fit-content;
  margin: 0 auto 40px;
  padding-bottom: 14px;
  font-size: clamp(34px, 8vw, 46px);
  text-align: center;
  background: url("/assets/underline.svg") center bottom / 100% 10px no-repeat;
}

.feature-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature {
  padding: 24px 24px 28px;
  background: var(--cream);
  border: var(--line);
  border-radius: 18px 6px 22px 8px / 8px 20px 6px 18px;
}

.feature-num {
  display: inline-block;
  margin-bottom: 8px;
  padding: 0 4px;
  font-size: 22px;
  line-height: 1.2;
  background: var(--yellow);
}

.feature h3 {
  margin-bottom: 10px;
  font-size: 28px;
}

.feature p {
  color: var(--gray-700);
  font-size: 19px;
  line-height: 1.5;
}

/* CTA */

.cta {
  --lemon-width: min(64vw, 300px);
  position: relative;
  overflow: hidden;
  padding: 64px 0 calc(var(--lemon-width) * 0.825 + 24px);
  border-bottom: var(--line);
}

.cta-inner {
  text-align: center;
}

.cta-character {
  position: absolute;
  right: 0;
  bottom: 0;
  width: var(--lemon-width);
}

.cta h2 {
  font-size: clamp(36px, 8.6vw, 52px);
}

.cta-copy > p {
  margin-top: 16px;
  font-size: 21px;
  color: var(--gray-700);
}

/* Footer */

.site-footer {
  padding: 40px 0 48px;
  background: var(--white);
}

.footer-inner {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
  font-size: 18px;
  color: var(--gray-700);
}

.footer-inner img {
  width: 92px;
  margin-bottom: 6px;
}

.footer-inner a {
  color: var(--ink);
}

.copyright {
  font-size: 15px;
  color: var(--gray-500);
}

/* Layout */

@media (min-width: 640px) {
  .feature-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .hero {
    padding-top: 0;
  }

  .hero-inner {
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 24px;
  }

  .hero-copy {
    align-self: center;
    padding: 64px 0;
    text-align: left;
  }

  .hero-copy .store-buttons {
    justify-content: flex-start;
  }

  .hero-visual {
    height: 500px;
    margin-top: 48px;
  }

  .feature-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .cta {
    --lemon-width: 349px;
    padding: 96px 0;
  }

  .cta-inner {
    text-align: left;
  }

  .cta .store-buttons {
    justify-content: flex-start;
  }
}

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

  .hero-character {
    animation: none;
    transform: rotate(8deg);
  }

  .store-button,
  .header-link {
    transition: none;
  }
}
