/* TO/H Markup website.
   Layout: a simple product homepage. Centred hero over a tabbed app showcase, then card sections
   (benefits, roles, features, get started), a coloured closing band and a column footer.
   Tokens follow the app (src/renderer/styles/tokens.css): violet accent, Manrope / DM Sans. */
:root {
  --bg: #ffffff;
  --bg-alt: #f4f5fa;
  --panel: #ffffff;
  --line: #e2e5ee;
  --fg: #171a24;
  --muted: #5d6477;
  --accent: #6f48e8;
  --accent-ink: #5a35d0;
  --accent-soft: #6f48e814;
  --band: #2a1a6e;
  --band-fg: #ffffff;
  --band-muted: #d9d0ff;
  --shadow: 0 1px 2px #1a1f3a0f, 0 20px 50px -24px #1a1f3a3a;
  --sl: block;
  --sd: none;
  --sans: 'DM Sans', 'Segoe UI', Arial, sans-serif;
  --display: 'Manrope', 'DM Sans', 'Segoe UI', sans-serif;
  --radius: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #05070c;
    --bg-alt: #0b0f17;
    --panel: #111620;
    --line: #232b3c;
    --fg: #e7e9f2;
    --muted: #8d94a8;
    --accent: #9872ff;
    --accent-ink: #b18aff;
    --accent-soft: #9872ff1f;
    --band: #1c1450;
    --band-fg: #ffffff;
    --band-muted: #c9bdfc;
    --shadow: 0 1px 2px #0008, 0 24px 60px -24px #000c;
    --sl: none;
    --sd: block;
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #05070c;
  --bg-alt: #0b0f17;
  --panel: #111620;
  --line: #232b3c;
  --fg: #e7e9f2;
  --muted: #8d94a8;
  --accent: #9872ff;
  --accent-ink: #b18aff;
  --accent-soft: #9872ff1f;
  --band: #1c1450;
  --band-fg: #ffffff;
  --band-muted: #c9bdfc;
  --shadow: 0 1px 2px #0008, 0 24px 60px -24px #000c;
  --sl: none;
  --sd: block;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: '';
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  height: env(safe-area-inset-top, 0px);
  background: var(--bg);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
}
h1,
h2,
h3,
h4 {
  font-family: var(--display);
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
  letter-spacing: -0.02em;
}
h1 {
  font-size: clamp(2.3rem, 5.4vw, 4rem);
  font-weight: 800;
}
h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 700;
}
h3 {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
p {
  margin: 0;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.meta {
  font-size: 0.85rem;
  color: var(--muted);
}
.sel {
  user-select: all;
}

/* header */
.top {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.top-in {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 66px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  white-space: nowrap;
}
.brand b {
  font-weight: 800;
}
.nav {
  display: flex;
  gap: 28px;
}
.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav a:hover {
  color: var(--fg);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--fg);
}
.icon-btn svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-btn .i-moon {
  display: var(--sl);
}
.icon-btn .i-sun {
  display: var(--sd);
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  white-space: nowrap;
  transition:
    transform 0.15s ease,
    background 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-sm {
  height: 38px;
  padding: 0 18px;
  font-size: 0.9rem;
}
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--accent);
}
.btn-light {
  background: #fff;
  color: #2a1a6e;
}
.btn-outline {
  background: transparent;
  color: var(--band-fg);
  border-color: color-mix(in srgb, var(--band-fg) 45%, transparent);
}
.btn-outline:hover {
  border-color: var(--band-fg);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cta-row.center {
  justify-content: center;
}

/* hero */
.hero {
  background: radial-gradient(60% 50% at 50% 0%, var(--accent-soft), transparent 70%), var(--bg);
}
.hero-in {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding-block: 80px 48px;
}
.hero-in h1 {
  max-width: 14em;
}
.lede {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 32em;
}
.hero-in .cta-row {
  margin-top: 8px;
}

.showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-block: 0 88px;
}
.tabs {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
}
.tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 600 0.92rem var(--sans);
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
}
.tab:hover {
  color: var(--fg);
}
.tab[aria-selected='true'] {
  background: var(--accent);
  color: #fff;
}
.window {
  width: 100%;
  max-width: 1080px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.window img {
  width: 100%;
}
.shot-light {
  display: var(--sl);
}
.shot-dark {
  display: var(--sd);
}

/* sections */
.section {
  padding-block: 88px;
}
.section.alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}
.sec-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  margin-bottom: 44px;
}
.sec-head p {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 36em;
}

