/* ============================================
   Alpine Dog Apps — shared stylesheet
   (matches the palette/fonts used on index.html)
   ============================================ */

:root {
  --bg: #F3F6F7;
  --surface: #FFFFFF;
  --ink: #16232B;
  --ink-muted: #5B6B74;
  --accent: #2E7D8C;
  --accent-soft: #CFE6E9;
  --line: #D7E1E3;

  --font-display: "Space Grotesk", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;

  --max-w: 920px;
}

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

html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

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

a { color: var(--accent); }
a:hover { color: #235f6b; }

a:focus-visible,
button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-soft);
  border-radius: 4px;
}

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

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px 28px 18px;
  gap: 16px;
}

.header-logo { justify-self: start; }

.header-logo img {
  height: 150px;
  width: auto;
  display: block;
}

.header-mark {
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.header-mark-icon {
  width: 78px;
  height: auto;
}

.header-mark-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  white-space: nowrap;
}

.nav-links {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
}

.nav-link:hover { color: var(--accent); }

.has-dropdown { position: relative; }

.contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-body);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.contact-label { color: var(--ink-muted); }

.caret {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--ink-muted);
  border-bottom: 1.5px solid var(--ink-muted);
  transform: rotate(45deg);
  margin-top: -2px;
  transition: transform 0.15s ease;
}

.has-dropdown[data-open="true"] .caret {
  transform: rotate(-135deg);
  margin-top: 2px;
}

.dropdown-menu {
  list-style: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  min-width: 180px;
  display: none;
  box-shadow: 0 10px 30px rgba(22, 35, 43, 0.12);
  text-align: left;
  z-index: 20;
}

.has-dropdown[data-open="true"] .dropdown-menu { display: block; }

.dropdown-menu li a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
}

.dropdown-menu .app-status {
  display: block;
  font-size: 12px;
  color: var(--ink-muted);
}

.dropdown-menu li a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

@media (hover: hover) {
  .has-dropdown:hover .dropdown-menu { display: block; }
  .has-dropdown:hover .caret { transform: rotate(-135deg); margin-top: 2px; }
}

/* ---------- Hero ---------- */

.hero { border-bottom: 1px solid var(--line); }

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px 56px;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 600;
  color: var(--accent);
  text-align: center;
  margin: 0 0 16px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 14px;
  white-space: nowrap;
}

.tagline {
  font-size: 18px;
  color: var(--ink-muted);
  margin: 0 0 28px;
}

.divider {
  width: 100%;
  max-width: 320px;
  margin: 0 0 28px;
}

.divider svg { width: 100%; display: block; }

.body-copy {
  font-size: 16px;
  color: var(--ink-muted);
  max-width: 56ch;
  margin: 0 0 32px;
}

.hero p.lede {
  font-size: 18px;
  color: var(--ink-muted);
  max-width: 48ch;
  margin: 0 0 28px;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #235f6b; color: #fff; }

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface);
}
.btn-ghost:hover { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---------- Sections ---------- */

section { padding: 56px 0; }
section.tight { padding: 40px 0; }

.section-head { margin-bottom: 32px; }

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: var(--ink);
}

.section-head p { color: var(--ink-muted); max-width: 60ch; margin: 0; }

hr.rule { border: none; border-top: 1px solid var(--line); margin: 0; }

/* ---------- App rows (home page teaser style, reused on app pages if needed) ---------- */

.app-row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.app-row + .app-row { margin-top: 14px; }

.app-row:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.app-mark { flex: none; width: 44px; height: 44px; }

.app-row h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  margin: 0 0 4px;
  color: var(--ink);
}

.app-row p { margin: 0; color: var(--ink-muted); max-width: 56ch; }

.app-row .status {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--accent);
}

/* ---------- Feature list ---------- */

.feature-list { list-style: none; }

.feature-list li {
  display: flex;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.feature-list li:first-child { border-top: none; }

.feature-mark { flex: none; width: 22px; height: 22px; margin-top: 3px; }

.feature-list h3 {
  font-size: 17px;
  margin: 0 0 4px;
  font-family: var(--font-body);
  font-weight: 600;
}

.feature-list p { margin: 0; color: var(--ink-muted); max-width: 58ch; }

/* ---------- Callout ---------- */

.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.callout h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  margin: 0 0 4px;
  color: var(--ink);
}

.callout p { margin: 0; color: var(--ink-muted); max-width: 40ch; }

.note { font-size: 13px; color: var(--ink-muted); margin-top: 10px; }

/* ---------- Screenshot pairs (before/after) ---------- */

.shot-pair {
  display: flex;
  gap: 18px;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin: 28px 0 10px;
}

.shot-pair img {
  width: clamp(130px, 26vw, 230px);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(22, 35, 43, 0.15);
  display: block;
}

.shot-caption {
  text-align: left;
  font-size: 13px;
  color: var(--ink-muted);
  margin: 0 0 8px;
}

.subhead {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  color: var(--ink);
  margin: 0 0 8px;
}

.section-copy {
  color: var(--ink-muted);
  max-width: 62ch;
  margin: 0 0 16px;
}

.page-links {
  font-size: 14px;
  color: var(--ink-muted);
  text-align: center;
}

.page-links a { color: var(--accent); }

.page-links .sep { margin: 0 10px; color: var(--line); }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding: 32px 0; }

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  color: var(--ink-muted);
  font-size: 13px;
}

.footer-inner a { color: var(--ink-muted); }
.footer-inner a:hover { color: var(--accent); }

/* ---------- Mobile ---------- */

@media (max-width: 640px) {
  .site-header-inner { padding: 14px 18px 14px; gap: 10px; }
  .header-logo img { height: 84px; }
  .header-mark-icon { width: 54px; }
  .header-mark-label { font-size: 9px; }
  .hero h1 { white-space: normal; }
  .hero-inner { padding: 36px 20px 40px; }
  .callout { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .header-mark-label { display: none; }
}
