/* ===================================
   Thinote Landing Page
   Design inspired by the logo:
   square shape, thin border, clean
   =================================== */

/* ── Variables ── */
:root {
  --white: #ffffff;
  --bg: #f5f0eb;
  --fg: #2c2420;
  --fg-muted: #6b5e56;
  --accent: #c6ac8f;
  --accent-light: #e8ddd2;
  --accent-dark: #a08b72;
  --border: #d6c9bc;
  --border-thin: 1px solid var(--border);

  color-scheme: light;

  --radius: 4px;
  --radius-md: 6px;

  --font-mono: "JetBrains Mono", "Fira Code", monospace;
  --font-sans: "Inter", -apple-system, sans-serif;

  --shadow-sm: 0 1px 3px rgba(44, 36, 32, 0.04);
  --shadow-md: 0 4px 12px rgba(44, 36, 32, 0.06);
  --shadow-lg: 0 8px 24px rgba(44, 36, 32, 0.08);

  --bg-rgb: 245, 240, 235;
  --white-pure: #ffffff;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}
img {
  max-width: 100%;
  display: block;
}
ul,
ol {
  list-style: none;
}

/* ── Layout ── */
.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Shared card style (follows logo shape) ── */
.card {
  background: var(--white);
  border: var(--border-thin);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  border: var(--border-thin);
  transition: all 150ms var(--ease);
  cursor: pointer;
}

.btn--primary {
  background: var(--fg);
  color: var(--white);
  border-color: var(--fg);
}

.btn--primary:hover {
  opacity: 0.88;
}

.btn--secondary {
  background: var(--white);
  color: var(--fg);
}

.btn--secondary:hover {
  background: var(--accent-light);
}

.btn:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(var(--bg-rgb), 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: var(--border-thin);
  height: 56px;
}

.nav__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.nav__logo-img {
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  object-fit: cover;
}

.nav__logo-text {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__link {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--fg-muted);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  transition: all 150ms var(--ease);
}

.nav__link:hover {
  color: var(--fg);
  background: var(--accent-light);
}

.nav__link--active {
  background: var(--accent-light);
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--accent-dark);
}

.nav__cta {
  margin-left: 0.5rem;
}

.nav__toggle {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: var(--border-thin);
  background: var(--white);
  color: var(--fg);
  transition: background 150ms var(--ease);
}

.nav__toggle:hover {
  background: var(--accent-light);
}

.nav__menu {
  position: relative;
  margin-left: 0.25rem;
}

.nav__menu-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--fg-muted);
  transition: background 150ms var(--ease), color 150ms var(--ease);
  cursor: pointer;
}

.nav__menu-btn:hover {
  background: var(--accent-light);
  color: var(--fg);
}

.nav__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 160px;
  background: var(--white);
  border: var(--border-thin);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 150ms var(--ease), transform 150ms var(--ease), visibility 150ms;
  z-index: 100;
}

.nav__dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: none;
  background: transparent;
  color: var(--fg);
  font-size: 13px;
  font-family: var(--font-sans);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 120ms var(--ease);
  white-space: nowrap;
}

.nav__dropdown-item:hover {
  background: var(--accent-light);
}

.nav__theme-label--light { display: none; }
[data-theme="dark"] .nav__theme-label--dark { display: none; }
[data-theme="dark"] .nav__theme-label--light { display: inline; }

.nav__theme-icon { flex-shrink: 0; }
.nav__theme-icon--sun { display: none; }
[data-theme="dark"] .nav__theme-icon--moon { display: none; }
[data-theme="dark"] .nav__theme-icon--sun { display: inline; }

.nav__locale-flag {
  font-size: 16px;
  line-height: 1;
}

.nav--scrolled {
  background: rgba(var(--bg-rgb), 0.97);
  box-shadow: 0 1px 4px rgba(44, 36, 32, 0.08);
}

/* Hamburger to X animation */
.nav__toggle svg line {
  transition: transform 250ms var(--ease), opacity 250ms var(--ease);
  transform-origin: center;
}

.nav__toggle[aria-expanded="true"] svg line:nth-child(1) {
  transform: translateY(3px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] svg line:nth-child(2) {
  opacity: 0;
}

.nav__toggle[aria-expanded="true"] svg line:nth-child(3) {
  transform: translateY(-3px) rotate(-45deg);
}

.nav__logo {
  transition: opacity 200ms var(--ease);
}

.nav__logo:hover {
  opacity: 0.85;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 0 4rem;
  overflow: hidden;
}

/* ── Parallax background ── */
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.cloud {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--accent-light) 0%,
    rgba(230, 220, 210, 0.4) 100%
  );
  opacity: 0.5;
  filter: blur(1px);
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: inherit;
}