.cards {
  display: grid;
  gap: 20px;
}
.cards.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}
.card > svg {
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 10px;
  background: var(--accent-soft);
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 6px;
}
.card p {
  color: var(--muted);
}
.card.role {
  padding: 0 0 28px;
  overflow: hidden;
}
.card.role h3,
.card.role p {
  padding-inline: 24px;
}
.role-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.role-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}
.card.link {
  text-decoration: none;
  transition:
    border-color 0.15s ease,
    transform 0.15s ease;
}
.card.link:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.more {
  margin-top: auto;
  padding-top: 8px;
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 0.94rem;
}

.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 32px;
}
.grid li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  column-gap: 14px;
  row-gap: 4px;
}
.grid svg {
  grid-row: span 2;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.grid p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* closing band */
.closing {
  padding-block: 88px;
}
.closing-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 56px;
  border-radius: 24px;
  background: var(--band);
  color: var(--band-fg);
  overflow: hidden;
}
.closing-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.closing-copy p {
  color: var(--band-muted);
  font-size: 1.08rem;
}
.closing-copy .cta-row {
  margin-top: 8px;
}
.closing-logo {
  width: 160px;
  flex: none;
}

.closing-in {
  align-items: flex-start;
}
.closing-copy {
  max-width: 26rem;
  align-items: flex-start;
}
.beta-form {
  flex: 1 1 420px;
  max-width: 520px;
  display: grid;
  gap: 14px;
}
.beta-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--band-fg);
}
.beta-form label em {
  font-style: normal;
  font-weight: 400;
  color: var(--band-muted);
}
.beta-form input,
.beta-form textarea {
  font: 400 1rem var(--sans);
  color: var(--band-fg);
  background: color-mix(in srgb, var(--band-fg) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--band-fg) 28%, transparent);
  border-radius: 10px;
  padding: 11px 14px;
  resize: vertical;
}
.beta-form input:focus,
.beta-form textarea:focus {
  outline: 2px solid var(--band-fg);
  outline-offset: 1px;
}
.beta-form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.beta-form button {
  justify-self: start;
  border: 0;
  cursor: pointer;
  font-family: var(--sans);
}
.beta-form button:disabled {
  opacity: 0.6;
  cursor: default;
}
.form-note {
  min-height: 1.4em;
  font-size: 0.95rem;
  color: var(--band-muted);
}
.form-note.ok {
  color: var(--band-fg);
  font-weight: 600;
}

/* footer */
.foot {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding-block: 56px calc(28px + env(safe-area-inset-bottom, 0px));
}
.foot-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.foot-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.foot-brand p,
.foot-col a {
  color: var(--muted);
  font-size: 0.92rem;
}
.foot-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.foot-col h4 {
  font-size: 0.9rem;
  margin-bottom: 4px;
}
.foot-col a {
  text-decoration: none;
  overflow-wrap: anywhere;
}
.foot-col a:hover {
  color: var(--fg);
}
.foot-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 960px) {
  .cards.three,
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .foot-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .foot-brand {
    grid-column: 1 / -1;
  }
  .closing-in {
    flex-direction: column;
  }
  .beta-form {
    width: 100%;
    max-width: none;
    flex-basis: auto;
  }
}
@media (max-width: 760px) {
  .nav {
    display: none;
  }
}
@media (max-width: 640px) {
  .cards.three,
  .grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-in {
    padding-block: 56px 36px;
  }
  .section,
  .closing {
    padding-block: 64px;
  }
  .showcase {
    padding-block: 0 64px;
  }
  .closing-in {
    padding: 36px 24px;
    flex-direction: column;
  }
  .closing-logo {
    display: none;
  }
  .foot-cols {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .hide-sm {
    display: none;
  }
  .tabs {
    flex-wrap: nowrap;
    max-width: 100%;
    overflow-x: auto;
  }
  .tab {
    padding: 8px 12px;
    font-size: 0.86rem;
    white-space: nowrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn,
  .card.link {
    transition: none;
  }
}
