/* ===== Custom Properties ===== */
:root {
  --orange:      #E86C2C;  /* matches the app's primary colour */
  --orange-dark: #C9571D;
  --peach:       #FFF5EE;  /* the app's light control background */
  --ink:         #2B2F33;
  --slate:       #555c65;
  --muted:       #7a8089;
  --light-bg:    #f7f6f4;
  --white:       #ffffff;
  --border:      #e3e1de;
  --success:     #1e7b34;
  --success-bg:  #d4edda;
  --error:       #b02a37;
  --error-bg:    #f8d7da;
  --radius:      12px;
  --radius-sm:   6px;
  --max-width:   1140px;
  --nav-height:  64px;
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm:   0 2px 6px rgba(0, 0, 0, 0.08);
  --shadow-md:   0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-lg:   0 20px 50px rgba(0, 0, 0, 0.18);
  --font-body:   'Space Grotesk', system-ui, sans-serif;
  --font-mono:   'Space Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  background: var(--white);
  color: var(--slate);
  line-height: 1.6;
}

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

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

input, textarea, button { font: inherit; }

h1, h2, h3 {
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.15;
  font-weight: 700;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.75rem;
}

/* ===== Navigation ===== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--orange);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.85);
}

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

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s var(--ease);
}

.nav-links a:hover { background: rgba(255, 255, 255, 0.15); }

.nav-links .nav-cta {
  background: var(--white);
  color: var(--orange);
  font-weight: 700;
  margin-left: 0.5rem;
}

.nav-links .nav-cta:hover { background: var(--peach); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  line-height: 1;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
}

/* ===== Sections ===== */
section {
  padding: 5.5rem 0;
  scroll-margin-top: var(--nav-height);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 0.75rem;
}

.section-head p { font-size: 1.1rem; }

/* ===== Hero ===== */
.hero {
  position: relative;
  background: var(--peach);
  overflow: hidden;
  padding: 4.5rem 0 5rem;
}

/* The app's city-grid pattern, kept faint behind the hero */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/grid.webp') repeat;
  background-size: 320px;
  opacity: 0.07;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  letter-spacing: -0.5px;
  margin-bottom: 1.25rem;
}

.hero h1 span { color: var(--orange); }

.hero-lede {
  font-size: 1.2rem;
  max-width: 34rem;
  margin-bottom: 2rem;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.store-buttons img {
  height: 48px;
  width: auto;
  transition: transform 0.2s var(--ease);
}

.store-buttons a:hover img { transform: translateY(-2px); }

.hero-note {
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-phones {
  position: relative;
  height: 560px;
}

.hero-phones .phone {
  position: absolute;
  width: 250px;
}

.hero-phones .phone-back {
  right: 8%;
  top: 30px;
  transform: rotate(6deg);
}

.hero-phones .phone-front {
  left: 8%;
  top: 0;
  transform: rotate(-4deg);
  z-index: 1;
}

/* ===== Phone frame ===== */
.phone {
  background: #1b1d1f;
  border-radius: 36px;
  padding: 10px;
  box-shadow: var(--shadow-lg);
}

.phone img {
  border-radius: 27px;
  width: 100%;
  aspect-ratio: 640 / 1295;
  object-fit: cover;
  object-position: top;
}

/* ===== How it works ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  counter-reset: step;
}

.step { text-align: center; }

.step .phone {
  width: 230px;
  margin: 0 auto 1.75rem;
  box-shadow: var(--shadow-md);
}

.step .phone img {
  aspect-ratio: 640 / 1000;  /* show the top of each screen */
}

.step h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.step h3::before {
  counter-increment: step;
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-size: 0.95rem;
  vertical-align: 2px;
}

.step p {
  max-width: 300px;
  margin: 0 auto;
}

/* ===== Interests ===== */
#interests { background: var(--light-bg); }

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  max-width: 860px;
  margin: 0 auto;
  list-style: none;
}

.chips li {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 0.55rem 1.15rem;
  font-weight: 500;
  color: var(--ink);
}

/* ===== Features ===== */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--peach);
  color: var(--orange);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

/* ===== Polaroids ===== */
#places {
  background: var(--light-bg);
  overflow: hidden;
}

