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

:root {
  --accent: hsl(180, 55%, 42%);
  --accent-light: hsl(180, 50%, 52%);
  --accent-bg: hsl(180, 30%, 96%);
  --purple: hsl(255, 45%, 50%);
  --purple-bg: hsl(255, 45%, 96%);
  --text: #2c2c2c;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --bg: #ffffff;
  --bg-off: #f9fafb;
  --border: #e5e7eb;
  --dark: #1e2028;
  --dark-mid: #282a34;
  --dark-light: #32343e;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 1px 8px rgba(0,0,0,0.06); }
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 88px;
}
.nav-brand {
  font-size: 1.35rem; font-weight: 700; color: var(--text);
  text-decoration: none; letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 0.5rem;
}
.nav-brand .logo-icon {
  width: 72px; height: 72px; border-radius: 6px;
  object-fit: contain;
}
.nav-links { display: flex; gap: 0.25rem; list-style: none; }
.nav-links a {
  padding: 0.4rem 0.9rem; border-radius: 6px; font-size: 0.875rem;
  color: var(--text-muted); text-decoration: none; font-weight: 500;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--bg-off); }
.nav-links a.active { color: var(--accent); }

.nav-github { color: #1a1a1a; }
.nav-github:hover { color: var(--accent); }
.nav-github svg { vertical-align: middle; }

.footer-github { color: rgba(255,255,255,0.55); padding: 0; }
.footer-github:hover { color: rgba(255,255,255,0.8); }
.footer-github svg { vertical-align: middle; }

.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: white; border: 1px solid var(--border); border-radius: 8px;
  padding: 0.35rem 0; min-width: 160px; list-style: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.nav-dropdown-menu li a {
  display: block; padding: 0.5rem 1rem; font-size: 0.85rem;
  white-space: nowrap;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }

.nav-hamburger {
  display: none; background: none; border: none; cursor: pointer; padding: 0.5rem;
}
.nav-hamburger span {
  display: block; width: 20px; height: 2px; background: var(--text);
  margin: 4px 0; transition: 0.3s;
}

/* ── HERO ── */
#hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 7rem 2rem 4rem;
  background: linear-gradient(180deg, var(--bg) 0%, var(--accent-bg) 100%);
  position: relative;
}
@media (max-width: 640px) {
  #hero { padding-top: 8rem; }
}
.hero-content { max-width: 720px; }
.hero-content h1 {
  font-size: 3.5rem; font-weight: 700; letter-spacing: -0.03em;
  line-height: 1.15; margin-bottom: 0.5rem;
}
.hero-content h1 .hero-line2 { white-space: nowrap; font-size: clamp(1.4rem, 5.5vw, 3.5rem); color: var(--text); }
.hero-content h1 .accent { color: var(--accent); }
.hero-video {
  max-width: 900px; margin: 3rem auto 3rem;
}
.hero-video video {
  width: 100%; border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  cursor: pointer;
}
.hero-video.expanded {
  max-width: 80vw; width: 80vw;
  margin-left: calc(-40vw + 50%);
  border-radius: 0;
  transition: all 0.4s ease;
}
.hero-video.expanded video {
  border-radius: 0;
}
@keyframes blink { 50% { opacity: 0; } }
.hero-sub {
  font-size: 1.05rem; color: var(--text-light); margin-bottom: 2.5rem;
}
.hero-secondary {
  display: flex; flex-direction: column; align-items: center;
  gap: 1.5rem; margin: 1.5rem 0 2rem;
}

.hero-prompts {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.625rem; font-size: 0.9375rem;
}
.hero-prompts p { margin: 0; }
.hero-prompts a {
  text-decoration: none; font-weight: 500;
  transition: opacity 150ms ease, border-bottom-style 150ms ease;
}
.hero-prompts .muted { display: none; }
.hero-prompts a {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
}
.hero-prompts a:hover { opacity: 0.85; }
.hero-prompts .link-teal   { background: var(--accent-bg); color: var(--accent); }
.hero-prompts .link-purple { background: var(--purple-bg); color: var(--purple); }

