/* Stamp Mill Software: stamp-ink blue on mill paper */
:root {
  --paper: #f4f5f7;
  --rule: #d9dde5;
  --ink: #1b2230;
  --muted: #5a6273;
  --stamp: #2b4fb3;        /* accent: rubber-stamp ink */
  --stamp-pale: #b9c6ea;
  --measure: 66ch;
  --head: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); }

a { color: var(--ink); text-decoration-color: var(--stamp-pale); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { text-decoration-color: var(--stamp); }
a:focus-visible { outline: 3px solid var(--stamp); outline-offset: 3px; border-radius: 3px; }

.wrap { width: min(1060px, 100% - 3rem); margin-inline: auto; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-block: 1rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; font: 700 1.2rem/1 var(--head); letter-spacing: -0.01em; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand span { font-weight: 400; color: var(--muted); }
.site-nav { display: flex; gap: 0.5rem 1.6rem; flex-wrap: wrap; font-weight: 700; font-size: 0.98rem; }
.site-nav a { text-decoration: none; padding-block: 0.25rem; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--stamp-pale); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--stamp); }

/* Mark */
.mark .frame { fill: none; stroke: currentColor; stroke-width: 3; }
.mark .stem { stroke: currentColor; stroke-width: 3; }
.mark .shoe { fill: var(--stamp); }

/* Hero */
.hero { border-bottom: 1px solid var(--rule); }
.hero .wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: 3rem; align-items: center; padding-block: 5rem 4.5rem; }
.hero h1 { font: 700 clamp(2.3rem, 5vw, 3.6rem)/1.05 var(--head); letter-spacing: -0.02em; margin: 0 0 1.2rem; }
.hero p { font-size: 1.18rem; color: #39404f; margin: 0; max-width: 44ch; }

/* The battery: the one memorable thing */
.battery { width: 100%; max-width: 380px; justify-self: end; color: var(--ink); }
.battery .beam { fill: none; stroke: currentColor; stroke-width: 4; }
.battery .stamp line { stroke: currentColor; stroke-width: 4; }
.battery .stamp rect { fill: var(--stamp); }
.battery .bed { fill: var(--stamp-pale); }
@media (prefers-reduced-motion: no-preference) {
  .battery .stamp { animation: drop 0.5s cubic-bezier(.6,0,.4,1) both; }
  .battery .stamp:nth-child(2) { animation-delay: 0.12s; }
  .battery .stamp:nth-child(3) { animation-delay: 0.24s; }
  .battery .stamp:nth-child(4) { animation-delay: 0.36s; }
  .battery .stamp:nth-child(5) { animation-delay: 0.48s; }
  @keyframes drop { from { transform: translateY(-34px); } to { transform: translateY(0); } }
}

/* Sections */
main section { padding-block: 4rem; }
main section + section { border-top: 1px solid var(--rule); }
h2 { font: 700 clamp(1.6rem, 3vw, 2.1rem)/1.15 var(--head); letter-spacing: -0.015em; margin: 0 0 1.5rem; }
h3 { font: 700 1.12rem/1.3 var(--head); margin: 0 0 0.45rem; }
p { max-width: var(--measure); }

.app-list { list-style: none; padding: 0; margin: 0; }
.app-card { display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; align-items: center; padding: 1.5rem; border: 2px solid var(--ink); border-radius: 6px; text-decoration: none; background: #fff; }
.app-card:hover { border-color: var(--stamp); }
.app-card img { border-radius: 16px; }
.app-card strong { display: block; font: 700 1.3rem/1.2 var(--head); }
.app-card .tag { display: block; color: var(--muted); }
.app-card .status { font-weight: 700; color: var(--stamp); white-space: nowrap; }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.principles > div { border-top: 3px solid var(--stamp); padding-top: 1rem; }
.principles p { margin: 0; }

.contact dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.6rem 2rem; margin: 0; }
.contact dt { color: var(--muted); }
.contact dd { margin: 0; }
.contact > .wrap > p { margin-top: 0; }

/* Inner pages */
.page-head { padding-block: 4rem 2.5rem; border-bottom: 1px solid var(--rule); }
.page-head h1 { font: 700 clamp(2.2rem, 4.5vw, 3.2rem)/1.08 var(--head); letter-spacing: -0.02em; margin: 0 0 0.8rem; }
.page-head p { font-size: 1.12rem; margin: 0; color: #39404f; }
.app-head .wrap { display: flex; gap: 1.75rem; align-items: center; }
.app-icon { border-radius: 22px; flex: none; }
.slogan { font: 400 1.4rem/1.3 var(--head) !important; color: var(--ink) !important; margin: 0 0 0.35rem !important; }
.status-line { margin-top: 0.75rem !important; font-weight: 700; color: var(--stamp) !important; }
.app-intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: start; }
.phones { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.phones img { width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--rule); }

.policy { max-width: var(--measure); }
.policy h2 { font-size: 1.45rem; margin: 2.4rem 0 0.7rem; }
.policy ul { padding-left: 1.2rem; }
.effective { color: var(--muted); font-size: 0.95rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding-block: 2.25rem; font-size: 0.92rem; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 1rem 1.5rem; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

@media (max-width: 760px) {
  .hero .wrap, .principles, .app-intro { grid-template-columns: 1fr; }
  .hero .wrap { padding-block: 3.5rem; gap: 2rem; }
  .battery { justify-self: start; max-width: 260px; }
  .app-card { grid-template-columns: auto 1fr; }
  .app-card .status { grid-column: 2; }
  .app-head .wrap { align-items: flex-start; }
  main section { padding-block: 3rem; }
}
