/* graphx.com — dark theme, brand colors sampled from the Graphx logo
   (teal #01535d, sage #99a39c). Dark ground is teal-tinted, not flat black;
   the accent is the logo teal lifted to read on dark. */
:root {
  --bg: #0d191b;          /* page ground */
  --bg-lift: #122328;     /* alternating section band */
  --card: #152a2e;        /* raised surfaces */
  --line: #263c40;
  --ink: #f0f5f5;         /* headings */
  --body-c: #c6d4d5;      /* body text — kept high-contrast for long reading */
  --muted: #93a8a9;
  --accent: #5cc3cd;      /* logo teal, lifted for dark ground */
  --accent-strong: #7fd4dc;
  --teal-deep: #0e3f46;   /* band / button-hover surfaces */
  --heading: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --text: "Source Sans 3", -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  font-family: var(--text);
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--body-c);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

.shell {
  max-width: 68rem;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

h1, h2, h3, h4 {
  font-family: var(--heading);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

a { color: var(--accent); }
a:hover { color: var(--accent-strong); }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------- header ---------- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.brand { display: inline-flex; align-items: center; }
.brand img {
  width: 118px;
  height: 50px;
  filter: brightness(0) invert(1);
}
.site-nav {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
}
.site-nav a {
  font-family: var(--heading);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--body-c);
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
@media (max-width: 480px) {
  .header-row { justify-content: center; }
  .site-nav { gap: 1rem; justify-content: center; }
  .site-nav a { font-size: 0.9rem; }
}

/* ---------- hero ---------- */
.hero { padding: 5rem 0 4rem; }
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  font-weight: 700;
  max-width: 22ch;
  margin-bottom: 1.1rem;
}
.hero .lede {
  font-size: 1.22rem;
  color: var(--muted);
  max-width: 36rem;
  margin-bottom: 1.8rem;
}
.hero-page { padding: 3.8rem 0 2.6rem; }
.hero-page h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  font-weight: 700;
  max-width: 24ch;
  margin-bottom: 1rem;
}
.hero-page .lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 40rem;
}
.eyebrow {
  font-family: var(--heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--heading);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border-radius: 5px;
  padding: 0.65rem 1.4rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.btn-primary {
  background: var(--accent);
  color: #0b1719;
}
.btn-primary:hover { background: var(--accent-strong); color: #0b1719; }
.btn-ghost {
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-ghost:hover { background: var(--teal-deep); color: var(--accent-strong); }
.btn-row { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* ---------- sections ---------- */
.section { padding: 3.6rem 0; }
.section-tint { background: var(--bg-lift); }
.section h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.section .section-intro {
  color: var(--muted);
  max-width: 40rem;
  margin-bottom: 2.2rem;
}

/* ---------- product cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.4rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.8rem 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.card h3 {
  font-size: 1.25rem;
  font-weight: 600;
}
.card p { flex: 1; }
.card .card-link {
  font-family: var(--heading);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}
.card .card-link:hover { text-decoration: underline; }
.pill {
  display: inline-block;
  font-family: var(--heading);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--teal-deep);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* ---------- feature blocks (product pages) ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 2.2rem 2.6rem;
  margin-top: 1rem;
}
.feature h3 {
  font-size: 1.12rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

/* ---------- screenshots ---------- */
.shot {
  margin: 2.4rem 0 0;
}
.shot img {
  display: block;
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.shot figcaption {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.7rem;
}
.shot-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: 1.6rem;
  margin-top: 2.4rem;
}
.shot-row .shot { margin: 0; }

/* ---------- early-access form (Picsha Retouch) ---------- */
.ea-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  max-width: 36rem;
  margin-top: 1.6rem;
  text-align: left;
}
.ea-form label {
  display: block;
  font-family: var(--heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}
.ea-form input,
.ea-form select,
.ea-form textarea {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink);
  font-family: var(--text);
  font-size: 1rem;
  padding: 0.6rem 0.8rem;
}
.ea-form input:focus,
.ea-form select:focus,
.ea-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: var(--accent);
}
.ea-form .ea-full { grid-column: 1 / -1; }
.ea-form textarea { min-height: 6.5rem; resize: vertical; }
.ea-form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.ea-status {
  grid-column: 1 / -1;
  font-size: 0.95rem;
  min-height: 1.4rem;
  margin: 0;
}
.ea-status.ok { color: var(--accent-strong); font-weight: 600; }
.ea-status.err { color: #ff9d8f; }
@media (max-width: 560px) {
  .ea-form { grid-template-columns: 1fr; }
}

/* ---------- product logo (product pages) ---------- */
.product-logo {
  margin: 0 0 1.4rem;
}
.product-logo img {
  width: min(24rem, 85%);
  height: auto;
  display: block;
}

/* ---------- before/after slider (Picsha Retouch) ---------- */
.ba {
  --pos: 50%;
  position: relative;
  max-width: 34rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  touch-action: none;
}
.ba img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}
.ba .ba-after {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 var(--pos));
}
.ba .ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  background: #fff;
  transform: translateX(-1px);
  pointer-events: none;
}
.ba .ba-divider::after {
  content: "\2194";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: #fff;
  color: #333;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ba .ba-tag {
  position: absolute;
  top: 0.75rem;
  font-family: var(--heading);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(10, 20, 22, 0.72);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  pointer-events: none;
}
.ba .ba-tag.left { left: 0.75rem; }
.ba .ba-tag.right { right: 0.75rem; }
.ba input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  margin: 0;
}
.ba-caption {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.7rem;
  max-width: 34rem;
}

