/* Clearly Website - Brand Styles */

:root {
  --primary: #0D8268;
  --primary-dark: #0a6b56;
  --primary-soft: #E6F5F1;
  --primary-border: #A8DFD0;
  --bg: #FAFAF9;
  --surface: #FFFFFF;
  --text: #1A1917;
  --text-secondary: #5C5856;
  --text-muted: #8C8780;
  --border: #E8E7E4;
  --gradient: linear-gradient(135deg, #0D8268 0%, #14a085 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* Container */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 48px;
}

.nav .container {
  padding: 0 24px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay {
  transition-delay: 0.2s;
}

/* Navigation */
.nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.nav-brand:hover {
  text-decoration: none;
}

.nav-brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--primary);
  color: white !important;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.2s;
}

.nav-cta:hover {
  background: var(--primary-dark);
  text-decoration: none !important;
}

/* Mobile Nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  cursor: pointer;
  position: relative;
  border-radius: 8px;
  transition: background 0.2s;
}

.nav-toggle:hover {
  background: var(--primary-soft);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 28px; }

.nav-toggle.open span:nth-child(1) {
  top: 21px;
  transform: translateX(-50%) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  top: 21px;
  transform: translateX(-50%) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, white 0%, #fafbfc 100%);
    flex-direction: column;
    padding: 12px 24px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 32px rgba(0,0,0,0.08);
    z-index: 100;
  }
  .nav-links.open {
    display: flex;
    animation: slideDown 0.25s ease;
  }
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-4px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  .nav-links li {
    margin: 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }
  .nav-links li:last-child {
    border-bottom: none;
    margin-top: 8px;
    padding-top: 0;
  }
  .nav-links li a {
    display: flex;
    align-items: center;
    padding: 16px 0;
    font-size: 17px;
    font-weight: 500;
    color: var(--text);
    transition: color 0.2s;
  }
  .nav-links li a:hover {
    color: var(--primary);
  }
  .nav-links .nav-cta {
    display: flex;
    justify-content: center;
    margin-top: 8px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
  }
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .nav .container {
    position: relative;
  }
}

/* Hero Section */
.hero {
  padding: 100px 0 120px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  overflow: hidden;
}

.hero-container {
  display: flex;
  align-items: center;
  gap: 80px;
}

.hero-content {
  flex: 1;
}

.hero h1 {
  font-size: 56px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero h1 br {
  display: block;
}

.hero p {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-buttons {
  margin-bottom: 16px;
}

.app-store-badge img {
  height: 52px;
  transition: transform 0.2s;
}

.app-store-badge:hover img {
  transform: scale(1.05);
}

.hero-note {
  font-size: 14px !important;
  color: var(--text-muted) !important;
  margin-bottom: 0 !important;
}

.hero-phone {
  flex: 0 0 320px;
}

.hero-phone img {
  width: 100%;
  border-radius: 40px;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.12),
    0 10px 20px rgba(0, 0, 0, 0.08);
}

@media (max-width: 900px) {
  .hero {
    padding: 60px 0 80px;
  }
  .hero-container {
    flex-direction: column;
    text-align: center;
    gap: 48px;
  }
  .hero h1 {
    font-size: 40px;
  }
  .hero h1 br {
    display: none;
  }
  .hero p {
    margin: 0 auto 32px;
  }
  .hero-phone {
    flex: none;
    width: 280px;
    order: -1;
  }
}

/* Features Section */
.features {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 64px;
  letter-spacing: -0.02em;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 36px;
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-soft);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}

.feature-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .features {
    padding: 60px 0;
  }
  .section-title {
    font-size: 32px;
    margin-bottom: 40px;
  }
  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Showcase Sections */
.showcase {
  padding: 100px 0;
}

.showcase-alt {
  background: var(--surface);
}

.showcase .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.showcase-image img {
  width: 100%;
  max-width: 320px;
  border-radius: 36px;
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.1),
    0 10px 20px rgba(0, 0, 0, 0.06);
}

.showcase-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
  background: var(--primary-soft);
  padding: 6px 14px;
  border-radius: 20px;
}

.showcase-content h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}

.showcase-content p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.showcase-list {
  list-style: none;
  padding: 0;
}

.showcase-list li {
  font-size: 16px;
  color: var(--text-secondary);
  padding: 10px 0;
  padding-left: 36px;
  position: relative;
  line-height: 1.5;
}

.showcase-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 22px;
  height: 22px;
  background: var(--primary-soft);
  border-radius: 50%;
}

.showcase-list li::after {
  content: "✓";
  position: absolute;
  left: 5px;
  top: 11px;
  font-size: 14px;
  color: var(--primary);
  font-weight: 700;
}

@media (max-width: 900px) {
  .showcase {
    padding: 60px 0;
  }
  .showcase .container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .showcase-image {
    order: -1;
  }
  .showcase-image img {
    max-width: 280px;
    margin: 0 auto;
    display: block;
  }
  .showcase-content h2 {
    font-size: 28px;
  }
  .showcase-list {
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
  }
}

/* More Features Carousel */
.more-features {
  padding: 100px 0;
  background: var(--bg);
}

.feature-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.feature-tab {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.feature-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.feature-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.feature-panels {
  position: relative;
}

.feature-panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  background: var(--surface);
  border-radius: 24px;
  padding: 48px;
  border: 1px solid var(--border);
}

.feature-panel.active {
  display: grid;
  animation: fadeIn 0.3s ease-out;
}

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

.feature-panel-content h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.feature-panel-content p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.feature-panel-image {
  text-align: center;
}

