/* Mobile Commerce Review — magazine/editorial style
   Palette: Navy #0E2A47, Coral #FF6B4A, Cream #FBF7F0, Gold #C9A24E */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700;9..144,900&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --navy: #0E2A47;
  --navy-dark: #081A2D;
  --coral: #FF6B4A;
  --coral-dark: #E04F2D;
  --cream: #FBF7F0;
  --cream-dark: #F0E9DA;
  --gold: #C9A24E;
  --ink: #1A1F2C;
  --muted: #5C6373;
  --line: #E3DCC9;
  --max: 1180px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  font-feature-settings: "kern" 1, "liga" 1;
}

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

a { color: var(--navy); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--coral); }

h1, h2, h3, h4, h5 {
  font-family: 'Fraunces', Georgia, serif;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 600;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 2.2rem 0 1rem; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin: 1.8rem 0 0.7rem; }
h4 { font-size: 1.15rem; margin: 1.4rem 0 0.6rem; }

p { margin: 0 0 1.1em; }

strong { color: var(--navy); font-weight: 600; }

ul, ol { margin: 0 0 1.2em 1.4em; }
li { margin-bottom: 0.4em; }

blockquote {
  border-left: 3px solid var(--coral);
  margin: 1.6em 0;
  padding: 0.4em 0 0.4em 1.2em;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--navy);
  line-height: 1.5;
}

code, pre {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.92em;
  background: var(--cream-dark);
  padding: 0.15em 0.4em;
  border-radius: 3px;
}

/* ============ TOPBAR / MASTHEAD ============ */
.topbar {
  background: var(--navy);
  color: var(--cream);
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.topbar a { color: var(--cream); text-decoration: none; }
.topbar a:hover { color: var(--coral); }

.masthead {
  background: var(--cream);
  border-bottom: 2px solid var(--navy);
  padding: 22px 0 18px;
}
.masthead-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.brand-mark {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  color: var(--navy);
  text-decoration: none;
  line-height: 1;
  letter-spacing: -0.01em;
}
.brand-mark .dot { color: var(--coral); }
.brand-tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-top: 6px;
}

/* ============ NAV ============ */
.mainnav {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(6px);
  -webkit-backdrop-filter: saturate(140%) blur(6px);
}
.mainnav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.mainnav a {
  display: inline-block;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  border-bottom: 2px solid transparent;
  transition: all 0.18s ease;
}
.mainnav a:hover { color: var(--coral); border-bottom-color: var(--coral); }
.mainnav a.active { color: var(--coral); border-bottom-color: var(--coral); }

/* ============ HERO ============ */
.hero {
  background: var(--cream);
  padding: 48px 0 24px;
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  margin-bottom: 18px;
}
.hero p.lead {
  font-size: 1.18rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 24px;
}
.hero-img {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(14,42,71,0.25);
}
.hero-img img { width: 100%; height: auto; }

@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
}

/* ============ ARTICLE / CONTENT ============ */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.article-header {
  max-width: 780px;
  margin: 0 auto 32px;
  text-align: center;
  padding: 48px 24px 28px;
  border-bottom: 1px solid var(--line);
}
.article-eyebrow {
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.article-header h1 { margin-bottom: 14px; }
.article-meta {
  font-size: 0.88rem;
  color: var(--muted);
  font-style: italic;
  font-family: 'Fraunces', serif;
}
.article-meta a { color: var(--muted); }

.article-cover {
  max-width: var(--max);
  margin: 0 auto 36px;
  border-radius: 4px;
  overflow: hidden;
}

.article {
  max-width: 720px;
  margin: 0 auto;
}
.article > p:first-of-type::first-letter {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 4.2rem;
  float: left;
  line-height: 0.9;
  padding: 6px 12px 0 0;
  color: var(--coral);
}
.article .info-card p::first-letter,
.article .callout p::first-letter { font-size: inherit; float: none; padding: 0; color: inherit; font-family: inherit; font-weight: inherit; }
.article h2 {
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
  margin-top: 2.4rem;
}
.article h2:first-of-type { border-top: none; padding-top: 0; }

.article ul li::marker { color: var(--coral); }

.callout {
  background: var(--cream-dark);
  border-left: 4px solid var(--coral);
  padding: 20px 24px;
  margin: 1.8em 0;
  border-radius: 0 4px 4px 0;
}
.callout h4 {
  margin: 0 0 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--coral);
  font-weight: 700;
}
.callout p:last-child { margin-bottom: 0; }

