/* ── AnyMarker Landing Page ────────────────────── */

:root {
  --am-bg-root: #090911;
  --am-bg-card: #0f0f1a;
  --am-bg-card-alt: #13131e;
  --am-bg-button: #373a44;
  --am-bg-glass: rgba(255, 255, 255, 0.05);
  --am-bg-glass-hover: rgba(255, 255, 255, 0.08);
  --am-bg-input-inner: #22222f;
  --am-bg-recording-ready: #14822c;
  --am-bg-icon-button: rgba(214, 222, 253, 0.1);

  --am-text-primary: #ffffff;
  --am-text-dim: rgba(255, 255, 255, 0.3);
  --am-text-dim-heavy: rgba(255, 255, 255, 0.5);
  --am-text-accent: #bcbce8;
  --am-text-accent-dim: rgba(188, 188, 232, 0.4);
  --am-text-muted: #5e5e77;
  --am-accent: #8011f0;

  --am-border-subtle: rgba(255, 255, 255, 0.1);
  --am-border-bright: rgba(255, 255, 255, 0.27);
  --am-border-header: #161625;

  --am-radius-button: 12px;
  --am-radius-card: 16px;
  --am-radius-form: 6px;
  --am-radius-icon: 8px;

  --am-font: 'Geist', 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --am-font-emoji: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;

  --am-text-base: 14px;
  --am-text-sm: 12px;

  --am-space-xs: 4px;
  --am-space-sm: 6px;
  --am-space-md: 8px;
  --am-space-lg: 12px;
  --am-space-xl: 16px;
}

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

body {
  font-family: var(--am-font);
  font-size: var(--am-text-base);
  font-weight: 400;
  color: var(--am-text-primary);
  background: var(--am-bg-root);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

.hidden { display: none !important; }

/* ── Shader Background ─────────────────────────── */

.shader-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── Page Container ────────────────────────────── */

.am-page {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(48px, 10vw, 120px);
  min-height: 100vh;
  padding: 80px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Left Column ───────────────────────────────── */

.am-left {
  flex: 0 0 auto;
  max-width: 420px;
  display: flex;
  flex-direction: column;
}

.am-icon {
  width: 121px;
  height: 121px;
  flex-shrink: 0;
  margin-bottom: 12px;
}

.am-title {
  font-family: var(--am-font);
  font-size: 50px;
  font-weight: 900;
  color: var(--am-text-primary);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.am-slogan {
  font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 18px;
  font-weight: 900;
  color: var(--am-accent);
  margin-bottom: 16px;
  line-height: 1.2;
}

.am-desc {
  font-family: var(--am-font);
  font-size: 16px;
  font-weight: 500;
  color: var(--am-text-primary);
  line-height: 1.4;
  margin-bottom: 60px;
}

/* ── Notify / Form Section ─────────────────────── */

.am-notify-section {
  margin-bottom: 8px;
}

.am-notify-label {
  font-family: var(--am-font);
  font-size: 18px;
  font-weight: 900;
  color: var(--am-text-primary);
  margin-bottom: 6px;
}

/* ── Custom Email Form ─────────────────────────── */

.am-form-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  min-height: 42px;
  max-width: 385px;
}

.am-form-input {
  flex: 1;
  min-width: 0;
  padding: 6px 10px;
  background: #22222f;
  border: none;
  border-radius: 8px;
  font-family: var(--am-font);
  font-size: 14px;
  font-weight: 500;
  color: var(--am-text-primary);
  outline: none;
  min-height: 34px;
  line-height: 1.4;
}

.am-form-input::placeholder {
  color: var(--am-text-dim);
  font-weight: 400;
  opacity: 1;
}

.am-form-input:focus {
  background: #2a2a3a;
}

.am-form-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  border-radius: 8px;
  font-family: var(--am-font);
  font-size: 14px;
  font-weight: 500;
  background: #384FF8;
  border: none;
  color: var(--am-text-primary);
  cursor: pointer;
  height: 34px;
  white-space: nowrap;
  transition: background 0.15s;
}

.am-form-btn:hover {
  background: #5870ff;
}

.am-form-btn:active {
  background: #2a3dd5;
}

.am-form-error {
  font-family: var(--am-font);
  font-size: 13px;
  font-weight: 400;
  color: #f87171;
  margin-top: 8px;
  max-width: 385px;
}

.am-confirm-text {
  font-family: var(--am-font);
  font-size: 16px;
  font-weight: 500;
  color: var(--am-text-primary);
  line-height: 1.4;
}

/* ── Disclaimer ────────────────────────────────── */

.am-disclaimer {
  font-family: var(--am-font);
  font-size: 12px;
  font-weight: 500;
  color: var(--am-text-primary);
  opacity: 0.6;
  margin-bottom: 32px;
}

/* ── Credit ────────────────────────────────────── */

.am-credit {
  font-family: var(--am-font);
  font-size: 12px;
  font-weight: 500;
  color: var(--am-text-primary);
  opacity: 0.6;
  margin-top: auto;
}

.am-credit-link {
  color: #BF85F9;
  text-decoration: none;
  transition: opacity 0.15s;
}

.am-credit-link:hover {
  opacity: 0.7;
}

/* ── Right Column: App UI ──────────────────────── */

.am-right {
  flex-shrink: 0;
}

.am-ui-gif {
  display: block;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.5));
}

