/* ============================================================
   landing.css — Shared styles for deskflo landing pages
   ============================================================
   Imports nothing — relies on css/style.css being loaded first
   for the CSS custom properties (:root variables).
   ============================================================ */


/* ── Bridge bar ─────────────────────────────────────────────── */

.bridge-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-card);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 2px 20px rgba(49,51,46,.04);
}

.bridge-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  text-decoration: none;
}

.bridge-text {
  font-size: 13px;
  color: var(--text-secondary);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bridge-text strong {
  color: var(--text);
  font-weight: 600;
}

.bridge-chips {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
}

.bridge-chip {
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--bg);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all .2s;
  white-space: nowrap;
}

.bridge-chip:hover {
  background: var(--bg-card-hover);
  color: var(--text);
}

.bridge-chip.active {
  background: var(--accent);
  color: white;
}

.bridge-cta {
  font-size: 12px;
  font-weight: 600;
  padding: 7px 18px;
  border-radius: 20px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
  display: inline-block;
}

.bridge-cta:hover {
  filter: brightness(1.08);
}


/* ── Landing page content area ──────────────────────────────── */

.landing-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 24px 48px;
}

/* Tool comes first — no top padding gap before it */
.landing-tool {
  margin-bottom: 40px;
}

/* Hero text below the tool */
.landing-hero {
  margin-bottom: 28px;
}

.landing-hero h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
  margin: 0 0 8px;
}

.landing-hero p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 600px;
  margin: 0;
}

/* SEO content block */
.landing-seo {
  max-width: 680px;
  margin-bottom: 32px;
}

.landing-seo h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px;
}

.landing-seo p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 0 12px;
}

/* Bottom CTA card */
.landing-bottom-cta {
  background: var(--bg-card);
  border-radius: 2rem;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.landing-bottom-cta h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px;
}

.landing-bottom-cta p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

/* Footer */
.landing-footer {
  text-align: center;
  padding: 20px 24px 32px;
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.6;
}

.landing-footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.landing-footer a:hover {
  text-decoration: underline;
}


/* ═══════════════════════════════════════════════════════════════
   HERO TOOL OVERRIDES
   All selectors are scoped under .landing-tool so they never
   affect the main dashboard or any other context.
   ═══════════════════════════════════════════════════════════════ */


/* ─────────────────────────────────────────────────────────────
   POMODORO TIMER — large centered ring layout
   ───────────────────────────────────────────────────────────── */

/* Make the card a flex column so we can use order to resequence
   preset buttons below the ring (source order: header → presets → body) */
.landing-tool #timer-card {
  display: flex;
  flex-direction: column;
}

/* Presets drop below the ring using CSS order */
.landing-tool .timer-presets {
  order: 3;
  justify-content: center;
  margin-bottom: 0;
  padding-bottom: 24px;
}

/* Timer body: centered column, generous vertical breathing room */
.landing-tool .timer-body {
  order: 2;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px 28px;
  gap: 28px;
}

/* Force the ring container to 300px — override style.css max-height:165px */
.landing-tool .timer-ring-container {
  width: 300px;
  height: 300px;
  max-height: none;
  flex: none;
}

/* Large timer digits */
.landing-tool .timer-time {
  font-size: 52px !important;
  letter-spacing: -1px;
}

.landing-tool .timer-mode-label {
  font-size: 15px;
  margin-top: 2px;
}

/* Controls: centered row, larger tap targets */
.landing-tool .timer-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  flex: none;
}

.landing-tool .timer-controls {
  flex-direction: row;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.landing-tool .timer-controls .btn {
  padding: 12px 28px;
  font-size: 15px;
  min-width: 96px;
}

.landing-tool .timer-hint {
  text-align: center;
}


/* ─────────────────────────────────────────────────────────────
   HYDRATION TRACKER — centered glass, large count
   ───────────────────────────────────────────────────────────── */

.landing-tool #hydration-card {
  display: flex;
  flex-direction: column;
}

/* Stack glass on top of info block, everything centered */
.landing-tool .hydration-body {
  flex-direction: column;
  align-items: center;
  padding: 32px 24px 20px;
  gap: 20px;
}

