/* FoldSync site — shared styles */
:root {
  --bg0: #0a1f1e;
  --bg1: #102e2c;
  --bg2: #163b38;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.12);
  --text: #f2faf7;
  --muted: #a8c4be;
  --accent: #3dba9a;
  --accent-2: #7ad6a3;
  --accent-deep: #0d6b69;
  --link: #8eefc4;
  --danger-soft: #ffb4a8;
  --radius: 16px;
  --max: 720px;
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --font-body: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(61, 186, 154, 0.28), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(13, 107, 105, 0.45), transparent 50%),
    linear-gradient(165deg, var(--bg0), var(--bg1) 45%, var(--bg2));
  background-attachment: fixed;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  padding-block: 2rem 4rem;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  color: inherit;
  text-decoration: none;
}

.brand:hover {
  color: inherit;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent-2));
  font-size: 0.85rem;
  font-weight: 700;
  color: #062e2a;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  align-items: center;
  font-size: 0.95rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
}

.lang-switch a {
  padding: 0.35rem 0.75rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}

.lang-switch a[aria-current="true"] {
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  color: #062e2a;
}

.hero {
  margin-bottom: 2rem;
}

.hero h1 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero .lede {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 38rem;
}

.meta {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  backdrop-filter: blur(10px);
}

.card + .card {
  margin-top: 1rem;
}

.card h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.card h3 {
  margin: 1.1rem 0 0.4rem;
  font-size: 1.05rem;
}

.card p,
.card ul {
  margin: 0 0 0.75rem;
  color: var(--muted);
}

.card ul {
  padding-left: 1.2rem;
}

.card li + li {
  margin-top: 0.35rem;
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 650;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--accent-deep), var(--accent-2));
  color: #062e2a;
}

.button-primary:hover {
  color: #062e2a;
}

.button-ghost {
  background: var(--surface-strong);
  border-color: var(--border);
  color: var(--text);
}

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

.site-footer {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.88rem;
}

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

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

.grid-2 {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-line {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.95rem;
  color: var(--accent-2);
}
