:root {
  color-scheme: light;
  --ink: #173f36;
  --ink-deep: #0d2d27;
  --cream: #f7f1e7;
  --paper: #fffdf8;
  --tan: #bd7b35;
  --line: #d9d5ca;
  --muted: #5f6964;
  --blue: #17243a;
  --shadow: 0 18px 50px rgba(13, 45, 39, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink-deep);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a { color: inherit; }
.site-header, main, footer { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  border-bottom: 1px solid rgba(23, 63, 54, 0.18);
}

.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; text-decoration: none; }
.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  background: var(--ink);
  color: var(--cream);
  font-family: Georgia, serif;
  font-size: 22px;
}

nav { display: flex; gap: 24px; }
nav a, .footer-links a { text-decoration: none; font-weight: 650; }
nav a:hover, .footer-links a:hover, .text-link:hover, .detail-links a:hover, .hero-link:hover { text-decoration: underline; }

.hero { max-width: 900px; padding: 108px 0 90px; }
.eyebrow, .app-label {
  margin: 0 0 12px;
  color: var(--tan);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; line-height: 1.08; }
h1 { max-width: 850px; font-size: clamp(3rem, 7vw, 6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(2rem, 4vw, 3rem); }

.lede { max-width: 720px; margin: 30px 0 0; color: var(--muted); font-size: clamp(1.1rem, 2vw, 1.35rem); }
.hero-link { display: inline-block; margin-top: 32px; color: var(--ink); font-weight: 800; text-decoration: none; }

.apps-section { padding: 12px 0 92px; }
.section-heading { margin-bottom: 36px; }
.app-grid { display: grid; gap: 24px; }

.app-card {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 40px;
  align-items: center;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.pipe-card { border-top: 5px solid var(--blue); }
.saw-card { border-top: 5px solid var(--ink); }
.app-icon { width: 100%; height: auto; border-radius: 34px; box-shadow: 0 10px 30px rgba(13, 45, 39, 0.15); }
.app-card p:not(.app-label) { max-width: 680px; color: var(--muted); font-size: 1.08rem; }
.store-actions, .detail-links { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.store-actions { margin-top: 24px; }
.detail-links { margin-top: 18px; gap: 22px; }
.detail-links a, .text-link { font-weight: 750; }

.button {
  display: inline-block;
  padding: 11px 18px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--ink);
  color: white;
  font-weight: 750;
  text-decoration: none;
}
.button:hover { background: var(--ink-deep); }
.button-secondary { background: transparent; color: var(--ink); }
.button-secondary:hover { background: rgba(23, 63, 54, 0.08); }

.future-card { margin-top: 24px; padding: 30px 34px; border: 1px dashed rgba(23, 63, 54, 0.35); border-radius: 20px; }
.future-card p:last-child { max-width: 760px; margin-bottom: 0; }
.company-section { max-width: 820px; padding: 76px 0 104px; border-top: 1px solid rgba(23, 63, 54, 0.18); }
.company-section p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }

.content-page { max-width: 850px; padding: 78px 0 110px; }
.content-page h1 { font-size: clamp(2.7rem, 6vw, 4.8rem); }
.content-page h2 { margin-top: 48px; font-size: 1.7rem; }
.content-page h3 { margin-top: 28px; font-size: 1.25rem; }
.content-page p, .content-page li { color: #36443f; }
.content-page .updated { color: var(--muted); font-size: 0.92rem; }
.content-page .app-heading { display: flex; align-items: center; gap: 22px; }
.content-page .app-heading img { width: 92px; height: 92px; object-fit: cover; border-radius: 21px; }
.notice { margin: 36px 0; padding: 22px 24px; border-left: 4px solid var(--tan); background: var(--paper); }
.support-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 34px; }
.support-card { padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.support-card h2 { margin-top: 0; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 42px;
  border-top: 1px solid rgba(23, 63, 54, 0.18);
  color: var(--muted);
  font-size: 0.92rem;
}
footer div { display: grid; gap: 2px; }
.footer-links { display: flex; gap: 20px; }

@media (max-width: 680px) {
  .site-header { min-height: 72px; }
  nav { gap: 13px; font-size: 0.92rem; }
  .hero { padding: 72px 0 64px; }
  .app-card { grid-template-columns: 1fr; padding: 27px; }
  .app-icon { width: 112px; border-radius: 25px; }
  .support-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; }
  .content-page .app-heading { align-items: flex-start; }
}
