/* Jackdaw Atlas — marketing site
   Palette mirrors the iOS app: ink / parchment / brass / sea teal */

:root {
  --ink: #12100c;
  --ink-raised: #1c1913;
  --ink-edge: #2e291f;
  --parchment: #e8dcc0;
  --parchment-dim: #a99f83;
  --brass: #c9a227;
  --brass-bright: #e5c558;
  --sea-teal: #1e6e6b;
  --sea-teal-deep: #0e3a38;
  --blood-red: #8e2f23;
  --found-green: #7a9a4e;
  --radius: 14px;
  --max: 1080px;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--parchment);
  background:
    radial-gradient(ellipse 90% 50% at 50% -10%, rgba(30, 110, 107, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgba(201, 162, 39, 0.08), transparent 50%),
    var(--ink);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--brass-bright);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--parchment);
}

/* —— Layout —— */

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* —— Header —— */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(18, 16, 12, 0.82);
  border-bottom: 1px solid rgba(46, 41, 31, 0.9);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  padding-block: 0.65rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--parchment);
  text-decoration: none;
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand:hover {
  color: var(--brass-bright);
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.35);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.1rem;
  font-size: 0.92rem;
}

.nav a {
  color: var(--parchment-dim);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--parchment);
}

.nav .btn {
  margin-left: 0.25rem;
}

/* —— Buttons —— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.72rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(180deg, var(--brass-bright), var(--brass));
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(201, 162, 39, 0.22);
}

.btn-primary:hover {
  color: var(--ink);
  filter: brightness(1.05);
}

.btn-ghost {
  background: transparent;
  color: var(--parchment);
  border-color: var(--ink-edge);
}

.btn-ghost:hover {
  border-color: var(--brass);
  color: var(--brass-bright);
}

/* —— Hero —— */

.hero {
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--ink-edge);
  background: rgba(28, 25, 19, 0.7);
  color: var(--parchment-dim);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sea-teal);
  box-shadow: 0 0 10px var(--sea-teal);
}

.hero-icon {
  width: 112px;
  height: 112px;
  margin: 0 auto 1.4rem;
  border-radius: 26px;
  box-shadow:
    0 0 0 1px rgba(201, 162, 39, 0.4),
    0 18px 50px rgba(0, 0, 0, 0.45);
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--parchment);
}

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

.hero .lede {
  max-width: 36rem;
  margin: 0 auto 1.75rem;
  color: var(--parchment-dim);
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.25rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  color: var(--parchment-dim);
  font-size: 0.9rem;
}

.hero-meta strong {
  color: var(--parchment);
  font-weight: 600;
}

/* —— Sections —— */

section {
  padding: 2.75rem 0;
}

.section-label {
  margin: 0 0 0.5rem;
  color: var(--brass);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-title {
  margin: 0 0 0.65rem;
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 3.2vw, 2rem);
  line-height: 1.2;
  color: var(--parchment);
}

.section-intro {
  max-width: 38rem;
  margin: 0 0 1.75rem;
  color: var(--parchment-dim);
}

/* —— Feature grid —— */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.card {
  padding: 1.35rem 1.3rem 1.45rem;
  border-radius: var(--radius);
  border: 1px solid var(--ink-edge);
  background:
    linear-gradient(160deg, rgba(30, 110, 107, 0.08), transparent 45%),
    var(--ink-raised);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 0.9rem;
  border-radius: 10px;
  background: rgba(201, 162, 39, 0.12);
  color: var(--brass-bright);
  font-size: 1.15rem;
}

.card h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--parchment);
}

.card p {
  margin: 0;
  color: var(--parchment-dim);
  font-size: 0.95rem;
}

/* —— Highlight strip —— */

.strip {
  margin: 1rem 0 0;
  padding: 1.6rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid rgba(30, 110, 107, 0.45);
  background:
    linear-gradient(120deg, rgba(14, 58, 56, 0.65), rgba(28, 25, 19, 0.9));
}

.strip ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

@media (min-width: 720px) {
  .strip ul {
    grid-template-columns: 1fr 1fr;
  }
}

.strip li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  color: var(--parchment-dim);
  font-size: 0.95rem;
}

.strip li::before {
  content: "✓";
  flex-shrink: 0;
  color: var(--found-green);
  font-weight: 700;
}

/* —— CTA band —— */

.cta {
  margin: 1.5rem 0 0.5rem;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid rgba(201, 162, 39, 0.35);
  background:
    radial-gradient(ellipse 80% 100% at 0% 50%, rgba(201, 162, 39, 0.12), transparent 55%),
    var(--ink-raised);
  text-align: center;
}

.cta h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
}

.cta p {
  margin: 0 auto 1.25rem;
  max-width: 32rem;
  color: var(--parchment-dim);
}

/* —— Legal / prose pages —— */

.page-hero {
  padding: 2.75rem 0 1.25rem;
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  line-height: 1.15;
}

.page-hero .lede {
  margin: 0;
  max-width: 40rem;
  color: var(--parchment-dim);
}

.prose {
  padding: 0.5rem 0 3rem;
}

.prose article {
  max-width: 42rem;
}

.prose h2 {
  margin: 2rem 0 0.65rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--parchment);
}

.prose h3 {
  margin: 1.35rem 0 0.45rem;
  font-size: 1.05rem;
  color: var(--brass-bright);
}

.prose p,
.prose li {
  color: var(--parchment-dim);
}

.prose p {
  margin: 0 0 1rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1.1rem;
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose .meta {
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--parchment-dim);
}

.contact-card {
  margin-top: 1.5rem;
  padding: 1.25rem 1.3rem;
  border-radius: var(--radius);
  border: 1px solid var(--ink-edge);
  background: var(--ink-raised);
}

.contact-card h2 {
  margin-top: 0;
}

.contact-card p:last-child {
  margin-bottom: 0;
}

/* —— Footer —— */

.site-footer {
  margin-top: 1rem;
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--ink-edge);
  color: var(--parchment-dim);
  font-size: 0.88rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
}

.site-footer a {
  color: var(--parchment-dim);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--brass-bright);
}

.disclaimer {
  max-width: 36rem;
  margin: 0.75rem 0 0;
  line-height: 1.5;
}

/* —— Utilities —— */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 560px) {
  .nav .hide-sm {
    display: none;
  }
}