.cloud--1 {
  width: 320px;
  height: 80px;
  border-radius: 80px;
  top: 12%;
  left: -5%;
  background: linear-gradient(
    135deg,
    var(--accent-light) 0%,
    rgba(230, 220, 210, 0.3) 100%
  );
  opacity: 0.45;
}

.cloud--1::before {
  width: 120px;
  height: 60px;
  top: -25px;
  left: 60px;
}

.cloud--1::after {
  width: 160px;
  height: 70px;
  top: -35px;
  left: 120px;
}

.cloud--2 {
  width: 260px;
  height: 60px;
  border-radius: 60px;
  top: 28%;
  right: -8%;
  background: linear-gradient(
    135deg,
    var(--accent-light) 0%,
    rgba(230, 220, 210, 0.25) 100%
  );
  opacity: 0.35;
}

.cloud--2::before {
  width: 100px;
  height: 50px;
  top: -20px;
  left: 50px;
}

.cloud--2::after {
  width: 130px;
  height: 55px;
  top: -28px;
  left: 100px;
}

.cloud--3 {
  width: 200px;
  height: 50px;
  border-radius: 50px;
  bottom: 25%;
  left: 8%;
  background: linear-gradient(
    135deg,
    var(--accent-light) 0%,
    rgba(230, 220, 210, 0.2) 100%
  );
  opacity: 0.3;
}

.cloud--3::before {
  width: 80px;
  height: 40px;
  top: -18px;
  left: 40px;
}

.cloud--3::after {
  width: 100px;
  height: 45px;
  top: -22px;
  left: 80px;
}

.cloud--4 {
  width: 180px;
  height: 45px;
  border-radius: 45px;
  top: 60%;
  right: 15%;
  background: linear-gradient(
    135deg,
    var(--accent-light) 0%,
    rgba(230, 220, 210, 0.15) 100%
  );
  opacity: 0.25;
}

.cloud--4::before {
  width: 70px;
  height: 35px;
  top: -15px;
  left: 35px;
}

.cloud--4::after {
  width: 90px;
  height: 40px;
  top: -20px;
  left: 70px;
}

.cloud--5 {
  width: 140px;
  height: 35px;
  border-radius: 35px;
  top: 8%;
  right: 30%;
  background: linear-gradient(
    135deg,
    var(--accent-light) 0%,
    rgba(230, 220, 210, 0.1) 100%
  );
  opacity: 0.2;
}

.cloud--5::before {
  width: 55px;
  height: 28px;
  top: -12px;
  left: 28px;
}

.cloud--5::after {
  width: 70px;
  height: 32px;
  top: -16px;
  left: 55px;
}

.cloud--1, .cloud--2, .cloud--3, .cloud--4, .cloud--5 {
  will-change: transform;
}

@keyframes cloudDrift {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(30px);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes cloudDriftReverse {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-25px);
  }
  100% {
    transform: translateX(0);
  }
}

.cloud--1 {
  animation: cloudDrift 18s ease-in-out infinite;
}
.cloud--2 {
  animation: cloudDriftReverse 22s ease-in-out infinite;
}
.cloud--3 {
  animation: cloudDrift 25s ease-in-out infinite 2s;
}
.cloud--4 {
  animation: cloudDriftReverse 20s ease-in-out infinite 1s;
}
.cloud--5 {
  animation: cloudDrift 16s ease-in-out infinite 3s;
}

.hero__content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.85);
  }
}

.hero__brand {
  font-family: var(--font-mono);
  font-size: clamp(3.5rem, 10vw, 6rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--fg);
  margin-bottom: 1rem;
  margin-top: 5rem;
  opacity: 0;
  animation: fadeUp 0.6s var(--ease) 0.2s forwards;
}

.hero__slogan {
  margin-bottom: 1.5rem;
  height: 2.8rem;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 0.6s var(--ease) 0.3s forwards;
}

.hero__slogan-text {
  position: absolute;
  font-family: var(--font-mono);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--accent-dark);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.5s var(--ease),
    transform 0.5s var(--ease),
    letter-spacing 0.5s var(--ease);
}

.hero__slogan-text.active {
  opacity: 1;
  transform: translateY(0);
  letter-spacing: 0.04em;
}

