/* Skanalist website. One stylesheet for every page. Colours match the app (Skanalist scheme). */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url(fonts/BricolageGrotesque.woff2) format('woff2');
  font-weight: 400 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url(fonts/InstrumentSans.woff2) format('woff2');
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --night: #071C44;      /* hero */
  --night-line: #2C4A80;
  --night-soft: #B9C8E4;
  --navy: #0B3A82;       /* headings */
  --blue: #1557B0;       /* links, buttons */
  --cyan: #2EE6F2;
  --lime: #D6F51C;
  --green: #2E8A47;      /* ticked */
  --coral: #E5533D;      /* Needed soon only */
  --coral-soft: #FDECE8;

  --canvas: #F4F7FA;
  --surface: #FFFFFF;
  --wash: #DDEBF8;
  --ink: #14213A;
  --soft: #4A5870;
  --line: #DCE4EE;
  --heading: var(--navy);
  --link: var(--blue);

  --display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --body: 'Instrument Sans', 'Segoe UI', system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 56px);
  --max: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0B1220;
    --surface: #111B2E;
    --wash: #16243D;
    --ink: #E8EEF7;
    --soft: #A7B4C8;
    --line: #22324D;
    --heading: #A9CBFF;
    --link: #64A6FF;
    --coral-soft: #3A1A16;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 18px/1.55 var(--body);
}
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); color: var(--heading); margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--surface); padding: 10px 14px; }

