/* PinKeep section styles.
   Scoped to /apps/pinkeep/ only. The PROMOTE pages each carry their own inline
   <style> block and are not affected by this file. */

:root {
  --bg: #f7fafa;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --line-soft: #ccfbf1;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --soft: #f0fdfa;
  --radius: 18px;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

.wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 24px 20px 40px;
}

a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  /* The support address is a single 35-character token. Without this it
     overflows the viewport on narrow phones (320px and below). */
  overflow-wrap: break-word;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

img {
  max-width: 100%;
  display: block;
}

/* Skip link: visible only when focused by keyboard. */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--card);
  padding: 10px 14px;
  border: 1px solid var(--accent);
  border-radius: 0 0 10px 0;
  z-index: 30;
}

.skip:focus {
  left: 0;
}

/* Header ------------------------------------------------------------------ */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--card);
}

.header-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 1.15rem;
  color: var(--text);
}

.brand:hover {
  text-decoration: none;
  color: var(--accent-dark);
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--muted);
  padding: 4px 0;
}

.site-nav a:hover {
  color: var(--accent-dark);
}

.site-nav a[aria-current="page"] {
  color: var(--accent-dark);
  border-bottom: 2px solid var(--accent);
}

/* Cards ------------------------------------------------------------------- */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: var(--shadow);
}

.card + .card {
  margin-top: 20px;
}

/* Landing hero ------------------------------------------------------------ */

.hero {
  text-align: left;
}

.hero-icon {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0 0 6px;
  font-size: 2.3rem;
  letter-spacing: -0.02em;
}

.tagline {
  margin: 0 0 18px;
  font-size: 1.18rem;
  color: var(--accent-dark);
  font-weight: 700;
}

.lead {
  font-size: 1.03rem;
  color: var(--muted);
  max-width: 62ch;
}

/* Typography -------------------------------------------------------------- */

h1 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 2rem;
  letter-spacing: -0.01em;
}

h2 {
  margin: 30px 0 10px;
  font-size: 1.2rem;
}

h3 {
  margin: 22px 0 8px;
  font-size: 1.03rem;
}

p {
  margin: 0 0 14px;
}

ul {
  margin: 0 0 14px;
  padding-left: 22px;
}

li {
  margin-bottom: 6px;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.92rem;
}

/* Feature list ------------------------------------------------------------ */

.features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.features li {
  background: var(--soft);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 0;
}

.features strong {
  display: block;
  margin-bottom: 4px;
}

.features span {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Callout ----------------------------------------------------------------- */

.callout {
  background: var(--soft);
  border: 1px solid var(--line-soft);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 20px 0;
}

.callout p:last-child {
  margin-bottom: 0;
}

/* Link rows --------------------------------------------------------------- */

.linkrow {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid var(--accent);
  min-height: 44px;
  line-height: 20px;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.btn-ghost {
  background: var(--card);
  color: var(--accent-dark);
}

.btn-ghost:hover {
  background: var(--soft);
}

/* Contact block ----------------------------------------------------------- */

.contact {
  margin: 0;
}

.contact dt {
  font-weight: 700;
  margin-top: 10px;
}

.contact dd {
  margin: 2px 0 0;
  color: var(--muted);
}

/* Footer ------------------------------------------------------------------ */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--card);
  margin-top: 8px;
}

.footer-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 22px 20px 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

/* Responsive -------------------------------------------------------------- */

@media (max-width: 640px) {
  .header-inner,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .card {
    padding: 24px 18px;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  h1 {
    font-size: 1.7rem;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .linkrow .btn {
    width: 100%;
    text-align: center;
  }
}
