/* Tempo website – same Quixotic tokens as the extension popup. */

@font-face {
  font-family: "Urbanist";
  src: url("fonts/urbanist-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --green-50: #e8f3ec;
  --green-100: #cfe5d8;
  --green-300: #8fbfa3;
  --green-500: #188f55;
  --green-600: #137a47;
  --green-700: #0f6339;
  --neutral-0: #ffffff;
  --neutral-50: #f4f4f5;
  --neutral-100: #efefef;
  --neutral-150: #e6e6e8;
  --neutral-200: #e4e4e7;
  --neutral-400: #8a8a8a;
  --neutral-500: #6b6b6b;
  --neutral-700: #3a3a3a;
  --neutral-900: #111111;

  --brand: var(--green-500);
  --brand-strong: var(--green-600);
  --brand-tint: var(--green-50);
  --bg-canvas: var(--neutral-100);
  --bg-surface: var(--neutral-0);
  --bg-subtle: var(--neutral-50);
  --text-primary: var(--neutral-900);
  --text-secondary: var(--neutral-500);
  --border-subtle: var(--neutral-200);

  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --font-sans: Urbanist, "Plus Jakarta Sans", system-ui, sans-serif;
  --text-small: 14px;
  --text-body: 17px;
  --text-lead: 20px;
  --text-h3: 20px;
  --text-h2: clamp(30px, 4vw, 44px);
  --text-h1: clamp(40px, 6.2vw, 72px);

  --gutter: clamp(16px, 4vw, 32px);
  --max: 1120px;
  --focus-ring: 0 0 0 2px var(--bg-canvas), 0 0 0 4px var(--brand);
  --ease: cubic-bezier(0.2, 0, 0, 1);

  color-scheme: light;
}

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

/* Native smooth scrolling only when Lenis is not running (e.g. reduced motion). */
html:not(.lenis) {
  scroll-behavior: smooth;
}

/* Lenis 1.3.26 (MIT) – required styles */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis:not(.lenis-autoToggle).lenis-stopped {
  overflow: clip;
}

.lenis [data-lenis-prevent],
.lenis [data-lenis-prevent-wheel],
.lenis [data-lenis-prevent-touch],
.lenis [data-lenis-prevent-vertical],
.lenis [data-lenis-prevent-horizontal] {
  overscroll-behavior: contain;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

.lenis.lenis-autoToggle {
  transition-property: overflow;
  transition-duration: 1ms;
  transition-behavior: allow-discrete;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand-strong);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--green-700);
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 6px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  background: var(--neutral-900);
  color: #fff;
}

.skip:focus {
  top: 12px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-block: 12px;
  background: color-mix(in srgb, var(--bg-canvas) 85%, transparent);
  backdrop-filter: blur(12px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
  padding-inline: 16px 10px;
  border-radius: var(--radius-xl);
  background: var(--bg-surface);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  flex: none;
}

.nav .btn {
  flex: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 4px;
  list-style: none;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
}

.nav-links a {
  display: block;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  color: var(--neutral-700);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 150ms var(--ease), color 150ms var(--ease);
}

.nav-links a:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-full);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 150ms var(--ease), transform 100ms var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

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

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

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

