/* Public site styles: mobile-first, no frameworks, no external fonts */
:root {
	--accent: #1a73e8;
	--accent-dark: #1558b0;
	--text: #1f2933;
	--muted: #5f6b7a;
	--bg: #ffffff;
	--bg-alt: #f4f6f9;
	--border: #e1e5ea;
	--max: 1100px;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	line-height: 1.6;
	color: var(--text);
	background: var(--bg);
}

img { max-width: 100%; height: auto; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }

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

/* Header */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; min-height: 60px; }
.brand { font-weight: 700; font-size: 1.2rem; color: var(--text); text-decoration: none; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; width: 100%; padding: 8px 0; }
.site-nav a { color: var(--text); text-decoration: none; }
.site-nav a:hover { color: var(--accent); }
.site-nav-static { width: auto; }
.menu-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 6px; font-size: 1.3rem; padding: 2px 10px; cursor: pointer; }
.lang-switch { display: inline-flex; gap: 8px; }
.lang-current { font-weight: 700; }

/* With JS the menu collapses on mobile */
.js .menu-toggle { display: block; }
.js .site-nav { display: none; flex-direction: column; align-items: flex-start; }
.js .site-nav.open { display: flex; }

/* Hero */
.hero { padding: 56px 0; background: var(--bg-alt); text-align: center; }
.hero-subtitle { font-size: 1.15rem; color: var(--muted); max-width: 700px; margin: 0 auto 24px; }

/* Buttons */
.btn { display: inline-block; padding: 12px 24px; background: var(--accent); color: #fff; border-radius: 8px; text-decoration: none; font-weight: 600; }
.btn:hover { background: var(--accent-dark); }

/* Sections and grid */
.section { padding: 48px 0; }
.section-alt { background: var(--bg-alt); }
.cta { text-align: center; background: var(--bg-alt); }
.grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.card { border: 1px solid var(--border); border-radius: 10px; padding: 20px; background: var(--bg); }

/* Footer */
.site-footer { padding: 24px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem; }

@media (min-width: 720px) {
	h1 { font-size: 2.6rem; }
	.hero { padding: 88px 0; }
	.grid-2 { grid-template-columns: repeat(2, 1fr); }
	.grid-3 { grid-template-columns: repeat(3, 1fr); }

	/* Desktop: menu always visible inline, toggle hidden */
	.site-nav, .js .site-nav { display: flex; flex-direction: row; width: auto; padding: 0; }
	.js .menu-toggle { display: none; }
}

/* Cards, icons, lists */
.card { min-width: 0; overflow-wrap: break-word; }
.card h3 { font-size: 1.1rem; margin-bottom: .4em; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.card p { margin: 0 0 .6em; color: var(--muted); }
.card-icon { color: var(--accent); margin-bottom: 8px; }
.points { margin: 0; padding-left: 1.1em; color: var(--muted); }
.points-large { font-size: 1.05rem; color: var(--text); }
.points-large li { margin-bottom: .5em; }
.intro { max-width: 760px; color: var(--muted); margin: 0 0 24px; }
.note { color: var(--muted); font-size: .9rem; margin-top: 16px; }
.btn-small { padding: 6px 14px; font-size: .9rem; }
.post-card img { border-radius: 6px; margin-bottom: 8px; }
.post-date { font-size: .85rem; }

/* Features: in-page nav and scenarios */
.page-nav { border-bottom: 1px solid var(--border); background: var(--bg); }
.page-nav .container { display: flex; flex-wrap: wrap; gap: 6px 16px; padding-top: 12px; padding-bottom: 12px; font-size: .95rem; }
.page-nav a { text-decoration: none; }
.scenario-body { display: grid; gap: 24px; align-items: start; }
.result { margin-top: 20px; padding: 14px 18px; border-left: 4px solid var(--accent); background: var(--bg); }

/* Steps */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; max-width: 760px; }
.steps li { counter-increment: step; position: relative; padding: 0 0 18px 52px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; text-align: center; line-height: 34px; }
.steps strong { display: block; }

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--border); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 8px 0 0; color: var(--muted); }

/* Plans and stats */
.plan-price { font-size: 1.8rem; font-weight: 700; color: var(--text) !important; }
.plan-price small { font-size: .85rem; font-weight: 400; color: var(--muted); }
.plan dl { margin: 0 0 12px; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: .95rem; }
.plan dt { color: var(--muted); }
.plan dd { margin: 0; text-align: right; font-weight: 600; }
.stat { text-align: center; }
.stat-value { font-size: 2rem; font-weight: 700; color: var(--accent) !important; margin: 0; }

@media (min-width: 720px) {
	.scenario-body { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
	.grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.plan-features-label { font-weight: 600; color: var(--text) !important; margin-bottom: .3em !important; }

/* Icons: <span class="icon icon-NAME"></span>, drawn with a mask so they take the text colour */
.icon { display: inline-block; width: 28px; height: 28px; background-color: currentColor; -webkit-mask: var(--icon, none) center / contain no-repeat; mask: var(--icon, none) center / contain no-repeat; }
.icon { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3C/svg%3E"); }
.icon-editor { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='7' height='6' rx='1'/%3E%3Crect x='14' y='14' width='7' height='6' rx='1'/%3E%3Cpath d='M10 7h4v10'/%3E%3C/svg%3E"); }
.icon-form { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='3' width='14' height='18' rx='2'/%3E%3Cpath d='M9 8h6M9 12h6M9 16h4'/%3E%3C/svg%3E"); }
.icon-ai { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l2 5 5 2-5 2-2 5-2-5-5-2 5-2z'/%3E%3Cpath d='M19 16l.8 2.2L22 19l-2.2.8L19 22l-.8-2.2L16 19l2.2-.8z'/%3E%3C/svg%3E"); }
.icon-calendar { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
.icon-broadcast { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12v-1a8 8 0 0116 0v1'/%3E%3Cpath d='M7 12v-1a5 5 0 0110 0v1'/%3E%3Ccircle cx='12' cy='14' r='2'/%3E%3Cpath d='M12 16v5'/%3E%3C/svg%3E"); }
.icon-chart { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20V4'/%3E%3Cpath d='M4 20h16'/%3E%3Cpath d='M8 16v-4M12 16V8M16 16v-6'/%3E%3C/svg%3E"); }

/* A button inside the header navigation keeps white text (the nav link colour must not win over .btn) */
.site-nav a.btn, .site-nav a.btn:hover { color: #fff; }
/* No menu on this page: the header keeps the language switch and the button visible on mobile too */
.js .site-nav.site-nav-static { display: flex; flex-direction: row; width: auto; }
