:root {
  color-scheme: light;
  --bg: #f6f1e8;
  --paper: rgba(255, 252, 247, 0.88);
  --ink: #1f1a17;
  --muted: #625852;
  --accent: #b85c38;
  --accent-strong: #8f3f1f;
  --border: rgba(31, 26, 23, 0.12);
  --shadow: 0 24px 80px rgba(73, 51, 38, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top, rgba(184, 92, 56, 0.18), transparent 36%),
    linear-gradient(180deg, #fbf7ef 0%, var(--bg) 100%);
}

.page-shell {
  width: min(1040px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4rem 0 5rem;
}

.hero,
.card,
.detail-block {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero {
  padding: 3rem;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.hero-icon {
  width: 5.5rem;
  height: 5.5rem;
  flex: 0 0 auto;
  border-radius: 1.4rem;
  box-shadow: 0 16px 40px rgba(73, 51, 38, 0.18);
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.82rem;
  color: var(--accent-strong);
}

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

h1 {
  max-width: 12ch;
  margin-bottom: 1rem;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: 0.92;
}

.lead,
.card p,
.detail-block p,
li {
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--muted);
  line-height: 1.65;
  font-size: 1.04rem;
}

.lead {
  max-width: 42rem;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 0 0 0.9rem;
}

.download-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--muted);
}

.download-links a {
  color: var(--accent-strong);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 600;
  transition: transform 150ms ease, background-color 150ms ease, color 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: #fff8f1;
}

.button-primary:hover {
  background: var(--accent-strong);
}

.button-secondary {
  border: 1px solid var(--border);
  color: var(--ink);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.card,
.detail-block {
  padding: 1.75rem;
}

.details {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.comparison-section {
  margin-top: 1.75rem;
}

.comparison-card {
  display: block;
}

.comparison-card-media {
  min-width: 0;
  margin-top: 0;
}

.comparison-card-media .comparison-panel {
  padding: 1rem;
  border: 1px solid var(--border);
  background: #ffffff;
  border-radius: 18px;
}

.comparison-card .comparison {
  margin-top: 0;
}

.comparison-panel {
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.55);
}

.comparison-label {
  margin-bottom: 0.75rem;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.comparison-shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(31, 26, 23, 0.08);
  background: #fffdf8;
}

.comparison-caption {
  margin-top: 1rem;
  margin-bottom: 0;
}

.workflow-strip {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255, 252, 247, 0.72);
  box-shadow: var(--shadow);
}

.workflow-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-list li {
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(184, 92, 56, 0.08);
  color: var(--ink);
}

.workflow-list li:not(:last-child)::after {
  content: "→";
  margin-left: 0.8rem;
  color: var(--accent-strong);
  font-weight: 700;
}

.tui-showcase {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 1.25rem;
  margin-top: 1.25rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255, 252, 247, 0.75);
  box-shadow: var(--shadow);
}

.tui-copy,
.tui-shot-wrap,
.tui-shortcuts {
  grid-column: 1 / -1;
}

.tui-copy h2 {
  margin-bottom: 0.75rem;
}

.tui-copy p {
  margin-bottom: 1rem;
}

.tui-start-label {
  margin-bottom: 0.45rem;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.tui-start {
  margin: 0;
  display: block;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
}

.key-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.key-grid li {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(31, 26, 23, 0.14);
  background: rgba(255, 255, 255, 0.72);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.9rem;
  color: #3f342e;
}

.key-grid code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.45rem;
  padding: 0.15rem 0.35rem;
  border-radius: 6px;
  border: 1px solid rgba(31, 26, 23, 0.25);
  background: #fff9f0;
  box-shadow: 0 1px 0 rgba(31, 26, 23, 0.12);
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 0.8rem;
  color: #1f1a17;
}

.tui-shot-wrap {
  width: 100%;
  justify-self: center;
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(31, 26, 23, 0.25);
  background: #191714;
  box-shadow: 0 18px 48px rgba(16, 10, 8, 0.24);
}

.tui-shot {
  display: block;
  width: 100%;
  height: auto;
  background: transparent;
}

.tui-caption {
  margin-top: 0.75rem;
  margin-bottom: 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--muted);
  font-size: 0.92rem;
}

.tui-shortcuts {
  margin-top: 0.25rem;
}

.tui-shortcuts-title {
  margin-bottom: 0.65rem;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.contact-strip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255, 252, 247, 0.72);
  box-shadow: var(--shadow);
}

.contact-strip::after {
  content: "";
  width: 3.5rem;
  height: 3.5rem;
  justify-self: end;
}

.contact-logo {
  width: 3.5rem;
  height: 3.5rem;
  flex: 0 0 auto;
  border-radius: 0.9rem;
  box-shadow: 0 8px 22px rgba(73, 51, 38, 0.2);
}

.contact-strip > p {
  margin: 0;
}

.contact-strip > p:first-of-type {
  justify-self: start;
}

.contact-meta {
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.contact-topline,
.contact-line {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--muted);
  text-align: center;
}

.contact-topline strong {
  font-weight: 700;
  color: #3f342e;
}

.contact-line {
  margin-top: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  align-self: center;
}

.contact-line a {
  color: var(--accent-strong);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

pre {
  overflow-x: auto;
  margin: 1.25rem 0 1.25rem;
  padding: 1rem;
  border-radius: 16px;
  background: #201c19;
  color: #f8eee3;
}

code {
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 0.95em;
}

ul {
  padding-left: 1.2rem;
  margin-bottom: 0;
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 1rem, 48rem);
    padding: 1rem 0 2rem;
  }

  .hero,
  .card,
  .detail-block {
    border-radius: 20px;
  }

  .hero {
    padding: 1.5rem;
  }

  .hero-brand {
    gap: 0.75rem;
    margin-bottom: 1rem;
  }

  .hero-icon {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 1.15rem;
  }

  .grid,
  .details,
  .comparison {
    grid-template-columns: 1fr;
  }

  .comparison-card {
    display: block;
  }

  .tui-showcase {
    grid-template-columns: 1fr;
  }

  .tui-showcase {
    padding: 1.1rem;
  }

  .contact-strip {
    align-items: flex-start;
  }

  .contact-logo {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
  }

  h1 {
    max-width: none;
    font-size: clamp(2.4rem, 12vw, 4rem);
  }
}
