/* MojaFaktura — main stylesheet */
/* Replaces Skeleton grid with modern CSS */

/************************* reset *************************/

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

html {
	-webkit-text-size-adjust: none;
}

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-size: 18px;
	line-height: 1.6;
	color: #1a1a1a;
	background: #fff;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: #333;
	text-decoration: underline;
}

a:hover {
	color: #ebc02b;
}

p {
	margin: 0 0 1em 0;
}

strong {
	font-weight: 600;
}

ul, ol {
	margin: 0 0 1em 0;
}

h1, h2, h3, h4, h5, h6 {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #1a1a1a;
	line-height: 1.2;
	margin: 0 0 0.5em 0;
}

h1 { font-size: 2em; }
h2 { font-size: 1.5em; }
h3 { font-size: 1.25em; }

/************************* layout *************************/

.container {
	max-width: 960px;
	margin: 0 auto;
	padding: 0 20px;
}

.center {
	text-align: center;
}

.clearfix::after,
.container::after {
	content: "";
	display: table;
	clear: both;
}

.clear {
	clear: both;
}

/* Legacy Skeleton column classes — kept for help pages */
.twelve.columns { width: 100%; }
.nine.columns { width: 74%; float: left; }
.three.columns { width: 24%; float: left; }
.eight.columns { width: 66%; }
.six.columns { width: 48%; float: left; }
.four.columns { width: 32%; float: left; }
.columns { padding: 0 10px; }
.columns.alpha { padding-left: 0; }
.columns.omega { padding-right: 0; }
.offset-by-two { margin-left: 16%; }

/************************* top bar *************************/

.border {
	background-color: #ebc02b;
	height: 4px;
}

nav#mainmenu {
	text-transform: uppercase;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.05em;
}

nav#mainmenu ul {
	list-style: none;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 4px;
	padding: 0;
	margin: 0;
}

nav#mainmenu ul li {
	padding: 18px 18px 14px;
	transition: background-color 0.2s ease;
	border-radius: 4px;
}

nav#mainmenu ul li a {
	text-decoration: none;
	color: #333;
}

nav#mainmenu .active {
	background-color: #ebc02b;
}

#mainmenu .active a {
	color: white;
}

nav#mainmenu ul li:hover {
	background-color: #fff3c4;
}

/************************* header / hero *************************/

header {
	padding: 3em 0;
	background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
	position: relative;
	overflow: hidden;
}

h1.logo {
	text-align: center;
	text-transform: uppercase;
	font-size: 3.5em;
	letter-spacing: -0.03em;
	margin-bottom: 0;
}

header .claim {
	text-align: center;
	max-width: 640px;
	margin: 0 auto;
}

header .claim p {
	font-size: 1.1em;
	color: #555;
}

.hero-cta {
	text-align: center;
	margin: 1.5em 0 2em;
}

.appstore > img {
	display: inline-block;
	transition: transform 0.2s ease;
}

.appstore > img:hover {
	transform: scale(1.05);
}

.hero-devices {
	position: relative;
	max-width: 860px;
	margin: 0 auto;
}

.hero-mac {
	width: 85%;
	margin: 0 auto;
}

.hero-mac img {
}

.hero-phone {
	position: absolute;
	right: 0;
	bottom: -20px;
	width: 20%;
}

.hero-phone img {
	border-radius: 20px;
	box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

/************************* body / content *************************/

#body {
	padding: 3em 0;
}

#body h1 {
	font-size: 1.8em;
	margin-bottom: 0.3em;
}

#body h2 {
	font-size: 1.4em;
	margin-bottom: 0.3em;
}

#body strong {
	color: #ebc02b;
}

#body img {
	max-width: 100%;
}

.section-intro {
	text-align: center;
	margin-bottom: 2.5em;
}

.section-intro h1 {
	font-size: 2.4em;
}

.section-intro p {
	font-size: 1.1em;
	color: #555;
	max-width: 680px;
	margin: 0 auto;
}

/************************* screenshots *************************/

