/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Store badge sizing */
.store-badges {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.store-badge img,
.store-badge svg {
  display: block;
  height: 100%;
  width: auto;
}

.download-badges .store-badge {
  height: 56px;
}

.header-badges {
  display: inline-flex;
  gap: 8px;
}

.header-badges .store-badge {
  height: 30px;
}

@media (max-width: 767px) {
  .store-badges {
    justify-content: center;
  }

  .store-badge {
    height: 42px;
  }

  .download-badges .store-badge {
    height: 48px;
  }

  .header-badges {
    gap: 6px;
  }

  .header-badges .store-badge {
    height: 26px;
  }
}

:root {
  --primary: #FF7245;
  --black: #151413;
  --white: #FFFFFF;
  --beige: #f5f3ee;
  --stone: #EFEEE3;
}

body {
  font-family: 'DM Mono', monospace;
  font-weight: 300;
  color: var(--black);
  background-color: var(--beige);
  line-height: 1.5;
}

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

/* Apply rounded corners to raster images only (not SVGs) */
img:not([src$=".svg"]) {
  border-radius: 20px;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.grid {
  display: grid;
}

.grid-2 {
  grid-template-columns: 1fr;
}

.grid-3 {
  grid-template-columns: 1fr;
}

.grid-12 {
  grid-template-columns: 1fr;
}

.gap-8 {
  gap: 2rem;
}

.gap-16 {
  gap: 4rem;
}

.col-span-8 {
  grid-column: span 1;
}

.col-span-4 {
  grid-column: span 1;
}

.col-span-2 {
  grid-column: span 1;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--beige);
  border-bottom: 1px solid rgba(0,0,0,0.1);
  height: 64px;
  display: flex;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  color: var(--black);
}

/* Responsive logo text: allow short label on mobile when data-mobile-text is present */
.logo[data-mobile-text]::before {
  content: attr(data-mobile-text);
  display: none;
}

@media (max-width: 768px) {
  .logo[data-mobile-text]::before {
    display: inline;
  }
  /* When used with typewriter markup, hide the original span on mobile */
  .logo[data-mobile-text] .typewriter-text {
    display: none;
  }
}

nav {
  display: none;
}

nav a {
  font-size: 0.875rem;
  color: var(--black);
  transition: color 0.2s;
}

nav a:hover {
  color: var(--primary);
}

.mobile-menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--black);
}

/* Hero section */
.hero {
  padding: 3rem 0 5rem;
  background-color: var(--beige);
  overflow: hidden;
}

.hero h1 {
  font-size: 5rem;
  line-height: 0.9;
  color: var(--primary);
  margin-bottom: 1.5rem;
  letter-spacing: -0.05em;
}

.hero p {
  font-size: 1.25rem;
  color: rgba(21, 20, 19, 0.8);
  margin-bottom: 2rem;
  max-width: 600px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  background-color: var(--primary);
  color: var(--white);
  font-family: 'DM Mono', monospace;
  font-weight: 300;
  font-size: 1.125rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  transition: background-color 0.2s;
}

.btn-primary:hover {
  background-color: rgba(255, 114, 69, 0.9);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  background-color: transparent;
  color: var(--primary);
  font-family: 'DM Mono', monospace;
  font-weight: 300;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  border: 1px solid var(--primary);
  transition: background-color 0.2s;
}

.btn-outline:hover {
  background-color: rgba(255, 114, 69, 0.1);
}

.btn-primary-inverse {
  display: inline-flex;
  align-items: center;
  background-color: var(--white);
  color: var(--primary);
  font-family: 'DM Mono', monospace;
  font-weight: 300;
  font-size: 1.125rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  transition: background-color 0.2s;
}

/* Sections */
section {
  padding: 5rem 0;
}

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

.bg-beige {
  background-color: var(--beige);
}

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

.bg-stone {
  background-color: var(--stone);
}

.newsletter-section {
  padding: 6rem 0;
}

.section-label {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(21, 20, 19, 0.6);
  margin-bottom: 1rem;
}

.newsletter-highlights {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.newsletter-highlights li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.newsletter-highlights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: var(--primary);
}

