/* Same palette, type and shapes as the app (InventoryColors, InventoryTypography, editorial cards).
   Fonts and images are served from here, so no request goes to another provider. */
@font-face {
  font-family: "Newsreader";
  src: url("fonts/Newsreader.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --background: #F6F2EA;
  --surface: #FCFAF6;
  --panel: #EEE9DE;
  --ink: #172433;
  --secondary: #625F59;
  --hairline: #DDD9D1;
  --accent: #1B76A0;
  --accent-soft: #E3F2F8;
  --rule: #A9D2E6;
  --ok: #576E4A;
  --warning: #8F5E1F;
  --deep: #172433;
  --deep-ink: #EEE8DD;
  --art-filter: none;
  --shadow: 0 30px 60px -20px rgba(23, 36, 51, 0.28), 0 12px 24px -12px rgba(23, 36, 51, 0.18);
  --radius: 20px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --background: #1A1C1F;
    --surface: #242629;
    --panel: #2C2E31;
    --ink: #EEE8DD;
    --secondary: #B8B2A8;
    --hairline: #504D47;
    --accent: #2F8FBF;
    --accent-soft: #29383F;
    --rule: #4E7487;
    --ok: #9CB88A;
    --warning: #E0AE6E;
    --deep: #111315;
    --deep-ink: #EEE8DD;
    /* The app dims its paintings in dark mode, so they never glare. */
    --art-filter: brightness(0.8) saturate(0.9);
    --shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
.art { filter: var(--art-filter); }
a { color: var(--accent); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 680px; }
section { scroll-margin-top: 80px; }

/* Header */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--background) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--hairline) 60%, transparent);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand span { font-family: "Newsreader", Georgia, serif; font-size: 23px; }
.nav a.link { color: var(--secondary); text-decoration: none; font-size: 15px; }
.nav a.link:hover { color: var(--ink); }
.nav .button { margin: 0; padding: 9px 16px; font-size: 15px; border-radius: 12px; }

/* Type */
.rule { width: 58px; height: 4px; background: var(--rule); border-radius: 2px; margin-bottom: 20px; }
h1, h2, h3 { font-family: "Newsreader", Georgia, serif; font-weight: 400; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(48px, 7.4vw, 92px); letter-spacing: -1.5px; }
h2 { font-size: clamp(34px, 4.6vw, 54px); letter-spacing: -0.6px; margin-bottom: 14px; }
h3 { font-size: 25px; margin-bottom: 6px; }
p { margin: 0 0 12px; }
.eyebrow { font-size: 12px; letter-spacing: 2.6px; text-transform: uppercase; color: var(--secondary); margin-bottom: 14px; }
.lead { font-size: clamp(19px, 2vw, 22px); color: var(--secondary); max-width: 26ch; line-height: 1.45; }
.muted { color: var(--secondary); font-size: 15px; }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head p { color: var(--secondary); font-size: 19px; }

.button {
  display: inline-block; padding: 15px 24px; border-radius: 16px;
  background: var(--accent); color: #fff; text-decoration: none; font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--accent) 70%, transparent);
}
.button:hover { transform: translateY(-1px); }
.text-link { color: var(--ink); text-decoration: none; font-weight: 600; }
.text-link::after { content: " →"; color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 26px; }

/* Hero */
.hero { position: relative; padding: 72px 0 96px; }
.hero::before {
  /* The dashboard landscape, faded into the paper. */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 620px; z-index: -1;
  background: url("img/landscape.webp") center 70% / cover no-repeat;
  opacity: 0.16;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 55%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 55%, transparent);
  filter: var(--art-filter);
}
.hero .wrap { display: grid; grid-template-columns: 0.95fr 1.05fr; align-items: center; gap: 56px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; font-size: 14px; color: var(--secondary); }
.facts span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-right: 8px; vertical-align: 1px; }

