/* niftyMRP landing page.
   Same family as the app (static/css/app.css): Archivo for words, Plex Mono
   for the things a shop labels (part numbers, the wordmark, the price tag),
   viridian for action, copper only for the cursor. The "floor" is the app's
   sidebar green-black, used for the bands that sit under the screenshots.
   The one loud element is the pricing card, drawn as a printed part label. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/Archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("fonts/PlexMono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("fonts/PlexMono-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #eef1ec;
  --paper-deep: #e3e9e3;
  --ink: #12201a;
  --ink-soft: #46544c;
  --line: #d3dbd4;
  --accent: #177355;
  --accent-deep: #0f5c43;
  --accent-ink: #ffffff;
  --copper: #af6234;
  --floor: #15201b;
  --floor-ink: #dfe7e2;
  --floor-soft: #9fb0a6;
  --floor-line: #26352d;
  --label: #fbfcfa;
  --label-ink: #15201b;
  --shadow-shot: 0 1px 2px rgba(16, 32, 25, .08), 0 24px 60px -24px rgba(16, 48, 34, .38);

  --sans: "Archivo", -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Plex Mono", ui-monospace, "Cascadia Mono", monospace;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(80px, 11vw, 150px);
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #0f1512;
    --paper-deep: #141c18;
    --ink: #e6ece8;
    --ink-soft: #a3b0a8;
    --line: #26302a;
    --accent: #3fae87;
    --accent-deep: #55c29b;
    --accent-ink: #0b1510;
    --copper: #d08d5c;
    --floor: #18221d;
    --floor-ink: #e6ece8;
    --floor-soft: #a3b0a8;
    --floor-line: #2b3a32;
    --label: #f1f4f0;
    --shadow-shot: 0 1px 2px rgba(0, 0, 0, .4), 0 30px 70px -28px rgba(0, 0, 0, .8);
  }
  .only-light { display: none !important; }
}
@media (prefers-color-scheme: light) {
  .only-dark { display: none !important; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
a { color: var(--accent); text-underline-offset: .18em; }
b { font-weight: 650; }
h1, h2, h3 { color: var(--ink); text-wrap: balance; margin: 0; }
h2 {
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3.25rem);
  font-weight: 760;
  line-height: 1.02;
  letter-spacing: -.03em;
  margin-bottom: .55em;
}
h3 { font-size: 1.1875rem; font-weight: 680; letter-spacing: -.01em; margin-bottom: .4em; }
p { margin: 0 0 1em; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: calc(1180px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-wide { width: 100%; max-width: calc(1320px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.lede { font-size: clamp(1.125rem, 1rem + .45vw, 1.3125rem); line-height: 1.5; color: var(--ink-soft); max-width: 38em; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--paper); padding: 0 16px; min-height: 44px; display: inline-flex; align-items: center; }

/* ---- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  border-radius: 10px; border: 1.5px solid var(--accent);
  background: var(--accent); color: var(--accent-ink);
  font: 600 1rem/1 var(--sans); letter-spacing: .005em; text-decoration: none;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn-quiet { background: transparent; color: var(--ink); border-color: color-mix(in srgb, var(--ink) 30%, transparent); }
.btn-quiet:hover { background: transparent; border-color: var(--ink); }
.btn-small { min-height: 44px; padding: 0 18px; font-size: .9375rem; }
.btn-big { min-height: 60px; padding: 0 36px; font-size: 1.1875rem; border-radius: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 0; }

/* ---- Header ------------------------------------------------------------- */

.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.top.scrolled { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-height: 44px; }
.brand img { border-radius: 7px; }
.wordmark { font: 600 1.125rem/1 var(--mono); letter-spacing: .02em; }
.cursor { color: var(--copper); }
.top-nav { display: flex; gap: 4px; margin-left: auto; }
.top-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--ink-soft); text-decoration: none; font-weight: 500; border-radius: 8px;
}
.top-nav a:hover { color: var(--ink); background: var(--paper-deep); }
@media (max-width: 719px) {
  .top-nav { display: none; }
  .top .btn { margin-left: auto; }
}

