:root {
  --bg: #FFFFFF;
  --bg-alt: #F7F7F8;
  --surface: #FFFFFF;
  --surface-alt: #FAFAFB;
  --border: #E7E7EA;
  --border-soft: #F0F0F2;
  --text: #121214;
  --text-sec: #5C5C63;
  --text-muted: #9A9AA1;
  --ink: #121214;

  /* MOLD's own brand accent — used only on MOLD's card/page, not the studio shell. */
  --mold-from: #E8B84B;
  --mold-to: #C8922A;
  --mold: #C8922A;
}

* { box-sizing: border-box; }
img { max-width: 100%; height: auto; display: block; }
html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.container { max-width: 920px; margin: 0 auto; padding: 0 24px; }

/* ---------- header / nav ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.3px;
  color: var(--text);
}
.brand .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
nav.site-nav { display: flex; gap: 6px; align-items: center; }
nav.site-nav > a {
  color: var(--text-sec);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
}
nav.site-nav > a:hover { color: var(--text); text-decoration: none; background: var(--bg-alt); }

/* dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > button {
  font: inherit;
  color: var(--text-sec);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-dropdown > button:hover { color: var(--text); background: var(--bg-alt); }
.nav-dropdown .chev { width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  padding: 8px;
  display: none;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}
.nav-dropdown-menu a:hover { background: var(--bg-alt); text-decoration: none; }
.nav-dropdown-menu img { width: 26px; height: 26px; border-radius: 7px; }
.nav-dropdown-menu .soon {
  padding: 10px 12px;
  color: var(--text-muted);
  font-size: 13px;
}

/* ---------- hero (studio home) ---------- */
.hero { text-align: center; padding: 84px 0 56px; }
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-sec);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.hero h1 { font-size: 46px; letter-spacing: -0.5px; line-height: 1.12; margin: 0 0 18px; color: var(--text); }
.hero p.sub { font-size: 18px; color: var(--text-sec); max-width: 540px; margin: 0 auto 8px; }

/* ---------- app cards (studio "Our Apps") ---------- */
.section-title { text-align: center; font-size: 13px; font-weight: 700; letter-spacing: 2.5px; color: var(--text-muted); margin-bottom: 8px; }
.section-heading { text-align: center; font-size: 26px; margin: 0 0 40px; }

.app-grid { display: grid; grid-template-columns: 1fr; gap: 18px; padding: 0 0 100px; }
.app-card {
  display: flex;
  align-items: center;
  gap: 22px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px 28px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.app-card:hover { border-color: #D6D6DA; transform: translateY(-1px); text-decoration: none; }
.app-card img.app-icon { width: 64px; height: 64px; border-radius: 16px; flex-shrink: 0; box-shadow: 0 6px 18px rgba(0,0,0,0.12); }
.app-card .app-info { flex: 1; text-align: left; }
.app-card .app-info h3 { margin: 0 0 4px; font-size: 18px; color: var(--text); }
.app-card .app-info p { margin: 0; font-size: 14px; color: var(--text-sec); }
.app-card .app-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--mold);
  background: rgba(200,146,42,0.1);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 6px;
  display: inline-block;
}
.app-card .arrow { color: var(--text-muted); font-size: 20px; flex-shrink: 0; }

.app-card-soon {
  display: flex;
  align-items: center;
  gap: 22px;
  border: 1px dashed var(--border);
  border-radius: 20px;
  padding: 26px 28px;
  opacity: 0.6;
}
.app-card-soon .app-icon-placeholder {
  width: 64px; height: 64px; border-radius: 16px; flex-shrink: 0;
  background: var(--bg-alt); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 22px; font-weight: 700;
}
.app-card-soon .app-info h3 { margin: 0 0 4px; font-size: 16px; color: var(--text-sec); }
.app-card-soon .app-info p { margin: 0; font-size: 13px; color: var(--text-muted); }

/* ---------- generic buttons ---------- */
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--ink); color: #FFFFFF; }
.btn-primary:hover { opacity: 0.88; }
.btn-ghost { background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: #C9C9CE; }

/* store badges — real cropped artwork in /assets, not custom-drawn buttons */
.store-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 28px; align-items: center; }
.store-badge-img { height: 48px; width: auto; display: block; }
.store-row a { display: inline-flex; transition: transform 0.15s ease, opacity 0.15s ease; }
.store-row a:hover { transform: translateY(-1px); opacity: 0.9; }
.store-badge-soon-img { display: inline-flex; filter: grayscale(1); opacity: 0.45; cursor: not-allowed; }

