/* ===========================================================================
   MakerShelf — marketing site (production)
   Locked brand atoms: terracotta + warm greige, Newsreader + Inter, wordmark.
   This is the baked-in look chosen during design: editorial hero · warm
   background rhythm · balanced terracotta. No tweak/variant machinery.
   Shared by index.html (English) and es/index.html (Spanish).
   =========================================================================== */

:root {
  /* ---- Brand atoms ----------------------------------------------------- */
  --surface:        #ffffff;
  --bg:             #faf7f3;   /* signature warm off-white */
  --bg-muted:       #f1ece4;
  --bg-well:        #ebe5dd;
  --ink:            #2b2520;   /* warm near-black */
  --ink-2:          #5e564d;   /* secondary */
  --muted:          #978d81;
  --divider:        #dad1c6;
  --hairline:       #ebe5dd;

  --terracotta:        #a6512f;
  --terracotta-hover:  #8c4226;
  --terracotta-text:   #94472a;
  --terracotta-soft:   #f6eae2;
  --terracotta-soft-bd:#e3c4b3;

  /* semantic (warm-tuned) — used in the product mockup */
  --success-bg:#ecf3ea; --success-text:#41704c; --success-bd:#b7d0b9;
  --warning-bg:#faf2e2; --warning-text:#8f5f1b; --warning-bd:#e6c890;
  --info-bg:#e8edf7;    --info-text:#3a5d8f;    --info-bd:#c1d0ea;

  --espresso: #2a201b;

  --font-body:    "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;

  --shadow-card: 0 1px 2px rgba(43,37,32,.05), 0 1px 3px rgba(43,37,32,.04);
  --shadow-pop:  0 18px 50px -22px rgba(43,30,22,.30);
  --shadow-lift: 0 28px 70px -30px rgba(43,30,22,.38);
  --ease: 220ms cubic-bezier(.4,0,.2,1);

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);

  scroll-behavior: smooth;
}

* { box-sizing: border-box; }

html, body { margin: 0; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--terracotta-soft); }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ===========================================================================
   TYPE
   =========================================================================== */
.display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -.018em;
  line-height: 1.04;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.h1 { font-size: clamp(2.9rem, 7.2vw, 5.6rem); }
.h2 { font-family: var(--font-display); font-weight: 500; letter-spacing: -.012em;
      line-height: 1.08; font-size: clamp(2rem, 4vw, 3.1rem); margin: 0; text-wrap: balance; }
.h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -.01em;
      line-height: 1.15; font-size: clamp(1.4rem, 2.4vw, 1.85rem); margin: 0; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--terracotta-text);
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1.5px;
  background: var(--terracotta); opacity: .55;
}
.lead { font-size: clamp(1.15rem, 1.7vw, 1.4rem); line-height: 1.55; color: var(--ink-2);
        margin: 0; text-wrap: pretty; max-width: 36ch; }
.serif-em { font-family: var(--font-display); font-style: italic; font-weight: 400; }

/* ===========================================================================
   LAYOUT
   =========================================================================== */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
section { position: relative; }
.section-pad { padding-block: clamp(72px, 11vw, 150px); }

/* ===========================================================================
   NAV
   =========================================================================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease), background var(--ease);
}
.nav[data-stuck="1"] { border-bottom-color: var(--hairline); }
.nav-in {
  max-width: var(--maxw); margin: 0 auto; padding: 16px var(--gutter);
  display: flex; align-items: center; gap: 28px;
}
.nav-logo { height: 26px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav-link {
  font-size: .95rem; font-weight: 500; color: var(--ink-2);
  text-decoration: none; transition: color var(--ease); white-space: nowrap;
}
.nav-link:hover { color: var(--ink); }

/* language link (quiet text link, not a toggle) */
.lang-link {
  font-size: .9rem; font-weight: 600; color: var(--ink-2); text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  transition: color var(--ease);
}
.lang-link:hover { color: var(--terracotta-text); }
.lang-link svg { width: 15px; height: 15px; opacity: .8; }

