@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  --primary: #26A69A;
  --primary-dim: #1e8c82;
  --primary-container: #d6ece9;
  --on-primary: #ffffff;
  --surface: #fafbfb;
  --surface-container: #f1f4f4;
  --surface-container-high: #e7ecec;
  --on-surface: #1a1f21;
  --on-surface-muted: #5a6a6d;
  --on-surface-dim: #8a9296;
  --outline-variant: rgba(16, 46, 44, 0.08);
  --radius-xl: 24px;
  --radius-lg: 16px;
  --font-display: 'Plus Jakarta Sans', 'Manrope', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --shadow-ambient: 0 18px 48px -24px rgba(16, 46, 44, 0.35);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--on-surface);
  background: var(--surface);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* ------------------------------------------------------------
   Header (shared across all pages)
   ------------------------------------------------------------ */
header {
  padding: 1.25rem 2rem;
}

header.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

header.site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--primary);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

header.site-header .brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: block;
}

.site-nav {
  display: flex;
  gap: 1.75rem;
}

.site-nav a {
  color: var(--on-surface-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

/* Fallback for simple headers that still use `<header><a>…</a></header>` */
header > a:only-child {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

/* ------------------------------------------------------------
   Main (default for text pages like privacy/contact)
   ------------------------------------------------------------ */
main {
  flex: 1;
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

main.landing {
  max-width: none;
  width: 100%;
  padding: 0;
}

h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--on-surface);
}

h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

p, li {
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

ul {
  padding-left: 1.5rem;
}

/* ------------------------------------------------------------
   Landing page — shared decoration
   ------------------------------------------------------------ */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}

.landing h1,
.landing h2 {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
  color: var(--on-surface);
  margin: 0;
  border: 0;
  padding: 0;
}

.landing p {
  color: var(--on-surface-muted);
  margin: 0;
}

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 5rem) 2rem clamp(3rem, 8vw, 6rem);
  background:
    radial-gradient(120% 80% at 8% 0%, rgba(38, 166, 154, 0.28) 0%, rgba(38, 166, 154, 0) 48%),
    radial-gradient(90% 60% at 100% 100%, rgba(38, 166, 154, 0.08) 0%, rgba(38, 166, 154, 0) 55%),
    linear-gradient(180deg, #eaf5f3 0%, #f7fafa 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(120deg, transparent 45%, rgba(255, 255, 255, 0.55) 46%, rgba(255, 255, 255, 0.55) 47%, transparent 48%),
    linear-gradient(120deg, transparent 60%, rgba(255, 255, 255, 0.35) 61%, rgba(255, 255, 255, 0.35) 62%, transparent 63%);
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.7;
}

.hero-inner {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-title {
  font-weight: 800;
  font-size: clamp(2.35rem, 5.5vw, 4.25rem);
  line-height: 1.08;
  margin-bottom: 1.5rem;
}

.hero-lede {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.85;
  max-width: 32em;
  margin-bottom: 2.25rem;
}

.hero-cta {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
}

.app-store-badge {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.2s, filter 0.2s;
  border-radius: 10px;
}

.app-store-badge img {
  display: block;
  height: 56px;
  width: auto;
}

.app-store-badge:hover {
  transform: translateY(-1px);
  filter: drop-shadow(0 10px 20px rgba(16, 46, 44, 0.18));
}

.app-store-badge:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

.cta-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: color 0.2s, transform 0.2s;
}

.cta-link:hover {
  color: var(--primary-dim);
  transform: translateX(2px);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-shot {
  width: 100%;
  max-width: 380px;
  border-radius: 28px;
  filter: drop-shadow(0 28px 56px rgba(16, 46, 44, 0.22));
}

/* ------------------------------------------------------------
   Features
   ------------------------------------------------------------ */
.features {
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 7rem) 2rem;
  display: flex;
  flex-direction: column;
  gap: clamp(4rem, 10vw, 8rem);
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.feature.reverse .feature-visual {
  order: -1;
}

.feature-copy h2 {
  font-weight: 800;
  font-size: clamp(1.85rem, 4vw, 2.85rem);
  line-height: 1.15;
  margin-bottom: 1.1rem;
}

.feature-copy p {
  font-size: 1.05rem;
  line-height: 1.85;
  max-width: 30em;
}

.feature-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background:
    radial-gradient(90% 90% at 0% 0%, rgba(38, 166, 154, 0.12) 0%, rgba(38, 166, 154, 0) 55%),
    linear-gradient(160deg, #eef4f4 0%, #f6f9f9 100%);
  overflow: hidden;
}

.feature-visual img {
  width: 100%;
  max-width: 360px;
  border-radius: 24px;
  filter: drop-shadow(0 22px 40px rgba(16, 46, 44, 0.18));
}

/* ------------------------------------------------------------
   About
   ------------------------------------------------------------ */
.about {
  background:
    radial-gradient(120% 80% at 50% 100%, rgba(38, 166, 154, 0.12) 0%, rgba(38, 166, 154, 0) 55%),
    linear-gradient(180deg, transparent 0%, rgba(38, 166, 154, 0.04) 100%);
  padding: clamp(3.5rem, 8vw, 7rem) 2rem;
}

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

.about-inner .eyebrow {
  display: inline-block;
  margin-bottom: 1.25rem;
}

.about-inner h2 {
  font-weight: 800;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.2;
  margin-bottom: 1.75rem;
}

.about-inner p {
  font-size: 1.075rem;
  line-height: 1.95;
}

.about-inner p + p {
  margin-top: 1.25rem;
}

.about-cta {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 880px) {
  header.site-header {
    padding: 1rem 1.25rem;
  }

  .site-nav {
    display: none;
  }

  .hero {
    padding: 2.5rem 1.5rem 3.5rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hero-visual {
    order: -1;
    margin-bottom: 0.5rem;
  }

  .hero-shot {
    max-width: 300px;
  }

  .features {
    padding: 3rem 1.5rem;
    gap: 4rem;
  }

  .feature,
  .feature.reverse {
    grid-template-columns: 1fr;
  }

  .feature.reverse .feature-visual {
    order: 0;
  }

  .feature-visual {
    padding: 1.5rem;
  }

  .feature-visual img {
    max-width: 280px;
  }

  .about {
    padding: 3rem 1.5rem;
  }
}

/* ============================================================
   Form pages (contact / contact-result)
   ============================================================ */
form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

label {
  font-weight: 600;
  font-size: 0.875rem;
  display: block;
  margin-bottom: 0.375rem;
}

input, textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
}

textarea {
  min-height: 160px;
  resize: vertical;
}

button[type="submit"] {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.875rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

button[type="submit"]:hover {
  background: var(--primary-dim);
}

.result {
  text-align: center;
  padding: 3rem 1rem;
}

.result.success p {
  color: var(--primary);
  font-weight: 600;
  font-size: 1.125rem;
}

.result.error p {
  color: #e53935;
  font-weight: 600;
  font-size: 1.125rem;
}

.result a {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

/* ============================================================
   Footer (shared)
   ============================================================ */
footer {
  padding: 2rem;
  text-align: center;
  border-top: 1px solid var(--outline-variant);
  background: var(--surface);
}

footer nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
}

footer a {
  color: var(--on-surface-muted);
  text-decoration: none;
  font-size: 0.875rem;
}

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

footer p {
  color: var(--on-surface-dim);
  font-size: 0.75rem;
}

/* ============================================================
   Privacy policy
   ============================================================ */
.privacy h2 {
  border-bottom: 1px solid var(--outline-variant);
  padding-bottom: 0.5rem;
}

.privacy p:last-child {
  color: var(--on-surface-dim);
  font-size: 0.875rem;
  margin-top: 3rem;
}
