/* LetterCraftPro – full replacement stylesheet
   Goal: clear actions, obvious links, transactional tone.
*/

*{
  box-sizing:border-box;
  margin:0;
  padding:0;
}

:root{
  --page-bg:#111827;
  --card-bg:#ffffff;

  --text:#1f2933;
  --muted:#6b7280;
  --heading:#111827;
  --border:#e5e7eb;

  --link:#1d4ed8;
  --link-hover:#1e40af;

  --action-bg:#1d4ed8;
  --action-bg-hover:#1e40af;
  --action-text:#ffffff;

  --cta-bg:#334155;
  --cta-bg-hover:#1f2937;
  --cta-text:#ffffff;

  --max:960px;
  --radius:12px;
}

html{font-size:16px}

body{
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,Helvetica,sans-serif;
  line-height:1.6;
  color:var(--text);
  background:var(--page-bg);
  min-height:100vh;
}

/* ---------- Layout ---------- */
.wrap{
  max-width:var(--max);
  margin:0 auto;
  padding:36px 20px;
  background:var(--card-bg);
  min-height:100vh;
}

@media (min-width:900px){
  .wrap{
    margin:24px auto;
    padding:44px 28px;
    border-radius:var(--radius);
    box-shadow:0 18px 46px rgba(0,0,0,.35);
    min-height:auto;
  }
}

/* ---------- Typography ---------- */
.muted{
  color:var(--muted);
  letter-spacing:.1em;
  font-size:12px;
  margin-bottom:12px;
  font-weight:600;
}

h1{
  font-size:34px;
  line-height:1.15;
  color:var(--heading);
  margin:6px 0 14px;
}

@media (min-width:900px){
  h1{font-size:40px}
}

h2{
  font-size:18px;
  color:var(--heading);
  margin:28px 0 10px;
}

p{
  margin:10px 0;
  max-width:80ch;
}

.subhead{
  font-size:17px;
  margin:10px 0 18px; /* tightened */
  max-width:80ch;
  color:#374151;
}

.price-list p{
  margin:6px 0;
  font-weight:600;
}

/* ---------- Links ---------- */
/* Normal informational links */
.wrap a{
  color:var(--link);
  font-weight:600;
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:3px;
}

.wrap a:hover{
  color:var(--link-hover);
}

/* ---------- Action links ---------- */
/* Start / Order / Important links */
.wrap a[href^="/order"],
.wrap a[href^="/start"],
.wrap a.button{
  display:inline-block;
  margin:12px 0;
  padding:10px 16px;
  background:var(--action-bg);
  color:var(--action-text);
  text-decoration:none;
  border-radius:10px;
  font-weight:700;
}

.wrap a[href^="/order"]:hover,
.wrap a[href^="/start"]:hover,
.wrap a.button:hover{
  background:var(--action-bg-hover);
}

/* ---------- Primary CTA ---------- */
.cta{
  display:inline-block;
  margin:16px 0 6px; /* tightened */
  padding:12px 20px;
  border-radius:12px;
  background:var(--cta-bg);
  color:var(--cta-text);
  font-weight:700;
  text-decoration:none;
  border:1px solid transparent;
}

.cta:hover{
  background:var(--cta-bg-hover);
}

/* Secondary CTA (your "Choose a category" button on home) */
.cta-secondary{
  display:inline-block;
  margin:12px 0 6px;
  padding:12px 20px;
  border-radius:12px;
  background:#ffffff;
  color:var(--heading);
  font-weight:700;
  text-decoration:none;
  border:1px solid var(--border);
}

.cta-secondary:hover{
  border-color:#cfd4dc;
}

/* CTA row wrapper (your home page uses this) */
.cta-row{
  margin:12px 0 6px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
}

/* ---------- Category cards (home + checkout) ---------- */
.cat-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin:14px 0 4px;
}

.cat-card{
  display:block;
  border:1px solid var(--border);
  border-radius:14px;
  padding:14px;
  text-decoration:none;
  color:inherit;
  background:#fff;
}

.cat-card:hover{
  border-color:#cfd4dc;
}

.cat-card strong{
  display:block;
  margin-bottom:6px;
  color:var(--heading);
}

.cat-card span{
  display:block;
  color:#374151;
  opacity:.9;
}

/* ---------- Category nav box ---------- */
.cat-nav{
  margin:14px 0 0;
  padding:12px;
  border:1px solid var(--border);
  border-radius:14px;
  background:#fff;
}

.cat-nav a{
  display:inline-block;
  margin:6px 10px 6px 0;
  text-decoration:none;
}

.cat-nav a:hover{
  text-decoration:underline;
}

/* ---------- Footer ---------- */
footer{
  margin-top:48px;
  padding-top:16px;
  border-top:1px solid var(--border);
  font-size:14px;
  color:var(--muted);
}

.links{
  margin-top:8px;
}

.links a{
  color:var(--muted);
  font-weight:600;
  text-decoration:none;
}

.links a:hover{
  color:#374151;
  text-decoration:underline;
}

/* ---------- Mobile fixes ---------- */
@media (max-width:720px){

  .wrap{
    padding:22px 16px;
    max-width:100%;
  }

  h1{
    font-size:30px;
    line-height:1.12;
    margin:6px 0 12px;
  }

  .subhead{
    font-size:16px;
    margin:8px 0 12px;
  }

  h2{
    margin:20px 0 10px;
  }

  /* Make CTA stack look intentional */
  .cta-row{
    margin:10px 0 0;
    gap:10px;
  }

  .cta,
  .cta-secondary{
    width:100%;
    text-align:center;
    box-sizing:border-box;
    padding:14px 16px;
    border-radius:14px;
  }

  /* Cards go single column */
  .cat-grid{
    grid-template-columns:1fr;
    gap:12px;
    margin-top:12px;
  }

  .cat-card{
    padding:16px;
  }

  .cat-card strong{
    font-size:16px;
  }

  .cat-card span{
    font-size:14px;
  }

  footer{
    margin-top:34px;
    padding-top:14px;
  }

  .links a{
    display:inline-block;
    margin:6px 10px 0 0;
  }
}
