/* --------------------------------------------------------------------------
   Tavolo Flow - Authentic App Vibe
   Font: Instrument Serif / Work Sans
   Palette: Paper (#f7f2ea), Surface (#fffaf2), Ink (#161513), Brass (#bd8c45)
-------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Work+Sans:wght@400;500;600;700&display=swap');

:root {
  --ink: #161513;
  --ink-soft: #4d4942;
  --ink-light: #8A8476;
  
  --paper: #f7f2ea;
  --surface: #fffaf2;
  --surface-alt: #EAE3D5;
  
  --charcoal: #151513;
  --charcoal-2: #24211d;
  
  --line: rgba(22, 21, 19, 0.14);
  --line-dark: rgba(255, 250, 242, 0.22);
  
  --brass: #bd8c45;
  --olive: #718263;
  --tomato: #b84a36;
  --sage: #dce5d6;
  --white: #ffffff;
  
  --shadow: 0 22px 70px rgba(22, 21, 19, 0.18);
  --shadow-sm: 0 4px 12px rgba(22, 21, 19, 0.08);
  
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Work Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------------------------------------------------
   Typography
-------------------------------------------------------------------------- */
h1, h2, h3, .brand {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  color: var(--ink);
}

h1 { font-size: clamp(3rem, 6vw, 5rem); }
h2 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.01em; }
h3 { font-size: 2rem; }

em {
  font-style: italic;
  color: var(--tomato);
}

p {
  color: var(--ink-soft);
  font-size: 1.125rem;
  max-width: 600px;
}

/* --------------------------------------------------------------------------
   Buttons
-------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--ink);
  color: var(--surface);
  padding: 14px 28px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 1.05rem;
  transition: all 0.2s ease;
  border: 1px solid var(--ink);
  cursor: pointer;
  font-family: var(--sans);
}

.btn:hover {
  background-color: var(--charcoal-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

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

.btn-brass:hover {
  background-color: #a47635;
  border-color: #a47635;
}

.btn-outline {
  background-color: transparent;
  color: var(--ink);
  border-color: var(--line);
}

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

.btn-sm { padding: 10px 20px; font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   Navigation
-------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 100;
  padding: 24px 0;
  transition: all 0.3s ease;
}

.nav.scrolled {
  padding: 16px 0;
  background-color: rgba(247, 242, 234, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

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

.brand { font-size: 2.2rem; }

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink-soft);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--ink); }

.nav-actions { display: flex; align-items: center; gap: 24px; }
.desktop-only { display: flex; }
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; color: var(--ink); }

/* --------------------------------------------------------------------------
   Hero Section
-------------------------------------------------------------------------- */
.hero {
  padding: 180px 0 100px;
  position: relative;
}

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

.hero-content {
  max-width: 540px;
}

.hero-subtitle {
  margin: 24px 0 40px;
  font-size: 1.25rem;
}

.hero-cta {
  display: flex;
  gap: 16px;
  align-items: center;
}

.hero-stats {
  margin-top: 48px;
  display: flex;
  gap: 32px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}

.h-stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--brass);
  line-height: 1;
}

.h-stat span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
  display: block;
}

/* --------------------------------------------------------------------------
   Phone Mockup 
-------------------------------------------------------------------------- */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 320px;
  height: 660px;
  background: var(--surface);
  border: 14px solid var(--charcoal);
  border-radius: 40px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.phone-notch {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 140px; height: 28px;
  background: var(--charcoal);
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  z-index: 10;
}