/* ===========================================================================
   BUTTONS
   =========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 14px 24px; border-radius: 10px; border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background var(--ease), border-color var(--ease), color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.btn-sm { padding: 9px 16px; font-size: .92rem; border-radius: 9px; }
.btn-primary { background: var(--terracotta); color: #fff; box-shadow: 0 1px 2px rgba(43,30,22,.18); }
.btn-primary:hover { background: var(--terracotta-hover); transform: translateY(-1px); box-shadow: var(--shadow-pop); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--divider); }
.btn-ghost:hover { border-color: var(--ink-2); background: var(--surface); }
.btn .arr { transition: transform var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

/* ===========================================================================
   HERO — editorial split
   =========================================================================== */
.hero { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(56px, 8vw, 104px); }
.hero .wrap {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 34px; }
.hero-note { font-size: .92rem; color: var(--muted); margin-top: 18px; display: flex; align-items: center; gap: 8px; }
.hero-note svg { width: 16px; height: 16px; color: var(--terracotta-text); }
.hero-tagline { margin-top: 22px; }

.hero-figure { position: relative; }
.hero-figure img {
  display: block; width: 100%; height: clamp(380px, 46vw, 580px);
  object-fit: cover; border-radius: 20px; box-shadow: var(--shadow-lift);
}
.hero-figure::before {
  content: ""; position: absolute; left: -14px; top: 30px; bottom: 30px; width: 5px;
  border-radius: 999px; background: var(--terracotta); opacity: .85;
}

/* ===========================================================================
   SECTION BACKGROUND RHYTHM — baked "warm"
   =========================================================================== */
.s-problem { background: var(--bg); }
.s-how     { background: var(--bg-muted); }
.s-product { background: var(--bg-well); }
.s-makers  { background: var(--bg); }

/* ===========================================================================
   PROBLEM
   =========================================================================== */
.problem-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.problem-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.pain-list { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; list-style: none; }
.pain-item { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--hairline); }
.pain-item:last-child { border-bottom: 0; }
.pain-x {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; margin-top: 1px;
  background: var(--terracotta-soft); color: var(--terracotta-text); border: 1px solid var(--terracotta-soft-bd);
}
.pain-x svg { width: 16px; height: 16px; }
.pain-item h4 { margin: 0 0 3px; font-size: 1.06rem; font-weight: 600; color: var(--ink); }
.pain-item p { margin: 0; font-size: .98rem; color: var(--ink-2); }

/* the "before" — a messy stack of notes */
.before-stack { position: relative; min-height: 380px; }
.note {
  position: absolute; background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 12px; box-shadow: var(--shadow-card); padding: 16px 18px;
  font-size: .9rem; color: var(--ink-2);
}
.note .note-h { font-weight: 600; color: var(--ink); font-size: .82rem; margin-bottom: 8px;
  display: flex; align-items: center; gap: 7px; }
.note .note-h .tag { width: 8px; height: 8px; border-radius: 2px; }
.note-1 { top: 8px; left: 0; width: 240px; transform: rotate(-3deg); }
.note-2 { top: 96px; right: 0; width: 220px; transform: rotate(2.4deg); }
.note-3 { top: 210px; left: 28px; width: 250px; transform: rotate(-1.5deg); }
.note .row { display: flex; justify-content: space-between; padding: 3px 0; border-bottom: 1px dashed var(--hairline); }
.note .row:last-child { border-bottom: 0; }
.note .ws { font-family: var(--font-body); }
.chat-bubble {
  background: #e6f0e6; border-radius: 12px 12px 12px 3px; padding: 9px 12px;
  font-size: .85rem; color: #3a4a3a; max-width: 200px; margin-bottom: 6px;
}
.before-tag {
  position: absolute; bottom: 4px; right: 6px; font-size: .8rem; color: var(--muted);
  font-style: italic; font-family: var(--font-display);
}

