/* theusefulmedia.com/free: free download pages */
.fr { overflow-x: hidden; }
.fr .kicker { margin: 0; font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.03em; text-transform: uppercase; color: var(--graphite); }

/* Hero */
.fr-hero { display: grid; gap: clamp(1.4rem, 4vw, 3.5rem); padding-block: clamp(1.4rem, 4vw, 4rem) clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .fr-hero { grid-template-columns: 1.05fr 1fr; } .fr-art { order: 2; } }
.fr-art { position: relative; perspective: 1100px; }
.fr-art::before { content: ""; position: absolute; inset: 8% 4% -6%; border-radius: 40px; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--purple) 38%, transparent), transparent 72%); filter: blur(18px); }
.fr-cover { border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px -28px var(--cover-shadow), 0 0 0 1px var(--rule);
  transform: rotateX(var(--rx, 4deg)) rotateY(var(--ry, -8deg)); transition: transform 500ms cubic-bezier(.2,.7,.2,1); background: var(--lilac); }
.fr-cover img { width: 100%; height: auto; display: block; }
@media (prefers-reduced-motion: no-preference) {
  .fr-cover { animation: float 7s ease-in-out infinite; }
  @keyframes float { 50% { translate: 0 -8px; } }
}
.fr-copy h1 { margin: 0.6rem 0 0; font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.1rem); line-height: 1.04; letter-spacing: -0.035em; font-weight: 600; text-wrap: balance; }
.fr-sub { margin: 0.9rem 0 0; font-size: var(--step-0); color: var(--graphite); max-width: 52ch; line-height: 1.5; }
.fr-get { margin-top: 1.4rem; max-width: 500px; }
.fr .fine { margin: 0.7rem 0 0; font-family: var(--mono); font-size: 0.74rem; color: var(--graphite); line-height: 1.5; }
.proof { display: flex; align-items: center; gap: 10px; margin: 1rem 0 0; font-size: 0.9rem; font-weight: 500; }
.proof-cells { display: inline-grid; grid-template-columns: repeat(3, 8px); gap: 3px; }
.proof-cells i { width: 8px; height: 8px; border-radius: 2px; background: var(--purple); }
.proof-cells i:nth-child(2) { opacity: .6 } .proof-cells i:nth-child(3) { opacity: .3 }

/* Signup (same Cloudflare worker as /tech) */
.signup { position: relative; }
.signup-form { display: flex; gap: 6px; padding: 6px; background: #fff; border: 1px solid rgba(23, 23, 43, 0.22); border-radius: 16px;
  box-shadow: 0 14px 34px -22px rgba(23, 23, 43, 0.5); position: relative; transition: border-color 200ms ease, box-shadow 200ms ease; }
