/* ===== Base & palette ===== */
:root {
	--burgundy: #58010a;
	--burgundy-light: #7a0210;
	--gold: #fdbf57;
	--gold-dark: #b2740e;
	--gold-deep: #4a2500;
	--text: #444444;
	--text-muted: #666666;
	--cream: #f5e6d0;
	--white: #ffffff;
	--container: 950px;
}

div#flash_messages {
	font-weight: bold;
	text-align: center;
	color: #333;
	padding: 5px;
	background: #fea;
	border-radius: 5px;
	box-shadow: #ccc 0 3px 5px;
}

.error_message { margin-left: 3px; float: left; color: red; }

.errorExplanation {
	font-size: 16px;
	margin: 3px auto;
	width: 60%;
	text-align: center;
	padding: 20px 35px 0 20px;
	color: red;
}
.errorExplanation h2 { font-size: 16px; }
.errorExplanation ul { font-size: 12px; text-align: left; }
.errorExplanation .error_status { color: red; }
.errorExplanation #flash-error { color: red; }
.errorExplanation #flash-success { color: green; }

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

body {
	background-color: var(--burgundy);
	padding: 0;
	margin: 0;
	font-family: Arial, Helvetica, sans-serif;
	line-height: 1.45;
	font-size: 14px;
	color: var(--text);
}

img {
	border: 0;
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

p { margin-top: 0; }

h1 {
	padding: 0;
	margin: 0;
	color: var(--gold);
	font-weight: normal;
	font-size: 230%;
	line-height: 1.1;
	font-family: Palatino, Georgia, serif;
}

h2 {
	padding: 0;
	margin: 0;
	color: var(--gold-dark);
	font-weight: normal;
	font-size: 160%;
	line-height: 1.1;
	font-family: Palatino, Georgia, serif;
}

h3 {
	padding: 0;
	margin: 0;
	color: var(--gold-dark);
	font-weight: normal;
	font-size: 130%;
	line-height: 1.1;
	font-family: Palatino, Georgia, serif;
}

h4 {
	padding: 0;
	margin: 0;
	color: var(--gold-dark);
	font-weight: normal;
	font-size: 110%;
	line-height: 1.1;
}

label {
	width: 150px;
	padding-right: 10px;
	text-align: right;
	display: block;
	float: left;
	height: 24px;
}

label.wide { width: 210px; }

br { clear: both; }
li { font-size: 100%; }
form { margin: 0; }

input.x-small { width: 25px; }
input.small { width: 35px; }
input.medium { width: 107px; }
input.medium-large { width: 175px; }
input.full { width: 245px; float: left; }
select.full { width: 250px; float: left; }

a:link,
a:visited {
	color: var(--burgundy);
	text-decoration: underline;
}

a:hover { text-decoration: underline; }

.clear { clear: both; }
.right { float: right; }
.center { text-align: center; }

/* ===== Layout shell ===== */
.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 12px;
}

/* ===== App switcher (inner pages) ===== */
.app-switcher {
	background: var(--white);
	padding: 10px 16px;
	border-bottom: 1px solid #ddd;
}

.app-switcher h3 {
	margin: 0;
	font-size: 1.05em;
	font-family: Arial, Helvetica, sans-serif;
	color: var(--text);
}

a.current_app {
	background: #ddd;
	font-size: 1.05em;
	padding: 3px 6px;
	border-radius: 3px;
	text-decoration: none;
}

/* ===== Header ===== */
.header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	background: var(--white);
	padding: 12px 20px;
	margin-top: 8px;
	border-radius: 8px 8px 0 0;
}

.logo img {
	display: block;
	max-height: 48px;
	width: auto;
}

.top-nav {
	display: flex;
	align-items: center;
	gap: 20px;
}

.top-nav a {
	color: var(--burgundy);
	font-weight: bold;
	font-size: 15px;
	text-decoration: none;
}

.top-nav a:hover {
	color: var(--gold-dark);
	text-decoration: underline;
}

/* ===== Hero banner (homepage) ===== */
.banner {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px 24px;
	padding: 28px 24px 56px;
	background: linear-gradient(180deg, var(--burgundy-light) 0%, var(--burgundy) 100%);
	position: relative;
}

.banner-left {
	flex: 1 1 300px;
	min-width: 0;
	order: 1;
}

.homepage_headline h1 strong {
	font-weight: bold;
	color: var(--gold);
}