.newsletter-card {
  background-color: var(--white);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(21, 20, 19, 0.12);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.newsletter-fields {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  border: 1px solid rgba(21, 20, 19, 0.15);
  border-radius: 9999px;
  padding: 0.85rem 1.25rem;
  font-family: 'DM Mono', monospace;
  font-weight: 300;
  font-size: 1rem;
  background-color: rgba(239, 238, 227, 0.4);
}

.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--primary);
  background-color: var(--white);
}

.newsletter-form .btn-primary {
  border: none;
  background: linear-gradient(135deg, #FF8D5F, var(--primary));
  font-weight: 300;
  letter-spacing: 0.05em;
  padding: 0.85rem 1.75rem;
}

.newsletter-footnote {
  font-size: 0.9rem;
  margin-bottom: 0;
  color: rgba(21, 20, 19, 0.6);
}

.newsletter-footnote a {
  color: var(--primary);
  text-decoration: underline;
}

@media (max-width: 767px) {
  .newsletter-fields {
    flex-direction: column;
  }

  .newsletter-section {
    padding: 4rem 0;
  }

  .newsletter-form .btn-primary {
    align-self: center;
    width: auto;
    font-size: 1rem;
    letter-spacing: 0.02em;
    padding: 0.75rem 1.25rem;
    white-space: nowrap;
  }
}

/* Dark premium section */
.bg-dark {
  background-color: var(--black);
}

.bg-dark h2,
.bg-dark h3 {
  color: var(--white);
}

.bg-dark p {
  color: rgba(255, 255, 255, 0.85);
}

.card-dark {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 1.5rem;
}

/* Premium card internal layout */
.card-row {
  display: grid;
  grid-template-columns: 30% 1fr; /* thumbnail column is 30% of card width */
  gap: 1rem;
  align-items: center; /* vertically center content */
}

.card-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1; /* keep it square */
  border-radius: 50% !important; /* force perfect circle over global rounding */
  object-fit: cover;
  display: block;
  object-position: center;
}

.badge-premium {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 9999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  margin-bottom: 1rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  font-weight: 300;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 300;
}

p {
  margin-bottom: 1.5rem;
  color: rgba(21, 20, 19, 0.8);
}

.feature-item {
  border-top: 1px solid var(--black);
  padding-top: 1.5rem;
  margin-bottom: 2rem;
}

.aspect-ratio {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.aspect-ratio img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aspect-4-3 {
  padding-top: 75%; /* 4:3 aspect ratio */
}

.aspect-3-4 {
  padding-top: 133.33%; /* 3:4 aspect ratio */
}

.aspect-16-9 {
  padding-top: 56.25%; /* 16:9 aspect ratio */
}

.aspect-1-1 {
  padding-top: 100%; /* 1:1 aspect ratio */
}

.aspect-ratio img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

blockquote {
  font-size: 1.875rem;
  line-height: 1.4;
  margin-bottom: 2rem;
}

/* Legal pages */
.legal-content {
  padding: 3rem 0;
}

.legal-content h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--primary);
}

.legal-content h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.legal-content p, .legal-content ul {
  margin-bottom: 1rem;
}

.legal-content ul {
  padding-left: 1.5rem;
}

.legal-content a {
  color: var(--primary);
  text-decoration: underline;
}

/* Content for legal pages */
.content-wrapper {
  padding: 3rem 0;
  background-color: var(--beige);
}

.content-card {
  background-color: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  max-width: 800px;
  margin: 0 auto;
}

/* Tables inside legal content cards */
.content-card .table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
}

.content-card table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.content-card thead th {
  text-align: left;
  background: #faf9f6;
  color: var(--black);
}

.content-card th,
.content-card td {
  border: 1px solid rgba(21, 20, 19, 0.12);
  padding: 0.75rem 0.75rem;
  vertical-align: top;
}

.content-card tbody tr:nth-child(even) {
  background: #fffdf8;
}

/* Tweak blockquotes inside content card to be more subtle */
.content-card blockquote {
  font-size: 1rem !important; /* override global blockquote size */
  line-height: 1.6;
  color: rgba(21, 20, 19, 0.8);
  background: #faf9f6;
  border-left: 3px solid var(--primary);
  padding: 0.75rem 1rem;
  margin: 1rem 0 1.5rem;
}

.content-card h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 300;
}

