/* JT Typeface pages (/typemoment/, /typemoment/license/) — the studio site's type system and controls.
   Heading 30 / 20 / 20 px · Text 24 / 16 / 16 px · Slogan as on the homepage · Small text = --fs-small (site.css)
   Buttons 44 px, radius 9 px · optical tracking by size · light mode only swaps the colors. */
@font-face{font-family:'JTCID02';src:url('/fonts/JTCID02-Regular.woff2') format('woff2');font-style:normal;font-display:swap}
@font-face{font-family:'JTCID02';src:url('/fonts/JTCID02-Italic.woff2') format('woff2');font-style:italic;font-display:swap}
:root{--font:'JTCID02','Inter',-apple-system,BlinkMacSystemFont,sans-serif;
  --black:#0b0b0b;--white:#f0ede8;--t2:#c8c2bc;--t3:#a09890;--rose:#9a7b74;--line:#5a5350;
  --rad:9px;--ctl-h:44px;--ol:rgba(255,255,255,.24);--glow:0 0 14px rgba(255,255,255,.35);--focus:rgba(255,255,255,.6)}
html.light{--black:#f3f0eb;--white:#161616;--t2:#3a3532;--t3:#5f5752;--rose:#7d5f58;--line:#b5ada7;
  --ol:rgba(0,0,0,.22);--glow:0 0 12px rgba(0,0,0,.14);--focus:rgba(0,0,0,.5)}
html.th-switch *,html.th-switch *::before,html.th-switch *::after{transition:none!important}
html,body{margin:0;background:var(--black);color:var(--t2);font-family:var(--font);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
body{min-height:100vh;display:flex;flex-direction:column}
main{flex:1}
a{color:inherit}

/* type */
.h{margin:0 0 1.6rem;font-weight:400;font-size:clamp(1.25rem,1.5vw,1.7rem);line-height:1.4;letter-spacing:.015em;color:var(--white)}
.t{margin:0 0 1.4rem;font-weight:400;font-size:clamp(1rem,1.2vw,1.35rem);line-height:1.75;letter-spacing:.02em;color:var(--t2)}
.slogan{margin:0 0 2rem;font-weight:400;font-size:clamp(1.6rem,4vw,3.2rem);line-height:1.3;letter-spacing:0;color:var(--white)}
.small{margin:0;font-size:var(--fs-small);letter-spacing:var(--ls-small);line-height:1.5;color:var(--t3)}
.t-white{color:var(--white)}
@media (min-width:1024px){
  .h{font-size:1.875rem;letter-spacing:0;margin-bottom:2rem}
  .t{font-size:1.5rem;line-height:1.8;letter-spacing:.01em;margin-bottom:1.6rem}
  .slogan{letter-spacing:-.01em}
}
.text-link{color:var(--t2);border-bottom:1px solid var(--rose);text-decoration:none;padding-bottom:1px;transition:color .2s ease}
.text-link:hover{color:var(--white)}

/* sections */
.sec{box-sizing:border-box;padding:clamp(3rem,7vw,7rem) var(--edge-x);max-width:72rem;margin:0 auto}
.sec.center{text-align:center;display:flex;flex-direction:column;align-items:center}
.sec .lead{max-width:44ch}
/* section intros and closing lines on the centre ("One visual language…", "Shape how every word appears."); the cards below stay left-aligned */
.sec.mid > .h,.sec.mid > .t{text-align:center;margin-left:auto;margin-right:auto}
.sec.mid > .t{max-width:44ch}
.sec.mid > .slogan{text-align:center;margin:clamp(6rem,10vw,10rem) auto 0;max-width:30ch} /* closing line in the size of the hero headline */
.sec.sec-end{padding-bottom:calc(clamp(6rem,10vw,10rem) - clamp(3rem,7vw,7rem))} /* the closing line gets the same space above and below as the slogans on home (their section top padding) */
.p-hero{min-height:100vh;min-height:100svh;justify-content:center;padding-top:calc(var(--hdr-h) + 2rem)}

/* buttons — the app's Export buttons (44 px, radius 9 px) */
.btns{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin-top:.6rem}
.ui-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;box-sizing:border-box;height:var(--ctl-h);padding:0 20px;
  font-family:var(--font);font-size:16px;font-weight:400;letter-spacing:.02em;line-height:1;
  color:var(--black);-webkit-text-fill-color:var(--black);background:var(--white);border:1px solid var(--white);border-radius:var(--rad);
  box-shadow:var(--glow);cursor:pointer;text-decoration:none;-webkit-tap-highlight-color:transparent;transition:opacity .2s ease}