@media (min-width: 641px) {
  .hero-prompts { gap: 0.5rem; font-size: 1rem; }
  .hero-prompts .muted {
    display: inline; color: var(--text-light); margin-right: 0.25rem;
  }
  .hero-prompts a {
    display: inline; padding: 0 0 1px 0;
    background: transparent; border-radius: 0;
    border-bottom: 1px dashed currentColor; opacity: 0.9;
  }
  .hero-prompts a:hover { opacity: 1; border-bottom-style: solid; }
  .hero-prompts .link-teal   { color: var(--accent); background: transparent; }
  .hero-prompts .link-purple { color: var(--purple); background: transparent; }

}

.hero-beta {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.625rem;
  padding: 1rem 1.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}
.hero-beta-title {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
}
.hero-beta-links {
  display: flex;
  gap: 0.25rem;
}
.hero-beta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-bg);
  color: var(--accent);
  text-decoration: none;
  transition: transform 0.15s, background 0.15s, color 0.15s;
}
.hero-beta-link:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-1px);
}

.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem; border-radius: 8px; font-size: 0.95rem;
  font-weight: 600; text-decoration: none; transition: all 0.2s;
  cursor: pointer; border: none;
}
.btn-primary {
  background: var(--accent); color: white;
}
.btn-primary:hover { background: var(--accent-light); transform: translateY(-1px); }
.btn-secondary {
  background: white; color: var(--text); border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.scroll-hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  animation: bounce 2s infinite;
}
.scroll-hint svg { width: 24px; height: 24px; stroke: var(--text-light); }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ── SECTIONS ── */
section { padding: 6rem 2rem; }
.container { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--accent); margin-bottom: 0.75rem;
}
.section-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 2.5rem; font-weight: 600; letter-spacing: -0.02em;
  margin-bottom: 1rem; line-height: 1.2;
}
.section-sub {
  font-size: 1.1rem; color: var(--text-muted); max-width: 600px;
  margin-bottom: 3rem;
}

/* ── FEATURES ── */
#features, #desktop-features { background: var(--bg-off); }
#features .section-title, #features .section-label, #features .section-sub,
#desktop-features .section-title, #desktop-features .section-label, #desktop-features .section-sub {
  text-align: center;
}
#features .section-sub, #desktop-features .section-sub { margin-left: auto; margin-right: auto; }
#desktop-features { background: var(--bg); }
#desktop-features .feature-panel-inner {
  grid-template-columns: 1fr; gap: 1.5rem; max-width: 800px; margin: 0 auto;
}
#desktop-features .feature-desc { text-align: center; }
#desktop-features .feature-video video { max-width: 80%; }

.feature-tabs {
  display: flex; justify-content: center; gap: 0.25rem;
  margin-bottom: 3rem; flex-wrap: wrap;
}
.feature-tab {
  padding: 0.5rem 1.25rem; border-radius: 8px; font-size: 0.875rem;
  font-weight: 600; color: var(--text); background: white;
  border: 1px solid var(--border); cursor: pointer; transition: all 0.2s;
  font-family: inherit;
}
.feature-tab:hover { border-color: var(--accent); color: var(--accent); }
.feature-tab.active {
  background: var(--accent); color: white;
  border-color: var(--accent);
}