/* ===========================================================================
   HOW IT WORKS — 3 steps
   =========================================================================== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3.5vw, 48px); margin-top: clamp(44px, 5vw, 66px); }
.step { position: relative; }
.step-n {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 500;
  color: var(--terracotta-text); width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--terracotta-soft-bd); background: var(--terracotta-soft);
  display: grid; place-items: center; margin-bottom: 22px;
}
.step h3 { margin-bottom: 10px; }
.step p { margin: 0; color: var(--ink-2); font-size: 1.02rem; }
.step-art { display: block; margin-top: 22px; width: 100%; height: 192px;
  object-fit: cover; border-radius: 14px; box-shadow: var(--shadow-card); }

/* ===========================================================================
   PRODUCT SHOWCASE — recreated app UI
   =========================================================================== */
.product-grid { display: grid; grid-template-columns: .9fr 1.3fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.feature-list { display: flex; flex-direction: column; gap: 26px; margin-top: 34px; }
.feature { display: flex; gap: 15px; }
.feature-ic {
  flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--hairline); color: var(--terracotta-text);
  box-shadow: var(--shadow-card);
}
.feature-ic svg { width: 19px; height: 19px; }
.feature h4 { margin: 0 0 3px; font-size: 1.04rem; font-weight: 600; }
.feature p { margin: 0; color: var(--ink-2); font-size: .96rem; }

.app-frame {
  background: var(--surface); border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-lift); border: 1px solid var(--hairline);
}
.app-bar {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  background: var(--bg); border-bottom: 1px solid var(--hairline);
}
.app-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--divider); }
.app-url {
  margin-left: 10px; font-size: .8rem; color: var(--muted); background: var(--surface);
  padding: 4px 12px; border-radius: 999px; border: 1px solid var(--hairline);
  font-family: var(--font-body);
}
.app-body { display: grid; grid-template-columns: 168px 1fr; min-height: 420px; }
.app-side { background: var(--espresso); padding: 18px 14px; }
.app-side .ms-logo { color: #f4eee7; height: 20px; margin: 4px 6px 22px; }
.app-nav { display: flex; flex-direction: column; gap: 2px; }
.app-nav a {
  display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 8px;
  font-size: .86rem; color: rgba(244,238,231,.62); text-decoration: none;
}
.app-nav a svg { width: 16px; height: 16px; }
.app-nav a.on { background: rgba(244,238,231,.12); color: #fff; }
.app-main { padding: 20px 22px; overflow: hidden; }
.app-h {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px;
}
.app-h .t { font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; color: var(--ink); }
.app-pri { font-size: .82rem; font-weight: 600; color: #fff; background: var(--terracotta);
  padding: 7px 13px; border-radius: 7px; }

table.app-tbl { width: 100%; border-collapse: collapse; font-size: .82rem; }
table.app-tbl th {
  text-align: left; font-size: .64rem; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; color: var(--muted); padding: 9px 10px;
  border-bottom: 1px solid var(--divider); white-space: nowrap;
}
table.app-tbl th.r, table.app-tbl td.r { text-align: right; }
table.app-tbl td { padding: 12px 10px; border-bottom: 1px solid var(--hairline); color: var(--ink);
  vertical-align: middle; white-space: nowrap; }
table.app-tbl tr:last-child td { border-bottom: 0; }
.sku { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.num { font-variant-numeric: tabular-nums; }
.cur { color: var(--muted); font-weight: 500; font-size: .78em; margin-left: 3px; }
.badge {
  display: inline-flex; align-items: center; font-size: .68rem; font-weight: 600;
  padding: 3px 8px; border-radius: 6px; border: 1px solid var(--divider);
  background: transparent; color: var(--ink-2); white-space: nowrap;
}
.pill {
  display: inline-flex; align-items: center; gap: 5px; font-size: .68rem; font-weight: 600;
  padding: 3px 9px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; }
.pill-info    { background: var(--info-bg); color: var(--info-text); border-color: var(--info-bd); }
.pill-success { background: var(--success-bg); color: var(--success-text); border-color: var(--success-bd); }
.pill-warning { background: var(--warning-bg); color: var(--warning-text); border-color: var(--warning-bd); }
.pill-neutral { background: transparent; color: var(--ink-2); border-color: var(--divider); }
.dash { color: var(--muted); }

.recon-card {
  position: absolute; right: -18px; bottom: -26px; width: 264px;
  background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-lift);
  border: 1px solid var(--hairline); padding: 18px 20px;
}
.recon-card .rc-h { font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px; }
.recon-card .rc-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: .86rem; color: var(--ink-2); }
.recon-card .rc-total { display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--hairline); }
.recon-card .rc-total .lbl { font-weight: 600; color: var(--ink); }
.recon-card .rc-total .amt { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; color: var(--ink); }