/* ── Panel (from Component-Library) ────────────── */

.panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 10px;
  padding-bottom: 8px;
  width: 405px;
  background-image: linear-gradient(180deg, #110D28 0%, #141527 100%);
  border-radius: var(--am-radius-card);
  border: 1px solid var(--am-border-subtle);
  overflow: hidden;
}

.titlebar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 50px;
  width: 385px;
  padding: 10px 10px 10px 0;
  background: linear-gradient(180deg in oklab, #110D27 0%, #100D24 53%, rgba(14,12,31,0.00) 100%);
}

.titlebar-stoplights {
  width: 62px;
  height: 16px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sl-btn {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: none;
  cursor: default;
  padding: 0;
}

.sl-close-btn { background: #ff5f57; }
.sl-min-btn { background: #febc2e; }
.sl-max-btn { background: var(--am-bg-button); }

.panel-titlebar-title {
  flex: 1;
  font-size: var(--am-text-base);
  font-weight: 700;
  color: var(--am-text-accent);
  line-height: 1;
  user-select: none;
}

.panel-titlebar-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--am-radius-button);
  cursor: default;
  border: none;
  background: none;
  color: var(--am-text-accent);
  padding: 8px;
}

.panel-section {
  display: flex;
  flex-direction: column;
}

.dock-section-card {
  background: var(--am-bg-card);
  border: 1px solid var(--am-border-subtle);
  border-radius: var(--am-radius-card);
  overflow: hidden;
  width: 385px;
}

.card-header {
  display: flex;
  align-items: center;
  padding: 16px;
  min-height: 56px;
  background-image: linear-gradient(180deg, var(--am-border-header) 0%, rgba(22,22,37,0.00) 99%);
  border-bottom: 1px solid var(--am-border-header);
  border-radius: var(--am-radius-card) var(--am-radius-card) 0 0;
  gap: 8px;
  width: 100%;
}

.card-header-title {
  flex: 1;
  font-size: var(--am-text-base);
  font-weight: 700;
  color: var(--am-text-accent);
  line-height: 1;
}

.card-header-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--am-bg-recording-ready);
}

.card-header-icon img {
  width: 24px;
  height: 24px;
}

.card-header-action {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--am-radius-icon);
  cursor: default;
  background: var(--am-bg-icon-button);
  padding: 4px;
  border: none;
  color: var(--am-text-dim-heavy);
}

.recording-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 12px 8px 8px;
  width: 385px;
  height: 72px;
}

.rec-timer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--am-radius-form);
  font-size: var(--am-text-base);
  font-weight: 400;
  font-family: var(--am-font);
  white-space: nowrap;
}

.rec-timer-inactive {
  color: var(--am-text-dim-heavy);
  width: 134px;
  flex-shrink: 0;
}

.rec-timer-inactive .rec-timer-dot { opacity: 0.3; }

.rec-timer-dot {
  font-family: var(--am-font-emoji);
  font-size: 10px;
  line-height: 1;
}

