/* LinxyPass demonstration sites - shared stylesheet.
   Light theme only. System sans throughout. Every control at least 44px tall. */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink, #16202B);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--brand); }

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

/* ---------- demo flag ---------- */
.demoflag {
  background: #1B2430; color: #E6EBF2;
  font-size: 12.5px; line-height: 1.5;
  padding: 9px 24px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  justify-content: center; text-align: center;
}
.demoflag-dot { width: 7px; height: 7px; border-radius: 50%; background: #F0B429; flex: 0 0 auto; }
.demoflag a { color: #9FC7F5; text-decoration: none; border-bottom: 1px solid rgba(159,199,245,.4); }

/* ---------- masthead ---------- */
.masthead { border-bottom: 1px solid #E7EAEF; background: #fff; position: relative; z-index: 5; }
.masthead-inner { display: flex; align-items: center; gap: 20px; min-height: 76px; flex-wrap: wrap; }
.wordmark { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); margin-right: auto; }
.wordmark-mark {
  width: 38px; height: 38px; border-radius: 10px; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px; letter-spacing: -.01em; flex: 0 0 auto;
}
.wordmark-text { font-weight: 700; font-size: 17.5px; letter-spacing: -.012em; }
.mainnav { display: flex; gap: 22px; }
.mainnav a {
  color: #55606E; text-decoration: none; font-size: 14.5px; font-weight: 500;
  min-height: 44px; display: inline-flex; align-items: center;
}
.mainnav a:hover { color: var(--brand); }
.masthead-actions { display: flex; align-items: center; gap: 10px; }

/* site-specific masthead treatments so the three do not read as one template */
.site-health .masthead-inner { justify-content: center; }
.site-health .wordmark { margin-right: 0; }
.site-health .masthead-inner { flex-direction: column; gap: 8px; padding-top: 14px; padding-bottom: 14px; }
.site-health .mainnav { gap: 26px; }
.site-shop .masthead { border-bottom-width: 2px; border-bottom-color: var(--brand); }
.site-school .masthead-inner { border-bottom: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 18px; border-radius: 10px;
  font-size: 14.5px; font-weight: 600; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
}
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 15.5px; }
.btn-solid { background: var(--brand); color: #fff; }
.btn-solid:hover { filter: brightness(1.08); }
.btn-ghost { background: #fff; color: var(--brand); border-color: #D8DEE6; }
.btn-ghost:hover { border-color: var(--brand); }
.btn-quiet { background: #F2F4F7; color: #4A5563; }
.btn-how { font-weight: 600; }
.btn-block { width: 100%; }

@media (max-width: 860px) {
  .mainnav { display: none; }
  .btn-how { font-size: 13.5px; padding: 0 12px; }
}

/* ---------- generic sections ---------- */
.hero { background: var(--wash); border-bottom: 1px solid #E7EAEF; }
.hero-inner { padding-top: 62px; padding-bottom: 66px; max-width: 720px; }
.hero h1 { font-size: 41px; line-height: 1.15; letter-spacing: -.022em; margin: 0 0 14px; }
.hero p { font-size: 18px; color: #4E5A67; margin: 0 0 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.eyebrow {
  font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 12px;
}

.section { padding: 56px 0; }
.section-tint { background: var(--wash); }
.section h2 { font-size: 27px; letter-spacing: -.016em; margin: 0 0 8px; }
.section .lede { color: #55606E; margin: 0 0 28px; max-width: 640px; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid #E7EAEF; border-radius: 14px; padding: 22px;
}
.card h3 { margin: 0 0 6px; font-size: 17px; letter-spacing: -.01em; }
.card p { margin: 0; color: #55606E; font-size: 14.5px; }
.card-flat { border-radius: 12px; }

/* ---------- sign-in ---------- */
.signin { background: var(--wash); min-height: 70vh; padding: 48px 0 64px; }
.signin-card {
  background: #fff; border: 1px solid #E4E9EE; border-radius: 20px;
  max-width: 620px; margin: 0 auto; padding: 34px 30px 30px; text-align: center;
  box-shadow: 0 14px 40px rgba(16,24,40,.06);
}
.signin-card h1 { font-size: 25px; margin: 0 0 6px; letter-spacing: -.016em; }
.signin-card .sub { color: #58636F; margin: 0 0 24px; font-size: 15px; }
.lp-slot { min-height: 240px; }
.signin-help { margin-top: 22px; border-top: 1px solid #EDF0F4; padding-top: 18px; font-size: 13.5px; color: #6B7684; }
.signin-help strong { color: var(--ink); }
.signin-steps { text-align: left; max-width: 430px; margin: 18px auto 0; padding-left: 20px; color: #58636F; font-size: 14px; }
.signin-steps li { margin-bottom: 6px; }

/* ---------- dashboard ---------- */
.appbar { background: var(--brand); color: #fff; }
.appbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; flex-wrap: wrap; }
.appbar h1 { font-size: 22px; margin: 0; letter-spacing: -.014em; }
.appbar .who { font-size: 14px; opacity: .88; margin: 3px 0 0; }
.appbar .btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); }

.panel { background: #fff; border: 1px solid #E7EAEF; border-radius: 14px; overflow: hidden; }
.panel-head { padding: 16px 20px; border-bottom: 1px solid #EDF0F4; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.panel-head h3 { margin: 0; font-size: 15.5px; letter-spacing: -.008em; }
.panel-head .more { font-size: 13px; color: var(--accent); text-decoration: none; }
.rows { margin: 0; padding: 0; list-style: none; }
.rows li { padding: 14px 20px; border-bottom: 1px solid #F1F3F6; display: flex; justify-content: space-between; gap: 14px; align-items: baseline; font-size: 14.5px; }
.rows li:last-child { border-bottom: 0; }
.rows .k { color: var(--ink); font-weight: 500; }
.rows .v { color: #6B7684; font-size: 13.5px; text-align: right; white-space: nowrap; }
.pill { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--wash); color: var(--brand); }
.big { font-size: 30px; font-weight: 700; letter-spacing: -.02em; margin: 4px 0 0; }
.muted { color: #6B7684; font-size: 13.5px; }

/* ---------- shop ---------- */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 980px) { .products { grid-template-columns: repeat(2, 1fr); } }
.product { border: 1px solid #EAE2D9; border-radius: 12px; overflow: hidden; background: #fff; }
.product .swatch { height: 148px; }
.product .meta { padding: 14px 15px 16px; }
.product .meta .nm { font-weight: 600; font-size: 14.5px; }
.product .meta .pr { color: #6B7684; font-size: 13.5px; margin-top: 2px; }

/* ---------- CTA ---------- */
.cta { background: var(--brand); color: #fff; }
.cta-inner { padding-top: 46px; padding-bottom: 46px; display: flex; gap: 30px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta h2 { margin: 0 0 8px; font-size: 26px; letter-spacing: -.018em; }
.cta p { margin: 0; max-width: 620px; color: rgba(255,255,255,.86); font-size: 15px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta .btn-solid { background: #fff; color: var(--brand); }
.cta .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid #E7EAEF; background: #fff; }
.foot-inner { padding-top: 34px; padding-bottom: 44px; display: flex; gap: 30px; justify-content: space-between; flex-wrap: wrap; }
.foot-name { font-weight: 700; }
.foot-note { color: #6B7684; font-size: 13px; max-width: 460px; margin: 6px 0 0; }
.foot-links { display: flex; flex-direction: column; gap: 8px; }
.foot-links a { color: #55606E; text-decoration: none; font-size: 14px; min-height: 24px; }
.foot-links a:hover { color: var(--brand); }

/* ---------- how-it-was-built ---------- */
.how-hero { background: var(--wash); border-bottom: 1px solid #E7EAEF; }
.how-hero-inner { padding-top: 54px; padding-bottom: 50px; max-width: 760px; }
.how-hero h1 { font-size: 36px; letter-spacing: -.022em; margin: 0 0 12px; line-height: 1.18; }
.how-hero p { font-size: 17.5px; color: #4E5A67; margin: 0; }

.steps { counter-reset: step; padding: 0; margin: 0; list-style: none; }
.step { position: relative; padding: 0 0 34px 66px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 17px;
}
.step::after {
  content: ""; position: absolute; left: 21px; top: 50px; bottom: 4px; width: 2px; background: #E7EAEF;
}
.step:last-child::after { display: none; }
.step h3 { margin: 8px 0 6px; font-size: 19px; letter-spacing: -.012em; }
.step > p { margin: 0 0 14px; color: #4E5A67; max-width: 640px; }
.step .aside { font-size: 13.5px; color: #6B7684; border-left: 3px solid #E7EAEF; padding-left: 14px; margin: 14px 0 0; max-width: 640px; }

pre.code {
  background: #10161F; color: #DCE3EC; border-radius: 12px; padding: 18px 20px;
  overflow-x: auto; font-size: 13px; line-height: 1.62; margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
pre.code .c { color: #7C8CA0; }
.codehead {
  background: #1B2430; color: #A9B6C6; font-size: 12px; letter-spacing: .04em;
  padding: 9px 20px; border-radius: 12px 12px 0 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.codehead + pre.code { border-radius: 0 0 12px 12px; }

.faq { border-top: 1px solid #E7EAEF; }
.faq details {
  border-bottom: 1px solid #EDF0F4; padding: 4px 0;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 34px 16px 0; position: relative;
  font-weight: 600; font-size: 16px; min-height: 44px; display: flex; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid #98A2AF; border-bottom: 2px solid #98A2AF;
  transform: translateY(-70%) rotate(45deg);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 0 18px; color: #4E5A67; max-width: 720px; }
.faq .answer p { margin: 0 0 12px; }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- contact ---------- */
.form { max-width: 620px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 46px; padding: 11px 13px; font-size: 15px;
  border: 1px solid #D8DEE6; border-radius: 10px; background: #fff; color: var(--ink);
  font-family: inherit;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.note { padding: 14px 16px; border-radius: 10px; font-size: 14.5px; margin-bottom: 22px; }
.note-ok { background: #EAF6EE; border: 1px solid #BFE0CB; color: #1C5333; }
.note-bad { background: #FDECEC; border: 1px solid #F3C7C7; color: #8A2020; }

/* ---------- hub ---------- */
.hub { padding: 70px 0 40px; }
.hub h1 { font-size: 38px; letter-spacing: -.022em; margin: 0 0 12px; }
.hub p.lede { font-size: 18px; color: #4E5A67; max-width: 680px; margin: 0 0 34px; }
.hubcard {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid #E7EAEF; border-radius: 16px; overflow: hidden; background: #fff;
}
.hubcard .band { height: 96px; }
.hubcard .body { padding: 20px 22px 24px; }
.hubcard h3 { margin: 0 0 4px; font-size: 18px; letter-spacing: -.012em; }
.hubcard .kind { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8892A0; }
.hubcard p { margin: 8px 0 0; color: #55606E; font-size: 14.5px; }
.hubcard:hover { border-color: #C9D2DC; }

/* =========================================================================
   MOBILE
   Phones are the primary device for the people these sites are built for, so
   this is a layout pass rather than a set of patches. Nothing below relies on
   horizontal scrolling, and no control drops under 44px of tappable height.
   ========================================================================= */

/* Long labels shorten rather than overflow. */
.lbl-short { display: none; }

@media (max-width: 720px) {
  .lbl-full  { display: none; }
  .lbl-short { display: inline; }

  /* Buttons wrap instead of forcing the page wider than the screen. */
  .btn {
    white-space: normal;
    text-align: center;
    line-height: 1.35;
    height: auto;
    padding: 11px 14px;
  }
  .btn-lg { padding: 14px 18px; font-size: 15px; }

  /* Masthead becomes two rows: identity, then actions side by side. */
  .masthead-inner { min-height: 0; padding-top: 12px; padding-bottom: 14px; gap: 12px; }
  .wordmark { width: 100%; margin-right: 0; }
  .masthead-actions { width: 100%; gap: 8px; }
  .masthead-actions .btn { flex: 1 1 0; min-width: 0; font-size: 13.5px; }

  .site-health .masthead-inner { flex-direction: row; flex-wrap: wrap; align-items: center; padding-top: 12px; padding-bottom: 14px; }
  .site-health .wordmark { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }

  .demoflag { font-size: 12px; padding: 8px 20px; gap: 8px; }

  .hero-inner { padding-top: 40px; padding-bottom: 44px; }
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 16.5px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }

  .section { padding: 40px 0; }
  .section h2 { font-size: 23px; }
  .how-hero-inner { padding-top: 40px; padding-bottom: 38px; }
  .how-hero h1 { font-size: 27px; }
  .how-hero p { font-size: 16px; }
  .hub { padding: 46px 0 30px; }
  .hub h1 { font-size: 28px; }
  .hub p.lede { font-size: 16.5px; }

  .card { padding: 18px; }

  /* Sign-in card: the LinxyPass widget sizes itself, so give it the room. */
  .signin { padding: 28px 0 44px; min-height: 0; }
  .signin-card { padding: 24px 18px 22px; border-radius: 16px; }
  .signin-card h1 { font-size: 21px; }
  .lp-slot { min-height: 200px; }
  .signin-steps { margin-left: 0; padding-left: 18px; }

  /* Numbered steps: the marker sits above the heading instead of beside it,
     which frees the full width for the code blocks. */
  .step { padding: 0 0 30px 0; }
  .step::before { position: static; width: 34px; height: 34px; font-size: 15px; margin-bottom: 10px; }
  .step::after { display: none; }
  .step h3 { margin-top: 0; font-size: 17.5px; }

  /* Code goes edge to edge so more of each line is visible. */
  .codehead, pre.code { border-radius: 0; margin-left: -20px; margin-right: -20px; }
  pre.code { font-size: 12px; padding: 14px 18px; }

  /* Rows stack, so a long label never squeezes its value off the screen. */
  .rows li { flex-direction: column; align-items: flex-start; gap: 3px; padding: 13px 16px; }
  .rows .v { text-align: left; white-space: normal; }
  .panel-head { padding: 14px 16px; }

  .appbar-inner { padding-top: 18px; padding-bottom: 18px; gap: 12px; }
  .appbar h1 { font-size: 19px; }
  .appbar-inner .btn { width: 100%; }

  .cta-inner { padding-top: 34px; padding-bottom: 34px; gap: 20px; }
  .cta h2 { font-size: 22px; }
  .cta-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .cta-actions .btn { width: 100%; }

  .foot-inner { padding-top: 28px; padding-bottom: 34px; gap: 22px; }

  .faq summary { font-size: 15.5px; padding-right: 30px; }

  .form { max-width: none; }

  .hubcard .band { height: 74px; }
}

@media (max-width: 520px) {
  .products { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product .swatch { height: 112px; }
  .product .meta { padding: 11px 12px 13px; }
  .product .meta .nm { font-size: 13.5px; }
  .big { font-size: 26px; }
}

@media (max-width: 400px) {
  .hero h1 { font-size: 27px; }
  .wordmark-text { font-size: 16px; }
  .masthead-actions .btn { font-size: 13px; padding: 10px 10px; }
}

/* Device-conditional copy on the sign-in page. The LinxyPass widget decides
   scan-vs-tap from the user agent, so the surrounding instructions key off the
   same signal rather than off viewport width, which would disagree with it in a
   narrow desktop window. */
.only-mobile { display: none; }
body.is-mobile .only-mobile  { display: block; }
body.is-mobile .only-desktop { display: none; }