.app-screen {
  padding: 48px 20px 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.app-header {
  margin-bottom: 24px;
}

.app-header h3 {
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1.1;
}

.app-lang {
  display: inline-block;
  font-size: 0.75rem;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  margin-top: 8px;
  color: var(--ink-soft);
}

.app-menu-item {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px dashed var(--line);
}

.app-menu-item h4 {
  font-weight: 600;
  font-size: 1rem;
}

.app-menu-item p {
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin-top: 4px;
  line-height: 1.3;
}

.app-price {
  font-weight: 600;
  color: var(--tomato);
}

.app-cta {
  margin-top: auto;
  background: var(--charcoal);
  color: white;
  text-align: center;
  padding: 16px;
  border-radius: 4px;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   App Features Section
-------------------------------------------------------------------------- */
.features-section {
  background: var(--white);
  padding: 120px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.f-card {
  text-align: left;
}

.f-icon {
  width: 48px;
  height: 48px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  margin-bottom: 24px;
  color: var(--brass);
}

.f-card h3 {
  font-family: var(--serif);
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.f-card p {
  font-size: 1rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Image Breakdown
-------------------------------------------------------------------------- */
.breakdown {
  padding: 120px 0;
}

.br-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 120px;
}

.br-row:last-child { margin-bottom: 0; }

.br-row.reverse .br-text { order: 1; }
.br-row.reverse .br-img { order: 0; }

.br-image-wrapper {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.br-image-wrapper img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.badge-tag {
  background: var(--tomato);
  color: var(--white);
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  margin-bottom: 16px;
  display: inline-block;
}

.br-text h2 { margin-bottom: 24px; }
.br-text p { margin-bottom: 24px; font-size: 1.125rem; }

.br-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.br-list i { color: var(--olive); }

/* --------------------------------------------------------------------------
   Pricing
-------------------------------------------------------------------------- */
.pricing {
  background: var(--charcoal);
  color: var(--white);
  padding: 120px 0;
}

.pricing-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 80px;
}

.pricing-header h2 { color: var(--white); }
.pricing-header p { color: #A8A8A8; }

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

.p-card {
  background: var(--charcoal-2);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 40px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
}

.p-card.highlight {
  border-color: var(--brass);
  background: #1C1914;
  transform: scale(1.02);
}

.p-card h3 {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 12px;
}

.p-desc {
  font-size: 0.95rem;
  color: #A8A8A8;
  margin-bottom: 32px;
  min-height: 48px;
}

.p-price {
  font-size: 3.5rem;
  font-family: var(--serif);
  line-height: 1;
  margin-bottom: 32px;
  display: flex;
  align-items: flex-start;
}

.p-price span.curr { font-size: 1.5rem; font-family: var(--sans); margin-top: 8px;}
.p-price span.mo { font-size: 1rem; font-family: var(--sans); color: #A8A8A8; margin-top: auto; margin-bottom: 8px; margin-left: 4px; }

.p-features {
  margin-bottom: 40px;
  flex-grow: 1;
}

.p-features p {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.p-features li {
  font-size: 0.95rem;
  color: #D1D1D1;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  gap: 12px;
}

.p-features li i { color: var(--brass); }

.p-card .btn { width: 100%; border-color: rgba(255,255,255,0.2); color: white; }
.p-card .btn:hover { background: white; color: var(--charcoal); }

.p-card.highlight .btn {
  background: var(--brass); border-color: var(--brass); color: white;
}
.p-card.highlight .btn:hover {
  background: #a47635;
}

/* --------------------------------------------------------------------------
   Contact / Photos
-------------------------------------------------------------------------- */
.contact-section {
  padding: 120px 0;
  background: var(--paper);
}

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

.contact-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-photos img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 4px;
}

.contact-photos img:nth-child(2) {
  margin-top: 40px;
  height: 320px;
}

.c-form {
  background: var(--white);
  padding: 48px;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--ink);
}

.form-control {
  width: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  font-family: var(--sans);
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--brass);
}

/* --------------------------------------------------------------------------
   Footer
-------------------------------------------------------------------------- */
.footer {
  background: var(--charcoal);
  color: var(--white);
  padding: 24px 0;
}

.footer-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  color: #a8a8a8;
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-line .brand {
  color: var(--white);
  font-size: 1rem;
}

.footer-line nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-line a {
  color: #d7d7d7;
  transition: color 0.2s;
}

.footer-line a:hover {
  color: var(--white);
}

/* --------------------------------------------------------------------------
   Responsive
-------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .container {
    max-width: 760px;
    padding: 0 28px;
  }

  .nav {
    padding: 18px 0;
  }

  .brand {
    font-size: 1.9rem;
  }

  .hero {
    padding: 132px 0 76px;
  }

  .hero-grid, .br-row, .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-content {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
  }

  .hero-subtitle {
    margin: 20px auto 32px;
    font-size: 1.15rem;
  }

  .hero-cta,
  .hero-stats {
    justify-content: center;
  }

  .hero-stats {
    margin-top: 36px;
    padding-top: 24px;
  }

  .phone-frame {
    width: 300px;
    height: 610px;
    border-width: 12px;
    border-radius: 36px;
  }

  .features-section,
  .breakdown,
  .pricing,
  .contact-section,
  .premium-showcase {
    padding: 84px 0;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-top: 48px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }

  .pricing-header {
    margin-bottom: 48px;
  }

  .p-card {
    padding: 32px;
  }

  .br-row.reverse .br-text { order: 0; }

  .br-row {
    margin-bottom: 72px;
  }

  .br-image-wrapper img {
    height: 360px;
  }

  .contact-photos {
    max-width: 560px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .container {
    max-width: 100%;
    padding: 0 18px;
  }

  .desktop-only { display: none; }
  .mobile-menu-btn {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 250, 242, 0.72);
  }

  .mobile-menu {
    color: var(--ink);
  }

  .nav,
  .nav.scrolled {
    padding: 12px 0;
    background-color: rgba(247, 242, 234, 0.95);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
  }

  .brand {
    font-size: 1.65rem;
  }

  .hero {
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 96px 0 44px;
    background:
      linear-gradient(180deg, rgba(255, 250, 242, 0.86), rgba(247, 242, 234, 0.96)),
      url("https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?auto=format&fit=crop&w=900&q=80") center / cover;
    border-bottom: 1px solid var(--line);
  }

  .hero-grid {
    display: block;
  }

  .hero-content {
    max-width: 520px;
    padding: 28px 0 0;
  }

  h1 {
    font-size: clamp(2.8rem, 13vw, 3.8rem);
    line-height: 0.98;
  }

  h2 {
    font-size: clamp(2.05rem, 9vw, 2.7rem);
  }

  h3 {
    font-size: 1.55rem;
  }

  p,
  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.65;
  }

  .hero-subtitle {
    max-width: 34rem;
    margin: 18px auto 28px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .btn {
    width: 100%;
    min-height: 48px;
    padding: 12px 18px;
    font-size: 0.98rem;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 24px;
    padding-top: 20px;
  }

  .h-stat {
    min-width: 0;
    padding: 12px 10px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: rgba(255, 250, 242, 0.72);
    backdrop-filter: blur(8px);
  }

  .h-stat strong {
    font-size: 2rem;
  }

  .h-stat span {
    font-size: 0.68rem;
    letter-spacing: 0.03em;
  }

  .hero-visual {
    display: none;
  }

  .features-section,
  .breakdown,
  .pricing,
  .contact-section,
  .premium-showcase {
    padding: 64px 0;
  }
  
  .pricing-grid, .features-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 34px;
  }
  
  .p-card.highlight { transform: none; }

  .f-card,
  .p-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
  }

  .p-card {
    background: var(--charcoal-2);
  }

  .p-desc {
    min-height: 0;
    margin-bottom: 24px;
  }

  .p-price {
    font-size: 3rem;
    margin-bottom: 24px;
  }

  .p-features {
    margin-bottom: 28px;
  }

  .br-row {
    gap: 28px;
    margin-bottom: 56px;
  }

  .br-image-wrapper img {
    height: 260px;
  }

  .contact-photos { display: none; }
  
  .c-form {
    padding: 28px 20px;
    box-shadow: none;
  }

  .c-form .btn {
    width: auto;
  }

  .footer {
    padding: 22px 0;
  }

  .footer-line {
    gap: 10px 14px;
    text-align: center;
    font-size: 0.84rem;
  }

  .footer-line nav {
    width: 100%;
    gap: 12px;
  }
}

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

  .hero {
    min-height: calc(100svh - 8px);
    padding-top: 86px;
  }

  h1 {
    font-size: clamp(2.55rem, 15vw, 3.15rem);
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .p-card,
  .f-card {
    padding: 20px;
  }
}
/* --------------------------------------------------------------------------
   Premium Showcase / Deep Dives CSS
-------------------------------------------------------------------------- */
.premium-showcase {
  background: var(--charcoal);
  color: var(--white);
  padding: 120px 0;
  border-top: 1px solid var(--charcoal-2);
}

.container-wide {
  max-width: 1400px;
}

.ps-wrapper {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.ps-panel {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  background: var(--charcoal-2);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 24px;
  overflow: hidden;
  align-items: center;
  transition: transform 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth);
}

.ps-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 80px rgba(0,0,0,0.4);
}

.ps-image {
  height: 100%;
  min-height: 500px;
}

.ps-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ps-content {
  padding: 64px 80px;
}

.ps-content h2 {
  color: var(--white);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  margin-bottom: 24px;
  line-height: 1.1;
}

.ps-content p {
  color: #A8A8A8;
  font-size: 1.125rem;
  margin-bottom: 40px;
  line-height: 1.6;
}

.ps-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ps-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.05rem;
  color: #D1D1D1;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

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

.ps-list i {
  color: var(--brass);
  flex-shrink: 0;
}

@media (min-width: 1025px) {
  .ps-reverse {
    grid-template-columns: 1fr 1.2fr;
  }
  .ps-reverse .ps-image {
    order: 2;
  }
  .ps-reverse .ps-content {
    order: 1;
  }
}

@media (max-width: 1024px) {
  .ps-panel {
    grid-template-columns: 1fr;
    border-radius: 16px;
  }

  .ps-image {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .ps-content {
    padding: 42px;
  }
}

@media (max-width: 600px) {
  .ps-wrapper {
    gap: 28px;
  }

  .ps-panel {
    border-radius: 12px;
  }

  .ps-image {
    aspect-ratio: 4 / 3;
  }

  .ps-content {
    padding: 28px 20px;
  }

  .ps-content h2 {
    font-size: 2.15rem;
    margin-bottom: 16px;
  }

  .ps-content p {
    font-size: 1rem;
    margin-bottom: 24px;
  }

  .ps-list {
    gap: 0;
  }

  .ps-list li {
    align-items: flex-start;
    gap: 12px;
    padding: 13px 0;
    font-size: 0.95rem;
  }
}
