/* license.intentsharp.com: the one stylesheet of the license service's pages (Web/HtmlPages.cs), in the look of
   intentsharp.com. The tokens, the header, the buttons, the cards and the footer follow website/assets/site.css; change
   them there first. Fonts: Inter and JetBrains Mono from /assets/fonts (fonts.css, a copy of the site's). Light and
   dark follow prefers-color-scheme. No external resources. */

:root {
  --navy: #1B365D; --navy-2: #2A4D85; --band: #0A0E14; --red: #CB102E; --red-2: #A50E2A;
  --text: #1F1F1F; --muted: #4A4A4A; --bg: #FFFFFF; --bg-2: #F8F9FB; --bg-3: #F2F4F7; --line: #E3E7EE;
  --control: #747F93; --link: #1B365D; --link-h: #2A4D85; --label: #CB102E; --problem: #A50E2A;
  --btn: #1B365D; --btn-h: #2A4D85; --mark: #1B365D; --word: #1B365D; --focus: #2A4D85;
  --f: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --m: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --text: #E8ECF2; --muted: #A9B4C6; --bg: #111723; --bg-2: #172030; --bg-3: #1E2938; --line: #2B3850;
    --control: #7D8BA3; --link: #9DB8E8; --link-h: #C3D4F2; --label: #FF7A8A; --problem: #FF8A80;
    --btn: #2A4D85; --btn-h: #3A62A3; --mark: #FFFFFF; --word: #FFFFFF; --focus: #9DB8E8;
    color-scheme: dark;
  }
}

/* ---- Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--f); }
h1, h2 { margin: 0; line-height: 1.12; letter-spacing: -0.025em; }
h1 { font-size: clamp(2rem, 4.5vw, 2.75rem); font-weight: 800; }
h2 { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.015em; }
p, ul { margin: 0; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--link-h); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
code { font-family: var(--m); }
[hidden] { display: none !important; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 10; background: var(--btn); color: #FFFFFF; padding: 10px 16px; border-radius: 6px; font-weight: 600; }
.skip:focus { top: 8px; color: #FFFFFF; }

/* ---- Header, as on the site */
.wrap { max-width: 1168px; margin: 0 auto; padding: 0 24px; }
.site-header { min-height: 64px; background: var(--bg); border-bottom: 1px solid var(--line); }
.hdr { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--word); }
.brand:hover { color: var(--word); }
.logo-mark { flex: none; }
.mark-br { stroke: var(--mark); }
.mark-dm { fill: #CB102E; }
.word { display: grid; font-size: 20px; font-weight: 800; letter-spacing: -0.025em; line-height: 1; color: var(--word); }
.by { font-size: 9px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; padding: 6px 0; }
.nav a:hover { color: var(--link-h); }

/* ---- The heading band and the content column */
.col { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.wide .col { max-width: 1168px; }
.band { background: var(--band); color: #FFFFFF; padding: 56px 0 104px; }
.band .col { display: grid; gap: 14px; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: #FF7A8A; }
.band .lead { font-size: 1.15rem; color: #C9D2E0; overflow-wrap: anywhere; }
.sheet, .wide .band + .col { position: relative; margin-top: -64px; margin-bottom: 72px; }
.sheet { max-width: 720px; display: grid; gap: 16px; padding: 36px 40px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(10, 14, 20, 0.12); }
.note { font-size: 0.875rem; color: var(--muted); overflow-wrap: anywhere; }
.hint { font-size: 0.875rem; color: var(--muted); margin-top: 6px; }
.optional { font-weight: 400; color: var(--muted); }
.errors { margin: 0 0 8px; padding: 14px 18px 14px 36px; color: var(--problem); background: var(--bg-3); border-left: 4px solid var(--red); border-radius: 6px; display: grid; gap: 4px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; }

/* ---- Forms and buttons */
label { display: block; font-weight: 600; font-size: 0.95rem; margin: 12px 0 6px; }
input[type=text], input[type=email], input[type=number], textarea {
  width: 100%; min-height: 44px; padding: 9px 12px; font: inherit; font-size: 16px; color: var(--text);
  background: var(--bg); border: 1px solid var(--control); border-radius: 6px;
}
textarea { min-height: 112px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; font-weight: 400; font-size: 0.95rem; }
.consent input { margin-top: 6px; width: 18px; height: 18px; flex: none; accent-color: var(--btn); }
.btn, button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 6px; border: 1px solid transparent; font: 600 16px/1.2 var(--f); text-decoration: none; white-space: nowrap; cursor: pointer; }
button, .btn-p { background: var(--btn); color: #FFFFFF; }
button:hover, .btn-p:hover { background: var(--btn-h); color: #FFFFFF; }
.btn-o { border-color: var(--link); color: var(--link); background: transparent; }
.btn-o:hover { background: var(--bg-3); color: var(--link-h); border-color: var(--link-h); }
.stack-form button { margin-top: 24px; }
.stack-form + .note { margin-top: 8px; }

/* ---- The buy page: the email field and the editions as the site's cards */
.wide .band + .col { display: grid; gap: 20px; }
.email { max-width: 460px; padding: 20px 24px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.email label { margin-top: 0; }
.editions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.edition { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
.edition h2 { font-size: 1.2rem; }
.edition p { color: var(--muted); font-size: 0.95rem; }
.edition .price strong { color: var(--text); font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }
.edition .buy { margin-top: auto; padding-top: 8px; }
.edition .buy button { width: 100%; margin-top: 12px; }

/* ---- Footer, as on the site */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 40px 0 32px; font-size: 15px; }
.site-footer .wrap { display: grid; gap: 16px; }
.ft-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.ft-nav, .site-footer .links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.ft-nav a, .site-footer .links a { color: var(--text); text-decoration: none; }
.ft-nav a:hover, .site-footer .links a:hover { color: var(--link-h); text-decoration: underline; }
.seller { color: var(--muted); }
.ft-legal { padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* ---- Narrow screens */
@media (max-width: 959px) { .editions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 719px) {
  body { font-size: 16px; }
  .wrap, .col { padding: 0 16px; }
  .hdr { padding-top: 10px; padding-bottom: 10px; }
  .nav { gap: 4px 18px; }
  .by { display: none; }
  .band { padding: 40px 0 88px; }
  .sheet { margin-left: 16px; margin-right: 16px; padding: 24px 20px; }
  .editions { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
