/* Haru Studio — shared styles */

:root {
  --apricot: #E8A87C;
  --apricot-deep: #D88E5C;
  --apricot-soft: #F4D2B5;
  --apricot-tint: #FBEEDD;
  --apricot-bg: #FDF7EF;
  --cream: #FBF8F3;
  --ink: #2A2520;
  --ink-2: #4A4138;
  --muted: #7A6F62;
  --muted-2: #A89C8D;
  --line: #ECE4D8;
  --line-strong: #E0D5C2;
  --white: #FFFFFF;
  --curve-green: #0F6E56;
  --curve-green-soft: #E6EFEA;
  --curve-cream: #F6F4EF;

  --maxw: 1120px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(42, 37, 32, 0.04), 0 2px 8px rgba(42, 37, 32, 0.04);
  --shadow: 0 2px 6px rgba(42, 37, 32, 0.04), 0 12px 32px -8px rgba(216, 142, 92, 0.12);
  --shadow-card: 0 1px 2px rgba(42, 37, 32, 0.04), 0 8px 24px -12px rgba(42, 37, 32, 0.12);

  --font-sans: "Pretendard", "Pretendard Variable", -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.005em;
  font-feature-settings: "ss01", "ss02", "case";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--apricot-deep); }
img, svg { display: block; max-width: 100%; }

::selection { background: var(--apricot-soft); color: var(--ink); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(236, 228, 216, 0.7);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 17px;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand-mark { width: 32px; height: 32px; flex: none; }
.brand-name { white-space: nowrap; }

.nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background-color .15s ease, color .15s ease;
}
.nav-link:hover { background: var(--apricot-bg); color: var(--ink); }

/* ---------- Language picker ---------- */
.lang {
  position: relative;
  margin-left: 8px;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-2);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.lang-btn:hover { border-color: var(--apricot-soft); background: var(--apricot-bg); }
.lang-btn svg { width: 14px; height: 14px; color: var(--muted-2); transition: transform .2s; }
.lang[open] .lang-btn svg { transform: rotate(180deg); }
.lang-globe { color: var(--apricot-deep) !important; width: 15px !important; height: 15px !important; }

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  padding: 6px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  display: none;
  z-index: 60;
}
.lang[open] .lang-menu { display: block; }
.lang-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 14.5px;
  color: var(--ink-2);
  cursor: pointer;
}
.lang-item:hover { background: var(--apricot-bg); color: var(--ink); }
.lang-item[aria-current="true"] { color: var(--apricot-deep); font-weight: 600; }
.lang-item[aria-current="true"]::after {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--apricot-deep);
}
.lang-item-native { font-size: 12.5px; color: var(--muted-2); margin-left: auto; }
.lang-item[aria-current="true"] .lang-item-native { color: var(--apricot-deep); opacity: .7; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -160px; right: -160px;
  width: 520px; height: 520px;
  background: radial-gradient(closest-side, rgba(232, 168, 124, 0.22), rgba(232, 168, 124, 0));
  pointer-events: none;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -120px; left: -120px;
  width: 360px; height: 360px;
  background: radial-gradient(closest-side, rgba(244, 210, 181, 0.35), rgba(244, 210, 181, 0));
  pointer-events: none;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 28px;
}
.hero-eyebrow-dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--apricot);
  display: inline-block;
}
.hero h1 {
  font-size: clamp(36px, 5.6vw, 60px);
  line-height: 1.18;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 0 0 24px;
  color: var(--ink);
  max-width: 18ch;
  text-wrap: balance;
}
.hero h1 .accent {
  color: var(--apricot-deep);
  font-style: normal;
}
.hero-lede {
  font-size: clamp(17px, 1.6vw, 19.5px);
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  max-width: 56ch;
  text-wrap: pretty;
}

/* ---------- Section ---------- */
.section { padding: 80px 0; }
.section-tight { padding: 56px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.25;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0;
}
.section-head .section-sub {
  color: var(--muted);
  font-size: 15.5px;
  margin: 6px 0 0;
  max-width: 48ch;
}
.section-kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--apricot-deep);
  margin-bottom: 10px;
}

/* ---------- App cards grid ---------- */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  color: inherit;
  overflow: hidden;
  min-height: 240px;
}
.app-card:hover {
  transform: translateY(-2px);
  border-color: var(--apricot-soft);
  box-shadow: var(--shadow-card);
  color: inherit;
}
.app-card-icon {
  width: 64px; height: 64px;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  flex: none;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 6px 14px -6px rgba(42,37,32,0.18);
}
.app-card-body { display: flex; flex-direction: column; gap: 6px; }
.app-card-name {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.app-card-name-en {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted-2);
  letter-spacing: 0;
}
.app-card-tagline {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
  text-wrap: pretty;
}
.app-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--apricot-deep);
}
.app-card-cta svg { width: 14px; height: 14px; transition: transform .2s; }
.app-card:hover .app-card-cta svg { transform: translateX(3px); }

