@import url('https://fonts.googleapis.com/css2?family=Jua&family=Noto+Sans+KR:wght@400;500;700;900&display=swap');

:root{
  /* color tokens */
  --cream:      #FBF3E4;
  --cream-2:    #F5E9D6;
  --ink:        #3A2E28;
  --ink-soft:   #6B5B52;
  --marigold:   #EFA23D;
  --marigold-d: #D6892A;
  --sage:       #6E8F6B;
  --sage-d:     #557353;
  --blush:      #F0AEBB;
  --petrol:     #29424D;
  --petrol-2:   #1E333C;
  --white:      #FFFDF9;

  /* type */
  --font-display: 'Jua', 'Noto Sans KR', sans-serif;
  --font-body: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif; /* unified with body font; kept as an alias so mono-labeled elements share one typeface */

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --shadow-soft: 0 8px 24px rgba(58,46,40,0.08);
  --shadow-lift: 0 16px 40px rgba(58,46,40,0.14);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body{
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg{ display:block; max-width: 100%; }

a{ color: inherit; text-decoration: none; }

h1, h2, h3{
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.3;
  margin: 0;
  letter-spacing: -0.01em;
}

p{ margin: 0; }

:focus-visible{
  outline: 3px solid var(--marigold-d);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--sage-d);
  background: rgba(110,143,107,0.12);
  padding: 6px 14px;
  border-radius: 999px;
}

.section{ padding: 96px 0; }
.section--tight{ padding: 64px 0; }

@media (max-width: 720px){
  .section{ padding: 64px 0; }
  .section--tight{ padding: 44px 0; }
}

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-2px); }
.btn-primary{
  background: var(--marigold);
  color: var(--petrol-2);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover{ background: var(--marigold-d); box-shadow: var(--shadow-lift); }
.btn-ghost{
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}
.btn-ghost:hover{ background: var(--ink); color: var(--white); }
.btn-light{
  background: var(--white);
  color: var(--petrol-2);
}
.btn-light:hover{ background: var(--cream-2); }

/* ---------- Nav ---------- */
.nav{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251,243,228,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(58,46,40,0.08);
}
.nav .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--petrol-2);
}
.brand .paw{ font-size: 20px; }
.nav-links{
  display: flex;
  align-items: center;
  gap: 32px;
  font-weight: 500;
  font-size: 15px;
}
.nav-links a{ color: var(--ink-soft); transition: color .15s ease; }
.nav-links a:hover{ color: var(--ink); }
.nav-cta{ display: flex; align-items: center; gap: 20px; }
.nav-toggle{
  display: none;
  background: none; border: none; cursor: pointer;
  font-size: 24px; color: var(--ink);
}
@media (max-width: 860px){
  .nav-links{ display: none; }
  .nav-toggle{ display: block; }
}

/* ---------- Hero ---------- */
.hero{
  padding: 64px 0 40px;
  text-align: center;
}
.hero h1{
  font-size: clamp(36px, 6vw, 64px);
  color: var(--petrol-2);
  margin: 20px auto 20px;
  max-width: 780px;
}
.hero .sub{
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: 18px;
  color: var(--ink-soft);
}
.hero-actions{
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.hero-note{
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-soft);
  opacity: 0.8;
}

/* ---------- Timeline preview placeholder (swap in a gif/image later) ---------- */
.timeline-placeholder{
  margin-top: 56px;
  height: 360px;
  border-radius: var(--radius-lg);
  border: 2px dashed rgba(58,46,40,0.16);
  background: rgba(255,253,249,0.4);
}
@media (max-width: 720px){ .timeline-placeholder{ height: 240px; } }

/* ---------- Footprint timeline (signature element, currently unused — kept for reference) ---------- */
.timeline-wrap{
  margin-top: 56px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  padding: 40px 32px 32px;
  overflow: hidden;
}
.timeline-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 8px;
  text-align: left;
}
.timeline-head .pet-name{
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--petrol-2);
}
.timeline-head .date{
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
}
.timeline-track{
  position: relative;
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding: 12px 4px 20px;
  scrollbar-width: thin;
}
.timeline-track::before{
  content: "";
  position: absolute;
  left: 24px; right: 24px; top: 46px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--cream-2) 0 10px, transparent 10px 18px);
  z-index: 0;
}
.t-stop{
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 168px;
  text-align: left;
  padding: 0 14px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
.t-stop.in-view{ opacity: 1; transform: translateY(0); }
.t-paw{
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--marigold);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
}
.t-time{
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--sage-d);
  font-weight: 600;
}
.t-who{
  font-weight: 700;
  font-size: 14.5px;
  margin: 4px 0 2px;
}
.t-what{
  font-size: 13.5px;
  color: var(--ink-soft);
}

