:root {
  color-scheme: light;
  --bg: #fff6d9;
  --bg-soft: #fffaf0;
  --fg: #3a3732;
  --muted: #756b5c;
  --line: #ead9ad;
  --line-strong: #3a3732;
  --surface: #fffdf7;
  --surface-warm: #fff0bf;
  --yellow: #ffd66e;
  --pink: #ffd9df;
  --green: #cde4b4;
  --blue: #cfe5f7;
  --orange: #ffb45f;
  --shadow: rgba(58, 55, 50, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-soft);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  line-height: 1.72;
}

a {
  color: inherit;
  text-underline-offset: 3px;
}

p,
li {
  font-size: 16px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.home-body {
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 214, 110, 0.55), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(255, 217, 223, 0.7), transparent 22%),
    linear-gradient(180deg, #fff4cf 0%, #fffaf0 52%, #fffdf7 100%);
}

.landing-hero,
.rooms-section,
.feeling-section,
.trust-section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.landing-hero {
  min-height: 94svh;
  padding: 22px 0 56px;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 48px;
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: clamp(132px, 16vw, 174px);
  height: auto;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  background: var(--fg);
  color: #fffaf0;
  border-radius: 10px;
  font-size: 16px;
}

.nav-links a {
  padding: 10px 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(330px, 1fr);
  gap: clamp(34px, 6vw, 80px);
  align-items: center;
  padding: clamp(36px, 7vw, 84px) 0 0;
}

.soft-label {
  margin-bottom: 12px;
  color: #8d6a22;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 640px;
  margin-bottom: 18px;
  font-size: clamp(44px, 8.6vw, 86px);
  font-weight: 900;
  line-height: 1.03;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 500px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.primary-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  font-size: 15px;
  font-weight: 900;
}

.primary-button {
  padding: 0 20px;
  background: var(--fg);
  color: #fffaf0;
  border: 2px solid var(--fg);
  border-radius: 999px;
  box-shadow: 0 7px 0 rgba(58, 55, 50, 0.16);
  text-decoration: none;
}

.text-link {
  color: var(--muted);
}

.hero-art {
  position: relative;
  display: grid;
  min-height: 560px;
  place-items: center;
}

.phone-shell {
  position: relative;
  width: min(356px, 86vw);
  min-height: 640px;
  padding: 16px;
  background: #3a3732;
  border: 3px solid #3a3732;
  border-radius: 46px;
  box-shadow: 0 28px 50px rgba(58, 55, 50, 0.2);
  transform: rotate(2deg);
  z-index: 2;
}

.phone-top {
  width: 94px;
  height: 10px;
  margin: 0 auto 12px;
  background: #fffaf0;
  border-radius: 999px;
  opacity: 0.42;
}

.phone-screen {
  min-height: 578px;
  padding: 22px 18px;
  background:
    linear-gradient(180deg, rgba(255, 246, 217, 0.8), rgba(255, 253, 247, 0.96)),
    #fffdf7;
  border-radius: 34px;
  overflow: hidden;
}

.screen-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.screen-title span:last-child {
  padding: 5px 9px;
  background: var(--yellow);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--fg);
}

.memo-card {
  padding: 18px;
  background: #fffaf0;
  border: 2px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: 0 8px 0 rgba(58, 55, 50, 0.12);
}

.memo-meta {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.memo-text {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.45;
}

.reaction-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  padding: 12px;
  background: #fff3c4;
  border: 1px dashed #c9a95e;
  border-radius: 16px;
}

.reaction-row p {
  margin: 0;
  color: #6f5d3a;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
}

.bean-friend {
  position: relative;
  width: 48px;
  height: 48px;
  background: var(--orange);
  border: 2px solid var(--fg);
  border-radius: 48% 52% 45% 55%;
  transform: rotate(-8deg);
}

.bean-friend::before,
.bean-friend::after {
  position: absolute;
  top: 17px;
  width: 6px;
  height: 6px;
  background: var(--fg);
  border-radius: 999px;
  content: "";
}

.bean-friend::before {
  left: 14px;
}

.bean-friend::after {
  right: 14px;
}

.bean-friend span {
  position: absolute;
  left: 19px;
  bottom: 12px;
  width: 10px;
  height: 5px;
  border-bottom: 2px solid var(--fg);
  border-radius: 0 0 999px 999px;
}

