/* EdgeNote licence pages.
   Concept: content sits in a panel anchored to a hard left edge,
   the way the app docks to the edge of the screen. */

:root {
  --ink:      #16181d;
  --muted:    #6b6f76;
  --page:     #e6e4df;
  --panel:    #ffffff;
  --edge:     #2f5d50;
  --edge-dim: #dfe8e4;
  --line:     #d8d5ce;
  --warn:     #8a5a1f;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Segoe UI", "Segoe UI Variable", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  display: flex;
  justify-content: center;
  padding: 3rem 1.25rem 5rem;
}

.panel {
  background: var(--panel);
  border-left: 5px solid var(--edge);
  max-width: 34rem;
  width: 100%;
  padding: 2.5rem 2.5rem 2rem;
  box-shadow: 0 1px 2px rgba(22,24,29,.06), 0 12px 32px -18px rgba(22,24,29,.35);
}

h1 {
  font-family: Newsreader, Charter, "Iowan Old Style", Georgia, serif;
  font-weight: 500;
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 0 .4rem;
}

h2 {
  font-size: .95rem;
  font-weight: 600;
  margin: 2rem 0 .6rem;
}

p { margin: 0 0 1rem; max-width: 62ch; }

.lede { color: var(--muted); margin-bottom: 2rem; }

.price {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  padding: 1rem 0 1.25rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.75rem;
}
.price b {
  font-family: Newsreader, Charter, Georgia, serif;
  font-size: 2.4rem;
  font-weight: 500;
  line-height: 1;
}
.price span { color: var(--muted); font-size: .95rem; }

ul.features { list-style: none; margin: 0 0 1.75rem; padding: 0; }
ul.features li {
  padding: .35rem 0 .35rem 1.4rem;
  position: relative;
  color: var(--ink);
}
ul.features li::before {
  content: "";
  position: absolute;
  left: 0; top: .95em;
  width: .55rem; height: 1px;
  background: var(--edge);
}

.paypal-slot { min-height: 3.2rem; margin-bottom: 1.5rem; }

.note { font-size: .875rem; color: var(--muted); }
.note a { color: var(--edge); }

/* --- key display (thank-you page) --- */
.keybox {
  background: var(--edge-dim);
  border: 1px solid #c3d6ce;
  padding: 1.1rem 1.25rem;
  margin: 0 0 .75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.keybox code {
  font-family: "Cascadia Mono", Consolas, ui-monospace, monospace;
  font-size: 1.15rem;
  letter-spacing: .04em;
  word-break: break-all;
}

button.copy, .btn {
  font: inherit;
  font-size: .9rem;
  background: var(--edge);
  color: #fff;
  border: 1px solid var(--edge);
  padding: .5rem 1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
button.copy:hover, .btn:hover { background: #26493f; }
button.copy.done { background: var(--panel); color: var(--edge); }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.waiting { display: flex; align-items: center; gap: .75rem; color: var(--muted); }
.pulse {
  width: .6rem; height: .6rem; border-radius: 50%;
  background: var(--edge);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: .25 } 50% { opacity: 1 } }
@media (prefers-reduced-motion: reduce) {
  .pulse { animation: none; opacity: .6; }
}

ol.steps { padding-left: 1.2rem; margin: 0 0 1.5rem; }
ol.steps li { margin-bottom: .4rem; }

form.resend { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
form.resend input {
  font: inherit;
  flex: 1 1 15rem;
  padding: .5rem .7rem;
  border: 1px solid var(--line);
  background: #fbfbfa;
}

.error { color: var(--warn); }

@media (max-width: 34rem) {
  body { padding: 1.5rem .75rem 3rem; }
  .panel { padding: 1.75rem 1.4rem 1.5rem; }
  h1 { font-size: 1.6rem; }
}