/* ---------- MOLD app page: hero with its own gold accent ---------- */
.mold-hero { position: relative; text-align: center; padding: 72px 0 40px; overflow: hidden; }
.mold-hero::before {
  content: "";
  position: absolute;
  top: -160px; left: 50%; transform: translateX(-50%);
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(200,146,42,0.14), transparent 65%);
  pointer-events: none;
}
.mold-hero .eyebrow.mold { color: var(--mold); background: rgba(200,146,42,0.08); border-color: rgba(200,146,42,0.25); }
.mold-hero h1 {
  position: relative;
  font-size: 44px; letter-spacing: 0; line-height: 1.1; margin: 0 0 16px;
  background: linear-gradient(180deg, var(--mold-from), var(--mold-to));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mold-hero p.sub { position: relative; font-size: 17px; color: var(--text-sec); max-width: 540px; margin: 0 auto 8px; }
.btn-mold { background: linear-gradient(180deg, var(--mold-from), var(--mold-to)); color: #221A0D; box-shadow: 0 8px 24px rgba(200,146,42,0.22); }
.btn-mold:hover { opacity: 0.94; }

/* ---------- mockups ---------- */
/* Fluid on purpose — NOT a fixed pixel height gated by one breakpoint. A fixed
   440-480px height only shrank below 720px wide, so a moderately narrow (but
   still "desktop") window showed one image at nearly full height, overflowing
   sideways and dominating the screen. min(Npx, vw-based) caps height by both
   the design target AND the actual viewport, so it scales continuously. */
.mockups { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; align-items: flex-end; padding: 20px 0 64px; }
.mockups img { height: min(440px, 38vw, 60vh); width: auto; max-width: 90vw; border-radius: 24px; border: 1px solid var(--border); box-shadow: 0 20px 50px rgba(0,0,0,0.08); }
.mockups img:nth-child(2) { height: min(480px, 42vw, 64vh); }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 0 0 80px; }
.step { text-align: center; padding: 0 12px; }
.step .num {
  width: 40px; height: 40px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--surface-alt); border: 1px solid var(--border);
  color: var(--mold); font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { margin: 0 0 8px; font-size: 16px; }
.step p { margin: 0; color: var(--text-sec); font-size: 14px; }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 0 0 90px; }
.feature { background: var(--surface-alt); border: 1px solid var(--border); border-radius: 18px; padding: 26px 22px; }
.feature .icon { width: 38px; height: 38px; border-radius: 11px; background: rgba(200,146,42,0.1); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feature .icon svg { width: 19px; height: 19px; }
.feature h3 { margin: 0 0 8px; font-size: 16px; color: var(--text); }
.feature p { margin: 0; color: var(--text-sec); font-size: 14px; }

.final-cta { text-align: center; padding: 20px 0 90px; }
.final-cta h2 { font-size: 26px; margin: 0 0 12px; }
.final-cta p { color: var(--text-sec); margin: 0 0 8px; }

/* ---------- footer ---------- */
footer.site-footer { border-top: 1px solid var(--border-soft); padding: 36px 0 60px; }
.footer-grid { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--text-sec); font-size: 13px; }
.footer-copy { color: var(--text-muted); font-size: 12px; margin-top: 20px; text-align: center; }

/* ---------- legal / content pages ---------- */
.doc { padding: 56px 0 110px; }
.doc h1 { font-size: 32px; margin-bottom: 6px; }
.doc .meta { color: var(--text-muted); font-size: 13px; margin-bottom: 40px; padding-bottom: 24px; border-bottom: 1px solid var(--border-soft); }
.doc .app-note {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--mold);
  background: rgba(200,146,42,0.08);
  border: 1px solid rgba(200,146,42,0.25);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 18px;
}
.doc section { margin-bottom: 28px; }
.doc h2 { font-size: 16px; color: var(--text); margin-bottom: 10px; letter-spacing: 0.2px; }
.doc p { color: var(--text-sec); font-size: 15px; margin: 0 0 10px; }
.doc p:last-child { margin-bottom: 0; }
.doc strong { color: var(--text); }

.contact-card { background: var(--surface-alt); border: 1px solid var(--border); border-radius: 18px; padding: 30px; margin-top: 24px; text-align: center; }
.contact-card .kicker { color: var(--text-sec); font-size: 12px; letter-spacing: 1.5px; margin-bottom: 10px; }
.contact-card a.email-link { font-size: 20px; font-weight: 800; }

.section-spaced { margin-top: 40px; }
.info-card { background: var(--surface-alt); border: 1px solid var(--border); border-radius: 16px; padding: 20px 22px; margin-bottom: 14px; }
.info-card h3 { margin: 0 0 6px; font-size: 15px; color: var(--text); }
.info-card p { margin: 0; color: var(--text-sec); font-size: 14px; }

@media (max-width: 720px) {
  .hero h1, .mold-hero h1 { font-size: 32px; }
  .hero p.sub, .mold-hero p.sub { font-size: 16px; }
  .steps, .features { grid-template-columns: 1fr; }
  nav.site-nav { gap: 2px; }
  nav.site-nav > a, .nav-dropdown > button { font-size: 12px; padding: 7px 8px; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
  .app-card, .app-card-soon { flex-direction: column; text-align: center; }
  .app-card .app-info, .app-card-soon .app-info { text-align: center; }
}
