/* ==========================================================================
   Landing Page Section Styles
   ========================================================================== */


/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  background-color: var(--linkyy-dark);
  padding: 160px 0 var(--space-24);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.hero__title {
  color: #ffffff;
  font-size: var(--text-6xl);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
}

.hero__subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-lg);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: var(--space-8);
}

.hero__actions {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
  flex-wrap: wrap;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-6);
}

.hero__badge {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
}

.hero__badge svg {
  flex-shrink: 0;
  color: var(--linkyy-coral);
}

/* Browser chrome screenshot mock */
.hero__screenshot {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl), 0 0 80px rgba(232, 89, 60, 0.15);
  background-color: var(--linkyy-dark-soft);
}

.hero__browser-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background-color: #2f3646;
}

.hero__browser-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.15);
}

.hero__browser-dot:first-child {
  background-color: #ff5f57;
}

.hero__browser-dot:nth-child(2) {
  background-color: #ffbd2e;
}

.hero__browser-dot:nth-child(3) {
  background-color: #28c840;
}

.hero__screenshot-body {
  background-color: var(--linkyy-dark-soft);
  overflow: hidden;
}

.hero__screenshot-body img {
  display: block;
  width: 100%;
  height: auto;
}


/* ==========================================================================
   DASHBOARD DEMO (shared styles for all placements)
   ========================================================================== */

.dashboard-demo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background-color: var(--linkyy-dark-soft);
}

.dashboard-demo__chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background-color: #2f3646;
}

.dashboard-demo__dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.15);
}

.dashboard-demo__dot:first-child {
  background-color: #ff5f57;
}

.dashboard-demo__dot:nth-child(2) {
  background-color: #ffbd2e;
}

.dashboard-demo__dot:nth-child(3) {
  background-color: #28c840;
}

.dashboard-demo__body img {
  display: block;
  width: 100%;
  height: auto;
}

/* Standalone showcase section */
.dashboard-showcase {
  background-color: var(--linkyy-dark);
  overflow: hidden;
}

.dashboard-showcase__inner {
  text-align: center;
}

.dashboard-showcase__inner .section-heading h2 {
  color: #ffffff;
}

.dashboard-showcase__subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-lg);
  max-width: 600px;
  margin: calc(-1 * var(--space-4)) auto var(--space-10);
}

.dashboard-showcase .dashboard-demo {
  max-width: 960px;
  margin: 0 auto;
  box-shadow: var(--shadow-xl), 0 0 80px rgba(232, 89, 60, 0.15);
}


/* ==========================================================================
   PROBLEMS
   ========================================================================== */

.problems {
  background-color: var(--linkyy-surface-muted);
}

.problems__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.problems__card {
  background-color: var(--linkyy-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.problems__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.problems__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background-color: var(--linkyy-coral-light);
  color: var(--linkyy-coral);
  margin-bottom: var(--space-5);
}

.problems__card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.problems__card p {
  font-size: var(--text-base);
  line-height: 1.7;
}


/* ==========================================================================
   HOW IT WORKS
   ========================================================================== */

.how-it-works {
  background-color: var(--linkyy-surface);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  position: relative;
}

.steps__item {
  text-align: center;
  position: relative;
}

/* Connecting line between steps */
.steps__item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(50% + 36px);
  width: calc(100% - 72px);
  height: 2px;
  background: linear-gradient(90deg, var(--linkyy-coral), var(--linkyy-border));
}

.steps__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background-color: var(--linkyy-coral);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-5);
  position: relative;
  z-index: 1;
}

.steps__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.steps__description {
  font-size: var(--text-base);
  max-width: 320px;
  margin: 0 auto;
}


/* ==========================================================================
   FEATURES
   ========================================================================== */

.features {
  background-color: var(--linkyy-surface-muted);
}

.features__group {
  margin-bottom: var(--space-12);
}

.features__group:last-child {
  margin-bottom: 0;
}

.features__group-label {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--linkyy-border);
}

.features__group-label--free {
  color: var(--linkyy-success);
  border-bottom-color: var(--linkyy-success);
}

.features__group-label--pro {
  color: var(--linkyy-coral);
  border-bottom-color: var(--linkyy-coral);
}

.features__group--pro .features__card {
  border-left: 3px solid var(--linkyy-coral);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.features__group--pro .features__grid {
  grid-template-columns: repeat(2, 1fr);
}

.features__card {
  background-color: var(--linkyy-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.features__card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.features__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background-color: var(--linkyy-coral-light);
  color: var(--linkyy-coral);
  margin-bottom: var(--space-4);
}

.features__card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.features__card p {
  font-size: var(--text-sm);
  line-height: 1.7;
}


/* ==========================================================================
   COMPARISON TABLE
   ========================================================================== */

.comparison {
  background-color: var(--linkyy-surface);
}

.comparison__table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-8);
}