.polaroid-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.polaroid {
  background: var(--white);
  padding: 0.8rem 0.8rem 1.2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: rotate(-2deg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 300px;
}

.polaroid:nth-child(even) { transform: rotate(2.5deg); }
.polaroid:nth-child(3n) { transform: rotate(-1deg); }

.polaroid:hover {
  transform: scale(1.04) rotate(0);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.polaroid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: sepia(15%);
}

.polaroid p {
  font-family: var(--font-mono);
  color: var(--slate);
  text-align: center;
  margin-top: 0.8rem;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ===== About ===== */
.about-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.about-inner h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 1.25rem;
}

.about-inner p {
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

/* ===== Download band ===== */
.cta-band {
  background: var(--orange);
  color: var(--white);
  text-align: center;
  padding: 4.5rem 0;
}

.cta-band h2 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 0.75rem;
}

.cta-band p {
  font-size: 1.15rem;
  margin-bottom: 2rem;
}

.cta-band .store-buttons { justify-content: center; }

.instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  padding-bottom: 2px;
}

.instagram-link:hover { border-bottom-color: var(--white); }

.instagram-link svg {
  width: 20px;
  height: 20px;
}

/* ===== Contact ===== */
.contact-form {
  max-width: 540px;
  margin: 0 auto;
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
  color: var(--ink);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.2s var(--ease);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--orange);
}

.form-buttons {
  display: flex;
  justify-content: center;
}

.send-btn {
  background: var(--orange);
  color: var(--white);
  padding: 0.85rem 2.75rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  transition: background 0.2s var(--ease);
}

.send-btn:hover { background: var(--orange-dark); }

.send-btn:disabled {
  opacity: 0.7;
  cursor: default;
}

.form-status {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  text-align: center;
  color: var(--success);
  background: var(--success-bg);
}

.form-status.error {
  color: var(--error);
  background: var(--error-bg);
}

.contact-alt {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.95rem;
}

/* Honeypot field for spam bots — hidden from people */
.hp-field {
  position: absolute;
  left: -9999px;
}

/* ===== Footer ===== */
footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.8);
  padding: 2rem 0;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

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

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

footer a:hover { text-decoration: underline; }

/* ===== Scroll reveal ===== */
/* Only hidden when JS is running (html.js), so content never stays invisible.
   Uses `translate` (not `transform`) so it doesn't clobber the polaroid tilt. */
.js .reveal {
  opacity: 0;
  translate: 0 16px;
  transition: opacity 0.6s var(--ease), translate 0.6s var(--ease),
              transform 0.3s ease, box-shadow 0.3s ease;
}

.js .reveal.visible {
  opacity: 1;
  translate: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; translate: none; transition: none; }
}

/* ===== Privacy Policy ===== */
.privacy-content {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem 1.5rem;
  line-height: 1.8;
}

.privacy-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.privacy-content h2 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
}

.privacy-content h3 {
  font-size: 1.2rem;
  margin: 1.5rem 0 0.8rem;
}

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

.privacy-content p { margin-bottom: 1rem; }

.effective-date {
  font-style: italic;
  margin-bottom: 2rem;
}

/* ===== 404 ===== */
.not-found {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
}

.not-found h1 {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-lede { margin-left: auto; margin-right: auto; }

  .hero .store-buttons { justify-content: center; }

  .hero-phones {
    height: 440px;
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
  }

  .hero-phones .phone { width: 200px; }

  .steps,
  .features { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }

  section { padding: 4rem 0; }

  .container,
  .nav-inner { padding: 0 1rem; }

  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--orange);
    padding: 0.5rem 1rem 1rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  }

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

  .nav-links a {
    display: block;
    padding: 0.8rem 0.5rem;
  }

  .nav-links .nav-cta {
    margin: 0.5rem 0 0;
    text-align: center;
  }

  .hero { padding: 3rem 0 3.5rem; }

  .hero-phones { height: 380px; }

  .hero-phones .phone {
    width: 170px;
    border-radius: 26px;
    padding: 7px;
  }

  .hero-phones .phone img { border-radius: 20px; }

  .steps,
  .features { grid-template-columns: 1fr; }

  .polaroid { width: calc(50% - 0.75rem); padding: 0.5rem 0.5rem 0.8rem; }

  .polaroid-container { gap: 1.5rem 1.5rem; }

  .polaroid p { font-size: 0.7rem; }

  .store-buttons img { height: 44px; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .privacy-content h1 { font-size: 2rem; }
}
