/* MellonTec website — shared styles for every page. */

:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --text: #1c1f23;
  --muted: #5b636d;
  --border: #e6e3de;
  --accent: #1f7a6c;
  --accent-hover: #17635a;
  --accent-soft: #e4f2ef;
  --badge-bg: #000000;
  --badge-text: #ffffff;
  --shadow: 0 1px 2px rgba(20, 24, 28, 0.04), 0 8px 24px rgba(20, 24, 28, 0.06);

  --max-width: 960px;
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111416;
    --surface: #1a1e21;
    --text: #eceef0;
    --muted: #a3abb3;
    --border: #2b3035;
    --accent: #4fc2ae;
    --accent-hover: #6fd3c1;
    --accent-soft: #1b2f2b;
    --badge-bg: #ffffff;
    --badge-text: #000000;
    --shadow: none;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--accent-hover);
}

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

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

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.logo span {
  color: var(--accent);
}

.logo:hover {
  color: var(--text);
}

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--text);
}

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

section {
  padding: 88px 0;
}

section + section {
  border-top: 1px solid var(--border);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.section-intro {
  max-width: 600px;
  margin: 12px 0 40px;
  color: var(--muted);
}

/* ---------- Hero ---------- */

.hero {
  padding: 112px 0 96px;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 750;
}

.hero p.lead {
  max-width: 620px;
  margin: 24px 0 36px;
  font-size: 1.2rem;
  color: var(--muted);
}

.button {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.button:hover {
  background: var(--accent-hover);
  color: #ffffff;
}

@media (prefers-color-scheme: dark) {
  .button,
  .button:hover {
    color: #0d1a18;
  }
}

.services {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.services li {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ---------- App cards ---------- */

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
  gap: 24px;
}

.app-card {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.app-icon {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: #ffffff;
}

.app-card h3 {
  font-size: 1.35rem;
}

.app-card p {
  margin: 8px 0 20px;
  color: var(--muted);
  font-size: 0.98rem;
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* Text placeholder for Apple's official "Download on the App Store" badge.
   Replace with the official SVG from https://developer.apple.com/app-store/marketing/guidelines/ */
.store-badge {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  height: 44px;
  padding: 0 16px;
  border-radius: 9px;
  background: var(--badge-bg);
  color: var(--badge-text);
  line-height: 1.1;
  text-decoration: none;
}

.store-badge:hover {
  color: var(--badge-text);
  opacity: 0.85;
}

.store-badge small {
  font-size: 0.68rem;
}

.store-badge strong {
  font-size: 1.05rem;
  font-weight: 600;
}

.store-badge.disabled {
  background: transparent;
  color: var(--muted);
  border: 1px dashed var(--border);
  cursor: default;
}

.store-badge-image {
  display: block;
  height: 44px;
  width: auto;
}

.app-meta {
  margin-top: 14px;
  font-size: 0.88rem;
}

@media (max-width: 480px) {
  .app-card {
    flex-direction: column;
  }
}

/* ---------- Contact ---------- */

.contact {
  text-align: center;
}

.contact .section-intro {
  margin-left: auto;
  margin-right: auto;
}

.contact-email {
  display: inline-block;
  font-size: clamp(1.25rem, 4vw, 1.9rem);
  font-weight: 650;
  text-decoration: none;
  word-break: break-all;
  border-bottom: 2px solid var(--accent-soft);
}

.contact-email:hover {
  border-bottom-color: var(--accent);
}


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

.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--text);
}

/* ---------- Document pages (privacy policy) ---------- */

.doc {
  max-width: 720px;
  padding: 64px 24px 96px;
}

.doc h1 {
  font-size: clamp(2rem, 5vw, 2.6rem);
}

.doc h2 {
  margin-top: 48px;
  font-size: 1.5rem;
}

.doc h3 {
  margin-top: 28px;
  font-size: 1.1rem;
}

.doc .updated {
  color: var(--muted);
  margin-top: 8px;
}

.doc table {
  width: 100%;
  margin: 16px 0;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.doc th,
.doc td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.doc th {
  font-weight: 600;
}

.table-scroll {
  overflow-x: auto;
}

.doc .disclaimer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-style: italic;
}

@media (max-width: 560px) {
  section {
    padding: 64px 0;
  }

  .hero {
    padding: 72px 0 64px;
  }

  .site-nav {
    gap: 18px;
  }
}
