:root {
  --navy: #122033;
  --navy-2: #1b2d44;
  --gold: #c4a35a;
  --gold-soft: #e0c078;
  --paper: #f4f0e7;
  --paper-2: #ebe6da;
  --card: #fffcf7;
  --ink: #16202c;
  --muted: #5a6570;
  --line: #ddd6c8;
  --focus: #1b5fbf;
  --serif: "IBM Plex Serif", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 12px 32px rgba(18, 32, 51, 0.08);
  --radius: 20px;
  --max: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: #fff;
  color: var(--navy);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
  font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

/* ----- Nav ----- */
.site-header {
  background: var(--navy);
  color: var(--paper);
  border-bottom: 1px solid rgba(196, 163, 90, 0.35);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 9px;
}
.nav {
  display: flex;
  gap: 8px;
}
.nav a {
  text-decoration: none;
  color: var(--paper);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 10px 12px;
  border-radius: 10px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav a:hover { background: rgba(255,255,255,0.08); }

/* ----- Hero ----- */
.hero {
  background: var(--navy);
  color: var(--paper);
  padding: 64px 0 80px;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 6px;
  background: var(--gold);
}
.hero-kicker {
  color: var(--gold-soft);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin: 0 0 16px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.08;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.hero .tagline {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  color: var(--gold-soft);
  margin: 0 0 14px;
  font-weight: 500;
}
.hero .lede {
  margin: 0;
  font-size: 1.125rem;
  color: #c5ced6;
  max-width: 34em;
}

/* ----- Sections ----- */
.section {
  padding: 72px 0;
}
.section h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.section .intro {
  color: var(--muted);
  margin: 0 0 36px;
  max-width: 36em;
}

.app-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 760px) {
  .app-grid { grid-template-columns: 1fr 1fr; }
}

.app-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.app-card__bar { height: 8px; }
.app-card__body {
  padding: 28px 28px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 16px;
}
.app-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.app-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex: none;
}
.app-card__name {
  font-family: var(--serif);
  font-size: 1.55rem;
  margin: 0;
  line-height: 1.2;
}
.app-card__tag {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}
.app-card__features {
  margin: 4px 0 0;
  padding: 0 0 0 1.15em;
  color: var(--ink);
}
.app-card__features li { margin: 0 0 6px; }
.app-card__price {
  margin: auto 0 0;
  font-weight: 600;
  color: var(--navy);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  transition: transform 0.12s ease, filter 0.12s ease;
}
.btn:hover { filter: brightness(0.96); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* ----- Contact ----- */
.contact {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
}
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.contact-list a {
  color: var(--navy);
  font-weight: 600;
  font-size: 1.1rem;
  text-underline-offset: 3px;
}
.contact-label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 2px;
}

/* ----- Footer ----- */
.site-footer {
  background: var(--navy);
  color: #c5ced6;
  padding: 28px 0;
  font-size: 0.92rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}
.site-footer strong { color: var(--paper); font-weight: 600; }

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

.empty { color: var(--muted); }

@media (max-width: 599px) {
  .wrap { width: min(var(--max), calc(100% - 28px)); }
  .hero { padding: 40px 0 56px; }
  .section { padding: 52px 0; }
  .app-card__body { padding: 22px; }
  .brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
}