.banner .blurb {
	color: var(--cream);
	margin-top: 12px;
	clear: both;
}

.banner .blurb p {
	color: var(--cream);
	margin-bottom: 8px;
	line-height: 1.5;
}

.banner .yellow-link,
.yellow-link {
	color: var(--gold) !important;
	font-weight: bold;
}

.banner .movie {
	flex: 0 1 240px;
	align-self: center;
	text-align: center;
	order: 2;
}

.banner .movie img {
	max-width: 240px;
	width: 100%;
}

.signup-wrap {
	flex-shrink: 0;
	float: right;
	margin: 0 0 12px 16px;
}

/* ===== Buttons ===== */
.btn-signup,
.btn-sign-in,
.btn-twitter-sign-in {
	display: inline-block;
	padding: 16px 22px;
	border: none;
	border-radius: 10px;
	background: linear-gradient(180deg, #ffe566 0%, var(--gold) 55%, #e5a030 100%);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.55);
	color: var(--gold-deep);
	font-weight: bold;
	font-size: 14px;
	font-family: Arial, Helvetica, sans-serif;
	text-decoration: none;
	text-align: center;
	line-height: 1.25;
	text-transform: uppercase;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-signup:hover,
.btn-sign-in:hover,
.btn-twitter-sign-in:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.55);
	color: var(--gold-deep);
	text-decoration: none;
}

.btn-signup--inline {
	font-size: 13px;
	padding: 14px 28px;
}

.btn-sign-in {
	font-size: 13px;
	padding: 12px 32px;
	text-transform: none;
}

.btn-twitter-sign-in {
	background: linear-gradient(180deg, #6ecbf5 0%, #1da1f2 55%, #0d8bd9 100%);
	color: var(--white);
	text-transform: none;
	font-size: 15px;
	padding: 14px 28px;
}

.btn-twitter-sign-in:hover {
	color: var(--white);
}

.submit-button {
	margin-top: 12px;
	clear: both;
}

/* ===== Short banner (inner pages) ===== */
.banner-short {
	padding: 22px 24px 48px;
	background: linear-gradient(180deg, var(--burgundy-light) 0%, var(--burgundy) 100%);
}

.banner-short h1 {
	color: var(--gold);
}

.banner-short h1 strong {
	font-weight: bold;
}

/* ===== White content card ===== */
.content {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 24px 20px;
	background: var(--white);
	margin: -36px 0 0;
	padding: 28px 24px 20px;
	border-radius: 12px 12px 0 0;
	position: relative;
	z-index: 1;
	box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.12);
}