.pull-quote {
  font-family: 'Fraunces', serif;
  font-size: 1.6rem;
  line-height: 1.35;
  color: var(--navy);
  text-align: center;
  margin: 2.4em auto;
  padding: 1.2em 0;
  border-top: 2px solid var(--coral);
  border-bottom: 2px solid var(--coral);
  max-width: 620px;
  font-weight: 500;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.8em 0;
  font-size: 0.95rem;
}
th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
th {
  background: var(--cream-dark);
  font-weight: 600;
  color: var(--navy);
  font-family: 'Fraunces', serif;
}

.related {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 2px solid var(--navy);
}
.related h3 {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 18px;
}
.related ul { list-style: none; margin: 0; padding: 0; }
.related li { margin-bottom: 10px; padding-left: 18px; position: relative; }
.related li::before { content: "→"; position: absolute; left: 0; color: var(--coral); font-weight: 700; }

/* ============ CARDS / GRID ============ */
.section {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.section-inner { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section-eyebrow {
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.section h2 { margin-top: 0; margin-bottom: 28px; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) { .grid, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid, .grid.cols-2, .grid.cols-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -12px rgba(14,42,71,0.18); }
.card a { text-decoration: none; color: inherit; display: block; }
.card-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--cream-dark);
}
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 20px 22px 22px; flex: 1; }
.card-cat {
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--coral);
  margin-bottom: 8px;
}
.card h3 {
  font-size: 1.2rem;
  margin: 0 0 8px;
  line-height: 1.25;
}
.card p {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  padding: 14px 26px;
  background: var(--coral);
  color: #fff;
  text-decoration: none;
  border-radius: 2px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
  transition: background 0.18s;
}
.btn:hover { background: var(--coral-dark); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}
.btn-ghost:hover { background: var(--navy); color: var(--cream); }

/* ============ FOOTER ============ */
.footer {
  background: var(--navy);
  color: var(--cream);
  padding: 56px 0 28px;
  margin-top: 80px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 14px;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 8px; font-size: 0.93rem; }
.footer a { color: var(--cream); text-decoration: none; opacity: 0.85; }
.footer a:hover { color: var(--coral); opacity: 1; }
.footer-brand {
  font-family: 'Fraunces', serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 12px;
  display: block;
}
.footer-brand .dot { color: var(--coral); }
.footer p { font-size: 0.92rem; color: rgba(251,247,240,0.72); line-height: 1.6; margin-bottom: 8px; }
.footer-legal {
  border-top: 1px solid rgba(251,247,240,0.12);
  padding-top: 20px;
  font-size: 0.82rem;
  color: rgba(251,247,240,0.6);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-legal a { color: rgba(251,247,240,0.7); text-decoration: underline; }

/* ============ HOMEPAGE FEATURE BLOCKS ============ */
.feature-list-section {
  background: #fff;
  padding: 64px 0;
}
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 56px;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-row img { border-radius: 4px; box-shadow: 0 16px 40px -12px rgba(14,42,71,0.2); }
.feature-row h3 { font-size: 1.7rem; margin-bottom: 12px; }
@media (max-width: 760px) {
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; gap: 22px; direction: ltr; }
}

.divider {
  text-align: center;
  margin: 40px 0;
  font-family: 'Fraunces', serif;
  color: var(--gold);
  letter-spacing: 0.4em;
  font-size: 1.2rem;
}

/* ============ ABOUT / CONTACT BLOCKS ============ */
.info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 28px 32px;
  margin: 24px 0;
}
.info-card h3 { margin-top: 0; font-size: 1.2rem; }

/* ============ MISC ============ */
.muted { color: var(--muted); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

::selection { background: var(--coral); color: #fff; }

/* small-screen tweaks */
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding: 32px 0 20px; }
  .container { padding: 32px 18px 60px; }
  .article p:first-of-type::first-letter { font-size: 3.4rem; }
}
