/* =========================================================================
   Swipe Tune website styles
   -------------------------------------------------------------------------
   This file is organized into clearly-labeled sections so it's easy to
   find the thing you want to change. Search (Ctrl/Cmd+F) for a section
   title in ALL CAPS to jump straight to it, e.g. search for "COLORS".

   Quick pointers for common edits:
     - Want to change a color everywhere on the site?  -> see "COLORS"
     - Want to change the heading/body font sizes?      -> see "TYPOGRAPHY"
     - Want to change button colors/shape?               -> see "BUTTONS"
     - Want to change spacing between sections?          -> see "SECTIONS"
   ========================================================================= */


/* ---------------------------------------------------------------------
   COLORS
   These are the app's brand colors. They are defined once here as
   "CSS custom properties" (the --name: value; lines below) and reused
   everywhere else in this file as var(--name). To re-color the whole
   site, you only need to change the values in this one place.
   --------------------------------------------------------------------- */
:root {
  --color-primary: #7E93AE;    /* slate blue   - used for links, accents, buttons */
  --color-secondary: #9B8FB0;  /* dusty lavender - used for secondary accents/gradients */
  --color-background: #F5F1EB; /* warm off-white - the page background (never pure white) */
  --color-text: #3D3547;       /* soft plum-gray - the main text color (never pure black) */

  /* A few extra colors derived from the above, used for subtle touches
     like card backgrounds and borders. Feel free to leave these alone. */
  --color-card-bg: #FFFFFF;
  --color-border: #E4DDD1;
  --color-text-soft: #6E6478; /* a lighter version of the text color, for captions */
}


/* ---------------------------------------------------------------------
   BASE / RESET
   General page setup: background color, default font, spacing reset.
   --------------------------------------------------------------------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--color-background);
  color: var(--color-text);

  /* TYPOGRAPHY: this is the font used everywhere on the site. It's a
     "system font stack," meaning it uses each device's own clean,
     built-in font (San Francisco on iPhone/Mac, Segoe UI on Windows,
     etc.) rather than loading anything from the internet. */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* A shared max-width wrapper so content doesn't stretch edge-to-edge on
   wide desktop screens. Used inside most sections below. */
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}


/* ---------------------------------------------------------------------
   TYPOGRAPHY
   Heading and paragraph sizing. Change the "font-size" numbers below to
   make headings bigger/smaller across the whole site.
   --------------------------------------------------------------------- */
h1, h2, h3 {
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 16px 0;
  color: var(--color-text);
}

h1 {
  font-size: 2.4rem; /* main hero heading size */
}

h2 {
  font-size: 1.9rem; /* section title size, e.g. "Why Swipe Tune" */
}

h3 {
  font-size: 1.2rem; /* feature-card / sub-heading size */
}

p {
  margin: 0 0 16px 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-secondary);
  margin: 0 0 8px 0;
}

.lede {
  font-size: 1.15rem;
  color: var(--color-text-soft);
  max-width: 640px;
}


/* ---------------------------------------------------------------------
   HEADER / NAV
   The small bar at the very top of the page with the logo.
   --------------------------------------------------------------------- */
.site-header {
  padding: 20px 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-header img {
  height: 32px;
  width: auto;
}

.site-nav a {
  margin-left: 20px;
  text-decoration: none;
  font-weight: 600;
  color: var(--color-text);
}

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


/* ---------------------------------------------------------------------
   SECTIONS (general spacing)
   Controls the breathing room above/below every major section of the
   page. Increase "padding" values for even more whitespace.
   --------------------------------------------------------------------- */
section {
  padding: 64px 0;
}

section + section {
  border-top: 1px solid var(--color-border);
}


/* ---------------------------------------------------------------------
   HERO
   The big introduction area at the top of the homepage: logo, app name,
   tagline, and pitch paragraph.
   --------------------------------------------------------------------- */
.hero {
  padding: 56px 0 72px 0;
  text-align: center;
}

.hero-logo {
  height: 84px;
  width: auto;
  margin: 0 auto 28px auto;
}

.hero h1 {
  margin-bottom: 12px;
}

.hero .tagline {
  font-size: 1.3rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 20px;
}

.hero .pitch {
  font-size: 1.1rem;
  color: var(--color-text-soft);
  max-width: 680px;
  margin: 0 auto 32px auto;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}


/* ---------------------------------------------------------------------
   BUTTONS
   Change colors here to change every button on the site at once.
   --------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px; /* fully rounded "pill" shape, matches the app's soft style */
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background-color: var(--color-primary);
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(126, 147, 174, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 10px 24px rgba(126, 147, 174, 0.45);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}


/* ---------------------------------------------------------------------
   APP STORE BADGE (Coming Soon)
   Styled to resemble a real "Download on the App Store" badge, but
   disabled since the app isn't live yet. See the TODO comment in
   index.html for what to do once the app ships.
   --------------------------------------------------------------------- */
.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  border-radius: 12px;
  background-color: var(--color-text);
  color: var(--color-background);
  text-decoration: none;
  cursor: default;
  opacity: 0.9;
  pointer-events: none; /* makes the badge non-clickable */
}

