/* =========================================================
   TopAppsVIPS — stony-tromp.com
   Archetype C: Bold Minimalist
   ========================================================= */

/* ----- Custom properties -------------------------------- */
:root {
  --accent:   #E8272A;
  --accent-2: #FF6B00;
  --bg:       #F5F5F5;
  --surface:  #FFFFFF;
  --fg:       #111111;
  --muted:    #555555;
  --border:   #DDDDDD;

  --radius: 0px;
  --gap: 2rem;
  --section-pad: 5rem 1.5rem;
  --font-body: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  font-size: 1rem;
  line-height: 1.65;
}

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

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

/* ----- Typography --------------------------------------- */
h1 { font-size: clamp(2.4rem, 6vw, 5rem); font-weight: 900; line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 4vw, 3rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); font-weight: 700; line-height: 1.25; }
h4 { font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
p  { color: var(--muted); line-height: 1.75; }

/* ----- Layout helpers ----------------------------------- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }

/* ----- HEADER ------------------------------------------- */
.site-header {
  background: var(--fg);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--accent);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.wordmark {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
}

.wordmark span { color: var(--accent); }

.site-nav { display: flex; align-items: center; gap: 0.25rem; }

.site-nav a {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.75);
  padding: 0.45rem 0.85rem;
  transition: color 0.2s, background 0.2s;
}

.site-nav a:hover { color: #fff; background: rgba(255,255,255,0.08); }

.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 0.45rem 1.1rem !important;
}
.nav-cta:hover { background: #c41e21 !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid rgba(255,255,255,0.5);
  color: #fff;
  cursor: pointer;
  padding: 0.35rem 0.6rem;
  font-size: 1.2rem;
  line-height: 1;
}

/* ----- HERO --------------------------------------------- */
.hero {
  background: var(--fg);
  color: #fff;
  padding: 6rem 1.5rem 5rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 38%;
  height: 100%;
  background: var(--accent);
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0% 100%);
  opacity: 0.12;
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; max-width: 820px; }

.hero-tag {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.9rem;
  margin-bottom: 1.5rem;
}

.hero h1 { color: #fff; margin-bottom: 1.25rem; }

.hero h1 em {
  font-style: normal;
  color: var(--accent);
  -webkit-text-stroke: 0px;
}

.hero p {
  color: rgba(255,255,255,0.7);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  max-width: 600px;
  margin-bottom: 2.25rem;
}

.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.9rem 2rem;
  border: 2px solid var(--accent);
  transition: background 0.2s, color 0.2s;
}
.btn-primary:hover { background: #c41e21; border-color: #c41e21; }

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.9rem 2rem;
  border: 2px solid rgba(255,255,255,0.4);
  transition: border-color 0.2s, background 0.2s;
}
.btn-secondary:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

/* ----- FEATURES ----------------------------------------- */
.features {
  padding: var(--section-pad);
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.section-header {
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 2px solid var(--fg);
}

.feature-card {
  padding: 2rem 1.5rem;
  border-right: 2px solid var(--fg);
  transition: background 0.2s;
}

.feature-card:last-child { border-right: none; }

.feature-card:hover { background: var(--fg); }
.feature-card:hover h3 { color: #fff; }
.feature-card:hover p { color: rgba(255,255,255,0.65); }
.feature-card:hover .feature-icon { background: var(--accent); color: #fff; }

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--bg);
  border: 2px solid var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.3rem;
  transition: background 0.2s, color 0.2s;
}

.feature-card h3 { font-size: 1rem; margin-bottom: 0.6rem; transition: color 0.2s; }
.feature-card p  { font-size: 0.88rem; line-height: 1.6; transition: color 0.2s; }

/* ----- HOW IT WORKS ------------------------------------- */
.how-it-works {
  padding: var(--section-pad);
  background: var(--fg);
  color: #fff;
}

.how-it-works .section-tag { color: var(--accent); }

.how-it-works h2 { color: #fff; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 3rem;
  border: 2px solid rgba(255,255,255,0.15);
}

.step {
  padding: 2.5rem 2rem;
  border-right: 2px solid rgba(255,255,255,0.15);
  position: relative;
}

.step:last-child { border-right: none; }

.step-num {
  font-size: 4rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 1rem;
  display: block;
}

.step h3 { color: #fff; margin-bottom: 0.75rem; }
.step p  { color: rgba(255,255,255,0.6); font-size: 0.9rem; }

/* ----- USE CASES ---------------------------------------- */
.use-cases {
  padding: var(--section-pad);
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--fg);
  border: 2px solid var(--fg);
  margin-top: 3rem;
}

.use-case {
  background: var(--surface);
  padding: 2.25rem 2rem;
}

.use-case-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  background: var(--fg);
  padding: 0.25rem 0.65rem;
  margin-bottom: 1rem;
}

.use-case h3 { margin-bottom: 0.75rem; font-size: 1.1rem; }
.use-case p  { font-size: 0.9rem; }

/* ----- FAQ ---------------------------------------------- */
.faq {
  padding: var(--section-pad);
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.faq-list { margin-top: 2.5rem; }

.faq-item {
  border-top: 2px solid var(--fg);
}

.faq-item:last-child { border-bottom: 2px solid var(--fg); }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.25rem 0;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--fg);
}

