/* katkee.com. Colours are the app's own (mobile/src/theme/colors.ts); the icon artwork carries its
   own colours (BRAND.md). System fonts only: the site makes no third-party requests. */
:root {
  --bg: #0B0B0B;
  --surface: #141820;
  --surface-2: #1D212A;
  --border: #282C36;
  --text: #FFFFFF;
  --text-2: #A3A3A3;
  --body: #D7DAE0;
  --accent: #FFC800;
  --accent-pressed: #E0AF00;
  --on-accent: #0B0B0B;
  --radius: 20px;
  --header-height: 68px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-height) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { color: var(--text); margin: 0; line-height: 1.15; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { width: 100%; max-width: 780px; margin: 0 auto; padding: 0 20px; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 10px; font-weight: 700; }
.skip-link:focus { left: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 11, 0.82);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-height); gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 1.4rem; letter-spacing: 0.01em; }
.brand:hover { text-decoration: none; }
.brand-icon { border-radius: 22.37%; flex: none; }
.wordmark .kat { color: var(--text); }
.wordmark .kee { color: var(--accent); }
.site-nav { display: flex; gap: 6px; }
.site-nav a { color: var(--text-2); font-weight: 600; font-size: 0.95rem; padding: 8px 12px; border-radius: 999px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); background: var(--surface); text-decoration: none; }

/* Type */
.eyebrow { color: var(--accent); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 14px; }
.lead { color: var(--text-2); font-size: 1.18rem; line-height: 1.55; max-width: 34em; }
.accent { color: var(--accent); }
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
.section-lead { color: var(--text-2); font-size: 1.08rem; max-width: 40em; }
.text-link { font-weight: 700; }

/* Store buttons: live links, or plainly "coming soon" */
.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.store-button {
  display: inline-flex; flex-direction: column; justify-content: center; min-width: 172px; min-height: 56px;
  padding: 8px 20px; border-radius: 14px; background: var(--text); color: var(--on-accent); line-height: 1.2;
}
.store-button:hover { text-decoration: none; background: #E9EAEE; }
.store-button.is-soon { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.store-small { font-size: 0.72rem; opacity: 0.75; }
.store-name { font-size: 1.08rem; font-weight: 700; }

/* Hero */
.hero { padding: 72px 0 64px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.7rem, 7vw, 4.9rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; margin-bottom: 22px; }
.hero-note { color: var(--text-2); font-size: 0.92rem; }
.hero-visual { position: relative; display: grid; place-items: center; min-height: 600px; }
.hero-visual::before {
  content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 200, 0, 0.16), rgba(255, 200, 0, 0) 65%);
}