/* Scale up the glass SVG (CSS overrides the HTML width/height attributes) */
.landing-tool .hydration-glass-svg {
  width: 120px;
  height: 150px;
}

/* Center the info block, limit its width so it looks intentional */
.landing-tool .hydration-info {
  width: 100%;
  max-width: 300px;
  align-items: center;
}

.landing-tool .hydration-count-row {
  justify-content: center;
  gap: 10px;
}

/* Large count number */
.landing-tool .hydration-count {
  font-size: 52px;
}

/* Bigger log button */
.landing-tool #hydration-log-btn {
  padding: 13px 32px;
  font-size: 16px;
  justify-content: center;
}


/* ─────────────────────────────────────────────────────────────
   STRETCH REMINDER — prominent exercise preview + big CTA
   ───────────────────────────────────────────────────────────── */

.landing-tool .stretch-preview {
  padding: 20px;
  margin-bottom: 20px;
}

.landing-tool .stretch-preview-name {
  font-size: 20px;
}

.landing-tool .stretch-preview-desc {
  font-size: 14px;
  line-height: 1.65;
  margin-top: 6px;
}

.landing-tool .stretch-actions {
  gap: 10px;
}

.landing-tool #stretch-start-btn {
  padding: 13px 32px;
  font-size: 16px;
}

.landing-tool #stretch-different-btn {
  padding: 13px 20px;
  font-size: 15px;
}


/* ─────────────────────────────────────────────────────────────
   AMBIENT SOUNDS — larger cards, icon-centered layout
   ───────────────────────────────────────────────────────────── */

/* Fewer, wider columns — cards feel more substantial */
.landing-tool .ambient-grid {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

/* Switch to single-column centered layout inside each card */
.landing-tool .ambient-sound-card {
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto auto;
  text-align: center;
  justify-items: center;
  padding: 20px 14px;
  min-height: 110px;
}

.landing-tool .ambient-dot {
  /* reposition indicator to top-right corner */
  position: absolute;
  top: 10px;
  right: 10px;
  grid-column: unset;
  grid-row: unset;
}

.landing-tool .ambient-sound-icon {
  grid-column: 1;
  grid-row: 1;
  font-size: 28px;
  line-height: 1;
  margin-bottom: 8px;
}

.landing-tool .ambient-sound-label {
  grid-column: 1;
  grid-row: 2;
  font-size: 13px;
  font-weight: 600;
}

.landing-tool .ambient-sound-desc {
  grid-column: 1;
  grid-row: 3;
  font-size: 11px;
}

.landing-tool .ambient-volume-row {
  grid-column: 1;
  grid-row: 4;
  width: 100%;
  justify-content: center;
}

/* ambient-sound-card needs position:relative for the dot repositioning */
.landing-tool .ambient-sound-card {
  position: relative;
}


/* ─────────────────────────────────────────────────────────────
   ONLINE NOTEPAD — tall textarea fills the viewport
   ───────────────────────────────────────────────────────────── */

/* Card grows to give the textarea room */
.landing-tool .card-notes {
  display: flex;
  flex-direction: column;
  min-height: 60vh;
}

.landing-tool .notes-textarea {
  min-height: 52vh;
  font-size: 15px;
  resize: vertical;
}


/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .bridge-chips    { display: none; }
  .bridge-bar      { padding: 10px 16px; }
  .bridge-text     { font-size: 12px; }
  .landing-content { padding: 16px 16px 40px; }
  .landing-hero h1 { font-size: 22px; }
  .landing-bottom-cta { flex-direction: column; text-align: center; }

  /* Timer */
  .landing-tool .timer-ring-container { width: 240px; height: 240px; max-height: none; }
  .landing-tool .timer-time           { font-size: 42px !important; }
  .landing-tool .timer-body           { padding: 28px 16px 20px; }
  .landing-tool .timer-controls .btn  { padding: 10px 18px; font-size: 14px; min-width: 80px; }

  /* Hydration */
  .landing-tool .hydration-glass-svg { width: 96px; height: 120px; }
  .landing-tool .hydration-count     { font-size: 44px; }

  /* Notes */
  .landing-tool .card-notes    { min-height: 50vh; }
  .landing-tool .notes-textarea { min-height: 42vh; }

  /* Ambient */
  .landing-tool .ambient-grid { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
}
