:root {
  --ink: #16213E;
  --sub: #4A5470;
  --muted: #7A839C;
  --line: #E3E6EE;
  --paper: #F6F7FB;
  --white: #FFFFFF;
  --blue: #2F55D6;
  --yellow: #FFC83D;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, .logo, .btn { font-family: Poppins, system-ui, sans-serif; }
h1 { font-size: clamp(2rem, 6vw, 2.6rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 16px; }
h2 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 16px; }
p { margin: 0 0 1em; }

.page { max-width: 640px; margin: 0 auto; padding: 56px 20px 40px; }

/* Top line */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1rem; text-decoration: none; }
.logo i {
  font-style: normal; background: var(--ink); color: var(--yellow); font-size: 0.72rem; font-weight: 800;
  padding: 4px 7px; border-radius: 6px;
}

/* Intro */
.intro { margin-top: 24px; }
.avatar {
  width: 112px; height: 112px; border-radius: 50%; object-fit: cover; object-position: 50% 22%;
  border: 4px solid var(--white); box-shadow: 0 6px 24px -8px rgba(22,33,62,0.35); margin-bottom: 24px;
}
.intro p { color: var(--sub); font-size: 1.1rem; }
.intro h1 span { color: var(--blue); }

/* Social links */
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.social {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 0.95rem;
  transition: border-color 0.15s, transform 0.15s;
}
.social:hover { border-color: var(--ink); transform: translateY(-1px); }
.social svg { width: 22px; height: 22px; flex: none; }

/* Sections */
.section { margin-top: 56px; }

/* Guide teaser */
.teaser {
  display: flex; gap: 20px; align-items: center; padding: 20px; border-radius: 16px; background: var(--ink);
  color: var(--white); text-decoration: none; transition: transform 0.15s;
}
.teaser:hover { transform: translateY(-2px); }
.teaser img { width: 92px; border-radius: 6px; flex: none; box-shadow: 0 6px 18px -6px rgba(0,0,0,0.6); }
.teaser .k { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--yellow); margin: 0 0 4px; }
.teaser .t { font-family: Poppins, sans-serif; font-weight: 700; font-size: 1.15rem; line-height: 1.3; margin: 0 0 6px; }
.teaser .d { color: #C9D1E6; font-size: 0.95rem; margin: 0; }

/* FAQ */
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 48px 16px 20px; font-weight: 600; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 1.3rem; font-weight: 400; color: var(--muted);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 20px 4px; color: var(--sub); }

/* Footer */
.foot { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-block; background: var(--ink); color: var(--white); font-weight: 600; text-decoration: none;
  padding: 14px 22px; border-radius: 10px; border: 0; font-size: 1rem; cursor: pointer;
}
.btn:hover { background: #22305A; }

/* Guide page */
.guide { margin-top: 40px; background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 32px;
  box-shadow: 0 20px 50px -30px rgba(22,33,62,0.35); }
.guide.first { margin-top: 0; }
.guide .cover { width: 150px; border-radius: 8px; box-shadow: 0 12px 30px -10px rgba(22,33,62,0.5); margin: 0 0 24px; }
.guide .k { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); margin: 0 0 8px; }
.guide .lead { color: var(--sub); font-size: 1.05rem; }
.signup { display: grid; gap: 10px; margin-top: 24px; }
.signup input {
  font: inherit; padding: 13px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper);
  color: var(--ink);
}
.signup input:focus { outline: none; border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 3px rgba(47,85,214,0.15); }
.signup .btn { width: 100%; margin-top: 4px; }
.signup .btn:disabled { opacity: 0.7; cursor: default; }
.hp { position: absolute; left: -9999px; }
.error { color: #C23A50; font-size: 0.9rem; margin: 0; min-height: 1.2em; }
.fine { color: var(--muted); font-size: 0.85rem; margin: 0; }
.thanks { margin-top: 24px; padding: 20px; border-radius: 12px; background: #EAF6EF; color: #1E6B40; }
.thanks b { display: block; font-family: Poppins, sans-serif; font-size: 1.1rem; margin-bottom: 4px; color: #155232; }
.thanks p { margin: 0; }

/* Small pages (unsubscribe) */
.simple { max-width: 560px; margin: 0 auto; padding: 56px 20px; }
.simple h1 { margin-top: 40px; }
.simple p { color: var(--sub); }

@media (max-width: 520px) {
  body { font-size: 16px; }
  .page { padding-top: 32px; }
  .intro { margin-top: 16px; }
  .guide { padding: 24px 20px; }
  .teaser img { width: 72px; }
}