.room-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 22px;
}

.room-tabs span {
  min-height: 70px;
  padding: 10px 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--fg);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.note-sticker {
  position: absolute;
  right: clamp(0px, 8vw, 88px);
  bottom: 58px;
  z-index: 3;
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  background: var(--pink);
  border: 2px solid var(--fg);
  border-radius: 23px 23px 30px 23px;
  box-shadow: 0 8px 0 rgba(58, 55, 50, 0.12);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  transform: rotate(-8deg);
}

.sparkle {
  position: absolute;
  border: 2px solid var(--fg);
  transform: rotate(45deg);
}

.sparkle-one {
  top: 50px;
  left: 44px;
  width: 34px;
  height: 34px;
  background: var(--yellow);
}

.sparkle-two {
  right: 18px;
  top: 112px;
  width: 22px;
  height: 22px;
  background: var(--green);
}

.rooms-section,
.feeling-section,
.trust-section {
  padding: 78px 0;
}

.section-heading {
  max-width: 650px;
  margin-bottom: 28px;
}

.room-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.single-service-list {
  max-width: 560px;
  grid-template-columns: 1fr;
}

.room-card {
  min-height: 260px;
  padding: 22px;
  border: 2px solid var(--fg);
  border-radius: 24px;
  box-shadow: 0 8px 0 rgba(58, 55, 50, 0.12);
}

.memo-room {
  background: #fff2b8;
}

.diary-room {
  background: #ffe1e7;
}

.community-room {
  background: #dff0c9;
}

.lucky-room {
  background: #dff0ff;
}

.room-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  place-items: center;
  background: #fffdf7;
  border: 2px solid var(--fg);
  border-radius: 14px;
  font-size: 22px;
  font-weight: 900;
}

.room-card p {
  min-height: 88px;
  color: #695c49;
  line-height: 1.65;
}

.room-card strong {
  display: inline-block;
  border-bottom: 2px solid var(--fg);
  font-size: 15px;
}

.service-card p {
  min-height: 0;
}

.service-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--fg);
  font-size: 15px;
  font-weight: 900;
  text-underline-offset: 4px;
}

.feeling-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.8fr);
  gap: 42px;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feeling-copy p,
.trust-section p {
  max-width: 630px;
  color: var(--muted);
  font-size: 18px;
}

.principles {
  display: grid;
  gap: 12px;
}

.principles div {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.principles span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: var(--yellow);
  border: 1px solid var(--fg);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
}

.trust-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 42px;
  align-items: start;
}

.page {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 48px 22px 72px;
}

.doc-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.meta,
small {
  color: var(--muted);
  font-size: 14px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #8d6a22;
  font-weight: 700;
}

.lead {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
}

.notice {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  margin: 20px 0;
}

.notice p {
  margin: 0;
}

.link-list {
  display: grid;
  gap: 10px;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
}

.home-links .row {
  border: 2px solid var(--fg);
  border-radius: 18px;
  box-shadow: 0 6px 0 rgba(58, 55, 50, 0.1);
}

.row strong,
.row small {
  display: block;
}

.back-link {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

hr {
  height: 1px;
  margin: 42px 0 32px;
  border: 0;
  background: var(--line);
}

@media (max-width: 880px) {
  .landing-hero {
    min-height: auto;
  }

  .hero-grid,
  .feeling-section,
  .trust-section {
    grid-template-columns: 1fr;
  }

  .hero-art {
    min-height: auto;
  }

  .phone-shell {
    width: min(330px, 88vw);
    min-height: 590px;
  }

  .phone-screen {
    min-height: 528px;
  }

  .room-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .landing-hero,
  .rooms-section,
  .feeling-section,
  .trust-section {
    width: min(100% - 28px, 1120px);
  }

  .top-nav {
    align-items: flex-start;
  }

  .nav-links {
    gap: 12px;
  }

  .nav-links a {
    font-size: 13px;
  }

  .hero-grid {
    padding-top: 28px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .text-link {
    width: 100%;
  }

  .phone-shell {
    transform: none;
  }

  .note-sticker {
    right: 0;
    bottom: 28px;
    width: 82px;
    height: 82px;
    font-size: 13px;
  }

  .sparkle-one {
    left: 8px;
  }

  .room-card {
    min-height: 0;
  }

  .room-card p {
    min-height: 0;
  }
}
