/* =========================================================
   Well Done Systems — main stylesheet
   Neo-brutalist / Sentry-inspired: beige + navy
   ========================================================= */

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

:root {
  --bg:           #f5ede0;       /* warm beige */
  --bg-card:      #fffdf9;       /* near-white for cards */
  --navy:         #1b2d4f;       /* primary navy */
  --navy-dark:    #111e35;       /* deeper navy for shadows */
  --navy-soft:    rgba(27, 45, 79, 0.08);
  --amber:        #e8855a;       /* warm accent pop */
  --border:       #1b2d4f;       /* navy border */
  --border-light: #d9cfc4;       /* subtle divider */
  --text:         #1b2d4f;
  --text-muted:   #5a6a82;
  --shadow:       3px 3px 0 var(--navy-dark);
  --shadow-lg:    5px 5px 0 var(--navy-dark);
  --radius:       10px;
  --font:         -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }

main.container { flex: 1; }

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

/* --- Header ---------------------------------------------- */
.site-header {
  border-bottom: 2px solid var(--border);
  padding: 0.9rem 0;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-header__crown {
  font-size: 1.3rem;
  color: var(--amber);
}

.site-nav {
  display: flex;
  gap: 0.5rem;
}

.site-nav a {
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border: 2px solid transparent;
  border-radius: 6px;
  transition: border-color 0.15s, background 0.15s;
}
.site-nav a:hover {
  border-color: var(--border);
  background: var(--navy-soft);
  text-decoration: none;
}

/* --- Hero ------------------------------------------------ */
.hero {
  padding: 4.5rem 0 2.5rem;
  text-align: center;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--navy);
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hero__title em {
  font-style: normal;
  color: var(--amber);
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* --- App list -------------------------------------------- */
.app-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2.5rem 0 5rem;
}

/* --- App card -------------------------------------------- */
.app-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  transition: transform 0.15s, box-shadow 0.15s;
}

.app-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--navy-dark);
}

.app-card__icon,
.app-card__icon-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  flex-shrink: 0;
  object-fit: cover;
}

.app-card__icon-placeholder {
  background: var(--navy-soft);
  color: var(--amber);
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border);
}

.app-card__body { flex: 1; min-width: 0; }

.app-card__title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.1rem;
  letter-spacing: -0.02em;
}
.app-card__title a { color: var(--navy); }
.app-card__title a:hover { text-decoration: none; color: var(--amber); }

.app-card__tagline {
  font-size: 0.8rem;
  color: var(--amber);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
}

.app-card__description {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
  line-height: 1.55;
}

.app-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.app-card__privacy-link {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  padding: 0.3rem 0.5rem;
  border-bottom: 1px dashed var(--border-light);
}
.app-card__privacy-link:hover {
  color: var(--navy);
  border-bottom-style: solid;
  text-decoration: none;
}

/* --- Buttons / Badges ------------------------------------ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--navy-dark);
  box-shadow: 2px 2px 0 var(--navy-dark);
  transition: transform 0.1s, box-shadow 0.1s;
  cursor: pointer;
}

.badge:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--navy-dark);
  text-decoration: none;
}

.badge:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--navy-dark);
}

.badge--appstore {
  background: var(--navy);
  color: #fff;
}

.badge--playstore {
  background: #1a7a4a;
  color: #fff;
  border-color: #0f4a2b;
  box-shadow: 2px 2px 0 #0f4a2b;
}
.badge--playstore:hover { box-shadow: 3px 3px 0 #0f4a2b; }
.badge--playstore:active { box-shadow: 1px 1px 0 #0f4a2b; }

/* --- App detail page ------------------------------------- */
.app-detail {
  padding: 3rem 0 4rem;
}

.app-detail__header {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--border-light);
}

.app-detail__icon {
  width: 96px;
  height: 96px;
  border-radius: 18px;
  flex-shrink: 0;
  object-fit: cover;
  border: 2px solid var(--border);
  box-shadow: var(--shadow);
}

.app-detail__title {
  font-size: 2.1rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 0.2rem;
  color: var(--navy);
}

.app-detail__tagline {
  color: var(--amber);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.9rem;
}

.app-detail__badges { display: flex; gap: 0.6rem; flex-wrap: wrap; }

.app-detail__body {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}
.app-detail__body ul {
  padding-left: 1.25rem;
  margin-top: 0.5rem;
}
.app-detail__body li { margin-bottom: 0.4rem; }

.app-detail__privacy {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 2px dashed var(--border-light);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Privacy page ---------------------------------------- */
.privacy {
  padding: 2.5rem 0 5rem;
  max-width: 680px;
}

.privacy__back {
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
}
.privacy__back a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.75rem;
  border: 2px solid var(--border);
  border-radius: 6px;
  box-shadow: var(--shadow);
  transition: transform 0.1s, box-shadow 0.1s;
}
.privacy__back a:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--navy-dark);
  text-decoration: none;
}

.privacy h1 {
  font-size: 1.9rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
  color: var(--navy);
}

.privacy__date {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-light);
}

.privacy__body h2 {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 2rem 0 0.5rem;
  color: var(--navy);
}

.privacy__body p,
.privacy__body ul {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 0.8rem;
}

.privacy__body ul { padding-left: 1.25rem; }
.privacy__body li { margin-bottom: 0.3rem; }
.privacy__body strong { color: var(--navy); }

/* --- Contact / generic content pages -------------------- */
main.container h1 {
  font-size: 1.9rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin: 2.5rem 0 1rem;
}

main.container p {
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

main.container hr {
  border: none;
  border-top: 2px dashed var(--border-light);
  margin: 1.5rem 0;
}

/* --- Footer ---------------------------------------------- */
.site-footer {
  border-top: 2px solid var(--border);
  padding: 1.25rem 0;
  background: var(--bg);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-footer p,
.site-footer a {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.site-footer a:hover { color: var(--navy); text-decoration: none; }

.site-footer__nav { display: flex; gap: 1rem; }

/* --- Responsive ------------------------------------------ */
@media (max-width: 600px) {
  .app-card { flex-direction: column; }
  .app-detail__header { flex-direction: column; }
  .site-footer__inner { flex-direction: column; text-align: center; }
  .hero { padding: 3rem 0 2rem; }
}
