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

:root {
  /* Cream/ink/green: the app's own tokens (LaunchBackground + AccentColor
     colorsets), not a fresh palette chosen for this page. */
  --bg: #fdf9f0;
  --bg-alt: #f3e9d4;
  --surface: #ffffff;
  --ink: #151f2c;
  --ink-soft: #4b5563;
  --ink-faint: #8a8f98;
  --border: #e7ddc8;
  --accent-a: #06a87a;
  --accent-b: #34d375;
  --accent-ink: #04543d;
  --shadow: 0 1px 2px rgba(21, 31, 44, 0.04), 0 12px 32px -12px rgba(21, 31, 44, 0.18);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  /* System UI stack for both display and body -- iteko is a native
     SwiftUI app; its site sets in the same San Francisco family the app
     itself renders in, the same one-face pairing apple.com itself uses. */
  --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 app's own default per-item color rotation (ColorPalette.swift) --
     used here only for the feature cards' left stripe, echoing the
     colored stripe every task card carries in the screenshots above. */
  --stripe-1: #007aff;
  --stripe-2: #34c759;
  --stripe-3: #ff9500;
  --stripe-4: #af52de;
  --stripe-5: #ff2d55;
  --stripe-6: #30b0c7;

  /* 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: #151f2c;
  --terminal-bar: #0d141d;
  --terminal-fg: #d7e4dd;
  --terminal-fg-dim: #9aa4b2;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12181f;
    --bg-alt: #161d26;
    --surface: #1a222c;
    --ink: #f4efe4;
    --ink-soft: #b7bfc9;
    --ink-faint: #7c8590;
    --border: #2a3340;
    --accent-a: #1fbf8a;
    --accent-b: #52e79a;
    --accent-ink: #bdf5da;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
    --stripe-1: #0a84ff;
    --stripe-2: #30d158;
    --stripe-3: #ff9f0a;
    --stripe-4: #bf5af2;
    --stripe-5: #ff375f;
    --stripe-6: #40c8e0;
  }
}

/* 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-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-soon {
  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);
}

/* 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;
  gap: 14px;
  margin-top: 30px;
}
.platform-row {
  display: flex;
  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; }
.hero-art img { margin: 0 auto; }
.chrome-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.chrome-red { background: #ff5f57; }
.chrome-yellow { background: #febc2e; }
.chrome-green { background: #28c840; }

@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 colored left stripe, same as a task card on the
   board above -- this grid of features is deliberately styled like a
   stack of the app's own cards, not a generic icon grid. */
.feature-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--stripe-1);
  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-grid .feature-card:nth-child(1) { border-left-color: var(--stripe-1); }
.feature-grid .feature-card:nth-child(2) { border-left-color: var(--stripe-2); }
.feature-grid .feature-card:nth-child(3) { border-left-color: var(--stripe-3); }
.feature-grid .feature-card:nth-child(4) { border-left-color: var(--stripe-4); }
.feature-grid .feature-card:nth-child(5) { border-left-color: var(--stripe-5); }
.feature-grid .feature-card:nth-child(6) { border-left-color: var(--stripe-6); }
.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-tall (portrait iPhone captures) needs no override -- the grid's
   default equal-width cell already suits a portrait image. .shot-wide
   (landscape iPad/Mac captures) spans the full row instead, so a wide
   screenshot isn't squeezed into a half-width column meant for a phone. */
.shot-wide { grid-column: 1 / -1; }
@media (min-width: 700px) {
  .shot-macos img { max-height: 480px; object-fit: cover; object-position: top; }
}

/* Privacy */
.privacy-grid {
  display: grid;
  gap: 40px;
}
@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;
}

.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-actions { margin-top: 30px; }
.price-note {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--ink-faint);
}

/* Tech stack */
.stack-section .section-title { max-width: none; }
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.pill {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-soft);
}

/* 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-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; }
