/* =========================================================================
   Teka Notes — landing styles
   Palette mirrors the app theme: teal/cyan accent (189°) + sticky-note gold
   ========================================================================= */

:root {
  --bg:          #151B1D;
  --bg-2:        #0C1A20;
  --surface:     #1A2428;
  --raised:      #1F2D32;
  --line:        #232A2C;
  --line-strong: #2D3A3D;

  --accent:        #0E91A8;
  --accent-strong: #0B7D92;
  --accent-tint:   #103B47;

  --note:   #f7dd5b;
  --note-2: #f39c12;

  --text-1: #E5ECEC;
  --text-2: #92A0A2;
  --text-3: #66716F;

  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1140px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  --shadow-soft: 0 12px 30px -16px rgba(0, 0, 0, 0.6);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }
p  { margin: 0; }
a  { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}
.container.narrow { max-width: 760px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ----------------------------- Buttons ----------------------------- */
.btn {
  --b: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 11px 20px;
  border-radius: 999px;
  border: var(--b);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn .ico { width: 18px; height: 18px; }

.btn-primary {
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  color: #fff;
}
.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-1);
  border: 1px solid var(--line-strong);
}
.btn-outline:hover { border-color: var(--accent); background: var(--accent-tint); }

.btn-ghost {
  background: transparent;
  color: var(--text-1);
}
.btn-ghost:hover { background: var(--raised); }

.btn-lg { padding: 14px 26px; font-size: 1.02rem; }

/* ----------------------------- Header ----------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(21, 27, 29, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.12rem;
}
.brand-mark { width: 30px; height: 30px; border-radius: 7px; object-fit: cover; filter: drop-shadow(0 4px 8px rgba(243, 156, 18, 0.35)); }

.nav-links {
  display: flex;
  gap: 28px;
  margin-inline: auto;
}
.nav-links a {
  color: var(--text-2);
  font-weight: 500;
  font-size: 0.96rem;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text-1); }

.nav-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
}
.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text-1);
  margin-inline: auto;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 24px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
/* The `display: flex` above would otherwise override the `hidden` attribute. */
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  padding: 12px 6px;
  color: var(--text-1);
  font-weight: 500;
  border-radius: 10px;
}
.mobile-menu a:hover { background: var(--raised); }
.mobile-menu .btn-primary { margin-top: 6px; text-align: center; justify-content: center; }

/* ------------------------------ Hero ------------------------------ */
.hero {
  position: relative;
  padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 7vw, 96px);
  overflow: hidden;
}
.aurora {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 720px;
  background:
    radial-gradient(40% 55% at 22% 20%, rgba(22, 166, 191, 0.28), transparent 70%),
    radial-gradient(38% 50% at 82% 8%, rgba(243, 156, 18, 0.14), transparent 70%),
    radial-gradient(45% 60% at 60% 50%, rgba(43, 180, 204, 0.16), transparent 72%);
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero-copy h1 {
  font-size: clamp(2.5rem, 6vw, 4.1rem);
  margin-bottom: 20px;
}
.hl {
  background: linear-gradient(120deg, var(--note), var(--note-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  color: var(--text-2);
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  max-width: 36ch;
  margin-bottom: 30px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-actions.center { justify-content: center; }

.hero-trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 0;
  margin: 28px 0 0;
  color: var(--text-2);
  font-size: 0.92rem;
}
.hero-trust li { white-space: nowrap; }

/* ----------------------- App mock (CSS only) ----------------------- */
.hero-art { position: relative; }

.app-window {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.app-window.tilt { transform: perspective(1400px) rotateY(-8deg) rotateX(3deg); }

.app-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 16px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.r { background: #ff5f57; }
.dot.y { background: #febc2e; }
.dot.g { background: #28c840; }
.app-bar-title {
  margin-left: 10px;
  font-size: 0.82rem;
  color: var(--text-3);
  font-weight: 600;
}

.app-body { display: grid; grid-template-columns: 120px 130px 1fr; min-height: 320px; }
.preview-art .app-body { grid-template-columns: 120px 1fr; }

.app-side {
  padding: 14px 10px;
  border-right: 1px solid var(--line);
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.side-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-2);
  padding: 7px 9px;
  border-radius: 9px;
}
.side-item.active { background: var(--accent-tint); color: var(--text-1); }
.fi { width: 13px; height: 11px; border-radius: 3px; background: var(--text-3); flex: none; }
.side-item.active .fi { background: var(--accent); }
.fi.star {
  background: var(--note);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  border-radius: 0;
}

.app-list { padding: 14px 10px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.note-card {
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.note-card.sel { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-tint); }
.nc-title { height: 8px; width: 70%; border-radius: 4px; background: var(--text-2); opacity: 0.9; }
.nc-line  { height: 6px; width: 100%; border-radius: 4px; background: var(--line-strong); }
.nc-line.short { width: 55%; }

.app-editor { padding: 18px 18px; display: flex; flex-direction: column; gap: 11px; }
.app-editor.wide { padding: 22px 26px; }
.ed-title { font-size: 1rem; font-weight: 700; color: var(--text-1); letter-spacing: -0.01em; }
.ed-tools { display: flex; gap: 6px; margin-bottom: 4px; }
.ed-tools span {
  width: 24px; height: 24px;
  display: grid; place-items: center;
  font-size: 0.72rem; font-weight: 700;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text-2);
}
.ed-tools .i { font-style: italic; }
.ed-tools .u { text-decoration: underline; }
.ed-tools .hl-tool { background: linear-gradient(120deg, var(--note), var(--note-2)); border: none; }
.ed-line { height: 8px; border-radius: 5px; background: var(--line-strong); width: 100%; }
.ed-line.w85 { width: 85%; } .ed-line.w70 { width: 70%; } .ed-line.w60 { width: 60%; }
.ed-img {
  height: 70px; border-radius: 10px; margin: 4px 0;
  background: linear-gradient(120deg, rgba(22,166,191,.30), rgba(243,156,18,.25));
  border: 1px solid var(--line);
}

.float-note {
  position: absolute;
  right: -14px;
  bottom: -22px;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  transform: rotate(8deg);
  animation: float 6s ease-in-out infinite;
}
.float-mark { width: 76px; height: 76px; border-radius: 18px; object-fit: cover; filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.35)); }

@keyframes float {
  0%, 100% { transform: rotate(8deg) translateY(0); }
  50%      { transform: rotate(8deg) translateY(-10px); }
}

/* --------------------------- Feature strip --------------------------- */
.strip {
  border-block: 1px solid var(--line);
  background: var(--bg-2);
}
.strip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  color: var(--text-3);
  font-size: 0.9rem;
  font-weight: 600;
}
.strip-row span:nth-child(even) { color: var(--accent); }

/* ----------------------------- Sections ----------------------------- */
.section { padding: clamp(64px, 9vw, 110px) 0; }

.section-head { max-width: 640px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.kicker {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 14px; }
.section-head p { color: var(--text-2); font-size: 1.08rem; }

/* ----------------------------- Features ----------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}
.feat-ico {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-tint);
  color: var(--accent);
  margin-bottom: 18px;
}
.feat-ico svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.16rem; font-weight: 700; margin-bottom: 8px; }
.feature p { color: var(--text-2); font-size: 0.98rem; }

/* ----------------------------- Preview ----------------------------- */
.preview { background: var(--bg-2); border-block: 1px solid var(--line); }
.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: clamp(36px, 6vw, 72px);
}
.preview-copy h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin-bottom: 16px; }
.preview-copy > p { color: var(--text-2); font-size: 1.06rem; margin-bottom: 22px; }

.check-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.check-list li {
  position: relative;
  padding-left: 32px;
  color: var(--text-1);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent-tint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316A6BF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 13px;
  background-repeat: no-repeat;
  background-position: center;
}

/* ----------------------------- Download ----------------------------- */
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 880px;
  margin-inline: auto;
}
.dl-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.dl-card:hover { transform: translateY(-3px); border-color: var(--accent); background: var(--raised); }
.dl-ico { width: 30px; height: 30px; color: var(--text-1); flex: none; }
.dl-card div { display: flex; flex-direction: column; line-height: 1.25; }
.dl-small { font-size: 0.76rem; color: var(--text-3); }
.dl-big { font-size: 1.1rem; font-weight: 700; }
.dl-note { text-align: center; color: var(--text-3); font-size: 0.92rem; margin-top: 26px; }

/* ------------------------------- FAQ ------------------------------- */
.faq-list { display: grid; gap: 12px; }
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 22px;
  transition: border-color 0.2s ease;
}
.faq-list details[open] { border-color: var(--line-strong); }
.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-weight: 600;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: 400;
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list p { color: var(--text-2); padding: 0 0 20px; }