.appstore-badge .badge-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.appstore-badge .badge-text {
  text-align: left;
}

.appstore-badge .badge-text .small {
  display: block;
  font-size: 0.7rem;
  opacity: 0.85;
}

.appstore-badge .badge-text .big {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
}


/* ---------------------------------------------------------------------
   FEATURES ("Why Swipe Tune")
   The grid of 3-4 short feature callouts.
   --------------------------------------------------------------------- */
.features {
  background-color: #EFE9DF; /* a slightly deeper warm tone than the page background */
}

.features-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}

.feature-card {
  background-color: var(--color-card-bg);
  border-radius: 20px; /* soft rounded corners, matches the app's calm aesthetic */
  padding: 28px 24px;
  box-shadow: 0 10px 30px rgba(61, 53, 71, 0.06);
}

.feature-card .icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.feature-card h3 {
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--color-text-soft);
  margin-bottom: 0;
  font-size: 0.98rem;
}


/* ---------------------------------------------------------------------
   SCREENSHOTS SHOWCASE
   --------------------------------------------------------------------- */
.showcase-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px auto;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.screenshot-card {
  text-align: center;
}

.screenshot-card .frame {
  border-radius: 28px; /* rounded corners echo an iPhone's rounded screen */
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(61, 53, 71, 0.15);
  border: 8px solid var(--color-card-bg);
  margin-bottom: 16px;
}

.screenshot-card img {
  width: 100%;
  height: auto;
}

.screenshot-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.screenshot-card p {
  color: var(--color-text-soft);
  font-size: 0.95rem;
  margin-bottom: 0;
}


/* ---------------------------------------------------------------------
   PRIVACY / TRUST CALLOUT
   --------------------------------------------------------------------- */
.privacy-callout {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #FFFFFF;
  border-radius: 28px;
  padding: 48px;
  text-align: center;
  max-width: 1080px;
  margin: 0 24px;
}

@media (min-width: 1128px) {
  .privacy-callout {
    margin: 0 auto;
  }
}

.privacy-callout h2,
.privacy-callout p {
  color: #FFFFFF;
}

.privacy-callout .lede {
  color: rgba(255, 255, 255, 0.9);
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.privacy-callout .btn-secondary {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
  color: #FFFFFF;
}

.privacy-callout .btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.22);
  border-color: #FFFFFF;
  color: #FFFFFF;
}


/* ---------------------------------------------------------------------
   FOOTER
   --------------------------------------------------------------------- */
.site-footer {
  padding: 40px 0;
  text-align: center;
  color: var(--color-text-soft);
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--color-text-soft);
  text-decoration: underline;
}

.site-footer p {
  margin: 4px 0;
}


/* ---------------------------------------------------------------------
   PRIVACY POLICY PAGE
   Extra styles used only on privacy.html.
   --------------------------------------------------------------------- */
.policy {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px 24px;
}

.policy h1 {
  margin-bottom: 8px;
}

.policy .updated {
  color: var(--color-text-soft);
  margin-bottom: 32px;
}

.policy h2 {
  margin-top: 40px;
  font-size: 1.4rem;
}

.policy ul {
  padding-left: 20px;
}

.policy li {
  margin-bottom: 8px;
}

.back-link {
  display: inline-block;
  margin: 32px 24px 0 24px;
  text-decoration: none;
  font-weight: 600;
}


/* ---------------------------------------------------------------------
   RESPONSIVE ADJUSTMENTS
   Tweaks for narrower (phone-width) screens.
   --------------------------------------------------------------------- */
@media (max-width: 600px) {
  h1 {
    font-size: 1.9rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  section {
    padding: 48px 0;
  }

  .privacy-callout {
    padding: 32px 24px;
    border-radius: 20px;
  }

  .site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav a {
    margin-left: 0;
    margin-right: 16px;
  }
}
