/* trykryen.com. Tokens are the app's (src/renderer/src/styles.css in the app repo): near-black surfaces,
   1px hairlines, two text greys, one accent red for the primary action, the wordmark dot and warnings. */

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-latin-wght-normal.woff2?v=3100e775e8') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/jetbrains-mono-latin-wght-normal.woff2?v=18be452724') format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #000000;
  --surface-1: #0a0a0a;
  --surface-2: #111111;
  --surface-3: #171717;
  --line: #1f1f1f;
  --line-strong: #2b2b2b;
  --fg: #f5f5f5;
  --fg-2: #8a8a8a;
  --accent: #ff3b30;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --radius: 4px;
  --radius-sm: 3px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --gutter: 24px;
  --header-h: 60px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg-2);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3 {
  margin: 0;
  color: var(--fg);
  font-weight: 600;
  text-wrap: balance;
}

p {
  margin: 0;
}

p,
li {
  text-wrap: pretty;
}

strong {
  color: var(--fg);
  font-weight: 600;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
  color: var(--fg);
}

/* JetBrains Mono would draw "-<", "->" etc. as arrows: commands, hashes and file names must look as typed */
code,
.code,
.num,
.eyebrow,
.facts {
  font-variant-ligatures: none;
  font-feature-settings: 'liga' 0, 'calt' 0;
}

[id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

::selection {
  background: var(--fg);
  color: var(--bg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--fg);
  color: var(--bg);
  border-radius: var(--radius);
  font-weight: 600;
}
.skip:focus {
  top: 12px;
}

.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.container {
  width: 100%;
  max-width: calc(1120px + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container.narrow {
  max-width: calc(760px + 2 * var(--gutter));
}

.eyebrow {
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-2);
}

.link {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 120ms var(--ease);
}
.link:hover {
  text-decoration-color: var(--fg);
}

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: middle;
  transform: translateY(-1px);
}

/* Wordmark: KRYEN tracked 0.5em, then the red dot (1/3em after the tracking). */
.wordmark {
  display: inline-flex;
  align-items: center;
  color: var(--fg);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.5em;
}
.wordmark-dot {
  width: 0.25em;
  height: 0.25em;
  margin-left: calc(1em / 3);
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color 120ms var(--ease), border-color 120ms var(--ease), filter 120ms var(--ease);
}
.btn-primary {
  /* black on #FF3B30 is 5.9:1 (white would be 3.5:1, under WCAG AA for this size) */
  background: var(--accent);
  border-color: var(--accent);
  color: #000000;
}
.btn-primary:hover {
  filter: brightness(1.1);
}
.btn-secondary {
  background: var(--surface-2);
  border-color: var(--line-strong);
  color: var(--fg);
}
.btn-secondary:hover {
  background: var(--surface-3);
  border-color: #3a3a3a;
}
.btn-sm {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-h);
}
.brand {
  display: inline-flex;
  /* a 34px-tall target for the 14px text */
  padding: 10px 0;
}
.nav {
  margin-left: auto;
}
.nav ul {
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav a {
  font-size: 14px;
  color: var(--fg-2);
  transition: color 120ms var(--ease);
}
.nav a:hover {
  color: var(--fg);
}
.header-inner > .btn {
  flex: none;
}
/* the header's download button: the full label, or a short one where it wouldn't fit */
.label-narrow {
  display: none;
}
@media (max-width: 759px) {
  .label-wide {
    display: none;
  }
  .label-narrow {
    display: inline;
  }
}

/* "Early Access" in the hero and on the download page */
.badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 24px;
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-variant-ligatures: none;
}
.badge .dot {
  margin-right: 8px;
  transform: none;
}