/* Legal pages: make headings same size as body text inside content cards */
.content-card h1,
.content-card h2,
.content-card h3 {
  font-size: 1rem !important; /* match body text size */
  line-height: 1.5;
  font-weight: 500; /* DM Mono Medium for subtle emphasis */
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 300;
  color: var(--black);
}

.date {
  font-size: 1rem;
  color: rgba(21, 20, 19, 0.6);
  margin-bottom: 2rem;
  display: block;
}

ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
  color: rgba(21, 20, 19, 0.8);
}

.contact-info {
  color: var(--primary);
  margin-top: 1rem;
}

/* Footer */
footer {
  background-color: var(--white);
  border-top: 1px solid rgba(0,0,0,0.1);
  padding: 3rem 0;
}

footer h3 {
  font-size: 0.875rem;
  margin-bottom: 1rem;
  font-weight: 300;
}

footer ul {
  list-style: none;
  padding-left: 0;
}

footer li {
  margin-bottom: 0.75rem;
}

footer a {
  font-size: 0.875rem;
  color: rgba(21, 20, 19, 0.6);
  transition: color 0.2s;
}

footer a:hover {
  color: var(--primary);
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: rgba(21, 20, 19, 0.6);
  margin-bottom: 1rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  color: rgba(21, 20, 19, 0.6);
  transition: color 0.2s;
}

.social-icons a:hover {
  color: var(--primary);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Visibility utilities */
.show-mobile { display: block !important; }
.hide-mobile { display: none !important; }

/* Optional: default desktop helpers are no-op on mobile */
.show-desktop { display: none !important; }
.hide-desktop { display: block !important; }

/* Mobile tweaks */
@media (max-width: 767px) {
  /* Reduce vertical padding and gaps in hero */
  .hero { padding: 2rem 0 3rem; }
  .gap-16 { gap: 2rem; }

  /* Shrink and center the left hero column contents (order 2 on mobile) */
  .hero .order-md-1 { padding: 0 12px; text-align: center; }
  .hero .order-md-1 img { max-width: 70%; height: auto; display: block; margin: 0 auto 1rem; }
  .hero .order-md-1 p { font-size: 1rem; }
  .hero .btn-primary { font-size: 1rem; padding: 0.625rem 1.25rem; }

  /* Reduce right hero image height/visual footprint (order 1 on mobile) */
  .hero .order-md-2 .aspect-3-4 { padding-top: 90%; }
  .hero .order-md-2 .aspect-ratio { max-width: 360px; margin: 0 auto; }

  /* Premium cards: stack and center content on mobile */
  .card-row {
    grid-template-columns: 1fr; /* Image above, text below */
    gap: 0.75rem;
    justify-items: center; /* center image and text container */
    text-align: center; /* center text */
  }

  /* Center the icon+title flex row without changing desktop */
  .bg-dark .card-row > div > div {
    justify-content: center; /* icon + title row */
  }

  /* Tighter card padding on mobile */
  .card-dark { padding: 1rem; }

  /* Circular thumb sizing for compact mobile cards */
  .card-thumb {
    width: 96px;
    height: 96px;
    aspect-ratio: 1 / 1;
  }
}

/* Media Queries */
@media (min-width: 768px) {
  /* Visibility utilities at >=768px */
  .show-mobile { display: none !important; }
  .hide-mobile { display: block !important; }
  .show-desktop { display: block !important; }
  .hide-desktop { display: none !important; }

  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
  
  .grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
  
  .grid-12 {
    grid-template-columns: repeat(12, 1fr);
  }
  
  .col-span-8 {
    grid-column: span 8;
  }
  
  .col-span-4 {
    grid-column: span 4;
  }
  
  .col-span-2 {
    grid-column: span 2;
  }
  
  nav {
    display: flex;
    gap: 2rem;
  }
  
  .mobile-menu-btn {
    display: none;
  }
  
  .hero h1 {
    font-size: 8rem;
  }
  
  h2 {
    font-size: 3.5rem;
  }
  
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
  
  .footer-bottom p {
    margin-bottom: 0;
  }
  
  .order-md-1 {
    order: 1;
  }
  
  .order-md-2 {
    order: 2;
  }
  
  /* Override for legal pages */
  .legal-content h2,
  .content-card h2 {
    font-size: 1.5rem;
  }
}

.store-badges span, .feature-label {
  font-weight: 300;
}