/* Let's Natter website: the app's play-dough look (cream, navy, mint, saffron; Fredoka + Nunito). */
:root {
  --navy: #22305a; --muted: #6b7591; --faint: #a3abc2; --line: #e6e9f2;
  --cream: #fbf8f2; --card: #ffffff; --mint: #9fdcb6; --mint-deep: #5fb98a;
  --saffron: #f6c46a; --gold: #f2a33e; --coral: #f28b6e; --sky: #cfe3f5; --ocean: #4a86db; --lilac: #f5f1ff;
  --shadow: 0 10px 0 rgba(34, 48, 90, 0.07), 0 18px 40px rgba(34, 48, 90, 0.10);
  --radius: 28px;
  --head: 'Fredoka', system-ui, sans-serif;
  --body: 'Nunito', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--navy); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ocean); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }
.eyebrow { font-family: var(--body); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; color: var(--muted); margin-bottom: .6em; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(251, 248, 242, .88); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-family: var(--head); font-weight: 700; font-size: 1.35rem; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--navy); text-decoration: none; font-weight: 700; font-size: .98rem; }
.nav a:hover { color: var(--ocean); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; }
@media (max-width: 720px) { .nav a:not(.btn) { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 14px 26px; font-family: var(--body); font-weight: 800; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.btn:active { transform: translateY(2px); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 5px 0 #141d3a; }
.btn-primary:hover { color: #fff; box-shadow: 0 6px 0 #141d3a; transform: translateY(-1px); }
.btn-secondary { background: #fff; color: var(--navy); border-color: var(--line); box-shadow: 0 4px 0 var(--line); }
.btn-small { padding: 9px 18px; font-size: .92rem; }

/* hero */
.hero { padding: 48px 0 30px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero p.lead { font-size: 1.22rem; color: var(--muted); max-width: 34ch; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero .note { font-size: .9rem; color: var(--muted); margin-top: 14px; }
.hero-art { position: relative; }
.hero-art img { width: 100%; max-width: 520px; margin-inline: auto; animation: float 6s ease-in-out infinite; filter: drop-shadow(0 30px 30px rgba(34, 48, 90, .16)); }
.bubble { position: absolute; background: #fff; border-radius: 22px; padding: 12px 18px; box-shadow: var(--shadow); font-weight: 800; font-size: 1rem; }
.bubble small { display: block; font-weight: 600; color: var(--muted); font-size: .82rem; }
.bubble.b1 { top: 6%; left: 0; }
.bubble.b2 { bottom: 10%; right: 0; }
.bubble .rom { font-style: italic; color: var(--ocean); font-weight: 700; font-size: .85rem; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-14px) rotate(1deg); } }
@media (prefers-reduced-motion: reduce) { .hero-art img { animation: none; } html { scroll-behavior: auto; } }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-inline: auto; }
  .hero .ctas { justify-content: center; }
  .bubble { display: none; }
}

/* sections */
section { padding: 70px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 860px) { .cards3, .cards2 { grid-template-columns: 1fr; } }
.card { background: var(--card); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.step { text-align: center; }
.step img { width: 120px; height: 120px; object-fit: contain; margin: 0 auto 10px; }
.step .num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--saffron); font-family: var(--head); font-weight: 700; margin-bottom: 8px; }

.feature { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: start; }
.feature img { width: 96px; height: 96px; object-fit: contain; }
.feature h3 { margin-bottom: .3em; }
.feature p { margin: 0; color: var(--muted); }

.band { background: #fff; }
.langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.lang { background: var(--cream); border: 2px solid var(--line); border-radius: 999px; padding: 10px 18px; font-weight: 800; }
.lang span { font-weight: 600; color: var(--muted); margin-left: 6px; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }
.plan { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; border: 3px solid transparent; }
.plan.popular { border-color: var(--saffron); }
.plan.max { background: var(--lilac); }
.plan .tag { align-self: flex-start; background: #fdf0d7; border-radius: 999px; padding: 4px 12px; font-weight: 800; font-size: .8rem; margin-bottom: 10px; }
.plan .price { font-family: var(--head); font-weight: 700; font-size: 2.6rem; margin: 4px 0 2px; }
.plan .price small { font-family: var(--body); font-size: 1rem; color: var(--muted); font-weight: 700; }
.plan ul { list-style: none; padding: 0; margin: 16px 0 22px; display: grid; gap: 9px; flex: 1; }
.plan li { padding-left: 30px; position: relative; }
.plan li::before { content: ''; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--mint-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.small-print { text-align: center; font-size: .9rem; color: var(--muted); margin-top: 24px; }

/* faq */
.faq details { background: #fff; border-radius: 20px; padding: 18px 22px; box-shadow: 0 4px 0 var(--line); margin-bottom: 12px; }
.faq summary { font-weight: 800; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--head); font-size: 1.4rem; line-height: 1; color: var(--ocean); }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* legal pages */
.doc { padding: 40px 0 70px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.doc h2 { font-size: 1.45rem; margin-top: 1.8em; }
.doc .updated { color: var(--muted); font-size: .92rem; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: .4em; }
.doc table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .95rem; background: #fff; border-radius: 16px; overflow: hidden; }
.doc th, .doc td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { background: #f5f7fc; }
.box { background: #fff; border-radius: 20px; padding: 18px 22px; box-shadow: 0 4px 0 var(--line); margin: 1.2em 0; }

/* single-message pages (thanks / cancelled) */
.message { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px 0; }
.message img { width: 220px; margin: 0 auto 10px; animation: float 6s ease-in-out infinite; }
.message .btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 18px; }

/* footer */
footer { background: var(--navy); color: #dfe4f2; padding: 44px 0 30px; margin-top: 40px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
footer a { color: #fff; text-decoration: none; font-weight: 700; }
footer a:hover { text-decoration: underline; }
footer .links { display: flex; flex-wrap: wrap; gap: 18px; }
footer .fine { width: 100%; font-size: .85rem; color: #aab3cf; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 18px; }
