/* Inventory Studio landing page. Colours follow the app's tokens (apps/web/src/styles/tokens.css): Persimmon and
   Deep Forest. */

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
}

:root {
  --brand: #ff5c34;
  --primary: #cb3b21;
  --primary-hover: #a92f1a;
  --on-primary: #ffffff;
  --forest: #183735;
  --forest-deep: #102725;
  --on-forest: #f3f1ea;
  --on-forest-muted: #b9c7c1;
  --bg: #f7f6f2;
  --surface: #ffffff;
  --fg: #192a2b;
  --muted: #596763;
  --border: #e5e7e1;
  --selected: #fff2e9;
  --ring: #ff5c34;
  --shadow: 0 1px 2px rgb(25 42 43 / 6%), 0 12px 32px -12px rgb(25 42 43 / 22%);
  --radius: 14px;
  --font: "Inter Variable", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #ff8464;
    --primary-hover: #ffa085;
    --on-primary: #1b0d08;
    --forest: #0c1618;
    --forest-deep: #081012;
    --bg: #111d20;
    --surface: #1b2a2c;
    --fg: #ecefe9;
    --muted: #a3b0ab;
    --border: #2b3c3e;
    --selected: #3a2a22;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 12px 32px -12px rgb(0 0 0 / 60%);
    color-scheme: dark;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--primary-hover);
}

:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0 0 1em;
}

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

@media (min-width: 720px) {
  .wrap {
    padding: 0 32px;
  }
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--surface);
  color: var(--fg);
  padding: 10px 14px;
  border-radius: 8px;
  z-index: 100;
}

.skip:focus {
  top: 12px;
}

/* Which system's wording and pictures show. site.js sets data-os on <html>; without it the Mac's show. */
.os-windows {
  display: none !important;
}

html[data-os="windows"] .os-windows {
  display: revert !important;
}

html[data-os="windows"] .os-mac {
  display: none !important;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.btn-small {
  padding: 7px 16px;
  font-size: 15px;
}

.btn-large {
  padding: 13px 24px;
  font-size: 17px;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: var(--on-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}

.btn-ghost:hover {
  color: var(--fg);
  border-color: var(--muted);
}

.btn-on-dark {
  background: transparent;
  color: var(--on-forest);
  border-color: rgb(243 241 234 / 35%);
}

.btn-on-dark:hover {
  color: var(--on-forest);
  border-color: var(--on-forest);
}

.btn[aria-disabled="true"] {
  background: var(--border);
  color: var(--muted);
  cursor: default;
}

.btn-icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
}

.btn-icon:empty {
  display: none;
}

.btn-icon svg {
  width: 100%;
  height: 100%;
  fill: currentcolor;
}

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.top-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand:hover {
  color: var(--fg);
}

.top-nav {
  display: none;
  gap: 24px;
  margin-left: auto;
}

.top-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.top-nav a:hover {
  color: var(--fg);
}

.top .btn {
  margin-left: auto;
}

@media (min-width: 860px) {
  .top-nav {
    display: flex;
  }

  .top .btn {
    margin-left: 0;
  }
}

/* Hero */
.hero {
  padding: 48px 0 56px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 48px;
}

.eyebrow {
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(36px, 7vw, 60px);
  font-weight: 750;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
}

.lead {
  font-size: 19px;
  color: var(--muted);
  max-width: 36em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 16px;
}

.hero-note {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.hero-art {
  position: relative;
  padding-right: 18%;
}

.shot {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.shot-phone {
  position: absolute;
  right: 0;
  bottom: -24px;
  width: 26%;
  border-radius: 22px;
  border: 5px solid var(--forest);
}

@media (min-width: 1000px) {
  .hero {
    padding: 72px 0 88px;
  }

  .hero-grid {
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    gap: 56px;
  }

  .hero-art {
    padding-right: 0;
  }

  .shot-phone {
    left: -48px;
    right: auto;
    width: 22%;
    bottom: -40px;
  }
}

/* Section scaffolding */
section {
  padding: 72px 0;
}

.section-title {
  font-size: clamp(28px, 4.5vw, 40px);
  font-weight: 720;
  margin-bottom: 12px;
}

.section-lead {
  color: var(--muted);
  font-size: 18px;
  max-width: 40em;
  margin-bottom: 40px;
}

/* Promises */
.promises {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.promise-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .promise-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .promise-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.promise-grid li {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
}

.promise-grid h3 {
  font-size: 18px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.promise-grid h3::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--brand);
}

.promise-grid p {
  color: var(--muted);
  font-size: 16px;
  margin: 0;
}

/* Features */
.feature {
  display: grid;
  gap: 28px;
  align-items: center;
  margin-top: 56px;
}

.feature h3 {
  font-size: 26px;
  margin-bottom: 12px;
}

.feature p {
  color: var(--muted);
  font-size: 18px;
  margin: 0;
}

.shot-phone-solo {
  width: min(250px, 66%);
  justify-self: center;
  border-radius: 28px;
  border: 6px solid var(--forest);
}

@media (min-width: 900px) {
  .feature {
    grid-template-columns: 2fr 3fr;
    gap: 56px;
    margin-top: 88px;
  }

  .feature-flip {
    grid-template-columns: 3fr 2fr;
  }

  .feature-flip .feature-copy {
    order: 2;
  }
}

/* How it works */
.how {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.flow {
  list-style: none;
  margin: 0 0 48px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.flow li {
  position: relative;
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
}

.flow li:nth-child(2) {
  background: var(--selected);
  border-color: color-mix(in srgb, var(--brand) 40%, var(--border));
}

.flow-step {
  display: block;
  font-weight: 700;
  font-size: 18px;
}

.flow-detail {
  display: block;
  color: var(--muted);
  font-size: 15px;
}

@media (min-width: 860px) {
  .flow {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }

  .flow li + li::before {
    content: "⇄";
    position: absolute;
    left: -32px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--brand);
    font-size: 22px;
    font-weight: 700;
  }
}

.how-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 900px) {
  .how-grid {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }
}

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 24px;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 16px;
}

.steps li::before {
  content: counter(step);
  grid-row: span 2;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--forest);
  color: var(--on-forest);
  font-weight: 700;
}

.steps h3 {
  font-size: 19px;
  margin: 2px 0 4px;
}

.steps p {
  color: var(--muted);
  margin: 0;
}

.shot-app {
  background: transparent;
}

.shot-app picture {
  display: block;
}

.shot-app figcaption {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--muted);
  background: var(--surface);
  border-top: 1px solid var(--border);
}

