/* East Data Systems Apps - apps.eastdata.tech
   Same look as eastdata.tech. Fonts are self-hosted (Barlow Condensed, IBM Plex Sans; SIL Open Font License). */

@font-face { font-family: "Barlow Condensed"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/barlow-condensed-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }

:root {
  --navy: #004c68;
  --navy-deep: #003a50;
  --sky: #74bacf;
  --sky-soft: #cfe8f0;
  --ink: #12303d;
  --muted: #476676;
  --mist: #f1f7fa;
  --line: #d6e5eb;
  --paper: #ffffff;

  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3, h4, p, ul, figure { margin: 0; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: var(--radius);
}
.skip:focus { top: 1rem; }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--navy); color: #fff;
  font: 600 1rem/1 var(--body);
  padding: .95rem 1.4rem;
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.btn-small { padding: .6rem 1rem; font-size: .95rem; }
.btn-soon, .btn-soon:hover { background: var(--mist); color: var(--muted); border-color: var(--line); cursor: default; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: .9rem; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; }
.nav a:not(.btn):hover { color: var(--navy); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; text-decoration-color: var(--sky); }

/* Hero */
.hero { padding-block: clamp(2.5rem, 7vw, 5rem) clamp(2rem, 5vw, 3.5rem); border-bottom: 1px solid var(--line); }
.kicker { font: 600 1.05rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hero h1 {
  margin-top: .9rem;
  max-width: 14ch;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(2.5rem, 6.4vw, 5rem);
  line-height: .95;
  color: var(--navy);
}
.lead { margin-top: 1.4rem; max-width: 38rem; font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.5; }

h2 { font-family: var(--display); font-weight: 600; font-size: clamp(2.1rem, 4.8vw, 3.4rem); line-height: 1.02; color: var(--navy); }

/* App */
.app { padding-block: clamp(3rem, 7vw, 5rem); }
.app-head { display: flex; align-items: center; gap: 1.25rem; }
.app-icon { width: clamp(72px, 10vw, 104px); height: auto; border-radius: 22%; }
.app-sub { margin-top: .35rem; color: var(--muted); font-size: 1.1rem; }
.app-intro { margin-top: 1.5rem; max-width: 44rem; }
.app-intro .credit { margin-top: .8rem; color: var(--muted); font-size: .98rem; }

.shots {
  list-style: none; padding: 0; margin-top: clamp(2rem, 4vw, 3rem);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(.75rem, 2vw, 1.5rem);
}
.shots img { border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(0, 58, 80, .1); }
figcaption { margin-top: .6rem; color: var(--muted); font-size: .95rem; text-align: center; }

.features { margin-top: clamp(2.5rem, 5vw, 3.5rem); display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 2.5rem; }
.features > div { padding-block: 1.25rem 1.6rem; border-top: 1px solid var(--line); }
.features h3 { font: 600 1.6rem/1.1 var(--display); color: var(--ink); }
.features p { margin-top: .45rem; color: var(--muted); }

.print { margin-top: clamp(1.5rem, 4vw, 2.5rem); max-width: 560px; }
.print img { border-radius: var(--radius); border: 1px solid var(--line); }
.print figcaption { text-align: left; }

.sub-title { margin-top: clamp(2.5rem, 5vw, 3.5rem); font: 600 clamp(1.8rem, 3.5vw, 2.4rem)/1.05 var(--display); color: var(--navy); }

.editions { margin-top: 1.25rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.edition {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 1.5rem 1.5rem 1.6rem; background: var(--mist);
  border: 1px solid var(--line); border-top: 3px solid var(--sky); border-radius: var(--radius);
}
.edition h4 { font: 600 1.6rem/1.1 var(--display); color: var(--ink); }
.price { margin-top: .2rem; font: 700 2.2rem/1.1 var(--display); color: var(--navy); }
.edition ul { margin: .9rem 0 1.4rem; padding-left: 1.2rem; color: var(--muted); flex: 1; }
.edition li + li { margin-top: .3rem; }

.docs { list-style: none; padding: 0; margin-top: 1.25rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.doc {
  display: flex; flex-direction: column; gap: .25rem; height: 100%;
  padding: 1.1rem 1.25rem; border: 1.5px solid var(--line); border-radius: var(--radius);
  text-decoration: none; transition: border-color .15s, background-color .15s;
}
.doc:hover { border-color: var(--navy); background: var(--mist); }
.doc-name { font: 600 1.45rem/1.1 var(--display); color: var(--navy); }
.doc-meta { color: var(--muted); font-size: .95rem; }

/* Custom apps */
.custom { background: var(--navy); color: #fff; padding-block: clamp(3rem, 7vw, 5rem); }
.custom h2 { color: #fff; }
.custom p { margin-top: .9rem; max-width: 40rem; color: var(--sky-soft); font-size: 1.15rem; }
.custom .btn { margin-top: 1.5rem; background: #fff; color: var(--navy); border-color: #fff; }
.custom .btn:hover { background: var(--sky-soft); border-color: var(--sky-soft); }

/* Footer */
.site-footer { padding-block: 1.75rem; font-size: .95rem; color: var(--muted); border-top: 1px solid var(--line); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.site-footer strong { color: var(--ink); }

/* Responsive */
@media (max-width: 960px) {
  .features { grid-template-columns: 1fr 1fr; }
  .docs { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .nav a:not(.btn) { display: none; }
  .brand img { height: 40px; }
  .shots { grid-template-columns: 1fr 1fr; }
  .editions { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
