/* The public site's stylesheet (short-058): templates/public/ only.
   Independent of the management UI and of the legacy static/css/main.css. */

:root {
  --green:      #22c55e;
  --green-dark: #16a34a;
  --green-light:#dcfce7;
  --white:      #ffffff;
  --gray-50:    #f9fafb;
  --gray-100:   #f3f4f6;
  --gray-200:   #e5e7eb;
  --gray-400:   #9ca3af;
  --gray-600:   #4b5563;
  --gray-900:   #111827;
  --radius:     10px;
  --shadow:     0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --font:       'Sora', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --transition: .18s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--gray-50);
  color: var(--gray-900);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.main { flex: 1; padding: 48px 0 64px; }

.header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px 16px;
  min-height: 60px;
}
.logo { display: flex; align-items: center; gap: 8px; }
.logo__text { font-size: 18px; font-weight: 700; letter-spacing: -.4px; color: var(--gray-900); }

.nav { display: flex; flex-wrap: wrap; gap: 4px; }
.nav__link {
  padding: 6px 14px; border-radius: 8px; font-size: 14px;
  font-weight: 500; color: var(--gray-600); transition: var(--transition);
}
.nav__link:hover { background: var(--gray-100); color: var(--gray-900); }
.nav__link--active { background: var(--green-light); color: var(--green-dark); }

.footer { background: var(--white); border-top: 1px solid var(--gray-200); padding: 20px 0; }
.footer__inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px 24px;
  font-size: 13px; color: var(--gray-400);
}
.footer__links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer__links a:hover, .footer__contact a:hover { color: var(--gray-900); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius);
  font-size: 15px; font-weight: 600; border: none;
  transition: var(--transition); white-space: nowrap;
}
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); }

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .main { padding: 32px 0 48px; }
  .header__inner { padding: 10px 0; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

/* --- /try pages and forms (short-060) ------------------------------------ */
.page { max-width: 760px; }
.page--narrow { max-width: 640px; }
.page__title { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 700; letter-spacing: -.02em; margin-bottom: 12px; }
.page__lead { font-size: 16px; color: var(--gray-600); margin-bottom: 20px; }
.page__note { font-size: 14px; color: var(--gray-600); margin: 16px 0; }
.page a:not(.btn), .prose a { color: var(--green-dark); text-decoration: underline; }
.prose { margin-bottom: 24px; }
.prose h2 { font-size: 18px; margin: 20px 0 8px; }
.prose p { color: var(--gray-600); margin-bottom: 10px; }
.prose ul { color: var(--gray-600); margin: 0 0 10px; padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--gray-900); }
.terms__updated { font-size: 14px; color: var(--gray-600); margin-bottom: 16px; }

.shorten { margin: 8px 0 4px; }
.shorten__row { display: flex; gap: 8px; flex-wrap: wrap; }
.shorten__input { flex: 1 1 320px; }

.form { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 14px; font-weight: 600; color: var(--gray-900); }
.field__optional { font-weight: 400; color: var(--gray-400); }
.field__input {
  width: 100%; font: inherit; font-size: 15px; color: var(--gray-900);
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 10px 12px;
}
.field__input:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.field__textarea { resize: vertical; min-height: 110px; }
.field__static { font-size: 14px; color: var(--gray-600); overflow-wrap: anywhere; }
.field--invalid .field__input { border-color: #dc2626; }
.field__error { font-size: 13px; color: #b91c1c; }
.field--check { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 8px; }
.field--check input { margin-top: 4px; }
.field--check label { flex: 1 1 0; font-size: 14px; }
.field--check .field__error { flex-basis: 100%; }

.notice { border-radius: var(--radius); padding: 12px 14px; margin: 12px 0; font-size: 15px; }
.notice--success { background: var(--green-light); color: var(--green-dark); }
.notice--error { background: #fef2f2; color: #991b1b; }

.btn { cursor: pointer; justify-content: center; }
.form .btn { align-self: flex-start; }

/* Honeypot: off-screen, never shown to people. */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 640px) {
  .shorten__row .btn, .form .btn { width: 100%; align-self: stretch; }
}
