/* ============================================
   Saff co — shared stylesheet
   Beginner note: every page (index.html, services.html,
   contact.html, about.html, blog.html) links to this one
   file, so editing a color or spacing here updates the
   whole site at once.
   ============================================ */

:root {
  --blue: #2E6FF2;
  --blue-dark: #1f56d1;
  --dark: #14161f;
  --text: #1b1d24;
  --text-gray: #6b7280;
  --text-light-gray: #9aa1ac;
  --border: #e7e9ef;
  --bg-soft: #f7f9fc;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
}

.logo-mark {
  width: 22px;
  height: 22px;
  color: var(--blue);
  flex-shrink: 0;
}

.logo img.logo-mark {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  gap: 36px;
}

.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  transition: color .15s ease;
}

.main-nav a:hover { color: var(--blue); }
.main-nav a.active { color: var(--blue); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.signin-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, opacity .15s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }

.btn-dark {
  background: var(--dark);
  color: #fff;
}
.btn-dark:hover { background: #000; }

.btn-outline {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--text); }

.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 80px 0 60px;
}

.eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--text-light-gray);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: 52px;
  line-height: 1.1;
  font-weight: 700;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.hero h1 span,
.blue-text { color: var(--blue); }

.hero p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--text-gray);
  font-size: 17px;
  line-height: 1.6;
}

/* ---------- Hero mockup with floating cards ---------- */
.hero-visual {
  position: relative;
  max-width: 860px;
  margin: 56px auto 0;
  background: linear-gradient(180deg, #eef4ff 0%, rgba(255,255,255,0) 70%);
  border-radius: 24px;
  padding: 40px 40px 100px;
}

.browser-frame {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 30px 60px -20px rgba(20, 22, 31, 0.18);
  overflow: hidden;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.browser-bar .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot.red { background: #ef5f57; }
.dot.yellow { background: #f6bd41; }
.dot.green { background: #62c655; }

.browser-bar .url {
  margin: 0 auto;
  background: var(--bg-soft);
  border-radius: 6px;
  padding: 4px 24px;
  font-size: 12px;
  color: var(--text-light-gray);
}

.browser-frame .photo {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}

.floating-card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px -12px rgba(20,22,31,.18);
  padding: 16px;
  font-size: 13px;
  width: 220px;
}

.floating-card.card-left {
  left: 8px;
  top: 210px;
}

.floating-card.card-right {
  right: 8px;
  bottom: 20px;
  width: 210px;
}

.floating-card .card-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-gray);
  font-size: 12px;
  margin-bottom: 10px;
}

.floating-card ul li {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  color: var(--text-gray);
  font-size: 12.5px;
  border-bottom: 1px solid #f1f2f5;
}
.floating-card ul li:last-child { border-bottom: none; }
.floating-card ul li b { color: var(--text); font-weight: 600; }
.up { color: #16a34a; }

.mini-btn {
  margin-top: 12px;
  width: 100%;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px;
  font-weight: 600;
  font-size: 12.5px;
}

.transaction-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}
.transaction-row .num { font-size: 20px; font-weight: 700; }
.transaction-row .num span { font-size: 12px; color: var(--text-light-gray); font-weight: 400; }
.transaction-row small { display: block; color: var(--text-gray); font-size: 11.5px; }

.ring {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--blue);
  border: 3px solid #dce8ff;
  border-top-color: var(--blue);
  border-right-color: var(--blue);
}

/* ---------- Stats bar ---------- */
.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 0;
}

.stats .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}

.stats-headline h3 {
  font-size: 26px;
  margin: 0 0 6px;
  font-weight: 700;
}
.stats-headline h3 .blue-text { font-weight: 700; }
.stats-headline p {
  margin: 0;
  color: var(--text-gray);
  font-size: 14px;
}

.stat-group {
  display: flex;
  gap: 56px;
}

.stat-item { text-align: center; }
.stat-item .num {
  font-size: 32px;
  font-weight: 700;
}
.stat-item .label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--text-light-gray);
  margin-top: 6px;
}

/* ---------- Products / feature grid ---------- */
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: 38px;
  line-height: 1.15;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}

.section-head p {
  max-width: 320px;
  color: var(--text-gray);
  font-size: 15px;
  margin: 0;
}

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

.feature-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  background: #fff;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #eaf1ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 18px;
  margin: 0 0 10px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.6;
  margin: 0 0 20px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Support section ---------- */
.support-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 48px;
}

.avatar-stack {
  display: flex;
}
.avatar-stack img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid #fff;
  object-fit: cover;
  margin-left: -14px;
}
.avatar-stack img:first-child { margin-left: 0; }

.support-head h2 {
  font-size: 28px;
  margin: 0;
  font-weight: 700;
}

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

.support-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
}

.support-card .icon-circle {
  width: 42px;
  height: 42px;
  margin: 0 auto 18px;
  color: var(--blue);
}

.support-card h3 {
  font-size: 17px;
  margin: 0 0 10px;
}

.support-card p {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.6;
  margin: 0;
}