.hero__slogan-text.exit {
  opacity: 0;
  transform: translateY(-12px);
}

.hero__slogan-text.enter {
  opacity: 0;
  transform: translateY(12px);
}

.hero__desc {
  font-size: 1.0625rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.6s var(--ease) 0.4s forwards;
}

.hero__headline {
  font-family: var(--font-mono);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--accent-dark);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.6s var(--ease) 0.3s forwards;
}

.hero__proof {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg-muted);
  background: var(--border);
  display: inline-block;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.6s var(--ease) 0.5s forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 0.6s var(--ease) 0.6s forwards;
}

/* Editor preview */
.hero__preview {
  margin-top: 3.5rem;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) 0.8s forwards;
}

.editor {
  background: var(--white);
  border: var(--border-thin);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(44, 36, 32, 0.1);
  overflow: hidden;
  text-align: left;
}

.editor__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.875rem;
  border-bottom: var(--border-thin);
  background: var(--bg);
}

.editor__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}

.editor__dot--active {
  background: var(--accent-dark);
}

.editor__tab {
  margin-left: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--fg-muted);
}

.editor__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.875rem;
  border-bottom: var(--border-thin);
  background: var(--white);
}

.editor__words {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--fg-muted);
}

.editor__users {
  display: flex;
  align-items: center;
  gap: 0;
}

.editor__avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--white-pure);
  border: 2px solid var(--white);
  margin-left: -6px;
}

.editor__avatar:first-child {
  margin-left: 0;
}

.editor__avatar--green {
  background: #22c55e;
}
.editor__avatar--blue {
  background: #3b82f6;
}
.editor__avatar--yellow {
  background: #f59e0b;
}

.editor__users-count {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--fg-muted);
  margin-left: 0.5rem;
}

.editor__body {
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.9;
  color: var(--fg-muted);
}

.editor__line {
  opacity: 0;
}

.editor__line[data-type] {
  animation: none;
}

