/* APHD Technologies & Solutions — corporate trust design system.
   Navy authority + brass accent. Fraunces display / Schibsted Grotesk body.
   Trust-first: restrained motion, hairline structure, high contrast. */
:root {
  --ink: #16283C;
  --navy: #14273D;
  --navy-deep: #0E1D2F;
  --muted: #55617A;
  --line: #E3E6EA;
  --bg: #FFFFFF;
  --bg-alt: #F4F6F8;
  --paper: #F5F1E8;
  --brass: #B45309;
  --brass-deep: #93420A;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Schibsted Grotesk", -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  color: var(--ink); background: var(--bg);
  line-height: 1.65; -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 22px; }
h1, h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 640; font-variation-settings: "opsz" 60;
  line-height: 1.14; letter-spacing: -0.015em; color: var(--navy);
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h1 em, h2 em { font-style: italic; font-weight: 560; }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); margin-bottom: 10px; }
h3 { font-size: 1.06rem; color: var(--navy); }
p { color: var(--muted); }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; border-radius: 2px; }
.section-sub { max-width: 58ch; margin-bottom: 36px; }
.muted { color: var(--muted); font-weight: 400; }
.section { padding: 76px 0; }
.section.alt, .product, .why { background: var(--bg-alt); }
.sec-head { margin-bottom: 8px; }

/* buttons — solid navy, no gradients */
.btn {
  display: inline-block; background: var(--navy); color: #fff !important;
  padding: 13px 24px; border-radius: 8px; font-weight: 700; font-size: .97rem;
  border: 1.5px solid var(--navy); cursor: pointer; font-family: inherit;
  transition: background .18s ease, border-color .18s ease;
  text-decoration: none;
}
.btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); text-decoration: none; }
.btn-sm { padding: 9px 16px; font-size: .88rem; }
.btn.wide { width: 100%; }
.quiet-link { font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.quiet-link:hover { color: var(--brass-deep); }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 22px; max-width: 1160px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: auto; display: block; }
.brand span { font-weight: 700; font-size: 1.02rem; color: var(--navy); letter-spacing: .01em; }
.links { display: flex; align-items: center; gap: 24px; }
.links a:not(.btn) { color: var(--muted); font-size: .95rem; font-weight: 500; }
.links a:not(.btn):hover { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) { .links a:not(.btn) { display: none; } }

/* hero — left aligned, editorial */
.hero { padding: 88px 0 72px; background: var(--bg); border-bottom: 1px solid var(--line); }
.hero h1 { max-width: 15.5ch; }
.sub { font-size: clamp(1.02rem, 1.9vw, 1.18rem); max-width: 56ch; margin: 22px 0 30px; }
.cta-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero-note { margin-top: 22px; font-size: .9rem; color: var(--muted); }

/* one orchestrated load moment; honored reduced-motion */
.rise { animation: rise .55s ease-out both; }
.d1 { animation-delay: .08s; } .d2 { animation-delay: .16s; } .d3 { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; }
  html { scroll-behavior: auto; }
}

/* serve strip — navy authority band */
.serve { background: var(--navy); }
.serve-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  padding: 20px 22px; color: var(--paper); font-size: .93rem; font-weight: 500;
  text-align: center; max-width: 1100px; margin: 0 auto;
}
@media (max-width: 860px) { .serve-grid { grid-template-columns: repeat(2, 1fr); } }

/* capabilities — ruled professional list, not card kit */
.caps { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; margin-top: 26px; }
@media (max-width: 820px) { .caps { grid-template-columns: 1fr; } }
.cap {
  display: flex; gap: 18px; padding: 26px 4px;
  border-top: 1px solid var(--line);
}
.cap-ico { flex: 0 0 30px; width: 30px; height: 30px; color: var(--brass); margin-top: 3px; }
.cap h3 { margin-bottom: 6px; }
.cap p { font-size: .95rem; }

