/* ==========================================================================
   Storyshine — Global styles (base.css)
   Shared by every page. Contents:
     1. Design tokens
     2. Reset & base elements
     3. Typography
     4. Layout (container, sections, grids)
     5. Components: buttons, eyebrow, badges, icons, checks, cards, phone,
        quote, marquee
     6. Site header & footer
     7. Motion (keyframes, reveal-on-scroll, ambient animation)
     8. Responsive (≤ 1024px, ≤ 760px)
   Page-specific styles live in home.css, pricing.css, …
   ========================================================================== */

/* 1. Design tokens ======================================================== */
:root {
  /* Brand */
  --red: #dd3324;
 --red-dark: #b8261a;
 --red-deeper: #8e1d13;
 --yellow: #fdd128;
 --gold: #7a5a00;

  /* Neutrals */
  --ink: #17130f;
 --ink-2: #211c17;
 --text: #4a423a;
 --text-soft: #6b6157;
 --text-faint: #8a7f74;
 --line: #efe7db;
 --line-strong: #e3dace;
 --cream: #fbf8f3;
 --white: #ffffff;

  /* Tints */
  --tint-yellow: #fff4c7;
 --tint-yellow-2: #fff1bf;
 --tint-blush: #fce9e4;
 --tint-blush-2: #fce3dc;
 --tint-sand: #f3eee6;
 --tint-sand-2: #f6f1ea;

  /* Type */
  --font-display: "Bricolage Grotesque", "Geist", system-ui, sans-serif;
 --font-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Radius */
  --r-pill: 999px;
 --r-sm: 14px;
 --r-md: 20px;
 --r-lg: 28px;
 --r-xl: 36px;
 --r-2xl: 40px;

  /* Shadows */
  --shadow-soft: 0 30px 60px -45px rgba(23, 19, 15, 0.35);
 --shadow-card: 0 16px 30px -26px rgba(23, 19, 15, 0.45);
 --shadow-float: 0 20px 40px -18px rgba(23, 19, 15, 0.35);
 --shadow-red: 0 16px 36px -14px rgba(221, 51, 36, 0.6);
 --shadow-phone: 0 30px 60px -30px rgba(23, 19, 15, 0.45);

  /* Layout */
  --container: 1200px;
 --gutter: 40px;
 --section-gap: 110px;
}
/* 2. Reset & base ========================================================= */
*, *::before, *::after {
	box-sizing: border-box;
}
html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}
body {
	margin: 0;
	background: var(--cream);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img {
	display: block;
	max-width: 100%;
	height: auto;
}
a {
	color: var(--red-dark);
}
a:hover {
	color: var(--red-deeper);
}
h1, h2, h3, p, ul, ol, figure, blockquote {
	margin: 0;
}
ul, ol {
	padding: 0;
	list-style: none;
}
button {
	font: inherit;
}

:focus-visible {
 outline: 2px solid var(--red);
 outline-offset: 3px;
}
.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
/* 3. Typography ============================================================ */
.h1, .h2, .h3, .display {
	font-family: var(--font-display);
	font-weight: 800;
	letter-spacing: -0.035em;
	color: var(--ink);
	text-wrap: balance;
}
.h1 {
	font-size: 76px;
	line-height: 0.98;
}
.h2 {
	font-size: 64px;
	line-height: 1;
}
.h2--md {
	font-size: 54px;
}
.h2--sm {
	font-size: 52px;
	line-height: 1.02;
}
.h3 {
	font-size: 30px;
	line-height: 1.1;
}
.display {
	font-size: 112px;
	line-height: 0.92;
}
.text-red {
	color: var(--red);
}
.text-yellow {
	color: var(--yellow);
}
.text-white {
	color: var(--white);
}
.lead {
	font-size: 20px;
	line-height: 1.55;
	color: var(--text);
}
.lead--sm {
	font-size: 19px;
	line-height: 1.5;
}
.lead strong {
	color: var(--ink);
	font-weight: 600;
}
.small {
	font-size: 14px;
	line-height: 1.45;
	color: var(--text-soft);
}
.tagline {
	font-family: var(--font-display);
	font-weight: 800;
	letter-spacing: -0.035em;
	font-size: 34px;
	line-height: 1.1;
	text-align: center;
}
.eyebrow {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--red-dark);
}
.eyebrow--muted {
	color: var(--text-soft);
}
.eyebrow--gold {
	color: var(--gold);
}
.eyebrow--yellow {
	color: var(--yellow);
}
.eyebrow--light {
	color: #ffe58a;
}
/* 4. Layout ================================================================ */
.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 var(--gutter);
}
.section {
	padding-bottom: var(--section-gap);
}
.section--top {
	padding-top: var(--section-gap);
}
.section-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 40px;
}
.section-head__text {
	max-width: 380px;
	margin-bottom: 8px;
}
.section-head--center {
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 18px;
}
.section-head--center .section-head__text {
	max-width: 560px;
	margin: 0;
}
.stack-sm > * + * {
	margin-top: 16px;
}
.grid {
	display: grid;
	gap: 16px;
}
.grid--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid--4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}
.grid--5 {
	grid-template-columns: repeat(5, minmax(0, 1fr));
}
.split-12 {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 32px;
}
.span-4 {
	grid-column: span 4;
}
.span-5 {
	grid-column: span 5;
}
.span-7 {
	grid-column: span 7;
}
.span-8-end {
	grid-column: 5 / span 8;
}
.span-6-end {
	grid-column: 7 / span 6;
}
/* 5. Components ============================================================ */