@keyframes typeLine {
  from {
    opacity: 0;
    transform: translateX(-4px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.editor__heading {
  font-weight: 600;
  font-size: 1rem;
  color: var(--fg);
}

.editor__cursor {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: 2px;
  vertical-align: text-bottom;
}

.editor__cursor-line {
  width: 2px;
  height: 1em;
  animation: cursorBlink 2s ease-in-out infinite;
}

.editor__cursor-name {
  font-size: 0.5625rem;
  font-weight: 600;
  color: var(--white-pure);
  padding: 1px 4px;
  border-radius: 2px;
  white-space: nowrap;
  margin-bottom: 2px;
  line-height: 1.2;
}

.editor__cursor--green .editor__cursor-line {
  background: #22c55e;
}
.editor__cursor--green .editor__cursor-name {
  background: #22c55e;
}

.editor__cursor--blue .editor__cursor-line {
  background: #3b82f6;
}
.editor__cursor--blue .editor__cursor-name {
  background: #3b82f6;
}

.editor__cursor--yellow .editor__cursor-line {
  background: #f59e0b;
}
.editor__cursor--yellow .editor__cursor-name {
  background: #f59e0b;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

@keyframes cursorBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.2;
  }
}

/* ── Sections ── */
.section {
  padding: 5rem 0;
}

.section--alt {
  background: var(--white);
}

.section__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  margin-bottom: 0.75rem;
}

.section__title {
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section__desc {
  color: var(--fg-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.section__header {
  text-align: center;
  max-width: 480px;
  margin: 0 auto 3rem;
}

/* ── Features ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature {
  background: var(--white);
  border: var(--border-thin);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition:
    transform 250ms var(--ease),
    box-shadow 250ms var(--ease),
    border-color 250ms var(--ease);
}

.feature:hover {
  border-color: var(--accent-dark);
  box-shadow: var(--shadow-md);
  transition-timing-function: var(--ease-bounce);
}

.feature__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: var(--border-thin);
  border-radius: var(--radius);
  background: var(--bg);
  margin-bottom: 1rem;
  color: var(--fg);
}

.feature__title {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature__text {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ── Tech stack ── */
.tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  justify-content: center;
}

.tech-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  background: var(--white);
  border: var(--border-thin);
  border-radius: var(--radius);
  padding: 0.625rem 1rem;
  transition: border-color 150ms var(--ease);
}

.tech-tag:hover {
  background: var(--fg);
  color: var(--white);
  border-color: var(--fg);
}

.tech-tag__icon {
  font-size: 1rem;
}

/* ── Why Thinote parallax ── */
#details {
  position: relative;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.parallax-item {
  position: absolute;
  opacity: 0.15;
}

.parallax-item i {
  display: block;
}

.parallax-item--1 {
  top: 10%;
  left: 5%;
  color: var(--accent);
  transform: rotate(-12deg);
  animation: floatSlow 14s ease-in-out infinite;
}

.parallax-item--1 i {
  width: 64px;
  height: 64px;
}

.parallax-item--2 {
  top: 20%;
  right: 8%;
  color: var(--accent-dark);
  transform: rotate(8deg);
  animation: floatSlow 16s ease-in-out infinite 1s;
}

.parallax-item--2 i {
  width: 56px;
  height: 56px;
}

.parallax-item--3 {
  bottom: 25%;
  left: 10%;
  color: var(--fg-muted);
  transform: rotate(5deg);
  animation: floatSlow 18s ease-in-out infinite 2s;
}

.parallax-item--3 i {
  width: 72px;
  height: 72px;
}

.parallax-item--4 {
  bottom: 12%;
  right: 6%;
  color: var(--border);
  transform: rotate(-8deg);
  animation: floatSlow 15s ease-in-out infinite 0.5s;
}

.parallax-item--4 i {
  width: 48px;
  height: 48px;
}

.parallax-item--5 {
  top: 15%;
  right: 18%;
  color: var(--accent-dark);
  transform: rotate(30deg);
  animation: floatSlow 17s ease-in-out infinite 1.5s;
}

.parallax-item--5 i {
  width: 40px;
  height: 40px;
}

.parallax-item--6 {
  bottom: 30%;
  left: 18%;
  color: var(--accent);
  transform: rotate(-25deg);
  animation: floatSlow 19s ease-in-out infinite 2.5s;
}

.parallax-item--6 i {
  width: 36px;
  height: 36px;
}

.parallax-item--7 {
  top: 55%;
  right: 12%;
  color: var(--fg-muted);
  transform: rotate(40deg);
  animation: floatSlow 16s ease-in-out infinite 3s;
}

.parallax-item--7 i {
  width: 44px;
  height: 44px;
}

.parallax-item--8 {
  top: 5%;
  left: 25%;
  color: var(--accent-light);
  transform: rotate(-15deg);
  animation: floatSlow 20s ease-in-out infinite 0.8s;
}

.parallax-item--8 i {
  width: 52px;
  height: 52px;
}

.parallax-item--9 {
  bottom: 15%;
  right: 25%;
  color: var(--accent);
  transform: rotate(10deg);
  animation: floatSlow 18s ease-in-out infinite 1.8s;
}

.parallax-item--9 i {
  width: 60px;
  height: 60px;
}

.parallax-item--10 {
  top: 35%;
  left: 3%;
  color: var(--border);
  transform: rotate(-20deg);
  animation: floatSlow 22s ease-in-out infinite 2.2s;
}

.parallax-item--10 i {
  width: 48px;
  height: 48px;
}

.parallax-item--11 {
  top: 60%;
  left: 20%;
  color: var(--accent-dark);
  transform: rotate(18deg);
  animation: floatSlow 19s ease-in-out infinite 1.2s;
}

.parallax-item--11 i {
  width: 40px;
  height: 40px;
}

.parallax-item--12 {
  top: 8%;
  right: 35%;
  color: var(--fg-muted);
  transform: rotate(-8deg);
  animation: floatSlow 17s ease-in-out infinite 2.8s;
}

.parallax-item--12 i {
  width: 56px;
  height: 56px;
}

.parallax-item--13 {
  bottom: 8%;
  left: 30%;
  color: var(--accent);
  transform: rotate(25deg);
  animation: floatSlow 21s ease-in-out infinite 0.3s;
}

.parallax-item--13 i {
  width: 36px;
  height: 36px;
}

.parallax-item--14 {
  top: 45%;
  right: 5%;
  color: var(--border);
  transform: rotate(-30deg);
  animation: floatSlow 16s ease-in-out infinite 3.5s;
}

.parallax-item--14 i {
  width: 32px;
  height: 32px;
}

.parallax-item--15 {
  bottom: 35%;
  left: 5%;
  color: var(--accent-dark);
  transform: rotate(12deg);
  animation: floatSlow 20s ease-in-out infinite 1.5s;
}

.parallax-item--15 i {
  width: 44px;
  height: 44px;
}

.parallax-item--16 {
  top: 70%;
  right: 20%;
  color: var(--fg-muted);
  transform: rotate(-22deg);
  animation: floatSlow 18s ease-in-out infinite 2.5s;
}

.parallax-item--16 i {
  width: 38px;
  height: 38px;
}

@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0) rotate(var(--rotate, 0deg));
  }
  50% {
    transform: translateY(-15px) rotate(var(--rotate, 0deg));
  }
}