/* ---------- Header ---------- */
.site-head { display: flex; align-items: center; gap: 12px; padding-top: 24px; padding-bottom: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; font: 700 22px var(--display); letter-spacing: -0.01em; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.site-nav { margin-left: auto; display: flex; gap: 28px; }
.site-nav a { color: inherit; text-decoration: none; font-weight: 500; font-size: 16px; padding: 12px 0; }
.site-nav a:hover { text-decoration: underline; }

/* ---------- Buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 22px; border-radius: 14px;
  font: 600 16px var(--body); text-decoration: none; border: 2px solid transparent;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-lime { background: var(--lime); color: var(--night); }
.btn-lime:hover { background: #E4FA5C; }
.btn-ghost { color: #fff; border-color: var(--night-line); cursor: default; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--navy); }

/* ---------- Hero ---------- */
.hero { background: var(--night); color: #fff; overflow: hidden; }
.hero .brand, .hero .site-nav a { color: #fff; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 48px; align-items: center;
  padding-top: 24px; padding-bottom: 88px;
}
.tagline {
  font: 800 clamp(76px, 11vw, 136px)/0.88 var(--display); font-stretch: 76%; letter-spacing: -0.035em; color: #fff;
}
.tagline span { display: block; }
.tagline span:nth-child(2) { color: var(--cyan); }
.tagline span:nth-child(3) { color: var(--lime); }
.lede { margin-top: 36px; max-width: 30em; font-size: 19px; color: var(--night-soft); }
.hero .btns { margin-top: 32px; }

.scanner { position: relative; aspect-ratio: 560 / 600; }
.bars { position: absolute; inset: 0 0 48px 0; width: 100%; height: calc(100% - 48px); }
.digits {
  position: absolute; left: 0; right: 0; bottom: 4px; display: flex; justify-content: space-between;
  font: 500 22px var(--body); letter-spacing: 0.2em; color: #8FA3C8;
}
.scanline {
  position: absolute; left: -4%; right: -4%; top: 46%; height: 4px; border-radius: 2px; background: #fff;
  box-shadow: 0 0 22px 6px rgba(214, 245, 28, 0.55);
  animation: sweep 1.8s cubic-bezier(.45, 0, .25, 1) 0.3s both;
}
@keyframes sweep {
  0% { top: 0; opacity: 0; }
  8% { opacity: 1; }
  60% { top: 88%; }
  100% { top: 46%; }
}
@media (prefers-reduced-motion: reduce) {
  .scanline { animation: none; }
}
.scanner .phone { position: absolute; left: 50%; top: 4%; width: 54%; transform: translateX(-50%); }

/* ---------- Phone (the app's list, drawn in HTML) ---------- */
.phone {
  background: #0E1626; padding: 10px; border-radius: 40px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  color: #14213A; font-size: 14px; line-height: 1.3;
}
.screen { background: #F4F7FA; border-radius: 31px; overflow: hidden; min-height: 470px; position: relative; }
.ph-head { background: #DDEBF8; padding: 34px 16px 12px; }
.ph-title { font: 700 21px var(--display); color: #0B3A82; }
.ph-sub { font-size: 12px; color: #4A5870; margin-top: 2px; }
.ph-sec { font: 600 10.5px var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: #0B3A82; padding: 12px 16px 4px; }
.ph-row { display: flex; align-items: center; gap: 9px; padding: 8px 16px; background: #fff; border-bottom: 1px solid #DCE4EE; font-weight: 500; }
.ck { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #8C98AA; flex: none; }
.th { width: 30px; height: 30px; border-radius: 8px; flex: none; display: grid; place-items: center; font-size: 16px; background: #EEF2F7; }
.qty { margin-left: auto; font-size: 12px; color: #4A5870; }
.ph-toast {
  position: absolute; left: 12px; right: 12px; bottom: 14px; display: flex; gap: 9px; align-items: center;
  background: #14213A; color: #fff; border-radius: 12px; padding: 10px 12px; font-size: 12.5px;
}
.ph-toast .ck { width: 18px; height: 18px; background: #2E8A47; border-color: #2E8A47; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section h2 { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.04; max-width: 18em; }
.section-intro { margin-top: 16px; max-width: 34em; color: var(--soft); font-size: 19px; }

/* Scan it / Share it / Shop it: the three steps of the tagline, in order. */
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.step h3 { font-size: 40px; font-stretch: 80%; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.step:nth-child(1) h3 { color: var(--blue); }
.step:nth-child(2) h3 { color: #0E8F9B; }
.step:nth-child(3) h3 { color: var(--green); }
.step p { margin-top: 14px; color: var(--soft); max-width: 24em; }
.step-bar { height: 6px; border-radius: 3px; margin-bottom: 20px; background: currentColor; }
.step:nth-child(1) .step-bar { color: var(--blue); width: 34%; }
.step:nth-child(2) .step-bar { color: #0E8F9B; width: 67%; }
.step:nth-child(3) .step-bar { color: var(--green); width: 100%; }
@media (prefers-color-scheme: dark) {
  .step:nth-child(1) h3, .step:nth-child(1) .step-bar { color: #64A6FF; }
  .step:nth-child(2) h3, .step:nth-child(2) .step-bar { color: var(--cyan); }
  .step:nth-child(3) h3, .step:nth-child(3) .step-bar { color: #5BC97A; }
}

.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.features { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; }
.feature { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 26px 0; border-top: 1px solid var(--line); }
.feature svg { width: 28px; height: 28px; color: var(--link); margin-top: 3px; }
.feature h3 { font-size: 22px; letter-spacing: -0.01em; }
.feature p { margin-top: 6px; color: var(--soft); }
.urgent-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 99px;
  background: var(--coral); color: #fff; font: 600 13px var(--body); letter-spacing: 0.04em; vertical-align: 3px;
}
.urgent-pill svg { width: 14px; height: 14px; color: #fff; margin: 0; }

.closer { background: var(--night); color: #fff; }
.closer-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; }
.closer h2 { color: #fff; }
.closer p { margin-top: 12px; color: var(--night-soft); }
.strip { width: 100%; height: 18px; margin-bottom: 48px; }

/* ---------- Text pages (help, privacy) ---------- */
.page-head { background: var(--night); color: #fff; }
.page-head .brand, .page-head .site-nav a { color: #fff; }
.page-title { padding-top: 32px; padding-bottom: 56px; }
.page-title h1 { color: #fff; font-size: clamp(44px, 6vw, 72px); font-stretch: 85%; font-weight: 800; line-height: 1; }
.page-title p { margin-top: 14px; color: var(--night-soft); max-width: 34em; }
.prose { max-width: 44em; padding-top: 56px; padding-bottom: 88px; }
.prose h2 { font-size: 28px; margin-top: 48px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 21px; margin-top: 28px; }
.prose p, .prose ul { margin: 12px 0 0; }
.prose li { margin-top: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 16px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-top: 1px solid var(--line); }
.prose th { font-weight: 600; }
.note {
  background: var(--wash); border-left: 4px solid var(--link); padding: 14px 18px; border-radius: 0 10px 10px 0; margin-top: 24px;
}
.topic { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.topic:first-of-type { border-top: 0; }
.topic svg { width: 26px; height: 26px; color: var(--link); margin-top: 4px; }
.topic h3 { margin: 0; font-size: 21px; }
.topic p { margin-top: 6px; color: var(--soft); }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: 15px; color: var(--soft); }
.foot-grid { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }
.foot-grid nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-left: auto; }
.foot-grid a { color: var(--soft); padding: 8px 0; }

/* ---------- Small screens ---------- */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; padding-bottom: 64px; }
  .scanner { max-width: 480px; width: 100%; margin: 0 auto; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .features { grid-template-columns: 1fr; }
  .closer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .site-nav { gap: 18px; }
  .site-nav .hide-sm { display: none; }
  .lede { font-size: 18px; }
  .digits { font-size: 16px; }
  .screen { min-height: 400px; }
  .phone { font-size: 12.5px; border-radius: 30px; padding: 8px; }
  .screen { border-radius: 23px; }
}