.btn-sm {
  min-height: 42px;
  padding: 0 18px;
  font-size: 15px;
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
  padding-block: clamp(40px, 8vw, 96px) clamp(48px, 8vw, 104px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: var(--text-small);
  font-weight: 500;
}

.eyebrow .dot {
  width: 8px;
  height: 8px;
  margin-inline: 4px;
  border-radius: 50%;
  background: var(--brand);
}

.hero h1 {
  margin-top: 20px;
  font-size: var(--text-h1);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.hero h1 em {
  font-style: normal;
  color: var(--brand);
}

.hero .lead {
  max-width: 34em;
  margin-top: 20px;
  color: var(--text-secondary);
  font-size: var(--text-lead);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-secondary);
  font-size: var(--text-small);
}

.trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust .icon {
  width: 18px;
  height: 18px;
  color: var(--brand);
}

.device {
  justify-self: center;
  width: min(100%, 400px);
  padding: 18px 18px 0;
  border-radius: 36px;
  background: var(--neutral-150);
}

.device img {
  border-radius: 22px 22px 0 0;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

/* ---------- Sections ---------- */
/* In-page links (/#faq…) stop below the sticky header. */
[id] {
  scroll-margin-top: 96px;
}

.section {
  padding-block: clamp(56px, 9vw, 112px);
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head .kicker {
  color: var(--brand-strong);
  font-size: var(--text-small);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-head h2 {
  margin-top: 10px;
  font-size: var(--text-h2);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-head p {
  margin-top: 16px;
  color: var(--text-secondary);
  font-size: var(--text-lead);
}

/* ---------- Feature grid ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
  border-radius: var(--radius-full);
  background: var(--brand-tint);
  color: var(--brand);
}

.feature h3 {
  font-size: var(--text-h3);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.feature p {
  color: var(--text-secondary);
}

.feature-hero {
  background: var(--brand);
  color: #fff;
}

.feature-hero .feature-icon {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.feature-hero p {
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- Cinema showcase ---------- */
.showcase {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #000;
}

.showcase figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 20px 28px;
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--text-small);
}

.showcase figcaption strong {
  color: #fff;
  font-size: 17px;
  font-weight: 600;
}

.showcase kbd,
.shortcut kbd {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 9px;
  border-radius: 8px;
  font: 600 14px/1 var(--font-sans);
}

.showcase kbd {
  margin-inline: 2px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* ---------- Popup slider (Apple-style) ---------- */
.carousel {
  /* Slides start at the content's left edge and run off the right edge of the window.
     Percentages (not vw) so the scrollbar width doesn't shift the alignment. */
  --inset: max(var(--gutter), calc((100% - var(--max)) / 2));
}

.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78vw, 820px);
  gap: 24px;
  margin: 0;
  padding: 4px var(--inset) 8px;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--inset);
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-track:focus-visible {
  box-shadow: none;
  outline: 2px solid var(--brand);
  outline-offset: -2px;
}

.slide {
  scroll-snap-align: start;
}

.slide-media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.slide-media img {
  width: auto;
  max-width: 90%;
  height: 86%;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(17, 17, 17, 0.08), 0 18px 48px -12px rgba(17, 17, 17, 0.28);
}

/* Focus is taller than the popup: fade its bottom edge instead of cutting it. */
.slide-media img.fade-bottom {
  border-radius: 20px 20px 0 0;
  box-shadow: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
  mask-image: linear-gradient(to bottom, #000 72%, transparent);
}

.tone-mint {
  background: radial-gradient(120% 90% at 30% 20%, #f3faf6 0%, var(--green-100) 100%);
}

.tone-forest {
  background: radial-gradient(120% 100% at 70% 15%, #1f9a5f 0%, var(--green-700) 100%);
}

.tone-sand {
  background: radial-gradient(120% 90% at 30% 20%, #fbf7ef 0%, #ece3d2 100%);
}

.tone-mist {
  background: radial-gradient(120% 90% at 70% 20%, #fafafa 0%, #dcdce1 100%);
}

.slide-caption {
  max-width: 40rem;
  margin-top: 22px;
  padding-inline: 16px;
  color: var(--text-secondary);
  font-size: var(--text-body);
}

.slide-caption strong {
  color: var(--text-primary);
  font-weight: 600;
}

.carousel-controls {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 28px;
}

.carousel-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-full);
  background: #e3e3e6;
  color: var(--neutral-700);
  cursor: pointer;
  transition: background-color 150ms var(--ease), opacity 150ms var(--ease), transform 100ms var(--ease);
}

.carousel-btn:hover:not(:disabled) {
  background: #d6d6da;
}

.carousel-btn:active:not(:disabled) {
  transform: scale(0.94);
}

.carousel-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.carousel-btn:focus-visible {
  border-radius: var(--radius-full);
}

@media (max-width: 720px) {
  .carousel-track {
    grid-auto-columns: 86vw;
    gap: 14px;
  }

  .slide-media {
    aspect-ratio: 4 / 5;
  }

  .slide-media img {
    height: 84%;
  }
}

/* ---------- Shortcuts ---------- */
.shortcuts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shortcut {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  font-weight: 500;
}

.shortcut kbd {
  min-width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-subtle);
  box-shadow: inset 0 -2px 0 var(--border-subtle), 0 0 0 1px var(--border-subtle);
  font-size: 18px;
}

/* ---------- Privacy band ---------- */
.privacy-band {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius-xl);
  background: var(--bg-surface);
}

.privacy-band .feature-icon {
  width: 56px;
  height: 56px;
  margin: 0;
}

.privacy-band h2 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.privacy-band p {
  margin-top: 6px;
  color: var(--text-secondary);
}

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

/* ---------- FAQ ---------- */
.faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 820px;
}

.faq details {
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary .icon {
  color: var(--text-secondary);
  transition: transform 200ms var(--ease);
}

.faq details[open] summary .icon {
  transform: rotate(180deg);
}

.faq details p {
  padding: 0 24px 22px;
  color: var(--text-secondary);
}

/* ---------- CTA ---------- */
.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: clamp(40px, 7vw, 80px) var(--gutter);
  border-radius: var(--radius-xl);
  background: var(--brand);
  color: #fff;
  text-align: center;
}

.cta img {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: #fff;
}

.cta h2 {
  font-size: var(--text-h2);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.cta p {
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-lead);
}

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

.cta .btn-primary:hover {
  background: var(--green-50);
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 40px 56px;
  color: var(--text-secondary);
  font-size: var(--text-small);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--neutral-700);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.disclaimer {
  margin-top: 16px;
  max-width: 60rem;
}

/* ---------- Document pages (privacy) ---------- */
.doc {
  max-width: 760px;
  margin: clamp(24px, 5vw, 56px) auto clamp(56px, 8vw, 96px);
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius-xl);
  background: var(--bg-surface);
}

.doc h1 {
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.doc .updated {
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: var(--text-small);
}

.doc h2 {
  margin-top: 40px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.doc p,
.doc ul {
  margin-top: 14px;
}

.doc ul {
  padding-left: 22px;
}

.doc li + li {
  margin-top: 8px;
}

.doc .summary {
  margin-top: 28px;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  background: var(--brand-tint);
  color: var(--green-700);
  font-weight: 500;
}
