/* Pathink — shared stylesheet. No framework, no build step. */

:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --text: #1d211d;
  --muted: #5d655d;
  --line: #e3e2dc;
  --brand: #3d6a40;          /* the green of the original Pathink logo */
  --brand-ink: #ffffff;
  --brand-soft: #e6efe5;
  --link: #2f6a34;
  --danger: #a3302a;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(0 0 0 / .05), 0 8px 24px rgb(0 0 0 / .06);
  --max: 1040px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141614;
    --surface: #1c1f1c;
    --text: #e9ece8;
    --muted: #a2aaa1;
    --line: #2d322d;
    --brand: #5c9a5f;
    --brand-ink: #0f130f;
    --brand-soft: #22301f;
    --link: #8cc98f;
    --danger: #f08a83;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 8px 24px rgb(0 0 0 / .3);
    color-scheme: dark;
  }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

a { color: var(--link); text-underline-offset: 2px; }

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

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 60px;
  flex-wrap: wrap;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 6px;
  background: var(--brand);
  color: var(--brand-ink);
  font: 800 19px/1.4 "Cooper Black", "Georgia", serif;
  letter-spacing: .02em;
  text-decoration: none;
}

.crumb {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.site-nav {
  margin-left: auto;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}

.site-nav a:hover { color: var(--text); background: var(--brand-soft); }
.site-nav a[aria-current="page"] { color: var(--text); background: var(--brand-soft); font-weight: 600; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 12px;
  border: 0;
  background: var(--text);
  color: var(--bg);
  font: 600 16px/1.2 inherit;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover { opacity: .88; }
.btn[disabled] { opacity: .5; cursor: progress; }

.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
}

/* ---------- home ---------- */

.home-hero { padding-block: 72px 32px; }

.home-hero h1 {
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0 0 12px;
}

.home-hero p { color: var(--muted); font-size: 19px; max-width: 34em; margin: 0; }

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding-block: 24px 72px;
}

.app-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform .15s ease;
}

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

.app-card .shot {
  height: 260px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: var(--brand-soft);
  overflow: hidden;
  padding-top: 24px;
}

.app-card .shot img { width: 150px; margin-bottom: -60px; filter: drop-shadow(0 8px 16px rgb(0 0 0 / .2)); }

.app-card .body { padding: 18px 20px 22px; }
.app-card h2 { margin: 0 0 4px; font-size: 21px; }
.app-card p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- app page ---------- */

.app-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  padding-block: 64px;
}

.app-hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0 0 16px;
}

.app-hero .lead { font-size: 20px; color: var(--muted); margin: 0 0 28px; max-width: 30em; }

.app-hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }

.app-hero .device { text-align: center; }
.app-hero .device img { width: 280px; filter: drop-shadow(0 20px 40px rgb(0 0 0 / .18)); }

@media (max-width: 760px) {
  .app-hero { grid-template-columns: 1fr; gap: 32px; padding-block: 40px; }
  .app-hero .device img { width: 220px; }
}

/* ---------- prose (privacy policies) ---------- */

.prose { max-width: 720px; padding-block: 48px 72px; }
.prose h1 { font-size: 34px; line-height: 1.15; margin: 0 0 8px; letter-spacing: -.01em; }
.prose h2, .prose strong:first-child { font-size: 20px; }
.prose > .policy > strong, .prose > .policy strong { display: block; margin-top: 1.6em; font-size: 19px; }
.prose > .policy br { display: none; }
.prose .meta { color: var(--muted); margin: 0 0 32px; }
.prose .footnote { color: var(--muted); font-size: 14px; margin-top: 40px; }

/* ---------- contact ---------- */

.contact { max-width: 620px; padding-block: 48px 72px; }
.contact h1 { font-size: 34px; margin: 0 0 8px; }
.contact .intro { color: var(--muted); margin: 0 0 28px; }

.form { display: grid; gap: 18px; }

.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }

.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

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

.field input:focus, .field textarea:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
  border-color: transparent;
}

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.notice {
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--brand-soft);
  border: 1px solid var(--line);
}

.notice.error { color: var(--danger); }
.notice[hidden] { display: none; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer .wrap { display: flex; gap: 16px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 24px; }
.site-footer a { color: var(--muted); }
.site-footer .spacer { margin-left: auto; }
