/* ═══════════════════════════════════════════════════════════
   ClicTabs — page styles
   Loaded after the shared ClicAuto stylesheet (/styles.css,
   copied here at build time). Yellow cards on deep teal for
   the brand, the nine Chrome tab group colors for the
   "time machine" visual; the rest of the design system unchanged.
   ═══════════════════════════════════════════════════════════ */

:root {
  --ct-yellow: #ffc857;
  --ct-yellow-ink: #2b1f00;
  --ct-teal: #0e3b43;

  /* Chrome tab group colors */
  --chrome-grey: #5f6368;
  --chrome-blue: #1a73e8;
  --chrome-red: #d93025;
  --chrome-yellow: #f9ab00;
  --chrome-green: #188038;
  --chrome-pink: #d01884;
  --chrome-purple: #a142f4;
  --chrome-cyan: #007b83;
  --chrome-orange: #fa903e;
}

.logo-mark-tabs {
  background: var(--ct-teal);
  color: var(--ct-yellow);
  box-shadow: 0 4px 14px rgba(14, 59, 67, 0.55);
}

.ct-hero .mark { background-image: linear-gradient(rgba(255, 200, 87, 0.42), rgba(255, 200, 87, 0.42)); }

.ct-steps .card-ico { border-color: rgba(255, 200, 87, 0.3); background: rgba(255, 200, 87, 0.1); color: var(--ct-yellow); }

.ct-steps .card p,
.ct-plan p { font-size: 0.9375rem; color: var(--text-2); }

.ct-steps .card b,
.ct-plan b { color: var(--text); font-weight: 600; }

/* ── Launch status ── */

.ct-launch { margin-top: 30px; display: grid; justify-items: center; gap: 12px; }

.ct-launch-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 200, 87, 0.4);
  border-radius: 100px;
  background: rgba(255, 200, 87, 0.08);
  color: var(--ct-yellow);
  font-weight: 600;
  font-size: 0.9375rem;
}

.ct-launch-badge svg { width: 18px; height: 18px; flex: none; }

.ct-launch-note {
  font-size: 0.9375rem;
  color: var(--text-3);
  text-align: center;
}

/* ── Signature feature: a month calendar and the tabs of one day ── */

.ct-machine {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 18px;
  max-width: 900px;
}

.ct-cal,
.ct-day {
  padding: 20px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: var(--surface-2);
  box-shadow: var(--sh-2);
}

.ct-cal-head {
  margin-bottom: 14px;
  font-weight: 600;
  color: var(--text);
}

.ct-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
  font-size: 0.8125rem;
}

.ct-cal-dow {
  padding-bottom: 6px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-4);
}

.ct-cal-d {
  position: relative;
  padding: 7px 0 11px;
  border-radius: 8px;
  color: var(--text-3);
}

.ct-cal-d.has { color: var(--text); }

.ct-cal-d.has::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--ct-yellow);
}

.ct-cal-d.sel { background: var(--ct-yellow); color: var(--ct-teal); font-weight: 700; }
.ct-cal-d.sel::after { background: var(--ct-teal); }
.ct-cal-d.later { color: var(--text-4); opacity: 0.6; }

.ct-day-title { font-weight: 600; color: var(--text); }
.ct-day-meta { margin-top: 2px; font-size: 0.8125rem; color: var(--text-4); }

.ct-tabs { display: grid; gap: 2px; margin-top: 14px; }

.ct-group {
  display: grid;
  gap: 2px;
  margin-bottom: 6px;
  padding-left: 12px;
  border-left: 3px solid var(--chrome-blue);
}

.ct-group-name {
  justify-self: start;
  margin-bottom: 4px;
  padding: 2px 10px;
  border-radius: 6px;
  background: var(--chrome-blue);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}

.ct-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  font-size: 0.9375rem;
  min-width: 0;
}

.ct-tab > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ct-fav {
  display: grid;
  place-items: center;
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
}

.ct-c-grey { background: var(--chrome-grey); }
.ct-c-blue { background: var(--chrome-blue); }
.ct-c-red { background: var(--chrome-red); }
.ct-c-yellow { background: var(--chrome-yellow); }
.ct-c-green { background: var(--chrome-green); }
.ct-c-pink { background: var(--chrome-pink); }
.ct-c-purple { background: var(--chrome-purple); }
.ct-c-cyan { background: var(--chrome-cyan); }
.ct-c-orange { background: var(--chrome-orange); }

.ct-tab-title { color: var(--text); }
.ct-tab-host { color: var(--text-4); }

.ct-day-actions { display: flex; gap: 10px; margin-top: 14px; }

.ct-chip {
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--ct-yellow);
  color: var(--ct-yellow-ink);
  font-size: 0.8125rem;
  font-weight: 600;
}

@media (max-width: 720px) {
  .ct-machine { grid-template-columns: 1fr; }
}

/* ── Private by design ── */

.ct-ticks { display: grid; gap: 12px; max-width: 760px; }

.ct-ticks li {
  position: relative;
  padding-left: 28px;
  color: var(--text-2);
  font-size: 1rem;
}

.ct-ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.4em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--ct-yellow);
  border-bottom: 2px solid var(--ct-yellow);
  rotate: -45deg;
}

/* ── Pricing (home page) ── */

.ct-plan-pro {
  border-color: rgba(255, 200, 87, 0.4);
  background: linear-gradient(180deg, rgba(255, 200, 87, 0.07), rgba(255, 200, 87, 0.015));
}

/* ── Subscribe page ── */

.ct-sub-section { padding-top: calc(var(--hdr-h) + clamp(40px, 6vw, 72px)); }

.ct-sub {
  max-width: 560px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: var(--surface-2);
  box-shadow: var(--sh-3);
  text-align: center;
}

.ct-sub-title { font-size: clamp(1.7rem, 3.6vw, 2.3rem); }
.ct-sub-note { margin-top: 10px; font-size: 0.9375rem; color: var(--text-2); }
.ct-sub-email { margin-top: 18px; font-size: 0.875rem; color: var(--text-3); overflow-wrap: anywhere; }

.ct-sub-offers { display: grid; gap: 12px; margin-top: 24px; text-align: left; }

.ct-sub-offer {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.02);
}

.ct-sub-offer p { font-size: 0.9375rem; color: var(--text-2); }
.ct-sub-offer b { color: var(--text); font-weight: 600; }

.ct-sub-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 22px;
  padding: 16px;
  border: 1px solid rgba(255, 200, 87, 0.35);
  border-radius: var(--r-sm);
  background: rgba(255, 200, 87, 0.06);
  text-align: left;
  font-size: 0.875rem;
  color: var(--text-2);
  cursor: pointer;
}

.ct-sub-check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  accent-color: var(--ct-yellow);
  cursor: pointer;
}

.ct-sub-btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.ct-sub-status { min-height: 1.4em; margin-top: 12px; font-size: 0.875rem; color: var(--ct-yellow); }

.ct-sub-fine { margin-top: 16px; font-size: 0.8125rem; color: var(--text-3); }
.ct-sub-fine a { color: var(--accent); text-decoration: underline; text-decoration-color: var(--accent-line); }

/* ── Help page ── */

.page-head .lead a { color: var(--accent); }
