/* ============================================
   Carpentry Master Cut-List — Website Styles
   Brand: #E8720C (orange), #F7F4EF (warm white),
          #1C1C1E (dark), #EDE8DF (cream), #4CAF50 (success)
   ============================================ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1C1C1E;
  background: #F7F4EF;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Typography ─── */
h1, h2, h3 { line-height: 1.2; }

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #1C1C1E;
  text-align: center;
  margin-bottom: 20px;
}

.section-desc {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
  font-size: 1.1rem;
  color: #444;
  line-height: 1.75;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.25s ease;
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-primary {
  background: #E8720C;
  color: #fff;
  border-color: #E8720C;
  box-shadow: 0 4px 14px rgba(232, 114, 12, 0.35);
}

.btn-primary:hover {
  background: #d4660a;
  border-color: #d4660a;
  box-shadow: 0 6px 20px rgba(232, 114, 12, 0.45);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: #1C1C1E;
  border-color: #1C1C1E;
}

.btn-ghost:hover {
  background: #1C1C1E;
  color: #F7F4EF;
  transform: translateY(-2px);
}

/* ─── Navigation ─── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(247, 244, 239, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 0.3s ease, background 0.3s ease;
  height: 72px;
}

.navbar.scrolled {
  box-shadow: 0 1px 12px rgba(28, 28, 30, 0.08);
  border-bottom: 1px solid rgba(28, 28, 30, 0.06);
}

.navbar--solid {
  background: #F7F4EF;
  box-shadow: 0 1px 12px rgba(28, 28, 30, 0.08);
  border-bottom: 1px solid rgba(28, 28, 30, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: #1C1C1E;
  line-height: 1.2;
}

.brand-break { display: none; }

.nav-logo-icon {
  width: 28px;
  height: 28px;
  color: #E8720C;
  flex-shrink: 0;
}

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

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: #555;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: #E8720C;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #E8720C;
  border-radius: 1px;
  transition: width 0.2s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
}

.gplay-badge {
  height: 44px;
  width: auto;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: #1C1C1E;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

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

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ─── Hero ─── */
.hero {
  position: relative;
  padding: 140px 0 80px;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: #F7F4EF;
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 39px,
      #8B6914 39px,
      #8B6914 40px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 39px,
      #8B6914 39px,
      #8B6914 40px
    );
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 900;
  color: #1C1C1E;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 36px;
  max-width: 500px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-phone {
  display: flex;
  justify-content: center;
}

/* ─── Phone Mockup ─── */
.phone-mockup {
  flex-shrink: 0;
}

.phone-frame {
  width: 260px;
  background: #1C1C1E;
  border-radius: 32px;
  padding: 12px;
  box-shadow:
    0 25px 60px rgba(28, 28, 30, 0.2),
    0 8px 24px rgba(28, 28, 30, 0.1),
    inset 0 1px 0 rgba(255,255,255,0.1);
  position: relative;
}

.hero-phone .phone-frame {
  width: 290px;
}

.phone-notch {
  width: 80px;
  height: 22px;
  background: #1C1C1E;
  border-radius: 0 0 14px 14px;
  margin: 0 auto -1px;
  position: relative;
  z-index: 2;
}

.phone-screen {
  background: #F7F4EF;
  border-radius: 22px;
  overflow: hidden;
  min-height: 420px;
}

.hero-phone .phone-screen {
  min-height: 470px;
}

.phone-label {
  text-align: center;
  margin-top: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
}

/* ─── Mock Screen Styles ─── */
.mock-screen {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
}

.mock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 10px;
  border-bottom: 1px solid #EDE8DF;
}

.mock-title {
  font-weight: 700;
  font-size: 12.5px;
  color: #1C1C1E;
}

.mock-badge {
  background: #4CAF50;
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 9.5px;
  font-weight: 600;
}

.mock-add {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #E8720C;
  color: white;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
}

.mock-svg {
  width: 100%;
  display: block;
  padding: 6px;
}

/* Mock list (project list) */
.mock-list {
  padding: 8px;
}

.mock-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  background: #EDE8DF;
  margin-bottom: 8px;
  transition: all 0.2s;
}

.mock-list-item--faded {
  opacity: 0.5;
}

.mock-list-icon {
  width: 30px;
  height: 30px;
  color: #E8720C;
  flex-shrink: 0;
}

