/* Ofcors website — same design language as the app: soft greys, hairlines, one periwinkle accent. */
:root {
  --bg: #111215;
  --bg-2: #141519;
  --panel: #18191e;
  --raised: #1f2025;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.11);
  --text: #e4e5e9;
  --strong: #f6f7f9;
  --muted: #a3a6ae;
  --dim: #7c7f88;
  --accent: #a5b4ff;
  --accent-2: #c7d0ff;
  --primary: #4f63d8;
  --primary-hover: #5c70e6;
  --ok: #9fc79a;
  --warn: #e6c9a5;
  --sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --wrap: 1180px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--accent-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
code,
kbd {
  font-family: var(--mono);
  font-size: 0.86em;
  font-variant-ligatures: none;
}
code {
  padding: 0.1em 0.38em;
  border-radius: 5px;
  background: rgba(165, 180, 255, 0.1);
  color: var(--accent-2);
}
kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0.05em 0.4em;
  margin: 0 0.1em;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 5px;
  color: var(--strong);
  text-align: center;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin-inline: auto;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--raised);
  border-radius: 6px;
}
.skip:focus {
  left: 8px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 40px;
  padding: 0 16px;
  border-radius: 9px;
  border: 1px solid var(--line-2);
  font: inherit;
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 140ms, border-color 140ms, transform 140ms;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--primary);
  border-color: #6074ea;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 6px 20px rgba(79, 99, 216, 0.28);
}
.btn-primary:hover {
  background: var(--primary-hover);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--strong);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
}
.btn-lg {
  height: 48px;
  padding: 0 22px;
  font-size: 15.5px;
  border-radius: 11px;
}
.btn-sm {
  height: 32px;
  padding: 0 13px;
  font-size: 13.5px;
  border-radius: 8px;
}
[data-os-icon] svg {
  width: 17px;
  height: 17px;
  display: block;
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  background: rgba(17, 18, 21, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  height: 60px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--strong);
  font-weight: 650;
  font-size: 17px;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand svg {
  color: var(--accent);
}
.nav-links {
  display: flex;
  gap: 22px;
  margin-right: auto;
}
.nav-links a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}
.nav-links a:hover {
  color: var(--strong);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 40px;
  isolation: isolate;
  /* Decorations (glow, callouts) must never widen the page on phones. */
  overflow-x: clip;
}
.hero::before {
  /* Dot grid that fades out toward the edges. */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 30%, transparent 75%);
}
.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 460px;
  width: min(1100px, 100%);
  height: 520px;
  transform: translateX(-50%);
  z-index: -1;
  background: radial-gradient(closest-side, rgba(110, 128, 255, 0.26), transparent);
  filter: blur(20px);
  pointer-events: none;
}
.hero-copy {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px 5px 5px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 13.5px;
  text-decoration: none;
  margin-bottom: 28px;
}
.eyebrow:hover {
  color: var(--strong);
  border-color: rgba(255, 255, 255, 0.2);
}
.eyebrow-tag {
  padding: 1px 9px;
  border-radius: 999px;
  background: rgba(165, 180, 255, 0.16);
  color: var(--accent-2);
  font-weight: 600;
  font-size: 12px;
}
h1 {
  margin: 0;
  font-size: clamp(46px, 8.4vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 650;
  color: var(--strong);
}
.lede {
  max-width: 700px;
  margin: 26px 0 0;
  font-size: clamp(17px, 1.9vw, 20px);
  line-height: 1.55;
  color: var(--muted);
}
.lede strong {
  color: var(--text);
  font-weight: 500;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}
.hero-meta {
  margin: 18px 0 0;
  font-size: 13.5px;
  color: var(--dim);
}

/* screenshot frames */
.shot {
  position: relative;
  margin: 0;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 40px 120px -30px rgba(0, 0, 0, 0.8), 0 18px 40px -20px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
.shot img {
  width: 100%;
}
.shot-wrap {
  margin-top: 64px;
}
.shot-hero {
  overflow: visible;
  padding-top: 30px;
}
.shot-hero img {
  border-radius: 0 0 13px 13px;
}
.shot-chrome {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  border-bottom: 1px solid var(--line);
  border-radius: 13px 13px 0 0;
  background: #17181c;
}
.shot-chrome span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #34353b;
}
.callout {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 9px 13px;
  border-radius: 10px;
  border: 1px solid rgba(165, 180, 255, 0.35);
  background: rgba(24, 25, 32, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.7);
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
  animation: float 7s ease-in-out infinite;
}
.callout b {
  color: var(--strong);
  font-weight: 600;
  font-size: 13.5px;
}
.callout::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(165, 180, 255, 0.2);
}
.c-git {
  left: -48px;
  top: 64%;
}
.c-git::before {
  right: -22px;
  top: 50%;
}
.c-mask {
  left: 18%;
  bottom: -26px;
  animation-delay: -2s;
}
.c-mask::before {
  top: -22px;
  left: 40%;
}
.c-drift {
  right: -44px;
  top: 7%;
  animation-delay: -4s;
}
.c-drift::before {
  left: -22px;
  top: 50%;
}
@keyframes float {
  50% {
    transform: translateY(-5px);
  }
}

