/* Vertoz Platform Console
   Tokens mirror the revised vertoz.com (assets/css/vz.css). */

@font-face {
  font-family: Ranade;
  src: url(../fonts/ranade-medium.woff2) format("woff2");
  font-weight: 500 700;
  font-display: swap;
}

:root {
  --vz-bg: #f2f3f6;
  --vz-card: #fff;
  --vz-ink: #280e47;
  --vz-text: #333;
  --vz-muted: #5c5c66;
  --vz-line: #e4e2ea;
  --vz-purple: #812e77;
  --vz-purple-dark: #6a2462;
  --vz-tint: #f7eef5;
  --vz-radius: 15px;
  --vz-shadow: 0 10px 30px rgba(40, 14, 71, .10);
  --vz-head: Ranade, "Open Sans", sans-serif;
  --vz-wrap: 1040px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--vz-bg);
  color: var(--vz-text);
  font: 400 16px/1.6 "Open Sans", Arial, sans-serif;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--vz-purple); }
a:hover { color: var(--vz-purple-dark); }

:focus-visible {
  outline: 3px solid var(--vz-purple);
  outline-offset: 3px;
  border-radius: 4px;
}

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

@media (min-width: 768px) {
  .wrap { padding: 0 32px; }
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--vz-ink);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ======= Header ======= */

.site-header {
  background: var(--vz-card);
  border-bottom: 1px solid var(--vz-line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-logo { flex-shrink: 0; }
.brand-logo img { width: 128px; }

.brand-divider {
  width: 1px;
  height: 24px;
  background: var(--vz-line);
}

.brand-name {
  font-family: var(--vz-head);
  font-weight: 500;
  font-size: 15px;
  color: var(--vz-ink);
  white-space: nowrap;
}

.back-link {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.back-link:hover { text-decoration: underline; }

@media (min-width: 768px) {
  .brand-logo img { width: 150px; }
  .brand-name { font-size: 17px; }
}

/* Keep the header on one line on the narrowest phones */
@media (max-width: 479px) {
  .back-link { font-size: 13px; }
  .brand { gap: 10px; }
  .brand-logo img { width: 100px; }
  .brand-name { font-size: 14px; }
}

/* "Back to" stays in the accessible name, hidden visually on phones */
@media (max-width: 479px) {
  .back-long {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

@media (max-width: 339px) {
  .brand-divider, .brand-name { display: none; }
}

/* ======= Main ======= */

main {
  flex: 1;
  padding: 48px 0 64px;
}

@media (min-width: 768px) {
  main { padding: 80px 0 96px; }
}

.intro {
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: center;
}

.intro h1 {
  margin: 0 0 12px;
  font-family: var(--vz-head);
  font-weight: 500;
  font-size: clamp(28px, 4.2vw, 40px);
  line-height: 1.2;
  color: var(--vz-ink);
}

.intro p {
  margin: 0;
  font-size: 17px;
  color: var(--vz-muted);
}

@media (min-width: 768px) {
  .intro { margin-bottom: 56px; }
}

.platforms {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 680px) {
  .platforms { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .platforms { gap: 32px; }
}

.platform { display: flex; }

.platform article {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  background: var(--vz-card);
  border: 1px solid var(--vz-line);
  border-radius: var(--vz-radius);
  box-shadow: var(--vz-shadow);
}

@media (min-width: 1024px) {
  .platform article { padding: 40px; }
}

.platform-logo {
  display: flex;
  align-items: center;
  min-height: 46px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--vz-line);
}

.platform-logo img { width: 200px; }

.platform-name {
  margin: 0 0 6px;
  font-family: var(--vz-head);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.25;
  color: var(--vz-ink);
}

.platform-desc {
  margin: 0 0 12px;
  font-weight: 600;
  color: var(--vz-purple);
}

.platform-text {
  margin: 0 0 28px;
  color: var(--vz-muted);
}

/* login button and signup link sit together at the bottom of the card */
.platform-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.platform-signup {
  margin: 0;
  font-size: 14px;
  color: var(--vz-muted);
}

.platform-signup a {
  font-weight: 600;
  text-underline-offset: 2px;
}

/* Matches .vz-btn on vertoz.com */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid var(--vz-purple);
  border-radius: 10px;
  background: var(--vz-purple);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .15s, color .15s;
}

.btn:hover,
.btn:focus-visible {
  background: #fff;
  color: var(--vz-purple);
}

@media (max-width: 479px) {
  .platform-actions { align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}

/* ======= Footer ======= */

.site-footer {
  background: var(--vz-card);
  border-top: 1px solid var(--vz-line);
  font-size: 14px;
  color: var(--vz-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.copyright { margin: 0; }

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-links a {
  color: var(--vz-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--vz-purple);
  text-decoration: underline;
}
