/* ------------------------------
  CSS RESET & BASE STYLES
-------------------------------*/
html,body,div,span,applet,object,iframe,
h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,
acronym,address,big,cite,code,del,dfn,em,
img,ins,kbd,q,s,samp,small,strike,strong,
sub,sup,tt,var,u,i,center,dl,dt,dd,ol,ul,li,
fieldset,form,label,legend,table,caption,
tbody,tfoot,thead,tr,th,td,article,aside,
canvas,details,embed,figure,figcaption,
footer,header,hgroup,menu,nav,output,ruby,
section,summary,time,mark,audio,video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
article,aside,details,figcaption,figure,
footer,header,hgroup,menu,nav,section {
  display: block;
}
body {
  line-height: 1.5;
  background: #FFF;
  color: #192718;
  font-family: 'Spoqa Han Sans Neo', 'Noto Sans KR', Arial, sans-serif;
  font-size: 16px;
  letter-spacing: -0.01em;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
ul,ol {
  list-style: none;
  padding-left: 0;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
img {
  display: inline-block;
  max-width: 100%;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  outline: none;
  color: inherit;
}
button {
  cursor: pointer;
}
/* ------------------------------
  BRAND COLORS & VARIABLES
-------------------------------*/
:root {
  --color-primary: #4C604B;
  --color-secondary: #F6EAD7;
  --color-accent: #D86C27;
  --color-surface: #FFFDF7;
  --color-bg-alt: #FFFBF5;
  --color-purple: #8D6FD8;
  --color-orange: #FFA642;
  --color-green-bright: #77C44C;
  --color-blue: #21B8EB;
  --color-yellow: #FFE769;
  --color-danger: #E2372F;
  --color-grey-light: #F5F7FA;
  --color-grey-dark: #838383;
  --color-black: #222;
  --color-white: #FFF;
}

/* ------------------------------
  GLOBAL TYPOGRAPHY
-------------------------------*/
h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Sans KR', 'Spoqa Han Sans Neo', Arial, sans-serif;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
}
h1 {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  color: var(--color-accent);
  margin-bottom: 20px;
  font-family: 'Noto Sans KR', cursive, sans-serif;
}
h3 {
  font-size: 1.3rem;
  color: var(--color-primary);
  margin: 0 0 12px 0;
  font-family: 'Noto Sans KR', cursive, sans-serif;
}
h4, h5, h6 {
  font-size: 1.1rem;
}
p, li, blockquote, label {
  font-family: 'Spoqa Han Sans Neo', 'Noto Sans KR', Arial, sans-serif;
  color: #364c2e;
  line-height: 1.7;
  font-size: 1rem;
}
blockquote {
  color: var(--color-purple);
  background: var(--color-white);
  border-left: 6px solid var(--color-accent);
  padding: 14px 20px;
  margin: 0 0 16px 0;
  font-style: italic;
  border-radius: 14px 2px 14px 2px;
  box-shadow: 0 1px 8px 0 rgba(218,108,39,0.08);
}
strong {
  color: var(--color-primary);
}

/* Fun playful headings */
h1, h2 {
  letter-spacing: -0.02em;
  text-shadow: 2px 4px 0 #FFE769, 1px 1px 0 #fae4b8;
}
h2 {
  text-shadow: 2px 4px 0 #77C44C, 1px 1px 0 #fff7ea;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.4rem;
  }
}

/* ------------------------------
  LAYOUT WRAPPERS
-------------------------------*/
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
  box-sizing: border-box;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-surface);
  margin-bottom: 20px;
  border-radius: 20px;
  box-shadow: 0 4px 16px 0 rgba(76,96,75,0.12);
  position: relative;
  transition: transform 0.22s cubic-bezier(.25,.8,.25,1), box-shadow 0.24s;
}
.card:hover {
  transform: translateY(-6px) rotate(-2deg) scale(1.03);
  box-shadow: 0 12px 32px 0 rgba(216,108,39,0.16);
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--color-yellow);
  color: var(--color-black);
  padding: 20px;
  border-radius: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 14px 0 rgba(141,111,216,0.12);
  transition: box-shadow 0.22s, transform 0.19s;
}
.testimonial-card:hover {
  box-shadow: 0 10px 34px 0 rgba(141,111,216,0.23);
  transform: translateY(-6px) scale(1.02);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-bg-alt);
  padding: 18px 20px;
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(119,196,76,0.10);
}