/* ------------------------------- CTA ------------------------------- */
.cta-band { padding: clamp(56px, 8vw, 96px) 0; }
.cta-inner {
  position: relative;
  text-align: center;
  background:
    radial-gradient(60% 120% at 50% 0%, rgba(22, 166, 191, 0.20), transparent 70%),
    var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 72px) 24px;
  box-shadow: var(--shadow);
}
.cta-mark {
  width: 56px; height: 56px;
  border-radius: 13px;
  object-fit: cover;
  margin: 0 auto 18px;
  filter: drop-shadow(0 8px 16px rgba(243, 156, 18, 0.35));
}
.cta-inner h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 12px; }
.cta-inner p { color: var(--text-2); font-size: 1.08rem; margin-bottom: 30px; }

/* ------------------------------ Footer ------------------------------ */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding-top: 56px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
.footer-brand p { color: var(--text-3); margin-top: 14px; max-width: 30ch; font-size: 0.95rem; }
.footer-col h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-3); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--text-2); padding: 6px 0; font-size: 0.95rem; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--text-1); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 0.9rem;
  flex-wrap: wrap;
}
.footer-bottom .to-top:hover { color: var(--text-1); }

/* ------------------------------ Legal pages ------------------------------ */
.legal-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.legal-header .nav { height: 64px; justify-content: space-between; }
.legal {
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(40px, 7vw, 80px) 24px;
}
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 10px; }
.legal .updated { color: var(--text-3); margin-bottom: 36px; }
.legal h2 { font-size: 1.3rem; margin: 36px 0 12px; }
.legal p, .legal li { color: var(--text-2); margin-bottom: 12px; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--accent); }
.legal .note {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--note-2);
  border-radius: 10px;
  padding: 14px 18px;
  color: var(--text-3);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

/* ---------------------------- Scroll reveal ---------------------------- */
.js-enabled .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}
.js-enabled .reveal.in { opacity: 1; transform: none; }

/* ----------------------------- Responsive ----------------------------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 520px; margin-inline: auto; }
  .lede { max-width: none; }
  .preview-grid { grid-template-columns: 1fr; }
  .app-window.tilt { transform: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .download-grid { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .app-body { grid-template-columns: 96px 110px 1fr; }
  .btn-lg { width: 100%; }
  .hero-actions { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .js-enabled .reveal { opacity: 1; transform: none; transition: none; }
  .float-note { animation: none; }
}
