/* ── Subpage shared layout ── */

.page-main {
  padding-top: var(--nav-height);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 72px;
  border-bottom: none;
  background: transparent;
}

.page-hero--compact {
  padding: 72px 0 48px;
}

.page-hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-brown-500);
  margin-bottom: 16px;
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: 3.6rem;
  font-weight: 500;
  line-height: 1.15;
  color: var(--color-brown-900);
  max-width: 640px;
  margin-bottom: 16px;
}

.page-hero__subtitle {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--color-text-muted);
  max-width: 560px;
  line-height: 1.85;
}

.page-section {
  padding: 80px 0;
}

.page-section--alt {
  background: var(--color-bg-warm);
}

.page-section__label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-brown-500);
  margin-bottom: 12px;
}

.page-section__title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--color-brown-900);
  margin-bottom: 40px;
  max-width: 520px;
}

/* ── Download / Software page ── */

.download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.phone-mockup {
  position: relative;
  justify-self: center;
  width: min(280px, 100%);
}

.phone-mockup__frame {
  background: var(--color-brown-900);
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
}

.phone-mockup__screen {
  background: var(--color-surface);
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 9/19;
  display: flex;
  flex-direction: column;
}

.phone-mockup__status {
  display: flex;
  justify-content: space-between;
  padding: 12px 20px 8px;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--color-brown-800);
}

.phone-mockup__app {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.phone-mockup__app-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-brown-900);
  margin-bottom: 4px;
}

.phone-mockup__chat {
  background: var(--color-brown-50);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.72rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.phone-mockup__chat--highlight {
  background: var(--border-medium);
  border-left: 2px solid var(--color-brown-500);
}

.phone-mockup__insight {
  margin-top: auto;
  padding: 12px;
  background: var(--accent-bg);
  color: var(--color-bg-warm);
  border-radius: 12px;
  font-size: 0.68rem;
  line-height: 1.55;
}

.download-channels {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 32px 0 12px;
}

.download-platform-note {
  font-size: 0.875rem;
  color: var(--color-brown-700);
  line-height: 1.65;
  margin: 0 0 20px;
  max-width: 420px;
  padding: 12px 14px;
  background: var(--color-brown-50);
  border-radius: var(--radius-sm);
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  background: var(--accent-bg);
  color: var(--color-bg-warm);
  border-radius: var(--radius-md);
  transition: transform 0.35s var(--transition), box-shadow 0.35s;
  max-width: 280px;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: var(--accent-bg-hover);
}

.download-btn--outline {
  background: transparent;
  color: var(--color-brown-800);
  border: 1px solid rgba(var(--rgb-accent), 0.4);
}

.download-btn--outline:hover {
  background: var(--color-surface);
}

.download-btn__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.download-btn__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.3;
}

.download-btn__label {
  font-size: 0.65rem;
  opacity: 0.75;
  letter-spacing: 0.04em;
}

.download-btn__store {
  font-size: 0.9375rem;
  font-weight: 500;
}

.qr-block {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 8px;
}

.qr-block__code {
  width: 96px;
  height: 96px;
  background: var(--color-surface);
  border: 1px solid var(--color-brown-100);
  border-radius: var(--radius-sm);
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
}

.qr-block__code span {
  background: var(--color-brown-800);
  border-radius: 1px;
}

.qr-block__code span:nth-child(even) { opacity: 0.85; }
.qr-block__code span:nth-child(3n) { opacity: 0.6; }

.qr-block__hint {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.download-note {
  font-size: 0.8125rem;
  color: var(--color-text-light);
  max-width: 480px;
  line-height: 1.75;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--color-brown-50);
}

.app-features-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.app-feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.app-feature-row:nth-child(even) .app-feature-row__visual {
  order: 2;
}

.app-feature-row:nth-child(even) .app-feature-row__text {
  order: 1;
}

.app-feature-row__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-brown-900);
  margin-bottom: 12px;
}

.app-feature-row__text {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.85;
}

.app-feature-visual {
  background: var(--color-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
}

.app-feature-visual svg {
  width: 100%;
  max-width: 200px;
  color: var(--color-brown-700);
}

/* ── Pricing ── */

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  padding: 44px 36px;
  background: var(--color-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--transition), box-shadow 0.4s;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.pricing-card--featured {
  border-color: var(--color-brown-500);
  background: linear-gradient(165deg, var(--color-surface) 0%, rgba(var(--rgb-hover), 0.35) 100%);
}

.pricing-card__badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  background: var(--accent-bg);
  color: var(--color-bg-warm);
  border-radius: 100px;
}

.pricing-card__tier {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-brown-900);
  margin-bottom: 8px;
}

.pricing-card__price {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 500;
  color: var(--color-brown-800);
  line-height: 1;
  margin-bottom: 4px;
}

.pricing-card__price-sub {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 28px;
}

.pricing-card__list {
  list-style: none;
  flex: 1;
  margin-bottom: 32px;
}

.pricing-card__list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 14px;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.pricing-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-brown-300);
}

.pricing-card--featured .pricing-card__list li::before {
  background: var(--color-brown-600, var(--color-brown-700));
}

.pricing-card__mascot-note {
  font-size: 0.8125rem;
  color: var(--color-text-light);
  font-style: normal;
  margin-top: -16px;
  margin-bottom: 20px;
}

.pricing-card__unit {
  font-size: 1rem;
  font-weight: 400;
}

.pricing-card__yearly-link {
  text-align: center;
  margin-top: 12px;
  font-size: 0.8125rem;
}