/* The phone: an illustration of the Story viewer, not a screenshot */
.phone {
  position: relative; width: 292px; height: 594px; padding: 11px; border-radius: 48px;
  background: linear-gradient(150deg, #2B303B, #0F1218 60%);
  box-shadow: 0 50px 90px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.09);
}
.phone-screen {
  position: relative; height: 100%; border-radius: 38px; overflow: hidden;
  background: linear-gradient(180deg, #0D1424 0%, #24263A 30%, #8A4B2A 58%, #F2A23A 76%, #FFD27A 100%);
}
.story-progress { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; gap: 4px; z-index: 2; }
.story-progress i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.35); }
.story-progress i.seen { background: #FFFFFF; }
.story-progress i.now { background: linear-gradient(90deg, #FFFFFF 55%, rgba(255, 255, 255, 0.35) 55%); }
.story-top { position: absolute; top: 28px; left: 14px; display: flex; align-items: center; gap: 10px; z-index: 2; }
.ring { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--accent); padding: 2px; }
.avatar { width: 100%; height: 100%; border-radius: 50%; background: linear-gradient(135deg, #5B6475, #2C3240); }
.story-meta { display: grid; gap: 6px; }
.story-meta b { display: block; width: 86px; height: 9px; border-radius: 5px; background: rgba(255, 255, 255, 0.92); }
.story-meta s { display: block; width: 50px; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, 0.55); }
.story-scene { position: absolute; inset: 0; }
.sun { position: absolute; left: 50%; top: 56%; width: 120px; height: 120px; margin-left: -60px; border-radius: 50%; background: radial-gradient(circle, #FFF3C4 0%, #FFD36B 45%, rgba(255, 200, 80, 0) 72%); }
.hill { position: absolute; left: -20%; right: -20%; border-radius: 50% 50% 0 0; }
.hill-back { bottom: 0; height: 34%; background: linear-gradient(180deg, #3A2C3E, #1A1726); }
.hill-front { bottom: -6%; left: -40%; right: 10%; height: 30%; background: linear-gradient(180deg, #171B2A, #0B0E17); }
.story-rail { position: absolute; right: 14px; bottom: 96px; display: grid; gap: 20px; color: #FFFFFF; z-index: 2; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45)); }
.story-views { position: absolute; left: 16px; bottom: 24px; display: flex; align-items: center; gap: 8px; color: #FFFFFF; z-index: 2; }
.story-views span { display: block; width: 26px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.85); }
.chip {
  position: absolute; display: flex; align-items: center; gap: 8px; z-index: 3;
  padding: 10px 16px 10px 12px; border-radius: 999px; font-size: 0.9rem; font-weight: 600; color: var(--text);
  background: rgba(20, 24, 32, 0.94); border: 1px solid var(--border); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.chip svg { color: var(--accent); flex: none; }
.chip-like { top: 22%; left: 0; }
.chip-follow { bottom: 18%; right: 0; }
@media (prefers-reduced-motion: no-preference) {
  .chip-like { animation: float 6s ease-in-out infinite; }
  .chip-follow { animation: float 6s ease-in-out -3s infinite; }
  @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
}

/* Gestures */
.gestures { padding: 64px 0; border-top: 1px solid #161A22; border-bottom: 1px solid #161A22; background: #0D0F14; }
.gesture-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.gesture-list li { display: grid; gap: 4px; padding: 18px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); }
.gesture-key { color: var(--text); font-weight: 700; }

/* Features */
.features { padding: 96px 0 72px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 36px; }
.feature { padding: 28px; border-radius: 24px; background: linear-gradient(180deg, var(--surface), #0F1218); border: 1px solid var(--border); }
.feature h3 { font-size: 1.3rem; margin: 18px 0 8px; }
.feature p { color: var(--text-2); }
.feature ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.feature li { position: relative; padding-left: 22px; color: var(--body); font-size: 0.97rem; }
.feature li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.feature-icon { display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; background: rgba(255, 200, 0, 0.12); color: var(--accent); }

/* Safety */
.safety { padding: 80px 0; background: radial-gradient(60% 80% at 0% 0%, rgba(255, 200, 0, 0.07), rgba(255, 200, 0, 0) 70%); }
.safety-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.safety-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.safety-list li { padding: 20px 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.safety-list h3 { font-size: 1.05rem; margin-bottom: 6px; }
.safety-list p { color: var(--text-2); margin: 0; }

/* Download */
.cta { padding: 24px 0 96px; }
.cta-box {
  max-width: 1080px; text-align: center; padding: 64px 24px; border-radius: 32px; border: 1px solid var(--border);
  background: radial-gradient(70% 90% at 50% 0%, rgba(255, 200, 0, 0.16), rgba(255, 200, 0, 0) 70%), #10131A;
}
.cta-icon { margin: 0 auto 22px; border-radius: 22.37%; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); }
.cta-box h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; }
.cta-box p { color: var(--text-2); }
.cta-box .store-buttons { justify-content: center; margin-bottom: 0; }

/* Inner pages */
.page-head { padding: 64px 20px 28px; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -0.025em; margin-bottom: 14px; }
.updated { color: var(--text-2); font-size: 0.95rem; }

/* Legal */
.legal-body { padding-bottom: 72px; }
.toc { margin: 8px 0 40px; padding: 20px 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.toc-title { font-weight: 700; margin-bottom: 8px; }
.toc ul { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 32px; }
.toc li { padding: 4px 0; break-inside: avoid; }
.toc a { color: var(--body); }
.toc a:hover { color: var(--accent); }
.prose { color: var(--body); font-size: 1.04rem; line-height: 1.7; }
.prose h2 { font-size: 1.5rem; margin: 2.2em 0 0.7em; letter-spacing: -0.01em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.12rem; margin: 1.7em 0 0.5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin: 0.35em 0; }
.prose li > ul { margin: 0.35em 0 0; }
.prose strong { color: var(--text); }
.prose code { font-size: 0.92em; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }

/* Help Center */
.help { padding-bottom: 72px; }
.help-group h2 { font-size: 1.3rem; margin: 40px 0 14px; }
details { margin: 10px 0; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
details[open] { border-color: #3A3F4B; }
summary { position: relative; padding: 18px 54px 18px 20px; font-weight: 600; cursor: pointer; list-style: none; border-radius: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2); transform: rotate(45deg);
}
details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
details p { margin: 0; padding: 0 20px 18px; color: var(--text-2); }
.contact-cards { margin-top: 48px; }
.contact-cards h2 { font-size: 1.3rem; margin-bottom: 14px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.card { padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.card h3 { font-size: 1rem; margin-bottom: 8px; }
.card p { margin: 0; overflow-wrap: anywhere; }
.card-note { margin-top: 8px !important; color: var(--text-2); font-size: 0.9rem; }

/* Delete account */
.steps-page { padding-bottom: 72px; color: var(--body); }
.steps-page h2 { font-size: 1.35rem; margin: 36px 0 14px; }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li { counter-increment: step; position: relative; padding: 16px 18px 16px 64px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.steps li::before {
  content: counter(step); position: absolute; left: 16px; top: 50%; width: 32px; height: 32px; margin-top: -16px;
  display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 800;
}
.facts { padding-left: 1.2em; }
.facts li { margin: 0.6em 0; }
.steps-page strong { color: var(--text); }

/* Not found */
.not-found { text-align: center; padding: 96px 20px 120px; }
.not-found img { margin: 0 auto 24px; border-radius: 22.37%; }
.not-found h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 12px; }
.not-found .lead { margin: 0 auto 28px; }
/* Open in Katkee (shared links) */
.open-in-app { text-align: center; padding: 96px 20px 120px; }
.open-in-app img { margin: 0 auto 24px; border-radius: 22.37%; }
.open-in-app h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 12px; }
.open-in-app .lead { margin: 0 auto 28px; }
.open-get { font-size: 1.1rem; margin-top: 48px; }
.open-in-app .store-buttons { justify-content: center; margin-top: 16px; }
.open-note { color: var(--text-2); font-size: 0.95rem; margin-top: 40px; }

.button { display: inline-block; padding: 12px 24px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 700; }
.button:hover { background: var(--accent-pressed); text-decoration: none; }

/* Footer */
.site-footer { border-top: 1px solid #1A1E27; padding: 48px 0 28px; color: var(--text-2); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.footer-brand .brand { font-size: 1.2rem; margin-bottom: 10px; }
.footer-links { display: grid; gap: 10px; align-content: start; }
.footer-links a, .footer-contact a { color: var(--text-2); }
.footer-links a:hover, .footer-links a[aria-current="page"], .footer-contact a:hover { color: var(--text); }
.footer-legal { margin-top: 36px; font-size: 0.85rem; color: #6E727B; }
.footer-legal p { margin: 0; }

/* Smaller screens */
@media (max-width: 900px) {
  .hero { padding-top: 48px; }
  .hero-grid, .safety-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: left; }
  .hero-visual { min-height: 0; padding: 24px 0 8px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .site-nav a { padding: 8px 9px; font-size: 0.9rem; }
  .brand { font-size: 1.25rem; }
  .phone { width: 252px; height: 516px; border-radius: 42px; }
  .phone-screen { border-radius: 33px; }
  .chip { font-size: 0.82rem; padding: 8px 12px 8px 10px; }
  .chip-like { left: -4px; }
  .chip-follow { right: -4px; }
  .store-button { min-width: 0; flex: 1 1 150px; }
  .toc ul { columns: 1; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
