/* Shared look of the TriEdit website: header, navigation, buttons, cards, screenshots and footer. */

:root {
  --blue: #0b73ff;
  --blue-dark: #0057c2;
  --green: #1fa65a;
  --ink: #1d2733;
  --muted: #526173;
  --line: #e2ebf5;
  --paper: #ffffff;
  --wash: #f4f9ff;
  --gradient: linear-gradient(120deg, #0b73ff, #1fb36a);
  --shadow: 0 6px 24px rgba(16, 39, 74, 0.09);
  --radius: 18px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Inter, -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  background: var(--wash);
  color: var(--ink);
  line-height: 1.6;
}

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

a {
  color: var(--blue);
}

/* ----- Header ----- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--line), 0 2px 12px rgba(0, 0, 0, 0.04);
}

.site-header .inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--blue);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.25;
  min-width: 0;
}

.brand img {
  width: 44px;
  height: auto;
  flex: none;
}

.brand strong {
  color: var(--green);
}

.brand .short {
  display: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s;
}

.site-nav a:hover {
  color: var(--green);
  background: #eef7f1;
}

.site-nav a[aria-current="page"] {
  color: var(--blue);
  background: #eaf3ff;
}

/* ----- Sections ----- */

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 72px 0;
}

.section.white {
  background: var(--paper);
}

.section-title {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 44px;
}

.section-title h2 {
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.2;
  color: var(--blue);
  margin-bottom: 12px;
}

.section-title p {
  color: var(--muted);
  font-size: 17px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}

.page-hero {
  text-align: center;
  padding: 72px 0 56px;
  background: linear-gradient(135deg, #ffffff, #e8f4ff);
}

.page-hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.15;
  color: var(--blue);
  margin-bottom: 16px;
}

.page-hero p {
  max-width: 760px;
  margin: 0 auto;
  font-size: 18px;
  color: var(--muted);
}

/* ----- Home page hero: text beside a big screenshot ----- */

.hero {
  background: linear-gradient(135deg, #ffffff 0%, #eaf4ff 60%, #e6f7ee 100%);
  padding: 64px 0 72px;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.1;
  color: var(--blue);
  margin-bottom: 18px;
}

.hero p {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 28px;
}

.hero .meta {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}

/* Jump links at the top of the features page. */
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.chips a {
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  color: var(--blue);
  background: #fff;
  border-radius: 20px;
  padding: 7px 14px;
  box-shadow: inset 0 0 0 1px #cfe2fb;
}

.chips a:hover {
  box-shadow: inset 0 0 0 1px var(--blue);
}

[id] {
  scroll-margin-top: 90px;
}

/* ----- Buttons ----- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 30px;
  background: var(--gradient);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(11, 115, 255, 0.25);
}

.btn.ghost {
  background: #fff;
  color: var(--blue);
  box-shadow: inset 0 0 0 2px #cfe2fb;
}

.btn.ghost:hover {
  box-shadow: inset 0 0 0 2px var(--blue);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ----- Cards ----- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}

.card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.25s;
}

.card:hover {
  transform: translateY(-4px);
}

.card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
  font-size: 15px;
}

.icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
  background: var(--gradient);
  color: #fff;
}

.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  background: #e5f6ec;
  color: #137a3f;
  margin-left: 6px;
  vertical-align: middle;
}

/* ----- Screenshots ----- */

.shot {
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 50px rgba(16, 39, 74, 0.18), 0 0 0 1px rgba(16, 39, 74, 0.08);
}

.shot img {
  width: 100%;
  height: auto;
}

figure figcaption {
  font-size: 14px;
  color: var(--muted);
  margin-top: 10px;
  text-align: center;
}

/* A feature told with a picture: text on one side, screenshot on the other. */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}

.feature:last-child {
  border-bottom: none;
}

.feature.flip {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

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

.feature h2 {
  font-size: clamp(26px, 3.4vw, 34px);
  line-height: 1.2;
  margin-bottom: 14px;
  color: var(--ink);
}

.feature p {
  color: var(--muted);
  font-size: 16.5px;
  margin-bottom: 14px;
}

.ticks {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.ticks li {
  position: relative;
  padding-left: 28px;
  color: var(--ink);
  font-size: 15.5px;
}

.ticks li::before {
  content: "\2713";
  position: absolute;
  left: 2px;
  top: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--green);
}

.thumbs {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.thumbs.five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.thumbs.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.thumbs.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.thumbs figure .shot {
  border-radius: 10px;
}

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

/* ----- Code and tables ----- */

.code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #0f1a2b;
  color: #e7f0ff;
  border-radius: 12px;
  padding: 12px 12px 12px 18px;
  font-family: Consolas, "SFMono-Regular", Menlo, monospace;
  font-size: 15px;
  margin: 8px 0;
}

/* A long command scrolls on its own, so the Copy button always stays in view. */
.code span {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: thin;
}

.code span::before {
  content: "$ ";
  color: #6fd59a;
}

.copy {
  flex: none;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  background: #23344f;
  color: #cfe0ff;
  cursor: pointer;
}

.copy:hover {
  background: #2f4669;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

th,
td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  background: var(--blue);
  color: #fff;
}

td {
  color: var(--muted);
}

td code,
p code,
li code {
  font-family: Consolas, Menlo, monospace;
  font-size: 0.92em;
  background: #eef4fb;
  color: #1d3d66;
  padding: 1px 6px;
  border-radius: 6px;
  white-space: nowrap;
}

/* ----- Call to action and footer ----- */

.cta {
  background: var(--gradient);
  color: #fff;
  border-radius: 26px;
  padding: 56px 32px;
  text-align: center;
  margin: 72px auto;
  max-width: 1192px;
}

.cta h2 {
  font-size: clamp(28px, 4vw, 38px);
  margin-bottom: 12px;
}

.cta p {
  max-width: 720px;
  margin: 0 auto 26px;
  font-size: 18px;
  opacity: 0.95;
}

.cta .btn {
  background: #fff;
  color: var(--blue);
}

.site-footer {
  background: #101827;
  color: #cbd5e1;
  text-align: center;
  padding: 28px 24px;
  font-size: 15px;
}

.site-footer a {
  color: #3ccb7f;
  text-decoration: none;
  font-weight: 700;
}

.site-footer nav {
  margin-bottom: 8px;
}

.site-footer nav a {
  color: #e2e8f0;
  font-weight: 600;
  margin: 0 10px;
}

/* ----- Small screens ----- */

/* The full company name and the links no longer fit on one row. */
@media (max-width: 1100px) {
  .brand .long {
    display: none;
  }

  .brand .short {
    display: inline;
  }
}

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

  .feature,
  .feature.flip {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .feature.flip .feature-text {
    order: 0;
  }

  .thumbs.five {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .patterns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header .inner {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px 16px;
  }

  .brand .long {
    display: none;
  }

  .brand .short {
    display: inline;
  }

  .site-nav {
    justify-content: center;
    gap: 2px;
  }

  .site-nav a {
    padding: 6px 7px;
    font-size: 14px;
  }

  /* The logo already leads home, and this keeps the links on one line. */
  .site-nav .nav-home {
    display: none;
  }

  .code {
    font-size: 14px;
    padding-left: 14px;
  }

  .wrap {
    padding: 0 16px;
  }

  .section {
    padding: 52px 0;
  }

  .thumbs.three,
  .thumbs.two {
    grid-template-columns: 1fr;
  }

  .thumbs.five {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta {
    margin: 52px 16px;
    padding: 40px 20px;
  }

  th,
  td {
    padding: 12px;
    font-size: 14px;
  }
}