/* product */
.product-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 52px; align-items: center; }
@media (max-width: 860px) { .product-grid { grid-template-columns: 1fr; } }
.product-copy p { margin: 16px 0; max-width: 56ch; }
.ticks { list-style: none; margin: 0 0 26px; }
.ticks li { padding: 6px 0 6px 30px; position: relative; color: var(--muted); }
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: 13px;
  width: 12px; height: 12px; border-radius: 3px; background: var(--brass);
}

/* phone mock — navy body, brass action */
.product-visual { display: flex; justify-content: center; }
.phone {
  width: 252px; background: var(--navy-deep); border-radius: 34px; padding: 12px;
  box-shadow: 0 26px 60px rgba(14,29,47,.30); position: relative;
}
.notch { width: 88px; height: 5px; background: #2C405A; border-radius: 4px; margin: 4px auto 12px; }
.screen { background: #fff; border-radius: 22px; padding: 18px 16px; }
.ph-shop {
  font-family: "Fraunces", Georgia, serif; font-weight: 640; color: var(--navy);
  text-align: center; font-size: .98rem; margin-bottom: 14px;
}
.ph-row {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 8px;
  padding: 9px 12px; font-size: .85rem; font-weight: 600; margin-bottom: 8px;
}
.ph-row.dim { color: var(--muted); font-weight: 500; }
.ph-row.total { text-align: right; background: var(--paper); border-color: #E8DFCB; color: var(--ink); }
.ph-btn { background: var(--brass); color: #fff; text-align: center; border-radius: 8px; padding: 11px; font-weight: 700; font-size: .9rem; margin-top: 4px; }
.ph-status { text-align: center; font-size: .8rem; color: #1A7F37; font-weight: 700; margin-top: 10px; }
.ph-dot {
  position: absolute; top: 30px; right: 26px; width: 10px; height: 10px;
  border-radius: 50%; background: #2FB566;
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .ph-dot { animation: none; } }

/* steps — genuine sequence, so numbered */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }
.steps li { border-top: 2px solid var(--navy); padding: 18px 2px 0; }
.steps li span {
  display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center;
  background: var(--navy); color: #fff; font-weight: 700; border-radius: 6px;
  margin-bottom: 12px; font-size: .95rem;
}
.steps li p { font-size: .93rem; margin-top: 6px; }

/* why — quiet three columns */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; margin-top: 10px; }
@media (max-width: 820px) { .why-grid { grid-template-columns: 1fr; gap: 26px; } }
.why-item { border-top: 1px solid var(--line); padding-top: 18px; }
.why-item h3 { margin-bottom: 6px; }
.why-item p { font-size: .95rem; }

/* contact */
.contact { border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 52px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-line { margin: 10px 0; font-weight: 600; }
.lead-form {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 28px; box-shadow: 0 10px 34px rgba(22,40,60,.07);
}
.lead-form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 16px; color: var(--navy); }
.lead-form .opt { color: var(--muted); font-weight: 400; }
.lead-form input, .lead-form select, .lead-form textarea {
  width: 100%; margin-top: 6px; padding: 11px 13px;
  border: 1.5px solid var(--line); border-radius: 8px;
  font: inherit; color: var(--ink); background: #fff;
}
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(20,39,61,.12);
}
.fineprint { font-size: .8rem; margin-top: 10px; text-align: center; }

/* footer */
.footer { background: var(--navy-deep); color: #C9D2DE; padding: 48px 0 26px; }
.foot-grid { display: flex; justify-content: space-between; gap: 34px; flex-wrap: wrap; }
.footer .brand img { height: 62px; }
.footer .brand span { color: #fff; }
.foot-tag { margin-top: 12px; font-size: .9rem; color: #9FAEC2; max-width: 30ch; }
.foot-links { display: flex; flex-direction: column; gap: 9px; }
.foot-links a { color: #C9D2DE; font-size: .93rem; }
.foot-links a:hover { color: #fff; }
.copyright { text-align: center; margin-top: 38px; font-size: .84rem; color: #7E8DA3; }