.parallax-item--1 { --rotate: -12deg; }
.parallax-item--2 { --rotate: 8deg; }
.parallax-item--3 { --rotate: 5deg; }
.parallax-item--4 { --rotate: -8deg; }
.parallax-item--5 { --rotate: 30deg; }
.parallax-item--6 { --rotate: -25deg; }
.parallax-item--7 { --rotate: 40deg; }

#details > .container {
  position: relative;
  z-index: 1;
}

/* ── Why Thinote ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.why-card {
  background: var(--white);
  border: var(--border-thin);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition:
    transform 200ms var(--ease),
    box-shadow 200ms var(--ease),
    border-color 200ms var(--ease);
}

.why-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.why-card--highlight {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--white);
}

.why-card--highlight:hover {
  border-color: var(--accent);
}

.why-card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: var(--border-thin);
  border-radius: var(--radius);
  background: var(--bg);
  margin-bottom: 1.25rem;
  color: var(--fg);
}

.why-card--highlight .why-card__icon {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.why-card__title {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.why-card__text {
  font-size: 0.9375rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

.why-card--highlight .why-card__text {
  color: rgba(255, 255, 255, 0.7);
}

.why-bottom {
  margin-top: 3rem;
  text-align: center;
}

.why-proof {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
}

.why-proof__divider {
  width: 4px;
  height: 4px;
  background: var(--border);
  border-radius: 50%;
}

/* ── Pricing ── */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.pricing-toggle__label {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--fg-muted);
  cursor: pointer;
  transition: color 150ms var(--ease);
  user-select: none;
}

.pricing-toggle__label:first-of-type {
  color: var(--fg);
}

.pricing-toggle--yearly .pricing-toggle__label:first-of-type {
  color: var(--fg-muted);
}

.pricing-toggle--yearly .pricing-toggle__label:last-of-type {
  color: var(--fg);
}

.pricing-toggle__switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  cursor: pointer;
}

.pricing-toggle__switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.pricing-toggle__slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 24px;
  transition: background 200ms var(--ease);
}

.pricing-toggle__slider::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  background: var(--white-pure);
  border-radius: 50%;
  transition: transform 200ms var(--ease);
}

#pricing-toggle:checked + .pricing-toggle__slider {
  background: var(--fg);
}

#pricing-toggle:checked + .pricing-toggle__slider::before {
  transform: translateX(20px);
}

.pricing-toggle__badge {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--accent-dark);
  background: var(--accent-light);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius);
  transition: opacity 200ms var(--ease), transform 200ms var(--ease);
}

.pricing-toggle--yearly .pricing-toggle__badge {
  background: var(--fg);
  color: var(--white);
}

