/* Shared look for every Content Lounge tools page (colours and fonts from Virginia's v13). */
@font-face { font-family: "DM Sans"; font-weight: 300; font-style: normal; font-display: swap; src: url("fonts/dm-sans-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/dm-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 400; font-style: italic; font-display: swap; src: url("fonts/dm-sans-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/dm-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/dm-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Serif Display"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/dm-serif-display-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Serif Display"; font-weight: 400; font-style: italic; font-display: swap; src: url("fonts/dm-serif-display-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/lato-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/lato-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 900; font-style: normal; font-display: swap; src: url("fonts/lato-latin-900-normal.woff2") format("woff2"); }

:root {
  --sand: #FBF6EE;
  --cream: #F4E3CD;
  --peach: #FFD6AF;
  --fire: #CF4532;
  --deep-fire: #B8210C;
  --dark: #330A0A;
  --mid: #7A4A3A;
  --score-mid: #E8A44A;
  --score-low: #C0A882;
  --green: #6BAE75;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

body {
  background: var(--sand);
  font-family: "DM Sans", "Helvetica Neue", sans-serif;
  color: var(--dark);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--fire); }

/* header */
.tool-header {
  background: var(--dark);
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.tool-header img { height: 28px; display: block; max-width: 60vw; }
.tool-header .right { display: flex; align-items: center; gap: 14px; }
.badge {
  background: var(--fire); color: white; font-size: 10px; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase; padding: 4px 10px; border-radius: 20px;
}
.who { color: rgba(255,255,255,0.7); font-size: 12px; }
.who button {
  background: none; border: none; color: var(--peach); font: inherit; cursor: pointer; text-decoration: underline; margin-left: 6px; white-space: nowrap;
}

.page { max-width: 760px; margin: 0 auto; padding: 52px 24px 64px; }

h1, .serif { font-family: "DM Serif Display", Georgia, serif; font-weight: normal; }
h1 { font-size: 30px; line-height: 1.25; margin-bottom: 10px; }
.lead { font-size: 14.5px; color: var(--mid); line-height: 1.65; margin-bottom: 32px; }

.label {
  display: block; font-family: "Lato", sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--mid); margin: 12px 0 8px;
}

input[type="text"], input[type="email"], input[type="number"], input[type="date"], textarea, select {
  width: 100%; background: white; border: 1.5px solid var(--peach); border-radius: 8px;
  padding: 13px 16px; font-family: "DM Sans", sans-serif; font-size: 14px; color: var(--dark);
  line-height: 1.5; outline: none; transition: border-color 0.2s; -webkit-appearance: none; appearance: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--fire); }
textarea { height: 100px; resize: vertical; }

.btn {
  display: inline-block; background: var(--fire); color: white; border: none; padding: 14px 32px;
  border-radius: 8px; font-family: "DM Sans", sans-serif; font-size: 14px; font-weight: 700;
  letter-spacing: 0.04em; cursor: pointer; transition: background 0.2s; text-decoration: none;
}
.btn:hover { background: var(--deep-fire); }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn.ghost { background: transparent; color: var(--fire); border: 1.5px solid var(--fire); }
.btn.ghost:hover { background: #FFF2EE; }

.card { background: white; border: 1.5px solid var(--cream); border-radius: 12px; padding: 28px 30px; }

.notice {
  background: #FFF2EE; border-left: 4px solid var(--fire); padding: 14px 18px; border-radius: 0 8px 8px 0;
  font-size: 13.5px; line-height: 1.6; color: var(--dark); margin: 16px 0;
}
.notice.calm { background: #F3F8F1; border-left-color: var(--green); }
.notice.sample { background: #FFF3CD; border-left-color: var(--score-mid); color: #7A5A20; }

.login-box { max-width: 460px; }
.login-box form { display: flex; gap: 10px; margin-top: 8px; }
.login-box form input { flex: 1; }
.login-box .small { font-size: 12.5px; color: var(--mid); margin-top: 12px; line-height: 1.6; }
.local-link { word-break: break-all; }

.spinner {
  width: 48px; height: 48px; border: 4px solid var(--cream); border-top: 4px solid var(--fire);
  border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 640px) {
  .tool-header { padding: 16px; }
  .page { padding: 32px 16px 48px; }
  .login-box form { flex-direction: column; }
  .who .email { display: none; }
}
