/* StoreTempo marketing — matches App Master Mobile (home.css) visual system */

:root {
  --header-bg: #003366;
  --accent: #c8102e;
  --bg: #f4f6f9;
  --card: #ffffff;
  --text: #1c2434;
  --muted: #5a6478;
  --border: rgba(28, 36, 52, 0.12);
  --grocery: #16a34a;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(0, 51, 102, 0.08);
  --max: 1100px;
  --header-h: 4rem;
  --ease: ease;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0 0 1rem; }

.st-wrap {
  width: min(100% - 3rem, var(--max));
  margin-inline: auto;
}

/* Header — AMM navy bar */
.st-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--header-bg);
  color: #fff;
  border-bottom: 3px solid var(--accent);
}

.st-header__inner {
  width: min(100% - 3rem, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.st-brand {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  text-decoration: none;
}

.st-brand:hover { text-decoration: none; opacity: 0.95; }

.st-brand em {
  font-style: normal;
  color: #fff;
}

.st-brand span {
  display: none;
}

.st-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.92rem;
}

.st-nav a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.st-nav a:hover,
.st-nav a[aria-current="page"] {
  color: #fff;
  text-decoration: none;
}

.st-nav__cta {
  padding: 0.55rem 0.95rem;
  border-radius: 10px;
  background: var(--accent);
  color: #fff !important;
  font-weight: 600;
  transition: transform 0.15s var(--ease), background 0.15s var(--ease);
}

.st-nav__cta:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.st-nav-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

/* Hero — AMM centered composition */
.st-hero {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.5rem 1.5rem 3rem;
  text-align: center;
  color: var(--text);
  background: transparent;
  min-height: 0;
}

.st-hero__atmosphere { display: none; }

.st-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0;
}

.st-hero .st-brand-hero {
  display: inline-block;
  margin: 0 0 1.25rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: inherit;
  line-height: 1.4;
  animation: st-rise 0.7s var(--ease) both;
}

.st-hero .st-brand-hero em {
  font-style: normal;
  color: var(--accent);
}

.st-hero h1 {
  margin: 0 0 1rem;
  font-family: inherit;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
  max-width: none;
  animation: st-rise 0.7s var(--ease) 0.08s both;
}

.st-hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.st-hero p {
  max-width: 680px;
  margin: 0 auto 2rem;
  color: var(--muted);
  font-size: 1.08rem;
  animation: st-rise 0.7s var(--ease) 0.16s both;
}

.st-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  animation: st-rise 0.7s var(--ease) 0.24s both;
}

@keyframes st-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.st-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 0.15s var(--ease), background 0.15s var(--ease);
}

.st-btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.st-btn--primary {
  background: var(--accent);
  color: #fff;
}

