/* Mocha Media — standalone PHP site styles */

:root {
  --background: #f7f3ef;
  --foreground: #382a20;
  --card: #fffdfb;
  --muted-bg: #f0e9e2;
  --muted-foreground: #8a7666;
  --primary: #6b4226;
  --primary-dark: #3d2415;
  --primary-foreground: #fbf5ef;
  --accent: #c08a55;
  --border: #e3d8cd;
  --radius: 12px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { background: var(--background); }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--foreground);
  background: var(--background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  letter-spacing: -0.02em;
  color: var(--foreground);
  margin: 0;
}

a { color: inherit; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 243, 239, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(227, 216, 205, 0.7);
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 36px; height: 36px; display: block; }
.brand span { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 1.125rem; }
.nav { display: none; gap: 28px; }
.nav a { text-decoration: none; font-size: 0.9rem; font-weight: 500; color: var(--muted-foreground); transition: color .15s; }
.nav a:hover { color: var(--primary); }
@media (min-width: 768px) { .nav { display: flex; align-items: center; } }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity .15s, border-color .15s;
}
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { opacity: .9; }
.btn-ghost { background: var(--card); color: var(--foreground); border-color: var(--border); }
.btn-ghost:hover { border-color: rgba(107, 66, 38, 0.4); }
.btn-lg { padding: 14px 26px; font-size: 1rem; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, rgba(107,66,38,0.10), var(--background) 45%);
}
.hero .wrap { padding-top: 96px; padding-bottom: 112px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(107, 66, 38, 0.25);
  background: rgba(107, 66, 38, 0.05);
  padding: 4px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
}
.hero h1 { margin-top: 24px; font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 800; line-height: 1.05; max-width: 800px; }
.hero p { margin-top: 24px; max-width: 560px; font-size: 1.125rem; color: var(--muted-foreground); }
.hero .actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 16px; }

/* Stats */
.stats { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--card); }
.stats .grid { display: grid; grid-template-columns: repeat(2, 1fr); max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.stats .cell { text-align: center; padding: 32px 8px; }
.stats .val { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.9rem; font-weight: 700; color: var(--primary); }
.stats .lab { margin-top: 4px; font-size: 0.875rem; color: var(--muted-foreground); }
@media (min-width: 768px) { .stats .grid { grid-template-columns: repeat(4, 1fr); } }

/* Sections */
section.pad { padding: 96px 0; }
.section-head { max-width: 560px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 700; }
.section-head p { margin-top: 16px; color: var(--muted-foreground); }

/* Card grid */
.cards { margin-top: 56px; display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .cards.cols-3 { grid-template-columns: repeat(3, 1fr); } .cards.cols-2 { grid-template-columns: repeat(2, 1fr); } }
.card {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 16px;
  padding: 28px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s;
}
.card:hover { box-shadow: 0 12px 30px rgba(107, 66, 38, 0.08); }
.icon-box {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(107, 66, 38, 0.1);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.card h3 { margin-top: 20px; font-size: 1.25rem; font-weight: 600; }
.card p { margin-top: 10px; font-size: 0.9rem; color: var(--muted-foreground); }
.card .more { margin-top: 24px; font-size: 0.875rem; font-weight: 600; color: var(--primary); display: inline-flex; gap: 8px; align-items: center; }

/* Alt band */
.band { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(240, 233, 226, 0.5); }
.split { display: grid; gap: 48px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 768px) { .split { grid-template-columns: 1fr 1fr; } }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.steps li { display: flex; gap: 16px; border: 1px solid var(--border); background: var(--card); border-radius: 12px; padding: 20px; }
.steps .num { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 0.875rem; color: var(--primary); }
.steps h3 { font-size: 1rem; font-weight: 600; }
.steps p { margin: 4px 0 0; font-size: 0.875rem; color: var(--muted-foreground); }
.link-strong { display: inline-flex; gap: 8px; align-items: center; font-size: 0.9rem; font-weight: 600; color: var(--primary); text-decoration: none; }
.link-strong:hover { text-decoration: underline; }

/* CTA */
.cta { background: var(--primary); border-top: 1px solid var(--border); }
.cta .wrap { padding: 80px 20px; text-align: center; }
.cta h2 { color: var(--primary-foreground); font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 700; }
.cta p { margin: 16px auto 0; max-width: 520px; color: rgba(251, 245, 239, 0.8); }
.cta .btn { margin-top: 32px; background: var(--primary-foreground); color: var(--primary); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: rgba(240, 233, 226, 0.5); }
.site-footer .wrap { padding: 56px 20px 0; }
.foot-top { display: flex; flex-direction: column; gap: 40px; }
@media (min-width: 768px) { .foot-top { flex-direction: row; justify-content: space-between; } }
.foot-about { max-width: 340px; }
.foot-about p { margin-top: 16px; font-size: 0.875rem; color: var(--muted-foreground); }
.foot-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
@media (min-width: 640px) { .foot-cols { grid-template-columns: repeat(3, 1fr); } }
.foot-cols h4 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.875rem; font-weight: 600; }
.foot-cols ul { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.foot-cols a { text-decoration: none; font-size: 0.875rem; color: var(--muted-foreground); }
.foot-cols a:hover { color: var(--primary); }
.foot-legal {
  margin-top: 48px;
  border-top: 1px solid var(--border);
  padding: 24px 0 40px;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}
.foot-legal p { margin: 0; }

/* Tools gate */
.gate { max-width: 420px; margin: 0 auto; padding: 96px 20px; text-align: center; }
.gate .icon-box { margin: 0 auto; width: 56px; height: 56px; border-radius: 16px; }
.gate h1 { margin-top: 24px; font-size: 1.9rem; font-weight: 700; }
.gate p { margin-top: 12px; color: var(--muted-foreground); }
.gate form { margin-top: 32px; }
.gate input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 12px 18px;
  font-size: 0.9rem;
  color: var(--foreground);
  outline: none;
}
.gate input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(107, 66, 38, 0.15); }
.gate .err { margin-top: 12px; font-size: 0.875rem; color: #b3261e; }
.gate button { margin-top: 16px; width: 100%; justify-content: center; }

/* Legal + guide content */
.doc { max-width: 760px; margin: 0 auto; padding: 80px 20px; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.6rem); font-weight: 800; }
.doc .updated { margin-top: 12px; font-size: 0.875rem; color: var(--muted-foreground); }
.doc .body { margin-top: 40px; font-size: 0.95rem; color: var(--muted-foreground); }
.doc .body section { margin-top: 32px; }
.doc .body h2 { font-size: 1.15rem; font-weight: 600; margin-bottom: 12px; }
.doc .body p { margin: 12px 0; }
.doc .body ul { padding-left: 20px; }
.doc .body li { margin: 8px 0; }
.doc a { color: var(--primary); font-weight: 600; }

