:root {
  color-scheme: light;
  --bg: #f6f6f2;
  --surface: #ffffff;
  --ink: #151719;
  --muted: #61676f;
  --line: #d9dbd2;
  --green: #0f766e;
  --blue: #224b7a;
  --clay: #b45309;
  --shadow: 0 24px 70px rgba(23, 28, 33, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(217, 219, 210, 0.78);
  background: rgba(246, 246, 242, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  font-weight: 800;
  text-decoration: none;
}

.mark {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 7px;
  background: var(--ink);
  color: white;
}

nav {
  display: flex;
  gap: 20px;
}

nav a,
.language {
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.language {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  cursor: pointer;
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(480px, 1.08fr);
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 64px);
  padding: 72px max(24px, calc((100vw - 1180px) / 2)) 56px;
}

.hero-copy {
  max-width: 620px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  max-width: 760px;
  font-size: clamp(48px, 6vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  max-width: 820px;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.62;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--green);
  border-radius: 7px;
  background: var(--green);
  color: #fff;
  font-weight: 850;
  text-decoration: none;
}

.button.secondary {
  background: transparent;
  color: var(--green);
}

.product-visual {
  margin: 0;
}

.product-visual img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.strip,
.section,
.decklens,
footer {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.strip article {
  display: grid;
  gap: 8px;
  padding: 24px;
  background: var(--surface);
}

.strip strong {
  font-size: 20px;
}

.strip span {
  color: var(--muted);
  line-height: 1.5;
}

.section {
  padding: 110px 0 0;
}

.section-head {
  max-width: 860px;
  margin-bottom: 34px;
}

.workflow-grid,
.surface-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.workflow-grid article,
.surface-list article,
.decklens {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.workflow-grid article,
.surface-list article {
  padding: 24px;
}

.workflow-grid span,
.surface-list span {
  display: block;
  margin-bottom: 24px;
  color: var(--clay);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.surface-list article {
  min-height: 220px;
}

.surface-list h3 {
  font-size: 24px;
}

.decklens {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(380px, 1fr);
  gap: 28px;
  align-items: center;
  margin-top: 110px;
  padding: 28px;
}

pre {
  margin: 0;
  overflow-x: auto;
  border-radius: 8px;
  background: #17191b;
  color: #e9f2ef;
  font-size: 14px;
  line-height: 1.6;
}

code {
  display: block;
  padding: 22px;
}

footer {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 54px 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

/* App upload flow */
.app-shell {
  width: min(920px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 88px;
}

.upload-hero {
  max-width: 760px;
  margin-bottom: 34px;
}

.upload-hero h1 {
  font-size: clamp(42px, 5vw, 68px);
}

.upload-panel,
.upload-result {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 48px rgba(23, 28, 33, 0.08);
}

.upload-panel {
  padding: 28px;
}

.upload-panel-head {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.upload-panel h2,
.upload-result h2 {
  margin-bottom: 8px;
  font-size: clamp(28px, 3vw, 38px);
}

.upload-badge {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(15, 118, 110, 0.28);
  border-radius: 7px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.upload-form {
  display: grid;
  gap: 16px;
}

.upload-dropzone {
  display: grid;
  gap: 8px;
  min-height: 180px;
  place-items: center;
  padding: 28px;
  border: 1px dashed #9aa19b;
  border-radius: 8px;
  background: #fbfbf8;
  text-align: center;
  cursor: pointer;
}

.upload-dropzone-title {
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
}

.upload-dropzone-copy,
.upload-details,
.upload-status {
  color: var(--muted);
  line-height: 1.5;
}

.upload-dropzone input {
  max-width: min(100%, 360px);
  font: inherit;
}

.upload-details {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfbf8;
  font-weight: 700;
}

.upload-submit {
  justify-self: start;
}

.upload-result {
  display: grid;
  gap: 22px;
  margin-top: 22px;
  padding: 28px;
}

.upload-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.upload-meta div {
  padding: 16px;
  background: #fbfbf8;
}

.upload-meta dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.upload-meta dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 850;
}

.upload-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.upload-link-card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbf8;
}

.upload-link-card h3 {
  margin: 0;
  font-size: 18px;
}

.upload-link-card a {
  overflow-wrap: anywhere;
  color: var(--blue);
  font-size: 14px;
  font-weight: 750;
}

.upload-link-card .button {
  justify-self: start;
}

.upload-status {
  min-height: 24px;
  margin: 0;
  font-size: 15px;
  font-weight: 750;
}

@media (max-width: 900px) {
  .upload-links,
  .upload-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .app-shell {
    width: calc(100% - 36px);
    padding-top: 44px;
  }

  .upload-panel,
  .upload-result {
    padding: 20px;
  }

  .upload-panel-head {
    display: grid;
  }
}

@media (max-width: 900px) {
  .hero,
  .decklens {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .strip,
  .workflow-grid,
  .surface-list {
    grid-template-columns: 1fr;
  }

  nav {
    display: none;
  }
}

@media (max-width: 520px) {
  .topbar {
    padding-inline: 16px;
  }

  .hero {
    padding-inline: 18px;
  }

  .strip,
  .section,
  .decklens,
  footer {
    width: calc(100% - 36px);
  }

  h1 {
    font-size: 44px;
  }
}

/* Recipient room and dashboard demo surfaces */
.room-page,
.dashboard-page {
  min-height: 100vh;
}

.room-shell,
.dashboard-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 42px 0 72px;
}

.room-empty,
.dashboard-empty {
  max-width: 720px;
  padding: 56px 0;
}

.room-view {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.room-sidebar {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 26px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.room-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-weight: 850;
  text-decoration: none;
}

.room-label {
  margin-bottom: 8px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.room-sidebar h1,
.dashboard-head h1 {
  margin-bottom: 12px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.02;
}

.room-sidebar p,
.dashboard-head p {
  font-size: 16px;
}

.room-meta {
  display: grid;
  gap: 8px 14px;
  grid-template-columns: auto minmax(0, 1fr);
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.room-meta dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.room-meta dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 750;
}

.room-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.room-document,
.dashboard-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.room-document {
  min-height: 68vh;
  padding: clamp(28px, 5vw, 68px);
}

.room-document > * {
  max-width: 780px;
}

.room-document h1,
.room-document h2,
.room-document h3 {
  margin-top: 1.4em;
}

.room-document h1:first-child,
.room-document h2:first-child,
.room-document h3:first-child {
  margin-top: 0;
}

.room-document h1 {
  font-size: clamp(36px, 5vw, 64px);
}

.room-document h2 {
  font-size: clamp(28px, 3vw, 42px);
}

.room-document img,
.room-document video,
.room-document iframe {
  max-width: 100%;
  border-radius: 8px;
}

.room-document a {
  color: var(--green);
  font-weight: 800;
}

.dashboard-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.dashboard-share {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.dashboard-share span,
.dashboard-metrics span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.dashboard-share a {
  overflow-wrap: anywhere;
  color: var(--green);
  font-weight: 800;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.dashboard-metrics article {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.dashboard-metrics strong {
  font-size: 42px;
  line-height: 1;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.dashboard-panel {
  padding: 24px;
}

.dashboard-panel h2 {
  margin-bottom: 18px;
  font-size: 24px;
}

.dashboard-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.dashboard-row:first-child {
  border-top: 0;
}

.dashboard-row strong,
.dashboard-row span {
  display: block;
}

.dashboard-row span,
.dashboard-muted {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.dashboard-row b {
  color: var(--green);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .room-view,
  .dashboard-head,
  .dashboard-grid,
  .dashboard-metrics {
    grid-template-columns: 1fr;
  }

  .room-sidebar {
    position: static;
  }
}

@media (max-width: 520px) {
  .room-shell,
  .dashboard-shell {
    width: calc(100% - 36px);
  }

  .room-document,
  .dashboard-panel {
    padding: 20px;
  }
}