.st-btn--primary:hover { background: #a50d26; color: #fff; }

.st-btn--ghost,
.st-btn--line {
  background: var(--card);
  border-color: var(--border);
  color: var(--text);
}

.st-btn--ghost:hover,
.st-btn--line:hover { background: #f0f2f6; }

.st-btn--solid {
  background: var(--header-bg);
  color: #fff;
}

.st-btn--solid:hover { background: #00264d; color: #fff; }

/* Sections */
.st-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.5rem 3.5rem;
}

.st-section--tint {
  max-width: none;
  background: var(--card);
  border-block: 1px solid var(--border);
}

.st-section--tint > .st-wrap,
.st-section--tint > .st-split {
  width: min(100% - 3rem, var(--max));
  margin-inline: auto;
}

.st-kicker {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.st-section h2,
.st-page-hero h1 {
  margin: 0 0 0.5rem;
  font-family: inherit;
  font-size: clamp(1.75rem, 3.5vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  max-width: none;
}

.st-lead {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 52ch;
}

.st-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: start;
}

.st-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.st-list li {
  padding: 1.1rem 1.2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
}

.st-list strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.st-list span {
  color: var(--muted);
  font-size: 0.95rem;
}

.st-list--wide { max-width: 52rem; margin-top: 1.25rem; }

.st-feature-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.st-feature-row:last-child { border-bottom: 0; }

.st-feature-row h3 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  color: var(--text);
}

.st-feature-row p {
  color: var(--muted);
  margin: 0;
}

.st-feature-visual {
  min-height: 160px;
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(0, 51, 102, 0.08), rgba(200, 16, 46, 0.06)), var(--card);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.st-feature-visual::after {
  content: "";
  position: absolute;
  inset: 18% 12%;
  border: 1px dashed rgba(0, 51, 102, 0.25);
  border-radius: 12px;
}

.st-feature-visual--pulse::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  top: 28%;
  left: 22%;
  animation: st-pulse 2.4s var(--ease) infinite;
}

@keyframes st-pulse {
  0% { box-shadow: 0 0 0 0 rgba(200, 16, 46, 0.45); }
  70% { box-shadow: 0 0 0 16px rgba(200, 16, 46, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 16, 46, 0); }
}

/* Solutions hub — AMM project-card style */
.st-solution-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.st-solution-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.35rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  min-height: 11rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.st-solution-card:hover {
  border-color: rgba(200, 16, 46, 0.25);
  box-shadow: 0 16px 48px rgba(0, 51, 102, 0.12);
  transform: translateY(-2px);
  text-decoration: none;
}

.st-solution-card strong {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.st-solution-card span {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
  flex: 1;
}

.st-solution-card em {
  font-style: normal;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

.st-tool-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.st-tool {
  padding: 1.1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  text-align: center;
}

.st-tool strong {
  display: block;
  font-size: 0.98rem;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.st-tool span {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

.st-benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.st-benefit {
  padding: 1.15rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  text-align: center;
}

.st-benefit h3 {
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
  color: var(--text);
}

.st-benefit p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Inner page hero */
.st-page-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.5rem 1.5rem;
  text-align: center;
}

.st-page-hero .st-kicker { margin-bottom: 1rem; }

.st-page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  max-width: 18ch;
  margin-inline: auto;
}

.st-page-hero p {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 48ch;
  margin: 0.75rem auto 0;
}

/* Demo tiles */
.st-demo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.st-demo-tile {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.st-demo-tile:hover {
  border-color: rgba(200, 16, 46, 0.25);
  transform: translateY(-2px);
  text-decoration: none;
}

.st-demo-tile strong {
  font-size: 1.1rem;
  color: var(--text);
}

.st-demo-tile span {
  color: var(--muted);
  font-size: 0.92rem;
  flex: 1;
}

.st-demo-tile em {
  font-style: normal;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--accent);
}

/* CTA band */
.st-cta {
  margin: 1rem 0 3rem;
  padding: clamp(1.75rem, 4vw, 2.25rem);
  border-radius: var(--radius);
  background: var(--header-bg);
  color: #fff;
  display: grid;
  gap: 1rem;
  align-items: center;
  grid-template-columns: 1.4fr auto;
  box-shadow: var(--shadow);
  border-bottom: 3px solid var(--accent);
}

.st-cta h2 {
  font-family: inherit;
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  margin: 0 0 0.35rem;
  color: #fff;
  max-width: none;
}

.st-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.st-cta .st-btn--primary { justify-self: end; }

/* Footer */
.st-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem 2.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  background: var(--card);
  text-align: center;
}

.st-footer__inner {
  width: min(100% - 3rem, var(--max));
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: center;
}

.st-footer strong { color: var(--text); }

.st-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

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

/* Reveal motion */
.st-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.st-reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .st-demo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .st-split,
  .st-feature-row,
  .st-benefit-grid,
  .st-solution-grid,
  .st-tool-strip,
  .st-cta {
    grid-template-columns: 1fr;
  }

  .st-demo-grid { grid-template-columns: 1fr; }

  .st-cta .st-btn--primary { justify-self: start; }

  .st-nav-toggle { display: inline-flex; }

  .st-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
    background: var(--header-bg);
    border-bottom: 3px solid var(--accent);
  }

  .st-header.is-open .st-nav { display: flex; }

  .st-nav a {
    padding: 0.7rem 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .st-nav__cta {
    margin-top: 0.75rem;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .st-hero { padding-top: 3rem; }
  .st-page-hero h1 { max-width: none; }
}