/* Buttons ------------------------------------------------------------------ */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 60px;
	padding: 0 32px;
	border-radius: var(--r-pill);
	border: 0;
	font-size: 18px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.btn:hover {
	transform: translateY(-2px);
}
.btn--primary {
	background: var(--red);
	color: var(--white);
	box-shadow: var(--shadow-red);
}
.btn--primary:hover {
	color: var(--white);
	background: #e23a2b;
}
.btn--yellow {
	background: var(--yellow);
	color: var(--ink);
	box-shadow: 0 18px 40px -16px rgba(23, 19, 15, 0.6);
}
.btn--yellow:hover {
	color: var(--ink);
}
.btn--outline {
	background: var(--white);
	color: var(--ink);
	border: 2px solid var(--ink);
}
.btn--outline:hover {
	color: var(--ink);
}
.btn--ghost {
	background: var(--white);
	color: var(--ink);
	border: 1px solid var(--line);
}
.btn--ghost:hover {
	color: var(--ink);
}
.btn--sm {
	height: 44px;
	padding: 0 20px;
	font-size: 15px;
}
.btn--md {
	height: 52px;
	padding: 0 26px;
	font-size: 16px;
}
.btn--block {
	display: flex;
	width: 100%;
}
.btn__arrow {
	line-height: 1;
}
.btn--ghost .btn__arrow {
	color: var(--red);
}
/* Badges & pills -------------------------------------------------------------- */
.badge {
	display: inline-flex;
	align-items: center;
	padding: 5px 12px;
	border-radius: var(--r-pill);
	font-size: 13px;
	font-weight: 800;
	line-height: 1.2;
}
.badge--yellow {
	background: var(--yellow);
	color: var(--ink);
}
.badge--ink {
	background: var(--ink);
	color: var(--white);
}
.pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 6px 6px 16px;
	border-radius: var(--r-pill);
	background: var(--white);
	border: 1px solid var(--line);
	font-size: 14px;
	font-weight: 600;
	color: var(--text);
}
.pill--lead-badge {
	padding: 6px 16px 6px 6px;
}
.pill__dot {
	color: #d6cbbd;
}
/* Icons ------------------------------------------------------------------------ */
.icon {
	width: 22px;
	height: 22px;
	flex-shrink: 0;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.icon--xs {
	width: 14px;
	height: 14px;
}
.icon--sm {
	width: 16px;
	height: 16px;
}
.icon--md {
	width: 18px;
	height: 18px;
}
.icon--lg {
	width: 26px;
	height: 26px;
}
.icon--bold {
	stroke-width: 2.6;
}
.icon-badge {
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	border-radius: var(--r-sm);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--red);
	background: var(--tint-blush);
}
.icon-badge .bi {
	font-size: 25px;
}
.icon-badge--yellow {
	background: var(--tint-yellow);
}
.icon-badge--ink-icon {
	color: var(--ink);
}
.icon-badge--white {
	background: var(--white);
	box-shadow: 0 10px 24px -14px rgba(23, 19, 15, 0.35);
}
.icon-badge--solid-yellow {
	background: var(--yellow);
	color: var(--ink);
}
.icon-badge--sm {
	width: 44px;
	height: 44px;
}
.icon-badge--lg {
	width: 56px;
	height: 56px;
	border-radius: 16px;
}
/* Hero badge ------------------------------------------------------------------------ */
.hero-badge {
	flex-shrink: 0;
	width: 100%;
	height: 120px;
	border-radius: var(--r-sm);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--red);
	background: var(--tint-blush);
}
.hero-badge img {
	width: 100%;
	height: 100%;
	border-radius: var(--r-sm);
	object-fit: cover;
	display: block;
}
/* Check marks ------------------------------------------------------------------ */
.check {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--red);
	color: var(--white);
	display: flex;
	align-items: center;
	justify-content: center;
}
.check .icon {
	width: 14px;
	height: 14px;
	stroke-width: 3;
}
.check--sm {
	width: 24px;
	height: 24px;
}
.check--sm .icon {
	width: 12px;
	height: 12px;
}
.check--lg {
	width: 30px;
	height: 30px;
}
.check--yellow {
	background: var(--yellow);
	color: var(--ink);
}
.check-list > li {
	display: flex;
	align-items: center;
	gap: 14px;
}
/* Cards ------------------------------------------------------------------------- */
.card {
	position: relative;
	border-radius: var(--r-lg);
	background: var(--white);
	border: 1px solid var(--line);
}
.card--yellow {
	background: var(--tint-yellow);
	border-color: transparent;
}
.card--blush {
	background: var(--tint-blush);
	border-color: transparent;
}
.card--sand {
	background: var(--tint-sand);
	border-color: transparent;
}
.card--ink {
	background: var(--ink);
	border-color: var(--ink);
	color: var(--white);
}
.panel {
	position: relative;
	overflow: hidden;
	border-radius: var(--r-2xl);
	background: var(--white);
	border: 1px solid var(--line);
	box-shadow: 0 40px 80px -60px rgba(23, 19, 15, 0.4);
}
.glow-bg {
	background: radial-gradient(520px 380px at 70% 15%, var(--tint-yellow-2) 0%, rgba(255, 241, 191, 0) 70%),  radial-gradient(480px 360px at 20% 95%, var(--tint-blush-2) 0%, rgba(252, 227, 220, 0) 70%),  var(--cream);
}
/* Phone mock-up (screen image swaps freely) --------------------------------------- */
.phone {
	padding: 7px;
	border-radius: 30px;
	background: var(--ink);
	box-shadow: var(--shadow-phone);
}
.phone__screen {
	width: 100%;
	aspect-ratio: 9 / 16;
	object-fit: cover;
	border-radius: 23px;
}
/* Testimonial quote --------------------------------------------------------------- */
.quote {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	align-items: center;
	gap: 24px;
	padding: 56px 72px;
	border-radius: var(--r-xl);
	background: var(--tint-yellow);
}
.quote--blush {
	background: var(--tint-blush);
}
.quote__mark {
	grid-column: span 1;
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 120px;
	line-height: 0.7;
	color: var(--red);
}
.quote__text {
	grid-column: span 8;
	font-size: 28px;
	line-height: 1.4;
	font-weight: 500;
	letter-spacing: -0.01em;
	color: var(--ink);
}
.quote__author {
	grid-column: span 3;
	display: flex;
	align-items: center;
	gap: 14px;
}
.quote__avatar {
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--ink);
	color: var(--yellow);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 24px;
}
.quote__avatar img {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}
.quote__name {
	display: block;
	font-size: 17px;
	font-weight: 700;
	color: var(--ink);
}
.quote__role {
	display: block;
	margin-top: 2px;
	font-size: 14px;
	line-height: 1.2em;
	color: var(--text-soft);
}
.quote__ratings {
	display: flex !important;
	color: rgb(245, 166, 35) !important;
	font-size: 15px !important;
	line-height: 1 !important;
	gap: 3px !important;
	margin-top: 5px;
}
/* Marquee ------------------------------------------------------------------------------ */
.marquee {
	overflow: hidden;
	padding: 24px 0;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}
