/* ohar.dev — one-pager
   No build step, no frameworks. Plain CSS, custom properties for theming,
   a mobile-first layout with a couple of breakpoints. */

:root {
  /* The app's own tokens: AccentColor (#34A268, from the asset catalog) and
     the logo's gold (#FECB00, from logo.svg). Everything else is near-
     monochrome on purpose -- GENERAL-PLAN.md §8: one accent, used sparingly,
     never a rainbow. */
  --bg: #fbf9f4;
  --bg-alt: #f2eee3;
  --surface: #ffffff;
  --ink: #161a16;
  --ink-soft: #4b5350;
  --ink-faint: #858b88;
  --border: #e4dece;
  --accent-a: #34a268;
  --accent-b: #fecb00;
  --accent-ink: #1f5a3b;
  --shadow: 0 1px 2px rgba(22, 26, 22, 0.04), 0 12px 32px -12px rgba(22, 26, 22, 0.18);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  /* System UI stack for body, monospace for the brand wordmark, eyebrows,
     and code -- the app's own identity is a monospaced wordmark ("oHar
     Notes" is set in a monospaced bold face in the app itself), so the page
     leans on the same pairing rather than a generic sans-only look. */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Menlo", "Cascadia Code", Consolas, monospace;
  --max-width: 1120px;

  /* The security terminal is deliberately dark in both themes (like a
     real terminal) -- its own tokens, never `--ink`/`--bg`, which flip
     meaning between light and dark mode. */
  --terminal-bg: #161a16;
  --terminal-bar: #0c0f0c;
  --terminal-fg: #d9e4dc;
  --terminal-fg-dim: #9aa39c;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101412;
    --bg-alt: #151b17;
    --surface: #1a211c;
    --ink: #f2f1ea;
    --ink-soft: #b3bbb5;
    --ink-faint: #7c8782;
    --border: #2a332d;
    --accent-a: #4cc283;
    --accent-b: #fecb00;
    --accent-ink: #bfebd1;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
  }
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* Scroll reveal -- content is visible by default (this class is applied
   entirely by main.js, never present in the markup itself), so a
   no-JavaScript visit never hides anything; JS only adds the starting
   "about to reveal" state right before it starts observing. */
.js-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-reveal { opacity: 1; transform: none; transition: none; }
}

/* Terminal cursor -- the page's one deliberate animation, confined to its
   command-line moments (the hero eyebrow, the security terminal). */
.caret::after {
  content: "";
  display: inline-block;
  width: 0.55ch;
  height: 1em;
  margin-left: 2px;
  background: currentColor;
  vertical-align: -0.15em;
  animation: caret-blink 1.05s steps(1) infinite;
}
@media (prefers-reduced-motion: reduce) {
  .caret::after { animation: none; opacity: 1; }
}
@keyframes caret-blink {
  0%, 45% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 18px;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--accent-a);
  outline-offset: 2px;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.brand-mark { border-radius: 6px; }
.site-nav {
  display: none;
  gap: 28px;
  margin-left: 8px;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--ink); }
.header-row .badge { margin-left: auto; }

@media (min-width: 760px) {
  .site-nav { display: flex; }
}

.badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--ink-soft);
  white-space: nowrap;
}
.badge-live {
  color: var(--accent-ink);
  border-color: color-mix(in srgb, var(--accent-a) 40%, var(--border));
  background: color-mix(in srgb, var(--accent-a) 10%, transparent);
  text-decoration: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: default;
}
.btn-primary {
  background: linear-gradient(120deg, var(--accent-a), var(--accent-b));
  color: #06231a;
}
.btn-ghost {
  border-color: var(--border);
  color: var(--ink);
  cursor: pointer;
}
.btn-ghost:hover { border-color: var(--accent-a); }

/* Hero */
.hero { padding: 64px 0 40px; }
.hero-grid {
  display: grid;
  gap: 40px;
}
.eyebrow {
  font-family: var(--font-mono);
  color: var(--accent-a);
  font-size: 0.9rem;
  margin: 0 0 14px;
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.lede {
  margin-top: 20px;
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}
/* No App Store badge yet -- the app isn't published, so there's no store
   page to link to. `.btn-soon` is an honest, non-interactive stand-in in
   the same shape as the real badge will be. */
.btn-soon {
  border: 1px dashed var(--border);
  color: var(--ink-soft);
  cursor: default;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
}
.platform-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 28px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.platform-row li { display: flex; align-items: center; gap: 8px; }
.platform-row .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-a);
}

.hero-art { min-width: 0; }
.chrome-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.chrome-red { background: #ff5f57; }
.chrome-yellow { background: #febc2e; }
.chrome-green { background: #28c840; }

/* Hero screenshots -- real captures from the iPad and iPhone builds,
   framed like a window so they read as software, not stock photography. */
.hero-shots {
  position: relative;
  display: grid;
  gap: 16px;
}
.hero-shots .shot-frame { margin: 0; }
.hero-shots .shot-frame-ipad { width: 100%; }
.hero-shots .shot-frame-iphone {
  width: 42%;
  justify-self: end;
  margin-top: -18%;
  margin-right: 4%;
}
.shot-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.shot-frame img { width: 100%; height: auto; }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1fr 1.1fr; align-items: center; }
}

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  letter-spacing: -0.01em;
  font-weight: 800;
  max-width: 30ch;
}
.section-sub {
  margin-top: 12px;
  color: var(--ink-soft);
  max-width: 60ch;
  font-size: 1.02rem;
}

