/* ============================================================
   Asset Ranch — design tokens
   ============================================================ */
:root {
  --cream:        #dad7cd;
  --sage:         #a3b18a;
  --green-mid:    #588157;
  --green-dark:   #3a5a40;
  --green-deep:   #344e41;

  --ink:          #223228;   /* near-black green for body text */
  --paper:        #f2f1ea;   /* lighter than cream, for cards on cream bg */

  --display: "Fraunces", "Iowan Old Style", ui-serif, Georgia, serif;
  --body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius: 6px;
  --tag-notch: 22px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--green-deep);
  line-height: 1.08;
  margin: 0 0 0.5em;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 4.6vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-mid);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 1em;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1.5px;
  background: var(--green-mid);
  display: inline-block;
}

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

section { padding: 88px 0; }
@media (max-width: 700px) {
  section { padding: 56px 0; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:focus-visible {
  outline: 3px solid var(--green-mid);
  outline-offset: 2px;
}
.btn-primary {
  background: var(--green-dark);
  color: var(--paper);
}
.btn-primary:hover { background: var(--green-deep); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--green-deep);
  border-color: var(--green-deep);
}
.btn-ghost:hover { background: rgba(52, 78, 65, 0.06); }

.btn-on-dark {
  background: var(--sage);
  color: var(--green-deep);
}
.btn-on-dark:hover { background: #b7c39d; }

/* ============================================================
   Nav
   ============================================================ */
header.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(218, 215, 205, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(52, 78, 65, 0.15);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--green-deep);
  text-decoration: none;
}
.logo svg { width: 30px; height: 30px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--green-deep);
  opacity: 0.8;
}
.nav-links a:hover { opacity: 1; }
.nav-links a.active { opacity: 1; border-bottom: 2px solid var(--green-mid); padding-bottom: 3px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle svg { width: 26px; height: 26px; color: var(--green-deep); }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid rgba(52,78,65,0.15);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 28px; width: 100%; }
  .nav-links .btn { margin: 14px 28px; }
}

/* ============================================================
   Signature component: the asset tag
   A die-cut card with a punched hole + string loop, used for
   device records, feature blocks, and highlights throughout.
   ============================================================ */
.tag {
  --tag-bg: var(--paper);
  position: relative;
  background: var(--tag-bg);
  border: 1.5px solid var(--green-deep);
  border-radius: var(--radius);
  padding: 28px 26px 26px calc(26px + var(--tag-notch));
  box-shadow: 3px 4px 0 rgba(52, 78, 65, 0.18);
}
.tag::before {
  /* the punched hole */
  content: "";
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cream);
  border: 1.5px solid var(--green-deep);
}
.tag::after {
  /* perforation line suggesting a tear-tab edge */
  content: "";
  position: absolute;
  left: 34px;
  top: 8px;
  bottom: 8px;
  width: 0;
  border-left: 1.5px dashed rgba(52, 78, 65, 0.35);
}
.tag h3 { margin-bottom: 0.4em; }
.tag .tag-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-mid);
  display: block;
  margin-bottom: 0.6em;
}
.tag p:last-child { margin-bottom: 0; }
.tag p { color: var(--ink); opacity: 0.85; font-size: 0.96rem; }

.tag-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.tag-grid a { display: block; transition: transform 0.15s ease; }
.tag-grid a:hover { transform: translateY(-3px); }
.tag-grid a:hover .tag { box-shadow: 4px 6px 0 rgba(52, 78, 65, 0.22); }
@media (max-width: 860px) {
  .tag-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .tag-grid { grid-template-columns: 1fr; }
}

