@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,100..900;1,100..900&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

@font-face {
  font-family: Inter Variable;
  src: url("../fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Inter Variable;
  src: url("../fonts/InterVariable-Italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Extension Design Tokens */
  --color-primary: #2b7fff;
  --color-primary-fixed: #2b7fff;
  --color-accent: #2b7fff;
  --color-accent-hover: #1b6ff0;
  --color-accent-b: #2b7fff14;
  --color-accent-b-hover: #2b7fff24;
  --color-on-accent: #ffffff;
  --color-on-primary: #ffffff;

  /* 2 Text Colors + Inverted (Strict Design System) */
  --color-on-surface: #1c1917;
  --color-text-primary: #1c1917;
  --color-text-secondary: #57534d;
  --color-text-tertiary: #57534d;
  --color-on-surface-variant: #57534d;

  --color-background: #ffffff;
  --color-surface: #fafaf9;
  --color-surface-container: #fafaf9;
  --color-surface-container-high: #f5f5f4;
  --color-outline: #e7e5e4;
  --color-outline-variant: #e7e5e4;
  --color-border-level-2: #e7e5e4;
  --color-border-level-3: #e7e5e4;
  --color-shadow: rgba(0, 0, 0, 0.08);
  --color-error: #c10007;
  --color-error-container: #fef2f2;
  --color-background-blur: rgba(255, 255, 255, 0.85);

  --color-gradient-bg-start: #2b7fff0f;
  --color-gradient-bg-end: #2b7fff00;
  --color-gradient-promo-start: #2b7fff14;
  --color-gradient-promo-end: #2b7fff05;

  /* Strict Typography Scale (3 main sizes + Hero) */
  --font-size-hero: clamp(48px, 7vw, 80px);
  --font-size-h1: 32px;
  --font-size-h2: 24px;
  --font-size-base: 16px;

  /* Strict Font Weights */
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;

  /* Spacing */
  --space-default: 12px;
  --space-button-xl-vertical: 0px;
  --space-button-xl-horizontal: 16px;
  --space-button-s-vertical: 6px;
  --space-button-s-horizontal: 12px;
  --space-button-m-vertical: 8px;
  --space-button-m-horizontal: 16px;
  --space-section: 64px;
  --space-card-m: 24px;

  /* Border radii */
  --radius-xs: 4px;
  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 14px;
  --radius-xl: 16px;

  /* Fonts */
  --font-text: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.theme-light {
  --color-accent: #2b7fff;
  --color-accent-hover: #1b6ff0;
  --color-background: #ffffff;
  --color-surface: #fafaf9;
  --color-text-primary: #1c1917;
  --color-text-secondary: #57534d;
  --color-text-tertiary: #57534d;
  --color-border-level-2: #e7e5e4;
  --color-border-level-3: #e7e5e4;
  --color-shadow: rgba(0, 0, 0, 0.08);
}

.page-container {
  max-width: 1008px;
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  background-color: var(--color-background);
  font-family: var(--font-text);
  color: var(--color-text-primary);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
}

/* Headers */

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-text-primary);
  margin: var(--space-default) 0;
}

h1 {
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.4px;
}

h3 {
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.4px;
}

h4 {
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.4px;
}

p {
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: var(--color-text-secondary);
  margin: var(--space-default) 0;
}

a {
  color: var(--color-accent);
  text-underline-offset: 0px;
  text-decoration: underline;
  text-decoration-color: var(--color-accent-b);
  text-decoration-skip-ink: none;
  text-underline-position: under;
  text-decoration-thickness: 2px;

  &.tertiary {
    color: var(--color-text-tertiary);
    text-decoration: none;

    &:hover {
      color: var(--color-text-secondary);
    }
  }
}

a:hover {
  color: var(--color-accent-hover);
}

ul,
ol {
  margin: 16px 0;
  padding-left: 40px;
}

li {
  margin: 8px 0;
}

img {
  vertical-align: middle;
  max-width: 100%;
  display: inline-block;
}

section {
  padding: var(--space-section) 0;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: var(--space-default);
  border: 1px solid var(--color-border-level-3);
  border-radius: var(--radius-l);
  background-color: var(--color-surface);
  color: var(--color-text-secondary);
  font-size: var(--font-size-s);
  text-align: center;
  object-fit: fill;
  flex-flow: row;
  justify-content: center;
  align-items: center;
  margin-right: auto;
  margin-left: auto;
  padding: 2px 12px;
  text-decoration: none;

  &:hover {
    color: var(--color-text-primary);
  }
}

.heading {
  margin-bottom: var(--space-default);
  flex-direction: column;
  max-width: 672px;
  display: flex;

  &.hero {
    padding-bottom: 36px;
  }

  &.centered {
    text-align: center;
    margin-right: auto;
    margin-left: auto;
  }
}

.no-top-margin {
  margin-top: 0;
}

.balanced {
  text-wrap: balance;
}

.content {
  padding: var(--space-section) 0;
  max-width: 720px;
}

/* Text */

/* Style used for content */

.paragraph {
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: var(--color-text-secondary);

  &.s,
  &.m,
  &.l,
  &.xl {
    font-size: 16px;
    line-height: 24px;
  }

  &.bold {
    font-weight: 600;
    color: var(--color-text-primary);
  }

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

/* Styles for UI elements */

.ui {
  font-size: 16px;
  line-height: 24px;

  &.s,
  &.m {
    font-size: 16px;
    line-height: 24px;
  }

  &.pseudo-link,
  .pseudo-link {
    text-decoration: underline;
    text-decoration-color: var(--color-accent-b);
    text-decoration-thickness: 2px;
  }
}

/* Buttons */

.button {
  display: inline-flex;
  gap: 8px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  background: transparent;
  font-family: var(--font-text);
  font-weight: 500;
  text-align: center;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
  transition: all 0.15s ease;
  user-select: none;
  box-sizing: border-box;

  /* Default (36px) */
  height: 36px;
  padding: 0 14px;
  font-size: 12px;
  line-height: 1;
  border-radius: var(--radius-m);

  /* XL size (44px, height 44px, radius 16px, font-size 14px) */
  &.xl,
  &.size-xl {
    height: 44px;
    padding: 0 18px;
    font-size: 14px;
    border-radius: 16px;
    font-weight: 500;
  }

  /* LG size (36px, radius 12px, font-size 12px) */
  &.lg,
  &.size-lg {
    height: 36px;
    padding: 0 14px;
    font-size: 12px;
    border-radius: var(--radius-m);
    font-weight: 500;
  }

  /* MD / Compact size (32px, radius 12px, font-size 12px) */
  &.compact,
  &.md,
  &.size-md {
    height: 32px;
    padding: 0 12px;
    font-size: 12px;
    border-radius: var(--radius-m);
    font-weight: 500;
  }

  /* Types */
  &.primary {
    background-color: var(--color-primary, #2b7fff);
    color: var(--color-on-primary, #ffffff);
    box-shadow: 0px 1px 1px var(--color-shadow);

    &:hover {
      background-color: var(--color-accent-hover, #1a6fe6);
      color: #ffffff;
      box-shadow: 0px 2px 4px var(--color-shadow);
    }

    &:active {
      transform: translateY(1px);
    }
  }

  &.secondary {
    background-color: #ffffff;
    border: 1px solid var(--color-outline-variant, #e7e5e4);
    color: var(--color-on-surface, #1c1917);
    box-shadow: 0px 1px 2px var(--color-shadow);

    &:hover {
      background-color: #f5f5f4;
      border-color: var(--color-outline-variant, #e7e5e4);
      color: var(--color-on-surface, #1c1917);
    }

    &:active {
      transform: translateY(1px);
    }
  }

  &.outline {
    background: transparent;
    background-color: transparent;
    border: 1px solid var(--color-outline-variant, #e7e5e4);
    color: var(--color-on-surface, #1c1917);
    box-shadow: none;

    &:hover {
      border-color: var(--color-border-level-3, #d6d3d1);
      color: var(--color-on-surface, #1c1917);
    }

    &:active {
      transform: translateY(1px);
    }
  }

  &.tertiary {
    background-color: transparent;
    border: 1px solid var(--color-outline-variant, #e7e5e4);
    color: var(--color-on-surface, #1c1917);
    box-shadow: none;

    &:hover {
      background-color: var(--color-surface-container, #fafaf9);
      border-color: var(--color-border-level-3, #d6d3d1);
      color: var(--color-on-surface, #1c1917);
    }

    &:active {
      transform: translateY(1px);
    }
  }

  &.ghost {
    background: transparent;
    color: var(--color-on-surface, #1c1917);
    border: none;

    &:hover {
      background-color: var(--color-surface, #fafaf9);
      color: var(--color-on-surface, #1c1917);
    }

    &.active {
      background-color: var(--color-border-level-2, #e7e5e4);
    }
  }

  &.destructive {
    background-color: var(--color-error-container, #fef2f2);
    color: var(--color-error, #c10007);
    border: none;

    &:hover {
      background-color: #fee2e2;
    }
  }
}

/* Button groups */

.button-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;

  &.margin-paragraph {
    margin: var(--space-default) 0;
  }

  &.centered {
    justify-content: center;
    align-items: center;
  }

  &.stacked {
    flex-direction: column;
    align-items: justify;

    & .button {
      width: 100%;
    }
  }
}

/* Links */

.icon-link {
  gap: 6px;
  color: var(--color-accent);
  align-items: center;
  text-decoration: none;
  display: flex;

  &:hover {
    color: var(--color-accent-hover);
  }
}

.link-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding-top: 12px;
}

.link-list-horizontal {
  display: flex;
  gap: var(--space-button-m-horizontal);
}

/* Icons */

.icon {
  display: flex !important;
  align-items: center;
  line-height: inherit !important;
  color: var(--color-text-tertiary);

  &.s {
    font-size: var(--font-size-s);
  }

  &.m {
    font-size: var(--font-size-m);
  }

  &.l {
    font-size: var(--font-size-l);
  }

  &.xl {
    font-size: var(--font-size-xl);
    line-height: var(--line-height-paragraph-xl) !important;
  }
}

/* Navigation */

.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-bottom-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  z-index: 1000;
}

.site-header.is-scrolled {
  border-bottom-color: var(--color-outline-variant, #e7e5e4);
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1008px;
  margin: 0 auto;
  padding: 14px 24px;
  width: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.4px;
  color: var(--color-on-surface, #1c1917) !important;
  text-decoration: none !important;
  line-height: 1;
  transition: opacity 0.15s ease;

  &:hover,
  &:active,
  &:focus {
    color: var(--color-on-surface, #1c1917) !important;
    text-decoration: none !important;
    opacity: 0.85;
  }
}

.nav-brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.nav-brand-logo svg {
  display: block;
  width: 24px;
  height: 24px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 22px;
  font-weight: 500;
  padding: 8px 0;
  display: inline-block;
  text-decoration: none;
  transition: color 0.15s ease;

  &:hover {
    color: var(--color-primary);
  }

  &:active {
    color: var(--color-text-secondary);
  }
}

.hero-eyebrow {
  background-color: #f5f5f4;
  border-radius: 16px;
  padding: 4px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  margin-bottom: 20px;
}

.hero-heading {
  font-family: var(--font-heading);
  font-size: clamp(48px, 7vw, 80px);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -2px;
  color: var(--color-on-surface);
  text-align: center;
  margin: 0 0 20px 0;
}

.hero-gear-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  vertical-align: -0.15em;
  margin: 0 0.02em;
}

.hero-gear-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  transform-origin: 36px 36px;
  will-change: transform;
  animation: gearTickBounce 1.2s ease-out infinite;
}

@keyframes gearTickBounce {
  0% {
    transform: rotate(0deg);
  }
  18% {
    transform: rotate(70deg);
  }
  28% {
    transform: rotate(56deg);
  }
  36% {
    transform: rotate(61deg);
  }
  42%, 100% {
    transform: rotate(60deg);
  }
}

.hero-subtitle {
  font-size: 16px;
  line-height: 24px;
  color: #57534d;
  text-align: center;
  max-width: 320px;
  margin: 0 auto 32px;
}

.background-gradient {
  display: none;
}

.promo-cta {
  background-image: linear-gradient(
    135deg,
    var(--color-gradient-promo-start),
    var(--color-gradient-promo-end)
  );
  border-radius: 16px;
  margin-bottom: var(--space-section);
}

.image-wide {
  margin: var(--space-default) 0;
  width: 116%;
  max-width: none;
  margin-left: -8%;
}

.mobile-only,
.nav-hamburger {
  display: none;
}

.clients-container {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  place-content: stretch center;
  align-items: center;
  padding: 24px 0;
}

.text-centered {
  text-align: center;
}

.feature-card {
  padding: 32px;
  background-color: var(--color-surface, #fafaf9);
  border-radius: 24px;
  display: flex;
  gap: 24px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  height: 380px;
  min-height: 380px;
  max-height: 380px;
  overflow: hidden;
  box-sizing: border-box;
}

.feature-heading h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  color: var(--color-on-surface, #1c1917);
  line-height: 1.3;
  margin: 0 0 10px 0;
}

.feature-heading p {
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: var(--color-text-secondary, #57534d);
  margin: 0;
}

.feature-illustration-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
}

.feature-illustration-img {
  width: 80%;
  height: auto;
  display: block;
}

.custom-instructions-img {
  width: 92%;
  max-width: 92%;
  max-height: 195px;
  height: auto;
  object-fit: contain;
}

/* Feature: Instant 1-Click Extraction (Figma node 245:11730) */

.feature-card.extraction-feature-card,
.feature-card.wide-feature-card {
  background-color: var(--color-surface, #fafaf9);
  border-radius: 24px;
  padding: 40px;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: space-between;
  gap: 60px;
  width: 100%;
  min-height: 380px;
  box-sizing: border-box;
}

.extraction-card-left,
.extraction-card-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
  gap: 32px;
}

.extraction-card-right .extraction-action-badge {
  align-self: flex-end;
}

.extraction-card-left .feature-heading,
.extraction-card-right .feature-heading {
  max-width: 520px;
}

.extraction-card-left .feature-heading h3,
.extraction-card-right .feature-heading h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  color: var(--color-on-surface, #1c1917);
  line-height: 1.25;
  margin: 0 0 12px 0;
}

.extraction-card-left .feature-heading p,
.extraction-card-right .feature-heading p {
  font-size: 16px;
  line-height: 24px;
  color: var(--color-text-secondary, #57534d);
  margin: 0;
}

.extraction-action-badge {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--color-accent, #2b7fff);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.telegram-badge {
  background-color: transparent;
  width: 96px;
  height: 96px;
  border-radius: 0;
}

.telegram-badge svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Right Popup Mockup Image & Slots */
.popup-mockup-wrapper {
  width: 358px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wide-illustration-slot {
  width: 358px;
  min-height: 314px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.telegram-feature-card {
  overflow: hidden;
  position: relative;
}

.telegram-illustration-slot {
  align-self: stretch;
  margin-top: -80px;
  margin-bottom: -40px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
}

.telegram-illustration-img {
  width: 100%;
  max-width: 340px;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: top;
  margin-top: 0;
}

.wide-illustration-slot .feature-illustration-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.popup-mockup-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 28px;
}

/* Marquee App Icon Slider in Feature Card */
.feature-card.feature-card-marquee {
  overflow: hidden;
  position: relative;
  justify-content: space-between;
}

.marquee-slider-container {
  width: calc(100% + 64px);
  margin-left: -32px;
  margin-right: -32px;
  overflow: hidden;
  position: relative;
  padding: 16px 0;
  margin-top: 12px;
  margin-bottom: 18px;
  display: flex;
  box-sizing: border-box;
}

.marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: marquee-slide 30s linear infinite;
  will-change: transform;
}

.marquee-slider-container:hover .marquee-track {
  animation-play-state: paused;
}

.app-icon-tile {
  width: 120px;
  height: 120px;
  min-width: 120px;
  min-height: 120px;
  background: #ffffff;
  border: 1px solid var(--color-outline-variant, #e7e5e4);
  border-radius: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  font-size: 54px;
  flex-shrink: 0;
  overflow: hidden;
  padding: 16px;
  box-sizing: border-box;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-brand-img {
  max-width: 78%;
  max-height: 78%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.app-icon-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

@keyframes marquee-slide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 8px));
  }
}

/* Selected Text Selection Highlight for Saved Copied */
.selected-text-preview {
  width: 100%;
  box-sizing: border-box;
  overflow: visible;
  display: block;
  padding: 0;
  margin-top: 0;
}

.text-selection-sample {
  font-family: var(--font-body, 'Inter', -apple-system, sans-serif);
  font-size: 21px;
  line-height: 1.35;
  letter-spacing: -0.3px;
  width: 100%;
}

.selection-faded-line {
  color: #c7c4c0;
  opacity: 0.65;
  user-select: none;
}

.selection-highlighted-block {
  color: #1c1917;
  display: inline;
}

.selection-highlighted-block span {
  background-color: #dbeafe;
  display: inline;
  padding: 2px 4px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

@media screen and (max-width: 767px) {
  .feature-card {
    height: auto;
    max-height: none;
    min-height: auto;
  }

  .text-selection-sample {
    font-size: 18px;
    line-height: 1.35;
  }
}

/* Custom Instructions Mockup Card */
.instructions-mockup-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.instructions-mockup-card {
  width: 100%;
  max-width: 100%;
  background: #ffffff;
  border: 1px solid var(--color-outline-variant, #e7e5e4);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
}

.instructions-mockup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.instructions-mockup-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-on-surface, #1c1917);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.instructions-file-pill {
  background: #f5f5f4;
  border: 1px solid #e7e5e4;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 500;
  color: #57534d;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.instructions-mockup-body {
  background: #fafaf9;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.5;
  color: #44403c;
  font-family: inherit;
  border-left: 3px solid var(--color-accent, #2b7fff);
}

@media screen and (max-width: 767px) {
  .feature-card.extraction-feature-card,
  .feature-card.wide-feature-card {
    flex-direction: column;
    padding: 24px;
    gap: 32px;
    min-height: auto;
  }

  .feature-card.wide-feature-card.reversed {
    flex-direction: column-reverse;
  }

  .popup-mockup-wrapper,
  .wide-illustration-slot {
    width: 100%;
    max-width: 358px;
    min-height: auto;
    margin: 0 auto;
  }

  .extraction-card-right .extraction-action-badge {
    align-self: flex-start;
  }
}

.feature-heading {
  max-width: 672px;
}

/* Grid */

.grid {
  display: grid;
  margin: var(--space-default) 0;
  gap: 12px;
  grid-template-rows: auto;
  grid-auto-columns: 1fr;

  &.gap-l {
    gap: 24px;
  }

  &.gap-xl {
    gap: 60px;
  }
}

.columns-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.columns-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.columns-1\/2-1 {
  grid-template-columns: minmax(0, 0.5fr) minmax(0, 1fr);
}

.cards-with-icons-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin: 40px 0 20px 0;
  padding: 0;
}

.card-with-icon {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.card-with-icon .icon {
  font-size: 26px !important;
  color: var(--color-accent, #2b7fff);
  margin-bottom: 2px;
  display: inline-flex;
}

.card-with-icon .feature-heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 100%;
}

.card-with-icon .feature-heading .paragraph.bold {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-on-surface, #1c1917);
  margin: 0;
  line-height: 1.35;
}

.card-with-icon .feature-heading .paragraph.secondary {
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: var(--color-text-secondary, #57534d);
  margin: 0;
}

.card-code-block {
  padding: var(--space-card-m);
  border: 1px solid var(--color-border-level-2);
  border-radius: var(--radius-l);
  overflow: auto;

  &.dark {
    background-color: #2b2b2b;
  }
}

/* Accordion */

.accordion-container {
  border-top: 1px solid var(--color-border-level-2);
  flex-flow: column;
  display: flex;
}

.accordion-item {
  border-bottom: 1px solid var(--color-border-level-2);
  width: 100%;
  overflow: hidden;
}

.accordion-toggle {
  padding: var(--space-card-m);
  align-items: center;
  display: flex;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-on-surface, #1c1917);
}

.accordion-toggle:hover {
  color: var(--color-text-secondary, #57534d);
}

.accordion-chevron {
  margin-left: auto;
  color: var(--color-text-secondary, #57534d);
}

[open] .accordion-chevron {
  transform: rotate(180deg);
}

.accordion-content {
  padding-right: 48px;
  padding-bottom: var(--space-button-m-vertical);
  padding-left: var(--space-card-m);
  background-color: #0000;
  display: block;
}

.accordion-content p {
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: var(--color-text-secondary, #57534d);
}

/* Modern Site Footer */
.site-footer {
  border-top: 1px solid var(--color-outline-variant, #e7e5e4);
  margin-top: 80px;
  padding: 56px 0 40px 0;
  width: 100%;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 48px;
  max-width: 1008px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-brand {
  max-width: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand-top {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-on-surface, #1c1917) !important;
  text-decoration: none !important;
  transition: opacity 0.15s ease;

  &:hover,
  &:active,
  &:focus {
    color: var(--color-on-surface, #1c1917) !important;
    text-decoration: none !important;
    opacity: 0.85;
  }
}

.footer-desc {
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: var(--color-text-secondary, #57534d);
  margin: 0;
}

.footer-copy {
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--color-text-secondary, #57534d);
  margin: 0;
}

.footer-author-link,
.inline-link {
  color: var(--color-on-surface, #1c1917);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

.footer-author-link:hover,
.inline-link:hover {
  color: var(--color-accent, #2b7fff);
}

.footer-nav {
  display: flex;
  gap: 56px;
  align-items: flex-start;
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-on-surface, #1c1917);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-secondary, #57534d);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: var(--color-on-surface, #1c1917);
}

@media screen and (max-width: 767px) {
  .site-footer {
    margin-top: 48px;
    padding: 40px 0 32px 0;
  }

  .footer-container {
    flex-direction: column;
    gap: 36px;
  }

  .footer-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    width: 100%;
  }
}

.full-width {
  width: 100%;
}

.margin-top-l {
  margin-top: 24px;
}

.margin-top-xl {
  margin-top: 48px;
}

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

.tertiary {
  color: var(--color-text-tertiary);
}

.color-accent {
  color: var(--color-accent);
}

.inline-code {
  font-family: var(--font-mono);
  font-size: var(--font-size-s);
  line-height: inherit;
  background-color: var(--color-surface);
  padding: 2px 4px;
  border-radius: var(--radius-xs);
  color: var(--color-text-secondary);
}

/* ==========================================================================
/* Hero Normal Flow Container (Zero sticky, natural scroll flow) */
.hero-demo-wrapper {
  width: 100%;
  max-width: 1008px;
  margin: 40px auto 40px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  position: relative;
  z-index: 20;
}

/* Browser Mockup Frame */
.browser-mockup {
  width: 100%;
  position: relative;
  overflow: visible;
}

.browser-frame {
  position: absolute;
  inset: 0;
  background: #ffffff;
  border: 1px solid var(--color-outline-variant, #e7e5e4);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
  pointer-events: none;
  z-index: 0;
}

.browser-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  background: #fbfbfa;
  border: 1px solid var(--color-outline-variant, #e7e5e4);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  margin: 0 0 0 0;
}

.browser-dots {
  position: absolute;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.browser-address-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f0f0ee;
  padding: 4px 14px;
  border-radius: 8px;
  font-size: 12px;
  color: #57534d;
  font-family: var(--font-mono);
  max-width: 440px;
  width: 100%;
  justify-content: flex-start;
}

.browser-url {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hotel-page-content {
  padding: 24px 28px;
  color: #44403c;
  font-size: 14px;
  line-height: 1.6;
}

.hotel-hero-header {
  margin-bottom: 16px;
}

.hotel-main-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  color: var(--color-on-surface);
  line-height: 1.2;
  margin: 0 0 6px 0;
}

.hotel-address-line {
  font-size: 13px;
  color: #57534d;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.hotel-map-link {
  color: #006ce4;
  font-weight: 600;
  text-decoration: none;
}

.hotel-map-link:hover {
  text-decoration: underline;
}

.hotel-address-sep {
  color: #a8a29e;
  margin: 0 2px;
}

.hotel-sub-badge {
  color: #78716c;
}

.hotel-gallery-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
  height: 340px;
}

.skeleton-part {
  border: 1px solid var(--color-outline-variant, #e7e5e4) !important;
  box-sizing: border-box;
}

.gallery-main {
  height: 340px;
  overflow: hidden;
  border-radius: 10px;
  box-sizing: border-box;
  position: relative;
}

.gallery-main .hotel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-sub-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 340px;
}

.gallery-sub {
  height: 165px;
  overflow: hidden;
  border-radius: 10px;
  box-sizing: border-box;
  position: relative;
}

.gallery-sub .hotel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hotel-section-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-on-surface);
  margin: 0 0 14px 0;
}

.hotel-paragraph {
  margin: 0 0 14px 0;
  color: #44403c;
  font-size: 14px;
  line-height: 1.6;
}

.hotel-couples-note {
  font-style: italic;
  color: #78716c;
  margin-top: 16px;
}

.summary-morph-wrapper {
  margin-top: 6px;
  min-height: 22px;
}



.dimmable-part {
  will-change: opacity;
  transition: opacity 0.1s ease-out;
}

.fade-in-part {
  opacity: 0;
  will-change: opacity;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 9999;
}

.extract-word {
  position: relative;
  display: inline-block;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  will-change: transform, font-size;
  white-space: nowrap;
  z-index: 9999;
  transform-origin: left center;
}

.extract-word.summary-token {
  color: #1c1917;
  font-weight: 500;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
  width: 250px;
  max-width: 100%;
}

/* Google Sheets Table Mockup (in normal document flow) */
.sheet-card {
  position: relative;
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--color-outline-variant, #e7e5e4);
  border-bottom: none;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  box-shadow: none;
  z-index: 10;
  overflow: hidden;
  will-change: transform;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 1) 58%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 1) 58%, rgba(0, 0, 0, 0) 100%);
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #fbfbfa;
  border-bottom: 1px solid var(--color-outline-variant, #e7e5e4);
}

.sheet-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sheet-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.sheet-icon svg {
  display: block;
}

.sheet-name {
  font-size: 14px;
  font-weight: 600;
  color: #1c1917;
}

.sheet-table-wrapper {
  overflow-x: auto;
  background: #ffffff;
}

.sheet-table {
  width: 100%;
  border-collapse: collapse;
  border-style: hidden;
  font-size: 14px;
  text-align: left;
  table-layout: fixed;
}

.sheet-table th,
.sheet-table td {
  padding: 10px 12px;
  border: 1px solid #e7e5e4;
  white-space: nowrap;
  overflow: visible;
  font-size: 14px;
  line-height: 1.3;
}

.sheet-table th {
  background: #fbfbfa;
  font-size: 12px;
  font-weight: 600;
  color: #78716c;
}

.col-num { width: 36px; }
.col-hotel { width: 19%; }
.col-location { width: 14%; }
.col-nights { width: 11%; }
.col-price { width: 14%; }
.col-rating { width: 10%; }
.col-summary { width: 32%; }

.truncate-3-lines {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
  line-height: 1.3;
  width: 100%;
}

.sheet-table th.row-num-col,
.sheet-table td.row-num {
  width: 36px;
  text-align: center;
  background: #fbfbfa;
  color: #a8a29e;
  font-family: var(--font-mono);
  font-size: 10px;
}

.existing-row td {
  color: #78716c;
}

.empty-row td {
  height: 46px;
  background: #ffffff;
}

.target-row {
  height: 75px;
  background: #ffffff;
  transition: background 0.3s ease;
}

.sheet-target-cell {
  position: relative;
  font-size: 14px;
  color: #1c1917;
  font-weight: 500;
  vertical-align: middle;
}

.cell-anchor {
  display: inline-block;
  width: 1px;
  height: 1px;
  visibility: hidden;
}

/* Status Tags in Sheet */
.sheet-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

.tag-applied {
  background: #dcfce7;
  color: #15803d;
}

.tag-interview {
  background: #ede9fe;
  color: #6d28d9;
}

.tag-review {
  background: #fef3c7;
  color: #b45309;
}

.tag-not-started {
  background: #f1f5f9;
  color: #475569;
}