.guide-hero { border-bottom: 1px solid var(--border); background: rgba(240, 233, 226, 0.5); }
.guide-hero .wrap { padding: 80px 20px; max-width: 900px; }
.guide-hero h1 { margin-top: 24px; font-size: clamp(2.1rem, 5vw, 3rem); font-weight: 800; }
.guide-hero p { margin-top: 20px; max-width: 640px; font-size: 1.125rem; color: var(--muted-foreground); }
.guide-hero .actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 16px; }
.contents { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.contents li { display: flex; gap: 16px; border: 1px solid var(--border); background: var(--card); border-radius: 12px; padding: 20px; }
.contents h3 { font-size: 1rem; font-weight: 600; }
.contents p { margin: 4px 0 0; font-size: 0.875rem; color: var(--muted-foreground); }
.callout { margin-top: 48px; border: 1px solid var(--border); background: rgba(240, 233, 226, 0.5); border-radius: 16px; padding: 32px; }
.callout h2 { font-size: 1.15rem; font-weight: 600; }
.callout p { margin-top: 12px; color: var(--muted-foreground); }

.arrow { flex-shrink: 0; color: var(--primary); }

/* Contact page */
.contact-hero { border-bottom: 1px solid var(--border); background: rgba(240, 233, 226, 0.5); }
.contact-hero .wrap { padding: 72px 20px; max-width: 760px; }
.contact-hero h1 { margin-top: 24px; font-size: clamp(2.1rem, 5vw, 3rem); font-weight: 800; }
.contact-hero p { margin-top: 20px; max-width: 620px; font-size: 1.05rem; color: var(--muted-foreground); }
.contact-hero a { color: var(--primary); font-weight: 600; }
.contact-body { padding: 64px 20px; }
.contact-card {
  max-width: 620px;
  margin: 0 auto;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 16px;
  padding: 40px;
}
.field { margin-bottom: 22px; display: flex; flex-direction: column; }
.field label { font-size: 0.875rem; font-weight: 600; margin-bottom: 8px; }
.field .opt { font-weight: 400; color: var(--muted-foreground); }
.field input,
.field textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--background);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--foreground);
  outline: none;
  resize: vertical;
}
.field input:focus,
.field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(107, 66, 38, 0.15); }
.field .err { margin-top: 6px; font-size: 0.8rem; color: #b3261e; }
.contact-card button { width: 100%; justify-content: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: 12px; padding: 16px 18px; font-size: 0.9rem; margin-bottom: 24px; }
.notice-err { background: rgba(179, 38, 30, 0.08); color: #b3261e; border: 1px solid rgba(179, 38, 30, 0.2); }
.notice-ok { background: rgba(107, 66, 38, 0.06); border: 1px solid var(--border); text-align: center; }
.notice-ok h2 { font-size: 1.4rem; font-weight: 700; }
.notice-ok p { margin: 12px 0 24px; color: var(--muted-foreground); }
