/* Past Perfect — shared design system (landing + support) */

/* Self-hosted fonts (no third-party requests) */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/fraunces-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/fraunces-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 650;
  font-display: swap;
  src: url("/fonts/source-sans-3-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 650;
  font-display: swap;
  src: url("/fonts/source-sans-3-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #1a1814;
  --ink-soft: #3d3830;
  --muted: #6b645a;
  --paper: #f3efe8;
  --paper-2: #ebe4d8;
  --surface: #fffcf7;
  --line: #d9d0c3;
  --accent: #2a5a45;
  --accent-hover: #1e4333;
  --accent-soft: rgba(42, 90, 69, 0.1);
  --shadow: 0 18px 50px rgba(26, 24, 20, 0.12);
  --radius: 14px;
  --max: 1080px;
  --narrow: 720px;
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --font-body: "Source Sans 3", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: light;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font: 17px/1.55 var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(42, 90, 69, 0.08), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(180, 120, 60, 0.07), transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent-hover); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: saturate(1.2) blur(12px);
  background: rgba(243, 239, 232, 0.86);
  border-bottom: 1px solid rgba(217, 208, 195, 0.7);
}

.site-header__inner,
.wrap,
.section-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

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

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle__bar {
  display: block;
  width: 1.15rem;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.site-header.is-nav-open .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.is-nav-open .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.site-header.is-nav-open .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
}

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

.nav-links .current {
  color: var(--ink);
  font-weight: 650;
}

@media (max-width: 759px) {
  .site-header__inner {
    flex-wrap: wrap;
    align-items: center;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .nav-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    margin-left: auto;
    align-self: center;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    padding: 0.35rem 0 0.55rem;
    border-top: 1px solid rgba(217, 208, 195, 0.7);
  }

  .site-header.is-nav-open .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 0.7rem 0.15rem;
    border-bottom: 1px solid rgba(217, 208, 195, 0.45);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  body.nav-open {
    overflow: hidden;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.78rem 1.25rem;
  border-radius: 10px;
  font-weight: 650;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--accent);
  color: #fff !important;
}

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

.btn-secondary {
  background: transparent;
  color: var(--ink) !important;
  border-color: var(--line);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Landing hero */
.hero {
  position: relative;
  padding: 2.5rem 0 1rem;
  overflow: clip;
}

.hero__grid {
  display: grid;
  gap: 2rem;
  align-items: end;
}

@media (min-width: 880px) {
  .hero__grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 2.5rem;
    align-items: center;
    min-height: min(78vh, 720px);
  }
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 0.85rem;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink-soft);
  margin: 0 0 0.85rem;
  max-width: 22ch;
}

.hero__lead {
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 36ch;
}

.hero__visual {
  margin: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.hero__visual img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(26, 24, 20, 0.16));
}

.proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.4rem;
  padding: 1.25rem 0 0.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.proof span::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 0.1em;
}

/* Sections */
.section {
  padding: 3.25rem 0;
}

.section--tight { padding: 2rem 0 3rem; }

.section__eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.7rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.85rem;
}

.section__text {
  margin: 0;
  color: var(--muted);
  max-width: 48ch;
}

.section__intro {
  max-width: 36rem;
  margin: 0 0 1.25rem;
}

.section__intro .section__title {
  max-width: 18ch;
}

.feature {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: 2.75rem 0;
  border: none;
}

.feature + .feature {
  border-top: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
}

@media (min-width: 820px) {
  .feature {
    grid-template-columns: 1fr 1.15fr;
    gap: 2.5rem;
  }
  .feature--flip { grid-template-columns: 1.15fr 1fr; }
  .feature--flip .feature__copy { order: 2; }
  .feature--flip .feature__media { order: 1; }
}

.feature__copy h3 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
}

.feature__copy p {
  margin: 0 0 0.85rem;
  color: var(--ink-soft);
}

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

.feature__media {
  margin: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.feature__media img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 28px rgba(26, 24, 20, 0.14));
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.5rem 1.35rem;
  box-shadow: 0 8px 24px rgba(26, 24, 20, 0.05);
}

.panel h2 {
  font-family: var(--font-display);
  margin: 0 0 0.55rem;
  font-size: 1.65rem;
}