/* Licence */
.licence {
  background: var(--forest);
  color: var(--on-forest);
}

.licence h2 {
  font-size: clamp(28px, 4.5vw, 40px);
  font-weight: 720;
  margin-bottom: 20px;
  max-width: 16em;
}

.licence p {
  color: var(--on-forest-muted);
  font-size: 18px;
  max-width: 34em;
}

.licence strong {
  color: var(--on-forest);
}

.licence a:not(.btn) {
  color: var(--on-forest);
}

.licence .btn-primary {
  background: var(--brand);
  color: #1b0d08;
}

.licence .btn-primary:hover {
  background: #ff7a58;
  color: #1b0d08;
}

.licence-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 960px) {
  .licence-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

.licence-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 16px;
}

.licence-note {
  font-size: 15px !important;
}

.shot-licence {
  border-color: rgb(255 255 255 / 12%);
}

/* Download */
.notice {
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--selected);
  border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--border));
  max-width: 48em;
  margin-bottom: 28px;
}

.download-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 800px) {
  .download-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.dl-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.dl-card.is-recommended {
  border: 2px solid var(--brand);
  padding: 27px;
}

.dl-card.is-recommended {
  order: -1;
}

.dl-badge {
  align-self: flex-start;
  margin: 0 0 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--selected);
  color: var(--primary);
  font-size: 13px;
  font-weight: 650;
}

.dl-card h3 {
  font-size: 26px;
  margin-bottom: 10px;
}

.dl-req {
  margin: 0 0 22px;
  padding-left: 20px;
  color: var(--muted);
}

.dl-button {
  align-self: flex-start;
  padding: 12px 24px;
  margin-bottom: 20px;
}

.dl-meta {
  margin: 0 0 12px;
  font-size: 14px;
  display: grid;
  gap: 4px;
}

.dl-meta div {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 8px;
}

.dl-meta dt {
  color: var(--muted);
}

.dl-meta dd {
  margin: 0;
  min-width: 0;
}

.dl-meta code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  word-break: break-all;
}

.dl-extra {
  font-size: 15px;
}

.dl-help {
  margin: auto 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
}

.dl-soon {
  margin: 28px 0 0;
  color: var(--muted);
}

/* FAQ */
.faq {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.faq-wrap > * {
  max-width: 820px;
}

.faq .section-title {
  margin-bottom: 28px;
}

details {
  border-bottom: 1px solid var(--border);
}

details:first-of-type {
  border-top: 1px solid var(--border);
}

summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 40px 18px 0;
  font-weight: 600;
  font-size: 18px;
  position: relative;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 400;
  color: var(--primary);
}

details[open] summary::after {
  content: "−";
}

details p {
  color: var(--muted);
  margin: 0 0 20px;
}

/* Footer */
.foot {
  background: var(--forest-deep);
  color: var(--on-forest-muted);
  padding: 40px 0;
  font-size: 14px;
}

.foot-inner {
  display: grid;
  gap: 16px;
}

.brand-foot {
  color: var(--on-forest);
  font-size: 16px;
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.foot a {
  color: var(--on-forest);
}

.foot-legal {
  margin: 0;
  max-width: 60em;
}

@media (min-width: 860px) {
  .foot-inner {
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .foot-nav {
    justify-content: flex-end;
  }

  .foot-legal {
    grid-column: 1 / -1;
  }
}

/* 404 */
.notfound {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
}

.notfound h1 {
  font-size: clamp(32px, 6vw, 48px);
}

.notfound p {
  color: var(--muted);
  margin: 0;
}