.faq-question:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.faq-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  background: var(--fg);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
  transition: background 0.2s, transform 0.2s;
}

.faq-item.open .faq-icon {
  background: var(--accent);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.open .faq-answer { max-height: 400px; }

.faq-answer p {
  padding-bottom: 1.5rem;
  font-size: 0.93rem;
}

/* ----- PRICING ------------------------------------------ */
.pricing {
  padding: var(--section-pad);
  background: var(--fg);
  color: #fff;
  border-top: 3px solid var(--accent);
}

.pricing .section-tag { color: var(--accent); }
.pricing h2 { color: #fff; margin-bottom: 0.5rem; }
.pricing > .container > p { color: rgba(255,255,255,0.65); margin-bottom: 3rem; max-width: 580px; }

.pricing-card {
  background: var(--surface);
  color: var(--fg);
  border: 2px solid var(--accent);
  max-width: 500px;
  padding: 3rem 2.5rem;
  position: relative;
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 2rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.8rem;
}

.plan-name {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.plan-price {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.25rem;
  letter-spacing: -0.03em;
}

.plan-cadence {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.plan-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin-bottom: 1.75rem;
}

.plan-desc { font-size: 0.92rem; line-height: 1.7; }

/* ----- DISCLAIMER --------------------------------------- */
.disclaimer {
  padding: 4rem 1.5rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.disclaimer-box {
  border: 1px solid var(--border);
  padding: 2rem 2.25rem;
  background: var(--surface);
}

.disclaimer-box h4 {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.disclaimer-box p {
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 0.75rem;
}

.disclaimer-box p:first-of-type { margin-top: 0; }

.entity-disclosure {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
}

/* ----- FOOTER ------------------------------------------- */
.site-footer {
  background: var(--fg);
  color: rgba(255,255,255,0.55);
  padding: 3rem 1.5rem;
  border-top: 3px solid var(--accent);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand .wordmark { font-size: 1.2rem; }
.footer-brand p { font-size: 0.82rem; margin-top: 0.5rem; color: rgba(255,255,255,0.4); }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  align-items: center;
}

.footer-links a {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}

.footer-links a:hover { color: #fff; }

.footer-copy {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}

/* =========================================================
   SUB-PAGE SHARED STYLES
   ========================================================= */

.subpage-hero {
  background: var(--fg);
  color: #fff;
  padding: 3.5rem 1.5rem 3rem;
  border-bottom: 3px solid var(--accent);
}

.subpage-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); }

.subpage-content {
  padding: 3.5rem 1.5rem 5rem;
  background: var(--surface);
}

.subpage-content .container { max-width: 800px; }

.subpage-content h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  margin-top: 2.5rem;
  margin-bottom: 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--fg);
}

.subpage-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
  color: var(--fg);
}

.subpage-content p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.subpage-content ul,
.subpage-content ol {
  margin: 0.75rem 0 1rem 1.5rem;
  list-style: disc;
}

.subpage-content li {
  font-size: 0.93rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.subpage-content strong { color: var(--fg); }

.subpage-content a {
  color: var(--accent);
  text-decoration: underline;
}

.subpage-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 3rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--fg);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.1rem;
  transition: color 0.2s;
}
.subpage-back:hover { color: var(--accent); }

/* ----- Contact page specifics --------------------------- */
.contact-sections { display: flex; flex-direction: column; gap: 0.25rem; }

.contact-block {
  background: var(--bg);
  padding: 2rem 2rem;
  border-left: 4px solid var(--accent);
}

.contact-block h2 {
  font-size: 1.1rem;
  margin-top: 0;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0.75rem;
}

.contact-email a { color: var(--accent); font-weight: 700; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card:nth-child(2) { border-right: none; }
  .feature-card:nth-child(3) { border-top: 2px solid var(--fg); }
  .feature-card:nth-child(4) { border-top: 2px solid var(--fg); border-right: none; }

  .steps { grid-template-columns: 1fr; }
  .step { border-right: none; border-bottom: 2px solid rgba(255,255,255,0.15); }
  .step:last-child { border-bottom: none; }

  .use-cases-grid { grid-template-columns: 1fr; gap: 1.5px; }
}

@media (max-width: 640px) {
  .site-nav { display: none; flex-direction: column; gap: 0; width: 100%; }
  .site-nav.open { display: flex; }

  .site-header .container { flex-wrap: wrap; }

  .nav-toggle { display: block; }

  .site-nav a {
    width: 100%;
    padding: 0.8rem 0;
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .hero { padding: 4rem 1.5rem 3.5rem; }
  .hero::after { display: none; }

  .hero-ctas { flex-direction: column; }
  .btn-primary, .btn-secondary { text-align: center; }

  .features-grid { grid-template-columns: 1fr; border: 2px solid var(--fg); }
  .feature-card { border-right: none; border-top: 2px solid var(--fg); }
  .feature-card:first-child { border-top: none; }

  .pricing-card { padding: 2.5rem 1.5rem; }

  .footer-inner { flex-direction: column; }
  .footer-links { gap: 0.4rem 1rem; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
