/* /website-copywriting/: a writer's desk, a mathematician's notebook and a
   marketer's strategy board, meeting on one page. Decorative layers are
   aria-hidden; all copy stays in plain, high-contrast text. */
:root{--cd-paper:#fcfaf4;--cd-grid:rgba(53,107,137,.13);--cd-ink:#1d3445;--cd-pen:#b42318;--cd-human:#1f6b54;--cd-math:#244f78;
 --cd-hand:"Bradley Hand","Segoe Print","Chalkboard SE","Marker Felt","Comic Sans MS",cursive;
 --cd-serif:"Cambria Math","STIX Two Math","Latin Modern Math",Cambria,Georgia,"Times New Roman",serif}

/* Hero */
.copydesk-hero{background:radial-gradient(1200px 420px at 80% 0%,#fff6e6 0%,rgba(255,246,230,0) 60%),linear-gradient(180deg,#f7f3ea 0%,#fbfaf6 100%);padding-bottom:40px}
.copydesk-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.02fr);gap:44px;align-items:center}
.copydesk-text h1{max-width:15ch}
.copydesk-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:22px}
.copydesk-board{position:relative;margin:0;min-height:490px}
.copydesk-caption{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}

/* Grid paper behind everything */
.cd-grid-paper{position:absolute;inset:0;border-radius:22px;background-color:var(--cd-paper);
 background-image:linear-gradient(var(--cd-grid) 1px,transparent 1px),linear-gradient(90deg,var(--cd-grid) 1px,transparent 1px);
 background-size:24px 24px;box-shadow:0 22px 50px rgba(17,44,66,.12),inset 0 0 0 1px rgba(17,44,66,.06);transform:rotate(.6deg)}