.ui-btn.ghost{color:var(--white);-webkit-text-fill-color:var(--white);background:rgba(255,255,255,.05);border:1px solid var(--ol);box-shadow:none}
html.light .ui-btn.ghost{background:rgba(0,0,0,.03)}
.ui-btn:focus-visible{outline:0;border-color:var(--focus);box-shadow:var(--glow)}
.ui-btn:disabled,.ui-btn[aria-disabled="true"]{opacity:.4;cursor:default}
@media (hover:hover) and (pointer:fine){.ui-btn:hover:not(:disabled):not([aria-disabled="true"]){opacity:.82}}

/* live demo (same app as on the homepage) */
.tf-section{padding:0}
.tf-frame{position:relative;width:100%;height:100vh;height:100svh;overflow:hidden;background:#000}
html.light .tf-frame,html.light .tf-frame iframe{background:#fff}  /* the app as a canvas: black / white, one step apart from the page */
.tf-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0;display:block;background:#000;opacity:1;transition:opacity .6s ease}
.tf-frame iframe.tf-wait{opacity:0}
.tf-day{position:absolute;z-index:2;left:0;right:0;top:clamp(20px,3.5vh,36px);margin:0 auto;max-width:36rem;padding:0 var(--edge-x);font-size:var(--fs-small);letter-spacing:var(--ls-small);line-height:1.4;color:var(--t3);text-align:center;pointer-events:none;transition:opacity .3s ease}
.tf-day[hidden]{display:none}.tf-day.off{opacity:0}

/* feature cards */
.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4.5rem clamp(2rem,5vw,5rem);margin-top:clamp(2rem,4vw,3rem)}
.card .t{margin:0}
/* card titles = the homepage's column headings (Studio, Selected Clients, Services): Heading 30 / 20 / 20 px, white, 29 px to the text;
   cards 4.5rem apart, as the blocks on the homepage */
.card .t-white{display:block;margin-bottom:1.55rem;font-size:clamp(1.25rem,1.5vw,1.7rem);line-height:normal;letter-spacing:.015em;color:var(--white)}
@media (min-width:1024px){.card .t-white{font-size:1.875rem;letter-spacing:0;margin-bottom:1.35rem}} /* the text's taller lines add the rest: 29 px to the text, as on the homepage */
@media (max-width:767px){.cards{grid-template-columns:1fr}}

/* pricing: plan cards are shared with the homepage — see /site.css */
.plans-note{max-width:52rem;margin:2rem 0 0;text-align:left}

/* FAQ */
.faq{max-width:52rem;width:100%;margin-top:1rem}
.faq details{border-top:1px solid var(--ol)}
.faq details:last-child{border-bottom:1px solid var(--ol)}
.faq summary{list-style:none;cursor:pointer;padding:1.1rem 2rem 1.1rem 0;position:relative;font-size:clamp(1rem,1.2vw,1.35rem);line-height:1.6;letter-spacing:.02em;color:var(--white);-webkit-tap-highlight-color:transparent}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"";position:absolute;right:4px;top:50%;width:7px;height:7px;margin-top:-6px;border-right:1px solid var(--t3);border-bottom:1px solid var(--t3);transform:rotate(45deg);transition:transform .2s ease}
.faq details[open] summary::after{transform:rotate(-135deg);margin-top:-2px}
.faq summary:focus-visible{outline:1px solid var(--rose);outline-offset:2px;border-radius:var(--rad)}
.faq details .t{margin:0 0 1.2rem}
@media (min-width:1024px){.faq summary{font-size:1.5rem;letter-spacing:.01em}}

