/* WildEvolution — shared stylesheet (mobile-first, nature/expedition) */

:root {
  /* Palette: deep teal/forest green + warm sand/cream accents */
  --teal-900: #0f2a2b;
  --teal-800: #14403f;
  --teal-700: #1c5650;
  --teal-600: #246b62;
  --teal-500: #2f847a;
  --moss:    #3f7d52;
  --sand:    #e9ddc4;
  --sand-dk: #d8c79f;
  --cream:   #f6f1e7;
  --cream-2: #fbf8f1;
  --ink:     #1a2a29;
  --ink-soft:#41564f;
  --mut:     #6b7f78;
  --line:    #dfe6dd;
  --white:   #ffffff;
  --accent:  #b8743a;   /* warm clay/amber for accents & CTAs */
  --accent-dk:#9a5e2c;
  --shadow:  0 6px 22px rgba(15, 42, 43, 0.10);
  --radius:  16px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream-2);
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Helvetica, Arial, "Apple Color Emoji", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* ---- Layout shell ---- */
.shell { max-width: 920px; margin: 0 auto; padding: 0 18px; }

/* ---- Site header ---- */
.site-header {
  background: var(--teal-900);
  color: var(--cream);
  padding: 14px 0;
}
.site-header .shell {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.wordmark {
  font-size: 19px; font-weight: 700; letter-spacing: 0.02em;
  color: var(--cream); text-decoration: none;
  display: inline-flex; align-items: center; gap: 9px;
}
.wordmark:hover { text-decoration: none; }
.wordmark .mark-svg { width: 26px; height: 26px; flex: none; }
.wordmark span { background: linear-gradient(90deg, var(--sand), var(--sand-dk)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.site-nav { display: flex; align-items: center; gap: 16px; }
.site-nav a { color: var(--sand); font-size: 14px; font-weight: 500; }
.site-nav a:hover { color: var(--white); text-decoration: none; }

/* ---- Hero ---- */
.hero {
  background:
    radial-gradient(1200px 320px at 80% -40%, rgba(184,116,58,0.18), transparent 60%),
    linear-gradient(180deg, var(--teal-800), var(--teal-900));
  color: var(--cream);
  padding: 54px 0 46px;
}
.hero .eyebrow {
  text-transform: uppercase; letter-spacing: 0.16em; font-size: 12px;
  color: var(--sand-dk); margin: 0 0 14px; font-weight: 600;
}
.hero h1 {
  font-size: clamp(28px, 6vw, 40px); line-height: 1.12; margin: 0 0 14px;
  font-weight: 800; letter-spacing: -0.01em;
}
.hero p { font-size: clamp(16px, 2.6vw, 19px); color: var(--sand); margin: 0 0 26px; max-width: 46ch; }

.cta-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--cream-2); color: var(--ink);
  border-radius: var(--radius); padding: 18px 20px;
  box-shadow: var(--shadow); max-width: 540px;
  text-decoration: none;
}
.cta-card:hover { text-decoration: none; transform: translateY(-2px); transition: transform .15s ease; }
.cta-card .ic { flex: none; width: 46px; height: 46px; }
.cta-card .ic-wrap {
  flex: none; width: 54px; height: 54px; border-radius: 50%;
  background: var(--sand); display: grid; place-items: center;
}
.cta-card .ic-wrap svg { width: 30px; height: 30px; }
.cta-card .t { font-size: 18px; font-weight: 700; }
.cta-card .s { font-size: 13px; color: var(--mut); }
.cta-card .arrow { margin-left: auto; color: var(--accent); font-size: 22px; font-weight: 700; }

/* ---- Feature cards grid ---- */
.section { padding: 38px 0 28px; }
.section h2 {
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--moss); margin: 0 0 18px; font-weight: 700;
}
.cards { display: grid; grid-template-columns: 1fr; gap: 16px; }

