@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&display=swap');

:root {
  --bg: #faf9f6;
  --card: #ffffff;
  --ink: #211d1a;
  --ink-soft: #6b645c;
  --border: #e7e3dc;
  --primary: #0e5c4c;
  --primary-dark: #0a4739;
  --primary-tint: #e7f1ee;
  --accent: #e8a33d;
  --accent-tint: #fdf3e2;
  --success: #1a7a4c;
  --danger: #c23b3b;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  margin: 0;
  line-height: 1.55;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ── Header ── */
.header { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--primary); color: var(--accent-tint);
  display: flex; align-items: center; justify-content: center;
}
.nav { display: flex; gap: 28px; align-items: center; }
.nav a.navlink { color: var(--ink-soft); font-size: 15px; font-weight: 600; }
.nav a.navlink:hover { color: var(--ink); text-decoration: none; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--primary); color: white; border: none; padding: 13px 24px;
  border-radius: var(--radius-sm); font-size: 15px; font-weight: 700; cursor: pointer;
  transition: background 0.15s, transform 0.1s; font-family: inherit;
}
.btn:hover { background: var(--primary-dark); text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--border); }
.btn-outline:hover { background: var(--primary-tint); border-color: var(--primary); }
.btn-accent { background: var(--accent); color: #402c05; }
.btn-accent:hover { background: #d99328; }
.btn-sm { padding: 9px 16px; font-size: 13px; border-radius: 8px; }
.btn-danger { background: #fdf0f0; color: var(--danger); }
.btn-danger:hover { background: #fbe1e1; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Form ── */
input[type=text], input[type=email], input[type=password], input {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--border);
  font-size: 15px; background: white; color: var(--ink); font-family: inherit; font-weight: 600;
}
input:focus { outline: none; border-color: var(--primary); }
label { font-size: 13px; font-weight: 700; color: var(--ink-soft); display: block; margin-bottom: 6px; }

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px;
}
.hint { color: var(--ink-soft); font-size: 13.5px; }
.icon { width: 22px; height: 22px; stroke: var(--primary); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 20px; font-size: 12.5px; font-weight: 700; }
.badge-paid { background: #e5f6ec; color: var(--success); }
.badge-trial { background: var(--accent-tint); color: #96660c; }
.badge-expired { background: #fdf0f0; color: var(--danger); }

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 28px; margin-top: 72px; background: #fcfbf9; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-grid h4 { font-size: 13px; margin: 0 0 12px; color: var(--ink); }
.footer-grid a { display: block; color: var(--ink-soft); font-size: 14px; margin-bottom: 9px; font-weight: 600; }
.footer-grid a:hover { color: var(--primary); text-decoration: none; }
.footer-legal { border-top: 1px solid var(--border); padding-top: 22px; color: var(--ink-soft); font-size: 12.5px; line-height: 1.8; }

/* ── Cookie banner ── */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 620px; margin: 0 auto;
  background: var(--ink); color: #f3f1ec; border-radius: var(--radius); padding: 20px 22px;
  display: none; flex-direction: column; gap: 14px; z-index: 200; box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}
.cookie-banner p { margin: 0; font-size: 13.5px; line-height: 1.5; }
.cookie-banner a { color: #f3f1ec; text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { flex: 1; min-width: 110px; padding: 10px 16px; font-size: 13.5px; }
.cookie-actions .btn-outline { background: transparent; color: #f3f1ec; border: 1.5px solid rgba(255,255,255,0.25); }
.cookie-actions .btn-outline:hover { background: rgba(255,255,255,0.08); }
.cookie-actions .btn-text { flex: 0; background: none; color: #a19c94; padding: 10px 4px; }
.cookie-actions .btn-text:hover { color: #f3f1ec; background: none; }

.cookie-modal-bg { position: fixed; inset: 0; background: rgba(33,29,26,0.45); display: none; align-items: center; justify-content: center; z-index: 300; padding: 16px; }
.cookie-modal { background: white; border-radius: var(--radius); padding: 26px; width: 100%; max-width: 440px; }
.cookie-option { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cookie-option:last-of-type { border-bottom: none; }
.cookie-option h4 { font-size: 14.5px; margin: 0 0 4px; }
.cookie-option p { margin: 0; font-size: 13px; color: var(--ink-soft); }
.switch { position: relative; width: 42px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track { position: absolute; inset: 0; background: var(--border); border-radius: 24px; cursor: pointer; transition: background 0.15s; }
.switch .track::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: white; border-radius: 50%; transition: transform 0.15s; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.switch input:checked + .track { background: var(--primary); }
.switch input:checked + .track::before { transform: translateX(18px); }
.switch input:disabled + .track { background: var(--primary); opacity: 0.5; cursor: not-allowed; }

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