/* Feature grid */
.feature-grid {
  display: grid;
  gap: 18px;
  margin-top: 40px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}
/* Each card carries a left stripe in the single accent color -- the same
   card language as iteko's grid, but one accent instead of a rainbow,
   matching the app's own near-monochrome direction. */
.feature-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent-a);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-num {
  font-family: var(--font-mono);
  color: var(--ink-faint);
  font-size: 0.78rem;
  margin: 0 0 10px;
}
.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.feature-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 42ch;
}

/* Screenshots */
.shots-grid {
  display: grid;
  gap: 20px;
  margin-top: 40px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .shots-grid { grid-template-columns: repeat(2, 1fr); }
}
.shot {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}
.shot:hover { transform: translateY(-3px); }
.shot img { width: 100%; height: auto; }
.shot figcaption {
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
}
.shot-wide { grid-column: 1 / -1; }

/* Privacy */
.privacy-grid {
  display: grid;
  gap: 40px;
}
/* Grid items default to min-width: auto, so a wide child (the file
   snippet, the terminal) would stretch its whole column past the screen. */
.privacy-grid > * { min-width: 0; }
@media (min-width: 900px) {
  .privacy-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}
.check-list {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.check-list li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-soft);
  font-size: 0.97rem;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-a);
  font-weight: 700;
}

/* Files card -- a small, honest illustration of the one thing that sets
   oHar apart: notes are ordinary .md files in your own iCloud Drive folder,
   browsable in Finder and the Files app. Same spirit as the environments
   card on iteko's page: a mockup of the real thing, not a stock icon. */
.file-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 10px;
}
.file-card-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-faint);
  padding: 8px 14px 10px;
}
.file-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.file-row.is-active {
  background: color-mix(in srgb, var(--accent-a) 12%, transparent);
  color: var(--accent-ink);
  font-weight: 600;
}
.file-row .file-meta {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--ink-faint);
  font-weight: 400;
}
.file-row .file-indent { width: 14px; flex: none; }
.file-snippet {
  margin: 8px 14px 14px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--ink-soft);
  white-space: pre;
  overflow-x: auto;
}

.terminal {
  background: var(--terminal-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 14px;
  background: var(--terminal-bar);
}
.terminal-title {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--terminal-fg-dim);
}
.terminal-body {
  margin: 0;
  padding: 22px 20px 26px;
  color: var(--terminal-fg);
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.7;
  overflow-x: auto;
}

/* Pricing */
.pricing-wrap { text-align: center; }
.pricing-wrap .eyebrow { justify-content: center; display: flex; }
.pricing-wrap .section-sub { margin-left: auto; margin-right: auto; }
.price-card {
  margin: 40px auto 0;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 40px 32px;
}
.price-tag {
  font-family: var(--font-mono);
  font-size: 3.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.price-check-list {
  margin-top: 24px;
  text-align: left;
}
.price-note {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--ink-faint);
}

/* FAQ -- native <details>/<summary>, no JS: works, and stays keyboard/
   screen-reader accessible, with the page's own script absent entirely. */
.faq-wrap { max-width: 760px; }
.faq-list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px 20px;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 28px 16px 0;
  font-weight: 600;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 14px;
  font-size: 1.3rem;
  color: var(--ink-faint);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 62ch;
}
.faq-item a { color: var(--accent-ink); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 48px;
}
.footer-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-weight: 700;
}
.footer-copy {
  color: var(--ink-faint);
  font-size: 0.85rem;
}
.footer-link {
  color: var(--ink-faint);
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-left: 4px;
}
.footer-link:hover { color: var(--ink-soft); }
@media (min-width: 640px) {
  .footer-row { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* Document pages (privacy policy, etc.) — a plain readable article
   instead of the landing page's card/section rhythm: a single measured
   column, real heading hierarchy, disc bullets restored for lists (the
   base reset strips list-style everywhere else on the site). */
.doc-section { padding: 56px 0 96px; }
.doc-wrap { max-width: 720px; }
.doc-title {
  margin-top: 10px;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.doc-meta {
  margin-top: 8px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.doc-lede {
  margin-top: 28px;
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 65ch;
}
.doc-wrap h2 {
  margin-top: 44px;
  margin-bottom: 14px;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.doc-wrap p {
  margin-top: 14px;
  max-width: 65ch;
  color: var(--ink-soft);
}
.doc-list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 65ch;
}
.doc-list li {
  position: relative;
  padding-left: 20px;
  color: var(--ink-soft);
}
.doc-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.6em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-a);
}
.doc-wrap a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }

/* 404 -- its own class rather than inline styles, since the page's CSP
   (style-src 'self') would silently block a style attribute. */
.not-found {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}
.not-found-eyebrow { justify-content: center; display: flex; }
.not-found-title { font-size: 2rem; margin-bottom: 12px; font-weight: 800; }
.not-found-lede { margin: 0 auto 28px; }