.card {
  display: block; text-decoration: none; color: inherit;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover {
  text-decoration: none; transform: translateY(-3px);
  border-color: var(--teal-500);
  box-shadow: 0 12px 28px rgba(15, 42, 43, 0.16);
}
.card .ic-wrap {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--sand); display: grid; place-items: center; margin-bottom: 16px;
}
.card .ic-wrap svg { width: 30px; height: 30px; }
.card .t { font-size: 19px; font-weight: 700; margin: 0 0 4px; color: var(--teal-900); }
.card .s { font-size: 13px; color: var(--mut); margin: 0 0 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.card .d { font-size: 14px; color: var(--ink-soft); margin: 0; }
.card .live-dot { color: var(--moss); }
.card .soon-dot { color: var(--accent); }

/* ---- Footer ---- */
.site-footer {
  background: var(--teal-900); color: var(--sand); margin-top: 30px; padding: 28px 0;
}
.site-footer .shell { display: flex; flex-direction: column; gap: 8px; }
.site-footer .fmark { color: var(--cream); font-weight: 700; }
.site-footer a { color: var(--sand-dk); }
.site-footer .small { font-size: 13px; color: var(--mut); }

/* ---- Page hero (inner pages) ---- */
.page-hero {
  background: linear-gradient(180deg, var(--teal-800), var(--teal-900));
  color: var(--cream); padding: 30px 0 24px;
}
.page-hero .shell { padding: 0 18px; }
.page-hero .back { color: var(--sand); font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.page-hero h1 { font-size: clamp(24px, 5vw, 32px); margin: 12px 0 6px; font-weight: 800; }
.page-hero p { color: var(--sand); margin: 0; font-size: 15px; max-width: 60ch; }

/* ---- Coming soon page ---- */
.coming {
  padding: 48px 0 60px;
}
.coming .panel {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px 28px; text-align: center; box-shadow: var(--shadow);
}
.coming .big-ic { width: 64px; height: 64px; margin: 0 auto 18px; color: var(--teal-600); }
.coming h2 { font-size: 24px; margin: 0 0 8px; color: var(--teal-900); }
.coming p { color: var(--ink-soft); margin: 0 auto 22px; max-width: 42ch; }
.coming .badge {
  display: inline-block; background: var(--sand); color: var(--accent-dk);
  border-radius: 999px; padding: 6px 16px; font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
}

/* ---- Bird translator tool ---- */
.tool { padding: 22px 0 70px; }
.tool .card-panel {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; margin-bottom: 18px; box-shadow: var(--shadow);
}
.tool .row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.tool input[type=text] {
  flex: 1 1 280px; min-width: 180px; background: var(--cream-2);
  color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 13px; font-size: 16px;
}
.tool input[type=text]:focus { outline: none; border-color: var(--teal-500); background: var(--white); }
.tool button {
  background: var(--accent); color: #fff; border: none; border-radius: var(--radius-sm);
  padding: 12px 20px; font-size: 16px; font-weight: 600; cursor: pointer;
}
.tool button:disabled { opacity: 0.55; cursor: default; }
.tool button.ghost {
  background: transparent; color: var(--teal-700); border: 1px solid var(--line);
}
.tool button.ghost:hover { border-color: var(--teal-500); }
.tool button.mini {
  background: transparent; color: var(--mut); border: 1px solid var(--line);
  border-radius: 7px; padding: 2px 9px; font-size: 14px; line-height: 1.4; cursor: pointer;
}
.tool button.mini:hover { color: var(--teal-700); border-color: var(--teal-500); }
.tool button.mini:disabled { opacity: 0.3; cursor: default; }
.tool .meta { color: var(--mut); font-size: 13px; margin: 8px 0 0; }
.tool .err { color: #c0392b; }
.tool table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tool th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tool th {
  color: var(--mut); font-weight: 700; font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.05em; position: sticky; top: 0; background: var(--white);
}
.tool tr:hover td { background: var(--cream-2); }
.tool .sci { font-style: italic; color: var(--teal-800); }
.tool .fb { color: var(--mut); font-style: italic; }
.tool .tools { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.tool .tag {
  display: inline-block; background: var(--cream); border: 1px solid var(--line);
  color: var(--ink-soft); border-radius: 999px; padding: 3px 11px; font-size: 12px;
  margin-right: 6px;
}
.tool .hidden { display: none; }
.tool .langtitle { font-size: 13px; color: var(--mut); margin: 0 0 10px; }
.tool .langlist { display: flex; flex-direction: column; gap: 7px; }
.tool .langitem {
  display: flex; align-items: center; gap: 9px; background: var(--cream-2);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 11px;
}
.tool .langitem .grip { color: var(--mut); cursor: grab; user-select: none; font-size: 16px; }
.tool .langitem .lbl { flex: 1; }
.tool .langitem input { accent-color: var(--teal-600); width: 18px; height: 18px; }
.tool .langitem.dragover { border-color: var(--teal-500); }
.tool .fixednote { font-size: 12px; color: var(--mut); margin-top: 9px; }

/* ---- Responsive: 3-up grid on wider screens ---- */
@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 600px) {
  .site-nav .nav-home { display: inline; }
}