.protocols {
  list-style: none;
  padding: 0;
  margin-top: 72px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 34px;
  color: var(--dim);
  font-size: 14px;
  font-family: var(--mono);
  letter-spacing: 0.02em;
}
.protocols li::before {
  content: "·";
  margin-right: 34px;
  color: var(--line-2);
}
.protocols li:first-child::before {
  content: none;
}

/* ---------- sections ---------- */
section {
  scroll-margin-top: 80px;
}
.section-title {
  margin: 0;
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 650;
  color: var(--strong);
  text-align: center;
}
.section-lede {
  max-width: 620px;
  margin: 16px auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 17px;
}

.why {
  padding: 120px 0 40px;
}
.why-grid {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.why-card {
  padding: 26px 26px 28px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 60%), var(--panel);
}
.why-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: rgba(165, 180, 255, 0.07);
  color: var(--accent);
}
.why-icon svg {
  width: 19px;
  height: 19px;
}
.why-card h3 {
  margin: 18px 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--strong);
  letter-spacing: -0.01em;
}
.why-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.features {
  padding: 80px 0 40px;
}
.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 64px;
  align-items: center;
  padding: 70px 0;
}
.feature.is-flipped {
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
}
.feature.is-flipped .feature-copy {
  order: 2;
}
.kicker {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.feature h2 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.032em;
  font-weight: 650;
  color: var(--strong);
}
.feature-copy > p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16.5px;
}
.ticks {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.ticks li {
  position: relative;
  padding-left: 26px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.48em;
  width: 13px;
  height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.ticks strong {
  color: var(--strong);
  font-weight: 600;
}
.feature-shot {
  transform: perspective(1800px) rotateY(-4deg) rotateX(1deg);
  transition: transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.feature.is-flipped .feature-shot {
  transform: perspective(1800px) rotateY(4deg) rotateX(1deg);
}
.feature:hover .feature-shot {
  transform: none;
}

/* quick call demo */
.quickcall {
  margin-top: 26px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  overflow: hidden;
  font-family: var(--mono);
  font-variant-ligatures: none;
}
.qc-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 14px;
  font-size: 14px;
  color: var(--strong);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  overflow: hidden;
}
.qc-prompt {
  color: var(--accent);
}
.qc-caret {
  width: 2px;
  height: 18px;
  margin-left: -8px;
  background: var(--accent);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.qc-result {
  display: flex;
  gap: 16px;
  padding: 11px 14px;
  font-size: 13px;
  color: var(--dim);
  min-height: 42px;
  transition: opacity 200ms;
}
.qc-status.ok {
  color: var(--ok);
}

/* copy-as */
.copyas {
  padding: 100px 0 40px;
}
.chips {
  list-style: none;
  margin: 34px auto 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 820px;
}
.chips li {
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.025);
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--text);
}
.chips .chip-accent {
  border-color: rgba(165, 180, 255, 0.4);
  background: rgba(165, 180, 255, 0.1);
  color: var(--accent-2);
}

/* pricing */
.pricing {
  padding: 120px 0 40px;
}
.plans {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.plan {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.plan.is-featured {
  border-color: rgba(165, 180, 255, 0.4);
  background: linear-gradient(180deg, rgba(165, 180, 255, 0.08), transparent 55%), var(--panel);
}
.plan h3 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  color: var(--strong);
}
.soon {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(230, 201, 165, 0.12);
  color: var(--warn);
  font-size: 11.5px;
  font-weight: 600;
}
.price {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14.5px;
}
.price span {
  font-size: 30px;
  font-weight: 650;
  color: var(--strong);
  letter-spacing: -0.03em;
  margin-right: 4px;
}
.plan .ticks {
  flex: 1;
  margin-bottom: 26px;
}
.plan .ticks li {
  font-size: 14.5px;
}

.waitlist {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 300px) 150px auto;
  gap: 12px;
  align-items: center;
  padding: 22px 24px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
}
.waitlist-copy h3 {
  margin: 0;
  font-size: 17px;
  color: var(--strong);
}
.waitlist-copy p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.waitlist input,
.waitlist select {
  height: 42px;
  border-radius: 9px;
  border: 1px solid var(--line-2);
  background: var(--bg);
  color: var(--strong);
  font: inherit;
  font-size: 14.5px;
  padding: 0 12px;
}
.waitlist input:focus,
.waitlist select:focus {
  outline: none;
  border-color: rgba(165, 180, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(165, 180, 255, 0.14);
}
.waitlist .btn {
  height: 42px;
}
.waitlist-msg {
  grid-column: 1 / -1;
  margin: 0;
  min-height: 0;
  font-size: 14px;
  color: var(--muted);
}
.waitlist-msg:empty {
  display: none;
}
.waitlist-msg.is-ok {
  color: var(--ok);
}
.waitlist-msg.is-error {
  color: #f0b5aa;
}

/* download */
.download {
  padding: 120px 0 40px;
}
.dl-grid {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.dl {
  padding: 24px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  display: flex;
  flex-direction: column;
}
.dl.is-current {
  border-color: rgba(165, 180, 255, 0.4);
}
.dl h3 {
  margin: 0;
  font-size: 19px;
  color: var(--strong);
}
.dl > p {
  margin: 4px 0 18px;
  color: var(--muted);
  font-size: 14px;
}
.dl-files {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}
.dl-files .btn {
  justify-content: space-between;
  /* Long labels ("AppImage · APPIMAGE · 84 MB") wrap rather than widen the card on phones. */
  min-width: 0;
  height: auto;
  min-height: 40px;
  padding-block: 8px;
  white-space: normal;
  text-align: left;
}
.dl {
  min-width: 0;
}
.dl-size {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12.5px;
  font-weight: 400;
}
.btn-ghost .dl-size {
  color: var(--dim);
}
.dl-pending {
  font-size: 13.5px;
  color: var(--dim);
}
.dl-note {
  margin: 22px 0 0;
  text-align: center;
  color: var(--muted);
}

/* faq */
.faq {
  padding: 120px 0 100px;
  max-width: 760px;
}
.faq .section-title {
  margin-bottom: 30px;
}
details {
  border-bottom: 1px solid var(--line);
}
summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 34px 18px 0;
  position: relative;
  font-size: 16.5px;
  font-weight: 500;
  color: var(--strong);
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 14px;
  font-size: 22px;
  font-weight: 300;
  color: var(--dim);
  transition: transform 160ms;
}
details[open] summary::after {
  transform: rotate(45deg);
}
details p {
  margin: -4px 0 20px;
  color: var(--muted);
  font-size: 15.5px;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--dim);
  font-size: 14px;
}
.brand-sm {
  font-size: 15px;
}
.footer-copy {
  margin-left: auto;
}

/* ---------- responsive ---------- */
@media (max-width: 1320px) {
  .c-git,
  .c-drift {
    display: none;
  }
}
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .nav-inner .btn {
    margin-left: auto;
  }
  .hero {
    padding-top: 64px;
  }
  .callout {
    display: none;
  }
  .why-grid,
  .plans,
  .dl-grid {
    grid-template-columns: 1fr;
  }
  .feature,
  .feature.is-flipped {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 50px 0;
  }
  .feature.is-flipped .feature-copy {
    order: 0;
  }
  .feature-shot,
  .feature.is-flipped .feature-shot {
    transform: none;
  }
  .waitlist {
    grid-template-columns: 1fr;
  }
  .cta-row {
    flex-direction: column;
    width: min(100%, 320px);
  }
  .protocols li::before {
    content: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .callout,
  .qc-caret {
    animation: none;
  }
  .feature-shot,
  .feature.is-flipped .feature-shot {
    transform: none;
    transition: none;
  }
}