.feature-panels { position: relative; }
.feature-panel {
  display: none; animation: fadeIn 0.4s ease;
}
.feature-panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.feature-panel-inner {
  display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 2.5rem;
  align-items: center;
}
.feature-desc { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; }
.feature-desc h3 {
  font-size: 1.1rem; color: var(--text); margin-bottom: 0.5rem; font-weight: 600;
}
.feature-video {
  cursor: pointer; transition: all 0.4s ease;
  text-align: center;
}
.feature-mockup {
  margin: 0 auto;
}
.feature-video video {
  width: 100%; max-width: 300px; border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.feature-video.expanded {
  max-width: 80vw; width: 80vw;
  margin-left: calc(-40vw + 50%);
}
.feature-video.expanded video {
  max-width: 100%; border-radius: 0;
}

.feature-mockup {
  background: white; border-radius: 12px; border: 1px solid var(--border);
  overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.mockup-titlebar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; background: var(--bg-off); border-bottom: 1px solid var(--border);
}
.mockup-dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.mockup-dot.red { background: #ff5f57; }
.mockup-dot.yellow { background: #ffbd2e; }
.mockup-dot.green { background: #28c840; }
.mockup-title {
  flex: 1; text-align: center; font-size: 0.7rem;
  color: var(--text-light); font-weight: 500;
}
.mockup-body {
  padding: 1.5rem; font-size: 0.82rem; color: var(--text);
  line-height: 1.8; min-height: 220px;
}
.mockup-body .jot-slot {
  display: inline-block; background: var(--accent-bg); color: var(--accent);
  font-size: 0.7rem; font-weight: 600; padding: 2px 8px; border-radius: 4px;
  margin-right: 4px;
}
.mockup-body .mode-strip {
  display: flex; gap: 0.5rem; margin: 0.75rem 0; font-size: 0.7rem;
}
.mockup-body .mode-strip span {
  padding: 3px 10px; border-radius: 4px; background: var(--bg-off);
  color: var(--text-muted); font-weight: 500;
}
.mockup-body .mode-strip span.active { background: var(--accent); color: white; }
.mockup-body .list-item {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
}
.mockup-body .list-item .checkbox {
  width: 16px; height: 16px; border: 2px solid var(--border); border-radius: 4px;
  flex-shrink: 0;
}
.mockup-body .list-item .checkbox.checked {
  background: var(--accent); border-color: var(--accent); position: relative;
}
.mockup-body .list-item .checkbox.checked::after {
  content: ''; position: absolute; top: 2px; left: 5px;
  width: 4px; height: 8px; border: solid white; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.mockup-body .list-item.done { color: var(--text-light); text-decoration: line-through; }
.mockup-body .locked-icon {
  display: inline-flex; align-items: center; gap: 0.35rem;
  color: var(--accent); font-weight: 600; font-size: 0.75rem;
}
.mockup-body .scratch-text {
  font-family: 'Source Serif 4', Georgia, serif; font-size: 0.9rem;
  color: var(--text-muted); line-height: 1.9;
}
.mockup-body .scratch-cursor {
  display: inline-block; width: 2px; height: 1em; background: var(--accent);
  animation: blink 1s step-end infinite; vertical-align: text-bottom;
}
.mockup-body .category-strip {
  display: flex; gap: 0.35rem; margin-bottom: 1rem; font-size: 0.65rem;
  font-weight: 600; letter-spacing: 0.03em;
}
.mockup-body .category-strip span {
  padding: 3px 8px; border-radius: 4px; color: var(--text-light);
}
.mockup-body .category-strip span.active {
  background: var(--accent); color: white;
}

/* ── GRID ── */
#grid { background: var(--bg); }
#grid .section-title, #grid .section-label, #grid .section-sub {
  text-align: center;
}
#grid .section-sub { margin-left: auto; margin-right: auto; }

.grid-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.grid-card {
  background: var(--bg-off); border: 1px solid var(--border);
  border-radius: 12px; padding: 2rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.grid-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.grid-card .card-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--accent-bg); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.grid-card .card-icon svg { width: 20px; height: 20px; }
.grid-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.grid-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }
a.grid-card-link { text-decoration: none; cursor: pointer; display: block; }

/* ── PRICING ── */
#download { background: var(--bg-off); }
#download .section-title, #download .section-label, #download .section-sub {
  text-align: center;
}
#download .section-sub { margin-left: auto; margin-right: auto; }

.download-cards {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
  max-width: 1000px; margin: 0 auto;
}
.download-card {
  display: flex; align-items: center; gap: 1.25rem;
  background: white; border: 1px solid var(--accent); border-radius: 12px;
  padding: 1.5rem; text-decoration: none; color: var(--text);
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(48, 160, 160, 0.12);
}
.download-card:hover {
  transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.download-icon { color: var(--accent); flex-shrink: 0; }
.download-platform { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.2rem; }
.download-store { font-size: 0.85rem; color: var(--text-muted); }
.download-meta { font-size: 0.7rem; color: var(--text-light); margin-top: 0.25rem; }

@media (max-width: 900px) {
  .download-cards { grid-template-columns: repeat(2, 1fr); max-width: 500px; }
}
@media (max-width: 640px) {
  .download-cards { grid-template-columns: 1fr; max-width: 400px; }
}


/* ── PHILOSOPHY ── */
#philosophy { background: var(--dark); color: white; }
#philosophy .section-label { color: var(--accent-light); }
#philosophy .section-sub { color: rgba(255,255,255,0.55); }

.philosophy-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem;
}
.philosophy-item { display: flex; gap: 1rem; }
.philosophy-item .num {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,0.08); color: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem;
}
.philosophy-item h3 {
  font-size: 1rem; font-weight: 600; margin-bottom: 0.35rem;
}
.philosophy-item p {
  font-size: 0.875rem; color: rgba(255,255,255,0.55); line-height: 1.6;
}

/* ── FOOTER ── */
footer {
  background: var(--dark-mid); color: rgba(255,255,255,0.4);
  padding: 3rem 2rem 2rem;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 2rem;
}
.footer-brand { font-size: 1.1rem; font-weight: 700; color: rgba(255,255,255,0.7); margin-bottom: 0.5rem; }
.footer-brand-sub { font-size: 0.8rem; max-width: 280px; }
.footer-col h4 {
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: rgba(255,255,255,0.55); margin-bottom: 0.75rem;
}
.footer-col a {
  display: block; font-size: 0.85rem; color: rgba(255,255,255,0.4);
  text-decoration: none; padding: 0.2rem 0; transition: color 0.2s;
}
.footer-col a:hover { color: rgba(255,255,255,0.8); }
.footer-col h4 a {
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: rgba(255,255,255,0.55); padding: 0;
}
.footer-col h4 a:hover { color: rgba(255,255,255,0.8); }
.footer-bottom {
  max-width: 1100px; margin: 2rem auto 0;
  padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.75rem; text-align: center;
}
.footer-bottom a,
.footer-bottom a:visited { color: var(--accent-light); }
.footer-bottom a:hover { color: var(--accent); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .feature-panel-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .feature-panel-inner .feature-desc:last-child { order: 3; }
  .grid-cards { grid-template-columns: repeat(2, 1fr); }
  .philosophy-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero-content h1 { font-size: 2.5rem; }
  .section-title { font-size: 2rem; }
  .hero-video { max-width: 100%; margin: 2rem 0; }
  .hero-video video { border-radius: 8px; }
  .grid-cards { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  nav.open .nav-links {
    display: flex; flex-direction: column;
    position: absolute; top: 88px; left: 0; right: 0;
    background: #e8eef3; border-bottom: 1px solid #c9d3dc;
    padding: 0.5rem 1.25rem 1rem; gap: 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  }
  nav.open .nav-links > li { border-bottom: 1px solid var(--border); }
  nav.open .nav-links > li:last-child { border-bottom: none; }
  nav.open .nav-links > li > a {
    padding: 0.75rem 0.5rem; display: block;
    font-size: 0.95rem; font-weight: 600; color: var(--text);
  }
  .nav-dropdown-menu {
    position: static; box-shadow: none; border: none;
    background: none; padding: 0 0 0.5rem 0.75rem;
  }
  .nav-dropdown-menu li { border: none !important; }
  .nav-dropdown-menu li a {
    padding: 0.35rem 0.5rem !important;
    font-size: 0.85rem !important; font-weight: 500 !important;
    color: var(--text-muted) !important;
  }
  .nav-dropdown-menu li a:hover { color: var(--accent) !important; }
  .nav-dropdown:hover .nav-dropdown-menu,
  nav.open .nav-dropdown-menu { display: block; }
}
@media (max-width: 900px) and (orientation: landscape) {
  .hero-video { margin: 1.5rem auto; }
}

/* ── BETA SIGNUP FORM ── */
.beta-form {
  background: var(--bg-off);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.beta-form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.beta-form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: -0.75rem;
}
.beta-form input[type="email"] {
  font: inherit;
  font-size: 1rem;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  width: 100%;
  transition: border-color 0.15s;
}
.beta-form input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg);
}
.beta-form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  cursor: pointer;
}
.beta-form-consent input[type="checkbox"] {
  margin-top: 0.2rem;
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent);
  cursor: pointer;
}
.beta-form-consent a { color: var(--accent); }
.beta-form-submit {
  align-self: flex-start;
  margin-top: 0.25rem;
}
.beta-form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.beta-form-error {
  display: none;
  background: hsl(0, 70%, 97%);
  border: 1px solid hsl(0, 60%, 85%);
  color: hsl(0, 55%, 40%);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.5;
}
.beta-form-error.visible {
  display: block;
}
.beta-form-thanks {
  background: var(--accent-bg);
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: 2rem;
  color: var(--text);
}
.beta-form-thanks h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.beta-form-thanks p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}
.beta-form-thanks p:last-child { margin-bottom: 0; }
.beta-form-thanks a { color: var(--accent); }
@media (max-width: 640px) {
  .beta-form { padding: 1.5rem; }
}