/* device record tag used in hero mockup */
.device-tag {
  background: var(--paper);
}
.device-tag .row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(52,78,65,0.12);
  font-size: 0.86rem;
}
.device-tag .row:last-child { border-bottom: none; }
.device-tag .row .k { color: var(--green-mid); font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; }
.device-tag .row .v { font-family: var(--mono); font-weight: 500; text-align: right; }
.device-tag .status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--green-mid);
  margin-top: 10px;
}
.device-tag .status::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green-mid);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: 90px 0 60px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
}
.hero p.lede {
  font-size: 1.12rem;
  max-width: 46ch;
  opacity: 0.88;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

.hero-visual { position: relative; }
.hero-visual .tag { max-width: 340px; margin-left: auto; }
.hero-visual .string {
  position: absolute;
  left: 24px;
  top: -34px;
  width: 2px;
  height: 34px;
  background: var(--green-dark);
}
.hero-visual .loop {
  position: absolute;
  left: 15px;
  top: -46px;
  width: 20px;
  height: 20px;
  border: 2px solid var(--green-dark);
  border-radius: 50%;
  background: transparent;
}

/* ============================================================
   Dark section
   ============================================================ */
.section-dark {
  background: var(--green-deep);
  color: var(--paper);
}
.section-dark h2, .section-dark h3 { color: var(--paper); }
.section-dark .eyebrow { color: var(--sage); }
.section-dark .eyebrow::before { background: var(--sage); }
.section-dark .tag {
  --tag-bg: rgba(242, 241, 234, 0.06);
  border-color: rgba(242, 241, 234, 0.35);
  box-shadow: 3px 4px 0 rgba(0,0,0,0.2);
}
.section-dark .tag::before { background: var(--green-deep); border-color: rgba(242,241,234,0.5); }
.section-dark .tag::after { border-left-color: rgba(242,241,234,0.25); }
.section-dark .tag p { color: var(--paper); opacity: 0.8; }
.section-dark .tag-label { color: var(--sage); }

/* ============================================================
   Generic page header (for product / privacy / contact)
   ============================================================ */
.page-header {
  padding: 64px 0 40px;
  border-bottom: 1px solid rgba(52,78,65,0.15);
}
.page-header p.lede { max-width: 60ch; font-size: 1.05rem; opacity: 0.85; }

/* ============================================================
   Numbered steps (real sequence — install → connect → search)
   ============================================================ */
.steps {
  display: grid;
  gap: 18px;
}
.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(52,78,65,0.15);
}
.step:last-child { border-bottom: none; }
.step .num {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--green-mid);
  border: 1.5px solid var(--green-mid);
  border-radius: 50%;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { margin-bottom: 4px; }
.step p { margin-bottom: 0; opacity: 0.85; }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band {
  background: var(--sage);
  text-align: center;
  padding: 70px 0;
}
.cta-band h2 { margin-bottom: 0.3em; }
.cta-band p { max-width: 50ch; margin: 0 auto 1.6em; opacity: 0.85; }

/* ============================================================
   Footer
   ============================================================ */
footer.site-footer {
  background: var(--green-deep);
  color: var(--paper);
  padding: 48px 0 30px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(242,241,234,0.15);
}
footer .logo { color: var(--paper); }
.footer-links { display: flex; gap: 26px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: var(--paper); opacity: 0.75; font-size: 0.92rem; }
.footer-links a:hover { opacity: 1; }
.footer-bottom {
  padding-top: 20px;
  font-family: var(--mono);
  font-size: 0.76rem;
  opacity: 0.6;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ============================================================
   Forms (contact page)
   ============================================================ */
.form-tag {
  max-width: 560px;
}
label {
  display: block;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 6px;
  margin-top: 18px;
}
label:first-of-type { margin-top: 0; }
input, textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 0.98rem;
  padding: 11px 13px;
  border: 1.5px solid var(--sage);
  border-radius: 5px;
  background: var(--cream);
  color: var(--ink);
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--green-dark);
}
textarea { resize: vertical; min-height: 130px; }
.form-note {
  font-size: 0.82rem;
  opacity: 0.7;
  margin-top: 14px;
}
#form-status {
  margin-top: 14px;
  font-size: 0.9rem;
  display: none;
}
#form-status.show { display: block; }

/* ============================================================
   Privacy policy typography
   ============================================================ */
.policy {
  max-width: 74ch;
}
.policy h2 { margin-top: 1.6em; }
.policy ul { padding-left: 1.2em; }
.policy li { margin-bottom: 0.5em; }
.policy .updated {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--green-mid);
}