/* ===========================================================================
   MAKERS / TESTIMONIALS
   =========================================================================== */
.makers-head { max-width: 720px; margin-bottom: clamp(42px, 5vw, 64px); }
.makers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(22px, 3vw, 36px); }
.maker-card {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 18px;
  overflow: hidden; box-shadow: var(--shadow-card); display: flex; flex-direction: column;
  transition: transform var(--ease), box-shadow var(--ease);
}
.maker-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-pop); }
.maker-photo { display: block; width: 100%; height: 232px; object-fit: cover; }
.maker-body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.maker-quote { font-family: var(--font-display); font-size: 1.28rem; line-height: 1.32; color: var(--ink);
  letter-spacing: -.01em; margin: 0; text-wrap: pretty; }
.maker-meta { margin-top: auto; padding-top: 6px; }
.maker-name { font-weight: 600; font-size: .98rem; color: var(--ink); }
.maker-role { font-size: .9rem; color: var(--muted); }

/* ===========================================================================
   FINAL CTA
   =========================================================================== */
.cta {
  background: var(--terracotta-soft);
  border-radius: 28px; margin: 0 var(--gutter) clamp(40px,6vw,80px);
  padding: clamp(56px, 8vw, 104px) clamp(28px, 6vw, 80px);
  text-align: center; position: relative; overflow: hidden;
}
.cta .lead { margin: 18px auto 0; max-width: 46ch; text-align: center; }
.cta-form {
  display: flex; gap: 10px; max-width: 480px; margin: 36px auto 0; flex-wrap: wrap;
  justify-content: center;
}
.cta-input {
  flex: 1; min-width: 240px; font-family: var(--font-body); font-size: 1rem;
  padding: 14px 18px; border-radius: 11px; border: 1.5px solid var(--divider);
  background: var(--surface); color: var(--ink);
}
.cta-input::placeholder { color: var(--muted); }
.cta-input:focus { outline: none; border-color: var(--terracotta); box-shadow: 0 0 0 4px rgba(166,81,47,.18); }
.form-note { font-size: .88rem; color: var(--ink-2); margin-top: 16px; }
.cta-thanks { display: none; font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); margin-top: 8px; }
.cta.sent .cta-form, .cta.sent .form-note { display: none; }
.cta.sent .cta-thanks { display: block; }

/* ===========================================================================
   FOOTER
   =========================================================================== */
.footer { background: var(--espresso); color: rgba(244,238,231,.7); }
.footer-in { padding: clamp(44px, 5vw, 64px) var(--gutter); max-width: var(--maxw); margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }
.footer .ms-logo { height: 24px; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; align-items: center; }
.footer-links a { color: rgba(244,238,231,.7); text-decoration: none; font-size: .92rem; }
.footer-links a:hover { color: #fff; }
.footer-fine { font-size: .85rem; color: rgba(244,238,231,.45); }

/* ===========================================================================
   ENTRANCE (calm) — transform-only; resting state is always visible.
   =========================================================================== */
@keyframes ms-rise {
  from { transform: translateY(13px); }
  to   { transform: translateY(0); }
}
.reveal { animation: ms-rise .7s cubic-bezier(.2,.7,.3,1) both; }
@media (prefers-reduced-motion: reduce) { .reveal { animation: none; } }

/* ===========================================================================
   RESPONSIVE
   =========================================================================== */
@media (max-width: 920px) {
  .hero .wrap, .problem-grid, .product-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; }
  .steps, .makers-grid { grid-template-columns: 1fr; }
  .recon-card { position: static; width: auto; margin-top: 16px; }
  .before-stack { min-height: 340px; }
  .nav-links .nav-link { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .cta-form { flex-direction: column; }
}