/* Features grid is used for info & cards */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.features-grid > div {
  background: var(--color-secondary);
  border-radius: 20px;
  flex: 1 1 210px;
  min-width: 220px;
  max-width: 260px;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 0 2px 16px 0 rgba(76, 96, 75, 0.10);
  transition: box-shadow 0.22s, transform 0.19s;
  position: relative;
  margin-bottom: 20px;
  z-index: 1;
}
.features-grid img {
  width: 38px;
  height: 38px;
  margin-bottom: 10px;
  filter: drop-shadow(1px 4px 0 #F6EAD7);
}
.features-grid > div:hover {
  box-shadow: 0 10px 38px 0 rgba(218,108,39,0.16);
  transform: translateY(-4px) scale(1.04) rotate(-1deg);
}

.category-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin: 9px 0;
}
.category-list li {
  display: flex;
  align-items: center;
  background: var(--color-purple);
  color: #fff;
  border-radius: 18px;
  font-size: 1rem;
  padding: 9px 18px;
  font-weight: bold;
  gap: 10px;
  box-shadow: 0 2px 12px 0 rgba(141,111,216,0.12);
  transition: transform 0.15s linear;
}
.category-list li img {
  height: 22px;
  width: 22px;
}
.category-list li:hover {
  transform: scale(1.12) rotate(3deg);
  background: var(--color-green-bright);
  color: var(--color-black);
}

/* Checklist, Alert, Cards */
.checklist li {
  position: relative;
  padding-left: 2.2em;
  font-size: 1em;
  margin-bottom: 14px;
}
.checklist li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0px;
  color: var(--color-green-bright);
  font-weight: bold;
  font-size: 1.2em;
}
.alert {
  display: flex;
  align-items: center;
  background: var(--color-orange);
  color: var(--color-black);
  gap: 14px;
  border-radius: 14px;
  padding: 18px 20px;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 1px 10px 0 rgba(255,210,106,0.15);
}
.alert img {
  width: 32px;
  height: 32px;
}

/* Card content helper */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

/* Ensure min space between content cards */
section > div > .content-wrapper > * + * {
  margin-top: 20px;
}

/* ------------------------------
  HEADER & NAVIGATION
-------------------------------*/
header {
  background: var(--color-primary);
  display: flex;
  align-items: center;
  padding: 0 28px;
  height: 72px;
  position: sticky;
  top: 0;
  z-index: 1080;
  width: 100%;
  box-shadow: 0 3px 18px -12px rgba(76, 96, 75, 0.13);
}
.logo {
  display: flex;
  align-items: center;
  margin-right: 32px;
  height: 52px;
}
.logo img {
  height: 48px;
  transition: transform 0.18s;
}
.logo:hover img {
  transform: scale(1.08) rotate(-4deg);
}
header nav {
  display: flex;
  gap: 16px;
  align-items: center;
  flex: 1 0 auto;
}
header nav a {
  color: #fff;
  font-size: 1.04rem;
  font-weight: 700;
  border-radius: 16px;
  padding: 7px 18px;
  transition: background 0.17s, color 0.14s;
}
header nav a:hover, header nav a:focus {
  background: var(--color-accent);
  color: #fff;
}
header .cta.primary {
  background: var(--color-accent);
  color: #fff;
  font-size: 1.12rem;
  font-weight: 900;
  margin-left: 26px;
  border-radius: 24px;
  padding: 11px 28px;
  box-shadow: 0 2px 12px 0 rgba(216,108,39,.12);
  border: none;
  transition: box-shadow 0.21s, background 0.17s;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 2;
}
header .cta.primary:hover, header .cta.primary:focus {
  background: var(--color-yellow);
  color: var(--color-primary);
  box-shadow: 0 6px 26px 0 rgba(218,108,39,0.20);
}

/* Mobile burger button */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: var(--color-accent);
  color: #fff;
  border-radius: 14px;
  width: 48px;
  height: 48px;
  margin-left: 16px;
  border: none;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  z-index: 2001;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--color-yellow);
}
.mobile-menu-toggle:hover {
  background: var(--color-orange);
}

