/* Oakedex landing – dark theme, purple/yellow accent */
:root {
  --bg: #1a1a1a;
  --bg-elevated: #2d2d2d;
  --charcoal: #2d2d2d;
  --text: #f5f5f5;
  --text-muted: #a0a0a0;
  --primary: #6a449b;
  --primary-hover: #7d54b3;
  --secondary: #ffcf1c;
  --accent-red: #ed1c24;
  --tertiary: #114c5c;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --radius-lg: 20px;
  --font: 'Outfit', -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 26, 26, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: block;
  line-height: 0;
}

.logo-img {
  height: 36px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--text);
}

.nav-cta {
  color: var(--primary) !important;
}

.nav-cta:hover {
  color: var(--primary-hover) !important;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  min-height: 80vh;
  padding: 32px 24px 56px;
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: auto;
    padding: 40px 24px 56px;
  }
}

.hero-title {
  margin: 0 0 20px;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-lead {
  margin: 0 0 24px;
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 420px;
}

@media (max-width: 900px) {
  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 900px) {
  .hero-cta {
    justify-content: center;
  }
}

/* Hero signup (form in hero) */
.hero-signup {
  margin: 0 0 24px;
  max-width: 460px;
}

@media (max-width: 900px) {
  .hero-signup {
    margin-left: auto;
    margin-right: auto;
  }
}

.hero-signup-label {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.hero-signup .signup-input--hero {
  width: 100%;
  padding: 18px 22px;
  font-size: 1.1rem;
  font-weight: 500;
  background: var(--bg-elevated);
  border: 2px solid rgba(106, 68, 155, 0.5);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.hero-signup .signup-input--hero::placeholder {
  color: var(--text-muted);
}

.hero-signup .signup-input--hero:hover {
  border-color: rgba(106, 68, 155, 0.7);
}

.hero-signup .signup-input--hero:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(106, 68, 155, 0.3);
  outline: none;
}

.hero-signup-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 14px 18px;
  background: rgba(106, 68, 155, 0.12);
  border: 1px solid rgba(106, 68, 155, 0.35);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  transition: background 0.2s, border-color 0.2s;
}

.hero-signup-checkbox:hover {
  background: rgba(106, 68, 155, 0.18);
  border-color: rgba(106, 68, 155, 0.5);
}

.hero-signup-checkbox input {
  width: 22px;
  height: 22px;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.hero-signup-btn {
  margin-top: 16px;
  width: 100%;
  max-width: 100%;
}

.hero-scroll-hint {
  margin: 0;
  font-size: 0.95rem;
}

.hero-scroll-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.hero-scroll-link:hover {
  color: var(--primary);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-screenshot {
  max-width: 100%;
  width: 320px;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
}

.hero-screenshot.hero-promo {
  width: auto;
  max-width: min(100%, 720px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s, transform 0.15s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-store {
  min-width: 160px;
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-title {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
}

.section-lead {
  margin: 0 auto 48px;
  max-width: 560px;
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Features */
.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  border-color: rgba(106, 68, 155, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(106, 68, 155, 0.2);
  border-radius: 10px;
  margin-bottom: 16px;
  overflow: hidden;
}

.feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 600;
}

.feature-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Who's behind */
.whos-behind .whos-behind-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}

.whos-behind-photo-wrap {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(106, 68, 155, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.whos-behind-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.whos-behind-text {
  flex: 1;
  min-width: 0;
}

.whos-behind-text p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
}

@media (max-width: 640px) {
  .whos-behind .whos-behind-inner {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }
}

/* Right in your pocket */
.pocket {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.pocket-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 700px) {
  .pocket-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.pocket-item {
  text-align: center;
}

.pocket-visual {
  margin-bottom: 20px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

.pocket-visual img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
}

.pocket-title {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 600;
}

.pocket-text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Screens */
.screens-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.screen-card {
  margin: 0;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.2s;
}

.screen-card:hover {
  border-color: rgba(106, 68, 155, 0.35);
  transform: translateY(-4px);
}

.screen-card img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
}

.screen-card figcaption {
  padding: 16px 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}

/* Demo iframes (See it in action – inline like screenshots) */
.screens-grid-demos {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.screen-card-demo {
  padding: 0;
  overflow: hidden;
  max-width: 340px;
  justify-self: center;
  display: block;
}

.screen-card-demo .demo-frame-wrap {
  position: relative;
  width: 100%;
  min-height: 420px;
  padding-bottom: 155%;
  aspect-ratio: 1 / 1.55;
  background: var(--charcoal);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.screen-card-demo .demo-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.screens-beta-note {
  margin: -24px auto 24px;
  max-width: 560px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Sign-up */
.cta {
  background: linear-gradient(180deg, rgba(106, 68, 155, 0.12) 0%, transparent 100%);
  border-top: 1px solid var(--border);
}

.cta-inner {
  text-align: center;
  padding: 48px 24px;
}

/* CTA carousel */
.cta-carousel-wrap {
  margin-bottom: 32px;
}

.cta-carousel-outer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 0 8px;
}

.cta-carousel-viewport {
  width: 100%;
  max-width: 520px;
  overflow: hidden;
  perspective: 1200px;
  flex-shrink: 0;
}

.cta-carousel-track {
  display: flex;
  align-items: center;
  gap: 20px;
  transition: transform 0.5s ease;
  will-change: transform;
  transform-style: preserve-3d;
}

.cta-carousel-slide {
  flex-shrink: 0;
  width: 260px;
  aspect-ratio: 9 / 19.5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--charcoal);
  transition: transform 0.5s ease, opacity 0.5s ease;
  transform-origin: center center;
  transform-style: preserve-3d;
}

.cta-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.cta-carousel-slide--left {
  transform: scale(0.9) rotateY(10deg);
  opacity: 0.85;
  z-index: 0;
}

.cta-carousel-slide--center {
  transform: scale(1) rotateY(0);
  opacity: 1;
  z-index: 2;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.cta-carousel-slide--right {
  transform: scale(0.9) rotateY(-10deg);
  opacity: 0.85;
  z-index: 0;
}

.cta-carousel-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.cta-carousel-arrow:hover {
  background: rgba(106, 68, 155, 0.6);
  color: #fff;
}

.cta-carousel-arrow:active {
  transform: scale(0.96);
}

@media (max-width: 380px) {
  .cta-carousel-outer {
    gap: 8px;
    padding: 0 4px;
  }
  .cta-carousel-arrow {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }
  .cta-carousel-viewport {
    max-width: 320px;
  }
  .cta-carousel-slide {
    width: 220px;
  }
}

.cta-carousel-arrow span {
  display: block;
  margin-top: -2px;
}

.cta-carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cta-carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.cta-carousel-dot:hover {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.2);
}

.cta-carousel-dot--active {
  width: 12px;
  height: 12px;
  background: #fff;
  border-color: #fff;
  transform: scale(1);
}

.cta-title {
  margin: 0 0 24px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
}

.cta-signup {
  max-width: 360px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cta-signup .signup-input--cta {
  width: 100%;
  padding: 14px 18px;
  font-size: 1rem;
  text-align: center;
  background: var(--bg-elevated);
  border: 2px solid rgba(106, 68, 155, 0.5);
  border-radius: var(--radius);
}

.cta-signup .signup-input--cta::placeholder {
  color: var(--text-muted);
}

.cta-signup .signup-input--cta:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(106, 68, 155, 0.3);
  outline: none;
}

.cta-signup-btn {
  width: 100%;
  padding: 14px 24px;
  font-size: 1rem;
}

.cta-signup .signup-message {
  margin: 0;
}

/* Sign-up */
.signup {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.signup-form {
  max-width: 480px;
  margin: 0 auto;
}

.signup-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.signup-input {
  flex: 1;
  min-width: 200px;
  padding: 14px 18px;
  font-family: var(--font);
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s;
}

.signup-input::placeholder {
  color: var(--text-muted);
}

.signup-input:hover,
.signup-input:focus {
  border-color: rgba(106, 68, 155, 0.5);
}

.signup-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(106, 68, 155, 0.25);
}

.signup-submit {
  flex-shrink: 0;
}

.signup-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.signup-checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.signup-checkbox:hover {
  color: var(--text);
}

.signup-message {
  font-size: 0.95rem;
  margin: 0;
  padding: 12px 16px;
  border-radius: var(--radius);
}

.signup-message--success {
  color: #1a1a1a;
  background: rgba(255, 207, 28, 0.25);
  border: 1px solid rgba(255, 207, 28, 0.4);
}

.signup-message--error {
  color: #f5f5f5;
  background: rgba(237, 28, 36, 0.2);
  border: 1px solid rgba(237, 28, 36, 0.4);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Policy page */
.policy-page {
  padding: 48px 0 72px;
}

.policy-title {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.policy-updated {
  margin: 0 0 32px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.policy-section {
  margin-bottom: 32px;
  max-width: 680px;
}

.policy-section h2 {
  margin: 0 0 12px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
}

.policy-section p,
.policy-section li {
  margin: 0 0 12px;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.policy-section ul {
  margin: 0 0 12px;
  padding-left: 1.25rem;
}

.policy-section li {
  margin-bottom: 8px;
}

.policy-section a {
  color: var(--primary);
  text-decoration: none;
}

.policy-section a:hover {
  text-decoration: underline;
}

/* Delete account page */
.delete-account-page .policy-updated {
  max-width: 680px;
  margin-bottom: 32px;
}

.delete-account-form {
  max-width: 420px;
  margin-top: 24px;
}

.delete-account-form .form-group {
  margin-bottom: 20px;
}

.delete-account-form .form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

.delete-account-form .form-input {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font);
  font-size: 16px;
  color: var(--text);
  background: var(--bg-elevated);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s;
}

.delete-account-form .form-input::placeholder {
  color: var(--text-muted);
}

.delete-account-form .form-input:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.delete-account-form .form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(106, 68, 155, 0.25);
}

.delete-account-form .signup-message {
  margin-bottom: 16px;
}

.btn-delete {
  background: var(--accent-red) !important;
  color: #fff !important;
}

.btn-delete:hover {
  background: #c4181e !important;
  transform: translateY(-1px);
}

/* Feedback page */
.feedback-page {
  padding: 48px 0 72px;
}

.feedback-page .policy-title {
  margin-bottom: 8px;
}

.feedback-page .feedback-lead {
  margin: 0 0 32px;
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
}

.feedback-form {
  max-width: 520px;
}

.feedback-form .form-group {
  margin-bottom: 20px;
}

.feedback-form .form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

.feedback-form .form-input,
.feedback-form .form-select,
.feedback-form .form-textarea {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font);
  font-size: 16px;
  color: var(--text);
  background: var(--bg-elevated);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s;
}

.feedback-form .form-textarea {
  min-height: 160px;
  resize: vertical;
}

.feedback-form .form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23a0a0a0' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.feedback-form .form-input::placeholder,
.feedback-form .form-textarea::placeholder {
  color: var(--text-muted);
}

.feedback-form .form-input:hover,
.feedback-form .form-select:hover,
.feedback-form .form-textarea:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.feedback-form .form-input:focus,
.feedback-form .form-select:focus,
.feedback-form .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(106, 68, 155, 0.25);
}

.feedback-form .form-textarea:focus {
  outline: none;
}

.feedback-form .form-textarea--short {
  min-height: 100px;
}

.feedback-form .form-input--file {
  padding: 10px 14px;
  cursor: pointer;
}

.feedback-form .form-input--file::file-selector-button {
  margin-right: 12px;
  padding: 8px 14px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: var(--primary);
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.feedback-form .form-hint {
  margin: 6px 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.feedback-form .submit-wrap {
  margin-top: 28px;
}

.feedback-form .signup-message {
  margin-top: 16px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  margin: 0 0 8px;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 14px;
}

.footer-legal {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.8;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive nav */
@media (max-width: 600px) {
  .nav {
    gap: 16px;
  }
  .nav a:not(.nav-cta) {
    display: none;
  }
}