/* ---------- Problem section ---------- */
.problem{ background: var(--petrol-2); color: var(--white); }
.problem .eyebrow{ background: rgba(239,162,61,0.18); color: var(--marigold); }
.problem h2{ color: var(--white); }
.problem-lede{ color: rgba(255,253,249,0.72); max-width: 620px; margin-top: 16px; }
.problem-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 48px;
}
@media (max-width: 720px){ .problem-grid{ grid-template-columns: 1fr; } }
.problem-card{
  background: rgba(255,253,249,0.06);
  border: 1px solid rgba(255,253,249,0.12);
  border-radius: var(--radius-md);
  padding: 28px;
}
.problem-card .icon{ font-size: 26px; margin-bottom: 14px; }
.problem-card h3{ font-size: 18px; color: var(--white); margin-bottom: 8px; }
.problem-card p{ color: rgba(255,253,249,0.68); font-size: 14.5px; }
.problem-closing{
  margin-top: 40px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--marigold);
  border-left: 3px solid var(--marigold);
  padding-left: 16px;
}

/* ---------- Section headers ---------- */
.section-head{ max-width: 640px; margin-bottom: 48px; }
.section-head h2{ font-size: clamp(28px, 4vw, 40px); margin-top: 16px; color: var(--petrol-2); }
.section-head p{ margin-top: 14px; color: var(--ink-soft); font-size: 16px; }

/* ---------- Feature cards (3 tabs) ---------- */
.feature-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 860px){ .feature-grid{ grid-template-columns: 1fr; } }
.feature-card{
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-soft);
  border-top: 4px solid var(--sage);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.feature-card:nth-child(2){ border-top-color: var(--marigold); }
.feature-card:nth-child(3){ border-top-color: var(--blush); }
.feature-card .tab-label{
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
}
.feature-card h3{ font-size: 21px; color: var(--petrol-2); margin: 10px 0 12px; }
.feature-card p{ color: var(--ink-soft); font-size: 14.5px; }
.feature-card .emoji{ font-size: 30px; margin-bottom: 6px; }

.ux-note{
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(110,143,107,0.1);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}
.ux-note .badge{
  font-family: var(--font-display);
  font-size: 15px;
  background: var(--sage);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 999px;
  flex: 0 0 auto;
}
.ux-note p{ font-size: 14.5px; color: var(--ink-soft); }

/* ---------- How it works (steps) ---------- */
.steps{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 860px){ .steps{ grid-template-columns: 1fr; } }
.step{ position: relative; padding-top: 8px; }
.step .num{
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--marigold-d);
  font-weight: 600;
}
.step h3{ font-size: 20px; color: var(--petrol-2); margin: 10px 0 10px; }
.step p{ color: var(--ink-soft); font-size: 14.5px; }
.step:not(:last-child)::after{
  content: "";
  position: absolute;
  top: 12px; right: -12px;
  width: 24px; height: 2px;
  background: var(--cream-2);
}
@media (max-width: 860px){ .step::after{ display:none; } }

/* ---------- CTA / signup ---------- */
.cta{
  background: linear-gradient(135deg, var(--marigold) 0%, #F0B65E 100%);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
  color: var(--petrol-2);
}
.cta h2{ font-size: clamp(26px, 4vw, 38px); }
.cta p{ margin-top: 12px; color: rgba(41,66,77,0.78); font-size: 16px; }
.signup-form{
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 28px auto 0;
  flex-wrap: wrap;
  justify-content: center;
}
.signup-form input[type="email"]{
  flex: 1 1 240px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 2px solid rgba(41,66,77,0.16);
  font-size: 15px;
  font-family: var(--font-body);
  background: var(--white);
  color: var(--ink);
}
.signup-form input[type="email"]:focus{ border-color: var(--petrol-2); }
.signup-msg{
  margin-top: 14px;
  font-size: 13.5px;
  font-family: var(--font-mono);
  color: var(--petrol-2);
  min-height: 18px;
}
.store-badges{
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 28px;
  flex-wrap: wrap;
}
.store-badge{
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--petrol-2);
  color: var(--white);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  opacity: 0.9;
}
.store-badge .soon{
  font-family: var(--font-mono);
  font-size: 10.5px;
  background: rgba(255,253,249,0.16);
  padding: 2px 8px;
  border-radius: 999px;
}

