/* ============================================================
   GotchaFix — an Interprog product
   Visual identity reused from the Interprog brand book:
   palette (navy / petrol-teal / steel-blue) + Helvetica Neue
   type treatment. Self-contained, no external dependencies.
   ============================================================ */

:root {
  /* Interprog palette (from brand book, page 04) */
  --navy:        #071A25;  /* darkest — R7 G26 B37   */
  --navy-2:      #103C4B;  /* deep     — R16 G60 B75  */
  --steel:       #155166;  /* mid      — R21 G81 B102 */
  --petrol:      #1C657F;  /* accent   — R28 G101 B127*/
  --teal:        #0F7A99;  /* bright    — R15 G122 B153*/
  --sky:         #198DB1;  /* lightest — R25 G141 B177*/

  --ink:         #0e1c24;
  --paper:       #ffffff;
  --mist:        #f2f5f7;
  --line:        #dbe3e8;
  --muted:       #5c7079;

  --wrap: 1080px;
  --font: "Helvetica Neue", "HelveticaNeue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { display: block; height: 34px; width: auto; }
.brand .name {
  font-weight: 700; font-size: 1.35rem; letter-spacing: -0.01em;
  color: var(--navy-2);
}
.brand .name b { color: var(--teal); font-weight: 700; }

nav.main { display: flex; gap: 30px; }
nav.main a {
  text-decoration: none; color: var(--muted); font-weight: 500;
  font-size: 0.95rem; padding: 6px 0; position: relative;
}
nav.main a:hover, nav.main a[aria-current="page"] { color: var(--navy-2); }
nav.main a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--teal);
}

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(120% 140% at 85% -10%, rgba(25,141,177,0.18), transparent 55%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #eaf2f6;
  padding: 96px 0 104px;
  overflow: hidden; position: relative;
}
.hero .eyebrow {
  text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.72rem;
  color: var(--sky); font-weight: 600; margin: 0 0 20px;
}
.hero h1 {
  font-size: clamp(2.3rem, 5.4vw, 3.7rem); line-height: 1.05;
  letter-spacing: -0.02em; font-weight: 700; margin: 0 0 20px; max-width: 15ch;
}
.hero p.lede {
  font-size: 1.18rem; color: #b9ccd6; max-width: 52ch; margin: 0 0 34px;
  font-weight: 300;
}
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  font-size: 0.98rem; padding: 13px 26px; border-radius: 4px;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--sky); transform: translateY(-1px); }
.btn-ghost { color: #eaf2f6; border: 1px solid rgba(255,255,255,0.35); }
.btn-ghost:hover { border-color: var(--sky); color: #fff; }

/* floating mark watermark in hero */
.hero .mark-bg {
  position: absolute; right: -60px; bottom: -80px; width: 420px;
  opacity: 0.10; pointer-events: none;
}

/* ---------- sections ---------- */
section.block { padding: 76px 0; }
section.block.alt { background: var(--mist); }

.section-head { margin-bottom: 42px; max-width: 60ch; }
.section-head .kicker {
  text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.72rem;
  color: var(--teal); font-weight: 700; margin: 0 0 12px;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem); letter-spacing: -0.015em;
  margin: 0 0 14px; color: var(--navy-2); font-weight: 700;
}
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }

/* feature cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 30px 26px; transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: 0 14px 34px rgba(7,26,37,0.09); transform: translateY(-3px); }
.card .ico {
  width: 44px; height: 44px; border-radius: 8px; margin-bottom: 18px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--petrol), var(--teal));
  color: #fff;
}
.card .ico svg { width: 22px; height: 22px; }
.card h3 { margin: 0 0 8px; font-size: 1.16rem; color: var(--navy-2); font-weight: 700; }
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* ---------- about page ---------- */
.prose { max-width: 68ch; }
.prose p { color: #33454d; font-size: 1.06rem; margin: 0 0 20px; }
.prose h3 { color: var(--navy-2); margin: 40px 0 12px; font-size: 1.25rem; }

.stat-row { display: flex; gap: 48px; flex-wrap: wrap; margin: 44px 0 8px; }
.stat .num { font-size: 2.6rem; font-weight: 700; color: var(--teal); line-height: 1; }
.stat .lbl { color: var(--muted); font-size: 0.92rem; margin-top: 6px; }

/* ---------- contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 34px 32px;
}
.contact-item { margin-bottom: 26px; }
.contact-item:last-child { margin-bottom: 0; }
.contact-item .label {
  text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.7rem;
  color: var(--muted); font-weight: 700; margin: 0 0 6px;
}
.contact-item a, .contact-item .val {
  font-size: 1.2rem; color: var(--navy-2); text-decoration: none; font-weight: 600;
}
.contact-item a:hover { color: var(--teal); }

.contact-aside {
  background: linear-gradient(160deg, var(--navy) 0%, var(--steel) 130%);
  color: #dce8ee; border-radius: 10px; padding: 34px 32px;
}
.contact-aside h3 { margin: 0 0 12px; color: #fff; font-size: 1.25rem; }
.contact-aside p { margin: 0 0 8px; color: #b9ccd6; font-size: 1rem; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--navy); color: #9fb4bf; padding: 40px 0;
  font-size: 0.9rem;
}
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.site-footer .brand .name { color: #eaf2f6; font-size: 1.1rem; }
.site-footer a { color: var(--sky); text-decoration: none; }
.site-footer .fine { color: #6d8592; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  nav.main { gap: 18px; }
  nav.main a { font-size: 0.88rem; }
  .brand .name { font-size: 1.15rem; }
}
@media (max-width: 560px) {
  .site-header .wrap { height: 62px; }
  .hero { padding: 68px 0 76px; }
  nav.main a:not(:last-child) { display: none; } /* keep header uncluttered on phones */
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* keyboard focus visibility */
a:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 3px;
}