.mock-list-icon svg {
  width: 100%;
  height: 100%;
}

.mock-list-text {
  display: flex;
  flex-direction: column;
}

.mock-list-text strong {
  font-size: 11.5px;
  color: #1C1C1E;
}

.mock-list-text span {
  font-size: 9.5px;
  color: #888;
}

/* Mock detail */
.mock-back {
  font-size: 14px;
  color: #E8720C;
  margin-right: 8px;
  font-weight: 600;
}

.mock-section-label {
  padding: 8px 14px 4px;
  font-size: 9.5px;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mock-detail-card {
  margin: 4px 10px 8px;
  background: #EDE8DF;
  border-radius: 10px;
  padding: 6px 0;
}

.mock-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 12px;
  font-size: 10.5px;
  color: #1C1C1E;
}

.mock-detail-row span:last-child {
  color: #888;
  font-size: 10px;
}

.grain-tag {
  font-style: normal;
  font-size: 8.5px;
  background: #E8720C;
  color: white;
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 3px;
}

.mock-btn {
  display: block;
  width: calc(100% - 28px);
  margin: 12px auto;
  padding: 10px;
  background: #E8720C;
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 12px;
  font-family: 'Inter', sans-serif;
}

/* Mock results */
.mock-stats {
  display: flex;
  padding: 12px 10px;
  gap: 6px;
}

.mock-stat {
  flex: 1;
  text-align: center;
  background: #EDE8DF;
  border-radius: 10px;
  padding: 10px 4px;
}

.mock-stat-value {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: #1C1C1E;
}

.mock-stat-value--green {
  color: #4CAF50;
}

.mock-stat-label {
  font-size: 8.5px;
  color: #888;
  margin-top: 2px;
}

.mock-result-card {
  margin: 4px 10px 8px;
  background: #EDE8DF;
  border-radius: 10px;
  padding: 10px 12px;
}

.mock-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 11px;
}

.mock-efficiency {
  color: #4CAF50;
  font-weight: 700;
  font-size: 12px;
}

.mock-bar {
  height: 6px;
  background: #ddd;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}

.mock-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #4CAF50, #66BB6A);
  border-radius: 3px;
}

.mock-result-meta {
  font-size: 9px;
  color: #888;
}

/* ─── Sections ─── */
.section {
  padding: 80px 0;
}

.section-overview {
  background: #EDE8DF;
}

.section-features {
  background: #F7F4EF;
}

.section-how {
  background: #EDE8DF;
}

.section-screenshots {
  background: #F7F4EF;
  overflow: hidden;
}

.section-about {
  background: #EDE8DF;
}

.section-contact {
  background: #F7F4EF;
}

/* ─── Overview Cards ─── */
.overview-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.overview-card {
  background: #F7F4EF;
  border: 1px solid rgba(28, 28, 30, 0.06);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.overview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(28, 28, 30, 0.08);
}

.overview-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  color: #E8720C;
}

.overview-icon svg {
  width: 100%;
  height: 100%;
}

.overview-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #1C1C1E;
}

.overview-card p {
  font-size: 0.92rem;
  color: #666;
  line-height: 1.6;
}

/* ─── Feature Cards ─── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  background: #EDE8DF;
  border: 1px solid rgba(28, 28, 30, 0.05);
  border-radius: 16px;
  padding: 32px 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  color: #E8720C;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #1C1C1E;
}

.feature-card p {
  font-size: 0.92rem;
  color: #666;
  line-height: 1.65;
}

/* ─── How It Works Steps ─── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  counter-reset: step;
}

.step {
  background: #F7F4EF;
  border: 1px solid rgba(28, 28, 30, 0.06);
  border-radius: 16px;
  padding: 32px 24px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(28, 28, 30, 0.08);
}

.step-number {
  width: 40px;
  height: 40px;
  background: #E8720C;
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1C1C1E;
}

.step p {
  font-size: 0.92rem;
  color: #666;
  line-height: 1.6;
}

/* ─── Screenshots Section ─── */
.screenshots-scroll {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  padding: 32px 0 24px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #E8720C #EDE8DF;
}

.screenshots-scroll::-webkit-scrollbar {
  height: 6px;
}

