﻿/* ============ Masto Control — Corporate / Professional design system ============ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Neutral palette */
  --ink:        #111827;
  --ink-soft:   #6b7280;
  --ink-faint:  #9ca3af;
  --paper:      #ffffff;
  --paper-2:    #f9fafb;
  --paper-3:    #f3f4f6;
  --border:     #e5e7eb;
  --border-str: #d1d5db;

  /* Brand */
  --accent:      #ff6b35;
  --accent-dark: #e55a25;
  --accent-soft: #fff4ef;
  --accent-2:    #fbbf24;
  --accent-3:    #10b981;
  --accent-4:    #8b5cf6;
  --hi:          #fef9c3;

  /* Radii */
  --radius-sm: 6px;
  --radius:    8px;
  --radius-lg: 12px;
  --radius-xl: 20px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.10), 0 1px 2px rgba(0,0,0,0.06);
  --shadow:    0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 15px rgba(0,0,0,0.10), 0 4px 6px rgba(0,0,0,0.05);
  --shadow-lg: 0 20px 25px rgba(0,0,0,0.10), 0 10px 10px rgba(0,0,0,0.04);

  /* Typography */
  --hand: 'Plus Jakarta Sans', 'Inter', sans-serif;   /* display / headings */
  --body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Nav ---------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  border-bottom: 1px solid var(--border);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
  gap: 32px;
}

.nav .logo {
  font-family: var(--hand);
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.nav .logo .mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 800;
  background: var(--accent);
  color: #fff;
  letter-spacing: -0.5px;
}

.nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
}

.nav ul li a {
  display: block;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
}

.nav ul li a:hover { color: var(--ink); background: var(--paper-3); }
.nav ul li a.active { color: var(--ink); font-weight: 600; }

.nav .actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 18px;
  padding: 6px 10px;
  color: var(--ink);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 600;
  padding: 9px 18px;
  border: 1px solid var(--border-str);
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: box-shadow 0.15s, background 0.15s, border-color 0.15s, transform 0.1s;
  white-space: nowrap;
}

.btn:hover {
  background: var(--paper-3);
  border-color: var(--border-str);
  box-shadow: var(--shadow-xs);
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn.primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  box-shadow: var(--shadow-sm);
}

.btn.ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--ink-soft);
}
.btn.ghost:hover { background: var(--paper-2); color: var(--ink); }

.btn.lg { font-size: 15px; padding: 11px 22px; }
.btn.full { width: 100%; }

/* ---------- Boxes / cards ---------- */

.box {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  background: var(--paper);
}

.box.lg { padding: 28px; border-radius: var(--radius-lg); }

/* ---------- Placeholders ---------- */

.placeholder {
  border: 1.5px dashed var(--border-str);
  background: var(--paper-2);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  text-align: center;
  padding: 12px;
  border-radius: var(--radius-lg);
  min-height: 60px;
}

/* ---------- Highlight ---------- */

.mark-hi {
  background: linear-gradient(transparent 55%, var(--hi) 55%);
  padding: 0 3px;
}

/* ---------- Tags / badges ---------- */