/* ── Pricing grid ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
  align-items: start;
}

.pricing-card {
  background: var(--white);
  border: var(--border-thin);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition:
    transform 200ms var(--ease),
    box-shadow 200ms var(--ease);
}

.pricing-card:hover {
  box-shadow: var(--shadow-lg);
}

.pricing-card--featured {
  border-color: var(--fg);
  box-shadow:
    0 0 0 1px var(--fg),
    0 8px 24px rgba(44, 36, 32, 0.1);
}

.pricing-card__badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  background: var(--fg);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius);
}

.pricing-card__header {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: var(--border-thin);
}

.pricing-card__name {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.pricing-card__price {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.2rem;
}

.pricing-card__amount {
  transition: opacity 200ms var(--ease);
}

.pricing-card__period {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--fg-muted);
  transition: opacity 200ms var(--ease);
}

.pricing-card__features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex: 1;
}

.pricing-card__features li {
  font-size: 0.9375rem;
  color: var(--fg-muted);
  padding-left: 1.5rem;
  position: relative;
}

.pricing-card__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-dark);
  font-weight: 600;
}

.pricing-card--featured .pricing-card__features li::before {
  color: var(--fg);
}

.pricing-card__btn {
  width: 100%;
}

/* ── Pricing comparison table ── */
.pricing-compare {
  margin-top: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-compare__title {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  text-align: center;
  margin-bottom: 1.25rem;
}

.pricing-compare__table {
  display: grid;
  border: var(--border-thin);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.pricing-compare__row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  border-bottom: var(--border-thin);
}

.pricing-compare__row:last-child {
  border-bottom: none;
}

.pricing-compare__row--header {
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
}

.pricing-compare__cell {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.pricing-compare__cell:first-child {
  justify-content: flex-start;
  text-align: left;
  font-weight: 500;
  color: var(--fg);
  gap: 0.5rem;
}

.pricing-compare__cell:first-child svg {
  flex-shrink: 0;
  color: var(--fg-muted);
  overflow: visible;
}

.pricing-compare__cell--plan {
  color: var(--fg-muted);
}

.pricing-compare__cell--feat {
  color: var(--fg);
  font-weight: 500;
}

.pricing-compare__cell--yes {
  color: var(--accent-dark);
  font-weight: 600;
}

.pricing-compare__cell--no {
  color: var(--fg-muted);
  opacity: 0.35;
  font-size: 0.75rem;
}

@media (max-width: 600px) {
  .pricing-compare__table {
    font-size: 0.8125rem;
  }

  .pricing-compare__cell {
    padding: 0.5rem 0.5rem;
    font-size: 0.75rem;
  }
}

/* ── CTA ── */
.cta {
  background: linear-gradient(135deg, var(--fg) 0%, #4a3a34 100%);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.cta__title {
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.cta__desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  margin-bottom: 2rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.cta .btn--primary {
  background: var(--white);
  color: var(--fg);
  border-color: var(--white);
}

.cta .btn--primary:hover {
  opacity: 0.92;
}

/* ── Section divider ── */
.section + .section--alt,
.section--alt + .section {
  border-top: var(--border-thin);
}

/* ── Footer ── */
.footer {
  padding: 2rem 0;
  border-top: var(--border-thin);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 600;
}

.footer__brand img {
  width: 24px;
  height: 24px;
  border-radius: var(--radius);
}

.footer__links {
  display: flex;
  gap: 1.5rem;
}

.footer__link {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--fg-muted);
  transition: color 150ms var(--ease);
}

.footer__link:hover {
  color: var(--fg);
}

.footer__copy {
  font-size: 0.8125rem;
  color: var(--fg-muted);
}

/* ── Screen reader only (SEO text hidden visually) ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Reveal animation ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-d1 {
  transition-delay: 80ms;
}
.reveal-d2 {
  transition-delay: 160ms;
}
.reveal-d3 {
  transition-delay: 240ms;
}
.reveal-d4 {
  transition-delay: 320ms;
}
.reveal-d5 {
  transition-delay: 400ms;
}

[id] {
  scroll-margin-top: 72px;
}

/* ── Dark theme ── */
[data-theme="dark"] {
  color-scheme: dark;
  --bg-rgb: 26, 21, 19;
  --white: #1c1917;
  --bg: #1a1513;
  --fg: #e8ddd2;
  --fg-muted: #8a7e76;
  --accent: #a08b72;
  --accent-light: #2a2522;
  --accent-dark: #c6ac8f;
  --border: #2e2925;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .editor__avatar {
  border-color: var(--bg);
}

[data-theme="dark"] .cta {
  background: linear-gradient(135deg, #2c2420 0%, #1a1513 100%);
  color: var(--white-pure);
}

[data-theme="dark"] .cta .btn--primary {
  background: var(--white-pure);
  color: #2c2420;
  border-color: var(--white-pure);
}

[data-theme="dark"] .why-card--highlight {
  background: #2c2420;
  border-color: #2c2420;
  color: var(--white-pure);
}

[data-theme="dark"] .why-card--highlight .why-card__icon {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--white-pure);
}

[data-theme="dark"] .why-card--highlight .why-card__text {
  color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .cloud--1,
[data-theme="dark"] .cloud--2,
[data-theme="dark"] .cloud--3,
[data-theme="dark"] .cloud--4,
[data-theme="dark"] .cloud--5 {
  background: #221d1a;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .feature:hover,
  .why-card:hover,
  .pricing-card:hover {
    transform: none !important;
  }
}

@media (hover: hover) and (pointer: fine) {
  .feature:hover {
    transform: translateY(-3px);
  }
  .why-card:hover {
    transform: translateY(-4px);
  }
  .pricing-card:hover {
    transform: translateY(-4px);
  }
}