/* ---- Hero --------------------------------------------------------------- */

.hero { padding-top: clamp(48px, 8vw, 104px); }
.hero h1 {
  font-size: clamp(2.6rem, 1rem + 5.6vw, 5.6rem);
  font-weight: 800;
  line-height: .97;
  letter-spacing: -.04em;
  max-width: 13.5ch;
  margin-bottom: .38em;
}
.hero .lede { max-width: 33em; }
/* Wide screens: the headline holds the left, the pitch sits at its foot on the right. */
@media (min-width: 1100px) {
  .hero-copy {
    display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: clamp(48px, 5vw, 88px); align-items: end;
  }
  .hero h1 { grid-row: 1 / span 3; margin-bottom: 0; max-width: 12.5ch; }
  .hero .lede, .hero .actions, .hero-terms { grid-column: 2; }
  .hero .actions { margin-top: 24px; }
  .hero-terms { margin-bottom: .35em; }
}
.hero-terms { margin-top: 18px; color: var(--ink-soft); font-size: .9375rem; }

/* The screenshots straddle the paper and the floor band below them. */
.hero-stage {
  margin-top: clamp(48px, 7vw, 88px);
  background: linear-gradient(to bottom, transparent 0 46%, var(--floor) 46%);
  padding-bottom: clamp(28px, 4vw, 44px);
  overflow-x: clip;   /* the phone slides in from the right; no sideways scroll on phones meanwhile */
}
.hero-shots { position: relative; padding-bottom: 0; }
.hero-shots .browser { width: 88%; }
.hero-shots .phone {
  position: absolute; right: var(--gutter); bottom: -6%;
  width: min(23%, 280px);
}
.shot-note { color: var(--floor-soft); font-size: .875rem; margin: clamp(40px, 6vw, 64px) auto 0; }

/* A browser window: a thin bar with the customer's own address. */
.browser {
  border-radius: 12px; overflow: hidden;
  background: var(--paper-deep);
  border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
  box-shadow: var(--shadow-shot);
}
.browser-bar {
  display: flex; align-items: center; justify-content: center;
  height: 34px; padding: 0 12px;
  background: color-mix(in srgb, var(--paper-deep) 70%, var(--ink) 4%);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
}
.browser-url {
  font: 400 .75rem/1 var(--mono); color: var(--ink-soft);
  padding: 6px 14px; border-radius: 6px; background: var(--paper);
  min-width: 40%; text-align: center;
}
@media (max-width: 599px) {
  .browser-bar { height: 24px; }
  .browser-url { font-size: .625rem; padding: 3px 10px; }
}

/* A phone: a dark bezel with a rounded screen. */
.phone {
  border-radius: clamp(22px, 3.2vw, 40px);
  padding: clamp(5px, .8vw, 10px);
  background: #0c1210;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset, var(--shadow-shot), 0 40px 80px -30px rgba(0, 0, 0, .55);
}
.phone img, .phone video { border-radius: clamp(17px, 2.5vw, 31px); width: 100%; }

/* Hero entrance: the one orchestrated motion on the page. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-copy > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .js .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .js .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .js .hero-copy > :nth-child(4) { animation-delay: .22s; }
  .js .hero-shots .browser { animation: rise 1s .25s cubic-bezier(.2, .7, .2, 1) both; }
  .js .hero-shots .phone { animation: slide 1s .55s cubic-bezier(.2, .7, .2, 1) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes slide { from { opacity: 0; transform: translate(36px, 18px); } }

/* ---- Floor bands -------------------------------------------------------- */