.rec-timer-time {
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.rec-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 10px;
  border-radius: var(--am-radius-button);
  font-size: var(--am-text-base);
  font-weight: 400;
  font-family: var(--am-font);
  border: none;
  cursor: default;
  white-space: nowrap;
  user-select: none;
}

.rec-btn-ready {
  background: var(--am-bg-recording-ready);
  border: 1px solid var(--am-border-bright);
  color: var(--am-text-primary);
  width: 141px;
  height: 40px;
}

.rec-btn-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
}

.rec-btn-label { line-height: 1; }

.marker-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 16px 8px;
  width: 385px;
  height: 58px;
}

.marker-input-row-inner {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  background: var(--am-bg-glass);
  border-radius: var(--am-radius-button);
  min-height: 42px;
}

.marker-input {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: none;
  border-radius: var(--am-radius-icon);
  border: none;
  outline: none;
  font-size: var(--am-text-base);
  font-weight: 400;
  font-family: var(--am-font);
  color: var(--am-text-dim);
  min-height: 34px;
  min-width: 0;
}

.marker-input-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--am-radius-icon);
  font-size: var(--am-text-base);
  font-weight: 400;
  font-family: var(--am-font);
  background: var(--am-bg-button);
  border: 1px solid var(--am-border-subtle);
  color: var(--am-text-primary);
  cursor: default;
  height: 34px;
  flex-shrink: 0;
}

.marker-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  width: 385px;
}

.marker-row {
  display: flex;
  gap: 8px;
  width: 100%;
}

.marker-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 10px;
  border-radius: var(--am-radius-button);
  font-size: var(--am-text-base);
  font-weight: 400;
  font-family: var(--am-font);
  background: var(--am-bg-button);
  border: 1px solid var(--am-border-subtle);
  color: var(--am-text-primary);
  cursor: default;
  user-select: none;
  height: 69px;
  min-width: 112px;
}

.marker-btn-emoji {
  font-family: var(--am-font-emoji);
  font-size: var(--am-text-base);
  display: block;
}

.marker-btn-label {
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.embed-card {
  background: var(--am-bg-card);
  border: 1px solid var(--am-border-subtle);
  border-radius: var(--am-radius-card);
  overflow: hidden;
  width: 385px;
}

.embed-card-body {
  display: flex;
  gap: 8px;
  padding: 16px;
}

.embed-card-footer {
  display: flex;
  padding: 0 16px 16px;
}

.dropbox {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 10px;
  border-radius: var(--am-radius-button);
  min-height: 112px;
  min-width: 112px;
  cursor: default;
  user-select: none;
}

.dropbox-empty {
  background: var(--am-bg-card-alt);
  border: 1px dashed var(--am-border-subtle);
}

.dropbox-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropbox-empty .dropbox-icon { color: #595971; }

.dropbox-label {
  font-size: var(--am-text-sm);
  font-weight: 400;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.dropbox-empty .dropbox-label { color: var(--am-text-accent-dim); }

.embed-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 10px;
  border-radius: var(--am-radius-button);
  font-size: var(--am-text-base);
  font-weight: 400;
  font-family: var(--am-font);
  border: 1px solid rgba(255,255,255,0.3);
  background: #b95021;
  color: var(--am-text-primary);
  cursor: default;
  height: 40px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.embed-btn-shimmer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 0%,
    transparent 30%,
    rgba(214, 222, 253, 0.15) 40%,
    rgba(214, 222, 253, 0.3) 50%,
    rgba(214, 222, 253, 0.15) 60%,
    transparent 70%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: am-shimmer 2s ease-in-out infinite;
}

@keyframes am-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Responsive: Stack on mobile ───────────────── */

@media (max-width: 900px) {
  .am-page {
    flex-direction: column;
    align-items: center;
    gap: 48px;
    padding: 60px 24px;
  }

  .am-left {
    max-width: 100%;
    align-items: center;
    text-align: center;
  }

  .am-title {
    font-size: 40px;
  }

  .am-form-control {
    max-width: 385px;
    width: 100%;
  }

  .am-right {
    filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.5));
  }
}