.signup-form input[type="email"] { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 16px; color: #17172B; padding: 0.75rem; }
.signup-form input::placeholder { color: #8A8A9C; }
.signup-form input:focus { outline: none; }
.signup-form:focus-within { border-color: #7C5CFC; box-shadow: 0 0 0 3px rgba(124, 92, 252, 0.22); }
.signup-form button { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; border: 0; border-radius: 11px; cursor: pointer;
  background: #6A47F5; color: #FFFFFF; font: inherit; font-size: 1rem; font-weight: 600; min-height: 50px; padding: 0 1.15rem; transition: background-color 200ms ease, transform 160ms ease; }
.signup-form button:hover { background: #5B3BD6; }
.signup-form button:active { transform: scale(0.97); }
.signup-form button:disabled { cursor: progress; }
@media (max-width: 520px) { .signup-form { flex-direction: column; } }
.signup .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.signup-form.has-error { border-color: #D64545; box-shadow: 0 0 0 3px rgba(214, 69, 69, 0.16); }
.signup-form.is-busy button::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(250, 250, 248, 0.4); border-top-color: #FAFAF8; animation: fr-spin 700ms linear infinite; }
.signup-form.is-done button { background: #17172B; }
@keyframes fr-spin { to { transform: rotate(360deg); } }
.signup-msg { font-size: 0.92rem; line-height: 1.45; }
.signup-msg:empty { display: none; }
.signup-msg.is-error, .signup-msg.is-info { margin-top: 0.6rem; padding: 0.7rem 0.85rem; border-radius: 10px; }
.signup-msg.is-error { background: rgba(214, 69, 69, 0.09); color: #A12E2E; }
.signup-msg.is-info { background: var(--lilac); color: var(--ink); }
.signup-msg a { color: inherit; text-decoration: underline; }
.fix-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.55rem; }
.fix-row button { border: 0; border-radius: 8px; padding: 0.45rem 0.8rem; cursor: pointer; font: inherit; font-size: 0.88rem; font-weight: 500; }
.fix-yes { background: #6A47F5; color: #FFFFFF; }
.fix-no { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule); }
.ts-slot:empty { display: none; }
.ts-slot { margin-top: 0.6rem; }
:root[data-theme="dark"] .signup-msg.is-error { background: rgba(255, 120, 120, 0.12); color: #FFB4B4; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .signup-msg.is-error { background: rgba(255, 120, 120, 0.12); color: #FFB4B4; } }

/* Done state */
.done-name { margin: 0.35rem 0 0; font-weight: 600; font-size: 1.1rem; letter-spacing: -0.015em; }
.fr-done { margin-top: 1.4rem; max-width: 500px; padding: 1.2rem; border-radius: 20px; background: var(--lilac); outline: none;
  animation: pop 520ms cubic-bezier(.3,1.5,.4,1) both; }
@keyframes pop { from { opacity: 0; transform: scale(0.94) translateY(8px); } }
.dl-btn { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 0.7rem; min-height: 56px; padding: 0 1.2rem; border-radius: 14px;
  background: #6A47F5; color: #FFFFFF; font-weight: 600; font-size: 1.05rem; text-decoration: none; text-align: center; transition: transform 160ms ease, background-color 200ms ease; }
.dl-btn:hover { background: #6A47F5; }
.dl-btn:active { transform: scale(0.97); }
.dl-btn svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: no-preference) { .dl-btn svg { animation: nudge 1.6s ease-in-out infinite; } @keyframes nudge { 50% { transform: translateY(2px); } } }

/* What's inside */
.fr-inside { padding-block: clamp(1.5rem, 4vw, 3rem); border-top: 1px solid var(--rule); }
.fr-inside h2, .fr-more h2 { margin: 0; font-size: var(--step-1); letter-spacing: -0.02em; font-weight: 600; }
.ticks { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; gap: 0.75rem; max-width: 760px; }
@media (min-width: 760px) { .ticks { grid-template-columns: 1fr 1fr; column-gap: 2rem; } }
.ticks li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.45; }
.ticks svg { flex: none; width: 22px; height: 22px; padding: 3px; margin-top: 1px; border-radius: 7px; background: var(--purple); fill: none; stroke: #FAFAF8; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: no-preference) {
  .ticks.is-in li { animation: tick-in 500ms cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--n) * 90ms); }
  .ticks:not(.is-in) li { opacity: 0; }
  @keyframes tick-in { from { opacity: 0; transform: translateX(-10px); } }
}

/* Upsell */
.fr-up { padding-bottom: clamp(1.5rem, 4vw, 3rem); }
.upsell { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; max-width: 760px; padding: 14px; border-radius: 22px; text-decoration: none;
  background: var(--slab); color: #F2F1F8; transition: transform 180ms ease; }
.upsell:active { transform: scale(0.985); }
.upsell .kicker { color: rgba(242, 241, 248, 0.6); }
.upsell-cover { aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #0E0E1C; }
.upsell-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.upsell-copy { display: grid; gap: 4px; }
.upsell-name { font-weight: 600; font-size: 1.08rem; letter-spacing: -0.015em; }
.upsell-line { color: rgba(242, 241, 248, 0.72); font-size: 0.92rem; line-height: 1.4; }
.upsell-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; font-weight: 600; font-size: 0.92rem; color: #B9A8FF; }
.upsell-cta svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform 220ms cubic-bezier(.3,1.6,.4,1); }
.upsell:hover .upsell-cta svg { transform: translate(2px, -2px); }

/* Cards */
.fr-more { padding-block: clamp(1.5rem, 4vw, 3rem); border-top: 1px solid var(--rule); }
.fr-more-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.fr-more-head a { font-family: var(--mono); font-size: 0.8rem; color: var(--graphite); text-underline-offset: 4px; }
.fgrid { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
@media (max-width: 599px) { .fgrid { grid-template-columns: 1fr 1fr; gap: 10px; } .fc-body { padding: 10px 11px 12px; } .fc-name { font-size: 0.9rem; } .fc-proof { font-size: 0.64rem; } }
.fgrid--all { margin-bottom: clamp(2rem, 6vw, 5rem); }
.fc a { display: grid; height: 100%; border-radius: 18px; overflow: hidden; text-decoration: none; border: 1px solid var(--rule);
  background: color-mix(in srgb, var(--paper) 92%, var(--lilac)); transition: transform 220ms cubic-bezier(.2,.7,.2,1), border-color 200ms ease, box-shadow 220ms ease; }
.fc a:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--purple) 55%, transparent); box-shadow: 0 18px 34px -24px var(--cover-shadow); }
.fc a:active { transform: scale(0.985); }
.fc-cover { aspect-ratio: 16 / 9; overflow: hidden; background: var(--lilac); }
.fc-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 500ms cubic-bezier(.2,.7,.2,1); }
.fc a:hover .fc-cover img { transform: scale(1.04); }
.fc-body { display: grid; gap: 6px; padding: 12px 14px 14px; }
.fc-name { font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
.fc-proof { font-size: 0.72rem; color: var(--graphite); text-transform: uppercase; letter-spacing: 0.04em; }
.fc[hidden] { display: none; }

/* Index */
.fr-index-head { padding-block: clamp(1.6rem, 5vw, 4rem) 1rem; }
.fr-index-head h1 { margin: 0.6rem 0 0; font-size: clamp(2rem, 1.3rem + 3vw, 3.6rem); line-height: 1.02; letter-spacing: -0.04em; font-weight: 600; max-width: 18ch; }
.chips-f { display: flex; gap: 8px; margin: 1.4rem calc(var(--gutter) * -1) 0; padding: 0 var(--gutter) 4px; overflow-x: auto; scrollbar-width: none; }
.chips-f::-webkit-scrollbar { display: none; }
.chip-f { flex: none; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--rule-strong); background: transparent; color: var(--ink);
  font: inherit; font-size: 0.88rem; font-weight: 500; cursor: pointer; transition: background-color 200ms ease, color 200ms ease, transform 160ms ease; }
.chip-f:active { transform: scale(0.95); }
.chip-f[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.fr-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem 1.5rem; padding-block: 2rem 2.6rem; border-top: 1px solid var(--rule);
  font-size: 0.88rem; color: var(--graphite); }
.fr-foot a { color: var(--ink); text-underline-offset: 4px; }

/* Success burst: the six-cell mark flying apart */
.burst { position: fixed; inset: 0; pointer-events: none; z-index: 20; }
.burst i { position: absolute; width: 12px; height: 12px; border-radius: 3px; background: var(--purple); }
