/* Sanago marketing site — brand palette + type, matching the app.
   paper/card/ink/ink2/teal/line are the app's design tokens (src/core tokens module);
   the site is static HTML so the values are restated here, one place only. */
:root {
  --paper: #F7F4EE;
  --card: #FFFEFB;
  --ink: #1C1A17;
  --ink2: #6E675C;
  --teal: #1E4B49;
  --line: #E3DDD2;
  --serif: "Fraunces", Georgia, serif;
  --sans: "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 20px; }
a { color: var(--teal); }

h1, h2, h3, .serif { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 5.4vw, 56px); line-height: 1.12; }
h2 { font-size: clamp(26px, 3.6vw, 36px); line-height: 1.2; }
h3 { font-size: 21px; }

/* header */
header { padding: 22px 20px; }
.nav { display: flex; align-items: center; gap: 12px; }
.nav img { width: 34px; height: 34px; }
.nav .name { font-family: var(--serif); font-weight: 600; font-size: 22px; color: var(--ink); text-decoration: none; }
.nav .tag { color: var(--ink2); font-size: 14px; font-style: italic; margin-left: 2px; }
.nav .right { margin-left: auto; display: flex; gap: 22px; align-items: center; }
.nav .right a { color: var(--ink); text-decoration: none; font-size: 15px; }
.nav .right a:hover { color: var(--teal); }

/* hero */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding: 48px 20px 72px; }
.hero p.lead { margin: 20px 0 28px; font-size: 19px; color: var(--ink2); max-width: 46ch; }
.hero .phone { justify-self: center; }

/* phone frame */
.phone {
  width: min(300px, 78vw);
  border-radius: 38px;
  border: 1px solid var(--line);
  background: var(--card);
  padding: 10px;
  box-shadow: 0 24px 60px rgba(28, 26, 23, 0.14);
}
.phone img, .phone video { display: block; width: 100%; border-radius: 28px; }

/* buttons + form */
.btn {
  display: inline-block;
  background: var(--teal);
  color: var(--card);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  padding: 14px 26px;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { filter: brightness(1.08); }
.notify { display: flex; gap: 10px; max-width: 430px; }
.notify input {
  flex: 1;
  min-width: 0;
  font: inherit;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
}
.notify input:focus { outline: 2px solid var(--teal); border-color: var(--teal); }
.formNote { font-size: 13.5px; color: var(--ink2); margin-top: 10px; }

/* sections */
section { padding: 64px 0; }
section.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin-top: 44px; }
.step .phone { width: 100%; max-width: 270px; margin: 0 auto 22px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink2); font-size: 16px; }
.stepNum { font-family: var(--serif); color: var(--teal); font-size: 18px; margin-bottom: 6px; }

/* honesty */
.honest { max-width: 640px; }
.honest p { margin-top: 16px; color: var(--ink2); font-size: 18px; }
.honest p strong { color: var(--ink); }

/* articles */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 36px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 26px 24px;
  text-decoration: none;
  color: var(--ink);
  display: block;
  transition: box-shadow 0.15s ease;
}
.card:hover { box-shadow: 0 10px 28px rgba(28, 26, 23, 0.09); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink2); font-size: 15.5px; }
.card .more { display: inline-block; margin-top: 14px; color: var(--teal); font-size: 15px; font-weight: 600; }

/* waitlist band */
.band { text-align: center; }
.band .notify { margin: 28px auto 0; justify-content: center; }
.band p.lead { color: var(--ink2); margin-top: 14px; max-width: 52ch; margin-left: auto; margin-right: auto; }

/* footer */
footer { padding: 36px 0 48px; border-top: 1px solid var(--line); color: var(--ink2); font-size: 14.5px; }
footer .row { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
footer a { color: var(--ink2); }
footer .row .spacer { flex: 1; }

/* article pages */
.article { max-width: 680px; margin: 0 auto; padding: 24px 20px 80px; }
.article h1 { margin: 18px 0 10px; font-size: clamp(30px, 4.5vw, 44px); }
.article .summary { font-size: 19px; color: var(--ink2); margin-bottom: 36px; font-style: italic; }
.article h2 { font-size: 26px; margin: 40px 0 12px; }
.article p { margin: 16px 0; }
.article ul, .article ol { margin: 16px 0 16px 24px; }
.article li { margin: 6px 0; }
.article blockquote { border-left: 3px solid var(--teal); padding-left: 18px; color: var(--ink2); margin: 20px 0; }
.article .backlink { font-size: 15px; text-decoration: none; }
.tagNote {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 20px; font-size: 15px; color: var(--ink2); margin: 36px 0 0;
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 28px 20px 56px; }
  .hero .phone { order: 2; }
  .steps { grid-template-columns: 1fr; gap: 48px; }
  .cards { grid-template-columns: 1fr; }
  .nav .tag { display: none; }
  .nav .right a:not(.btn) { display: none; }
}

/* interactive demo (Try it) */
.demo { margin: 36px auto 0; width: min(340px, 86vw); padding: 18px 14px 16px; }
.demoToggle {
  display: flex; background: var(--paper); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px; margin: 0 auto 14px; width: fit-content;
}
.demoToggle button {
  font: inherit; font-size: 15px; border: none; background: none; color: var(--ink2);
  padding: 8px 18px; border-radius: 999px; cursor: pointer;
}
.demoToggle button.on { background: var(--card); color: var(--ink); font-weight: 600;
  box-shadow: 0 1px 4px rgba(28,26,23,0.12); }
.demoStage { position: relative; display: flex; justify-content: center; height: min(54vh, 600px); }
.phone .demoModel { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; border-radius: 14px; display: block; }
.demoFlat { position: relative; width: 100%; height: 100%; }
.flatMain { position: absolute; inset: 0 27%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.flatMain img { flex: 1 1 0; min-height: 0; max-width: 100%; object-fit: contain; }
.phone .flatSide { position: absolute; width: 23%; height: auto; max-height: 20%; object-fit: contain; }
.phone .flatMain img.flatShoes { flex: 0 0 auto; max-height: 16%; width: auto; }
.phone .flatBottomLeft { width: 31%; max-height: 27%; }
.flatTopRight { top: 1%; right: 1%; }
.flatBottomLeft { bottom: 3%; left: 1%; }
.flatMidLeft { top: 36%; left: 1%; }
.demoChips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.demoChips .demoShuffle { grid-column: 1 / -1; }
.demoChip { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demoChip {
  font: inherit; font-size: 14.5px; font-weight: 600; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 14px; cursor: pointer;
}
.demoChip:hover { border-color: var(--teal); color: var(--teal); }
.demoShuffle { background: var(--teal); color: var(--card); border-color: var(--teal); }
.demoShuffle:hover { color: var(--card); filter: brightness(1.08); }
.demoFlat[hidden], .demoModel[hidden] { display: none; }