.content-bottom {
	height: 16px;
	background: var(--white);
	border-radius: 0 0 12px 12px;
	margin-bottom: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ===== Three-column homepage ===== */
.content-left {
	flex: 1 1 280px;
	min-width: 0;
}

.content-center {
	flex: 1 1 220px;
	min-width: 0;
}

.content-right {
	flex: 1 1 220px;
	min-width: 0;
}

/* ===== Stats counter ===== */
.counter {
	background: linear-gradient(180deg, #ffe082 0%, var(--gold) 100%);
	padding: 16px 14px;
	border-radius: 8px;
	margin-bottom: 22px;
	box-shadow: 0 0 18px rgba(253, 191, 87, 0.55);
}

.counter p {
	color: var(--burgundy);
	font-weight: bold;
	font-size: 16px;
	margin: 0;
	line-height: 1.35;
}

/* ===== Feature list ===== */
.list-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 18px;
}

.list-item img,
.list-item .icon-check {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
}

.list-item h3 {
	margin-bottom: 5px;
}

.list-item p {
	color: var(--text);
	font-size: 13px;
	line-height: 1.5;
	margin: 0;
}

/* ===== Suite column ===== */
.one-third-box h2 {
	margin-bottom: 4px;
}

.one-third-box h3 {
	font-size: 110%;
	margin-bottom: 14px;
	color: var(--text-muted);
	font-family: Palatino, Georgia, serif;
}

.one-third-box p {
	color: var(--text);
	font-size: 13px;
	line-height: 1.45;
	margin: 0 0 18px;
}

.small-logo {
	display: inline-block;
	max-width: 190px;
	height: auto;
	margin: 6px 0;
}

/* ===== Tweet feed ===== */
.content-right .bird-box {
	text-align: right;
	margin: -8px 0 4px;
}

.content-right .bird-box img {
	width: 48px;
	height: auto;
}

.content-right > .center h2 {
	margin-bottom: 8px;
}

.content-right > .center a {
	color: var(--burgundy);
	font-size: 13px;
}

.hide-tweet-overflow {
	max-height: none;
	overflow: visible;
}

.tweet {
	border-bottom: 1px solid #e8e8e8;
	padding: 10px 0;
}

.tweet:last-child {
	border-bottom: none;
}

.tweet .headline {
	color: var(--burgundy);
	font-size: 13px;
	line-height: 1.5;
}

.tweet .headline a {
	color: var(--gold-dark);
	word-break: break-word;
}

.tweet-date {
	color: var(--text-muted);
	float: right;
	font-size: 11px;
	margin-left: 8px;
}

.tweet--important .headline {
	color: #8b1a1a;
	font-weight: bold;
}

/* ===== Inner page columns ===== */
.wide-column {
	flex: 1 1 55%;
	min-width: 0;
}

.narrow-column {
	flex: 1 1 35%;
	min-width: 0;
}

/* ===== Box component ===== */
.box {
	background: var(--white);
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	margin-bottom: 20px;
	overflow: hidden;
	border: 1px solid #e0e0e0;
}

.box-top {
	height: 6px;
	background: linear-gradient(180deg, #d8d8d8 0%, var(--white) 100%);
}

.box-bottom {
	height: 6px;
	background: linear-gradient(180deg, var(--white) 0%, #d8d8d8 100%);
}

.box-middle {
	padding: 20px 24px;
	color: var(--text);
}

.box-middle p {
	line-height: 1.55;
	margin-bottom: 12px;
}

.forgot-link {
	text-align: right;
	font-size: 12px;
}

.forgot-link a {
	color: var(--gold-dark);
}

.trial-options {
	border: 1px solid #ccc;
	width: 100%;
	max-width: 480px;
	margin: 14px auto;
	padding: 16px;
	border-radius: 6px;
	background: #fafafa;
}

.trial-options p {
	font-weight: bold;
	text-align: left;
	margin-bottom: 10px;
	color: var(--burgundy);
}

.trial-options label {
	height: auto;
	float: none;
	margin: 0 0 8px;
	width: auto;
	text-align: left;
	display: block;
	color: var(--text);
}

.trial-intro {
	font-size: 16px;
	display: block;
	width: 100%;
	max-width: 520px;
	margin: 10px auto;
	color: var(--text);
	line-height: 1.5;
}

/* ===== Footer ===== */
.footer {
	color: var(--cream);
	text-align: center;
	padding: 20px 12px 36px;
	font-size: 13px;
	line-height: 1.6;
}

.footer a {
	color: var(--gold);
}

.footer a:hover {
	color: var(--white);
}

.footer a.light {
	color: var(--gold);
}

.footer small {
	color: rgba(245, 230, 208, 0.85);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
	h1 { font-size: 180%; }
	h2 { font-size: 140%; }

	.header {
		padding: 10px 14px;
		border-radius: 0;
		margin-top: 0;
	}

	.container {
		padding: 0;
	}

	.banner,
	.banner-short {
		padding: 20px 16px 44px;
	}

	.banner .movie {
		flex: 1 1 100%;
		order: 3;
	}

	.banner-left {
		flex: 1 1 100%;
		order: 1;
	}

	.signup-wrap {
		float: none;
		margin: 16px 0;
		display: block;
	}

	.btn-signup {
		display: block;
		width: 100%;
	}

	.content {
		margin-top: -28px;
		padding: 20px 16px 16px;
		border-radius: 10px 10px 0 0;
		gap: 20px;
	}

	.content-left,
	.content-center,
	.content-right,
	.wide-column,
	.narrow-column {
		flex: 1 1 100%;
	}

	.content-right .bird-box {
		text-align: center;
		margin: 0 0 8px;
	}

	label {
		width: 100%;
		float: none;
		text-align: left;
		height: auto;
		margin-bottom: 4px;
	}

	input.full,
	select.full {
		width: 100%;
		float: none;
		margin-bottom: 10px;
	}

	.errorExplanation {
		width: 95%;
		padding: 16px;
	}
}

@media (max-width: 480px) {
	h1 { font-size: 155%; }

	.top-nav {
		width: 100%;
		justify-content: flex-end;
	}

	.counter p {
		font-size: 14px;
	}

	.list-item {
		gap: 10px;
	}
}
