/* Landing-page and tool styles. Shares the palette in app.css. */

.article { max-width: 780px; padding: 44px 0 40px; }
.article h1 { font-size: clamp(26px, 5vw, 36px); letter-spacing: -.02em; margin-bottom: 12px; }
.article .lede { font-size: 16.5px; color: var(--muted); margin-bottom: 28px; }
.article h2 { font-size: 21px; margin: 38px 0 12px; }
.article h3 { font-size: 15px; margin: 26px 0 8px; color: var(--navy); }
.article p { font-size: 15.5px; line-height: 1.68; margin-bottom: 14px; color: #2a3038; }
.article code {
  background: var(--panel); padding: 1px 6px; border-radius: 5px;
  font-family: "Cascadia Mono", Consolas, monospace; font-size: .9em;
}
.article a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }

.toolcard {
  border: 1px solid var(--line); border-radius: 16px; padding: 22px;
  background: #fff; box-shadow: var(--shadow); margin: 6px 0 8px;
}
.toolcard .dropzone { padding: 32px 18px; }

.toolsum {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px;
  border-top: 1px solid var(--line); padding-top: 18px; margin-top: 4px;
}
.toolsum .kicker { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.toolsum .big { font-size: 20px; font-weight: 700; color: var(--navy); word-break: break-all; }
.toolsum > div:nth-child(2) .big,
.toolsum > div:nth-child(3) .big { font-size: 26px; }
.toolh { font-size: 14px !important; text-transform: uppercase; letter-spacing: .06em; color: var(--muted) !important; margin: 26px 0 10px !important; }
.muted { color: #b9c0c7; }

.faq details {
  border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px;
  margin-bottom: 10px; background: #fff;
}
.faq summary { font-weight: 600; color: var(--navy); cursor: pointer; font-size: 14.5px; }
.faq details p { margin: 10px 0 0; font-size: 14.5px; color: var(--muted); }

.articlefoot {
  margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 13.5px; color: var(--muted);
}

.compare { width: 100%; border-collapse: collapse; font-size: 14px; margin: 18px 0 10px; }
.compare th {
  text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line);
  font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted);
}
.compare td { padding: 10px 12px; border-bottom: 1px solid #eef1f4; vertical-align: top; }
.compare td:first-child { font-weight: 600; color: var(--navy); }

.pairgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0; }
.pairgrid .field { margin: 0; }
.pairgrid textarea {
  width: 100%; height: 130px; padding: 10px 12px; border-radius: 9px; border: 1px solid var(--line);
  font-family: "Cascadia Mono", Consolas, monospace; font-size: 12.5px; resize: vertical;
}
.toolresult { margin-top: 20px; }
.toolresult .hl {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 16px; font-size: 15px;
}
.toolresult .strip { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.toolresult .chip2 {
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 12px; font-size: 13px;
}
.toolresult .chip2 b { color: var(--navy); }

@media (max-width: 640px) {
  .article { padding: 30px 0 32px; }
  .article .lede { font-size: 15px; }
  .toolcard { padding: 14px; border-radius: 12px; }
  .toolsum { grid-template-columns: 1fr 1fr; }
  .toolsum > div:first-child { grid-column: 1 / -1; }
  .pairgrid { grid-template-columns: 1fr; }
  .article p { font-size: 15px; }
  .compare { font-size: 13px; }
  .compare th, .compare td { padding: 8px 6px; }
}

/* The homepage overview is static content for crawlers; inside the app it only
   belongs on the home view. Without JS the attribute is absent, so it shows. */
body[data-view]:not([data-view="home"]) #overview { display: none; }

.legallinks {
  display: flex; flex-wrap: wrap; gap: 4px 18px; justify-content: center;
  margin-top: 12px; font-size: 12.5px;
}
.legallinks a { color: var(--muted); }
.legallinks a:hover { color: var(--navy); text-decoration: underline; }

/* Inputs and selects inside the two-column tool grid. The textareas were styled;
   these were not, because the first calculators only used textareas. */
.pairgrid input[type="text"], .pairgrid select {
  width: 100%; padding: 9px 12px; border-radius: 9px; border: 1px solid var(--line);
  font-size: 14px; font-family: inherit; background: #fff; color: var(--ink);
}
.pairgrid select { cursor: pointer; }
.pairgrid input[type="text"]:focus, .pairgrid select:focus {
  outline: 2px solid var(--navy-soft); outline-offset: 1px;
}
@media (max-width: 640px) {
  .pairgrid input[type="text"], .pairgrid select { font-size: 16px; }
}