.screenshots-scroll::-webkit-scrollbar-track {
  background: #EDE8DF;
  border-radius: 3px;
}

.screenshots-scroll::-webkit-scrollbar-thumb {
  background: #E8720C;
  border-radius: 3px;
}

.screenshots-scroll .phone-mockup {
  scroll-snap-align: center;
}

.screenshots-scroll .phone-frame {
  border: 3px solid #E8720C;
}

/* ─── About Section ─── */
.about-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.about-text {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.8;
  margin-top: 16px;
}

/* ─── Contact Section ─── */
.contact-inner {
  text-align: center;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: #EDE8DF;
  padding: 18px 32px;
  border-radius: 16px;
  margin: 24px 0 16px;
  transition: transform 0.2s ease;
}

.contact-email:hover {
  transform: translateY(-2px);
}

.contact-icon {
  width: 32px;
  height: 32px;
  color: #E8720C;
}

.contact-icon svg {
  width: 100%;
  height: 100%;
}

.contact-email a {
  font-size: 1.15rem;
  font-weight: 600;
  color: #E8720C;
}

.contact-note {
  font-size: 0.92rem;
  color: #888;
}

/* ─── Footer ─── */
.footer {
  background: #1C1C1E;
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #F7F4EF;
  font-weight: 700;
  font-size: 1rem;
}

.footer-brand svg {
  width: 22px;
  height: 22px;
  color: #E8720C;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  color: rgba(247, 244, 239, 0.7);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #E8720C;
}

.footer-copy {
  color: rgba(247, 244, 239, 0.4);
  font-size: 0.82rem;
}

/* ─── Privacy Policy Page ─── */
.privacy-body {
  background: #F7F4EF;
}

.privacy-main {
  padding: 120px 0 80px;
}

.privacy-container {
  max-width: 760px;
}

.privacy-container h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #1C1C1E;
  margin-bottom: 8px;
}

.privacy-date {
  color: #888;
  margin-bottom: 40px;
  font-size: 0.95rem;
}

.privacy-container h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1C1C1E;
  margin-top: 36px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #E8720C;
  display: inline-block;
}

/* Reset block display after inline heading trick */
.privacy-container h2 + p,
.privacy-container h2 + ul {
  clear: both;
}

.privacy-container p {
  font-size: 1rem;
  color: #444;
  line-height: 1.8;
  margin-bottom: 16px;
}

.privacy-container ul {
  margin: 12px 0 20px 20px;
  list-style: disc;
}

.privacy-container li {
  font-size: 1rem;
  color: #444;
  line-height: 1.8;
  margin-bottom: 6px;
}

.privacy-container a {
  color: #E8720C;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.privacy-container a:hover {
  border-bottom-color: #E8720C;
}

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

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

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
.fade-in-delay-5 { transition-delay: 0.5s; }

/* ─── Nav menu visible (for privacy page) ─── */
.nav-menu--visible {
  display: flex !important;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-phone {
    margin-top: 20px;
  }

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

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(247, 244, 239, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 48px;
    gap: 0;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu .nav-link {
    font-size: 1.15rem;
    padding: 16px 0;
  }

  .nav-menu .nav-link::after {
    display: none;
  }

  .nav-menu .nav-cta {
    margin-top: 16px;
  }

  .brand-break { display: block; }

  .section { padding: 56px 0; }

  .overview-cards,
  .features-grid,
  .steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero {
    padding: 110px 0 60px;
    min-height: auto;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-sub {
    font-size: 1.05rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  .hero-phone .phone-frame {
    width: 250px;
  }

  .phone-frame {
    width: 230px;
  }

  .phone-screen {
    min-height: 370px;
  }

  .hero-phone .phone-screen {
    min-height: 400px;
  }

  .screenshots-scroll {
    gap: 20px;
    padding: 24px 0 16px;
  }

  .contact-email {
    flex-direction: column;
    padding: 20px 24px;
  }

  .privacy-container h1 {
    font-size: 1.8rem;
  }

  .privacy-main {
    padding: 100px 0 60px;
  }
}

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

  .hero-title {
    font-size: 1.85rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .hero-phone .phone-frame,
  .phone-frame {
    width: 220px;
  }
}

/* ─── Subtle wood grain texture overlay for hero ─── */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px;
  pointer-events: none;
}