/* ---------- transform strip (Proficity) ---------- */
.strip {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 2.4rem;
}
.strip img {
  width: 8.25rem;
  height: 8.25rem;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.strip .selfie img { border: 2px solid var(--accent); }
.strip .arrow {
  color: var(--accent);
  font-size: 1.8rem;
  padding: 0 0.2rem;
}
.strip .strip-label {
  width: 100%;
  color: var(--muted);
  font-family: var(--heading);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0.4rem;
}
@media (max-width: 560px) {
  .strip img { width: 5.6rem; height: 5.6rem; }
}

/* ---------- style grid (Proficity) ---------- */
.style-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.style-tile {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.style-tile img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.style-tile .name {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.6rem 0.9rem 0.7rem;
  font-family: var(--heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  background: linear-gradient(transparent, rgba(5, 12, 13, 0.9));
}

/* ---------- pricing plans (Proficity) ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.4rem;
  max-width: 40rem;
}
.plan {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 2rem 1.8rem;
  text-align: center;
}
.plan.featured { border-color: var(--accent); }
.plan .tag {
  display: inline-block;
  font-family: var(--heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.plan .price {
  font-family: var(--heading);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
}
.plan .per {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.plan ul {
  list-style: none;
  text-align: left;
  max-width: 15rem;
  margin: 0 auto;
  font-size: 0.95rem;
}
.plan li {
  padding: 0.3rem 0 0.3rem 1.5rem;
  position: relative;
}
.plan li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ---------- heritage band ---------- */
.heritage p {
  max-width: 46rem;
  font-size: 1.08rem;
  color: var(--body-c);
}
.heritage .more {
  margin-top: 0.9rem;
  font-family: var(--heading);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ---------- prose (about, posts, support text) ---------- */
.prose { max-width: 44rem; }
.prose p { margin-bottom: 1.1rem; }
.prose h2 {
  font-size: 1.45rem;
  margin: 2.2rem 0 0.7rem;
}
.prose ul { margin: 0 0 1.1rem 1.3rem; }
.prose li { margin-bottom: 0.4rem; }

/* ---------- news ---------- */
.post-list { display: grid; gap: 1.2rem; max-width: 44rem; }
.post-item {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 8px;
  padding: 1.4rem 1.6rem;
}
.post-item h3 { font-size: 1.2rem; margin-bottom: 0.25rem; }
.post-item h3 a { text-decoration: none; color: var(--ink); }
.post-item h3 a:hover { color: var(--accent); }
.post-date {
  font-size: 0.85rem;
  color: var(--muted);
  display: block;
  margin-bottom: 0.4rem;
}

/* ---------- tables (downloads) ---------- */
.table-wrap { overflow-x: auto; }
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.98rem;
}
th, td {
  text-align: left;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
}
th {
  font-family: var(--heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--teal-deep);
  color: var(--body-c);
  padding: 3.2rem 0;
}
.cta-band h2 { color: #fff; font-size: 1.7rem; margin-bottom: 0.5rem; }
.cta-band p { max-width: 38rem; margin-bottom: 1.4rem; }

/* ---------- footer ---------- */
.site-footer {
  background: #0a1416;
  border-top: 1px solid var(--line);
  color: var(--muted);
  margin-top: 4rem;
  padding: 3rem 0 0;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 2rem;
  padding-bottom: 2.4rem;
}
.footer-brand img { filter: brightness(0) invert(1); opacity: 0.9; }
.footer-brand p { margin-top: 0.8rem; font-size: 0.9rem; }
.footer-col h3 {
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.footer-col a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 0.5rem;
}
.footer-col a:hover { color: var(--accent); }
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.2rem;
  padding-bottom: 1.4rem;
  font-size: 0.82rem;
  color: #6f8486;
}

/* ---------- misc ---------- */
.notice {
  background: var(--bg-lift);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem 1.3rem;
  font-size: 0.95rem;
  max-width: 44rem;
  margin: 1.4rem 0;
}