.feature-panel-image img {
  max-width: 280px;
  border-radius: 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

@media (max-width: 900px) {
  .more-features {
    padding: 60px 0;
  }
  .feature-tabs {
    gap: 6px;
  }
  .feature-tab {
    padding: 10px 16px;
    font-size: 14px;
  }
  .feature-panel {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 24px;
    text-align: center;
  }
  .feature-panel-image {
    order: -1;
  }
  .feature-panel-image img {
    max-width: 240px;
  }
  .feature-panel-content h3 {
    font-size: 24px;
  }
}

/* Pricing Section */
.pricing {
  padding: 100px 0;
  background: var(--surface);
}

.pricing-subtitle {
  text-align: center;
  font-size: 18px;
  color: var(--text-secondary);
  margin-top: -40px;
  margin-bottom: 60px;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg);
  border: 2px solid var(--primary);
  border-radius: 24px;
  padding: 40px;
  position: relative;
  text-align: center;
}

.pricing-card-alt {
  border-color: var(--border);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
}

.pricing-card h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text);
}

.pricing-amount {
  margin-bottom: 8px;
}

.pricing-amount .price {
  font-size: 48px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.pricing-amount .period {
  font-size: 18px;
  color: var(--text-secondary);
}

.pricing-billed {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin-bottom: 32px;
  text-align: left;
}

.pricing-features li {
  font-size: 15px;
  color: var(--text-secondary);
  padding: 10px 0;
  padding-left: 28px;
  position: relative;
}

.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.pricing-card .btn {
  width: 100%;
  text-align: center;
}

.pricing-note {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 40px;
}

@media (max-width: 768px) {
  .pricing {
    padding: 60px 0;
  }
  .pricing-cards {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
  .pricing-card {
    padding: 32px 24px;
  }
}

/* Reviews Section */
.reviews {
  padding: 80px 0;
  overflow: hidden;
  background: var(--bg);
}

.reviews .section-title {
  margin-bottom: 48px;
}

.reviews-scroll {
  overflow: hidden;
  margin: 0 -24px;
  padding: 0 24px;
}

.reviews-track {
  display: flex;
  gap: 24px;
  animation: scroll 40s linear infinite;
  width: max-content;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.review-card {
  flex: 0 0 360px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
}

.review-stars {
  color: #F5A623;
  font-size: 18px;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.review-card p {
  font-size: 16px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 20px;
}

.review-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.review-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}

.review-location {
  font-size: 13px;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .reviews {
    padding: 60px 0;
  }
  .review-card {
    flex: 0 0 300px;
    padding: 24px;
  }
}

/* CTA Section */
.cta {
  padding: 120px 0;
  background: var(--gradient);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(255,255,255,0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 0%, rgba(255,255,255,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.cta .container {
  position: relative;
  z-index: 1;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  margin-bottom: 32px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.cta h2 {
  font-size: 48px;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.cta p {
  font-size: 19px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 36px;
  line-height: 1.6;
}

.cta .app-store-badge img {
  height: 56px;
}

.cta-note {
  font-size: 14px !important;
  color: rgba(255, 255, 255, 0.7) !important;
  margin-top: 20px !important;
  margin-bottom: 0 !important;
}

@media (max-width: 768px) {
  .cta {
    padding: 80px 0;
  }
  .cta h2 {
    font-size: 32px;
  }
  .cta-icon {
    width: 64px;
    height: 64px;
  }
}

/* Footer */
.footer {
  background: var(--text);
  padding: 80px 0 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand-section {
  flex: 0 0 280px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.footer-tagline {
  color: rgba(255,255,255,0.6);
  font-size: 15px;
}

.footer-nav {
  display: flex;
  gap: 80px;
}

.footer-col h4 {
  color: white;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  color: rgba(255,255,255,0.6);
  font-size: 15px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: white;
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 40px;
}

.footer-bottom p {
  color: rgba(255,255,255,0.4);
  font-size: 14px;
}

@media (max-width: 900px) {
  .footer-top {
    flex-direction: column;
    gap: 48px;
  }
  .footer-brand-section {
    flex: none;
  }
  .footer-nav {
    gap: 40px;
    flex-wrap: wrap;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* Page Header (for other pages) */
.page-header {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.page-header p {
  font-size: 18px;
  color: var(--text-secondary);
}

/* Content Page */
.content-page {
  padding: 60px 0;
}

.content-page .container {
  max-width: 700px;
}

.content-page h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 40px 0 16px;
}

.content-page h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 32px 0 12px;
}

.content-page p {
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.content-page ul {
  margin: 16px 0;
  padding-left: 24px;
  color: var(--text-secondary);
}

.content-page li {
  margin-bottom: 8px;
}

/* Download Page */
.download-hero {
  padding: 100px 0;
  text-align: center;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}

.download-hero .hero-logo {
  width: 100px;
  height: 100px;
  border-radius: 24px;
  margin-bottom: 24px;
}

.download-hero h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.download-hero p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.download-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.download-buttons img {
  height: 54px;
}

/* Help Page */
.faq-section {
  padding: 60px 0;
}

.faq-section h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 32px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
  transition: box-shadow 0.2s;
}

.faq-item:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.faq-item h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}

.faq-item p {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0;
}

.contact-card {
  background: linear-gradient(135deg, var(--primary-soft) 0%, #f0faf7 100%);
  border: 1px solid var(--primary-border);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  margin-top: 48px;
}

.contact-card h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
}

.contact-card p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  text-decoration: none;
}

.btn-secondary {
  background: var(--surface);
  color: var(--primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  text-decoration: none;
}