/* ------------------------------
  MOBILE MENU & NAVIGATION
-------------------------------*/
.mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(246,234,215,0.95);
  display: flex;
  flex-direction: column;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.24,1.37,.55,1), background 0.21s;
  z-index: 4000;
  opacity: 1;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  font-size: 2.1rem;
  align-self: flex-end;
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  width: 48px; height: 48px;
  margin: 25px 22px 6px 0;
  border: none;
  display: flex;
  align-items: center; justify-content: center;
  z-index: 4040;
  transition: background 0.17s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-danger);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
  margin: 44px 0 0 36px;
}
.mobile-nav a {
  color: var(--color-primary);
  font-size: 1.3rem;
  font-family: 'Noto Sans KR', 'Spoqa Han Sans Neo', sans-serif;
  font-weight: 900;
  letter-spacing: -0.02em;
  padding: 8px 0;
  border-radius: 14px;
  min-width: 220px;
  transition: background 0.15s, color 0.15s, transform 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-accent);
  color: #fff;
  transform: translateX(6px) scale(1.06);
  box-shadow: 0 6px 22px 0 rgba(218,108,39,0.15);
}

@media (max-width: 1023px) {
  header nav {
    display: none;
  }
  header .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1024px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ------------------------------
  MAIN CTAs & BUTTONS
-------------------------------*/
.cta.primary, .cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: #fff;
  font-family: 'Noto Sans KR', cursive, sans-serif;
  font-size: 1.17rem;
  font-weight: 900;
  border: none;
  border-radius: 20px;
  padding: 14px 36px;
  margin-top: 8px;
  box-shadow: 0 2px 12px 0 rgba(216,108,39,0.13);
  transition: background 0.15s, color 0.15s, transform 0.16s, box-shadow 0.19s;
  letter-spacing: -0.02em;
  cursor: pointer;
}
.cta.primary:hover, .cta.primary:focus, .cta:hover, .cta:focus {
  background: var(--color-yellow);
  color: var(--color-primary);
  box-shadow: 0 7px 24px 0 rgba(216,108,39,0.24);
  transform: scale(1.05) rotate(-2deg);
}

button, .button {
  background: var(--color-purple);
  color: #fff;
  border-radius: 12px;
  border: none;
  padding: 10px 22px;
  font-size: 1rem;
  font-weight: 700;
  transition: background 0.14s, box-shadow 0.16s, color 0.13s, transform 0.14s;
}
button:hover, .button:hover, button:focus, .button:focus {
  background: var(--color-yellow);
  color: var(--color-primary);
  box-shadow: 0 6px 24px 0 rgba(33,184,235,0.19);
  transform: scale(1.07);
}

/* Fun micro-interaction for icons */
.features-grid img,
.card img,
.category-list li img {
  transition: transform 0.21s cubic-bezier(.2,.8,.3,1);
}
.features-grid > div:hover img {
  transform: scale(1.16) rotate(-4deg);
}

/* ------------------------------
  FOOTER
-------------------------------*/
footer {
  background: var(--color-primary);
  color: #fff;
  padding: 36px 20px 20px 20px;
  border-radius: 32px 32px 0 0;
  box-shadow: 0 -3px 16px 0 rgba(76,96,75,0.13);
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
footer nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
footer nav a {
  color: #F6EAD7;
  font-size: 1rem;
  padding: 5px 13px;
  border-radius: 13px;
  transition: background 0.16s, color 0.18s;
  font-weight: 700;
}
footer nav a:hover, footer nav a:focus {
  background: var(--color-yellow);
  color: var(--color-primary);
}
.footer-contact {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.98rem;
}
.footer-contact div {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.10);
  border-radius: 9px;
  padding: 6px 13px 6px 9px;
  color: #fff;
}
.footer-contact img {
  width: 18px; height: 18px;
}
footer small {
  opacity: 0.85;
  margin-top: 2px;
  font-size: 0.97rem;
}