.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.tag.accent { background: var(--accent-soft); border-color: #ffd4bf; color: var(--accent-dark); }
.tag.yellow { background: #fefce8; border-color: #fde68a; color: #92400e; }
.tag.teal   { background: #ecfdf5; border-color: #6ee7b7; color: #065f46; }
.tag.violet { background: #f5f3ff; border-color: #c4b5fd; color: #5b21b6; }

/* ---------- Sections ---------- */

.section {
  padding: 80px 48px;
  border-bottom: 1px solid var(--border);
}

.section:last-child { border-bottom: none; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

h1.hand { font-family: var(--hand); font-size: 56px; font-weight: 800; line-height: 1.05; margin: 0; letter-spacing: -1.5px; }
h2.hand { font-family: var(--hand); font-size: 40px; font-weight: 700; line-height: 1.1;  margin: 0; letter-spacing: -0.8px; }
h3.hand { font-family: var(--hand); font-size: 26px; font-weight: 700; line-height: 1.2;  margin: 0; letter-spacing: -0.4px; }

.muted { color: var(--ink-soft); }
.center { text-align: center; }

.row { display: flex; gap: 12px; flex-wrap: wrap; }
.col { flex: 1; min-width: 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr;        gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr);  gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr);  gap: 16px; }

/* ---------- Icon box ---------- */

.icon-ph {
  width: 48px; height: 48px;
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--paper-2);
}

.icon-ph.a1 { background: var(--accent-soft); }
.icon-ph.a2 { background: #fefce8; }
.icon-ph.a3 { background: #ecfdf5; }
.icon-ph.a4 { background: #f5f3ff; }

.icon-ph png { width: 22px; height: 22px; color: var(--ink); }
.icon-ph i   { display: contents; }

/* ---------- Note / quote ---------- */

.note {
  background: var(--paper);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  padding: 14px 18px;
  border-radius: var(--radius);
  font-family: var(--body);
  font-size: 14px;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.5;
  box-shadow: var(--shadow-sm);
}

/* ---------- Footer ---------- */

.footer {
  padding: 56px 48px 40px;
  background: var(--ink);
  color: rgba(255,255,255,0.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 1fr 0.7fr 0.8fr;
  gap: 28px;
}

.footer .logo {
  font-family: var(--hand);
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}

.footer .mark {
  width: 28px; height: 28px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.footer-col-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 14px;
}

.footer-links {
  font-size: 14px;
  line-height: 2;
  color: rgba(255,255,255,0.6);
}

.footer-links a {
  display: block;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: #fff; }

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  font-family: var(--mono);
}

/* ---------- Form inputs ---------- */

.input-field {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-str);
  border-radius: var(--radius);
  font-family: var(--body);
  font-size: 14px;
  background: var(--paper);
  color: var(--ink);
  margin-top: 6px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input-field:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,107,53,0.12);
}
textarea.input-field { resize: vertical; min-height: 110px; }

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  display: block;
  margin-top: 16px;
}

/* ---------- Range slider ---------- */

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: var(--paper-3);
  border-radius: 2px;
  margin: 12px 0;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  background: var(--accent);
  border: 2px solid #fff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

/* ---------- Table ---------- */

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-family: var(--body);
}
.comparison-table th {
  text-align: center;
  padding: 14px 16px;
  border-bottom: 2px solid var(--border);
  background: var(--paper-2);
  font-weight: 600;
  font-size: 13px;
}
.comparison-table th:first-child { text-align: left; }
.comparison-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  text-align: center;
  color: var(--ink-soft);
}
.comparison-table td:first-child { text-align: left; color: var(--ink); font-weight: 500; }
.comparison-table .team-col { background: rgba(255,107,53,0.04); }

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  padding: 72px 48px 48px;
  border-bottom: 1px solid var(--border);
  text-align: center;
  background: linear-gradient(to bottom, var(--paper-2), var(--paper));
}

/* ---------- Tags filter bar ---------- */

.filter-bar {
  padding: 16px 48px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------- Screenshot ---------- */

.screenshot { width: 100%; display: block; }
.screenshot-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

/* ---------- Helpers ---------- */

.mt-sm { margin-top: 8px; }
.mt-md { margin-top: 16px; }
.mt-lg { margin-top: 28px; }
.mb-md { margin-bottom: 16px; }
.gap-sm { gap: 6px; }

/* ---------- Auth tabs ---------- */

.auth-tab {
  font-family: var(--body);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 20px;
  border: 1px solid var(--border);
  background: var(--paper);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--ink-soft);
  transition: background 0.15s, color 0.15s;
}
.auth-tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.field-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--paper);
  cursor: pointer;
  user-select: none;
  transition: background 0.12s, border-color 0.12s;
  color: var(--ink-soft);
}
.field-tag.selected { background: var(--accent-soft); border-color: #ffd4bf; color: var(--accent-dark); }
.field-tag:hover { background: var(--paper-2); }

/* Footer overrides for dark bg */
.footer .muted    { color: rgba(255,255,255,0.45); }
.footer .eyebrow  { color: rgba(255,255,255,0.4); }

/* Pricing plan list items */
.plan-list li {
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
}
.plan-list li:last-child { border-bottom: none; }
.plan-list li::before { content: '✓'; color: var(--accent-3); font-weight: 700; flex-shrink: 0; }

/* Step circle for "How it works" */
.step-num {
  width: 36px; height: 36px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--body);
  flex-shrink: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .nav { padding: 0 20px; gap: 16px; }
  .nav ul { display: none; }
  .nav-toggle { display: block; }
  .nav ul.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px;
    gap: 2px;
    z-index: 99;
    box-shadow: var(--shadow-md);
  }

  .section     { padding: 52px 24px; }
  .page-hero   { padding: 48px 24px 36px; }
  .filter-bar  { padding: 12px 24px; }
  .footer      { padding: 48px 24px 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }

  h1.hand { font-size: 40px; }
  h2.hand { font-size: 30px; }

  .hero-grid          { grid-template-columns: 1fr !important; }
  .feature-module-grid{ grid-template-columns: 1fr !important; }
  .auth-grid          { grid-template-columns: 1fr !important; }
}

@media (max-width: 520px) {
  .nav .actions .btn.ghost { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
}