.panel p { margin: 0 0 1rem; color: var(--ink-soft); }
.panel p:last-child { margin-bottom: 0; }

.download-block {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .download-block {
    grid-template-columns: 1.3fr 1fr;
    align-items: stretch;
  }
}

.download-col {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  min-height: 100%;
}

.download-col__copy {
  flex: 1 1 auto;
}

.download-col__copy p {
  margin: 0;
  color: var(--ink-soft);
}

.download-col__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.55rem;
}

.download-col .btn-row {
  margin-top: auto;
}

.download-col--panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.5rem 1.35rem;
  box-shadow: 0 8px 24px rgba(26, 24, 20, 0.05);
}

.download-col:not(.download-col--panel) {
  padding: 1.5rem 0;
}

@media (min-width: 720px) {
  .download-col:not(.download-col--panel) {
    padding: 1.5rem 1.35rem 1.5rem 0;
  }
}

.site-footer {
  margin-top: 2rem;
  padding: 2rem 0 2.75rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer__inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
}

.site-footer a { color: var(--accent); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* Support docs layout */
.docs {
  width: min(100% - 2rem, var(--narrow));
  margin: 0 auto;
  padding: 1.75rem 0 3.5rem;
}

.docs h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.docs .lead {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0 0 1.25rem;
}

.docs .platform-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.docs .platform-bar a { color: var(--accent); text-decoration: none; }
.docs .platform-bar a:hover { text-decoration: underline; }
.docs .platform-bar .current { color: var(--ink); font-weight: 650; }

.docs .toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin-bottom: 1.75rem;
}

.docs .toc strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.docs .toc a {
  display: block;
  padding: 0.2rem 0;
  color: var(--accent);
  text-decoration: none;
}

.docs .toc a:hover { text-decoration: underline; }

.docs h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  margin: 2.1rem 0 0.65rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  letter-spacing: -0.015em;
}

.docs h2:first-of-type { border-top: none; padding-top: 0; }

.docs h3 {
  font-size: 1.05rem;
  margin: 1.2rem 0 0.4rem;
  font-weight: 650;
}

.docs p { margin: 0 0 0.85rem; }
.docs ul { margin: 0 0 1rem; padding-left: 1.2em; }
.docs li { margin: 0 0 0.4rem; }
.docs dl { margin: 0; }
.docs dt { font-weight: 650; margin-top: 0.9rem; }
.docs dd { margin: 0.25rem 0 0; color: var(--ink-soft); }
.docs .meta { font-size: 0.9rem; color: var(--muted); margin: 0 0 1.25rem; }

.docs .card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}

.docs .app-preview,
.docs .preview-grid {
  margin: 0.85rem 0 1.25rem;
}

.docs .app-preview img {
  width: 100%;
  height: auto;
  background: transparent;
  filter: drop-shadow(0 10px 24px rgba(26, 24, 20, 0.12));
}

.docs .preview-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 560px) {
  .docs .preview-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .docs .preview-grid img { max-width: 280px; margin-inline: auto; }
}

.docs .cta {
  display: inline-flex;
  margin-top: 0.5rem;
  padding: 0.7rem 1.1rem;
  background: var(--accent);
  color: #fff !important;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 650;
}

.docs .cta:hover { background: var(--accent-hover); }
.docs .cta-note { margin: 0.65rem 0 0; font-size: 0.88rem; color: var(--muted); }
.docs .footer { margin-top: 2.25rem; font-size: 0.9rem; color: var(--muted); }
.docs .platform-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}
.docs .platform-bar a { color: var(--accent); text-decoration: none; }
.docs .platform-bar a:hover { text-decoration: underline; }
.docs .platform-bar .current { color: var(--ink); font-weight: 650; }
.docs code {
  font-size: 0.9em;
  background: rgba(26, 24, 20, 0.05);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

/* Motion */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.hero__copy,
.hero__visual,
.feature__copy,
.feature__media {
  animation: rise 0.7s ease both;
}

.hero__visual { animation-delay: 0.12s; }
.feature:nth-of-type(2) .feature__media,
.feature:nth-of-type(2) .feature__copy { animation-delay: 0.05s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__copy,
  .hero__visual,
  .feature__copy,
  .feature__media {
    animation: none;
  }
}


@media (max-width: 640px) {
  .hero { padding-top: 1.5rem; }
}