.marquee__track {
	display: flex;
	align-items: center;
	gap: 56px;
	width: max-content;
	font-family: var(--font-display);
	font-weight: 800;
	letter-spacing: -0.035em;
	font-size: 40px;
	color: var(--ink);
}
.marquee__star {
	font-size: 28px;
	color: var(--yellow);
}
.marquee__star--red {
	color: var(--red);
}
/* Closing CTA (shared by all pages) ======================================================================================= */
.final-cta {
	position: relative;
	overflow: hidden;
	padding: 96px 64px;
	border-radius: 44px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	color: var(--white);
	background: radial-gradient(circle at 0% 0%, rgba(253, 209, 40, 0.45) 0%, rgba(253, 209, 40, 0) 38%),  radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 38%),  linear-gradient(135deg, #e23a2b 0%, #c42a1c 60%, #a8200f 100%);
}
.final-cta__title {
	font-size: 68px;
	color: var(--white);
}
.final-cta__text {
	margin-top: 26px;
	max-width: 640px;
	font-size: 20px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.92);
}
.final-cta__btn {
	margin-top: 38px;
}
.final-cta__note {
	margin-top: 18px;
	font-size: 16px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.9);
}
/* 6. Site header & footer =============================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(251, 248, 243, 0.88);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--line);
}
.site-header__inner {
	display: flex;
	align-items: center;
	gap: 40px;
	height: 80px;
}
.site-logo {
	display: flex;
	align-items: center;
}
.site-logo__img {
	height: 40px;
	width: auto;
	mix-blend-mode: multiply;
}
.site-nav {
	display: flex;
	gap: 32px;
	flex-grow: 1;
	font-size: 15px;
	font-weight: 500;
}
.site-nav__link {
	color: var(--text);
	text-decoration: none;
}
.site-nav__link:hover {
	color: var(--ink);
}
.site-nav__link.is-active {
	color: var(--ink);
	font-weight: 700;
	padding-bottom: 4px;
	border-bottom: 2px solid var(--red);
}
.site-header__login {
	font-size: 15px;
	font-weight: 500;
	color: var(--ink);
	text-decoration: none;
}
.site-footer {
	padding: 56px 0 48px;
	border-top: 1px solid var(--line);
}
.site-footer__top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 40px;
}
.site-footer__brand {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.site-footer__logo {
	align-self: flex-start;
	height: 36px;
	width: auto;
	mix-blend-mode: multiply;
}
.site-footer__tagline {
	font-size: 15px;
	color: var(--text);
}
.site-footer__nav {
	display: flex;
	gap: 28px;
	font-size: 15px;
	font-weight: 500;
}
.site-footer__nav a {
	color: var(--ink);
	text-decoration: none;
}
.site-footer__social {
	display: flex;
	gap: 10px;
}
.social-link {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid var(--line-strong);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--ink);
}
.social-link:hover {
	color: var(--red);
	border-color: var(--red);
}
.site-footer__bottom {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	margin-top: 40px;
	padding-top: 28px;
	border-top: 1px solid var(--line);
	font-size: 13px;
	color: var(--text-soft);
}
.site-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}
.site-footer__legal a {
	color: var(--text-soft);
	text-decoration: none;
}

/* 7. Motion ============================================================= */
@keyframes float-a {
 0%, 100% {
transform: translateY(0);
}
 50% {
transform: translateY(-12px);
}
}
@keyframes float-b {
 0%, 100% {
transform: translateY(-6px);
}
 50% {
transform: translateY(6px);
}
}
@keyframes marquee {
 from {
transform: translateX(0);
}
to {
	transform: translateX(-50%);
}
}
@keyframes dash-x {
 from {
background-position: 0 0;
}
to {
	background-position: 24px 0;
}
}
@keyframes ring-pulse {
 0% {
box-shadow: 0 0 0 0 rgba(253, 209, 40, 0.75);
}
 100% {
box-shadow: 0 0 0 16px rgba(253, 209, 40, 0);
}
}
@keyframes nudge {
 0%, 100% {
transform: translateX(0);
}
 50% {
transform: translateX(5px);
}
}
@keyframes typing {
 0%, 80%, 100% {
opacity: 0.25;
transform: translateY(0);
}
 40% {
opacity: 1;
transform: translateY(-3px);
}
}
@keyframes blink {
 0%, 100% {
opacity: 1;
}
 50% {
opacity: 0.3;
}
}
@keyframes spin {
 to {
transform: rotate(360deg);
}
}
@keyframes breathe {
 0%, 100% {
transform: scale(1);
opacity: 1;
}
 50% {
transform: scale(1.06);
opacity: 0.85;
}
}
@keyframes rise-in {
 from {
opacity: 0;
transform: translateY(24px) scale(0.97);
}
to {
	opacity: 1;
	transform: none;
}
}
 @media (prefers-reduced-motion: no-preference) {
.float-a {
	animation: float-a 7s ease-in-out infinite;
}
.float-b {
	animation: float-b 8s ease-in-out infinite;
}
.marquee__track {
	animation: marquee 32s linear infinite;
}
.blink {
	animation: blink 1.6s ease-in-out infinite;
}
/* Reveal-on-scroll (activated by js/main.js adding .js to <html>) */
.js .reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js .reveal.d1 {
	transition-delay: 0.08s;
}
.js .reveal.d2 {
	transition-delay: 0.16s;
}
.js .reveal.d3 {
	transition-delay: 0.24s;
}
.js .reveal.d4 {
	transition-delay: 0.32s;
}
.js .reveal.is-in {
	opacity: 1;
	transform: none;
}
}

