/* Mecipe landing — follows the Withly / Calmple landing layout. */
@font-face {
  font-family: 'NanumSquareRound';
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/NanumSquareRoundB.ttf') format('truetype');
}

@font-face {
  font-family: 'NanumSquareRound';
  font-weight: 800;
  font-display: swap;
  src: url('assets/fonts/NanumSquareRoundEB.ttf') format('truetype');
}

:root {
  --app-bar-height: 70px;
  --text: #3a3d3e;
  --text-muted: #7a746e;
  --ink: #3a3d3e;
  --bg-alt: #f7f6f3;
  --banner-bg: #f2f0ec;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: 'NanumSquareRound', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

/* Hidden until region.js has picked the language, so other countries don't see Korean first. */
html.lang-pending body {
  visibility: hidden;
}

/* Header */
.app-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  height: var(--app-bar-height);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.app-header-inner {
  width: min(100% - 48px, 1040px);
  height: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-wordmark {
  color: var(--ink);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.download-link {
  padding: 8px 16px;
  border-radius: 7px;
  color: #fff;
  background: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
}

.download-link:hover {
  background: #2a2c2d;
}

main {
  padding-top: var(--app-bar-height);
}

/* Banner */
.banner {
  height: 356px;
  overflow: hidden;
  background: var(--banner-bg);
}

.banner svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Sections */
.intro {
  scroll-margin-top: calc(var(--app-bar-height) + 24px);
}

.feature--alt {
  background: var(--bg-alt);
}

.feature-inner {
  width: min(100% - 80px, 960px);
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
  padding: 104px 0;
}

.intro .feature-inner {
  padding: 72px 0 80px;
}

.feature-copy h1,
.feature-copy h2 {
  margin: 0;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.feature-copy p {
  margin: 24px 0 0;
  color: var(--text-muted);
  font-size: 20px;
  line-height: 1.7;
}

.screen-wrap {
  display: flex;
  justify-content: center;
}

.app-screen {
  display: block;
  width: 278px;
  max-width: 100%;
  height: auto;
  border: 7px solid #fff;
  border-radius: 29px;
  box-shadow: 0 3px 5px rgba(58, 61, 62, 0.04), 0 18px 45px rgba(58, 61, 62, 0.08);
}

/* Store buttons */
.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

.store-links a {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
}

.store-links svg {
  flex: none;
}

.store-link-apple {
  color: #fff;
  background: #000;
  border-color: #000;
}

.store-link-apple:hover {
  background: #242424;
}

.store-link-google {
  color: #000;
  background: #fff;
  border-color: #dedbd6;
}

.store-link-google:hover {
  background: #f8f6f2;
}

/* Footer */
.site-footer {
  padding: 64px 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 22px;
}

.site-footer a {
  color: var(--text-muted);
  font-size: 14px;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
  text-decoration: underline;
}

.business-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
  max-width: 760px;
  margin: 28px auto 0;
  color: #77716b;
  font-size: 13px;
  line-height: 1.8;
  text-align: center;
}

.business-info > div {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.business-info dt {
  flex-shrink: 0;
}

.business-info dd {
  margin: 0;
}

.business-info .business-address {
  flex-basis: 100%;
}

.copyright {
  margin: 32px 0 0;
  color: #77716b;
  font-size: 13px;
  text-align: center;
}

@media (min-width: 761px) {
  .feature-inner {
    grid-template-columns: minmax(0, max-content) 278px;
    justify-content: space-between;
    column-gap: clamp(40px, 6vw, 80px);
  }

  .feature--alt .feature-inner {
    grid-template-columns: 278px minmax(0, max-content);
    justify-content: center;
    column-gap: clamp(100px, calc(40vw - 240px), 240px);
  }

  .feature--alt .feature-copy {
    grid-column: 2;
    grid-row: 1;
  }

  .feature--alt .screen-wrap {
    grid-column: 1;
    grid-row: 1;
  }
}

@media (min-width: 901px) {
  .banner {
    width: min(100% - 48px, 1080px);
    height: 436px;
    margin: 40px auto;
  }
}

@media (max-width: 900px) {
  :root {
    --app-bar-height: 60px;
  }

  .app-header-inner {
    width: calc(100% - 40px);
  }

  .app-wordmark {
    font-size: 24px;
  }

  .download-link {
    padding: 6px 12px;
    font-size: 13px;
    line-height: 1.6;
  }

  .feature-copy h1,
  .feature-copy h2 {
    font-size: 24px;
  }

  .feature-copy p {
    font-size: 16px;
  }

  .store-links a {
    font-size: 14.4px;
  }
}

@media (max-width: 760px) {
  .banner {
    height: 276px;
  }

  .feature-inner,
  .intro .feature-inner {
    width: calc(100% - 48px);
    grid-template-columns: 1fr;
    gap: 46px;
    padding: 72px 0;
  }

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

  .feature-copy p {
    margin-top: 20px;
  }

  .store-links {
    justify-content: center;
    margin-top: 28px;
  }

  .app-screen {
    width: 258px;
  }

  .site-footer {
    padding: 48px 24px;
  }

  .business-info .business-address {
    display: block;
    margin-top: 4px;
  }
}

@media (max-width: 360px) {
  .store-links {
    gap: 8px;
  }

  .store-links a {
    padding: 10px 12px;
    gap: 6px;
  }
}

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

/* Legal pages (terms.html) — follows the Calmple legal layout. */
.legal-main {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: calc(var(--app-bar-height) + 40px) 24px 80px;
  color: #292929;
  font-size: 15px;
}

.legal-document h1,
.legal-document h2 {
  color: #292929;
  font-weight: 800;
  line-height: 1.6;
}

.legal-document h1 {
  margin: 0 0 12px;
  font-size: 24px;
}

.legal-document h2 {
  margin: 32px 0 12px;
  font-size: 18px;
}

.legal-document p,
.legal-document li {
  color: #444;
}

.legal-document p {
  margin: 0 0 12px;
}

.legal-document ul,
.legal-document ol {
  margin: 0 0 12px;
  padding-left: 22px;
}

.legal-document li + li {
  margin-top: 8px;
}

.legal-document strong {
  font-weight: 800;
}

.legal-document a {
  color: #5e5a55;
  overflow-wrap: anywhere;
}

.legal-document h3 {
  margin: 24px 0 12px;
  color: #292929;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.6;
}

.legal-document .table-wrap {
  margin: 20px 0 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.legal-document table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.65;
}

.legal-document th,
.legal-document td {
  padding: 12px 14px;
  border: 1px solid #e8e6e3;
  color: #444;
  text-align: left;
  vertical-align: top;
}

.legal-document th {
  background: #f8f7f5;
  color: #292929;
  font-weight: 800;
}