.floor {
  background: var(--floor); color: var(--floor-soft);
  padding: clamp(40px, 6vw, 72px) 0 var(--section);
}
.floor h2, .floor b { color: var(--floor-ink); }
.floor.team { padding-top: var(--section); border-top: 1px solid var(--floor-line); }
.floor .browser { border-color: rgba(255, 255, 255, .12); }
.floor figcaption { color: var(--floor-soft); }
.floor .ticks li::before { background: var(--accent); }
@media (prefers-color-scheme: light) {
  .floor .browser { background: var(--paper-deep); }
  .floor .ticks li::before { background: #3fae87; }
}

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.split-copy { max-width: 34em; }
.split-media { margin: 0; }
figcaption { margin-top: 16px; font-size: .9375rem; color: var(--ink-soft); max-width: 46em; }
figcaption b { font-weight: 600; }

.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.ticks li { position: relative; padding: 7px 0 7px 30px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 15px;
  width: 14px; height: 8px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 8'%3E%3Cpath d='M1 4l3 3 9-6' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 8'%3E%3Cpath d='M1 4l3 3 9-6' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ---- Feature rows ------------------------------------------------------- */

.features { padding: var(--section) 0 0; }
.feature {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px); align-items: center;
  margin-bottom: var(--section);
}
.feature.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.feature.flip .feature-copy { order: 2; }
.feature-copy p { color: var(--ink-soft); }
.framed {
  border-radius: 12px; overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  box-shadow: var(--shadow-shot);
  background: var(--paper-deep);
}
.phones { display: flex; gap: clamp(16px, 3vw, 40px); justify-content: center; align-items: flex-start; }
.phones .phone { width: min(46%, 270px); }
.phones .phone + .phone { margin-top: clamp(32px, 6vw, 72px); }

/* ---- Grow / care -------------------------------------------------------- */

.grow { padding: var(--section) 0; }
.grow .split { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }

.care { padding: 0 0 var(--section); }
.care h2 { max-width: 16ch; }
.care-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px); margin-top: 24px;
}
.care-grid > div { border-top: 2px solid var(--ink); padding-top: 20px; }
.care-grid p { color: var(--ink-soft); margin: 0; }

/* ---- Pricing: the plan as a printed part label -------------------------- */