/* license page */
.doc{max-width:72rem;min-height:100vh;min-height:100svh} /* legal pages (License, Privacy Policy, Terms, Copyright): text as wide as the two columns of cards on /typemoment/; the text fills at least the first screen, the footer comes after it */
.doc .h{margin-top:3rem}
.doc .h:first-of-type{margin-top:0}

/* scroll reveal — exactly as on the homepage */
.reveal{opacity:0;transform:translateY(12px);transition:opacity .7s ease,transform .7s ease}
.reveal.visible{opacity:1;transform:translateY(0)}
@media (prefers-reduced-motion:reduce){.reveal{opacity:1;transform:none;transition:none}}

/* live illustrations under "A typeface designed for animation." — strokes from the real glyphs (anatomy.js);
   the controls copy the app's own segmented buttons and dotted slider (/typemoment/app/) */
.an-grid{display:grid;grid-template-columns:1fr;gap:clamp(2.5rem,5vw,3.5rem);width:100%;margin-top:clamp(3rem,6vw,4.5rem)}
@media (min-width:1024px){.an-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:2rem}} /* Drawing order, Weight, Background side by side */
.an-demo{display:flex;flex-direction:column;min-width:0}
.an-stage{box-sizing:border-box;width:100%;aspect-ratio:16/9;display:flex;align-items:center;justify-content:center;padding:0 9%;border:1px solid var(--ol);border-radius:var(--rad);background:#000;--ink:var(--white);overflow:hidden}
html.light .an-stage:not([data-scene]){background:#fff}  /* the previews are small windows of the app: the same black / white canvas as the demo above */
.an-stage svg{width:100%;height:auto;max-height:70%;overflow:visible;transition:opacity .2s linear}
.an-s{fill:none;stroke:var(--ink);stroke-width:var(--sw,4.8);stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1;stroke-dashoffset:1;opacity:0}
.an-stage[data-scene]{clip-path:inset(0 round var(--rad))} /* clean rounded clip in every browser (Safari leaks transformed layers past border-radius) */
.an-stage[data-scene="solid"]{background:#000;--ink:#f0ede8}
.an-stage[data-scene="grad"],.an-stage[data-scene="anim"]{border:0;background:linear-gradient(120deg,#1b1464,#c2185b 50%,#0097a7);--ink:#f0ede8} /* no outline over a gradient: it read as a white frame */
/* Animated: a wider gradient layer slides with transform only (GPU), so nothing is repainted per frame — background-position animation stutters in Safari */
.an-stage{position:relative;isolation:isolate}
.an-stage[data-scene="anim"]::before{content:"";position:absolute;z-index:-1;top:0;bottom:0;left:0;width:300%;background:linear-gradient(90deg,#1b1464,#c2185b 33%,#0097a7 66%,#1b1464);will-change:transform;animation:anGrad 12s ease-in-out infinite alternate}
@keyframes anGrad{from{transform:translate3d(0,0,0)}to{transform:translate3d(-66.6667%,0,0)}}
@media (prefers-reduced-motion:reduce){.an-stage[data-scene="anim"]::before{animation:none}}
/* field: label + control, as in the app's Controls panel */
.an-f{display:flex;flex-direction:column;gap:8px;margin:1rem 0 0}
.an-fl{display:flex;justify-content:space-between;align-items:baseline;gap:10px;font-size:16px;letter-spacing:.01em;line-height:1.2;color:var(--t3)} /* style “Form” label: 16 px, tracking 0.01 em */
.an-fl b{font-weight:400;color:var(--white);font-variant-numeric:tabular-nums;white-space:nowrap}
.an-seg{display:flex;flex-wrap:wrap;gap:2px;padding:2px;border:1px solid var(--ol);border-radius:var(--rad);background:rgba(0,0,0,.25)}
html.light .an-seg{background:rgba(0,0,0,.04)}
.an-seg button{flex:1 1 auto;min-height:32px;padding:0 10px;border:0;border-radius:var(--rad);background:none;font-family:var(--font);font-size:16px;font-weight:400;letter-spacing:.01em;line-height:1.2;color:var(--t3);cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background .2s,color .2s}
@media (pointer:coarse){.an-seg button{min-height:44px}} /* style “Form”: 32 px, 44 px on touch */
.an-seg button[aria-pressed="true"]{background:var(--white);color:var(--black);box-shadow:var(--glow)}
.an-seg button:focus-visible{outline:1px solid var(--focus);outline-offset:-1px}
@media (hover:hover) and (pointer:fine){.an-seg button:hover:not([aria-pressed="true"]){color:var(--white)}}
/* the app's dotted slider: big dot every 5 steps, small dots between, the thumb grows with the value */
.an-range{-webkit-appearance:none;appearance:none;width:100%;height:30px;margin:0;background:none;cursor:pointer;
  --p:50%;--r:6px;--th:11px;--fi:var(--white);--dm:rgba(255,255,255,.22);--pbg:var(--black)}
html.light .an-range{--dm:rgba(0,0,0,.2)}
.an-range::-webkit-slider-runnable-track{height:12px;border:0;border-radius:0;background:
  linear-gradient(90deg,var(--pbg) 0 calc(var(--th) - 2.5px),transparent calc(var(--th) - 2.5px) calc(100% - var(--th) + 2.5px),var(--pbg) calc(100% - var(--th) + 2.5px)) 0 50%/100% 8px no-repeat,
  radial-gradient(circle,var(--dm) 0 1.9px,transparent 2.3px) calc(var(--th) - 30px) 50%/60px 8px repeat-x,
  radial-gradient(circle,var(--dm) 0 .65px,transparent 1.05px) calc(var(--th) - 6px) 50%/12px 8px repeat-x,
  linear-gradient(90deg,transparent 0 var(--p),var(--pbg) var(--p) 100%) 0 50%/100% 6px no-repeat,
  radial-gradient(circle,var(--fi) 0 2px,transparent 2.4px) calc(var(--th) - 30px) 50%/60px 8px repeat-x,
  radial-gradient(circle,var(--fi) 0 .7px,transparent 1.1px) calc(var(--th) - 6px) 50%/12px 8px repeat-x}
.an-range::-webkit-slider-thumb{-webkit-appearance:none;width:22px;height:22px;margin-top:-5px;border:0;border-radius:50%;box-shadow:none;
  background:radial-gradient(circle,var(--fi) 0 calc(var(--r) - .5px),transparent var(--r) calc(var(--r) + 2.5px),var(--ol) calc(var(--r) + 3px) calc(var(--r) + 4px),transparent calc(var(--r) + 4.5px))}
.an-range::-moz-range-track{height:1px;border:0;background:var(--dm)}
.an-range::-moz-range-progress{height:1px;background:var(--fi)}
.an-range::-moz-range-thumb{width:calc(var(--r)*2);height:calc(var(--r)*2);border:0;border-radius:50%;background:var(--fi);outline:1px solid var(--ol);outline-offset:3px}
.an-range:focus-visible{outline:1px solid var(--ol);outline-offset:4px;border-radius:6px}
@media (pointer:coarse){.an-range{height:40px;--th:16px}.an-range::-webkit-slider-thumb{width:32px;height:32px;margin-top:-10px}}
/* the same message in the four export formats (16:9, 9:16, 1:1, 4:5): equal heights, widths follow the ratio */
.an-formats{display:grid;grid-template-columns:1.778fr .5625fr 1fr .8fr;gap:clamp(.75rem,1.5vw,1.25rem);align-items:start;width:100%;margin-top:clamp(2rem,4vw,3rem)}
.an-fmt{margin:0}
.an-fmt .an-stage{padding:0 12%}
.an-fmt .an-fl{margin-top:.6rem;font-size:var(--fs-small);letter-spacing:var(--ls-small)} /* captions = small text */
@media (max-width:767px){.an-formats{grid-template-columns:.5625fr 1fr .8fr}.an-formats .f169{grid-column:1/-1}}

/* illustrations above the feature cards (features.js): the same 16:9 frames as the previews above, no controls */
.fx-demo .an-stage,.fx-card .an-stage{margin-bottom:1.6rem}
.fx-demo .fx-f,.fx-card .an-f{margin:-.6rem 0 1.6rem}
/* Type & layout: the app's Text field under the frame */
.fx-text{box-sizing:border-box;width:100%;min-height:60px;padding:10px 12px;border:1px solid var(--ol);border-radius:var(--rad);background:rgba(0,0,0,.25);color:var(--white);font-family:var(--font);font-size:16px;line-height:1.4;letter-spacing:.01em;text-transform:uppercase;resize:vertical;outline:0}
.fx-text::placeholder{color:var(--t3);text-transform:none}
.fx-text:focus-visible{border-color:var(--focus)}
html.light .fx-text{background:rgba(0,0,0,.04)}
.an-fl i{font-style:normal;font-size:var(--fs-small);letter-spacing:var(--ls-small);color:var(--t3)}
.fx-warn{font-size:var(--fs-small);letter-spacing:var(--ls-small);color:var(--white)} /* blocked word notice under the Text field */
.fx-warn[hidden]{display:none}
/* the app's warning (same look and text as in the editor) */
.fx-alert{position:absolute;left:50%;top:12px;width:min(86%,26rem);transform:translate(-50%,-6px);box-sizing:border-box;margin:0;padding:8px 14px;border-radius:6px;background:rgba(255,255,255,.62);-webkit-backdrop-filter:blur(14px) saturate(1.4);backdrop-filter:blur(14px) saturate(1.4);border:1px solid rgba(255,255,255,.55);box-shadow:0 4px 20px rgba(0,0,0,.12);color:#3a2a00;font:12px/1.4 -apple-system,Helvetica,Arial,sans-serif;letter-spacing:.02em;text-align:center;opacity:0;transition:opacity .45s ease,transform .45s cubic-bezier(.2,.7,.3,1);pointer-events:none}
.fx-alert.on{opacity:1;transform:translate(-50%,0)}
.fx-demo[data-fx="checks"] .an-stage{--ink:var(--white)}
.fx-demo[data-fx="scenes"] .an-stage iframe{position:absolute;inset:0;width:100%;height:100%;border:0;display:block;background:var(--black);transition:opacity .6s ease}
.fx-demo[data-fx="scenes"] .an-stage iframe.tf-wait{opacity:0}

/* Export: the picture in the chosen ratio, on the app's gradient scene (as the format previews above) */
.fx-ratio{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);box-sizing:border-box;display:flex;align-items:center;justify-content:center;border-radius:6px;background:linear-gradient(120deg,#1b1464,#c2185b 50%,#0097a7);--ink:#f0ede8;transition:width .5s cubic-bezier(.2,.7,.3,1),height .5s cubic-bezier(.2,.7,.3,1)}
.fx-ratio svg{width:82%;max-height:60%} /* % of the picture itself (padding % would follow the frame) */


/* "A typeface designed for motion.": laid out as the intro at the top of the page — heading, text and the small note centred */
.why-h{text-align:center}
.why-intro{display:flex;flex-direction:column;align-items:center;text-align:center}

/* "Explore the features" (homepage and the intro above) leads here: the heading stops below the site header */
#why-h{scroll-margin-top:calc(var(--hdr-h) + 24px)}