.pricing-card__yearly-link--placeholder {
  visibility: hidden;
}

.pricing-card__yearly-link a,
.pricing-card__yearly-btn {
  color: var(--color-brown-500);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.pricing-card__yearly-link a:hover,
.pricing-card__yearly-btn:hover {
  color: var(--color-brown-800);
}

.pricing-note {
  text-align: left;
  font-size: 0.8125rem;
  color: var(--color-text-light);
  max-width: 640px;
  margin-top: 40px;
  line-height: 1.75;
}

/* ── About ── */

.story-block {
  max-width: 640px;
  margin-bottom: 36px;
}

.story-block p {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.9;
  margin-bottom: 20px;
}

.story-block p:last-child {
  margin-bottom: 0;
}

.team-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px;
  background: var(--color-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  margin-top: 48px;
}

.team-card__photo {
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, #FFF5E6 0%, #FFE8C8 50%, #F5E6D0 100%);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--color-brown-600, var(--color-brown-700));
  box-shadow: inset 0 0 40px rgba(255, 200, 120, 0.15);
}

.team-card__photo svg {
  width: 64px;
  height: 64px;
  opacity: 0.5;
}

.team-card__photo span {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--color-brown-800);
}

.team-card__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--color-brown-900);
  margin-bottom: 16px;
}

.team-card__text {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.85;
}

.reviews-section {
  position: relative;
  padding: 100px 0 120px;
  overflow: hidden;
}

.reviews-cloud {
  position: relative;
  min-height: 520px;
  max-width: 900px;
  margin: 0 auto;
}

.review-bubble {
  position: absolute;
  max-width: 280px;
  padding: 20px 22px;
  background: var(--color-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: transform 0.5s var(--transition);
}

.review-bubble:hover {
  transform: scale(1.03) !important;
  z-index: 2;
  box-shadow: var(--shadow-md);
}

.review-bubble__text {
  font-size: 0.9375rem;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 12px;
  font-style: normal;
}

.review-bubble__author {
  font-size: 0.8125rem;
  color: var(--color-brown-500);
  font-weight: 500;
}

.review-bubble__tail {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--color-surface);
  border-right: 1px solid var(--border-medium);
  border-bottom: 1px solid var(--border-medium);
  transform: rotate(45deg);
}

.review-bubble:nth-child(1) { top: 0; left: 5%; transform: rotate(-2deg); }
.review-bubble:nth-child(1) .review-bubble__tail { bottom: -6px; left: 24px; }

.review-bubble:nth-child(2) { top: 60px; right: 0; transform: rotate(2deg); max-width: 260px; }
.review-bubble:nth-child(2) .review-bubble__tail { bottom: -6px; right: 32px; }

.review-bubble:nth-child(3) { top: 200px; left: 15%; transform: rotate(1deg); }
.review-bubble:nth-child(3) .review-bubble__tail { bottom: -6px; left: 40px; }

.review-bubble:nth-child(4) { top: 280px; right: 8%; transform: rotate(-1.5deg); max-width: 270px; }
.review-bubble:nth-child(4) .review-bubble__tail { bottom: -6px; right: 28px; }

.review-bubble:nth-child(5) { top: 400px; left: 30%; transform: rotate(-2deg); }
.review-bubble:nth-child(5) .review-bubble__tail { bottom: -6px; left: 20px; }

/* ── Help / FAQ ── */

.faq-list {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.35s;
}

.faq-item.is-open {
  box-shadow: var(--shadow-soft);
}

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-brown-900);
  transition: color 0.3s;
}

.faq-item__question:hover {
  color: var(--color-brown-700);
}

.faq-item__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  position: relative;
  transition: transform 0.4s var(--transition);
}

.faq-item__icon::before,
.faq-item__icon::after {
  content: '';
  position: absolute;
  background: var(--color-brown-500);
  border-radius: 1px;
}

.faq-item__icon::before {
  width: 12px;
  height: 1.5px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-item__icon::after {
  width: 1.5px;
  height: 12px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.4s var(--transition);
}

.faq-item.is-open .faq-item__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--transition);
}

.faq-item.is-open .faq-item__answer {
  max-height: 300px;
}

.faq-item__answer-inner {
  padding: 0 24px 20px;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.85;
}

.contact-block {
  margin-top: 64px;
  padding: 40px;
  background: var(--color-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 720px;
}

.contact-block__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--color-brown-900);
  margin-bottom: 8px;
}

.contact-block__text {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.contact-block__email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-brown-800);
  padding: 12px 20px;
  background: var(--color-brown-50);
  border-radius: 100px;
  transition: background 0.3s;
}

.contact-block__email:hover {
  background: var(--color-brown-100);
}

/* ── Responsive ── */

@media (max-width: 960px) {
  .page-hero__title {
    font-size: 3.1rem;
  }

  .page-section__title {
    font-size: 2rem;
  }

  .download-grid,
  .app-feature-row,
  .pricing-grid,
  .team-card {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .app-feature-row:nth-child(even) .app-feature-row__visual,
  .app-feature-row:nth-child(even) .app-feature-row__text {
    order: unset;
  }

  .reviews-cloud {
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .review-bubble {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    max-width: 100% !important;
  }
}

@media (max-width: 480px) {
  .page-hero__title {
    font-size: 2.2rem;
  }

  .page-section__title {
    font-size: 1.6rem;
  }

  .page-hero { padding: 56px 0 40px; }
  .page-section { padding: 56px 0; }
  .team-card { padding: 28px; }
  .pricing-card { padding: 32px 24px; }
}