/* Writer's desk: the AI draft and the human rewrite */
.cd-card{position:absolute;background:#fff;border-radius:12px;padding:16px 18px 14px;box-shadow:0 12px 26px rgba(17,44,66,.14);color:var(--cd-ink)}
.cd-card p{margin:8px 0 0;font-family:var(--cd-serif);font-size:17px;line-height:1.45}
.cd-draft{top:26px;left:5%;width:64%;transform:rotate(-2.2deg)}
.cd-human{top:172px;right:4%;width:60%;transform:rotate(1.6deg);background:#f4fbf7;border-left:4px solid var(--cd-human)}
.cd-tag{display:inline-block;font:800 11px/1.6 Inter,ui-sans-serif,system-ui,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:#fff;background:#4a5a68;border-radius:5px;padding:1px 8px}
.cd-tag-green{background:#1f7a5a}
.cd-hand{font-family:var(--cd-hand)}
.cd-note-who,.cd-note-proof{position:absolute;color:var(--cd-pen);font-size:17px;animation:cd-fade .5s ease-out 1.9s both}
.cd-note-who{top:-16px;right:6%;transform:rotate(-6deg)}
.cd-note-proof{bottom:-20px;right:22%;transform:rotate(4deg);animation-delay:2.1s}
.cd-rewrite{color:var(--cd-human);font-size:19px!important;line-height:1.4!important;font-family:var(--cd-hand)!important;animation:cd-write 1.6s steps(40,end) 2.4s both}

.cd-draft-svg{display:block;width:100%;height:auto;margin-top:8px;overflow:visible}
.cd-draft-svg text{font-family:var(--cd-serif);font-size:19px;fill:var(--cd-ink)}
.cd-pen-line{stroke:var(--cd-pen);stroke-width:2.2;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:0;animation:cd-pen-line .8s ease-out .6s both}
.cd-l2{animation-delay:1.25s}
@keyframes cd-pen-line{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
/* Mathematician's notebook */
.cd-notebook{position:absolute;left:6%;bottom:26px;width:46%;color:var(--cd-math);font-family:var(--cd-serif);font-style:italic}
.cd-formula{display:block;font-size:17px;line-height:1.5;animation:cd-fade .6s ease-out both}
.cd-f1{animation-delay:.9s}.cd-f2{animation-delay:1.1s}.cd-f3{animation-delay:1.3s}.cd-f4{animation-delay:1.5s}
.cd-bars{margin-top:10px;font-style:normal}
.cd-bars-label{display:block;font:700 11px/1.4 Inter,ui-sans-serif,system-ui,sans-serif;letter-spacing:.06em;text-transform:uppercase;color:#4f6272}
.cd-row{display:flex;align-items:flex-end;gap:4px;height:30px;margin-top:4px}
.cd-row i{display:block;width:9px;border-radius:2px 2px 0 0;transform-origin:bottom;animation:cd-grow .5s ease-out both}
.cd-row b{font:700 11px/1 Inter,ui-sans-serif,system-ui,sans-serif;margin-left:6px;color:#4f6272}
.cd-row-ai i{height:18px;background:#9aa9b5}
.cd-row-human i{background:var(--cd-human)}
.cd-row-human i:nth-child(1){height:8px}.cd-row-human i:nth-child(2){height:27px}.cd-row-human i:nth-child(3){height:13px}
.cd-row-human i:nth-child(4){height:5px}.cd-row-human i:nth-child(5){height:22px}.cd-row-human i:nth-child(6){height:16px}
.cd-row i:nth-child(2){animation-delay:.05s}.cd-row i:nth-child(3){animation-delay:.1s}.cd-row i:nth-child(4){animation-delay:.15s}.cd-row i:nth-child(5){animation-delay:.2s}.cd-row i:nth-child(6){animation-delay:.25s}
.cd-row-human i{animation-delay:2.6s!important}

/* Marketer's strategy board */
.cd-strategy{position:absolute;right:4%;bottom:18px;width:44%;height:128px}
.cd-sticky{position:absolute;display:block;padding:8px 10px;font:700 13px/1.25 Inter,ui-sans-serif,system-ui,sans-serif;color:#2c2a12;box-shadow:0 6px 12px rgba(17,44,66,.15);border-radius:3px;animation:cd-fade .5s ease-out both}
.cd-y{background:#fff1a8;left:0;top:6px;transform:rotate(-4deg);animation-delay:1.6s}
.cd-p{background:#ffd8e1;left:40%;top:0;transform:rotate(3deg);animation-delay:1.8s}
.cd-g{background:#d3f2e1;right:0;top:56px;transform:rotate(-2deg);animation-delay:2s}
.cd-arrows{position:absolute;left:0;bottom:0;width:100%;height:60px;fill:none;stroke:#356b89;stroke-width:2;stroke-dasharray:5 5;stroke-linecap:round;overflow:visible}

/* Score dial */
.cd-dial{position:absolute;top:-6px;right:2%;display:flex;align-items:baseline;gap:6px;background:#fff;border-radius:999px;padding:6px 14px;box-shadow:0 10px 22px rgba(17,44,66,.14);font-family:var(--cd-serif)}
.cd-dial-num{font-size:24px;font-weight:700}
.cd-dial-from{color:var(--cd-pen);text-decoration:line-through;text-decoration-thickness:2px}
.cd-dial-to{color:var(--cd-human)}
.cd-dial-arrow{color:#4f6272}
.cd-dial-label{font:700 10px/1.2 Inter,ui-sans-serif,system-ui,sans-serif;letter-spacing:.05em;text-transform:uppercase;color:#4f6272;max-width:76px}

/* Body: notebook section, flow chart, before/after desk */
.cd-section-notebook{position:relative;margin:30px 0;padding:22px 24px 10px 38px;border-radius:14px;border:1px solid #e1e8ed;
 background-color:var(--cd-paper);background-image:linear-gradient(var(--cd-grid) 1px,transparent 1px),linear-gradient(90deg,var(--cd-grid) 1px,transparent 1px);background-size:22px 22px}
.cd-section-notebook::before{content:"";position:absolute;top:0;bottom:0;left:22px;border-left:2px solid rgba(180,35,24,.35)}
.cd-section-notebook h2{margin-top:0}
.cd-patterns{list-style:none;padding:0}
.cd-patterns li{margin:10px 0;padding-left:20px;position:relative}
.cd-patterns li::before{content:"✓";position:absolute;left:0;color:var(--cd-pen);font-family:var(--cd-hand);font-weight:700}
.cd-formula-tag{display:inline-block;margin-left:6px;padding:0 8px;border-radius:6px;background:#eaf1f8;color:var(--cd-math);font-family:var(--cd-serif);font-style:italic;font-size:.92em;white-space:nowrap}
.cd-flow{list-style:none;counter-reset:cdflow;padding:0;margin:18px 0 26px}
.cd-flow li{counter-increment:cdflow;position:relative;margin:0 0 26px;padding:14px 16px 14px 58px;background:#fff;border:1px solid #dce6eb;border-radius:12px;box-shadow:0 6px 14px rgba(17,44,66,.06)}
.cd-flow li::before{content:counter(cdflow);position:absolute;left:14px;top:12px;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:var(--navy);color:#fff;font-weight:800;font-size:14px}
.cd-flow li:not(:last-child)::after{content:"";position:absolute;left:29px;bottom:-26px;height:26px;border-left:2px dashed #7d98ab}
.cd-flow li:last-child{border-color:#9fd5b6;background:#f2fbf6}
.cd-example{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin:16px 0 8px}
.cd-example-card{border-radius:12px;padding:16px 18px;background:#fff;box-shadow:0 10px 22px rgba(17,44,66,.1)}
.cd-example-card p{margin:10px 0 0;font-family:var(--cd-serif);font-size:16.5px}
.cd-example-before{transform:rotate(-.8deg);border:1px solid #ecdcdc}
.cd-example-before em{text-decoration:line-through;text-decoration-color:rgba(180,35,24,.55);text-decoration-thickness:1.5px}
.cd-example-after{transform:rotate(.6deg);background:#f4fbf7;border-left:4px solid var(--cd-human)}

/* Motion */
@keyframes cd-fade{from{opacity:0;transform:translateY(4px)}}
@keyframes cd-write{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}
@keyframes cd-grow{from{transform:scaleY(.05)}}
@media (prefers-reduced-motion:reduce){.copydesk-board *,.copydesk-board *::before{animation:none!important}}

/* Tablet and phone */
@media (max-width:900px){
 .copydesk-grid{grid-template-columns:minmax(0,1fr);gap:26px}
 .copydesk-board{min-height:430px;max-width:560px;width:100%;margin:0 auto}
}
@media (max-width:560px){
 .copydesk-board{min-height:610px}
 .cd-dial{top:12px;left:12px;right:auto;padding:5px 12px}
 .cd-dial-num{font-size:21px}
 .cd-draft{top:78px;left:3%;width:88%}
 .cd-note-who{top:-22px;right:4%}
 .cd-note-proof{bottom:-22px;right:10%}
 .cd-human{top:262px;right:3%;width:82%}
 .cd-card p{font-size:15.5px}
 .cd-rewrite{font-size:17px!important}
 .cd-notebook{width:50%;left:4%;bottom:18px}
 .cd-formula{font-size:15px}
 .cd-f4{display:none}
 .cd-strategy{width:44%;right:3%;bottom:20px;height:150px}
 .cd-y{left:auto;right:0;top:0}
 .cd-p{left:auto;right:18%;top:50px}
 .cd-g{right:0;top:100px}
 .cd-arrows{display:none}
 .cd-example{grid-template-columns:minmax(0,1fr)}
 .cd-section-notebook{padding:18px 16px 6px 30px}
 .cd-section-notebook::before{left:16px}
 .cd-formula-tag{white-space:normal}
}