.comparison__table {
  width: 100%;
  min-width: 800px;
  font-size: var(--text-sm);
}

.comparison__table thead {
  background-color: var(--linkyy-dark);
  color: #ffffff;
}

.comparison__table th {
  padding: var(--space-4) var(--space-5);
  font-family: var(--font-display);
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

.comparison__table td {
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--linkyy-border);
  vertical-align: middle;
}

.comparison__table tbody tr:nth-child(even) {
  background-color: var(--linkyy-surface-muted);
}

.comparison__table tbody tr:hover {
  background-color: var(--linkyy-coral-light);
}

/* Linkyy highlight columns */
.comparison__highlight {
  background-color: rgba(232, 89, 60, 0.06);
}

.comparison__highlight--pro {
  background-color: rgba(232, 89, 60, 0.12);
}

thead .comparison__highlight {
  background-color: var(--linkyy-coral);
}

thead .comparison__highlight--pro {
  background-color: var(--linkyy-coral-hover);
}

.comparison__check {
  color: var(--linkyy-success);
  font-weight: 700;
  font-size: var(--text-lg);
}

.comparison__cross {
  color: var(--linkyy-text-muted);
  font-weight: 700;
  font-size: var(--text-lg);
}

.comparison__table small {
  color: var(--linkyy-text-muted);
  font-size: var(--text-xs);
  display: inline;
  margin-left: var(--space-1);
}

.comparison__note {
  font-size: var(--text-sm);
  font-style: italic;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  color: var(--linkyy-text-muted);
}


/* ==========================================================================
   PRICING
   ========================================================================== */

.pricing {
  background-color: var(--linkyy-surface-muted);
}

/* Free callout banner */
.pricing__free-callout {
  max-width: 800px;
  margin: 0 auto var(--space-12);
  background-color: var(--linkyy-surface);
  border: 1px solid var(--linkyy-border);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
}

.pricing__free-inner {
  text-align: center;
}

.pricing__free-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--linkyy-text);
  margin-bottom: var(--space-2);
}

.pricing__free-subtitle {
  font-size: var(--text-lg);
  color: var(--linkyy-text-secondary);
  margin-bottom: var(--space-6);
}

.pricing__free-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3) var(--space-6);
  margin-bottom: var(--space-8);
}

.pricing__free-features li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-base);
  color: var(--linkyy-text-secondary);
}

.pricing__free-features svg {
  flex-shrink: 0;
  color: var(--linkyy-success);
}

.pricing__free-cta {
  color: var(--linkyy-text);
  border-color: var(--linkyy-border);
}

.pricing__free-cta:hover {
  color: var(--linkyy-coral);
  border-color: var(--linkyy-coral);
}

/* Pro tier cards — 3-column grid */
.pricing__tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  max-width: 960px;
  margin: 0 auto;
}

.pricing__card {
  background-color: var(--linkyy-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Coral accent stripe at top */
.pricing__card::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--linkyy-coral), #f4845f);
}

/* Featured (Most Popular) card */
.pricing__card--featured {
  border: 2px solid var(--linkyy-coral);
  transform: scale(1.03);
  z-index: 1;
}

.pricing__badge {
  display: block;
  text-align: center;
  padding: var(--space-2) var(--space-4);
  background-color: var(--linkyy-coral);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.pricing__card-header {
  text-align: center;
  padding: var(--space-8) var(--space-6) var(--space-4);
}

.pricing__plan-name {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--linkyy-coral);
  margin-bottom: var(--space-4);
}

.pricing__price {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-1);
}

.pricing__currency {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--linkyy-text);
  margin-top: 8px;
}

.pricing__amount {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--linkyy-text);
  letter-spacing: -0.03em;
}

.pricing__term {
  font-size: var(--text-sm);
  color: var(--linkyy-text-muted);
  align-self: flex-end;
  margin-bottom: 8px;
}

.pricing__sites {
  display: block;
  font-size: var(--text-sm);
  color: var(--linkyy-text-muted);
  margin-top: var(--space-2);
}

.pricing__card-body {
  padding: 0 var(--space-6);
  flex: 1;
}

.pricing__includes {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--linkyy-text);
  margin-bottom: var(--space-3);
}

.pricing__features {
  margin-bottom: var(--space-6);
}

.pricing__features li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  color: var(--linkyy-text-secondary);
  border-bottom: 1px solid var(--linkyy-border);
}

