/* Kitomer marketing site. Colours match the portal's dark theme (apps/pages/src/styles.css):
   orange accent, green up, red down, yellow warn, and the blue star from the logo. */

:root {
  --bg: #0f1218;
  --surface: #1a1f29;
  --surface-2: #222833;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f2f4f7;
  --text-2: #a9b1bf;
  --text-3: #7d8696;
  --accent: #f6821f;
  --accent-hover: #ff9a45;
  --on-accent: #161616;

  --up: #2fd67b;
  --down: #ff6b6b;
  --warn: #f0c14b;
  --star: #3b82f6;
  --uat: #5b9fd4;
  --violet: #8b6cf6;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --radius: 22px;
  --radius-sm: 12px;
  --gutter: 20px;
  --max: 1160px;

  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-decoration-color: rgba(255, 255, 255, 0.45); text-underline-offset: 3px; }
a:hover { color: var(--text); text-decoration-color: var(--text); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 0.5em; font-weight: 750; }
h1 { font-size: clamp(2.4rem, 7vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4.6vw, 2.5rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }
.muted { color: var(--text-2); }
.small { font-size: 0.9rem; }
.accent { color: var(--accent); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 10px; background: var(--surface); padding: 8px 14px; z-index: 10; }

/* Header */

.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(15, 18, 24, 0.82);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 750; font-size: 1.2rem; letter-spacing: -0.01em; white-space: nowrap; }
.brand img { width: auto; height: 28px; }
.brand:hover { color: var(--text); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 8px 10px; border-radius: 999px; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface); }
.nav .nav-hide { display: none; }
.nav .nav-cta { color: var(--on-accent); background: var(--accent); margin-left: 4px; }
.nav .nav-cta:hover { color: var(--on-accent); background: var(--accent-hover); }
@media (min-width: 720px) { .nav .nav-hide { display: inline-block; } }
@media (max-width: 360px) {
  .brand img { height: 24px; }
  .nav a:not(.nav-cta) { display: none; }
}

/* Buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none;
  border: 0; cursor: pointer; transition: background 0.15s, transform 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-ghost { background: var(--surface); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }

/* "Coming soon" App Store button. Swap for Apple's official badge once the app is live. */
.appstore {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 8px 22px 8px 16px; border-radius: 16px;
  background: #000; color: #fff; text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
}
.appstore:hover { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.appstore svg { width: 26px; height: 26px; flex: none; }
.appstore span { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.appstore small { font-size: 0.72rem; font-weight: 600; color: var(--text-2); letter-spacing: 0.02em; }
.appstore strong { font-size: 1.15rem; font-weight: 700; }
.appstore[aria-disabled="true"] { cursor: default; }

/* Heartbeat strip: the bar from the Places board, used as a decorative motif */

.beats { display: flex; align-items: stretch; gap: 3px; height: 26px; }
.beats i { width: 6px; border-radius: 2px; background: var(--up); display: block; }
.beats i.d { background: var(--down); }
.beats i.w { background: var(--warn); }

/* Hero */

.hero { position: relative; overflow: hidden; padding: 48px 0 64px; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1;
  background:
    radial-gradient(40% 50% at 82% 28%, rgba(246, 130, 31, 0.22), transparent 70%),
    radial-gradient(35% 40% at 12% 8%, rgba(59, 130, 246, 0.18), transparent 70%);
}
.hero-grid { display: grid; gap: 48px; align-items: center; }
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 22px; color: var(--text-2); font-weight: 650; }
.hero .lede { font-size: 1.2rem; color: var(--text-2); max-width: 34em; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { margin-top: 14px; font-size: 0.9rem; color: var(--text-3); }

.hero-copy { max-width: 820px; margin: 0 auto; text-align: center; }
.hero-copy .eyebrow, .hero-copy .hero-actions { justify-content: center; }
.hero-copy .lede { margin-left: auto; margin-right: auto; }
@media (min-width: 960px) {
  .hero { padding: 72px 0 96px; }
  .hero-split { grid-template-columns: 1.05fr 0.95fr; }
}
.hero-split .phone-pair { padding-bottom: 8%; }

/* Hero media: the portal in a browser window with the iPhone app in front */

.hero-media { position: relative; max-width: 1080px; margin: 0 auto; width: 100%; padding-bottom: 6%; }
.hero-media .phone {
  position: absolute; right: 0; bottom: -2%;
  width: 22%; max-width: 250px;
  border-radius: clamp(20px, 4vw, 34px); padding: clamp(4px, 0.8vw, 7px);
}
.hero-media .phone img { border-radius: clamp(16px, 3.4vw, 28px); }
.hero-media .browser { width: 90%; }

/* Browser window around portal screenshots */

.browser {
  border-radius: 14px; overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.75);
}
.browser-bar {
  display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px;
  background: #232935; border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a4150; display: block; flex: none; }
.browser-bar span {
  margin: 0 auto; padding: 3px 14px; border-radius: 7px; background: #181c24;
  font-size: 0.75rem; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60%;
}
.browser img { width: 100%; }

/* Phone frame around simulator screenshots */

.phone {
  position: relative; width: min(300px, 78vw); margin: 0 auto;
  aspect-ratio: 1206 / 2622;
  border-radius: 46px; padding: 10px;
  background: linear-gradient(145deg, #343b4a, #12151c);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 37px; }

/* Sections */

section { padding: 64px 0; }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head p { color: var(--text-2); font-size: 1.1rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { display: block; color: var(--accent); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; }
.alt { background: linear-gradient(180deg, transparent, rgba(26, 31, 41, 0.6) 12%, rgba(26, 31, 41, 0.6) 88%, transparent); }

.features { display: grid; gap: 16px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .features { grid-template-columns: repeat(3, 1fr); } }

.card { background: var(--surface); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.card h3 { margin-bottom: 0.35em; }
.card p { color: var(--text-2); margin: 0; }
.icon {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  margin-bottom: 16px; color: #fff;
}
.icon svg { width: 24px; height: 24px; }
.i-accent { background: var(--accent); color: var(--on-accent); }
.i-up { background: #1f9d57; }
.i-down { background: #d64545; }
.i-warn { background: var(--warn); color: #161616; }
.i-star { background: var(--star); }
.i-uat { background: #3f78a8; }
.i-violet { background: #6b4fd8; }
.i-plain { background: var(--surface-2); }

/* Showcase rows: screenshot beside copy */

.showcase { display: grid; gap: 36px; align-items: center; }
.showcase + .showcase { margin-top: 88px; }
.showcase > * { min-width: 0; }
.showcase ul, .ticks { padding: 0; margin: 0 0 1em; list-style: none; }
.showcase li, .ticks li { position: relative; padding-left: 28px; margin-bottom: 10px; color: var(--text-2); }
.showcase li::before, .ticks li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 12px; height: 12px; border-radius: 4px; background: var(--bullet, var(--accent)); }
.showcase li strong, .ticks li strong { color: var(--text); }
@media (min-width: 900px) {
  .showcase { grid-template-columns: 1.25fr 0.75fr; gap: 56px; }
  .showcase.flip { grid-template-columns: 0.75fr 1.25fr; }
  .showcase.flip .showcase-media { order: 2; }
  .showcase.phone-row { grid-template-columns: 0.8fr 1.2fr; }
  .showcase.phone-row.flip { grid-template-columns: 1.2fr 0.8fr; }
}

/* Code */

code, pre { font-family: var(--mono); }
code { background: var(--surface-2); padding: 0.1em 0.4em; border-radius: 6px; font-size: 0.9em; }
pre {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 16px; margin: 0 0 14px; overflow-x: auto; font-size: 0.9rem; line-height: 1.6;
}
pre code { background: none; padding: 0; font-size: inherit; }
.trace .you { color: var(--text); }
.trace .tool { color: var(--accent); }
.trace .out { color: var(--text-2); }
.trace .ok { color: var(--up); }

/* Two or more phones side by side */

.phone-pair { display: flex; justify-content: center; gap: 4%; }
.phone-pair .phone { width: 48%; max-width: 260px; margin: 0; border-radius: clamp(26px, 7vw, 42px); padding: clamp(6px, 1.6vw, 9px); }
.phone-pair .phone img { border-radius: clamp(20px, 5.6vw, 34px); }
.phone-pair .phone:nth-child(2) { transform: translateY(8%); }

.phone-row-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 4%; max-width: 1040px; margin: 0 auto; }
.phone-row-4 .phone { width: 100%; max-width: 240px; border-radius: clamp(24px, 5vw, 40px); padding: clamp(5px, 1.2vw, 9px); }
.phone-row-4 .phone img { border-radius: clamp(19px, 4vw, 32px); }
.phone-row-4 figure { margin: 0; }
.phone-row-4 figcaption { text-align: center; color: var(--text-3); font-size: 0.9rem; margin-top: 14px; }
@media (min-width: 860px) { .phone-row-4 { grid-template-columns: repeat(4, 1fr); } }

/* Home Screen widget crop */

.widget-shot {
  width: min(360px, 86vw); margin: 0 auto; border-radius: 34px; overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* Small screenshots inside cards */

.shot-grid { display: grid; gap: 20px; }
@media (min-width: 860px) { .shot-grid { grid-template-columns: 1fr 1fr; } }
.shot-grid figure { margin: 0; }
.shot-grid figcaption { color: var(--text-2); margin-top: 14px; }
.shot-grid figcaption strong { color: var(--text); }

/* Plans */

.plans { display: grid; gap: 16px; }
@media (min-width: 860px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan .price { font-size: 2.2rem; font-weight: 750; letter-spacing: -0.02em; margin: 6px 0 2px; color: var(--text); }
.plan .price small { font-size: 1rem; font-weight: 600; color: var(--text-3); }
.plan .tagline { color: var(--text-2); margin-bottom: 16px; }
.plan ul { margin: 0; }
.plan.featured { border-color: rgba(246, 130, 31, 0.55); box-shadow: 0 0 0 1px rgba(246, 130, 31, 0.25) inset; }

/* CTA */

.cta {
  text-align: center; border-radius: 32px; padding: 48px 24px;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(246, 130, 31, 0.16), transparent 70%),
    var(--surface);
  border: 1px solid var(--line);
}
.cta img { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 20px; box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1); }
.cta p { color: var(--text-2); max-width: 32em; margin: 0 auto 26px; }
.cta .hero-actions { justify-content: center; }

/* Long-form pages (support, AI) */

.page-head { padding: 48px 0 8px; }
.page-head p { color: var(--text-2); font-size: 1.1rem; }
.prose { padding: 16px 0 72px; }
.prose h2 { font-size: 1.55rem; margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: var(--text-2); }
.prose strong { color: var(--text); }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.45em; }
.prose .summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin: 8px 0 24px; }
.prose .summary ul { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--text); }
.prose td { color: var(--text-2); }
.prose td code { white-space: nowrap; }
.table-scroll { overflow-x: auto; }

.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 8px; padding: 0; list-style: none; }
.toc a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--surface); color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.toc a:hover { color: var(--text); background: var(--surface-2); }

details.faq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; }
details.faq summary { cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 700; color: var(--text); list-style: none; position: relative; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--text-3); }
details.faq[open] summary::after { content: "–"; }
details.faq > div { padding: 0 18px 4px; }

.contact-card { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.contact-card p { margin: 0; }

.wide-shot { margin: 8px 0 28px; }

/* Footer */

.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--text-3); font-size: 0.92rem; }
.site-footer .wrap { display: grid; gap: 20px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer p { margin: 0; }
@media (min-width: 760px) {
  .site-footer .wrap { grid-template-columns: 1fr auto; align-items: center; }
}