/* Hero */
.hero {
  padding: 96px 0 0;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero h1 {
  max-width: 860px;
  font-size: clamp(38px, 6.4vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.lede {
  max-width: 640px;
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--fg-2);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  color: var(--fg-2);
}
.facts li {
  padding: 0 14px;
  border-left: 1px solid var(--line-strong);
}
.facts li:first-child {
  padding-left: 0;
  border-left: 0;
}
.hero-shot {
  margin-top: 72px;
  margin-bottom: 0;
}

/* Screenshot frames */
.frame {
  display: block;
  overflow: hidden;
  background: var(--surface-1);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
.frame img {
  width: 100%;
  height: auto;
}
figure {
  margin: 0;
}
figcaption {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg-2);
}
.demo-note {
  display: block;
  margin-top: 2px;
  font-size: 13px;
}

/* Sections */
.section {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}
.hero + .section {
  margin-top: 96px;
}
.section-tight {
  padding-top: 0;
  border-top: 0;
}
.section-head {
  margin-bottom: 48px;
}
.section-head h2 {
  max-width: 760px;
  font-size: clamp(28px, 3.8vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.025em;
}
.section-lede {
  max-width: 640px;
  margin-top: 18px;
  font-size: 17px;
}

/* Hairline grids: 1px gaps over the line colour */
.grid {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.cell {
  padding: 32px;
  background: var(--bg);
}
.cell h3 {
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.cell h3 + p,
.cell h3 + ul {
  margin-top: 10px;
}
.cell p {
  font-size: 15px;
  line-height: 1.6;
}
.grid-features {
  grid-template-columns: repeat(3, 1fr);
}
.cell-wide {
  grid-column: span 2;
}
.strategy-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 28px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  line-height: 1.55;
}
.strategy-list li {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.strategy-list strong {
  display: block;
  margin-bottom: 2px;
}
.grid-safety {
  grid-template-columns: repeat(2, 1fr);
}
.grid-safety .eyebrow {
  margin-bottom: 18px;
}

/* Screenshots */
.shots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 32px;
}
.shot-wide {
  grid-column: span 2;
}

/* Pricing */
.grid-pricing {
  grid-template-columns: repeat(2, 1fr);
}
.plan {
  display: flex;
  flex-direction: column;
}
.plan h3 {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 14px;
  color: var(--fg);
}
.price .num {
  font-size: 44px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.price .per {
  font-size: 15px;
  color: var(--fg-2);
}
.checks {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  line-height: 1.55;
}
.checks li {
  position: relative;
  padding-left: 26px;
}
.checks li + li {
  margin-top: 10px;
}
.checks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.5em;
  width: 10px;
  height: 5px;
  border-left: 1.5px solid var(--fg);
  border-bottom: 1.5px solid var(--fg);
  transform: rotate(-45deg);
}
.fine {
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.6;
}
.plan-cta {
  margin-top: auto;
  padding-top: 28px;
}
.note {
  max-width: 760px;
  margin-top: 24px;
  font-size: 14px;
}

/* FAQ */
.faq {
  max-width: 760px;
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq details:first-child {
  border-top: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  color: var(--fg);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  flex: none;
  font-family: var(--mono);
  font-weight: 400;
  color: var(--fg-2);
}
.faq details[open] summary::after {
  content: '\2212';
}
.faq details p {
  max-width: 680px;
  padding-bottom: 24px;
  font-size: 15px;
}

/* Risk notice */
.risk {
  padding: 48px 0;
  background: var(--surface-1);
  border-top: 1px solid var(--line);
}
.risk-inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
}
.risk-title {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.risk p {
  max-width: 760px;
  font-size: 15px;
  line-height: 1.65;
}

/* Footer */
.site-footer {
  padding: 64px 0 40px;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand p {
  max-width: 320px;
  margin-top: 18px;
  font-size: 14px;
}
.site-footer h2 {
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}
.site-footer li + li {
  margin-top: 10px;
}
.site-footer nav a {
  color: var(--fg);
  text-decoration: none;
}
.site-footer nav a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

/* Inner pages */
.page-head {
  padding: 88px 0 56px;
}
.page-head h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.draft-badge {
  display: inline-block;
  margin-top: 20px;
  padding: 5px 9px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg);
}
.warning,
.notice {
  padding: 28px 32px;
  background: var(--surface-1);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
.warning + .notice {
  margin-top: 16px;
}
.notice h2 {
  font-size: 17px;
  letter-spacing: -0.01em;
}
.notice ul {
  margin: 14px 0 0;
  padding-left: 18px;
  font-size: 15px;
}
.notice li + li {
  margin-top: 8px;
}
.warning h2 {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.warning ul {
  margin: 16px 0 0;
  padding-left: 18px;
  font-size: 16px;
}
.warning li + li {
  margin-top: 8px;
}
.sub {
  margin: 56px 0 18px;
  font-size: 22px;
  letter-spacing: -0.015em;
}
.specs {
  margin: 0;
  border-top: 1px solid var(--line);
}
.specs div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.specs dt {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 24px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.specs dd {
  margin: 0;
  color: var(--fg);
  font-size: 15px;
}
.hash {
  display: block;
  overflow-wrap: anywhere;
  word-break: break-all;
}
.specs .copy {
  margin-top: 10px;
}
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps > li {
  position: relative;
  padding: 0 0 0 44px;
  counter-increment: step;
}
.steps > li + li {
  margin-top: 28px;
}
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--fg-2);
}
.steps p + p,
.steps p + pre,
.steps pre + p {
  margin-top: 12px;
}
.code {
  margin: 0;
  padding: 14px 16px;
  overflow-x: auto;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg);
}

/* Legal text */
.prose {
  font-size: 16px;
}
.prose h2 {
  margin: 48px 0 14px;
  font-size: 21px;
  letter-spacing: -0.01em;
}
.prose h3 {
  margin: 32px 0 10px;
  font-size: 17px;
}
.prose p + p,
.prose p + ul,
.prose ul + p {
  margin-top: 14px;
}
.prose ul,
.prose ol {
  margin: 0;
  padding-left: 20px;
}
.prose li + li {
  margin-top: 8px;
}
.prose a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose > p:first-child {
  padding: 16px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-1);
}

/* Responsive */
@media (max-width: 1023px) {
  .grid-features {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 759px) {
  :root {
    --gutter: 16px;
    --header-h: 56px;
  }
  .nav {
    display: none;
  }
  .header-inner {
    justify-content: space-between;
    gap: 16px;
  }
  .hero {
    padding-top: 56px;
  }
  .lede {
    font-size: 17px;
  }
  .actions .btn {
    flex: 1 1 100%;
  }
  .facts {
    flex-direction: column;
    gap: 6px;
  }
  .facts li {
    padding: 0;
    border-left: 0;
  }
  .hero-shot {
    margin-top: 48px;
  }
  .section {
    padding: 72px 0;
  }
  .hero + .section {
    margin-top: 72px;
  }
  .section-head {
    margin-bottom: 32px;
  }
  .grid-features,
  .grid-safety,
  .grid-pricing,
  .shots {
    grid-template-columns: 1fr;
  }
  .cell-wide,
  .shot-wide {
    grid-column: auto;
  }
  .strategy-list {
    grid-template-columns: 1fr;
  }
  .cell {
    padding: 24px 20px;
  }
  .shots {
    gap: 36px;
  }
  .risk-inner {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }
  .page-head {
    padding: 56px 0 40px;
  }
  .warning,
  .notice {
    padding: 22px 20px;
  }
  .specs div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