/* ---------- CTA ---------- */
.cta-band {
  background: linear-gradient(180deg, #eef4ff 0%, #fbfcfe 100%);
  border-radius: 24px;
  text-align: center;
  padding: 70px 24px;
  margin: 0 24px;
}

.cta-band h2 {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 28px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 64px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}

.footer-brand .logo { margin-bottom: 8px; }
.footer-tagline {
  font-size: 13px;
  color: var(--text-gray);
  margin: 0 0 20px;
}

.social-row { display: flex; gap: 12px; margin-bottom: 22px; }
.social-row a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-gray);
}

.subscribe-row {
  display: flex;
  gap: 8px;
  max-width: 320px;
}
.subscribe-row input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 12px 16px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}
.subscribe-row input:focus { border-color: var(--blue); }

.footer-col h4 {
  font-size: 14px;
  margin: 0 0 18px;
}
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a {
  font-size: 14px;
  color: var(--text-gray);
}
.footer-col ul li a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  font-size: 13px;
  color: var(--text-light-gray);
}

/* ---------- Pricing (services page) ---------- */
.pricing-intro {
  text-align: center;
  max-width: 460px;
  margin: 0 auto 56px;
  border: 1px solid var(--blue);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.pricing-intro .eyebrow { margin-bottom: 10px; }
.pricing-intro h1 {
  font-size: 34px;
  margin: 0 0 10px;
}
.pricing-intro p {
  font-size: 14px;
  color: var(--text-gray);
  margin: 0;
}

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

.price-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
}

.price-card.featured {
  border-color: var(--dark);
  box-shadow: 0 20px 40px -20px rgba(20,22,31,.25);
}

.price-card h3 { font-size: 18px; margin: 0 0 8px; }
.price-card .plan-desc {
  font-size: 13.5px;
  color: var(--text-gray);
  margin: 0 0 24px;
  min-height: 36px;
}

.price-card .price {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 2px;
}
.price-card .price sup { font-size: 15px; font-weight: 600; margin-left: 2px; }
.price-card .per-month {
  font-size: 13px;
  color: var(--text-gray);
  margin-bottom: 20px;
}

.price-card .btn { margin-bottom: 26px; }

.price-card .feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-gray);
  margin-bottom: 12px;
}
.price-card .feature-list li svg {
  color: var(--blue);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---------- FAQ ---------- */
.faq-section {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  align-items: start;
}

.faq-section h2 {
  font-size: 30px;
  margin: 0;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 14px;
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary .toggle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.faq-item p {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.6;
}

/* ---------- Contact / login page ---------- */
.login-section {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: center;
  padding: 72px 0;
}

.login-box { max-width: 380px; }
.login-box .eyebrow { margin-bottom: 14px; }
.login-box h1 {
  font-size: 32px;
  margin: 0 0 28px;
  font-weight: 700;
}

.google-btn {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14.5px;
  background: #fff;
  cursor: pointer;
  margin-bottom: 20px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-light-gray);
  font-size: 12px;
  margin-bottom: 20px;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.field {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 14px;
  font-family: inherit;
  margin-bottom: 14px;
  outline: none;
  background: var(--bg-soft);
}
.field:focus { border-color: var(--blue); }

.login-links {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--text-gray);
}
.login-links a { color: var(--blue); font-weight: 600; }
.forget-link {
  display: block;
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--text);
  font-weight: 600;
}

.login-visual { position: relative; }

/* ---------- About / blog page ---------- */
.story-hero { text-align: center; padding: 80px 0 48px; }
.story-hero h1 { font-size: 44px; margin: 0 0 20px; font-weight: 700; }
.story-hero p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--text-gray);
  font-size: 16px;
}

.photo-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 48px 0;
}
.photo-row img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.story-copy {
  max-width: 760px;
  margin: 0 auto 64px;
  text-align: center;
  color: var(--text-gray);
  font-size: 15px;
  line-height: 1.8;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.two-col h3 {
  font-size: 22px;
  margin: 0 0 14px;
}
.two-col p {
  font-size: 14.5px;
  color: var(--text-gray);
  line-height: 1.7;
  margin: 0;
}

.values-box {
  border: 1px solid var(--blue);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
}
.values-box h2 { font-size: 28px; margin: 0 0 10px; }
.values-box > p {
  font-size: 14px;
  color: var(--text-gray);
  margin: 0 0 32px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: left;
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.value-item .icon-circle {
  width: 34px;
  height: 34px;
  color: var(--blue);
  margin-bottom: 14px;
}
.value-item h4 { font-size: 15px; margin: 0 0 8px; }
.value-item p {
  font-size: 13px;
  color: var(--text-gray);
  line-height: 1.6;
  margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .hero h1 { font-size: 36px; }
  .feature-grid, .support-grid, .pricing-grid, .photo-row, .two-col, .values-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .faq-section, .login-section { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .stats .container { flex-direction: column; align-items: flex-start; }
  .stat-group { gap: 32px; flex-wrap: wrap; }
  .floating-card { position: static; width: 100%; margin-top: 12px; }
  .hero-visual { padding: 20px; }
}