/* iPad with the overview screen, rebuilt in HTML */
.stage { position: relative; }
.device {
  position: relative; border-radius: 34px; padding: 14px;
  background: linear-gradient(145deg, #2B2E33, #15171A);
  box-shadow: var(--shadow);
  transform: perspective(1600px) rotateY(-9deg) rotateX(3deg);
}
.screen {
  border-radius: 22px; overflow: hidden; background: #F6F2EA; color: #172433;
  padding: 4% 6% 5.5%; font-size: clamp(8.5px, 0.98vw, 12.5px);
}
.tabs { display: flex; justify-content: center; gap: 0.4em; margin-bottom: 4%; }
.tabs span { padding: 0.45em 1em; border-radius: 99px; color: #172433; }
.tabs span.on { background: #E9E4DA; color: #1B76A0; font-weight: 600; }
.screen .date { color: #625F59; font-size: 0.95em; }
.screen .hello { font-family: "Newsreader", Georgia, serif; font-size: 2.7em; line-height: 1; margin: 0.15em 0 0.55em; }
.screen .scan { background: #1B76A0; color: #fff; border-radius: 0.9em; text-align: center; padding: 0.85em; font-weight: 600; }
.screen .scan i, .ico { display: inline-block; width: 1.2em; height: 1.2em; vertical-align: -0.25em; margin-right: 0.4em; background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.screen .row { display: flex; justify-content: space-between; align-items: baseline; margin: 1.1em 0 0.45em; }
.screen .row b { font-family: "Newsreader", Georgia, serif; font-weight: 400; font-size: 1.6em; }
.screen .row small { color: #625F59; }
.mcard { background: #FCFAF6; border: 1px solid #E4DFD5; border-radius: 0.9em; padding: 0.8em 1em; }
.task { display: flex; align-items: center; gap: 0.8em; }
.task .badge { width: 2.2em; height: 2.2em; border-radius: 50%; background: #F3E8D7; color: #8F5E1F; display: grid; place-items: center; }
.task .badge i { margin: 0; }
.task > div:not(.badge) { flex: 1; } .task strong { display: block; font-weight: 600; } .task span { color: #625F59; font-size: 0.9em; }
.task em { font-style: normal; font-size: 1.4em; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); }
.metrics div + div { border-left: 1px solid #E4DFD5; padding-left: 1em; }
.metrics b { font-size: 1.9em; font-weight: 500; }
.metrics b::after { content: ""; display: inline-block; width: 0.32em; height: 0.32em; border-radius: 50%; margin-left: 0.3em; vertical-align: 0.35em; background: var(--c); }
.metrics span { display: block; color: #625F59; font-size: 0.9em; }
.plan { margin-top: 0.9em; padding: 0; overflow: hidden; }
.plan img { height: 3.6em; width: 100%; object-fit: cover; }
.plan div { padding: 0.6em 1em 0.8em; }
.plan strong { font-family: "Newsreader", Georgia, serif; font-weight: 400; font-size: 1.25em; display: block; }
.plan span { color: #625F59; font-size: 0.9em; }
.stage .bottle {
  position: absolute; width: 22%; left: -11%; bottom: -16%;
  filter: drop-shadow(0 26px 26px rgba(23, 36, 51, 0.3));
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-10px) rotate(-1.5deg); } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; }
.step img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.step .body { padding: 20px 22px 24px; }
.step .body::before {
  counter-increment: step; content: counter(step);
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 14px; margin-bottom: 12px;
}
.step p { color: var(--secondary); margin: 0; }

/* Planning split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.picture { position: relative; border-radius: 26px; overflow: hidden; aspect-ratio: 5 / 4; box-shadow: var(--shadow); }
.picture > img { width: 100%; height: 100%; object-fit: cover; }
.order {
  position: absolute; left: 7%; right: 7%; bottom: 7%;
  background: color-mix(in srgb, #FCFAF6 94%, transparent); color: #172433;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-radius: 18px; padding: 16px 18px; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.45);
}
.order .tag { display: inline-flex; align-items: center; gap: 6px; color: #8F5E1F; font-size: 13px; font-weight: 600; }
.order .tag i { width: 15px; height: 15px; margin: 0; }
.order strong { display: block; font-family: "Newsreader", Georgia, serif; font-weight: 400; font-size: 22px; margin: 4px 0 2px; }
.order span { color: #625F59; font-size: 14px; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 5.5px var(--accent-soft), inset 0 0 0 9px var(--accent);
}

/* Privacy band */
.deep { background: var(--deep); color: var(--deep-ink); border-radius: 32px; overflow: hidden; position: relative; }
.deep .grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding: clamp(36px, 6vw, 72px); }
.deep h2 { color: #fff; }
.deep p { color: #B8C1CA; font-size: 18px; max-width: 40ch; }
.deep .rule { background: #4E7487; }
.points { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 26px; margin-top: 30px; }
.points b { display: block; color: #fff; font-weight: 600; margin-bottom: 2px; }
.points span { color: #9AA6B2; font-size: 15px; }
.deep .bottle { width: min(300px, 70%); margin: 0 auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.5)); }
.deep::after {
  content: ""; position: absolute; right: -10%; top: -30%; width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 143, 191, 0.28), transparent 65%); pointer-events: none;
}

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--hairline); padding: 18px 0; }
.faq summary { cursor: pointer; list-style: none; font-family: "Newsreader", Georgia, serif; font-size: 23px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-family: -apple-system, sans-serif; font-size: 24px; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--secondary); margin: 10px 0 0; max-width: 62ch; }

/* Invitation */
.invite {
  position: relative; overflow: hidden; border-radius: 32px; padding: clamp(36px, 6vw, 72px);
  background: var(--panel);
}
.invite > img {
  position: absolute; right: -2%; bottom: -6%; width: min(460px, 52%);
  /* The painting has its own paper; fade its edges into the panel. */
  -webkit-mask-image: radial-gradient(ellipse 60% 62% at 58% 55%, #000 45%, transparent 75%);
          mask-image: radial-gradient(ellipse 60% 62% at 58% 55%, #000 45%, transparent 75%);
}
.invite > div { position: relative; max-width: 520px; }
.invite p { color: var(--secondary); font-size: 18px; }

.block { padding: 64px 0; }

/* Footer */
footer { padding: 36px 0 52px; color: var(--secondary); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; border-top: 1px solid var(--hairline); padding-top: 26px; }
footer .brand { margin-right: auto; }
footer .brand span { font-size: 19px; }
footer a { color: var(--secondary); text-decoration: none; }
footer a:hover { color: var(--ink); }

/* Text pages */
.page-top { padding: 34px 0 10px; }
.art-band { border-radius: 22px; overflow: hidden; margin: 0 0 30px; }
.art-band img { width: 100%; height: clamp(150px, 26vw, 240px); object-fit: cover; }
.text h1 { font-size: clamp(42px, 7vw, 64px); margin-bottom: 14px; }
.text h2 { font-size: 27px; margin: 36px 0 8px; letter-spacing: 0; }
.text li { margin-bottom: 10px; }
.text .lead { max-width: none; }

/* What it is */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.trio > div { border-top: 1px solid var(--hairline); padding-top: 18px; }
.trio p { font-size: 19px; line-height: 1.5; margin: 0; }
.kicker { display: block; font-size: 12px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; font-weight: 600; }
.note { margin-top: 34px; color: var(--secondary); font-size: 15px; border-left: 3px solid var(--rule); padding-left: 14px; max-width: 60ch; }

/* Who */
.who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.who article { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; }
.who img { width: 100%; aspect-ratio: 16 / 7.5; object-fit: cover; object-position: center 28%; }
.who article > div { padding: 18px 22px 22px; }
.who p { color: var(--secondary); margin: 0; }

@media (max-width: 900px) {
  .trio, .who { grid-template-columns: 1fr; gap: 22px; }
}

/* Feature stories, alternating like a product page */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 56px 0; border-top: 1px solid var(--hairline); }
.story.flip .story-text { order: 2; }
.story h3 { font-size: clamp(34px, 4.2vw, 50px); line-height: 1.05; letter-spacing: -0.5px; margin-bottom: 18px; }
.story-text p:not(.eyebrow) { color: var(--secondary); font-size: 19px; max-width: 40ch; }
.story .eyebrow { color: var(--accent); font-weight: 600; }
.story-visual { display: grid; place-items: center; padding: 34px; border-radius: 28px;
  background: radial-gradient(120% 90% at 30% 20%, var(--accent-soft), var(--panel)); min-height: 360px; }
.viz { width: min(380px, 100%); background: #FCFAF6; color: #172433; border-radius: 22px; padding: 22px; box-shadow: var(--shadow); font-size: 15px; }
.viz b { font-weight: 600; }
.chip { margin-top: 16px; padding: 10px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; }
.chip.warn { background: #F6EBDC; color: #8F5E1F; }
.chip.info { background: #E3F2F8; color: #1B6A90; }

.finder { position: relative; height: 150px; border-radius: 16px; background: #1D2229; display: grid; place-items: center; margin-bottom: 16px; }
.finder::before { content: ""; position: absolute; inset: 22px 30%; border: 3px solid #fff; border-radius: 12px;
  -webkit-mask: linear-gradient(#000 0 0) top left / 22px 22px no-repeat, linear-gradient(#000 0 0) top right / 22px 22px no-repeat,
                linear-gradient(#000 0 0) bottom left / 22px 22px no-repeat, linear-gradient(#000 0 0) bottom right / 22px 22px no-repeat;
          mask: linear-gradient(#000 0 0) top left / 22px 22px no-repeat, linear-gradient(#000 0 0) top right / 22px 22px no-repeat,
                linear-gradient(#000 0 0) bottom left / 22px 22px no-repeat, linear-gradient(#000 0 0) bottom right / 22px 22px no-repeat; }
.matrix { width: 64px; height: 64px; background:
  conic-gradient(#fff 25%, transparent 0 50%, #fff 0 75%, transparent 0) 0 0 / 16px 16px, #1D2229;
  box-shadow: inset 4px 0 #fff, inset 0 -4px #fff; opacity: 0.92; }
.found { list-style: none; margin: 0; padding: 0; }
.found li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid #ECE7DE; }
.found li span { color: #625F59; }
.found li b::before { content: "✓ "; color: #576E4A; }

.lot { margin-bottom: 18px; }
.lot-head { display: flex; justify-content: space-between; margin-bottom: 8px; }
.lot-head span { color: #625F59; }
.bar { height: 12px; border-radius: 99px; background: #ECE7DE; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #C9973F, #8F5E1F); }
.lot + .lot .bar i { background: linear-gradient(90deg, #7DB3CF, #1B76A0); }
.lot small { color: #625F59; font-size: 13px; }
.until { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid #ECE7DE; padding-top: 14px; }
.until span { color: #625F59; }
.until b { font-family: "Newsreader", Georgia, serif; font-weight: 400; font-size: 26px; }

.seg { display: inline-flex; background: #ECE7DE; border-radius: 99px; padding: 3px; margin-bottom: 12px; }
.seg span { padding: 6px 14px; border-radius: 99px; color: #625F59; font-size: 14px; }
.seg span.on { background: #fff; color: #172433; font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,0.12); }
.line { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid #ECE7DE; }
.line span { color: #625F59; }

.mail-head { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid #ECE7DE; }
.mail-head span { width: 58px; color: #625F59; }
.mail-body { padding: 12px 0 4px; font-size: 14px; }
.mail-body p { margin: 0 0 10px; }
.mail-button { margin-top: 8px; text-align: center; background: #1B76A0; color: #fff; border-radius: 12px; padding: 11px; font-weight: 600; }

.notice { display: flex; gap: 12px; align-items: flex-start; padding: 13px 0; border-bottom: 1px solid #ECE7DE; }
.notice:last-child { border-bottom: 0; }
.notice span { display: block; color: #625F59; font-size: 14px; }
.notice.muted b { color: #625F59; font-weight: 500; }
.dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; background: #C9C4BA; flex: none; }
.dot.amber { background: #8F5E1F; } .dot.blue { background: #1B76A0; }

.extras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: 20px; overflow: hidden; }
.extras div { background: var(--surface); padding: 22px; }
.extras b { display: block; font-family: "Newsreader", Georgia, serif; font-weight: 400; font-size: 22px; margin-bottom: 4px; }
.extras span { color: var(--secondary); font-size: 15px; }
h2.small { font-size: clamp(28px, 3.4vw, 38px); }

@media (max-width: 900px) {
  .story { grid-template-columns: 1fr; gap: 28px; padding: 40px 0; }
  .story.flip .story-text { order: 0; }
  .story-visual { min-height: 0; padding: 26px 18px; }
  .extras { grid-template-columns: 1fr; }
}

/* Gentle reveal on scroll; off when the viewer asks for less motion. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .stage .bottle { animation: none; }
  .device { transform: none; }
}


@media (prefers-color-scheme: dark) {
  /* The painting's own paper would glow on the dark panel. */
  .invite > img { display: none; }
  .device { box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.09); }
}

@media (max-width: 900px) {
  .hero { padding: 36px 0 72px; }
  .hero .wrap, .split, .deep .grid { grid-template-columns: 1fr; gap: 40px; }
  .device { transform: none; }
  .stage { margin: 0 4% 0 10%; }
  .steps { grid-template-columns: 1fr; }
  .nav a.link { display: none; }
  .deep .bottle { width: 180px; }
  .stage .bottle { display: none; }
  .invite > img { position: static; width: 70%; margin: 24px 0 -40px auto; }
}
@media (max-width: 520px) {
  .points { grid-template-columns: 1fr; }
  .lead { max-width: none; }
}