.pricing { background: var(--paper-deep); padding: var(--section) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pricing-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.pricing-copy p { color: var(--ink-soft); }
.pricing-copy b { color: var(--ink); }
.fine { font-size: .9375rem; }

.label {
  margin: 0; justify-self: center; width: min(100%, 500px);
  background: var(--label); color: var(--label-ink);
  border-radius: 18px;
  padding: clamp(22px, 3.4vw, 34px);
  font-family: var(--mono);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 2px 3px rgba(20, 40, 30, .12), 0 36px 60px -30px rgba(20, 50, 35, .5);
  transform: rotate(-1.6deg);
  position: relative;
}
/* the die-cut: a thin inset rule like the printed border on a thermal label */
.label::after {
  content: ""; position: absolute; inset: 9px; border-radius: 12px;
  border: 1.5px solid rgba(21, 32, 27, .14); pointer-events: none;
}
.label-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.label .wordmark { font-size: 1rem; color: var(--label-ink); }
.label .cursor { color: #af6234; }
.label-pn { font: 600 clamp(1.5rem, 1rem + 1.6vw, 2rem)/1 var(--mono); letter-spacing: .02em; margin: 18px 0 6px; }
.label-desc { font: 400 .875rem/1.4 var(--sans); color: #55635b; margin: 0; }
.label-qr { width: clamp(72px, 9vw, 96px); flex: none; }
.label-qr svg { width: 100%; height: auto; display: block; }
.label-qr path { fill: var(--label-ink); }
.label-price {
  margin: 22px 0 18px; padding: 16px 0;
  border-top: 2px solid var(--label-ink); border-bottom: 2px solid var(--label-ink);
  font: 400 1rem/1 var(--mono);
}
.label-price .amount { font: 800 clamp(2.75rem, 2rem + 2.6vw, 3.75rem)/1 var(--sans); letter-spacing: -.035em; margin-right: 6px; }
.label-bom { width: 100%; border-collapse: collapse; font-size: .875rem; }
.label-bom caption { text-align: left; font: 600 .75rem/1 var(--mono); letter-spacing: .04em; color: #55635b; padding-bottom: 8px; }
.label-bom th, .label-bom td { padding: 7px 0; text-align: left; font-weight: 400; vertical-align: baseline; }
.label-bom th { position: relative; padding-left: 26px; }
/* BOM tree branches, as the app draws them */
.label-bom th::before { content: "├─"; position: absolute; left: 0; color: #8a978f; }
.label-bom tr:last-child th::before { content: "└─"; }
.label-bom td { text-align: right; font-weight: 600; white-space: nowrap; padding-left: 12px; }
.label-foot { margin: 16px 0 0; padding-top: 12px; border-top: 1px dashed rgba(21, 32, 27, .3); font-size: .8125rem; color: #55635b; }

/* ---- FAQ ---------------------------------------------------------------- */

.faq { padding: var(--section) 0; }
.faq-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  min-height: 64px; padding: 14px 0;
  font-size: 1.125rem; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 14px no-repeat;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-soft); max-width: 40em; padding-bottom: 8px; }

/* ---- Contact / footer --------------------------------------------------- */

.contact {
  background: var(--floor); color: var(--floor-soft);
  padding: var(--section) 0;
}
.contact h2 { color: var(--floor-ink); font-size: clamp(2.4rem, 1.2rem + 4vw, 4.5rem); letter-spacing: -.04em; }
.contact .lede { color: var(--floor-soft); margin-bottom: 36px; }
.contact .btn { background: #3fae87; border-color: #3fae87; color: #0b1510; }
.contact .btn:hover { background: #55c29b; border-color: #55c29b; }
.mail-shown {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  margin-top: 18px; font: 400 .9375rem/1.4 var(--mono); color: var(--floor-soft); overflow-wrap: anywhere;
}
.mail-addr { color: var(--floor-ink); }
.copy {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border-radius: 10px; cursor: pointer;
  border: 1.5px solid color-mix(in srgb, var(--floor-ink) 40%, transparent); background: transparent; color: var(--floor-ink);
  font: 600 .875rem/1 var(--sans);
  transition: border-color .15s, color .15s;
}
.copy:hover { border-color: var(--floor-soft); }
.copy:focus-visible { outline: 2px solid #3fae87; outline-offset: 2px; }
.copy svg { fill: none; stroke: currentColor; stroke-width: 1.4; }
.copy.copied { border-color: #3fae87; color: #55c29b; }
.vis-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.foot { background: var(--floor); color: var(--floor-soft); border-top: 1px solid var(--floor-line); padding: 36px 0 calc(36px + env(safe-area-inset-bottom)); font-size: .9375rem; }
.foot-in { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: baseline; }
.foot .wordmark { color: var(--floor-ink); font-size: 1rem; }
.foot p { margin: 0; }
.foot-small { font-size: .8125rem; margin-left: auto !important; }

.lost { padding: var(--section) var(--gutter); }
.credits { padding-left: 1.2em; max-width: 70ch; }
.credits li { margin: .5em 0; }

/* ---- Responsive --------------------------------------------------------- */

@media (max-width: 1023px) {
  .care-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .split, .grow .split, .feature, .feature.flip, .pricing-in, .faq-in { grid-template-columns: minmax(0, 1fr); }
  .feature.flip .feature-copy { order: 0; }
  .feature-copy, .split-copy { max-width: 40em; }
  .label { transform: rotate(-1deg); }
  .foot-small { margin-left: 0 !important; }
}
@media (max-width: 599px) {
  .hero-shots .browser { width: 100%; }
  .hero-shots .phone { right: calc(var(--gutter) - 6px); bottom: -14%; width: 34%; }
  .care-grid { grid-template-columns: minmax(0, 1fr); }
  .actions .btn { flex: 1 1 auto; }
  .btn-big { width: 100%; }
}
