/* ARrayVue site styles */

/* Open Sans, served from this site (no Google Fonts request). Variable font: weights 300-800.
   Licence: SIL Open Font License 1.1, see /assets/fonts/OFL.txt */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("/assets/fonts/open-sans-latin-wght-normal.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 {
  --navy: #223247;
  --navy-deep: #172334;
  --blue: #00ccff;         /* brand accent: use on dark backgrounds */
  --blue-ink: #0a6fa8;     /* accessible blue for text and links on white */
  --sun: #f4b400;
  --text: #1d2733;
  --muted: #5a6675;
  --line: #dde3ea;
  --soft: #f3f6f9;
  --white: #ffffff;
  --success-bg: #e7f6ec;
  --success-ink: #1d6b38;
  --error-bg: #fdecec;
  --error-ink: #a42323;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(23, 35, 52, 0.10);
  --container: 1160px;
  --font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue-ink); text-underline-offset: 0.15em; }
a:hover { color: var(--navy); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

h1, h2, h3, h4 { line-height: 1.2; color: var(--navy); margin: 0 0 0.6em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3, .h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }

.visually-hidden, .hp {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy); color: var(--white); padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 10px; top: 10px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 16px; }
.brand img { width: 160px; height: auto; }
.site-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: 8px 14px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; color: var(--navy); text-decoration: none;
}
.site-nav a:hover { background: var(--soft); }
.site-nav a[aria-current="page"] { background: var(--navy); color: var(--white); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--white); cursor: pointer; position: relative;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  position: absolute; left: 11px; width: 20px; height: 2px; background: var(--navy); content: ""; transition: transform 0.2s;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { left: 0; top: -6px; }
.nav-toggle-bar::after { left: 0; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; padding: 10px 20px 18px; }
  .site-nav a { padding: 12px 14px; }
  .js .site-nav:not(.is-open) { display: none; }
}
/* Without JavaScript the menu stays visible on small screens. */
@media (max-width: 860px) { html:not(.js) .site-nav { display: block; position: static; box-shadow: none; border: 0; } html:not(.js) .nav-toggle { display: none; } html:not(.js) .header-inner { flex-wrap: wrap; } }

/* Buttons */
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.5em 0; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 0.98rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.button--primary { background: var(--blue); color: var(--navy-deep); }
.button--primary:hover { background: #33d6ff; color: var(--navy-deep); }
.button--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.button--ghost:hover { background: var(--navy); color: var(--white); }
.button--outline-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.6); }
.button--outline-light:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.button--large { padding: 14px 30px; font-size: 1.05rem; }
.file-meta { font-weight: 400; opacity: 0.8; }

/* Labels */
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; font-weight: 700;
  color: var(--blue-ink); margin-bottom: 0.6em;
}
.eyebrow--light { color: var(--blue); }
.lead { font-size: 1.2rem; color: var(--muted); }
.small { font-size: 0.9rem; opacity: 0.85; }

/* Sections */
.section { padding: 80px 0; }
.section--soft { background: var(--soft); }
.section--navy { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); color: #e6edf5; }
.section--navy h2, .section--navy h3, .section--navy strong { color: var(--white); }
.section--navy a:not(.button) { color: var(--blue); }

.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.split--top { align-items: start; }

/* Home hero */
.hero { padding: 56px 0 40px; background: var(--white); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.hero h1 { margin-bottom: 0.15em; }
.hero-tagline { font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 600; color: var(--blue-ink); margin-bottom: 0.8em; }
.hero-media img { width: 100%; max-width: 440px; margin-left: auto; }

/* Inner-page hero */
.page-hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); color: #e6edf5; padding: 64px 0; }
.page-hero h1, .page-hero h2 { color: var(--white); }
.page-hero .hero-tagline { color: var(--blue); }
.page-hero--compact { padding: 48px 0 40px; }
.page-hero--compact h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0; }

/* Phone mock-up for the app artwork */
.phone-frame {
  justify-self: center; width: min(300px, 80%);
  padding: 12px; border-radius: 42px; background: #0d1520;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
}
.phone-frame img { width: 100%; border-radius: 32px; }

/* Feature cards */
.feature-grid { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px 22px 58px; position: relative; color: var(--muted);
}
.feature-card::before {
  content: ""; position: absolute; left: 20px; top: 24px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6 11-11-1.4-1.4z' fill='%23172334'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.feature-card strong { display: block; color: var(--navy); font-size: 1.08rem; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }

.check-list { list-style: none; padding: 0; margin: 1.2em 0; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 0.7em; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.35em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6 11-11-1.4-1.4z' fill='%23172334'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.requirements dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; margin: 0; }
.requirements dt { font-weight: 700; color: var(--navy); }
.requirements dd { margin: 0; }

.link-list { padding-left: 1.2em; }
.link-list li { margin-bottom: 0.5em; }
.email-link { font-weight: 700; font-size: 1.1rem; word-break: break-all; }

/* Notices */
.notice { border-radius: var(--radius); padding: 16px 20px; margin: 20px 0; }
.notice p { margin: 0; }
.notice--success { background: var(--success-bg); color: var(--success-ink); }
.notice--error { background: var(--error-bg); color: var(--error-ink); }

/* Form */
.signup-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.form-note { color: var(--muted); font-size: 0.95rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin-bottom: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .field .label, .field legend { font-weight: 600; color: var(--navy); font-size: 0.97rem; }
.req { color: var(--error-ink); }
.optional { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%; font: inherit; color: var(--text); padding: 11px 14px;
  border: 1px solid #b9c3cf; border-radius: 8px; background: var(--white);
}
textarea { resize: vertical; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--error-ink); }
.field-error { color: var(--error-ink); font-size: 0.9rem; margin: 0; }
fieldset.choices { border: 0; padding: 0; margin: 0; }
.choices legend { margin-bottom: 6px; padding: 0; }
.choice { display: inline-flex; align-items: center; gap: 8px; margin-right: 20px; font-weight: 400 !important; color: var(--text) !important; }
.choice input { width: 18px; height: 18px; accent-color: var(--navy); }

/* Legal pages */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.45rem; margin-top: 1.8em; }
.legal h3 { font-size: 1.15rem; margin-top: 1.5em; }
.legal h4 { font-size: 1.02rem; margin-top: 1.3em; }
.legal ul, .legal ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.legal li { margin-bottom: 0.45em; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #c2cddb; padding: 56px 0 24px; }
.site-footer a { color: #e6edf5; text-decoration: none; }
.site-footer a:hover { color: var(--blue); }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-name { font-size: 1.4rem; font-weight: 800; color: var(--white); margin-bottom: 0.2em; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 40px; }
.footer-nav li { margin-bottom: 0.6em; break-inside: avoid; }
.social { list-style: none; display: flex; gap: 10px; padding: 0; margin: 1em 0 0; }
.social a {
  display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: var(--white);
}
.social a:hover { background: var(--blue); color: var(--navy-deep); }
.social svg { width: 18px; height: 18px; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 36px; padding-top: 20px; font-size: 0.9rem; }
.footer-legal p { margin: 0; }

/* 404 */
.not-found { text-align: center; padding: 100px 0; }
.not-found .button-row { justify-content: center; }

/* Responsive */
@media (max-width: 960px) {
  .feature-grid, .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .section { padding: 56px 0; }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 32px; }
  .hero-media img { max-width: 320px; margin: 0 auto; }
  .feature-grid, .card-grid, .form-grid { grid-template-columns: 1fr; }
  .signup-form { padding: 20px; }
  .footer-nav ul { columns: 1; }
  .brand img { width: 130px; }
}