.screenshots-row {
	display: flex;
	justify-content: center;
	gap: 24px;
	margin: 2.5em 0;
	flex-wrap: wrap;
}

.screenshot-phone {
	flex: 0 1 200px;
	max-width: 200px;
}

.screenshot-phone img {
	border-radius: 24px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.12);
	transition: transform 0.3s ease;
}

.screenshot-phone img:hover {
	transform: translateY(-5px);
}

.mac-screenshot {
	margin: 3em 0;
}

.mac-screenshot img {
}

/************************* feature grid *************************/

.feature-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin: 2em 0;
}

/* Override legacy float for cards inside feature-grid */
.feature-grid .six.columns {
	width: 100%;
	float: none;
	padding: 0;
}

.feature-grid .clearfix {
	display: none;
}

.feature-card {
	background: #fafafa;
	border: 1px solid #eee;
	border-radius: 12px;
	padding: 1.5em;
	transition: box-shadow 0.2s ease;
}

.feature-card:hover {
	box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.feature-card h2 {
	color: #ebc02b;
	margin-bottom: 0.4em;
}

.feature-card p {
	font-size: 0.95em;
	color: #444;
	margin-bottom: 0;
}

/************************* pricing *************************/

.pricing-table {
	display: flex;
	justify-content: center;
	gap: 24px;
	margin: 2em 0;
	flex-wrap: wrap;
}

.pricing-card {
	background: #ffffff;
	border: 2px solid #eee;
	border-radius: 16px;
	text-align: center;
	overflow: hidden;
	position: relative;
	flex: 1 1 260px;
	max-width: 300px;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.pricing-card-highlight {
	border-color: #ebc02b;
	box-shadow: 0 4px 20px rgba(235,192,43,0.2);
}

.badge-coming-soon {
	background: #ebc02b;
	color: white;
	font-size: 1.1em;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	padding: 10px 60px;
	position: absolute;
	top: 60px;
	right: -75px;
	transform: rotate(45deg);
	width: 320px;
	text-align: center;
	z-index: 10;
	box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.pricing-badge {
	background: #ebc02b;
	color: white;
	font-size: 0.75em;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	padding: 4px 16px;
	position: absolute;
	top: 14px;
	right: -30px;
	transform: rotate(45deg);
	width: 130px;
}

.pricing-header {
	padding: 2em 1.5em 1em;
}

.pricing-header h2 {
	font-size: 1.3em;
	margin-bottom: 0.3em;
}

.pricing-price {
	font-size: 2.5em;
	font-weight: 700;
	color: #ebc02b;
	line-height: 1.2;
}

.pricing-price span {
	font-size: 0.4em;
	font-weight: 400;
	color: #888;
}

.pricing-period {
	font-size: 0.85em;
	color: #888;
	margin-top: 0.3em;
}

.pricing-features {
	list-style: none;
	padding: 1em 1.5em 2em;
	text-align: left;
}

.pricing-features li {
	padding: 0.5em 0;
	border-bottom: 1px solid #f0f0f0;
	font-size: 0.9em;
	color: #444;
}

.pricing-features li:last-child {
	border-bottom: none;
}

.pricing-note {
	margin-top: 2em;
}

.pricing-note p {
	color: #666;
	font-size: 0.95em;
}

.pricing-callout {
	margin: 2em auto;
	max-width: 680px;
	background: #fffbea;
	border: 1.5px solid #f0c040;
	border-radius: 8px;
	padding: 1em 1.5em;
	font-size: 0.95em;
	color: #555;
	text-align: center;
}

/************************* appstore CTA *************************/

#buy {
	margin-top: 80px;
	text-align: center;
}

/************************* help sidebar *************************/

aside nav {
	font-size: 0.9em;
}

aside nav > ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

aside nav > ul > li {
	margin-bottom: 1.2em;
}

aside nav > ul > li > span {
	display: block;
	font-weight: 700;
	font-size: 0.75em;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #999;
	padding: 0 0 0.4em 0;
	border-bottom: 1px solid #eee;
	margin-bottom: 0.4em;
}

aside nav ul ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

aside nav ul ul li {
	padding: 0;
}

aside nav ul ul li a {
	display: block;
	padding: 5px 10px;
	border-radius: 6px;
	text-decoration: none;
	color: #444;
	transition: background-color 0.15s ease, color 0.15s ease;
}

aside nav ul ul li a:hover {
	background-color: #fff3c4;
	color: #333;
}

aside nav .active a {
	background-color: #ebc02b;
	color: #fff;
	font-weight: 600;
}

/* Top-level sidebar links (FAQ, Privacy) */
aside nav > ul > li > a {
	display: block;
	padding: 5px 10px;
	border-radius: 6px;
	text-decoration: none;
	color: #444;
	transition: background-color 0.15s ease, color 0.15s ease;
}

aside nav > ul > li > a:hover {
	background-color: #fff3c4;
	color: #333;
}

aside nav > ul > li.active > a {
	background-color: #ebc02b;
	color: #fff;
	font-weight: 600;
}

article p {
	text-align: left;
}

article h2 {
	margin-top: 1.8em;
}

article h3 {
	margin-top: 1.2em;
}

article ul {
	list-style-type: disc;
	margin-left: 30px;
}

article li {
	line-height: 1.6;
	margin-bottom: 4px;
}

article dt {
	font-weight: 600;
	text-decoration: underline;
	margin-top: 1em;
}

article dd {
	text-align: left;
	padding-bottom: 1em;
}

article abbr {
	border-bottom: 1px dotted #333;
	cursor: help;
}

article code {
	background: #f5f5f5;
	border: 1px solid #e0e0e0;
	font-size: 0.85em;
	font-family: monospace;
	padding: 2px 6px;
	border-radius: 4px;
}

article .footnotes {
	font-size: 0.8em;
}

article .step-img {
	display: block;
	margin: 1.5em auto;
	padding: 12px;
	border-radius: 24px;
	box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}

/************************* footer *************************/

footer {
	padding: 3em 0;
	text-align: center;
	font-size: 0.75em;
	color: #888;
	border-top: 1px solid #eee;
}

footer p {
	margin: 0 0 0.5em 0;
}

footer a {
	color: #666;
}

footer a:hover {
	color: #ebc02b;
}

footer img {
	display: inline-block;
}

/************************* error *************************/

#error {
	background-color: red;
	color: white;
	padding: 1em;
}

/************************* responsive *************************/

@media (max-width: 768px) {
	.hero-phone {
		position: relative;
		right: auto;
		bottom: auto;
		width: 50%;
		margin: 1.5em auto 0;
	}

	.hero-mac {
		width: 100%;
	}

	.feature-grid {
		grid-template-columns: 1fr;
	}

	.screenshots-row {
		gap: 12px;
	}

	.screenshot-phone {
		flex: 0 1 140px;
		max-width: 140px;
	}

	.pricing-table {
		flex-direction: column;
		align-items: center;
	}

	.pricing-card {
		max-width: 340px;
		width: 100%;
	}

	.section-intro h1 {
		font-size: 1.8em;
	}

	/* Help layout: stack sidebar above content */
	.nine.columns,
	.three.columns {
		width: 100%;
		float: none;
		padding: 0;
	}

	.three.columns {
		margin-bottom: 1.5em;
	}

	h1.logo {
		font-size: 2.5em;
	}

	header .claim p {
		font-size: 1em;
	}
}

@media (max-width: 480px) {
	nav#mainmenu ul {
		flex-direction: column;
		align-items: center;
	}

	nav#mainmenu ul li {
		width: 100%;
		text-align: center;
		padding: 12px 10px;
	}

	.screenshot-phone {
		flex: 0 1 110px;
		max-width: 110px;
	}

	.screenshot-phone img {
		border-radius: 14px;
	}

	header {
		padding: 2em 0;
	}

	h1.logo {
		font-size: 2em;
	}
}