.pricing__features li:last-child {
  border-bottom: none;
}

.pricing__features svg {
  flex-shrink: 0;
  color: var(--linkyy-success);
}

.pricing__cta {
  display: block;
  width: calc(100% - var(--space-6) * 2);
  margin: auto var(--space-6) var(--space-6);
  text-align: center;
}

.pricing__subtext {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--linkyy-text-muted);
  margin-top: var(--space-8);
}


/* ==========================================================================
   FAQ
   ========================================================================== */

.faq {
  background-color: var(--linkyy-surface);
}

.faq__list {
  max-width: 760px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--linkyy-border);
}

.faq__item:first-child {
  border-top: 1px solid var(--linkyy-border);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-5) 0;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--linkyy-text);
  cursor: pointer;
  list-style: none;
  transition: color var(--transition-fast);
}

.faq__question::-webkit-details-marker {
  display: none;
}

/* +/- toggle indicator */
.faq__question::after {
  content: '+';
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background-color: var(--linkyy-surface-muted);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--linkyy-text-muted);
  transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-base);
}

.faq__item[open] .faq__question::after {
  content: '\2212';
  background-color: var(--linkyy-coral-light);
  color: var(--linkyy-coral);
  transform: rotate(180deg);
}

.faq__question:hover {
  color: var(--linkyy-coral);
}

.faq__answer {
  padding: 0 0 var(--space-5);
}

.faq__answer p {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--linkyy-text-secondary);
  max-width: 680px;
}


/* ==========================================================================
   RESPONSIVE — TABLET (768px)
   ========================================================================== */

@media (max-width: 768px) {

  /* Hero */
  .hero {
    padding: 120px 0 var(--space-16);
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .hero__title {
    font-size: var(--text-4xl);
  }

  .hero__subtitle {
    font-size: var(--text-base);
  }

  /* Grids to 2 columns */
  .problems__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .steps__item:not(:last-child)::after {
    display: none;
  }

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

  /* Comparison: sticky first column */
  .comparison__table td:first-child,
  .comparison__table th:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background-color: inherit;
  }

  .comparison__table th:first-child {
    background-color: var(--linkyy-dark);
  }

  .comparison__table tbody tr:nth-child(odd) td:first-child {
    background-color: var(--linkyy-surface);
  }

  .comparison__table tbody tr:nth-child(even) td:first-child {
    background-color: var(--linkyy-surface-muted);
  }

  .comparison__table tbody tr:hover td:first-child {
    background-color: var(--linkyy-coral-light);
  }

  /* Pricing tiers — stack to single column */
  .pricing__tiers {
    grid-template-columns: 1fr;
    max-width: 440px;
  }

  .pricing__card--featured {
    transform: none;
  }

  .pricing__free-callout {
    padding: var(--space-8);
  }

  .pricing__free-features {
    flex-direction: column;
    align-items: center;
  }

}


/* ==========================================================================
   RESPONSIVE — MOBILE (480px)
   ========================================================================== */

@media (max-width: 480px) {

  /* Hero */
  .hero {
    padding: 100px 0 var(--space-12);
  }

  .hero__title {
    font-size: var(--text-3xl);
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero__badges {
    flex-direction: column;
    gap: var(--space-3);
  }

  /* Grids to single column */
  .problems__grid,
  .steps,
  .features__grid {
    grid-template-columns: 1fr;
  }

  /* Steps: vertical layout */
  .steps__item {
    text-align: left;
    display: grid;
    grid-template-columns: 56px 1fr;
    grid-template-rows: auto auto;
    column-gap: var(--space-4);
  }

  .steps__number {
    grid-row: 1 / 3;
    align-self: start;
    margin-bottom: 0;
  }

  .steps__title {
    align-self: end;
  }

  .steps__description {
    max-width: none;
    margin: 0;
  }

  .steps__item:not(:last-child) {
    padding-bottom: var(--space-6);
  }

  .steps__item:not(:last-child)::after {
    display: block;
    top: 56px;
    left: 28px;
    width: 2px;
    height: calc(100% - 56px);
  }

  /* Problems: reduced padding */
  .problems__card {
    padding: var(--space-6);
  }

  /* Pricing */
  .pricing__free-callout {
    padding: var(--space-6);
  }

  .pricing__amount {
    font-size: var(--text-5xl);
  }

  .pricing__cta {
    width: calc(100% - var(--space-6) * 2);
    margin-left: var(--space-6);
    margin-right: var(--space-6);
  }

  /* FAQ */
  .faq__question {
    font-size: var(--text-base);
  }
}
