/* ============================================
   Saving Thoughts — Marketing Website Styles
   ============================================ */

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
  max-width: 100%;
}

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

ul, ol {
  list-style: none;
}

/* --- Custom Properties --- */
:root {
  --color-navy: #1E3A5F;
  --color-navy-dark: #152C4A;
  --color-navy-light: #2A4F7A;
  --color-gold: #D4A843;
  --color-gold-hover: #B8922E;
  --color-white: #FFFFFF;
  --color-off-white: #F8FAFC;
  --color-gray-100: #F1F5F9;
  --color-gray-200: #E2E8F0;
  --color-gray-300: #CBD5E1;
  --color-gray-400: #94A3B8;
  --color-gray-500: #64748B;
  --color-gray-700: #334155;
  --color-text: #1E293B;
  --color-text-light: #64748B;
  --color-charcoal: #0F172A;
  --color-success: #16A34A;

  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --section-padding: clamp(3rem, 8vw, 6rem);
  --container-max: 1200px;
  --container-narrow: 800px;

  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --transition: 0.2s ease;
}

/* --- Utilities --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--section-padding) 0;
}

.section--alt {
  background: var(--color-off-white);
}

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

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

.section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.section__title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.section--navy .section__title,
.section--charcoal .section__title {
  color: var(--color-white);
}

.section__subtitle {
  font-size: 1.125rem;
  color: var(--color-text-light);
  max-width: 640px;
  margin: 0 auto;
}

.section--navy .section__subtitle {
  color: var(--color-gray-300);
}

/* --- Typography --- */
h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
  gap: 0.5rem;
}

.btn--gold {
  background: var(--color-gold);
  color: var(--color-navy-dark);
  border-color: var(--color-gold);
}

.btn--gold:hover {
  background: var(--color-gold-hover);
  border-color: var(--color-gold-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

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

.btn--outline-white {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.4);
}

.btn--outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
}

.btn--lg {
  padding: 1rem 2.25rem;
  font-size: 1.125rem;
}

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
  background: transparent;
}

.header--scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.header__logo {
  height: 36px;
  width: auto;
  flex-shrink: 0;
}

.header__nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

.header__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-navy);
  transition: color var(--transition);
}

.header__link:hover {
  color: var(--color-gold);
}

.header__cta {
  margin-left: 0.5rem;
}

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

.hamburger__line {
  width: 24px;
  height: 2px;
  background: var(--color-navy);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-open .hamburger__line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.nav-open .hamburger__line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--color-white);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 999;
}

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

.mobile-nav__link {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-navy);
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.mobile-nav__link:hover {
  background: var(--color-off-white);
}

.mobile-nav__cta {
  margin-top: 0.5rem;
  text-align: center;
}

/* --- Hero --- */
.hero {
  padding-top: calc(72px + var(--section-padding));
  padding-bottom: var(--section-padding);
  background: linear-gradient(180deg, var(--color-off-white) 0%, var(--color-white) 100%);
}

.hero__inner {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero__title {
  color: var(--color-navy);
  margin-bottom: 1.25rem;
}

.hero__title span {
  color: var(--color-gold);
}

.hero__description {
  font-size: 1.25rem;
  color: var(--color-text-light);
  margin-bottom: 2rem;
  max-width: 520px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-gray-700);
}

.badge__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.badge--success {
  border-color: rgba(22, 163, 74, 0.2);
  color: var(--color-success);
}

/* Hero phone mockup */
.hero__visual {
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 280px;
  height: 560px;
  background: var(--color-charcoal);
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.phone-mockup__screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #1a2332 0%, #0d3b47 40%, #1E3A5F 100%);
  border-radius: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  color: var(--color-white);
  text-align: center;
  overflow: hidden;
}

.phone-mockup__notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: var(--color-charcoal);
  border-radius: 0 0 16px 16px;
  z-index: 1;
}

.phone-mockup__app-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  margin-top: 1.5rem;
  color: var(--color-gold);
}

.phone-mockup__record-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: 0 4px 20px rgba(212, 168, 67, 0.4);
}

.phone-mockup__record-icon {
  width: 28px;
  height: 28px;
}

.phone-mockup__hint {
  font-size: 0.75rem;
  color: var(--color-gray-400);
  margin-bottom: 2rem;
}

.phone-mockup__tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.phone-mockup__tag {
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 500;
  background: rgba(255,255,255,0.12);
  color: var(--color-gray-300);
  border: 1px solid rgba(255,255,255,0.08);
}

/* --- Features Grid --- */
.features-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.feature-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--color-navy);
}

.feature-card__icon svg {
  width: 24px;
  height: 24px;
}

.feature-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}