/* ------------------------------
  COOKIE CONSENT BANNER
-------------------------------*/
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--color-secondary);
  color: var(--color-primary);
  font-size: 1.09rem;
  display: flex;
  flex-direction: column;
  gap: 11px;
  align-items: center;
  padding: 22px 16px 20px 16px;
  z-index: 6500;
  box-shadow: 0 -4px 28px 0 rgba(76, 96, 75, 0.18);
  animation: fadeInSlideUp 0.61s cubic-bezier(.6,-0.23,.51,1) 1;
}
@keyframes fadeInSlideUp {
  from { opacity: 0; transform: translateY(60px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner-buttons {
  display: flex;
  gap: 17px;
  margin-top: 2px;
}
.cookie-btn {
  background: var(--color-accent);
  color: #fff;
  font-weight: bold;
  border-radius: 14px;
  font-size: 1.05rem;
  padding: 9px 22px;
  border: none;
  transition: background 0.17s, color 0.14s, box-shadow .14s;
  box-shadow: 0 2px 8px 0 rgba(216,108,39,0.10);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-yellow);
  color: var(--color-primary);
}
.cookie-btn.secondary {
  background: var(--color-grey-light);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  font-weight: 600;
}
.cookie-btn.secondary:hover {
  background: var(--color-orange);
  color: #fff;
  border-color: var(--color-accent);
}

/* Cookie modal */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(76,96,75,0.28);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 8100;
  animation: fadeInModalOverlay 0.31s;
}
@keyframes fadeInModalOverlay {
  from{ opacity: 0;} to{ opacity: 1;}
}
.cookie-modal {
  background: var(--color-white);
  border-radius: 20px;
  box-shadow: 0 2px 30px 0 rgba(76,96,75,0.26);
  padding: 36px 24px 26px 24px;
  min-width: 290px;
  max-width: 360px;
  animation: popInModal 0.38s cubic-bezier(.18,1.3,.64,1);
}
@keyframes popInModal {
  0% {transform: scale(0.8); opacity:0; }
  80%{transform: scale(1.04);}
  100%{transform: scale(1); opacity:1;}
}
.cookie-modal h3 {
  color: var(--color-accent);
  font-size: 1.3rem;
  margin-bottom: 12px;
}
.cookie-setting-row {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 14px;
}
.cookie-setting-row label {
  flex: 1 1 auto;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.07rem;
}
.cookie-switch {
  appearance: none;
  width: 40px;
  height: 22px;
  background: #eee;
  border-radius: 12px;
  position: relative;
  outline: none;
  transition: background 0.16s;
}
.cookie-switch:checked {
  background: var(--color-green-bright);
}
.cookie-switch::before {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px 0 rgba(0,0,0,0.10);
  transition: transform 0.16s, background 0.16s;
}
.cookie-switch:checked::before {
  transform: translateX(18px);
  background: #fffbe7;
}
.cookie-modal-actions {
  display: flex;
  gap: 17px;
  margin-top: 19px;
}
.cookie-modal-close {
  background: var(--color-grey-light);
  color: var(--color-accent);
  border-radius: 10px;
  padding: 6px 16px;
  font-weight: bold;
  border: none;
  font-size: 1rem;
  margin-left: auto;
  transition: background 0.14s, color 0.13s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--color-danger);
  color: #fff;
}

/* ------------------------------
  RESPONSIVENESS (MOBILE FIRST)
-------------------------------*/
@media (max-width: 768px) {
  .container { padding: 0 10px; }
  .section { padding: 32px 8px; margin-bottom: 36px; }
  .features-grid,
  .content-grid,
  .category-list {
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
  }
  .features-grid > div, .card {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }
  .testimonial-card { flex-direction: column; align-items: flex-start; }
  .text-image-section, .content-wrapper { flex-direction: column; gap: 14px; }
  header { padding: 0 12px; height: 64px; }
  .logo { margin-right: 12px; height: 38px; }
  .logo img { height: 36px; }
  .footer-contact { flex-direction: column; gap: 7px; align-items: flex-start; }
  footer { border-radius: 24px 24px 0 0; padding: 26px 10px 14px 10px; }

  .cookie-modal {
    min-width: 0;
    width: 92vw;
    max-width: 360px;
    padding: 20px 12px 15px 12px;
  }
}

/* SIGNS: playful accent details for sections (for HTML extension/animation) */
@media (min-width: 769px) {
  .features-grid, .category-list  { justify-content: flex-start !important; }
}

/* ------------------------------
  VISUAL HIERARCHY & SPACING
-------------------------------*/
section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.content-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.text-image-section { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/*******************
   ACCESSIBILITY
*******************/
header a, nav a, button, .cta { outline: none; }
header a:focus-visible, nav a:focus-visible, button:focus-visible, .cta:focus-visible {
  box-shadow: 0 0 0 3px var(--color-yellow);
}
/* VISUALLY HIDDEN FOR COOKIE MODAL INFO */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* --------------
   PRINT SUPPORT
-------------- */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  body { background: #fff !important; }
}
