/* ===========================
   Skipstone Inc. — Shared Styles
   =========================== */

:root {
  --teal: #587E98;
  --teal-dark: #2A5A6E;
  --teal-light: #E4EBF0;
  --coral: #FF8A7A;
  --coral-dark: #E5706A;
  --coral-light: #FFF0EE;
  --peach: #FFDAD5;
  --peach-light: #FFF5F3;
  --yellow: #FFC030;
  --yellow-light: #F5DFD0;
  --dark: #2C3333;
  --gray: #4B5563;
  --light-bg: #CEDAE6;
  --white: #FFFFFF;
  --shadow: 0 6px 20px rgba(44, 51, 51, 0.22);
  --shadow-hover: 0 12px 32px rgba(44, 51, 51, 0.28);
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1100px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
  background: var(--white);
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--dark);
  background: linear-gradient(to bottom, var(--light-bg) 0%, #FCFBF8 100vh) no-repeat, #FCFBF8;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, .nav-brand {
  font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, sans-serif;
}

main {
  flex: 1;
  position: relative;
}


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

a:hover {
  color: var(--teal-dark);
}

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

/* ===========================
   Container
   =========================== */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

@media (max-width: 767px) {
  .hero h1 {
    font-size: 2rem;
  }

  .page-header h1 {
    font-size: 1.75rem;
  }

  .btn {
    width: 100%;
  }
}

/* ===========================
   Navigation
   =========================== */

.nav {
  background: var(--white);
  border-bottom: 1px solid #D0D4D8;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--dark);
  text-decoration: none;
}

.nav-brand:hover {
  color: var(--dark);
}

.nav-brand svg {
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

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

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--dark);
}

/* Mobile nav */
@media (max-width: 767px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(44, 51, 51, 0.06);
    box-shadow: var(--shadow);
  }

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

/* ===========================
   Hero / Page Header
   =========================== */

.hero {
  padding-top: 4rem;
  padding-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  color: #0880A0;
}

.hero p {
  font-size: 1.125rem;
  color: var(--gray);
  max-width: 600px;
  line-height: 1.7;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray);
  margin-top: 1.5rem;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--teal);
}

.page-header {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.page-header h1 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #0880A0;
}

.page-header .subtitle {
  font-size: 1.125rem;
  color: var(--gray);
  margin-top: 0.5rem;
}

/* ===========================
   Section
   =========================== */

.section {
  padding-top: 2rem;
  padding-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  white-space: nowrap;
}


/* ===========================
   App Gallery Cards
   =========================== */

.app-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .app-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.app-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  border-left: 4px solid var(--yellow);
}

.app-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.app-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.app-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.app-card-icon.teal {
  background: var(--teal-light);
  color: var(--teal);
}

.app-card-icon.coral {
  background: var(--coral-light);
  color: var(--coral);
}

.app-card h3 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.app-card p {
  color: var(--gray);
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
  flex: 1;
}

.app-card-link {
  font-weight: 600;
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.app-card-link::after {
  content: '→';
  transition: transform 0.2s;
}

.app-card:hover .app-card-link::after {
  transform: translateX(4px);
}

/* ===========================
   Product Page
   =========================== */

.product-title {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.product-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.product-content {
  padding-top: 1rem;
  padding-bottom: 3rem;
}

.product-description {
  font-size: 1.0625rem;
  color: var(--gray);
  max-width: 640px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.product-highlights {
  color: var(--gray);
  max-width: 640px;
  line-height: 1.7;
  margin-bottom: 2rem;
  padding-left: 1.5rem;
}

.product-highlights li {
  margin-bottom: 0.375rem;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.badge {
  display: inline-block;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.375rem 1rem;
  border-radius: 999px;
}

.badge-teal {
  background: var(--peach);
  color: var(--coral-dark);
}

.badge-yellow {
  background: var(--yellow-light);
  color: #B8860B;
}

.badge-coral {
  background: var(--coral-light);
  color: #D4503E;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.screenshot-placeholder {
  background: var(--white);
  border: 2px dashed rgba(44, 51, 51, 0.12);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--gray);
  font-size: 0.9375rem;
}

/* ===========================
   Screenshot Gallery
   =========================== */

.screenshot-gallery {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  margin-right: -24px;
  padding-right: 24px;
}

.screenshot-gallery img {
  width: 220px;
  flex-shrink: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  scroll-snap-align: start;
}

@media (max-width: 767px) {
  .screenshot-gallery img {
    width: 180px;
  }
}

.placeholder-label {
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--coral);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: absolute;
  bottom: -1rem;
  left: 0;
  right: 0;
  text-align: center;
}

.app-card-icon {
  position: relative;
}

/* ===========================
   Buttons
   =========================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--white);
}

.btn-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-outline {
  background: var(--white);
  color: var(--coral-dark);
  border-color: var(--coral-dark);
}

.btn-outline:hover {
  background: var(--coral-dark);
  color: var(--white);
}

/* ===========================
   Privacy / Legal Content
   =========================== */

.legal-content {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-content h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-content p {
  color: var(--gray);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.legal-content ul {
  color: var(--gray);
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  line-height: 1.7;
}

.legal-content li {
  margin-bottom: 0.25rem;
}

.legal-content a {
  text-decoration: underline;
}

/* ===========================
   Support Page
   =========================== */

.support-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .support-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.support-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.support-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.support-card p {
  color: var(--gray);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.support-card .email-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-weight: 600;
  font-size: 0.9375rem;
}

/* ===========================
   Footer
   =========================== */

.footer {
  padding: 2rem 0;
  margin-top: 2rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-copy {
  color: var(--gray);
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  color: var(--gray);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--teal);
}

/* ===========================
   Utilities
   =========================== */

.text-teal { color: var(--teal); }
.text-coral { color: var(--coral); }
.text-gray { color: var(--gray); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