.feature-card__desc {
  font-size: 0.9375rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* --- Use Cases --- */
.usecases-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.usecase-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.usecase-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--color-gold);
}

.usecase-card__icon svg {
  width: 28px;
  height: 28px;
}

.usecase-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}

.usecase-card__desc {
  font-size: 0.9375rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* --- How It Works --- */
.steps {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  counter-reset: step;
}

.step {
  text-align: center;
  position: relative;
  counter-increment: step;
}

.step__number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-gold);
  color: var(--color-navy-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.step__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}

.step__desc {
  font-size: 0.9375rem;
  color: var(--color-text-light);
  max-width: 280px;
  margin: 0 auto;
}

/* Step connector line (desktop only) */
.step__connector {
  display: none;
}

/* --- Security --- */
.security-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.security__text h2 {
  color: var(--color-navy);
  margin-bottom: 1rem;
}

.security__text p {
  font-size: 1.125rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

.security-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.security-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-gray-200);
}

.security-item__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--color-success);
  margin-top: 1px;
}

.security-item__text {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
}

.security-item__text span {
  display: block;
  font-weight: 400;
  font-size: 0.8125rem;
  color: var(--color-text-light);
  margin-top: 0.125rem;
}

/* --- Pricing --- */
.pricing-grid {
  display: grid;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
}

.pricing-card--featured {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 1px var(--color-gold), var(--shadow-md);
  position: relative;
}

.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-gold);
  color: var(--color-navy-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 1rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-card__name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}

.pricing-card__price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.25rem;
}

.pricing-card__price-period {
  font-size: 1.25rem;
  font-weight: 400;
}

.pricing-card__period {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

.pricing-card__features {
  text-align: left;
  margin-bottom: 2rem;
}

.pricing-card__feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  color: var(--color-text);
}

.pricing-card__feature svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-success);
}

/* --- CTA Banner --- */
.cta-banner {
  text-align: center;
  padding: var(--section-padding) 0;
}

.cta-banner h2 {
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.cta-banner p {
  color: var(--color-gray-300);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.cta-banner__platforms {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--color-gray-400);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* --- Footer --- */
.footer {
  background: var(--color-charcoal);
  color: var(--color-gray-400);
  padding: 3rem 0 1.5rem;
}

.footer__grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer__brand {
  max-width: 300px;
}

.footer__logo {
  height: 32px;
  width: auto;
  margin-bottom: 0.75rem;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.footer__tagline {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-gray-400);
}

.footer__heading {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gray-300);
  margin-bottom: 1rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer__link {
  font-size: 0.875rem;
  color: var(--color-gray-400);
  transition: color var(--transition);
}

.footer__link:hover {
  color: var(--color-white);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.8125rem;
}

.footer__bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer__bottom-links a {
  color: var(--color-gray-400);
  transition: color var(--transition);
}

.footer__bottom-links a:hover {
  color: var(--color-white);
}

/* --- Utility --- */
.btn--full {
  width: 100%;
}

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -40px;
  left: 1rem;
  z-index: 2000;
  background: var(--color-navy);
  color: var(--color-white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

/* --- Focus Visible --- */
.btn:focus-visible,
.header__link:focus-visible,
.mobile-nav__link:focus-visible,
.footer__link:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

/* --- Fade In Animation --- */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* --- Privacy Page --- */
.privacy-page {
  padding-top: calc(72px + 3rem);
  padding-bottom: 3rem;
  min-height: 100vh;
}

.privacy-content h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}

.privacy-content .last-updated {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-bottom: 2.5rem;
}

.privacy-content h2 {
  font-size: 1.375rem;
  color: var(--color-navy);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.privacy-content p {
  margin-bottom: 1rem;
  color: var(--color-text);
}

.privacy-content ul {
  margin-bottom: 1rem;
  padding-left: 1.25rem;
}

.privacy-content li {
  list-style: disc;
  margin-bottom: 0.375rem;
  color: var(--color-text);
}

.privacy-content li::marker {
  color: var(--color-gold);
}

.privacy-content a {
  color: var(--color-navy);
  text-decoration: underline;
}

.privacy-content a:hover {
  color: var(--color-gold);
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  .fade-in-up {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover,
  .feature-card:hover {
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ============================================
   Responsive
   ============================================ */

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

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

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

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

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

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .header__nav {
    display: flex;
  }

  .hamburger {
    display: none;
  }

  .hero__inner {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

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

  .usecases-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .step__connector {
    display: block;
    position: absolute;
    top: 28px;
    left: calc(50% + 36px);
    width: calc(100% - 72px);
    height: 2px;
    background: var(--color-gray-200);
  }

  .step:last-child .step__connector {
    display: none;
  }

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

@media (min-width: 1280px) {
  .container {
    padding: 0 2rem;
  }
}