/* ---------- Footer ---------- */
footer{
  background: var(--petrol-2);
  color: rgba(255,253,249,0.72);
  padding: 56px 0 28px;
}
.footer-top{
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,253,249,0.12);
}
.footer-brand .brand{ color: var(--white); }
.footer-brand p{ margin-top: 10px; font-size: 14px; max-width: 280px; color: rgba(255,253,249,0.6); }
.footer-links{ display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h4{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: rgba(255,253,249,0.5);
  margin-bottom: 14px;
  font-weight: 600;
}
.footer-col a, .footer-col span{ display: block; font-size: 14px; margin-bottom: 10px; color: rgba(255,253,249,0.8); }
.footer-col a:hover{ color: var(--marigold); }
.footer-bottom{
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 24px;
  font-size: 12.5px;
  color: rgba(255,253,249,0.45);
}
.footer-bottom .biz-info{ line-height: 1.8; }

/* ---------- Legal / simple pages ---------- */
.legal-header{
  background: var(--petrol-2);
  color: var(--white);
  padding: 72px 0 48px;
}
.legal-header .eyebrow{ background: rgba(239,162,61,0.18); color: var(--marigold); }
.legal-header h1{ font-size: clamp(30px, 5vw, 44px); margin-top: 18px; }
.legal-header .updated{ margin-top: 14px; font-family: var(--font-mono); font-size: 13px; color: rgba(255,253,249,0.6); }

.legal-body{ padding: 56px 0 96px; }
.legal-body .container{ max-width: 800px; }
.legal-body h2{
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 19px;
  color: var(--petrol-2);
  margin-top: 40px;
  margin-bottom: 12px;
}
.legal-body h2:first-child{ margin-top: 0; }
.legal-body p, .legal-body li{ color: var(--ink-soft); font-size: 15px; margin-bottom: 10px; }
.legal-body ul, .legal-body ol{ padding-left: 20px; }
.legal-body table{ width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.legal-body th, .legal-body td{ border: 1px solid rgba(58,46,40,0.14); padding: 10px 12px; text-align: left; color: var(--ink-soft); }
.legal-body th{ background: var(--cream-2); color: var(--ink); font-weight: 700; }
.legal-note{
  background: rgba(239,162,61,0.12);
  border: 1px solid rgba(239,162,61,0.3);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-bottom: 32px;
}
.placeholder{ color: var(--marigold-d); font-weight: 600; }

/* ---------- Contact page ---------- */
.contact-grid{
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 860px){ .contact-grid{ grid-template-columns: 1fr; } }
.contact-card{
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-soft);
}
.contact-card h3{ font-size: 18px; color: var(--petrol-2); margin-bottom: 8px; }
.contact-card p{ color: var(--ink-soft); font-size: 14.5px; margin-bottom: 18px; }
.contact-email{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 15px;
  background: var(--cream);
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(58,46,40,0.1);
}
.faq-item{
  border-bottom: 1px solid rgba(58,46,40,0.1);
  padding: 18px 0;
}
.faq-item:first-child{ padding-top: 0; }
.faq-q{
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--ink);
}
.faq-q .plus{ font-family: var(--font-mono); color: var(--marigold-d); transition: transform .2s ease; }
.faq-item.open .faq-q .plus{ transform: rotate(45deg); }
.faq-a{
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.faq-item.open .faq-a{ max-height: 200px; padding-top: 12px; }

/* mobile nav sheet */
.mobile-sheet{
  display: none;
  position: fixed;
  inset: 76px 0 0 0;
  background: var(--cream);
  z-index: 60;
  padding: 24px;
}
.mobile-sheet.open{ display: block; }
.mobile-sheet a{
  display: block;
  padding: 16px 0;
  font-size: 18px;
  font-weight: 600;
  border-bottom: 1px solid rgba(58,46,40,0.08);
}