/* 8. Responsive ============================================================= */
@media (max-width: 1024px) {
:root {
 --gutter: 28px;
}
.h1 {
	font-size: 60px;
}
.h2 {
	font-size: 52px;
}
.display {
	font-size: 88px;
}
}
 @media (max-width: 760px) {
:root {
 --gutter: 20px;
 --section-gap: 72px;
}
.h1 {
	font-size: 44px;
}
.h2,  .h2--md,  .h2--sm {
	font-size: 36px;
	line-height: 1.04;
}
.h3 {
	font-size: 26px;
}
.display {
	font-size: 58px;
}
.lead {
	font-size: 17px;
}
.lead--sm {
	font-size: 17px;
}
.tagline {
	font-size: 26px;
}
.section-head {
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}
.section-head--center {
	align-items: center;
}
.grid--2,  .grid--3,  .grid--4,  .grid--5 {
	grid-template-columns: minmax(0, 1fr);
}
.split-12 {
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
}
.span-4,  .span-5,  .span-7,  .span-8-end,  .span-6-end {
	grid-column: 1 / -1;
}
.btn {
	height: 54px;
	padding: 0 22px;
	font-size: 16px;
}
.btn--sm {
	height: 40px;
	padding: 0 14px;
	font-size: 13px;
}
.quote {
	grid-template-columns: minmax(0, 1fr);
	gap: 14px;
	padding: 28px 22px;
}
.quote__mark,  .quote__text,  .quote__author {
	grid-column: 1 / -1;
}
.quote__mark {
	font-size: 72px;
}
.quote__text {
	font-size: 20px;
}
.marquee__track {
	font-size: 28px;
}
.site-header__inner {
	height: 64px;
	gap: 12px;
	justify-content: space-between;
}
.site-logo__img {
	height: 28px;
}
.site-nav,  .site-header__login {
	display: none;
}
.final-cta {
	padding: 56px 22px;
	border-radius: 28px;
}
.final-cta__title {
	font-size: 36px;
}
.final-cta__text {
	font-size: 17px;
}
.site-footer__top,  .site-footer__bottom {
	flex-direction: column;
	gap: 20px;
}
.site-footer__nav {
	flex-wrap: wrap;
	gap: 16px;
}
}
