/* Snagless and Sausage Labs websites: one stylesheet, copied into both by scripts/build-website.js.
   Restyled 24 Nov 2026 (W6) to the mock-ups in sausage-labs/outbox/mock-website: white, Figtree, sage accent.
   Every style lives here: the Content-Security-Policy (firebase.json) allows no inline styles and no scripts.
   Mobile first: everything stacks at 320px wide. */
@font-face { font-family: Figtree; src: url(/fonts/Figtree_400Regular.4e2e9876.ttf) format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Figtree; src: url(/fonts/Figtree_600SemiBold.1b76aae5.ttf) format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: Figtree; src: url(/fonts/Figtree_700Bold.183bf1a8.ttf) format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: Figtree; src: url(/fonts/Figtree_800ExtraBold.da514764.ttf) format('truetype'); font-weight: 800; font-display: swap; }
@font-face { font-family: Figtree; src: url(/fonts/Figtree_900Black.5adb3f3f.ttf) format('truetype'); font-weight: 900; font-display: swap; }

:root {
  color-scheme: light;
  --ink: #12261E;
  --muted: #476055;
  --accent: #14694A;
  --accent-dark: #0E4F37;
  --panel: #F6FAF7;
  --soft: #EEF5F0;
  --line: #E3ECE6;
  --yellow: #FFD66B;
  --low: #FFE2A3;
  --soon: #FFF3CC;
  --soon-ink: #5C4300;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: #FFFFFF;
  color: var(--ink);
  font-family: Figtree, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
  /* the footer sits at the bottom of the window on short pages: header, main (grows), footer */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
body > header, body > main, body > footer { width: 100%; }
body > main { flex: 1 0 auto; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
svg { overflow: visible; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: #FFFFFF; padding: 8px 12px; border-radius: 8px; z-index: 2; }

/* Header */
.top { padding-top: 20px; padding-bottom: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.top nav { display: flex; flex-wrap: wrap; gap: 4px 28px; font-size: 15px; font-weight: 600; }
.top nav a { color: var(--muted); text-decoration: none; padding: 6px 0; }
.top nav a:hover, .top nav a[aria-current='page'] { color: var(--accent); }

/* Type and buttons */
.display { margin: 0; font-size: clamp(40px, 9vw, 64px); line-height: 1.04; font-weight: 900; letter-spacing: -0.03em; }
.display.xl { font-size: clamp(40px, 10vw, 72px); line-height: 1.02; max-width: 820px; }
.eyebrow { margin: 0; font-size: 15px; font-weight: 700; color: var(--accent); letter-spacing: 0.02em; }
.lead { margin: 0; font-size: 20px; line-height: 1.55; color: var(--muted); max-width: 520px; }
.fine { margin: 0; font-size: 14px; color: var(--muted); }
.big { margin: 0; font-size: clamp(32px, 6.5vw, 44px); line-height: 1.1; font-weight: 900; letter-spacing: -0.02em; max-width: 680px; }
.mid { margin: 0; font-size: clamp(30px, 6vw, 40px); font-weight: 900; letter-spacing: -0.02em; }
.btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 28px; border-radius: 999px; background: var(--accent); color: #FFFFFF; text-decoration: none; font-size: 16px; font-weight: 800; }
.btn:hover { background: var(--accent-dark); color: #FFFFFF; }
.btn.small { min-height: 48px; padding: 0 24px; font-size: 15px; align-self: flex-start; }
.icon { stroke: var(--accent); }
.icon.muted { stroke: #7A9488; width: 30px; height: 30px; }

/* Snagless hero */
.hero { padding-top: 40px; padding-bottom: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.pills { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.pill { display: inline-flex; flex-direction: column; justify-content: center; min-height: 56px; padding: 0 24px; border-radius: 999px; background: var(--ink); color: #FFFFFF; }
.pill small { font-size: 12px; font-weight: 600; opacity: 0.75; }
.pill b { font-size: 17px; font-weight: 800; }
.pill.light { background: var(--soft); color: var(--ink); }
.pill.light small { color: var(--muted); opacity: 1; }
.hero-art { flex: 1 1 380px; min-width: 0; display: flex; justify-content: center; padding-top: 80px; }
/* His face peeks over the phone's top edge, centred, a third of the phone wide at most; the drawing's edge line
   (y 160 of 30–176) sits on the phone's top, so only the paws reach the bezel and nothing inside the phone is covered. */
.phone-wrap { position: relative; width: 300px; max-width: 100%; }
.peek { position: absolute; top: 0; left: 50%; width: 32%; height: auto; transform: translate(-50%, -87.67%); z-index: 1; }

/* The phone mock-up of the Week card */
.phone { width: 100%; border-radius: 44px; background: var(--ink); padding: 12px; box-shadow: 0 30px 60px rgba(18, 38, 30, 0.18), 0 8px 18px rgba(18, 38, 30, 0.1); }
.screen { border-radius: 34px; background: var(--soft); padding: 18px 14px 22px; display: flex; flex-direction: column; gap: 12px; }
.screen-top { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 0; font-size: 15px; font-weight: 800; }
.screen-top i { width: 28px; height: 28px; border-radius: 999px; background: #FFFFFF; }
.week { border-radius: 24px; background: var(--accent); color: #FFFFFF; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.week .t { font-size: 13px; font-weight: 800; }
.week .d { font-size: 11px; opacity: 0.8; }
.week .big-num, .week .big { font-size: 38px; font-weight: 900; letter-spacing: -0.02em; line-height: 1.1; max-width: none; }
.week .s { font-size: 11px; opacity: 0.85; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 6px; }
.tiles span { border-radius: 14px; background: rgba(0, 0, 0, 0.2); padding: 8px 10px; display: flex; flex-direction: column; font-size: 10px; }
.tiles b { font-size: 14px; font-weight: 800; }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; font-size: 11px; font-weight: 800; }
.days span { border-radius: 999px; background: #FFFFFF; padding: 6px 0; }
.days .today { background: var(--yellow); }
.days .low { background: var(--low); }
.rows { border-radius: 20px; background: #FFFFFF; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; font-size: 12px; }
.rows .h { font-weight: 800; color: var(--muted); }
.rows div { display: flex; justify-content: space-between; gap: 8px; }
.rows div span { font-weight: 700; }
.rows div b { font-weight: 800; }

/* The long-reach divider */
.divider { margin-top: 24px; }
/* Fixed height at every width: the head, legs, tail and sausage keep their size, only the body (the bar) stretches.
   The drawings use the mock-up's 76 units for 64px; the bar and the ground line are placed in the same units. */
.long-dog { --u: calc(64px / 76); display: flex; height: 64px; background: linear-gradient(#E3ECE6, #E3ECE6) 0 calc(var(--u) * 69) / 100% calc(var(--u) * 2) no-repeat; }
.long-dog svg { display: block; flex: none; height: 64px; width: auto; overflow: hidden; }
.ld-body { flex: 1 1 auto; min-width: 24px; margin: calc(var(--u) * 28) -1px 0; height: calc(var(--u) * 24); background: #1A1414; }

/* Sections */
.section { padding-top: 72px; padding-bottom: 72px; }
.features { display: flex; flex-direction: column; gap: 48px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 24px; }
.card { border-radius: 28px; background: var(--panel); padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.card h3 { margin: 0; font-size: 22px; font-weight: 800; }
.card p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--muted); }
.band { background: var(--panel); padding-top: 88px; padding-bottom: 88px; }
.band-in { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.band-in .big { flex: 1 1 320px; }
.checks { flex: 2 1 480px; min-width: 0; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 28px; font-size: 17px; line-height: 1.5; }
.checks strong { display: block; font-weight: 800; margin-bottom: 4px; }
.checks span { color: var(--muted); }
.why { padding-top: 88px; display: flex; flex-direction: column; gap: 32px; }
.defs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.def { border-radius: 28px; border: 1.5px solid var(--line); padding: 32px; display: flex; flex-direction: column; gap: 10px; }
.def .eyebrow { font-size: 14px; font-weight: 800; }
.def h3 { margin: 0; font-size: 24px; font-weight: 800; }
.def p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--muted); }
.def .eyebrow { color: var(--accent); }
.cta { padding-top: 88px; padding-bottom: 88px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-text { display: flex; flex-direction: column; gap: 10px; }
.cta h2 { margin: 0; font-size: 32px; font-weight: 900; letter-spacing: -0.02em; }
.cta p { margin: 0; font-size: 17px; color: var(--muted); }

/* Footer */
.foot { border-top: 1px solid var(--line); }
.foot-in { padding-top: 32px; padding-bottom: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; font-size: 14px; color: var(--muted); }
.who { display: flex; flex-direction: column; gap: 6px; }
.who b { font-weight: 800; color: var(--ink); }
.foot nav { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-start; font-weight: 600; }
.foot nav a { color: var(--muted); }
.copy { padding-top: 32px; padding-bottom: 40px; font-size: 14px; color: var(--muted); }
/* Sausage Labs 404: the short footer gets the same divider line as everywhere else */
main.lost + .copy { border-top: 1px solid var(--line); }

/* Sausage Labs */
.center-hero { padding-top: 72px; padding-bottom: 56px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.center-hero .lead { font-size: 21px; max-width: 620px; }
.figure { margin: 40px 0 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; }
.hero-dog { width: 494px; max-width: 100%; height: auto; }
.figure figcaption { font-size: 15px; color: var(--muted); }
.apps-sec { padding-top: 56px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 32px; }
.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; }
.app { border-radius: 28px; background: var(--panel); padding: 36px; display: flex; flex-direction: column; gap: 16px; }
.app img { width: 72px; height: 72px; border-radius: 18px; }
.app h3 { margin: 0; font-size: 28px; font-weight: 900; letter-spacing: -0.01em; }
.app p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--muted); }
.app.later { background: #FAFAFA; border: 1.5px dashed #D5DED8; }
.app-blank { width: 72px; height: 72px; border-radius: 18px; background: #EEF1EF; display: flex; align-items: center; justify-content: center; }
.title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.soon { border-radius: 999px; background: var(--soon); color: var(--soon-ink); padding: 4px 12px; font-size: 13px; font-weight: 800; }
.contact { padding-top: 80px; padding-bottom: 80px; }
.info { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 40px; }
.info div { display: flex; flex-direction: column; gap: 10px; }
.info h2 { margin: 0; font-size: 28px; font-weight: 900; }
.info p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--muted); }

/* 404 and Coming soon */
.lost { max-width: 720px; margin: 0 auto; padding: 56px 24px 96px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.lost h1 { margin: 0; font-size: clamp(34px, 8vw, 48px); line-height: 1.08; font-weight: 900; letter-spacing: -0.02em; }
.lost p { margin: 0; font-size: 19px; line-height: 1.55; color: var(--muted); }
.lost .btn { margin-top: 8px; }
.lost-art { width: 456px; max-width: 100%; height: auto; }
.face { width: 220px; max-width: 70%; height: auto; }
.soon-page h1 { font-size: clamp(40px, 10vw, 64px); letter-spacing: -0.03em; }

/* Inner pages: support, privacy, terms, delete my account */
.page { max-width: 760px; padding-top: 40px; padding-bottom: 88px; }
.page h1 { margin: 0 0 20px; font-size: clamp(36px, 8vw, 56px); line-height: 1.06; font-weight: 900; letter-spacing: -0.03em; }
.page h2 { margin: 48px 0 10px; font-size: clamp(24px, 5vw, 30px); line-height: 1.15; font-weight: 900; letter-spacing: -0.02em; }
.page h3 { margin: 28px 0 8px; font-size: 19px; font-weight: 800; }
.page p, .page li { line-height: 1.6; }
.page ul, .page ol { padding-left: 22px; }
.page li { margin: 6px 0; }
.page .lead { font-size: 20px; max-width: none; margin-bottom: 16px; }
.page code { font-size: 0.9em; background: var(--soft); padding: 1px 6px; border-radius: 6px; }
.page a { font-weight: 700; }
.draft { background: var(--soon); color: var(--soon-ink); padding: 14px 18px; border-radius: 18px; font-weight: 600; }
.draft a { color: var(--soon-ink); }
details { background: var(--panel); border-radius: 20px; padding: 4px 20px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 800; padding: 14px 0; min-height: 48px; }
details p { margin-top: 0; color: var(--muted); }
.steps li { margin: 8px 0; }

/* Little John moves (CSS only), all off for people who ask for less motion */
.lj-nose { animation: sniff 2.4s ease-in-out infinite; }
.lj-tail { transform-box: fill-box; transform-origin: 0% 100%; animation: wag 1.6s ease-in-out infinite; }
.lj-sniff { transform-box: fill-box; animation: sniff-ground 2.2s ease-in-out infinite; }
.lj-trail { animation: drift 3s ease-in-out infinite; }
.chick { transform-box: fill-box; transform-origin: 50% 100%; transition: transform 0.12s ease; }
.chick:hover, .chick:active { transform: scale(1.06, 0.82); }
@keyframes sniff { 0%, 70%, 100% { transform: translateY(0); } 78% { transform: translateY(-2px); } 86% { transform: translateY(0); } 92% { transform: translateY(-2px); } }
@keyframes wag { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-16deg); } 80% { transform: rotate(8deg); } 90% { transform: rotate(-12deg); } }
@keyframes sniff-ground { 0%, 60%, 100% { transform: translate(0, 0); } 70% { transform: translate(-3px, -2px); } 80% { transform: translate(0, 0); } 90% { transform: translate(-3px, -2px); } }
@keyframes drift { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lj-nose, .lj-tail, .lj-sniff, .lj-trail { animation: none; }
  .chick { transition: none; }
  .chick:hover, .chick:active { transform: none; }
}

/* Wider screens: the mock-ups' roomier spacing */
@media (min-width: 760px) {
  .hero { padding-top: 72px; }
  .center-hero { padding-top: 96px; }
  .lost { padding-top: 72px; }
}
/* Small phones: tighter edges */
@media (max-width: 420px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .lost { padding-left: 16px; padding-right: 16px; }
  .card, .def, .app { padding: 24px; }
  .band, .why, .cta { padding-top: 64px; }
  .band, .cta { padding-bottom: 64px; }
  .hero { gap: 40px; }
  .lead, .center-hero .lead { font-size: 18px; }
  .top nav { gap: 4px 18px; }
}