/* ============================================================
   Additions for company site: applications + product pages
   ============================================================ */

/* slogan under wordmark in hero */
.hero .slogan {
  font-style: italic; color: var(--sky); font-weight: 300;
  font-size: 1.05rem; margin: 0 0 26px; letter-spacing: 0.01em;
}

/* two-column intro (home) */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.split .media {
  aspect-ratio: 4/3; border-radius: 12px;
  background:
    radial-gradient(120% 120% at 20% 10%, rgba(25,141,177,0.25), transparent 60%),
    linear-gradient(150deg, var(--navy-2), var(--steel));
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.split .media svg { width: 44%; opacity: 0.9; }

/* application listing cards */
.app-list { display: grid; grid-template-columns: 1fr; gap: 22px; }
.app-row {
  display: grid; grid-template-columns: 88px 1fr auto; gap: 24px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 24px 26px; text-decoration: none; color: inherit;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.app-row:hover { box-shadow: 0 16px 38px rgba(7,26,37,0.10); transform: translateY(-3px); border-color: var(--petrol); }
.app-row .app-icon {
  width: 88px; height: 88px; border-radius: 18px;
  background: linear-gradient(150deg, var(--navy) 0%, var(--steel) 120%);
  display: grid; place-items: center;
}
.app-row .app-icon svg { width: 52px; }
.app-row .app-body h3 { margin: 0 0 6px; font-size: 1.3rem; color: var(--navy-2); font-weight: 700; }
.app-row .app-body p { margin: 0; color: var(--muted); font-size: 1rem; }
.app-row .app-go {
  color: var(--teal); font-weight: 600; font-size: 0.95rem; white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
}
.app-row .app-go svg { width: 16px; height: 16px; }

.badge {
  display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 3px 9px; border-radius: 100px;
  background: rgba(15,122,153,0.12); color: var(--teal); margin-left: 10px;
  vertical-align: middle;
}
.badge.soon { background: rgba(92,112,121,0.14); color: var(--muted); }

/* product hero (gotchafix page) */
.product-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.product-hero .p-icon {
  width: 108px; height: 108px; border-radius: 24px; margin-bottom: 24px;
  background: linear-gradient(150deg, var(--teal), var(--sky));
  display: grid; place-items: center;
}
.product-hero .p-icon svg { width: 62px; }
.product-hero .platforms {
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px;
}
.product-hero .platforms span {
  font-size: 0.82rem; color: #cfe0e8; border: 1px solid rgba(255,255,255,0.24);
  padding: 5px 12px; border-radius: 100px;
}

/* phone/screenshot mockup stack */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.shot {
  aspect-ratio: 9/17; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(170deg, #eef3f6 0%, #dbe6ec 100%);
  position: relative; display: grid; place-items: center;
}
.shot .ph {
  text-align: center; color: var(--muted); padding: 0 16px;
}
.shot .ph svg { width: 40px; opacity: 0.55; margin-bottom: 10px; }
.shot .ph .cap { font-size: 0.82rem; }
.shot .bar {
  position: absolute; top: 0; left: 0; right: 0; height: 34px;
  background: linear-gradient(150deg, var(--navy), var(--steel));
  display: grid; place-items: center;
}
.shot .bar span { color: #cfe0e8; font-size: 0.7rem; letter-spacing: 0.1em; }

/* store buttons */
.stores { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.store-btn {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
  background: var(--navy); color: #fff; border-radius: 10px;
  padding: 12px 20px; min-width: 200px; position: relative;
  border: 1px solid var(--navy-2); transition: background .15s ease;
}
.store-btn.disabled { opacity: 0.6; cursor: default; }
.store-btn:not(.disabled):hover { background: var(--navy-2); }
.store-btn svg { width: 26px; height: 26px; flex-shrink: 0; }
.store-btn .st { display: flex; flex-direction: column; line-height: 1.2; }
.store-btn .st small { font-size: 0.66rem; color: #9fb4bf; }
.store-btn .st b { font-size: 1rem; font-weight: 600; }
.store-btn .soon-tag {
  position: absolute; top: -9px; right: -8px; font-size: 0.6rem; font-weight: 700;
  background: var(--teal); color: #fff; padding: 2px 7px; border-radius: 100px;
  letter-spacing: 0.06em;
}

/* feature list on product page */
.feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.feat {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 10px;
}
.feat .fi {
  width: 40px; height: 40px; border-radius: 9px; flex-shrink: 0;
  background: linear-gradient(150deg, var(--petrol), var(--teal));
  display: grid; place-items: center; color: #fff;
}
.feat .fi svg { width: 20px; }
.feat h4 { margin: 0 0 5px; font-size: 1.05rem; color: var(--navy-2); }
.feat p { margin: 0; color: var(--muted); font-size: 0.94rem; }

/* breadcrumb */
.crumb { font-size: 0.88rem; color: #9fb4bf; margin: 0 0 18px; }
.crumb a { color: var(--sky); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .split, .product-hero { grid-template-columns: 1fr; gap: 34px; }
  .shots { grid-template-columns: 1fr 1fr; }
  .feat-grid { grid-template-columns: 1fr; }
  .app-row { grid-template-columns: 64px 1fr; }
  .app-row .app-icon { width: 64px; height: 64px; }
  .app-row .app-go { grid-column: 2; margin-top: 4px; }
}
@media (max-width: 560px) {
  .shots { grid-template-columns: 1fr; max-width: 260px; margin: 0 auto; }
  .store-btn { min-width: 100%; }
}
