/* ════════════════════════════════════════════════════════════════
   Rigily — Corporate stylesheet
   ════════════════════════════════════════════════════════════════ */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #FAFAF9;
  --bg-elevated: #FFFFFF;
  --bg-section: #F4F4F2;
  --border: #E5E5E0;
  --border-strong: #D4D4CF;
  --text: #1C1917;
  --text-muted: #57534E;
  --text-dim: #78716C;
  --accent: #1E3A8A;
  --accent-hover: #1E40AF;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Lora', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ─── Top bar ─── */
.topbar {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}
.logo {
  font-family: 'Lora', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.logo:hover { text-decoration: none; }
.logo-mark {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: 2px;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}
.nav-links li {
  margin-left: 24px;
}
.nav-links li:first-child {
  margin-left: 0;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}
.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

/* ─── Language selector ─── */
.lang-switcher {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-section);
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
}
.lang-switcher select {
  border: none;
  background: transparent;
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  cursor: pointer;
  padding-right: 4px;
  outline: none;
}

/* ─── Hero ─── */
.hero {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 72px 0 64px;
}
.hero h1 {
  font-size: 44px;
  line-height: 1.15;
  margin-bottom: 20px;
  max-width: 720px;
}
.hero .subtitle {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.6;
}

/* ─── Sections ─── */
section { padding: 64px 0; }
section h2 {
  font-size: 28px;
  margin-bottom: 8px;
}
section .section-sub {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 40px;
}

/* ─── Products ─── */
.products {
  display: grid;
  gap: 20px;
}
@media (min-width: 720px) {
  .products { grid-template-columns: 1fr 1fr; }
}
.product-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 32px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.product-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(30, 58, 138, 0.08);
}
.product-card-disabled {
  opacity: 0.6;
}
.product-card-disabled:hover {
  border-color: var(--border);
  box-shadow: none;
}
.product-icon {
  width: 56px;
  height: 56px;
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card h3 {
  font-size: 20px;
  margin-bottom: 4px;
}
.product-card .platform {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 14px;
}
.product-card p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 16px;
}
.product-card .price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.product-card .price {
  font-size: 16px;
  color: var(--text);
  font-weight: 600;
}
.product-card .price-suffix {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 400;
  margin-left: 4px;
}
.product-card .cta {
  font-size: 14px;
  font-weight: 600;
}

/* ─── About ─── */
.about-grid {
  display: grid;
  gap: 48px;
  align-items: start;
}
@media (min-width: 720px) {
  .about-grid { grid-template-columns: 1.6fr 1fr; }
}
.about p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 16px;
}

/* ─── Info card (used in About sidebar and Contact) ─── */
.info-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px;
}
.info-card h4 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  font-weight: 600;
}
.info-card .value {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 22px;
}
.info-card .value:last-child { margin-bottom: 0; }

/* ─── Contact section ─── */
.contact-section {
  background: var(--bg-section);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ─── Footer ─── */
footer {
  background: var(--bg-elevated);
  padding: 40px 0 32px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--text-muted);
  font-size: 13px;
}
.footer-links a:hover { color: var(--text); text-decoration: none; }
.copyright {
  color: var(--text-dim);
  font-size: 13px;
}

/* ─── Legal pages ─── */
.legal-page {
  background: var(--bg-elevated);
  padding: 56px 0 80px;
  min-height: 60vh;
}
.legal-page h1 {
  font-size: 36px;
  margin-bottom: 8px;
}
.legal-page .updated {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 40px;
  font-style: italic;
}
.legal-page h2 {
  font-size: 20px;
  color: var(--accent);
  margin: 36px 0 12px;
}
.legal-page p, .legal-page li {
  color: var(--text-muted);
  margin-bottom: 14px;
  font-size: 16px;
}
.legal-page ul { padding-left: 24px; margin-bottom: 16px; }
.legal-page strong { color: var(--text); font-weight: 600; }
.back-link {
  display: inline-flex;
  align-items: center;
  margin-top: 48px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}
.back-link:hover { color: var(--text); text-decoration: none; }

/* ─── Mobile adjustments ─── */
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .hero { padding: 56px 0 48px; }
  .hero h1 { font-size: 32px; }
  .hero .subtitle { font-size: 17px; }
  section { padding: 48px 0; }
  section h2 { font-size: 24px; }
  .nav-links { gap: 16px; }
  .nav-links a:not(.lang-switcher) { display: none; }
  .legal-page h1 { font-size: 28px; }
}
