/* ============================================================
   MakerKoh — public site styles
   Shares the app's palette so both sides feel like one brand.
   ============================================================ */
:root {
  --navy: #34568b;
  --navy-dark: #2a4571;
  --navy-tint: #e9eef6;
  --gold: #e0a52e;
  --ink: #16202c;
  --muted: #5b6776;
  --line: #e6e9ee;
  --bg: #f4f6f9;
  --card: #ffffff;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(16,32,44,.06), 0 6px 20px rgba(16,32,44,.06);
  --shadow-sm: 0 1px 3px rgba(16,32,44,.08);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
}
a { color: var(--navy); }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid rgba(52,86,139,.45); outline-offset: 2px; }

.wrap { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* ---------- Top nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(244,246,249,.9); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 20px; max-width: 960px; margin: 0 auto;
}
.nav__brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); text-decoration: none; }
.nav__brand img { width: 34px; height: 34px; border-radius: 8px; }
.nav__links { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav__links a {
  text-decoration: none; color: var(--ink);
  padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: 15px;
}
.nav__links a:hover { background: var(--navy-tint); }
.nav__cta {
  background: var(--navy) !important; color: #fff !important;
}
.nav__cta:hover { background: var(--navy-dark) !important; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 44px 0 24px; }
.hero__logo { width: 100%; max-width: 320px; margin: 0 auto 18px; }
.hero__tag { color: var(--muted); font-size: 18px; margin: 0 auto 26px; max-width: 560px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border: 0; border-radius: 999px;
  background: var(--navy); color: #fff; text-decoration: none;
  font-size: 17px; font-weight: 650; cursor: pointer;
  transition: background .15s ease, transform .08s ease;
}
.btn:hover { background: var(--navy-dark); }
.btn:active { transform: scale(.98); }
.btn--ghost { background: var(--navy-tint); color: var(--navy); }
.btn--ghost:hover { background: #dce6f5; }
.btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section { padding: 28px 0; }
.section-title {
  font-size: 13px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); margin: 0 0 14px;
}
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 22px;
}
.card--accent { border-left: 4px solid var(--gold); }
.lede { font-size: 17px; color: var(--ink); margin: 0; }
.muted { color: var(--muted); }

/* ---------- Footer ---------- */
.footer {
  margin-top: 24px; border-top: 1px solid var(--line);
  background: var(--card);
}
.footer__inner {
  max-width: 960px; margin: 0 auto; padding: 24px 20px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 14px;
}
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--navy); text-decoration: underline; }
.footer__manage {
  font-weight: 600; color: var(--navy);
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
}
.footer__manage:hover { background: var(--navy-tint); text-decoration: none; }

/* ---------- Product gallery ---------- */
.gallery {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
.gallery__cta { display: flex; justify-content: center; margin: 24px 0 8px; }
.gcard {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden;
}
.gcard__photo { position: relative; aspect-ratio: 1 / 1; background: var(--bg); }
.gcard__photo img { width: 100%; height: 100%; object-fit: cover; }
.gcard__sold {
  position: absolute; top: 10px; left: 10px;
  background: rgba(22,32,44,.82); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .02em;
  padding: 4px 10px; border-radius: 999px;
}
.gcard__body { padding: 14px; }
.gcard__name { display: block; font-weight: 650; line-height: 1.35; margin: 0 0 6px; }
.gcard__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gcard__price { font-weight: 700; }
.gcard__stock { font-size: 13px; color: var(--muted); }
.gcard__stock.is-out { color: var(--gold); }

@media (min-width: 720px) {
  .hero { padding: 64px 0 32px; }
  .hero__logo { max-width: 380px; }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