.app-card-placeholder {
  display: flex; align-items: center; justify-content: center;
  border: 1.5px dashed var(--line-strong);
  background: transparent;
  border-radius: var(--radius-lg);
  color: var(--muted-2);
  font-size: 14px;
  min-height: 240px;
  text-align: center;
  padding: 28px;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 40px;
  padding: 64px 0 48px;
  background: var(--apricot-bg);
  border-top: 1px solid var(--line);
  color: var(--ink-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.footer-brand .brand { font-size: 16px; }
.footer-brand p {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--muted);
  max-width: 32ch;
  line-height: 1.6;
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0 0 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col li, .footer-col a { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.footer-col a:hover { color: var(--apricot-deep); }
.footer-col .muted { color: var(--muted); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- MyCurve page ---------- */
.mycurve-hero {
  padding: 80px 0 56px;
}
.mycurve-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.mycurve-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  max-width: 380px;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--curve-green-soft) 0%, var(--apricot-bg) 100%);
  border-radius: 40px;
  padding: 36px;
}
.mycurve-icon-wrap > svg {
  width: 100%;
  border-radius: 26%;
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 12px 40px -12px rgba(15, 110, 86, 0.35);
}
.mycurve-hero h1 {
  font-size: clamp(34px, 4.4vw, 50px);
  line-height: 1.2;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 12px 0 18px;
  text-wrap: balance;
}
.mycurve-hero .mycurve-name-en {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--curve-green);
  margin-bottom: 4px;
}
.mycurve-hero-lede {
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 38ch;
  text-wrap: pretty;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px 14px 18px;
  background: var(--ink);
  color: var(--white);
  border-radius: 14px;
  font-weight: 500;
  font-size: 15px;
  transition: background-color .15s, transform .15s;
}
.btn-store:hover { background: #000; color: var(--white); transform: translateY(-1px); }
.btn-store svg { width: 28px; height: 28px; }
.btn-store-eyebrow { font-size: 11px; opacity: 0.7; line-height: 1; margin-bottom: 3px; }
.btn-store-name { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; line-height: 1; }
.btn-store-soon {
  margin-left: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 4px;
  background: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.9);
}

/* Features */
.features {
  padding: 24px 0 72px;
}
.features-head { margin-bottom: 36px; }
.features-head h2 {
  font-size: clamp(24px, 2.6vw, 30px);
  letter-spacing: -0.025em;
  margin: 0;
  font-weight: 700;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.feature {
  padding: 26px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.feature-ico {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--curve-green);
  margin-bottom: 16px;
}
.feature-ico svg { width: 20px; height: 20px; }
.feature h3 {
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  color: var(--ink);
}
.feature p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

/* Legal links block */
.legal-strip {
  margin-top: 24px;
  padding: 22px 24px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.legal-strip-text {
  font-size: 14px;
  color: var(--muted);
}
.legal-strip-links { display: flex; gap: 8px; flex-wrap: wrap; }
.legal-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.legal-link:hover { border-color: var(--apricot-soft); background: var(--apricot-bg); color: var(--ink); }

/* ---------- Legal page ---------- */
.legal-page { padding: 80px 0 64px; }
.legal-page .container { max-width: 800px; }
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
}
.legal-back:hover { color: var(--apricot-deep); }
.legal-back svg { width: 14px; height: 14px; }

.legal-page h1 {
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.03em;
  margin: 0 0 8px;
  font-weight: 700;
}
.legal-meta {
  font-size: 14px;
  color: var(--muted-2);
  margin: 0 0 40px;
}
.legal-placeholder {
  padding: 64px 32px;
  background: var(--cream);
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
}
.legal-placeholder-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink-2);
  margin: 0 0 8px;
}
.legal-placeholder p { margin: 0; font-size: 14.5px; line-height: 1.6; max-width: 44ch; margin: 0 auto; }

/* ---------- Legal body content ---------- */
.legal-body { color: var(--ink-2); font-size: 15px; line-height: 1.75; }
.legal-body h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 48px 0 12px;
  letter-spacing: -0.01em;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin: 32px 0 8px;
}
.legal-body p { margin: 0 0 14px; }
.legal-body ol { margin: 0 0 14px; padding-left: 1.4em; }
.legal-body ol li { margin-bottom: 6px; }
.legal-body ul { margin: 0 0 14px; padding-left: 1.4em; list-style: disc; }
.legal-body ul li { margin-bottom: 6px; }
.legal-body .legal-date {
  display: inline-block;
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 32px;
}
.legal-body .legal-intro { margin-bottom: 32px; }
.legal-body .legal-contact {
  margin-top: 8px;
  padding: 20px 24px;
  background: var(--cream);
  border-radius: var(--radius);
  font-size: 14.5px;
}
.legal-body .legal-contact a { color: var(--apricot-deep); }
.legal-body .委託-table { margin: 12px 0 14px; }
.legal-body .entrust-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.legal-body .entrust-item:last-child { border-bottom: none; }
.legal-body .entrust-name { font-weight: 600; color: var(--ink); }
.legal-body .entrust-desc { font-size: 14px; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .container { padding: 0 20px; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 56px 0; }
  .mycurve-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .mycurve-icon-wrap { order: -1; max-width: 280px; }
  .mycurve-hero-lede { max-width: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .nav { display: none; }
}

@media (max-width: 540px) {
  .site-header .container { height: 64px; }
  .brand-name { font-size: 15px; }
  .hero { padding: 56px 0 40px; }
  .hero-eyebrow { margin-bottom: 22px; }
  .app-card { padding: 24px; min-height: 220px; }
  .legal-strip { padding: 18px; }
  .legal-page { padding: 56px 0 48px; }
  .lang-btn { padding: 8px 10px 8px 12px; font-size: 13.5px; }
}
